@chykalophia/clickup-mcp-server 5.0.1 → 5.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/clickup-client/tasks.d.ts +31 -0
- package/build/clickup-client/tasks.js +66 -1
- package/build/clickup-client/tasks.js.map +1 -1
- package/build/schemas/chat-schemas.d.ts +12 -12
- package/build/schemas/goals-schemas.d.ts +30 -30
- package/build/schemas/response-schemas.d.ts +530 -0
- package/build/schemas/response-schemas.js +41 -0
- package/build/schemas/response-schemas.js.map +1 -1
- package/build/schemas/time-tracking-schemas.d.ts +34 -34
- package/build/schemas/views-schemas.d.ts +26 -26
- package/build/tools/task-tools.js +52 -0
- package/build/tools/task-tools.js.map +1 -1
- package/package.json +1 -1
|
@@ -153,6 +153,37 @@ export declare class TasksClient {
|
|
|
153
153
|
deleteTask(taskId: string): Promise<{
|
|
154
154
|
success: boolean;
|
|
155
155
|
}>;
|
|
156
|
+
/**
|
|
157
|
+
* Get time-in-status data for a single task.
|
|
158
|
+
*
|
|
159
|
+
* Calls GET /task/{task_id}/time_in_status. Requires the "Total time in Status"
|
|
160
|
+
* ClickApp to be enabled on the workspace; otherwise ClickUp returns an error
|
|
161
|
+
* which is surfaced to the caller.
|
|
162
|
+
*
|
|
163
|
+
* Response schema is lenient: `orderindex` (and other per-entry fields) are
|
|
164
|
+
* optional because ClickUp legitimately omits them on some history rows.
|
|
165
|
+
*/
|
|
166
|
+
getTaskTimeInStatus(taskId: string, params?: {
|
|
167
|
+
custom_task_ids?: boolean;
|
|
168
|
+
team_id?: string;
|
|
169
|
+
}): Promise<{
|
|
170
|
+
current_status?: Record<string, unknown>;
|
|
171
|
+
status_history?: Array<Record<string, unknown>>;
|
|
172
|
+
}>;
|
|
173
|
+
/**
|
|
174
|
+
* Get time-in-status data for multiple tasks in one call.
|
|
175
|
+
*
|
|
176
|
+
* Calls GET /task/bulk_time_in_status/task_ids?task_ids=...
|
|
177
|
+
* ClickUp's underlying endpoint accepts up to 100 task IDs per call.
|
|
178
|
+
* Returns an object keyed by task_id; missing tasks are simply absent.
|
|
179
|
+
*/
|
|
180
|
+
getBulkTasksTimeInStatus(taskIds: string[], params?: {
|
|
181
|
+
custom_task_ids?: boolean;
|
|
182
|
+
team_id?: string;
|
|
183
|
+
}): Promise<Record<string, {
|
|
184
|
+
current_status?: Record<string, unknown>;
|
|
185
|
+
status_history?: Array<Record<string, unknown>>;
|
|
186
|
+
}>>;
|
|
156
187
|
/**
|
|
157
188
|
* Get subtasks of a specific task
|
|
158
189
|
* @param taskId The ID of the task to get subtasks for
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { prepareContentForClickUp, processClickUpResponse } from '../utils/markdown.js';
|
|
2
|
-
import { validateResponse, TasksResponseSchema } from '../schemas/response-schemas.js';
|
|
2
|
+
import { validateResponse, TasksResponseSchema, TaskTimeInStatusResponseSchema, BulkTasksTimeInStatusResponseSchema } from '../schemas/response-schemas.js';
|
|
3
3
|
export class TasksClient {
|
|
4
4
|
constructor(client) {
|
|
5
5
|
this.client = client;
|
|
@@ -79,6 +79,25 @@ export class TasksClient {
|
|
|
79
79
|
}
|
|
80
80
|
// Note: ClickUp API doesn't accept text_content on update, it generates it
|
|
81
81
|
}
|
|
82
|
+
// ClickUp's Update Task endpoint takes assignees as a `{add, rem}` delta
|
|
83
|
+
// envelope, NOT a flat array like Create Task does. Sending a flat array
|
|
84
|
+
// returns HTTP 200 but silently routes the IDs into the watcher list
|
|
85
|
+
// instead of assigning them. Translate the desired-set input into a delta
|
|
86
|
+
// by diffing against current state.
|
|
87
|
+
if (params.assignees !== undefined) {
|
|
88
|
+
const current = await this.getTask(taskId);
|
|
89
|
+
const currentIds = (current.assignees ?? []).map(a => a.id);
|
|
90
|
+
const desiredIds = params.assignees;
|
|
91
|
+
const add = desiredIds.filter(id => !currentIds.includes(id));
|
|
92
|
+
const rem = currentIds.filter(id => !desiredIds.includes(id));
|
|
93
|
+
if (add.length === 0 && rem.length === 0) {
|
|
94
|
+
// Idempotent no-op — don't send an empty envelope.
|
|
95
|
+
delete processedParams.assignees;
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
processedParams.assignees = { add, rem };
|
|
99
|
+
}
|
|
100
|
+
}
|
|
82
101
|
const result = await this.client.put(`/task/${taskId}`, processedParams);
|
|
83
102
|
return processClickUpResponse(result);
|
|
84
103
|
}
|
|
@@ -90,6 +109,52 @@ export class TasksClient {
|
|
|
90
109
|
async deleteTask(taskId) {
|
|
91
110
|
return this.client.delete(`/task/${taskId}`);
|
|
92
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Get time-in-status data for a single task.
|
|
114
|
+
*
|
|
115
|
+
* Calls GET /task/{task_id}/time_in_status. Requires the "Total time in Status"
|
|
116
|
+
* ClickApp to be enabled on the workspace; otherwise ClickUp returns an error
|
|
117
|
+
* which is surfaced to the caller.
|
|
118
|
+
*
|
|
119
|
+
* Response schema is lenient: `orderindex` (and other per-entry fields) are
|
|
120
|
+
* optional because ClickUp legitimately omits them on some history rows.
|
|
121
|
+
*/
|
|
122
|
+
async getTaskTimeInStatus(taskId, params) {
|
|
123
|
+
const raw = await this.client.get(`/task/${taskId}/time_in_status`, params);
|
|
124
|
+
return validateResponse(TaskTimeInStatusResponseSchema, raw, 'getTaskTimeInStatus');
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Get time-in-status data for multiple tasks in one call.
|
|
128
|
+
*
|
|
129
|
+
* Calls GET /task/bulk_time_in_status/task_ids?task_ids=...
|
|
130
|
+
* ClickUp's underlying endpoint accepts up to 100 task IDs per call.
|
|
131
|
+
* Returns an object keyed by task_id; missing tasks are simply absent.
|
|
132
|
+
*/
|
|
133
|
+
async getBulkTasksTimeInStatus(taskIds, params) {
|
|
134
|
+
if (!taskIds || taskIds.length < 2) {
|
|
135
|
+
throw new Error('getBulkTasksTimeInStatus requires at least 2 task IDs (ClickUp API constraint). ' +
|
|
136
|
+
'For a single task, call getTaskTimeInStatus instead.');
|
|
137
|
+
}
|
|
138
|
+
if (taskIds.length > 100) {
|
|
139
|
+
throw new Error(`getBulkTasksTimeInStatus accepts at most 100 task IDs per call (received ${taskIds.length}).`);
|
|
140
|
+
}
|
|
141
|
+
// ClickUp's bulk endpoint expects repeated `task_ids` query params (e.g.,
|
|
142
|
+
// `?task_ids=a&task_ids=b`). Axios's default array serializer emits
|
|
143
|
+
// `task_ids[]=a&task_ids[]=b` which ClickUp rejects — build the query
|
|
144
|
+
// string manually with URLSearchParams instead.
|
|
145
|
+
const search = new URLSearchParams();
|
|
146
|
+
for (const id of taskIds) {
|
|
147
|
+
search.append('task_ids', id);
|
|
148
|
+
}
|
|
149
|
+
if (params?.custom_task_ids !== undefined) {
|
|
150
|
+
search.set('custom_task_ids', String(params.custom_task_ids));
|
|
151
|
+
}
|
|
152
|
+
if (params?.team_id !== undefined) {
|
|
153
|
+
search.set('team_id', params.team_id);
|
|
154
|
+
}
|
|
155
|
+
const raw = await this.client.get(`/task/bulk_time_in_status/task_ids?${search.toString()}`);
|
|
156
|
+
return validateResponse(BulkTasksTimeInStatusResponseSchema, raw, 'getBulkTasksTimeInStatus');
|
|
157
|
+
}
|
|
93
158
|
/**
|
|
94
159
|
* Get subtasks of a specific task
|
|
95
160
|
* @param taskId The ID of the task to get subtasks for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../src/clickup-client/tasks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAqHvF,MAAM,OAAO,WAAW;IAGtB,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CAAC,MAAc,EAAE,MAAuB;QAC5D,MAAM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MAAqB,EAAe,EAAE;IACtE,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC,CAAC"}
|
|
@@ -254,8 +254,8 @@ export declare const ChatChannelSchema: z.ZodObject<{
|
|
|
254
254
|
unread_count: z.ZodOptional<z.ZodNumber>;
|
|
255
255
|
}, "strip", z.ZodTypeAny, {
|
|
256
256
|
type: "private" | "public" | "direct";
|
|
257
|
-
id: string;
|
|
258
257
|
name: string;
|
|
258
|
+
id: string;
|
|
259
259
|
workspace_id: string;
|
|
260
260
|
date_created: string;
|
|
261
261
|
date_updated: string;
|
|
@@ -268,8 +268,8 @@ export declare const ChatChannelSchema: z.ZodObject<{
|
|
|
268
268
|
unread_count?: number | undefined;
|
|
269
269
|
}, {
|
|
270
270
|
type: "private" | "public" | "direct";
|
|
271
|
-
id: string;
|
|
272
271
|
name: string;
|
|
272
|
+
id: string;
|
|
273
273
|
workspace_id: string;
|
|
274
274
|
date_created: string;
|
|
275
275
|
date_updated: string;
|
|
@@ -292,14 +292,14 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
292
292
|
color: z.ZodString;
|
|
293
293
|
profilePicture: z.ZodOptional<z.ZodString>;
|
|
294
294
|
}, "strip", z.ZodTypeAny, {
|
|
295
|
-
id: number;
|
|
296
295
|
color: string;
|
|
296
|
+
id: number;
|
|
297
297
|
email: string;
|
|
298
298
|
username: string;
|
|
299
299
|
profilePicture?: string | undefined;
|
|
300
300
|
}, {
|
|
301
|
-
id: number;
|
|
302
301
|
color: string;
|
|
302
|
+
id: number;
|
|
303
303
|
email: string;
|
|
304
304
|
username: string;
|
|
305
305
|
profilePicture?: string | undefined;
|
|
@@ -339,8 +339,8 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
339
339
|
}>, "many">>;
|
|
340
340
|
}, "strip", z.ZodTypeAny, {
|
|
341
341
|
user: {
|
|
342
|
-
id: number;
|
|
343
342
|
color: string;
|
|
343
|
+
id: number;
|
|
344
344
|
email: string;
|
|
345
345
|
username: string;
|
|
346
346
|
profilePicture?: string | undefined;
|
|
@@ -365,8 +365,8 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
365
365
|
}[] | undefined;
|
|
366
366
|
}, {
|
|
367
367
|
user: {
|
|
368
|
-
id: number;
|
|
369
368
|
color: string;
|
|
369
|
+
id: number;
|
|
370
370
|
email: string;
|
|
371
371
|
username: string;
|
|
372
372
|
profilePicture?: string | undefined;
|
|
@@ -399,14 +399,14 @@ export declare const ChatReactionSchema: z.ZodObject<{
|
|
|
399
399
|
color: z.ZodString;
|
|
400
400
|
profilePicture: z.ZodOptional<z.ZodString>;
|
|
401
401
|
}, "strip", z.ZodTypeAny, {
|
|
402
|
-
id: number;
|
|
403
402
|
color: string;
|
|
403
|
+
id: number;
|
|
404
404
|
email: string;
|
|
405
405
|
username: string;
|
|
406
406
|
profilePicture?: string | undefined;
|
|
407
407
|
}, {
|
|
408
|
-
id: number;
|
|
409
408
|
color: string;
|
|
409
|
+
id: number;
|
|
410
410
|
email: string;
|
|
411
411
|
username: string;
|
|
412
412
|
profilePicture?: string | undefined;
|
|
@@ -416,8 +416,8 @@ export declare const ChatReactionSchema: z.ZodObject<{
|
|
|
416
416
|
count: number;
|
|
417
417
|
reaction: "thumbs_up" | "thumbs_down" | "heart" | "laugh" | "surprised" | "sad" | "angry" | "fire" | "party" | "rocket" | "eyes" | "thinking" | "clap" | "pray";
|
|
418
418
|
users: {
|
|
419
|
-
id: number;
|
|
420
419
|
color: string;
|
|
420
|
+
id: number;
|
|
421
421
|
email: string;
|
|
422
422
|
username: string;
|
|
423
423
|
profilePicture?: string | undefined;
|
|
@@ -426,8 +426,8 @@ export declare const ChatReactionSchema: z.ZodObject<{
|
|
|
426
426
|
count: number;
|
|
427
427
|
reaction: "thumbs_up" | "thumbs_down" | "heart" | "laugh" | "surprised" | "sad" | "angry" | "fire" | "party" | "rocket" | "eyes" | "thinking" | "clap" | "pray";
|
|
428
428
|
users: {
|
|
429
|
-
id: number;
|
|
430
429
|
color: string;
|
|
430
|
+
id: number;
|
|
431
431
|
email: string;
|
|
432
432
|
username: string;
|
|
433
433
|
profilePicture?: string | undefined;
|
|
@@ -442,16 +442,16 @@ export declare const ChatMemberSchema: z.ZodObject<{
|
|
|
442
442
|
role: z.ZodOptional<z.ZodString>;
|
|
443
443
|
date_joined: z.ZodString;
|
|
444
444
|
}, "strip", z.ZodTypeAny, {
|
|
445
|
-
id: number;
|
|
446
445
|
color: string;
|
|
446
|
+
id: number;
|
|
447
447
|
email: string;
|
|
448
448
|
username: string;
|
|
449
449
|
date_joined: string;
|
|
450
450
|
profilePicture?: string | undefined;
|
|
451
451
|
role?: string | undefined;
|
|
452
452
|
}, {
|
|
453
|
-
id: number;
|
|
454
453
|
color: string;
|
|
454
|
+
id: number;
|
|
455
455
|
email: string;
|
|
456
456
|
username: string;
|
|
457
457
|
date_joined: string;
|
|
@@ -13,9 +13,9 @@ export declare const CreateGoalSchema: z.ZodObject<{
|
|
|
13
13
|
owners: z.ZodArray<z.ZodNumber, "many">;
|
|
14
14
|
color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
color: string;
|
|
16
17
|
name: string;
|
|
17
18
|
due_date: number;
|
|
18
|
-
color: string;
|
|
19
19
|
team_id: string;
|
|
20
20
|
multiple_owners: boolean;
|
|
21
21
|
owners: number[];
|
|
@@ -25,8 +25,8 @@ export declare const CreateGoalSchema: z.ZodObject<{
|
|
|
25
25
|
due_date: number;
|
|
26
26
|
team_id: string;
|
|
27
27
|
owners: number[];
|
|
28
|
-
description?: string | undefined;
|
|
29
28
|
color?: string | undefined;
|
|
29
|
+
description?: string | undefined;
|
|
30
30
|
multiple_owners?: boolean | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
export declare const UpdateGoalSchema: z.ZodObject<{
|
|
@@ -39,18 +39,18 @@ export declare const UpdateGoalSchema: z.ZodObject<{
|
|
|
39
39
|
color: z.ZodOptional<z.ZodString>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
41
|
goal_id: string;
|
|
42
|
+
color?: string | undefined;
|
|
42
43
|
name?: string | undefined;
|
|
43
44
|
description?: string | undefined;
|
|
44
45
|
due_date?: number | undefined;
|
|
45
|
-
color?: string | undefined;
|
|
46
46
|
rem_owners?: number[] | undefined;
|
|
47
47
|
add_owners?: number[] | undefined;
|
|
48
48
|
}, {
|
|
49
49
|
goal_id: string;
|
|
50
|
+
color?: string | undefined;
|
|
50
51
|
name?: string | undefined;
|
|
51
52
|
description?: string | undefined;
|
|
52
53
|
due_date?: number | undefined;
|
|
53
|
-
color?: string | undefined;
|
|
54
54
|
rem_owners?: number[] | undefined;
|
|
55
55
|
add_owners?: number[] | undefined;
|
|
56
56
|
}>;
|
|
@@ -375,15 +375,15 @@ export declare const GoalMemberSchema: z.ZodObject<{
|
|
|
375
375
|
initials: z.ZodString;
|
|
376
376
|
profilePicture: z.ZodString;
|
|
377
377
|
}, "strip", z.ZodTypeAny, {
|
|
378
|
-
id: number;
|
|
379
378
|
color: string;
|
|
379
|
+
id: number;
|
|
380
380
|
email: string;
|
|
381
381
|
username: string;
|
|
382
382
|
initials: string;
|
|
383
383
|
profilePicture: string;
|
|
384
384
|
}, {
|
|
385
|
-
id: number;
|
|
386
385
|
color: string;
|
|
386
|
+
id: number;
|
|
387
387
|
email: string;
|
|
388
388
|
username: string;
|
|
389
389
|
initials: string;
|
|
@@ -406,8 +406,8 @@ export declare const GoalTargetResponseSchema: z.ZodObject<{
|
|
|
406
406
|
percent_completed: z.ZodNumber;
|
|
407
407
|
}, "strip", z.ZodTypeAny, {
|
|
408
408
|
type: "number" | "boolean" | "task" | "list" | "currency";
|
|
409
|
-
id: string;
|
|
410
409
|
name: string;
|
|
410
|
+
id: string;
|
|
411
411
|
date_created: string;
|
|
412
412
|
unit: string | null;
|
|
413
413
|
completed: boolean;
|
|
@@ -421,8 +421,8 @@ export declare const GoalTargetResponseSchema: z.ZodObject<{
|
|
|
421
421
|
creator: number;
|
|
422
422
|
}, {
|
|
423
423
|
type: "number" | "boolean" | "task" | "list" | "currency";
|
|
424
|
-
id: string;
|
|
425
424
|
name: string;
|
|
425
|
+
id: string;
|
|
426
426
|
date_created: string;
|
|
427
427
|
unit: string | null;
|
|
428
428
|
completed: boolean;
|
|
@@ -458,15 +458,15 @@ export declare const GoalResponseSchema: z.ZodObject<{
|
|
|
458
458
|
initials: z.ZodString;
|
|
459
459
|
profilePicture: z.ZodString;
|
|
460
460
|
}, "strip", z.ZodTypeAny, {
|
|
461
|
-
id: number;
|
|
462
461
|
color: string;
|
|
462
|
+
id: number;
|
|
463
463
|
email: string;
|
|
464
464
|
username: string;
|
|
465
465
|
initials: string;
|
|
466
466
|
profilePicture: string;
|
|
467
467
|
}, {
|
|
468
|
-
id: number;
|
|
469
468
|
color: string;
|
|
469
|
+
id: number;
|
|
470
470
|
email: string;
|
|
471
471
|
username: string;
|
|
472
472
|
initials: string;
|
|
@@ -480,15 +480,15 @@ export declare const GoalResponseSchema: z.ZodObject<{
|
|
|
480
480
|
initials: z.ZodString;
|
|
481
481
|
profilePicture: z.ZodString;
|
|
482
482
|
}, "strip", z.ZodTypeAny, {
|
|
483
|
-
id: number;
|
|
484
483
|
color: string;
|
|
484
|
+
id: number;
|
|
485
485
|
email: string;
|
|
486
486
|
username: string;
|
|
487
487
|
initials: string;
|
|
488
488
|
profilePicture: string;
|
|
489
489
|
}, {
|
|
490
|
-
id: number;
|
|
491
490
|
color: string;
|
|
491
|
+
id: number;
|
|
492
492
|
email: string;
|
|
493
493
|
username: string;
|
|
494
494
|
initials: string;
|
|
@@ -511,8 +511,8 @@ export declare const GoalResponseSchema: z.ZodObject<{
|
|
|
511
511
|
percent_completed: z.ZodNumber;
|
|
512
512
|
}, "strip", z.ZodTypeAny, {
|
|
513
513
|
type: "number" | "boolean" | "task" | "list" | "currency";
|
|
514
|
-
id: string;
|
|
515
514
|
name: string;
|
|
515
|
+
id: string;
|
|
516
516
|
date_created: string;
|
|
517
517
|
unit: string | null;
|
|
518
518
|
completed: boolean;
|
|
@@ -526,8 +526,8 @@ export declare const GoalResponseSchema: z.ZodObject<{
|
|
|
526
526
|
creator: number;
|
|
527
527
|
}, {
|
|
528
528
|
type: "number" | "boolean" | "task" | "list" | "currency";
|
|
529
|
-
id: string;
|
|
530
529
|
name: string;
|
|
530
|
+
id: string;
|
|
531
531
|
date_created: string;
|
|
532
532
|
unit: string | null;
|
|
533
533
|
completed: boolean;
|
|
@@ -543,21 +543,21 @@ export declare const GoalResponseSchema: z.ZodObject<{
|
|
|
543
543
|
percent_completed: z.ZodNumber;
|
|
544
544
|
pretty_url: z.ZodString;
|
|
545
545
|
}, "strip", z.ZodTypeAny, {
|
|
546
|
-
|
|
546
|
+
color: string;
|
|
547
547
|
name: string;
|
|
548
548
|
description: string;
|
|
549
549
|
due_date: string;
|
|
550
550
|
start_date: string | null;
|
|
551
|
+
team_id: string;
|
|
552
|
+
id: string;
|
|
551
553
|
archived: boolean;
|
|
552
|
-
color: string;
|
|
553
554
|
date_created: string;
|
|
554
555
|
private: boolean;
|
|
555
556
|
folder_id: string | null;
|
|
556
|
-
team_id: string;
|
|
557
557
|
multiple_owners: boolean;
|
|
558
558
|
owners: {
|
|
559
|
-
id: number;
|
|
560
559
|
color: string;
|
|
560
|
+
id: number;
|
|
561
561
|
email: string;
|
|
562
562
|
username: string;
|
|
563
563
|
initials: string;
|
|
@@ -567,8 +567,8 @@ export declare const GoalResponseSchema: z.ZodObject<{
|
|
|
567
567
|
creator: number;
|
|
568
568
|
pretty_id: string;
|
|
569
569
|
members: {
|
|
570
|
-
id: number;
|
|
571
570
|
color: string;
|
|
571
|
+
id: number;
|
|
572
572
|
email: string;
|
|
573
573
|
username: string;
|
|
574
574
|
initials: string;
|
|
@@ -576,8 +576,8 @@ export declare const GoalResponseSchema: z.ZodObject<{
|
|
|
576
576
|
}[];
|
|
577
577
|
key_results: {
|
|
578
578
|
type: "number" | "boolean" | "task" | "list" | "currency";
|
|
579
|
-
id: string;
|
|
580
579
|
name: string;
|
|
580
|
+
id: string;
|
|
581
581
|
date_created: string;
|
|
582
582
|
unit: string | null;
|
|
583
583
|
completed: boolean;
|
|
@@ -592,21 +592,21 @@ export declare const GoalResponseSchema: z.ZodObject<{
|
|
|
592
592
|
}[];
|
|
593
593
|
pretty_url: string;
|
|
594
594
|
}, {
|
|
595
|
-
|
|
595
|
+
color: string;
|
|
596
596
|
name: string;
|
|
597
597
|
description: string;
|
|
598
598
|
due_date: string;
|
|
599
599
|
start_date: string | null;
|
|
600
|
+
team_id: string;
|
|
601
|
+
id: string;
|
|
600
602
|
archived: boolean;
|
|
601
|
-
color: string;
|
|
602
603
|
date_created: string;
|
|
603
604
|
private: boolean;
|
|
604
605
|
folder_id: string | null;
|
|
605
|
-
team_id: string;
|
|
606
606
|
multiple_owners: boolean;
|
|
607
607
|
owners: {
|
|
608
|
-
id: number;
|
|
609
608
|
color: string;
|
|
609
|
+
id: number;
|
|
610
610
|
email: string;
|
|
611
611
|
username: string;
|
|
612
612
|
initials: string;
|
|
@@ -616,8 +616,8 @@ export declare const GoalResponseSchema: z.ZodObject<{
|
|
|
616
616
|
creator: number;
|
|
617
617
|
pretty_id: string;
|
|
618
618
|
members: {
|
|
619
|
-
id: number;
|
|
620
619
|
color: string;
|
|
620
|
+
id: number;
|
|
621
621
|
email: string;
|
|
622
622
|
username: string;
|
|
623
623
|
initials: string;
|
|
@@ -625,8 +625,8 @@ export declare const GoalResponseSchema: z.ZodObject<{
|
|
|
625
625
|
}[];
|
|
626
626
|
key_results: {
|
|
627
627
|
type: "number" | "boolean" | "task" | "list" | "currency";
|
|
628
|
-
id: string;
|
|
629
628
|
name: string;
|
|
629
|
+
id: string;
|
|
630
630
|
date_created: string;
|
|
631
631
|
unit: string | null;
|
|
632
632
|
completed: boolean;
|
|
@@ -692,9 +692,9 @@ export declare const GoalsToolSchemas: {
|
|
|
692
692
|
owners: z.ZodArray<z.ZodNumber, "many">;
|
|
693
693
|
color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
694
694
|
}, "strip", z.ZodTypeAny, {
|
|
695
|
+
color: string;
|
|
695
696
|
name: string;
|
|
696
697
|
due_date: number;
|
|
697
|
-
color: string;
|
|
698
698
|
team_id: string;
|
|
699
699
|
multiple_owners: boolean;
|
|
700
700
|
owners: number[];
|
|
@@ -704,8 +704,8 @@ export declare const GoalsToolSchemas: {
|
|
|
704
704
|
due_date: number;
|
|
705
705
|
team_id: string;
|
|
706
706
|
owners: number[];
|
|
707
|
-
description?: string | undefined;
|
|
708
707
|
color?: string | undefined;
|
|
708
|
+
description?: string | undefined;
|
|
709
709
|
multiple_owners?: boolean | undefined;
|
|
710
710
|
}>;
|
|
711
711
|
updateGoal: z.ZodObject<{
|
|
@@ -718,18 +718,18 @@ export declare const GoalsToolSchemas: {
|
|
|
718
718
|
color: z.ZodOptional<z.ZodString>;
|
|
719
719
|
}, "strip", z.ZodTypeAny, {
|
|
720
720
|
goal_id: string;
|
|
721
|
+
color?: string | undefined;
|
|
721
722
|
name?: string | undefined;
|
|
722
723
|
description?: string | undefined;
|
|
723
724
|
due_date?: number | undefined;
|
|
724
|
-
color?: string | undefined;
|
|
725
725
|
rem_owners?: number[] | undefined;
|
|
726
726
|
add_owners?: number[] | undefined;
|
|
727
727
|
}, {
|
|
728
728
|
goal_id: string;
|
|
729
|
+
color?: string | undefined;
|
|
729
730
|
name?: string | undefined;
|
|
730
731
|
description?: string | undefined;
|
|
731
732
|
due_date?: number | undefined;
|
|
732
|
-
color?: string | undefined;
|
|
733
733
|
rem_owners?: number[] | undefined;
|
|
734
734
|
add_owners?: number[] | undefined;
|
|
735
735
|
}>;
|