@chykalophia/clickup-mcp-server 5.0.1 → 5.0.2
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 +47 -1
- package/build/clickup-client/tasks.js.map +1 -1
- package/build/schemas/chat-schemas.d.ts +10 -10
- package/build/schemas/goals-schemas.d.ts +26 -26
- 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 +10 -10
- 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;
|
|
@@ -90,6 +90,52 @@ export class TasksClient {
|
|
|
90
90
|
async deleteTask(taskId) {
|
|
91
91
|
return this.client.delete(`/task/${taskId}`);
|
|
92
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Get time-in-status data for a single task.
|
|
95
|
+
*
|
|
96
|
+
* Calls GET /task/{task_id}/time_in_status. Requires the "Total time in Status"
|
|
97
|
+
* ClickApp to be enabled on the workspace; otherwise ClickUp returns an error
|
|
98
|
+
* which is surfaced to the caller.
|
|
99
|
+
*
|
|
100
|
+
* Response schema is lenient: `orderindex` (and other per-entry fields) are
|
|
101
|
+
* optional because ClickUp legitimately omits them on some history rows.
|
|
102
|
+
*/
|
|
103
|
+
async getTaskTimeInStatus(taskId, params) {
|
|
104
|
+
const raw = await this.client.get(`/task/${taskId}/time_in_status`, params);
|
|
105
|
+
return validateResponse(TaskTimeInStatusResponseSchema, raw, 'getTaskTimeInStatus');
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get time-in-status data for multiple tasks in one call.
|
|
109
|
+
*
|
|
110
|
+
* Calls GET /task/bulk_time_in_status/task_ids?task_ids=...
|
|
111
|
+
* ClickUp's underlying endpoint accepts up to 100 task IDs per call.
|
|
112
|
+
* Returns an object keyed by task_id; missing tasks are simply absent.
|
|
113
|
+
*/
|
|
114
|
+
async getBulkTasksTimeInStatus(taskIds, params) {
|
|
115
|
+
if (!taskIds || taskIds.length < 2) {
|
|
116
|
+
throw new Error('getBulkTasksTimeInStatus requires at least 2 task IDs (ClickUp API constraint). ' +
|
|
117
|
+
'For a single task, call getTaskTimeInStatus instead.');
|
|
118
|
+
}
|
|
119
|
+
if (taskIds.length > 100) {
|
|
120
|
+
throw new Error(`getBulkTasksTimeInStatus accepts at most 100 task IDs per call (received ${taskIds.length}).`);
|
|
121
|
+
}
|
|
122
|
+
// ClickUp's bulk endpoint expects repeated `task_ids` query params (e.g.,
|
|
123
|
+
// `?task_ids=a&task_ids=b`). Axios's default array serializer emits
|
|
124
|
+
// `task_ids[]=a&task_ids[]=b` which ClickUp rejects — build the query
|
|
125
|
+
// string manually with URLSearchParams instead.
|
|
126
|
+
const search = new URLSearchParams();
|
|
127
|
+
for (const id of taskIds) {
|
|
128
|
+
search.append('task_ids', id);
|
|
129
|
+
}
|
|
130
|
+
if (params?.custom_task_ids !== undefined) {
|
|
131
|
+
search.set('custom_task_ids', String(params.custom_task_ids));
|
|
132
|
+
}
|
|
133
|
+
if (params?.team_id !== undefined) {
|
|
134
|
+
search.set('team_id', params.team_id);
|
|
135
|
+
}
|
|
136
|
+
const raw = await this.client.get(`/task/bulk_time_in_status/task_ids?${search.toString()}`);
|
|
137
|
+
return validateResponse(BulkTasksTimeInStatusResponseSchema, raw, 'getBulkTasksTimeInStatus');
|
|
138
|
+
}
|
|
93
139
|
/**
|
|
94
140
|
* Get subtasks of a specific task
|
|
95
141
|
* @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,
|
|
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,EACL,gBAAgB,EAChB,mBAAmB,EACnB,8BAA8B,EAC9B,mCAAmC,EACpC,MAAM,gCAAgC,CAAC;AAqHxC,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,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAU,SAAS,MAAM,OAAO,EAAE,MAAM,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,gBAAgB,CAAC,mBAAmB,EAAE,GAAG,EAAE,kBAAkB,CAAC,CAAC;QAE9E,8BAA8B;QAC9B,IAAI,MAAM,CAAC,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/C,MAAc,CAAC,KAAK,GAAI,MAAM,CAAC,KAAe,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC;QACnG,CAAC;QAED,OAAO,MAA2B,CAAC;IACrC,CAAC;IAED,qEAAqE;IAErE;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,MAAuC;QACnE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,MAAM,EAAE,EAAE,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AACjC,CAAC,CAAC"}
|
|
@@ -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,20 +13,20 @@ 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
|
-
name: string;
|
|
17
|
-
due_date: number;
|
|
18
16
|
color: string;
|
|
19
17
|
team_id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
due_date: number;
|
|
20
20
|
multiple_owners: boolean;
|
|
21
21
|
owners: number[];
|
|
22
22
|
description?: string | undefined;
|
|
23
23
|
}, {
|
|
24
|
+
team_id: string;
|
|
24
25
|
name: string;
|
|
25
26
|
due_date: number;
|
|
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;
|
|
@@ -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;
|
|
@@ -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
|
+
color: string;
|
|
547
|
+
team_id: string;
|
|
546
548
|
id: string;
|
|
547
549
|
name: string;
|
|
548
550
|
description: string;
|
|
549
551
|
due_date: string;
|
|
550
552
|
start_date: string | null;
|
|
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;
|
|
@@ -592,21 +592,21 @@ export declare const GoalResponseSchema: z.ZodObject<{
|
|
|
592
592
|
}[];
|
|
593
593
|
pretty_url: string;
|
|
594
594
|
}, {
|
|
595
|
+
color: string;
|
|
596
|
+
team_id: string;
|
|
595
597
|
id: string;
|
|
596
598
|
name: string;
|
|
597
599
|
description: string;
|
|
598
600
|
due_date: string;
|
|
599
601
|
start_date: string | null;
|
|
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;
|
|
@@ -692,20 +692,20 @@ 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
|
-
name: string;
|
|
696
|
-
due_date: number;
|
|
697
695
|
color: string;
|
|
698
696
|
team_id: string;
|
|
697
|
+
name: string;
|
|
698
|
+
due_date: number;
|
|
699
699
|
multiple_owners: boolean;
|
|
700
700
|
owners: number[];
|
|
701
701
|
description?: string | undefined;
|
|
702
702
|
}, {
|
|
703
|
+
team_id: string;
|
|
703
704
|
name: string;
|
|
704
705
|
due_date: number;
|
|
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
|
}>;
|
|
@@ -86,6 +86,536 @@ export declare const GoalTargetResponseSchema: z.ZodObject<{
|
|
|
86
86
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
87
87
|
target: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
88
88
|
}, z.ZodTypeAny, "passthrough">>;
|
|
89
|
+
/** Response shape for GET /task/{task_id}/time_in_status */
|
|
90
|
+
export declare const TaskTimeInStatusResponseSchema: z.ZodObject<{
|
|
91
|
+
current_status: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
status: z.ZodOptional<z.ZodString>;
|
|
93
|
+
color: z.ZodOptional<z.ZodString>;
|
|
94
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
since: z.ZodOptional<z.ZodString>;
|
|
97
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
98
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
since: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
101
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
since: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
104
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
105
|
+
status: z.ZodOptional<z.ZodString>;
|
|
106
|
+
color: z.ZodOptional<z.ZodString>;
|
|
107
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
since: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
111
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
since: z.ZodOptional<z.ZodString>;
|
|
113
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
114
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
since: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
117
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
118
|
+
status: z.ZodOptional<z.ZodString>;
|
|
119
|
+
color: z.ZodOptional<z.ZodString>;
|
|
120
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
122
|
+
since: z.ZodOptional<z.ZodString>;
|
|
123
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
124
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
since: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
127
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
128
|
+
since: z.ZodOptional<z.ZodString>;
|
|
129
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
130
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
131
|
+
status_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
132
|
+
status: z.ZodOptional<z.ZodString>;
|
|
133
|
+
color: z.ZodOptional<z.ZodString>;
|
|
134
|
+
type: z.ZodOptional<z.ZodString>;
|
|
135
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
136
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
since: z.ZodOptional<z.ZodString>;
|
|
138
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
139
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
since: z.ZodOptional<z.ZodString>;
|
|
141
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
142
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
since: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
145
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
146
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
147
|
+
status: z.ZodOptional<z.ZodString>;
|
|
148
|
+
color: z.ZodOptional<z.ZodString>;
|
|
149
|
+
type: z.ZodOptional<z.ZodString>;
|
|
150
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
151
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
since: z.ZodOptional<z.ZodString>;
|
|
153
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
154
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
155
|
+
since: z.ZodOptional<z.ZodString>;
|
|
156
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
157
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
since: z.ZodOptional<z.ZodString>;
|
|
159
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
160
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
161
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
162
|
+
status: z.ZodOptional<z.ZodString>;
|
|
163
|
+
color: z.ZodOptional<z.ZodString>;
|
|
164
|
+
type: z.ZodOptional<z.ZodString>;
|
|
165
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
166
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
167
|
+
since: z.ZodOptional<z.ZodString>;
|
|
168
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
169
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
since: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
172
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
since: z.ZodOptional<z.ZodString>;
|
|
174
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
175
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
176
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
177
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
178
|
+
current_status: z.ZodOptional<z.ZodObject<{
|
|
179
|
+
status: z.ZodOptional<z.ZodString>;
|
|
180
|
+
color: z.ZodOptional<z.ZodString>;
|
|
181
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
182
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
since: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
185
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
since: z.ZodOptional<z.ZodString>;
|
|
187
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
188
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
since: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
191
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
192
|
+
status: z.ZodOptional<z.ZodString>;
|
|
193
|
+
color: z.ZodOptional<z.ZodString>;
|
|
194
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
since: z.ZodOptional<z.ZodString>;
|
|
197
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
198
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
199
|
+
since: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
201
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
since: z.ZodOptional<z.ZodString>;
|
|
203
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
204
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
205
|
+
status: z.ZodOptional<z.ZodString>;
|
|
206
|
+
color: z.ZodOptional<z.ZodString>;
|
|
207
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
208
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
209
|
+
since: z.ZodOptional<z.ZodString>;
|
|
210
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
211
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
212
|
+
since: z.ZodOptional<z.ZodString>;
|
|
213
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
214
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
215
|
+
since: z.ZodOptional<z.ZodString>;
|
|
216
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
217
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
218
|
+
status_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
219
|
+
status: z.ZodOptional<z.ZodString>;
|
|
220
|
+
color: z.ZodOptional<z.ZodString>;
|
|
221
|
+
type: z.ZodOptional<z.ZodString>;
|
|
222
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
since: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
226
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
227
|
+
since: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
229
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
since: z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
232
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
233
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
234
|
+
status: z.ZodOptional<z.ZodString>;
|
|
235
|
+
color: z.ZodOptional<z.ZodString>;
|
|
236
|
+
type: z.ZodOptional<z.ZodString>;
|
|
237
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
238
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
239
|
+
since: z.ZodOptional<z.ZodString>;
|
|
240
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
241
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
242
|
+
since: z.ZodOptional<z.ZodString>;
|
|
243
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
244
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
since: z.ZodOptional<z.ZodString>;
|
|
246
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
247
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
248
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
249
|
+
status: z.ZodOptional<z.ZodString>;
|
|
250
|
+
color: z.ZodOptional<z.ZodString>;
|
|
251
|
+
type: z.ZodOptional<z.ZodString>;
|
|
252
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
253
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
since: z.ZodOptional<z.ZodString>;
|
|
255
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
256
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
since: z.ZodOptional<z.ZodString>;
|
|
258
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
259
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
since: z.ZodOptional<z.ZodString>;
|
|
261
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
262
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
263
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
264
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
265
|
+
current_status: z.ZodOptional<z.ZodObject<{
|
|
266
|
+
status: z.ZodOptional<z.ZodString>;
|
|
267
|
+
color: z.ZodOptional<z.ZodString>;
|
|
268
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
since: z.ZodOptional<z.ZodString>;
|
|
271
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
272
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
273
|
+
since: z.ZodOptional<z.ZodString>;
|
|
274
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
275
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
276
|
+
since: z.ZodOptional<z.ZodString>;
|
|
277
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
278
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
279
|
+
status: z.ZodOptional<z.ZodString>;
|
|
280
|
+
color: z.ZodOptional<z.ZodString>;
|
|
281
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
282
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
since: z.ZodOptional<z.ZodString>;
|
|
284
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
285
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
since: z.ZodOptional<z.ZodString>;
|
|
287
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
288
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
since: z.ZodOptional<z.ZodString>;
|
|
290
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
291
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
292
|
+
status: z.ZodOptional<z.ZodString>;
|
|
293
|
+
color: z.ZodOptional<z.ZodString>;
|
|
294
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
295
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
296
|
+
since: z.ZodOptional<z.ZodString>;
|
|
297
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
298
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
299
|
+
since: z.ZodOptional<z.ZodString>;
|
|
300
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
301
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
302
|
+
since: z.ZodOptional<z.ZodString>;
|
|
303
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
304
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
305
|
+
status_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
306
|
+
status: z.ZodOptional<z.ZodString>;
|
|
307
|
+
color: z.ZodOptional<z.ZodString>;
|
|
308
|
+
type: z.ZodOptional<z.ZodString>;
|
|
309
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
310
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
311
|
+
since: z.ZodOptional<z.ZodString>;
|
|
312
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
313
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
314
|
+
since: z.ZodOptional<z.ZodString>;
|
|
315
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
316
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
317
|
+
since: z.ZodOptional<z.ZodString>;
|
|
318
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
319
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
320
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
321
|
+
status: z.ZodOptional<z.ZodString>;
|
|
322
|
+
color: z.ZodOptional<z.ZodString>;
|
|
323
|
+
type: z.ZodOptional<z.ZodString>;
|
|
324
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
325
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
326
|
+
since: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
328
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
329
|
+
since: z.ZodOptional<z.ZodString>;
|
|
330
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
331
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
332
|
+
since: z.ZodOptional<z.ZodString>;
|
|
333
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
334
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
335
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
336
|
+
status: z.ZodOptional<z.ZodString>;
|
|
337
|
+
color: z.ZodOptional<z.ZodString>;
|
|
338
|
+
type: z.ZodOptional<z.ZodString>;
|
|
339
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
340
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
341
|
+
since: z.ZodOptional<z.ZodString>;
|
|
342
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
343
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
344
|
+
since: z.ZodOptional<z.ZodString>;
|
|
345
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
346
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
347
|
+
since: z.ZodOptional<z.ZodString>;
|
|
348
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
349
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
350
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
351
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
352
|
+
/**
|
|
353
|
+
* Response shape for GET /task/bulk_time_in_status/task_ids
|
|
354
|
+
* Maps task_id -> { current_status, status_history }.
|
|
355
|
+
* Each task entry uses the same lenient schema.
|
|
356
|
+
*/
|
|
357
|
+
export declare const BulkTasksTimeInStatusResponseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
358
|
+
current_status: z.ZodOptional<z.ZodObject<{
|
|
359
|
+
status: z.ZodOptional<z.ZodString>;
|
|
360
|
+
color: z.ZodOptional<z.ZodString>;
|
|
361
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
362
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
363
|
+
since: z.ZodOptional<z.ZodString>;
|
|
364
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
365
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
366
|
+
since: z.ZodOptional<z.ZodString>;
|
|
367
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
368
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
369
|
+
since: z.ZodOptional<z.ZodString>;
|
|
370
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
371
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
372
|
+
status: z.ZodOptional<z.ZodString>;
|
|
373
|
+
color: z.ZodOptional<z.ZodString>;
|
|
374
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
375
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
376
|
+
since: z.ZodOptional<z.ZodString>;
|
|
377
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
378
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
379
|
+
since: z.ZodOptional<z.ZodString>;
|
|
380
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
381
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
382
|
+
since: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
384
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
385
|
+
status: z.ZodOptional<z.ZodString>;
|
|
386
|
+
color: z.ZodOptional<z.ZodString>;
|
|
387
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
388
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
389
|
+
since: z.ZodOptional<z.ZodString>;
|
|
390
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
391
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
392
|
+
since: z.ZodOptional<z.ZodString>;
|
|
393
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
394
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
395
|
+
since: z.ZodOptional<z.ZodString>;
|
|
396
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
397
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
398
|
+
status_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
399
|
+
status: z.ZodOptional<z.ZodString>;
|
|
400
|
+
color: z.ZodOptional<z.ZodString>;
|
|
401
|
+
type: z.ZodOptional<z.ZodString>;
|
|
402
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
403
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
404
|
+
since: z.ZodOptional<z.ZodString>;
|
|
405
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
406
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
407
|
+
since: z.ZodOptional<z.ZodString>;
|
|
408
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
409
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
410
|
+
since: z.ZodOptional<z.ZodString>;
|
|
411
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
412
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
413
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
414
|
+
status: z.ZodOptional<z.ZodString>;
|
|
415
|
+
color: z.ZodOptional<z.ZodString>;
|
|
416
|
+
type: z.ZodOptional<z.ZodString>;
|
|
417
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
418
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
419
|
+
since: z.ZodOptional<z.ZodString>;
|
|
420
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
421
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
422
|
+
since: z.ZodOptional<z.ZodString>;
|
|
423
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
424
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
425
|
+
since: z.ZodOptional<z.ZodString>;
|
|
426
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
427
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
428
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
429
|
+
status: z.ZodOptional<z.ZodString>;
|
|
430
|
+
color: z.ZodOptional<z.ZodString>;
|
|
431
|
+
type: z.ZodOptional<z.ZodString>;
|
|
432
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
433
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
434
|
+
since: z.ZodOptional<z.ZodString>;
|
|
435
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
436
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
437
|
+
since: z.ZodOptional<z.ZodString>;
|
|
438
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
439
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
440
|
+
since: z.ZodOptional<z.ZodString>;
|
|
441
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
442
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
443
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
444
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
445
|
+
current_status: z.ZodOptional<z.ZodObject<{
|
|
446
|
+
status: z.ZodOptional<z.ZodString>;
|
|
447
|
+
color: z.ZodOptional<z.ZodString>;
|
|
448
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
449
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
450
|
+
since: z.ZodOptional<z.ZodString>;
|
|
451
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
452
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
453
|
+
since: z.ZodOptional<z.ZodString>;
|
|
454
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
455
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
456
|
+
since: z.ZodOptional<z.ZodString>;
|
|
457
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
458
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
459
|
+
status: z.ZodOptional<z.ZodString>;
|
|
460
|
+
color: z.ZodOptional<z.ZodString>;
|
|
461
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
462
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
463
|
+
since: z.ZodOptional<z.ZodString>;
|
|
464
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
465
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
466
|
+
since: z.ZodOptional<z.ZodString>;
|
|
467
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
468
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
469
|
+
since: z.ZodOptional<z.ZodString>;
|
|
470
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
471
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
472
|
+
status: z.ZodOptional<z.ZodString>;
|
|
473
|
+
color: z.ZodOptional<z.ZodString>;
|
|
474
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
475
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
476
|
+
since: z.ZodOptional<z.ZodString>;
|
|
477
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
478
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
479
|
+
since: z.ZodOptional<z.ZodString>;
|
|
480
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
481
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
482
|
+
since: z.ZodOptional<z.ZodString>;
|
|
483
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
484
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
485
|
+
status_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
486
|
+
status: z.ZodOptional<z.ZodString>;
|
|
487
|
+
color: z.ZodOptional<z.ZodString>;
|
|
488
|
+
type: z.ZodOptional<z.ZodString>;
|
|
489
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
490
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
491
|
+
since: z.ZodOptional<z.ZodString>;
|
|
492
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
493
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
494
|
+
since: z.ZodOptional<z.ZodString>;
|
|
495
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
496
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
497
|
+
since: z.ZodOptional<z.ZodString>;
|
|
498
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
499
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
500
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
501
|
+
status: z.ZodOptional<z.ZodString>;
|
|
502
|
+
color: z.ZodOptional<z.ZodString>;
|
|
503
|
+
type: z.ZodOptional<z.ZodString>;
|
|
504
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
505
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
506
|
+
since: z.ZodOptional<z.ZodString>;
|
|
507
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
508
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
509
|
+
since: z.ZodOptional<z.ZodString>;
|
|
510
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
511
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
512
|
+
since: z.ZodOptional<z.ZodString>;
|
|
513
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
514
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
515
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
516
|
+
status: z.ZodOptional<z.ZodString>;
|
|
517
|
+
color: z.ZodOptional<z.ZodString>;
|
|
518
|
+
type: z.ZodOptional<z.ZodString>;
|
|
519
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
520
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
521
|
+
since: z.ZodOptional<z.ZodString>;
|
|
522
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
523
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
524
|
+
since: z.ZodOptional<z.ZodString>;
|
|
525
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
526
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
527
|
+
since: z.ZodOptional<z.ZodString>;
|
|
528
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
529
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
530
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
531
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
532
|
+
current_status: z.ZodOptional<z.ZodObject<{
|
|
533
|
+
status: z.ZodOptional<z.ZodString>;
|
|
534
|
+
color: z.ZodOptional<z.ZodString>;
|
|
535
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
536
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
537
|
+
since: z.ZodOptional<z.ZodString>;
|
|
538
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
539
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
540
|
+
since: z.ZodOptional<z.ZodString>;
|
|
541
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
542
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
543
|
+
since: z.ZodOptional<z.ZodString>;
|
|
544
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
545
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
546
|
+
status: z.ZodOptional<z.ZodString>;
|
|
547
|
+
color: z.ZodOptional<z.ZodString>;
|
|
548
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
549
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
550
|
+
since: z.ZodOptional<z.ZodString>;
|
|
551
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
552
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
553
|
+
since: z.ZodOptional<z.ZodString>;
|
|
554
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
555
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
556
|
+
since: z.ZodOptional<z.ZodString>;
|
|
557
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
558
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
559
|
+
status: z.ZodOptional<z.ZodString>;
|
|
560
|
+
color: z.ZodOptional<z.ZodString>;
|
|
561
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
562
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
563
|
+
since: z.ZodOptional<z.ZodString>;
|
|
564
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
565
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
566
|
+
since: z.ZodOptional<z.ZodString>;
|
|
567
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
568
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
569
|
+
since: z.ZodOptional<z.ZodString>;
|
|
570
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
571
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
572
|
+
status_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
573
|
+
status: z.ZodOptional<z.ZodString>;
|
|
574
|
+
color: z.ZodOptional<z.ZodString>;
|
|
575
|
+
type: z.ZodOptional<z.ZodString>;
|
|
576
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
577
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
578
|
+
since: z.ZodOptional<z.ZodString>;
|
|
579
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
580
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
581
|
+
since: z.ZodOptional<z.ZodString>;
|
|
582
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
583
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
584
|
+
since: z.ZodOptional<z.ZodString>;
|
|
585
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
586
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
587
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
588
|
+
status: z.ZodOptional<z.ZodString>;
|
|
589
|
+
color: z.ZodOptional<z.ZodString>;
|
|
590
|
+
type: z.ZodOptional<z.ZodString>;
|
|
591
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
592
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
593
|
+
since: z.ZodOptional<z.ZodString>;
|
|
594
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
595
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
596
|
+
since: z.ZodOptional<z.ZodString>;
|
|
597
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
598
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
599
|
+
since: z.ZodOptional<z.ZodString>;
|
|
600
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
601
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
602
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
603
|
+
status: z.ZodOptional<z.ZodString>;
|
|
604
|
+
color: z.ZodOptional<z.ZodString>;
|
|
605
|
+
type: z.ZodOptional<z.ZodString>;
|
|
606
|
+
total_time: z.ZodOptional<z.ZodObject<{
|
|
607
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
608
|
+
since: z.ZodOptional<z.ZodString>;
|
|
609
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
610
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
611
|
+
since: z.ZodOptional<z.ZodString>;
|
|
612
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
613
|
+
by_minute: z.ZodOptional<z.ZodNumber>;
|
|
614
|
+
since: z.ZodOptional<z.ZodString>;
|
|
615
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
616
|
+
orderindex: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
617
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
618
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
89
619
|
export declare const TimeEntriesResponseSchema: z.ZodObject<{
|
|
90
620
|
data: z.ZodArray<z.ZodUnknown, "many">;
|
|
91
621
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -65,6 +65,47 @@ export const GoalTargetResponseSchema = z.object({
|
|
|
65
65
|
target: z.record(z.unknown())
|
|
66
66
|
}).passthrough();
|
|
67
67
|
// ========================================
|
|
68
|
+
// TIME IN STATUS
|
|
69
|
+
// ========================================
|
|
70
|
+
/**
|
|
71
|
+
* A single status_history entry. ClickUp's API legitimately omits `orderindex`
|
|
72
|
+
* on some entries (observed across many tasks in real workspaces). All fields
|
|
73
|
+
* are optional to surface partial data rather than rejecting the whole response.
|
|
74
|
+
*/
|
|
75
|
+
const StatusHistoryEntrySchema = z.object({
|
|
76
|
+
status: z.string().optional(),
|
|
77
|
+
color: z.string().optional(),
|
|
78
|
+
type: z.string().optional(),
|
|
79
|
+
total_time: z.object({
|
|
80
|
+
by_minute: z.number().optional(),
|
|
81
|
+
since: z.string().optional()
|
|
82
|
+
}).passthrough().optional(),
|
|
83
|
+
orderindex: z.union([z.number(), z.string()]).optional(),
|
|
84
|
+
// ClickUp may emit additional fields per status (e.g., custom-status edges)
|
|
85
|
+
}).passthrough();
|
|
86
|
+
const CurrentStatusSchema = z.object({
|
|
87
|
+
status: z.string().optional(),
|
|
88
|
+
color: z.string().optional(),
|
|
89
|
+
total_time: z.object({
|
|
90
|
+
by_minute: z.number().optional(),
|
|
91
|
+
since: z.string().optional()
|
|
92
|
+
}).passthrough().optional()
|
|
93
|
+
}).passthrough();
|
|
94
|
+
/** Response shape for GET /task/{task_id}/time_in_status */
|
|
95
|
+
export const TaskTimeInStatusResponseSchema = z.object({
|
|
96
|
+
current_status: CurrentStatusSchema.optional(),
|
|
97
|
+
status_history: z.array(StatusHistoryEntrySchema).optional()
|
|
98
|
+
}).passthrough();
|
|
99
|
+
/**
|
|
100
|
+
* Response shape for GET /task/bulk_time_in_status/task_ids
|
|
101
|
+
* Maps task_id -> { current_status, status_history }.
|
|
102
|
+
* Each task entry uses the same lenient schema.
|
|
103
|
+
*/
|
|
104
|
+
export const BulkTasksTimeInStatusResponseSchema = z.record(z.object({
|
|
105
|
+
current_status: CurrentStatusSchema.optional(),
|
|
106
|
+
status_history: z.array(StatusHistoryEntrySchema).optional()
|
|
107
|
+
}).passthrough());
|
|
108
|
+
// ========================================
|
|
68
109
|
// TIME TRACKING
|
|
69
110
|
// ========================================
|
|
70
111
|
export const TimeEntriesResponseSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-schemas.js","sourceRoot":"","sources":["../../src/schemas/response-schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,2CAA2C;AAC3C,4BAA4B;AAC5B,2CAA2C;AAE3C,sDAAsD;AACtD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;AAEhE,mCAAmC;AACnC,MAAM,cAAc,GAAG,CAAC,GAAW,EAAE,EAAE,CACrC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;AAE3D,wCAAwC;AACxC,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,EAAE,CACnC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,CAA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G,YAAY,CAAC,YAAY,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;AAE7D,2CAA2C;AAC3C,qBAAqB;AACrB,2CAA2C;AAE3C;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAC9B,MAAsB,EACtB,IAAa,EACb,OAAe;IAEf,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM;SAC/B,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC;SAC7C,IAAI,CAAC,IAAI,CAAC,CAAC;IACd,MAAM,IAAI,KAAK,CACb,qCAAqC,OAAO,KAAK,MAAM,IAAI;QAC3D,sDAAsD,MAAM,CAAC,IAAI,CAAC,IAA+B,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CACjH,CAAC;AACJ,CAAC"}
|
|
@@ -44,9 +44,9 @@ export declare const CreateTimeEntrySchema: z.ZodObject<{
|
|
|
44
44
|
creator?: number | undefined;
|
|
45
45
|
}>, "many">>;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
team_id: string;
|
|
47
48
|
description: string;
|
|
48
49
|
start: number;
|
|
49
|
-
team_id: string;
|
|
50
50
|
billable: boolean;
|
|
51
51
|
task_id?: string | undefined;
|
|
52
52
|
tags?: {
|
|
@@ -58,9 +58,9 @@ export declare const CreateTimeEntrySchema: z.ZodObject<{
|
|
|
58
58
|
assignee?: number | undefined;
|
|
59
59
|
end?: number | undefined;
|
|
60
60
|
}, {
|
|
61
|
+
team_id: string;
|
|
61
62
|
description: string;
|
|
62
63
|
start: number;
|
|
63
|
-
team_id: string;
|
|
64
64
|
task_id?: string | undefined;
|
|
65
65
|
tags?: {
|
|
66
66
|
name: string;
|
|
@@ -147,9 +147,9 @@ export declare const GetTimeEntriesSchema: z.ZodObject<{
|
|
|
147
147
|
list_id: z.ZodOptional<z.ZodString>;
|
|
148
148
|
task_id: z.ZodOptional<z.ZodString>;
|
|
149
149
|
}, "strip", z.ZodTypeAny, {
|
|
150
|
+
team_id: string;
|
|
150
151
|
include_task_tags: boolean;
|
|
151
152
|
include_location_names: boolean;
|
|
152
|
-
team_id: string;
|
|
153
153
|
task_id?: string | undefined;
|
|
154
154
|
start_date?: number | undefined;
|
|
155
155
|
list_id?: string | undefined;
|
|
@@ -300,15 +300,15 @@ export declare const TimeEntryResponseSchema: z.ZodObject<{
|
|
|
300
300
|
initials: z.ZodString;
|
|
301
301
|
profilePicture: z.ZodString;
|
|
302
302
|
}, "strip", z.ZodTypeAny, {
|
|
303
|
-
id: number;
|
|
304
303
|
color: string;
|
|
304
|
+
id: number;
|
|
305
305
|
email: string;
|
|
306
306
|
username: string;
|
|
307
307
|
initials: string;
|
|
308
308
|
profilePicture: string;
|
|
309
309
|
}, {
|
|
310
|
-
id: number;
|
|
311
310
|
color: string;
|
|
311
|
+
id: number;
|
|
312
312
|
email: string;
|
|
313
313
|
username: string;
|
|
314
314
|
initials: string;
|
|
@@ -341,8 +341,8 @@ export declare const TimeEntryResponseSchema: z.ZodObject<{
|
|
|
341
341
|
source: string;
|
|
342
342
|
at: string;
|
|
343
343
|
user: {
|
|
344
|
-
id: number;
|
|
345
344
|
color: string;
|
|
345
|
+
id: number;
|
|
346
346
|
email: string;
|
|
347
347
|
username: string;
|
|
348
348
|
initials: string;
|
|
@@ -376,8 +376,8 @@ export declare const TimeEntryResponseSchema: z.ZodObject<{
|
|
|
376
376
|
source: string;
|
|
377
377
|
at: string;
|
|
378
378
|
user: {
|
|
379
|
-
id: number;
|
|
380
379
|
color: string;
|
|
380
|
+
id: number;
|
|
381
381
|
email: string;
|
|
382
382
|
username: string;
|
|
383
383
|
initials: string;
|
|
@@ -535,9 +535,9 @@ export declare const TimeTrackingToolSchemas: {
|
|
|
535
535
|
creator?: number | undefined;
|
|
536
536
|
}>, "many">>;
|
|
537
537
|
}, "strip", z.ZodTypeAny, {
|
|
538
|
+
team_id: string;
|
|
538
539
|
description: string;
|
|
539
540
|
start: number;
|
|
540
|
-
team_id: string;
|
|
541
541
|
billable: boolean;
|
|
542
542
|
task_id?: string | undefined;
|
|
543
543
|
tags?: {
|
|
@@ -549,9 +549,9 @@ export declare const TimeTrackingToolSchemas: {
|
|
|
549
549
|
assignee?: number | undefined;
|
|
550
550
|
end?: number | undefined;
|
|
551
551
|
}, {
|
|
552
|
+
team_id: string;
|
|
552
553
|
description: string;
|
|
553
554
|
start: number;
|
|
554
|
-
team_id: string;
|
|
555
555
|
task_id?: string | undefined;
|
|
556
556
|
tags?: {
|
|
557
557
|
name: string;
|
|
@@ -638,9 +638,9 @@ export declare const TimeTrackingToolSchemas: {
|
|
|
638
638
|
list_id: z.ZodOptional<z.ZodString>;
|
|
639
639
|
task_id: z.ZodOptional<z.ZodString>;
|
|
640
640
|
}, "strip", z.ZodTypeAny, {
|
|
641
|
+
team_id: string;
|
|
641
642
|
include_task_tags: boolean;
|
|
642
643
|
include_location_names: boolean;
|
|
643
|
-
team_id: string;
|
|
644
644
|
task_id?: string | undefined;
|
|
645
645
|
start_date?: number | undefined;
|
|
646
646
|
list_id?: string | undefined;
|
|
@@ -193,5 +193,57 @@ export function setupTaskTools(server) {
|
|
|
193
193
|
return mcpError('removing task from list', error);
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
|
+
server.tool('clickup_get_task_time_in_status', "Get a ClickUp task's time-in-status data: current status (with elapsed time) plus the full status_history. Requires the workspace's \"Total time in Status\" ClickApp to be enabled. Response fields (including status_history[*].orderindex) may be omitted by ClickUp on some entries and are tolerated rather than rejected.", {
|
|
197
|
+
task_id: z.string().describe('The ID of the task'),
|
|
198
|
+
custom_task_ids: z
|
|
199
|
+
.boolean()
|
|
200
|
+
.optional()
|
|
201
|
+
.describe('Set true when task_id is a custom task ID (also requires team_id)'),
|
|
202
|
+
team_id: z
|
|
203
|
+
.string()
|
|
204
|
+
.optional()
|
|
205
|
+
.describe('Workspace (team) ID — required when custom_task_ids is true')
|
|
206
|
+
}, async ({ task_id, custom_task_ids, team_id }) => {
|
|
207
|
+
try {
|
|
208
|
+
const result = await tasksClient.getTaskTimeInStatus(task_id, {
|
|
209
|
+
custom_task_ids,
|
|
210
|
+
team_id
|
|
211
|
+
});
|
|
212
|
+
return {
|
|
213
|
+
content: [{ type: 'text', text: JSON.stringify(result, null, 2) }]
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
catch (error) {
|
|
217
|
+
return mcpError('getting task time in status', error);
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
server.tool('clickup_get_bulk_tasks_time_in_status', 'Get time-in-status data for multiple ClickUp tasks in one call (2–100 task IDs). Returns an object keyed by task_id with { current_status, status_history }. Requires the workspace\'s "Total time in Status" ClickApp to be enabled. Schema is lenient: per-entry fields like orderindex are optional and partial responses are surfaced rather than rejected.', {
|
|
221
|
+
task_ids: z
|
|
222
|
+
.array(z.string())
|
|
223
|
+
.min(2)
|
|
224
|
+
.max(100)
|
|
225
|
+
.describe('2 to 100 task IDs (ClickUp API constraints)'),
|
|
226
|
+
custom_task_ids: z
|
|
227
|
+
.boolean()
|
|
228
|
+
.optional()
|
|
229
|
+
.describe('Set true when task_ids are custom task IDs (also requires team_id)'),
|
|
230
|
+
team_id: z
|
|
231
|
+
.string()
|
|
232
|
+
.optional()
|
|
233
|
+
.describe('Workspace (team) ID — required when custom_task_ids is true')
|
|
234
|
+
}, async ({ task_ids, custom_task_ids, team_id }) => {
|
|
235
|
+
try {
|
|
236
|
+
const result = await tasksClient.getBulkTasksTimeInStatus(task_ids, {
|
|
237
|
+
custom_task_ids,
|
|
238
|
+
team_id
|
|
239
|
+
});
|
|
240
|
+
return {
|
|
241
|
+
content: [{ type: 'text', text: JSON.stringify(result, null, 2) }]
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
catch (error) {
|
|
245
|
+
return mcpError('getting bulk tasks time in status', error);
|
|
246
|
+
}
|
|
247
|
+
});
|
|
196
248
|
}
|
|
197
249
|
//# sourceMappingURL=task-tools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-tools.js","sourceRoot":"","sources":["../../src/tools/task-tools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAsC,MAAM,4BAA4B,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,iBAAiB;AACjB,MAAM,aAAa,GAAG,mBAAmB,EAAE,CAAC;AAC5C,MAAM,WAAW,GAAG,iBAAiB,CAAC,aAAa,CAAC,CAAC;AACrD,MAAM,WAAW,GAAG,iBAAiB,CAAC,aAAa,CAAC,CAAC;AAErD,MAAM,UAAU,cAAc,CAAC,MAAiB;IAC9C,aAAa;IACb,MAAM,CAAC,IAAI,CACT,mBAAmB,EACnB,yGAAyG,EACzG;QACE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACpE,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;QAClF,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;QACvF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,C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2",
|
|
4
4
|
"description": "An intelligent Model Context Protocol server for ClickUp API integration with 177+ tools, AI-powered efficiency optimization, smart tool suggestions, and context-aware workflow recommendations",
|
|
5
5
|
"main": "build/index-enhanced.js",
|
|
6
6
|
"bin": {
|