UNPKG

@hongkongkiwi/clockify-master-mcp

Version:

Clockify Master MCP - The most comprehensive Model Context Protocol server for Clockify time tracking with full API integration, advanced filtering, and enterprise features

37 lines 1.45 kB
export class ClientService { client; constructor(client) { this.client = client; } async getAllClients(workspaceId, options) { return this.client.get(`/workspaces/${workspaceId}/clients`, options); } async getClientById(workspaceId, clientId) { return this.client.get(`/workspaces/${workspaceId}/clients/${clientId}`); } async createClient(workspaceId, data) { return this.client.post(`/workspaces/${workspaceId}/clients`, data); } async updateClient(workspaceId, clientId, data) { return this.client.put(`/workspaces/${workspaceId}/clients/${clientId}`, data); } async deleteClient(workspaceId, clientId) { return this.client.delete(`/workspaces/${workspaceId}/clients/${clientId}`); } async archiveClient(workspaceId, clientId) { return this.updateClient(workspaceId, clientId, { archived: true }); } async unarchiveClient(workspaceId, clientId) { return this.updateClient(workspaceId, clientId, { archived: false }); } async findClientByName(workspaceId, name) { return this.getAllClients(workspaceId, { name }); } async getActiveClients(workspaceId) { return this.getAllClients(workspaceId, { archived: false }); } async getArchivedClients(workspaceId) { return this.getAllClients(workspaceId, { archived: true }); } } //# sourceMappingURL=client.service.js.map