@chykalophia/clickup-mcp-server 5.0.0 → 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/comment-tools.js +39 -6
- package/build/tools/comment-tools.js.map +1 -1
- package/build/tools/task-tools.js +52 -0
- package/build/tools/task-tools.js.map +1 -1
- package/build/utils/clickup-comment-formatter.d.ts +12 -1
- package/build/utils/clickup-comment-formatter.js +14 -15
- package/build/utils/clickup-comment-formatter.js.map +1 -1
- package/package.json +3 -3
|
@@ -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;IA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,EAAE,aAAa;SACjC,CAAC;IACJ,CAAC;CACF;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAAqB,EAAe,EAAE;IACtE,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;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
|
}>;
|