@critical-path/core 0.26.0 → 0.28.0
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/CHANGELOG.md +50 -0
- package/README.md +15 -0
- package/dist/domain/custom-fields.d.ts +7 -2
- package/dist/domain/custom-fields.d.ts.map +1 -1
- package/dist/domain/custom-fields.js +23 -1
- package/dist/domain/custom-fields.js.map +1 -1
- package/dist/domain/events.d.ts +5 -0
- package/dist/domain/events.d.ts.map +1 -1
- package/dist/domain/events.js +34 -0
- package/dist/domain/events.js.map +1 -1
- package/dist/engine/index.d.ts +30 -2
- package/dist/engine/index.d.ts.map +1 -1
- package/dist/engine/index.js +133 -77
- package/dist/engine/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/plugins/index.d.ts +13 -3
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +44 -15
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/plugins.test.d.ts +2 -0
- package/dist/plugins/plugins.test.d.ts.map +1 -0
- package/dist/plugins/plugins.test.js +137 -0
- package/dist/plugins/plugins.test.js.map +1 -0
- package/dist/schemas/index.d.ts +167 -121
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +15 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/schemas.test.js +1 -0
- package/dist/schemas/schemas.test.js.map +1 -1
- package/dist/store/firebase.d.ts +3 -0
- package/dist/store/firebase.d.ts.map +1 -1
- package/dist/store/firebase.js +21 -0
- package/dist/store/firebase.js.map +1 -1
- package/dist/store/firebase.test.js +17 -0
- package/dist/store/firebase.test.js.map +1 -1
- package/dist/store/index.d.ts +6 -0
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +14 -0
- package/dist/store/index.js.map +1 -1
- package/dist/store/sqlite.d.ts +4 -0
- package/dist/store/sqlite.d.ts.map +1 -1
- package/dist/store/sqlite.js +42 -8
- package/dist/store/sqlite.js.map +1 -1
- package/dist/types/index.d.ts +67 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/webhooks/dispatcher.d.ts +80 -0
- package/dist/webhooks/dispatcher.d.ts.map +1 -0
- package/dist/webhooks/dispatcher.js +133 -0
- package/dist/webhooks/dispatcher.js.map +1 -0
- package/dist/webhooks/index.d.ts +3 -0
- package/dist/webhooks/index.d.ts.map +1 -0
- package/dist/webhooks/index.js +3 -0
- package/dist/webhooks/index.js.map +1 -0
- package/dist/webhooks/signature.d.ts +28 -0
- package/dist/webhooks/signature.d.ts.map +1 -0
- package/dist/webhooks/signature.js +42 -0
- package/dist/webhooks/signature.js.map +1 -0
- package/dist/webhooks/webhooks.test.d.ts +2 -0
- package/dist/webhooks/webhooks.test.d.ts.map +1 -0
- package/dist/webhooks/webhooks.test.js +153 -0
- package/dist/webhooks/webhooks.test.js.map +1 -0
- package/package.json +1 -1
- package/src/domain/custom-fields.ts +43 -2
- package/src/domain/events.ts +42 -3
- package/src/engine/index.ts +170 -84
- package/src/index.ts +1 -0
- package/src/plugins/index.ts +51 -16
- package/src/plugins/plugins.test.ts +161 -0
- package/src/schemas/index.ts +19 -1
- package/src/schemas/schemas.test.ts +6 -3
- package/src/store/firebase.test.ts +20 -0
- package/src/store/firebase.ts +22 -0
- package/src/store/index.ts +19 -0
- package/src/store/sqlite.ts +54 -7
- package/src/types/index.ts +72 -33
- package/src/webhooks/dispatcher.ts +190 -0
- package/src/webhooks/index.ts +2 -0
- package/src/webhooks/signature.ts +57 -0
- package/src/webhooks/webhooks.test.ts +200 -0
- package/tsconfig.tsbuildinfo +1 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -22,11 +22,11 @@ export declare const StatusDefinitionSchema: z.ZodObject<{
|
|
|
22
22
|
category: z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>;
|
|
23
23
|
}, "strict", z.ZodTypeAny, {
|
|
24
24
|
key: string;
|
|
25
|
-
category: "
|
|
25
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
26
26
|
label: string;
|
|
27
27
|
}, {
|
|
28
28
|
key: string;
|
|
29
|
-
category: "
|
|
29
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
30
30
|
label: string;
|
|
31
31
|
}>;
|
|
32
32
|
export declare const WorkScheduleSchema: z.ZodObject<{
|
|
@@ -84,8 +84,8 @@ export declare const WorkScheduleSchema: z.ZodObject<{
|
|
|
84
84
|
end: string;
|
|
85
85
|
}[] | undefined;
|
|
86
86
|
}[];
|
|
87
|
-
id?: string | undefined;
|
|
88
87
|
name?: string | undefined;
|
|
88
|
+
id?: string | undefined;
|
|
89
89
|
defaultHoursPerDay?: number | undefined;
|
|
90
90
|
timezone?: string | undefined;
|
|
91
91
|
holidays?: {
|
|
@@ -102,8 +102,8 @@ export declare const WorkScheduleSchema: z.ZodObject<{
|
|
|
102
102
|
end: string;
|
|
103
103
|
}[] | undefined;
|
|
104
104
|
}[];
|
|
105
|
-
id?: string | undefined;
|
|
106
105
|
name?: string | undefined;
|
|
106
|
+
id?: string | undefined;
|
|
107
107
|
defaultHoursPerDay?: number | undefined;
|
|
108
108
|
timezone?: string | undefined;
|
|
109
109
|
holidays?: {
|
|
@@ -116,14 +116,15 @@ export declare const CustomFieldDefinitionSchema: z.ZodObject<{
|
|
|
116
116
|
id: z.ZodString;
|
|
117
117
|
key: z.ZodString;
|
|
118
118
|
label: z.ZodString;
|
|
119
|
-
type
|
|
119
|
+
/** Built-in type or one registered by a plugin (checked by the engine). */
|
|
120
|
+
type: z.ZodString;
|
|
120
121
|
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
121
122
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
122
123
|
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
123
124
|
}, "strict", z.ZodTypeAny, {
|
|
124
125
|
id: string;
|
|
125
126
|
key: string;
|
|
126
|
-
type:
|
|
127
|
+
type: string;
|
|
127
128
|
label: string;
|
|
128
129
|
options?: string[] | undefined;
|
|
129
130
|
required?: boolean | undefined;
|
|
@@ -131,7 +132,7 @@ export declare const CustomFieldDefinitionSchema: z.ZodObject<{
|
|
|
131
132
|
}, {
|
|
132
133
|
id: string;
|
|
133
134
|
key: string;
|
|
134
|
-
type:
|
|
135
|
+
type: string;
|
|
135
136
|
label: string;
|
|
136
137
|
options?: string[] | undefined;
|
|
137
138
|
required?: boolean | undefined;
|
|
@@ -168,11 +169,11 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
168
169
|
category: z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>;
|
|
169
170
|
}, "strict", z.ZodTypeAny, {
|
|
170
171
|
key: string;
|
|
171
|
-
category: "
|
|
172
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
172
173
|
label: string;
|
|
173
174
|
}, {
|
|
174
175
|
key: string;
|
|
175
|
-
category: "
|
|
176
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
176
177
|
label: string;
|
|
177
178
|
}>, "many">;
|
|
178
179
|
transitions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -183,13 +184,13 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
183
184
|
}, "strict", z.ZodTypeAny, {
|
|
184
185
|
fromStatusKey: string;
|
|
185
186
|
toStatusKey: string;
|
|
186
|
-
id?: string | undefined;
|
|
187
187
|
name?: string | undefined;
|
|
188
|
+
id?: string | undefined;
|
|
188
189
|
}, {
|
|
189
190
|
fromStatusKey: string;
|
|
190
191
|
toStatusKey: string;
|
|
191
|
-
id?: string | undefined;
|
|
192
192
|
name?: string | undefined;
|
|
193
|
+
id?: string | undefined;
|
|
193
194
|
}>, "many">>;
|
|
194
195
|
taskTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
195
196
|
key: z.ZodString;
|
|
@@ -217,16 +218,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
217
218
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
218
219
|
}, "strict", z.ZodTypeAny, {
|
|
219
220
|
name: string;
|
|
221
|
+
statuses: {
|
|
222
|
+
key: string;
|
|
223
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
224
|
+
label: string;
|
|
225
|
+
}[];
|
|
220
226
|
transitions: {
|
|
221
227
|
fromStatusKey: string;
|
|
222
228
|
toStatusKey: string;
|
|
223
|
-
id?: string | undefined;
|
|
224
229
|
name?: string | undefined;
|
|
225
|
-
|
|
226
|
-
statuses: {
|
|
227
|
-
key: string;
|
|
228
|
-
category: "in_progress" | "canceled" | "not_started" | "completed";
|
|
229
|
-
label: string;
|
|
230
|
+
id?: string | undefined;
|
|
230
231
|
}[];
|
|
231
232
|
description?: string | undefined;
|
|
232
233
|
taskTypes?: {
|
|
@@ -243,7 +244,7 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
243
244
|
name: string;
|
|
244
245
|
statuses: {
|
|
245
246
|
key: string;
|
|
246
|
-
category: "
|
|
247
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
247
248
|
label: string;
|
|
248
249
|
}[];
|
|
249
250
|
description?: string | undefined;
|
|
@@ -258,8 +259,8 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
258
259
|
transitions?: {
|
|
259
260
|
fromStatusKey: string;
|
|
260
261
|
toStatusKey: string;
|
|
261
|
-
id?: string | undefined;
|
|
262
262
|
name?: string | undefined;
|
|
263
|
+
id?: string | undefined;
|
|
263
264
|
}[] | undefined;
|
|
264
265
|
defaultStatusKey?: string | undefined;
|
|
265
266
|
isDefault?: boolean | undefined;
|
|
@@ -273,11 +274,11 @@ export declare const UpdateWorkflowSchema: z.ZodObject<{
|
|
|
273
274
|
category: z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>;
|
|
274
275
|
}, "strict", z.ZodTypeAny, {
|
|
275
276
|
key: string;
|
|
276
|
-
category: "
|
|
277
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
277
278
|
label: string;
|
|
278
279
|
}, {
|
|
279
280
|
key: string;
|
|
280
|
-
category: "
|
|
281
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
281
282
|
label: string;
|
|
282
283
|
}>, "many">>;
|
|
283
284
|
transitions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -288,13 +289,13 @@ export declare const UpdateWorkflowSchema: z.ZodObject<{
|
|
|
288
289
|
}, "strict", z.ZodTypeAny, {
|
|
289
290
|
fromStatusKey: string;
|
|
290
291
|
toStatusKey: string;
|
|
291
|
-
id?: string | undefined;
|
|
292
292
|
name?: string | undefined;
|
|
293
|
+
id?: string | undefined;
|
|
293
294
|
}, {
|
|
294
295
|
fromStatusKey: string;
|
|
295
296
|
toStatusKey: string;
|
|
296
|
-
id?: string | undefined;
|
|
297
297
|
name?: string | undefined;
|
|
298
|
+
id?: string | undefined;
|
|
298
299
|
}>, "many">>>;
|
|
299
300
|
taskTypes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
300
301
|
key: z.ZodString;
|
|
@@ -321,8 +322,8 @@ export declare const UpdateWorkflowSchema: z.ZodObject<{
|
|
|
321
322
|
defaultStatusKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
322
323
|
isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
323
324
|
}, "strict", z.ZodTypeAny, {
|
|
324
|
-
description?: string | undefined;
|
|
325
325
|
name?: string | undefined;
|
|
326
|
+
description?: string | undefined;
|
|
326
327
|
taskTypes?: {
|
|
327
328
|
key: string;
|
|
328
329
|
label: string;
|
|
@@ -331,22 +332,22 @@ export declare const UpdateWorkflowSchema: z.ZodObject<{
|
|
|
331
332
|
defaultStatusKey?: string | undefined;
|
|
332
333
|
icon?: string | undefined;
|
|
333
334
|
}[] | undefined;
|
|
335
|
+
statuses?: {
|
|
336
|
+
key: string;
|
|
337
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
338
|
+
label: string;
|
|
339
|
+
}[] | undefined;
|
|
334
340
|
transitions?: {
|
|
335
341
|
fromStatusKey: string;
|
|
336
342
|
toStatusKey: string;
|
|
337
|
-
id?: string | undefined;
|
|
338
343
|
name?: string | undefined;
|
|
339
|
-
|
|
340
|
-
statuses?: {
|
|
341
|
-
key: string;
|
|
342
|
-
category: "in_progress" | "canceled" | "not_started" | "completed";
|
|
343
|
-
label: string;
|
|
344
|
+
id?: string | undefined;
|
|
344
345
|
}[] | undefined;
|
|
345
346
|
defaultStatusKey?: string | undefined;
|
|
346
347
|
isDefault?: boolean | undefined;
|
|
347
348
|
}, {
|
|
348
|
-
description?: string | undefined;
|
|
349
349
|
name?: string | undefined;
|
|
350
|
+
description?: string | undefined;
|
|
350
351
|
taskTypes?: {
|
|
351
352
|
key: string;
|
|
352
353
|
label: string;
|
|
@@ -355,16 +356,16 @@ export declare const UpdateWorkflowSchema: z.ZodObject<{
|
|
|
355
356
|
defaultStatusKey?: string | undefined;
|
|
356
357
|
icon?: string | undefined;
|
|
357
358
|
}[] | undefined;
|
|
359
|
+
statuses?: {
|
|
360
|
+
key: string;
|
|
361
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
362
|
+
label: string;
|
|
363
|
+
}[] | undefined;
|
|
358
364
|
transitions?: {
|
|
359
365
|
fromStatusKey: string;
|
|
360
366
|
toStatusKey: string;
|
|
361
|
-
id?: string | undefined;
|
|
362
367
|
name?: string | undefined;
|
|
363
|
-
|
|
364
|
-
statuses?: {
|
|
365
|
-
key: string;
|
|
366
|
-
category: "in_progress" | "canceled" | "not_started" | "completed";
|
|
367
|
-
label: string;
|
|
368
|
+
id?: string | undefined;
|
|
368
369
|
}[] | undefined;
|
|
369
370
|
defaultStatusKey?: string | undefined;
|
|
370
371
|
isDefault?: boolean | undefined;
|
|
@@ -414,11 +415,11 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
414
415
|
category: z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>;
|
|
415
416
|
}, "strict", z.ZodTypeAny, {
|
|
416
417
|
key: string;
|
|
417
|
-
category: "
|
|
418
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
418
419
|
label: string;
|
|
419
420
|
}, {
|
|
420
421
|
key: string;
|
|
421
|
-
category: "
|
|
422
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
422
423
|
label: string;
|
|
423
424
|
}>, "many">>;
|
|
424
425
|
priorityDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -438,14 +439,15 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
438
439
|
id: z.ZodString;
|
|
439
440
|
key: z.ZodString;
|
|
440
441
|
label: z.ZodString;
|
|
441
|
-
type
|
|
442
|
+
/** Built-in type or one registered by a plugin (checked by the engine). */
|
|
443
|
+
type: z.ZodString;
|
|
442
444
|
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
443
445
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
444
446
|
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
445
447
|
}, "strict", z.ZodTypeAny, {
|
|
446
448
|
id: string;
|
|
447
449
|
key: string;
|
|
448
|
-
type:
|
|
450
|
+
type: string;
|
|
449
451
|
label: string;
|
|
450
452
|
options?: string[] | undefined;
|
|
451
453
|
required?: boolean | undefined;
|
|
@@ -453,7 +455,7 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
453
455
|
}, {
|
|
454
456
|
id: string;
|
|
455
457
|
key: string;
|
|
456
|
-
type:
|
|
458
|
+
type: string;
|
|
457
459
|
label: string;
|
|
458
460
|
options?: string[] | undefined;
|
|
459
461
|
required?: boolean | undefined;
|
|
@@ -514,8 +516,8 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
514
516
|
end: string;
|
|
515
517
|
}[] | undefined;
|
|
516
518
|
}[];
|
|
517
|
-
id?: string | undefined;
|
|
518
519
|
name?: string | undefined;
|
|
520
|
+
id?: string | undefined;
|
|
519
521
|
defaultHoursPerDay?: number | undefined;
|
|
520
522
|
timezone?: string | undefined;
|
|
521
523
|
holidays?: {
|
|
@@ -532,8 +534,8 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
532
534
|
end: string;
|
|
533
535
|
}[] | undefined;
|
|
534
536
|
}[];
|
|
535
|
-
id?: string | undefined;
|
|
536
537
|
name?: string | undefined;
|
|
538
|
+
id?: string | undefined;
|
|
537
539
|
defaultHoursPerDay?: number | undefined;
|
|
538
540
|
timezone?: string | undefined;
|
|
539
541
|
holidays?: {
|
|
@@ -565,7 +567,7 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
565
567
|
}[] | undefined;
|
|
566
568
|
statusDefinitions?: {
|
|
567
569
|
key: string;
|
|
568
|
-
category: "
|
|
570
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
569
571
|
label: string;
|
|
570
572
|
}[] | undefined;
|
|
571
573
|
priorityDefinitions?: {
|
|
@@ -576,7 +578,7 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
576
578
|
customFieldDefinitions?: {
|
|
577
579
|
id: string;
|
|
578
580
|
key: string;
|
|
579
|
-
type:
|
|
581
|
+
type: string;
|
|
580
582
|
label: string;
|
|
581
583
|
options?: string[] | undefined;
|
|
582
584
|
required?: boolean | undefined;
|
|
@@ -591,8 +593,8 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
591
593
|
end: string;
|
|
592
594
|
}[] | undefined;
|
|
593
595
|
}[];
|
|
594
|
-
id?: string | undefined;
|
|
595
596
|
name?: string | undefined;
|
|
597
|
+
id?: string | undefined;
|
|
596
598
|
defaultHoursPerDay?: number | undefined;
|
|
597
599
|
timezone?: string | undefined;
|
|
598
600
|
holidays?: {
|
|
@@ -624,7 +626,7 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
624
626
|
}[] | undefined;
|
|
625
627
|
statusDefinitions?: {
|
|
626
628
|
key: string;
|
|
627
|
-
category: "
|
|
629
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
628
630
|
label: string;
|
|
629
631
|
}[] | undefined;
|
|
630
632
|
priorityDefinitions?: {
|
|
@@ -635,7 +637,7 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
635
637
|
customFieldDefinitions?: {
|
|
636
638
|
id: string;
|
|
637
639
|
key: string;
|
|
638
|
-
type:
|
|
640
|
+
type: string;
|
|
639
641
|
label: string;
|
|
640
642
|
options?: string[] | undefined;
|
|
641
643
|
required?: boolean | undefined;
|
|
@@ -650,8 +652,8 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
650
652
|
end: string;
|
|
651
653
|
}[] | undefined;
|
|
652
654
|
}[];
|
|
653
|
-
id?: string | undefined;
|
|
654
655
|
name?: string | undefined;
|
|
656
|
+
id?: string | undefined;
|
|
655
657
|
defaultHoursPerDay?: number | undefined;
|
|
656
658
|
timezone?: string | undefined;
|
|
657
659
|
holidays?: {
|
|
@@ -708,11 +710,11 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
708
710
|
category: z.ZodEnum<["not_started", "in_progress", "completed", "canceled"]>;
|
|
709
711
|
}, "strict", z.ZodTypeAny, {
|
|
710
712
|
key: string;
|
|
711
|
-
category: "
|
|
713
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
712
714
|
label: string;
|
|
713
715
|
}, {
|
|
714
716
|
key: string;
|
|
715
|
-
category: "
|
|
717
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
716
718
|
label: string;
|
|
717
719
|
}>, "many">>>;
|
|
718
720
|
priorityDefinitions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -732,14 +734,15 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
732
734
|
id: z.ZodString;
|
|
733
735
|
key: z.ZodString;
|
|
734
736
|
label: z.ZodString;
|
|
735
|
-
type
|
|
737
|
+
/** Built-in type or one registered by a plugin (checked by the engine). */
|
|
738
|
+
type: z.ZodString;
|
|
736
739
|
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
737
740
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
738
741
|
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
739
742
|
}, "strict", z.ZodTypeAny, {
|
|
740
743
|
id: string;
|
|
741
744
|
key: string;
|
|
742
|
-
type:
|
|
745
|
+
type: string;
|
|
743
746
|
label: string;
|
|
744
747
|
options?: string[] | undefined;
|
|
745
748
|
required?: boolean | undefined;
|
|
@@ -747,7 +750,7 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
747
750
|
}, {
|
|
748
751
|
id: string;
|
|
749
752
|
key: string;
|
|
750
|
-
type:
|
|
753
|
+
type: string;
|
|
751
754
|
label: string;
|
|
752
755
|
options?: string[] | undefined;
|
|
753
756
|
required?: boolean | undefined;
|
|
@@ -808,8 +811,8 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
808
811
|
end: string;
|
|
809
812
|
}[] | undefined;
|
|
810
813
|
}[];
|
|
811
|
-
id?: string | undefined;
|
|
812
814
|
name?: string | undefined;
|
|
815
|
+
id?: string | undefined;
|
|
813
816
|
defaultHoursPerDay?: number | undefined;
|
|
814
817
|
timezone?: string | undefined;
|
|
815
818
|
holidays?: {
|
|
@@ -826,8 +829,8 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
826
829
|
end: string;
|
|
827
830
|
}[] | undefined;
|
|
828
831
|
}[];
|
|
829
|
-
id?: string | undefined;
|
|
830
832
|
name?: string | undefined;
|
|
833
|
+
id?: string | undefined;
|
|
831
834
|
defaultHoursPerDay?: number | undefined;
|
|
832
835
|
timezone?: string | undefined;
|
|
833
836
|
holidays?: {
|
|
@@ -839,9 +842,9 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
839
842
|
startDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
840
843
|
targetEndDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
841
844
|
}, "strict", z.ZodTypeAny, {
|
|
845
|
+
name?: string | undefined;
|
|
842
846
|
key?: string | undefined;
|
|
843
847
|
description?: string | undefined;
|
|
844
|
-
name?: string | undefined;
|
|
845
848
|
ownerId?: string | undefined;
|
|
846
849
|
members?: {
|
|
847
850
|
userId: string;
|
|
@@ -859,7 +862,7 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
859
862
|
}[] | undefined;
|
|
860
863
|
statusDefinitions?: {
|
|
861
864
|
key: string;
|
|
862
|
-
category: "
|
|
865
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
863
866
|
label: string;
|
|
864
867
|
}[] | undefined;
|
|
865
868
|
priorityDefinitions?: {
|
|
@@ -870,7 +873,7 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
870
873
|
customFieldDefinitions?: {
|
|
871
874
|
id: string;
|
|
872
875
|
key: string;
|
|
873
|
-
type:
|
|
876
|
+
type: string;
|
|
874
877
|
label: string;
|
|
875
878
|
options?: string[] | undefined;
|
|
876
879
|
required?: boolean | undefined;
|
|
@@ -885,8 +888,8 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
885
888
|
end: string;
|
|
886
889
|
}[] | undefined;
|
|
887
890
|
}[];
|
|
888
|
-
id?: string | undefined;
|
|
889
891
|
name?: string | undefined;
|
|
892
|
+
id?: string | undefined;
|
|
890
893
|
defaultHoursPerDay?: number | undefined;
|
|
891
894
|
timezone?: string | undefined;
|
|
892
895
|
holidays?: {
|
|
@@ -898,9 +901,9 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
898
901
|
startDate?: string | undefined;
|
|
899
902
|
targetEndDate?: string | undefined;
|
|
900
903
|
}, {
|
|
904
|
+
name?: string | undefined;
|
|
901
905
|
key?: string | undefined;
|
|
902
906
|
description?: string | undefined;
|
|
903
|
-
name?: string | undefined;
|
|
904
907
|
ownerId?: string | undefined;
|
|
905
908
|
members?: {
|
|
906
909
|
userId: string;
|
|
@@ -918,7 +921,7 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
918
921
|
}[] | undefined;
|
|
919
922
|
statusDefinitions?: {
|
|
920
923
|
key: string;
|
|
921
|
-
category: "
|
|
924
|
+
category: "canceled" | "in_progress" | "not_started" | "completed";
|
|
922
925
|
label: string;
|
|
923
926
|
}[] | undefined;
|
|
924
927
|
priorityDefinitions?: {
|
|
@@ -929,7 +932,7 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
929
932
|
customFieldDefinitions?: {
|
|
930
933
|
id: string;
|
|
931
934
|
key: string;
|
|
932
|
-
type:
|
|
935
|
+
type: string;
|
|
933
936
|
label: string;
|
|
934
937
|
options?: string[] | undefined;
|
|
935
938
|
required?: boolean | undefined;
|
|
@@ -944,8 +947,8 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
944
947
|
end: string;
|
|
945
948
|
}[] | undefined;
|
|
946
949
|
}[];
|
|
947
|
-
id?: string | undefined;
|
|
948
950
|
name?: string | undefined;
|
|
951
|
+
id?: string | undefined;
|
|
949
952
|
defaultHoursPerDay?: number | undefined;
|
|
950
953
|
timezone?: string | undefined;
|
|
951
954
|
holidays?: {
|
|
@@ -1017,15 +1020,15 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
|
1017
1020
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
1018
1021
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
1019
1022
|
}, "strict", z.ZodTypeAny, {
|
|
1020
|
-
completed: boolean;
|
|
1021
1023
|
id: string;
|
|
1022
1024
|
title: string;
|
|
1025
|
+
completed: boolean;
|
|
1023
1026
|
createdAt?: string | undefined;
|
|
1024
1027
|
completedAt?: string | undefined;
|
|
1025
1028
|
}, {
|
|
1026
|
-
completed: boolean;
|
|
1027
1029
|
id: string;
|
|
1028
1030
|
title: string;
|
|
1031
|
+
completed: boolean;
|
|
1029
1032
|
createdAt?: string | undefined;
|
|
1030
1033
|
completedAt?: string | undefined;
|
|
1031
1034
|
}>, "many">>;
|
|
@@ -1035,10 +1038,10 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
|
1035
1038
|
}, "strict", z.ZodTypeAny, {
|
|
1036
1039
|
projectId: string;
|
|
1037
1040
|
title: string;
|
|
1041
|
+
description?: string | undefined;
|
|
1038
1042
|
status?: string | undefined;
|
|
1043
|
+
semanticStatus?: "canceled" | "in_progress" | "not_started" | "completed" | undefined;
|
|
1039
1044
|
priority?: string | undefined;
|
|
1040
|
-
description?: string | undefined;
|
|
1041
|
-
semanticStatus?: "in_progress" | "canceled" | "not_started" | "completed" | undefined;
|
|
1042
1045
|
taskType?: string | undefined;
|
|
1043
1046
|
assigneeId?: string | undefined;
|
|
1044
1047
|
assignees?: {
|
|
@@ -1075,9 +1078,9 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
|
1075
1078
|
blockedReason?: string | null | undefined;
|
|
1076
1079
|
tags?: string[] | undefined;
|
|
1077
1080
|
todos?: {
|
|
1078
|
-
completed: boolean;
|
|
1079
1081
|
id: string;
|
|
1080
1082
|
title: string;
|
|
1083
|
+
completed: boolean;
|
|
1081
1084
|
createdAt?: string | undefined;
|
|
1082
1085
|
completedAt?: string | undefined;
|
|
1083
1086
|
}[] | undefined;
|
|
@@ -1086,10 +1089,10 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
|
1086
1089
|
}, {
|
|
1087
1090
|
projectId: string;
|
|
1088
1091
|
title: string;
|
|
1092
|
+
description?: string | undefined;
|
|
1089
1093
|
status?: string | undefined;
|
|
1094
|
+
semanticStatus?: "canceled" | "in_progress" | "not_started" | "completed" | undefined;
|
|
1090
1095
|
priority?: string | undefined;
|
|
1091
|
-
description?: string | undefined;
|
|
1092
|
-
semanticStatus?: "in_progress" | "canceled" | "not_started" | "completed" | undefined;
|
|
1093
1096
|
taskType?: string | undefined;
|
|
1094
1097
|
assigneeId?: string | undefined;
|
|
1095
1098
|
assignees?: {
|
|
@@ -1126,9 +1129,9 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
|
1126
1129
|
blockedReason?: string | null | undefined;
|
|
1127
1130
|
tags?: string[] | undefined;
|
|
1128
1131
|
todos?: {
|
|
1129
|
-
completed: boolean;
|
|
1130
1132
|
id: string;
|
|
1131
1133
|
title: string;
|
|
1134
|
+
completed: boolean;
|
|
1132
1135
|
createdAt?: string | undefined;
|
|
1133
1136
|
completedAt?: string | undefined;
|
|
1134
1137
|
}[] | undefined;
|
|
@@ -1195,26 +1198,26 @@ export declare const UpdateTaskSchema: z.ZodObject<{
|
|
|
1195
1198
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
1196
1199
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
1197
1200
|
}, "strict", z.ZodTypeAny, {
|
|
1198
|
-
completed: boolean;
|
|
1199
1201
|
id: string;
|
|
1200
1202
|
title: string;
|
|
1203
|
+
completed: boolean;
|
|
1201
1204
|
createdAt?: string | undefined;
|
|
1202
1205
|
completedAt?: string | undefined;
|
|
1203
1206
|
}, {
|
|
1204
|
-
completed: boolean;
|
|
1205
1207
|
id: string;
|
|
1206
1208
|
title: string;
|
|
1209
|
+
completed: boolean;
|
|
1207
1210
|
createdAt?: string | undefined;
|
|
1208
1211
|
completedAt?: string | undefined;
|
|
1209
1212
|
}>, "many">>>;
|
|
1210
1213
|
customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1211
1214
|
parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1212
1215
|
}, "strict", z.ZodTypeAny, {
|
|
1216
|
+
description?: string | undefined;
|
|
1217
|
+
title?: string | undefined;
|
|
1213
1218
|
status?: string | undefined;
|
|
1219
|
+
semanticStatus?: "canceled" | "in_progress" | "not_started" | "completed" | undefined;
|
|
1214
1220
|
priority?: string | undefined;
|
|
1215
|
-
title?: string | undefined;
|
|
1216
|
-
description?: string | undefined;
|
|
1217
|
-
semanticStatus?: "in_progress" | "canceled" | "not_started" | "completed" | undefined;
|
|
1218
1221
|
taskType?: string | undefined;
|
|
1219
1222
|
assigneeId?: string | undefined;
|
|
1220
1223
|
assignees?: {
|
|
@@ -1251,20 +1254,20 @@ export declare const UpdateTaskSchema: z.ZodObject<{
|
|
|
1251
1254
|
blockedReason?: string | null | undefined;
|
|
1252
1255
|
tags?: string[] | undefined;
|
|
1253
1256
|
todos?: {
|
|
1254
|
-
completed: boolean;
|
|
1255
1257
|
id: string;
|
|
1256
1258
|
title: string;
|
|
1259
|
+
completed: boolean;
|
|
1257
1260
|
createdAt?: string | undefined;
|
|
1258
1261
|
completedAt?: string | undefined;
|
|
1259
1262
|
}[] | undefined;
|
|
1260
1263
|
customFields?: Record<string, unknown> | undefined;
|
|
1261
1264
|
parentId?: string | undefined;
|
|
1262
1265
|
}, {
|
|
1266
|
+
description?: string | undefined;
|
|
1267
|
+
title?: string | undefined;
|
|
1263
1268
|
status?: string | undefined;
|
|
1269
|
+
semanticStatus?: "canceled" | "in_progress" | "not_started" | "completed" | undefined;
|
|
1264
1270
|
priority?: string | undefined;
|
|
1265
|
-
title?: string | undefined;
|
|
1266
|
-
description?: string | undefined;
|
|
1267
|
-
semanticStatus?: "in_progress" | "canceled" | "not_started" | "completed" | undefined;
|
|
1268
1271
|
taskType?: string | undefined;
|
|
1269
1272
|
assigneeId?: string | undefined;
|
|
1270
1273
|
assignees?: {
|
|
@@ -1301,9 +1304,9 @@ export declare const UpdateTaskSchema: z.ZodObject<{
|
|
|
1301
1304
|
blockedReason?: string | null | undefined;
|
|
1302
1305
|
tags?: string[] | undefined;
|
|
1303
1306
|
todos?: {
|
|
1304
|
-
completed: boolean;
|
|
1305
1307
|
id: string;
|
|
1306
1308
|
title: string;
|
|
1309
|
+
completed: boolean;
|
|
1307
1310
|
createdAt?: string | undefined;
|
|
1308
1311
|
completedAt?: string | undefined;
|
|
1309
1312
|
}[] | undefined;
|
|
@@ -1336,8 +1339,8 @@ export declare const CreateDeliverableSchema: z.ZodObject<{
|
|
|
1336
1339
|
}, "strict", z.ZodTypeAny, {
|
|
1337
1340
|
projectId: string;
|
|
1338
1341
|
title: string;
|
|
1339
|
-
status?: string | undefined;
|
|
1340
1342
|
description?: string | undefined;
|
|
1343
|
+
status?: string | undefined;
|
|
1341
1344
|
reviewerId?: string | undefined;
|
|
1342
1345
|
dueDate?: string | undefined;
|
|
1343
1346
|
customFields?: Record<string, unknown> | undefined;
|
|
@@ -1349,8 +1352,8 @@ export declare const CreateDeliverableSchema: z.ZodObject<{
|
|
|
1349
1352
|
}, {
|
|
1350
1353
|
projectId: string;
|
|
1351
1354
|
title: string;
|
|
1352
|
-
status?: string | undefined;
|
|
1353
1355
|
description?: string | undefined;
|
|
1356
|
+
status?: string | undefined;
|
|
1354
1357
|
reviewerId?: string | undefined;
|
|
1355
1358
|
dueDate?: string | undefined;
|
|
1356
1359
|
customFields?: Record<string, unknown> | undefined;
|
|
@@ -1373,9 +1376,9 @@ export declare const UpdateDeliverableSchema: z.ZodObject<{
|
|
|
1373
1376
|
outputUrls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1374
1377
|
customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1375
1378
|
}, "strict", z.ZodTypeAny, {
|
|
1376
|
-
status?: string | undefined;
|
|
1377
|
-
title?: string | undefined;
|
|
1378
1379
|
description?: string | undefined;
|
|
1380
|
+
title?: string | undefined;
|
|
1381
|
+
status?: string | undefined;
|
|
1379
1382
|
reviewerId?: string | undefined;
|
|
1380
1383
|
dueDate?: string | undefined;
|
|
1381
1384
|
customFields?: Record<string, unknown> | undefined;
|
|
@@ -1385,9 +1388,9 @@ export declare const UpdateDeliverableSchema: z.ZodObject<{
|
|
|
1385
1388
|
deliveredAt?: string | undefined;
|
|
1386
1389
|
outputUrls?: string[] | undefined;
|
|
1387
1390
|
}, {
|
|
1388
|
-
status?: string | undefined;
|
|
1389
|
-
title?: string | undefined;
|
|
1390
1391
|
description?: string | undefined;
|
|
1392
|
+
title?: string | undefined;
|
|
1393
|
+
status?: string | undefined;
|
|
1391
1394
|
reviewerId?: string | undefined;
|
|
1392
1395
|
dueDate?: string | undefined;
|
|
1393
1396
|
customFields?: Record<string, unknown> | undefined;
|
|
@@ -1458,8 +1461,8 @@ export declare const CreateTeamSchema: z.ZodObject<{
|
|
|
1458
1461
|
end: string;
|
|
1459
1462
|
}[] | undefined;
|
|
1460
1463
|
}[];
|
|
1461
|
-
id?: string | undefined;
|
|
1462
1464
|
name?: string | undefined;
|
|
1465
|
+
id?: string | undefined;
|
|
1463
1466
|
defaultHoursPerDay?: number | undefined;
|
|
1464
1467
|
timezone?: string | undefined;
|
|
1465
1468
|
holidays?: {
|
|
@@ -1476,8 +1479,8 @@ export declare const CreateTeamSchema: z.ZodObject<{
|
|
|
1476
1479
|
end: string;
|
|
1477
1480
|
}[] | undefined;
|
|
1478
1481
|
}[];
|
|
1479
|
-
id?: string | undefined;
|
|
1480
1482
|
name?: string | undefined;
|
|
1483
|
+
id?: string | undefined;
|
|
1481
1484
|
defaultHoursPerDay?: number | undefined;
|
|
1482
1485
|
timezone?: string | undefined;
|
|
1483
1486
|
holidays?: {
|
|
@@ -1499,8 +1502,8 @@ export declare const CreateTeamSchema: z.ZodObject<{
|
|
|
1499
1502
|
end: string;
|
|
1500
1503
|
}[] | undefined;
|
|
1501
1504
|
}[];
|
|
1502
|
-
id?: string | undefined;
|
|
1503
1505
|
name?: string | undefined;
|
|
1506
|
+
id?: string | undefined;
|
|
1504
1507
|
defaultHoursPerDay?: number | undefined;
|
|
1505
1508
|
timezone?: string | undefined;
|
|
1506
1509
|
holidays?: {
|
|
@@ -1523,8 +1526,8 @@ export declare const CreateTeamSchema: z.ZodObject<{
|
|
|
1523
1526
|
end: string;
|
|
1524
1527
|
}[] | undefined;
|
|
1525
1528
|
}[];
|
|
1526
|
-
id?: string | undefined;
|
|
1527
1529
|
name?: string | undefined;
|
|
1530
|
+
id?: string | undefined;
|
|
1528
1531
|
defaultHoursPerDay?: number | undefined;
|
|
1529
1532
|
timezone?: string | undefined;
|
|
1530
1533
|
holidays?: {
|
|
@@ -1598,8 +1601,8 @@ export declare const UpdateTeamSchema: z.ZodObject<{
|
|
|
1598
1601
|
end: string;
|
|
1599
1602
|
}[] | undefined;
|
|
1600
1603
|
}[];
|
|
1601
|
-
id?: string | undefined;
|
|
1602
1604
|
name?: string | undefined;
|
|
1605
|
+
id?: string | undefined;
|
|
1603
1606
|
defaultHoursPerDay?: number | undefined;
|
|
1604
1607
|
timezone?: string | undefined;
|
|
1605
1608
|
holidays?: {
|
|
@@ -1616,8 +1619,8 @@ export declare const UpdateTeamSchema: z.ZodObject<{
|
|
|
1616
1619
|
end: string;
|
|
1617
1620
|
}[] | undefined;
|
|
1618
1621
|
}[];
|
|
1619
|
-
id?: string | undefined;
|
|
1620
1622
|
name?: string | undefined;
|
|
1623
|
+
id?: string | undefined;
|
|
1621
1624
|
defaultHoursPerDay?: number | undefined;
|
|
1622
1625
|
timezone?: string | undefined;
|
|
1623
1626
|
holidays?: {
|
|
@@ -1627,8 +1630,8 @@ export declare const UpdateTeamSchema: z.ZodObject<{
|
|
|
1627
1630
|
}[] | undefined;
|
|
1628
1631
|
}>>>;
|
|
1629
1632
|
}, "strict", z.ZodTypeAny, {
|
|
1630
|
-
description?: string | undefined;
|
|
1631
1633
|
name?: string | undefined;
|
|
1634
|
+
description?: string | undefined;
|
|
1632
1635
|
schedule?: {
|
|
1633
1636
|
days: {
|
|
1634
1637
|
isWorkingDay: boolean;
|
|
@@ -1638,8 +1641,8 @@ export declare const UpdateTeamSchema: z.ZodObject<{
|
|
|
1638
1641
|
end: string;
|
|
1639
1642
|
}[] | undefined;
|
|
1640
1643
|
}[];
|
|
1641
|
-
id?: string | undefined;
|
|
1642
1644
|
name?: string | undefined;
|
|
1645
|
+
id?: string | undefined;
|
|
1643
1646
|
defaultHoursPerDay?: number | undefined;
|
|
1644
1647
|
timezone?: string | undefined;
|
|
1645
1648
|
holidays?: {
|
|
@@ -1652,8 +1655,8 @@ export declare const UpdateTeamSchema: z.ZodObject<{
|
|
|
1652
1655
|
memberIds?: string[] | undefined;
|
|
1653
1656
|
weeklyCapacityHours?: number | undefined;
|
|
1654
1657
|
}, {
|
|
1655
|
-
description?: string | undefined;
|
|
1656
1658
|
name?: string | undefined;
|
|
1659
|
+
description?: string | undefined;
|
|
1657
1660
|
schedule?: {
|
|
1658
1661
|
days: {
|
|
1659
1662
|
isWorkingDay: boolean;
|
|
@@ -1663,8 +1666,8 @@ export declare const UpdateTeamSchema: z.ZodObject<{
|
|
|
1663
1666
|
end: string;
|
|
1664
1667
|
}[] | undefined;
|
|
1665
1668
|
}[];
|
|
1666
|
-
id?: string | undefined;
|
|
1667
1669
|
name?: string | undefined;
|
|
1670
|
+
id?: string | undefined;
|
|
1668
1671
|
defaultHoursPerDay?: number | undefined;
|
|
1669
1672
|
timezone?: string | undefined;
|
|
1670
1673
|
holidays?: {
|
|
@@ -1685,15 +1688,15 @@ export declare const CreateContainerSchema: z.ZodObject<{
|
|
|
1685
1688
|
color: z.ZodOptional<z.ZodString>;
|
|
1686
1689
|
projectId: z.ZodString;
|
|
1687
1690
|
}, "strict", z.ZodTypeAny, {
|
|
1688
|
-
projectId: string;
|
|
1689
1691
|
name: string;
|
|
1692
|
+
projectId: string;
|
|
1690
1693
|
description?: string | undefined;
|
|
1691
1694
|
parentId?: string | undefined;
|
|
1692
1695
|
type?: string | undefined;
|
|
1693
1696
|
color?: string | undefined;
|
|
1694
1697
|
}, {
|
|
1695
|
-
projectId: string;
|
|
1696
1698
|
name: string;
|
|
1699
|
+
projectId: string;
|
|
1697
1700
|
description?: string | undefined;
|
|
1698
1701
|
parentId?: string | undefined;
|
|
1699
1702
|
type?: string | undefined;
|
|
@@ -1706,15 +1709,15 @@ export declare const UpdateContainerSchema: z.ZodObject<{
|
|
|
1706
1709
|
type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1707
1710
|
color: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1708
1711
|
}, "strict", z.ZodTypeAny, {
|
|
1712
|
+
name?: string | undefined;
|
|
1709
1713
|
description?: string | undefined;
|
|
1710
1714
|
parentId?: string | undefined;
|
|
1711
|
-
name?: string | undefined;
|
|
1712
1715
|
type?: string | undefined;
|
|
1713
1716
|
color?: string | undefined;
|
|
1714
1717
|
}, {
|
|
1718
|
+
name?: string | undefined;
|
|
1715
1719
|
description?: string | undefined;
|
|
1716
1720
|
parentId?: string | undefined;
|
|
1717
|
-
name?: string | undefined;
|
|
1718
1721
|
type?: string | undefined;
|
|
1719
1722
|
color?: string | undefined;
|
|
1720
1723
|
}>;
|
|
@@ -1727,18 +1730,18 @@ export declare const CreateIterationSchema: z.ZodObject<{
|
|
|
1727
1730
|
status: z.ZodDefault<z.ZodEnum<["planning", "active", "completed"]>>;
|
|
1728
1731
|
projectId: z.ZodString;
|
|
1729
1732
|
}, "strict", z.ZodTypeAny, {
|
|
1730
|
-
status: "completed" | "planning" | "active";
|
|
1731
|
-
projectId: string;
|
|
1732
1733
|
name: string;
|
|
1734
|
+
projectId: string;
|
|
1735
|
+
status: "active" | "completed" | "planning";
|
|
1733
1736
|
startDate?: string | undefined;
|
|
1734
1737
|
type?: string | undefined;
|
|
1735
1738
|
goal?: string | undefined;
|
|
1736
1739
|
endDate?: string | undefined;
|
|
1737
1740
|
}, {
|
|
1738
|
-
projectId: string;
|
|
1739
1741
|
name: string;
|
|
1740
|
-
|
|
1742
|
+
projectId: string;
|
|
1741
1743
|
startDate?: string | undefined;
|
|
1744
|
+
status?: "active" | "completed" | "planning" | undefined;
|
|
1742
1745
|
type?: string | undefined;
|
|
1743
1746
|
goal?: string | undefined;
|
|
1744
1747
|
endDate?: string | undefined;
|
|
@@ -1751,16 +1754,16 @@ export declare const UpdateIterationSchema: z.ZodObject<{
|
|
|
1751
1754
|
startDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1752
1755
|
endDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1753
1756
|
}, "strip", z.ZodTypeAny, {
|
|
1754
|
-
status?: "completed" | "planning" | "active" | undefined;
|
|
1755
1757
|
name?: string | undefined;
|
|
1756
1758
|
startDate?: string | undefined;
|
|
1759
|
+
status?: "active" | "completed" | "planning" | undefined;
|
|
1757
1760
|
type?: string | undefined;
|
|
1758
1761
|
goal?: string | undefined;
|
|
1759
1762
|
endDate?: string | undefined;
|
|
1760
1763
|
}, {
|
|
1761
|
-
status?: "completed" | "planning" | "active" | undefined;
|
|
1762
1764
|
name?: string | undefined;
|
|
1763
1765
|
startDate?: string | undefined;
|
|
1766
|
+
status?: "active" | "completed" | "planning" | undefined;
|
|
1764
1767
|
type?: string | undefined;
|
|
1765
1768
|
goal?: string | undefined;
|
|
1766
1769
|
endDate?: string | undefined;
|
|
@@ -1775,27 +1778,27 @@ export declare const CreateCommentSchema: z.ZodObject<{
|
|
|
1775
1778
|
taskId: string;
|
|
1776
1779
|
content: string;
|
|
1777
1780
|
parentId?: string | undefined;
|
|
1778
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1779
1781
|
mentions?: string[] | undefined;
|
|
1782
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1780
1783
|
}, {
|
|
1781
1784
|
taskId: string;
|
|
1782
1785
|
content: string;
|
|
1783
1786
|
parentId?: string | undefined;
|
|
1784
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1785
1787
|
mentions?: string[] | undefined;
|
|
1788
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1786
1789
|
}>;
|
|
1787
1790
|
export declare const UpdateCommentSchema: z.ZodObject<{
|
|
1788
1791
|
content: z.ZodOptional<z.ZodString>;
|
|
1789
1792
|
mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1790
1793
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1791
1794
|
}, "strip", z.ZodTypeAny, {
|
|
1792
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1793
1795
|
content?: string | undefined;
|
|
1794
1796
|
mentions?: string[] | undefined;
|
|
1795
|
-
}, {
|
|
1796
1797
|
metadata?: Record<string, unknown> | undefined;
|
|
1798
|
+
}, {
|
|
1797
1799
|
content?: string | undefined;
|
|
1798
1800
|
mentions?: string[] | undefined;
|
|
1801
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1799
1802
|
}>;
|
|
1800
1803
|
export declare const CommentReactionSchema: z.ZodObject<{
|
|
1801
1804
|
emoji: z.ZodString;
|
|
@@ -1822,21 +1825,21 @@ export declare const CreateAttachmentSchema: z.ZodObject<{
|
|
|
1822
1825
|
url: string;
|
|
1823
1826
|
projectId?: string | undefined;
|
|
1824
1827
|
taskId?: string | undefined;
|
|
1828
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1825
1829
|
commentId?: string | undefined;
|
|
1826
1830
|
storageKey?: string | undefined;
|
|
1827
1831
|
artifactType?: "plan" | "spec" | "deliverable" | "review" | "general" | undefined;
|
|
1828
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1829
1832
|
}, {
|
|
1830
1833
|
filename: string;
|
|
1831
1834
|
url: string;
|
|
1832
1835
|
projectId?: string | undefined;
|
|
1833
1836
|
taskId?: string | undefined;
|
|
1837
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1834
1838
|
commentId?: string | undefined;
|
|
1835
1839
|
mimeType?: string | undefined;
|
|
1836
1840
|
sizeBytes?: number | undefined;
|
|
1837
1841
|
storageKey?: string | undefined;
|
|
1838
1842
|
artifactType?: "plan" | "spec" | "deliverable" | "review" | "general" | undefined;
|
|
1839
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1840
1843
|
}>;
|
|
1841
1844
|
export declare const UploadAttachmentSchema: z.ZodObject<{
|
|
1842
1845
|
filename: z.ZodString;
|
|
@@ -1854,23 +1857,23 @@ export declare const UploadAttachmentSchema: z.ZodObject<{
|
|
|
1854
1857
|
data: string;
|
|
1855
1858
|
projectId?: string | undefined;
|
|
1856
1859
|
taskId?: string | undefined;
|
|
1860
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1857
1861
|
commentId?: string | undefined;
|
|
1858
1862
|
mimeType?: string | undefined;
|
|
1859
1863
|
artifactType?: "plan" | "spec" | "deliverable" | "review" | "general" | undefined;
|
|
1860
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1861
1864
|
pathPrefix?: string | undefined;
|
|
1862
|
-
encoding?: "
|
|
1865
|
+
encoding?: "utf-8" | "base64" | "binary" | undefined;
|
|
1863
1866
|
}, {
|
|
1864
1867
|
filename: string;
|
|
1865
1868
|
data: string;
|
|
1866
1869
|
projectId?: string | undefined;
|
|
1867
1870
|
taskId?: string | undefined;
|
|
1871
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1868
1872
|
commentId?: string | undefined;
|
|
1869
1873
|
mimeType?: string | undefined;
|
|
1870
1874
|
artifactType?: "plan" | "spec" | "deliverable" | "review" | "general" | undefined;
|
|
1871
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1872
1875
|
pathPrefix?: string | undefined;
|
|
1873
|
-
encoding?: "
|
|
1876
|
+
encoding?: "utf-8" | "base64" | "binary" | undefined;
|
|
1874
1877
|
}>;
|
|
1875
1878
|
export declare const PresignAttachmentSchema: z.ZodObject<{
|
|
1876
1879
|
/** Project the upload belongs to; scoped callers may only write under `projects/<projectId>/`. */
|
|
@@ -1881,13 +1884,13 @@ export declare const PresignAttachmentSchema: z.ZodObject<{
|
|
|
1881
1884
|
}, "strict", z.ZodTypeAny, {
|
|
1882
1885
|
projectId: string;
|
|
1883
1886
|
storageKey: string;
|
|
1884
|
-
contentType?: string | undefined;
|
|
1885
1887
|
expiresInSeconds?: number | undefined;
|
|
1888
|
+
contentType?: string | undefined;
|
|
1886
1889
|
}, {
|
|
1887
1890
|
projectId: string;
|
|
1888
1891
|
storageKey: string;
|
|
1889
|
-
contentType?: string | undefined;
|
|
1890
1892
|
expiresInSeconds?: number | undefined;
|
|
1893
|
+
contentType?: string | undefined;
|
|
1891
1894
|
}>;
|
|
1892
1895
|
export declare const LogTimeSchema: z.ZodObject<{
|
|
1893
1896
|
taskId: z.ZodString;
|
|
@@ -1908,6 +1911,47 @@ export declare const LogTimeSchema: z.ZodObject<{
|
|
|
1908
1911
|
loggedAt?: string | undefined;
|
|
1909
1912
|
isBillable?: boolean | undefined;
|
|
1910
1913
|
}>;
|
|
1914
|
+
export declare const CreateWebhookSchema: z.ZodObject<{
|
|
1915
|
+
name: z.ZodString;
|
|
1916
|
+
/** http(s) URL; private and local addresses are rejected unless the engine allows them. */
|
|
1917
|
+
url: z.ZodString;
|
|
1918
|
+
/** Domain event names (e.g. `task.created`) or `'*'` for all events. */
|
|
1919
|
+
events: z.ZodArray<z.ZodEnum<["*", "attachment.created", "attachment.deleted", "comment.created", "comment.deleted", "comment.reaction.added", "comment.reaction.removed", "comment.updated", "container.created", "deliverable.created", "deliverable.deleted", "deliverable.status_changed", "deliverable.updated", "dependency.added", "iteration.completed", "iteration.started", "project.created", "project.deleted", "project.updated", "task.blocked", "task.created", "task.deleted", "task.status_changed", "task.unblocked", "task.updated", "team.created", "time.logged", "workflow.created", "workflow.deleted", "workflow.updated"]>, "many">;
|
|
1920
|
+
/** Signing secret (at least 16 characters). Generated when omitted and returned once. */
|
|
1921
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
1922
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
1923
|
+
}, "strict", z.ZodTypeAny, {
|
|
1924
|
+
name: string;
|
|
1925
|
+
url: string;
|
|
1926
|
+
events: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "task.deleted" | "time.logged" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[];
|
|
1927
|
+
secret?: string | undefined;
|
|
1928
|
+
active?: boolean | undefined;
|
|
1929
|
+
}, {
|
|
1930
|
+
name: string;
|
|
1931
|
+
url: string;
|
|
1932
|
+
events: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "task.deleted" | "time.logged" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[];
|
|
1933
|
+
secret?: string | undefined;
|
|
1934
|
+
active?: boolean | undefined;
|
|
1935
|
+
}>;
|
|
1936
|
+
export declare const UpdateWebhookSchema: z.ZodObject<{
|
|
1937
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1938
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1939
|
+
events: z.ZodOptional<z.ZodArray<z.ZodEnum<["*", "attachment.created", "attachment.deleted", "comment.created", "comment.deleted", "comment.reaction.added", "comment.reaction.removed", "comment.updated", "container.created", "deliverable.created", "deliverable.deleted", "deliverable.status_changed", "deliverable.updated", "dependency.added", "iteration.completed", "iteration.started", "project.created", "project.deleted", "project.updated", "task.blocked", "task.created", "task.deleted", "task.status_changed", "task.unblocked", "task.updated", "team.created", "time.logged", "workflow.created", "workflow.deleted", "workflow.updated"]>, "many">>;
|
|
1940
|
+
secret: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1941
|
+
active: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1942
|
+
}, "strict", z.ZodTypeAny, {
|
|
1943
|
+
name?: string | undefined;
|
|
1944
|
+
url?: string | undefined;
|
|
1945
|
+
secret?: string | undefined;
|
|
1946
|
+
events?: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "task.deleted" | "time.logged" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[] | undefined;
|
|
1947
|
+
active?: boolean | undefined;
|
|
1948
|
+
}, {
|
|
1949
|
+
name?: string | undefined;
|
|
1950
|
+
url?: string | undefined;
|
|
1951
|
+
secret?: string | undefined;
|
|
1952
|
+
events?: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "task.deleted" | "time.logged" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[] | undefined;
|
|
1953
|
+
active?: boolean | undefined;
|
|
1954
|
+
}>;
|
|
1911
1955
|
export type CreateTaskPayload = z.infer<typeof CreateTaskSchema>;
|
|
1912
1956
|
export type UpdateTaskPayload = z.infer<typeof UpdateTaskSchema>;
|
|
1913
1957
|
export type CreateProjectPayload = z.infer<typeof CreateProjectSchema>;
|
|
@@ -1935,4 +1979,6 @@ export type CreateAttachmentBody = z.input<typeof CreateAttachmentSchema>;
|
|
|
1935
1979
|
export type UploadAttachmentBody = z.input<typeof UploadAttachmentSchema>;
|
|
1936
1980
|
export type PresignAttachmentBody = z.input<typeof PresignAttachmentSchema>;
|
|
1937
1981
|
export type LogTimeBody = z.input<typeof LogTimeSchema>;
|
|
1982
|
+
export type CreateWebhookBody = z.input<typeof CreateWebhookSchema>;
|
|
1983
|
+
export type UpdateWebhookBody = z.input<typeof UpdateWebhookSchema>;
|
|
1938
1984
|
//# sourceMappingURL=index.d.ts.map
|