UNPKG

@edicarlos.lds/businessmap-mcp

Version:

Model Context Protocol server for BusinessMap (Kanbanize) integration

41 lines 1.27 kB
import { BaseClientModuleImpl } from './base-client.js'; export class WorkspaceClient extends BaseClientModuleImpl { /** * Get all workspaces */ async getWorkspaces() { const response = await this.http.get('/workspaces'); return response.data.data; } /** * Get a specific workspace by ID */ async getWorkspace(workspaceId) { const response = await this.http.get(`/workspaces/${workspaceId}`); return response.data.data; } /** * Create a new workspace */ async createWorkspace(params) { this.checkReadOnlyMode('create workspace'); const response = await this.http.post('/workspaces', params); return response.data.data; } /** * Update an existing workspace */ async updateWorkspace(workspaceId, params) { this.checkReadOnlyMode('update workspace'); const response = await this.http.patch(`/workspaces/${workspaceId}`, params); return response.data.data; } /** * Delete a workspace */ async deleteWorkspace(workspaceId) { this.checkReadOnlyMode('delete workspace'); await this.http.delete(`/workspaces/${workspaceId}`); } } //# sourceMappingURL=workspace-client.js.map