UNPKG

@danielma-tic/mondaydotcom-mcp-server

Version:

MCP Server for the Monday.com API, enabling board operations, item management, and more.

59 lines (58 loc) 1.94 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ColumnSchema = exports.BoardSchema = exports.GroupSchema = exports.ItemSchema = exports.CreateGroupSchema = exports.CreateColumnSchema = exports.UpdateItemSchema = exports.CreateItemSchema = exports.GroupIdentifier = exports.BoardIdentifier = exports.ItemIdentifier = void 0; const zod_1 = require("zod"); // Base schemas exports.ItemIdentifier = zod_1.z.object({ boardId: zod_1.z.string(), itemId: zod_1.z.string() }); exports.BoardIdentifier = zod_1.z.object({ boardId: zod_1.z.string() }); exports.GroupIdentifier = zod_1.z.object({ boardId: zod_1.z.string(), groupId: zod_1.z.string() }); // Operation schemas exports.CreateItemSchema = zod_1.z.object({ boardId: zod_1.z.string(), groupId: zod_1.z.string().optional(), name: zod_1.z.string(), columnValues: zod_1.z.record(zod_1.z.any()).optional() }); exports.UpdateItemSchema = zod_1.z.object({ boardId: zod_1.z.string(), itemId: zod_1.z.string(), columnValues: zod_1.z.record(zod_1.z.any()) }); exports.CreateColumnSchema = zod_1.z.object({ boardId: zod_1.z.string(), title: zod_1.z.string(), type: zod_1.z.string() }); exports.CreateGroupSchema = zod_1.z.object({ boardId: zod_1.z.string(), name: zod_1.z.string() }); // Response schemas exports.ItemSchema = zod_1.z.object({ id: zod_1.z.string(), name: zod_1.z.string(), columnValues: zod_1.z.record(zod_1.z.any()).optional() }); exports.GroupSchema = zod_1.z.object({ id: zod_1.z.string(), title: zod_1.z.string(), items: zod_1.z.array(exports.ItemSchema).optional() }); exports.BoardSchema = zod_1.z.object({ id: zod_1.z.string(), name: zod_1.z.string(), groups: zod_1.z.array(exports.GroupSchema).optional() }); exports.ColumnSchema = zod_1.z.object({ id: zod_1.z.string(), title: zod_1.z.string(), type: zod_1.z.string() });