@critical-path/core 0.48.1 → 0.50.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/README.md +4 -0
- package/dist/engine/index.d.ts +21 -1
- package/dist/engine/index.d.ts.map +1 -1
- package/dist/engine/index.js +120 -72
- package/dist/engine/index.js.map +1 -1
- package/dist/schemas/index.d.ts +64 -10
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +24 -17
- package/dist/schemas/index.js.map +1 -1
- package/dist/store/sqlite.d.ts +2 -0
- package/dist/store/sqlite.d.ts.map +1 -1
- package/dist/store/sqlite.js +39 -9
- package/dist/store/sqlite.js.map +1 -1
- package/dist/testing/conformance.d.ts.map +1 -1
- package/dist/testing/conformance.js +53 -0
- package/dist/testing/conformance.js.map +1 -1
- package/dist/types/index.d.ts +20 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -216,6 +216,7 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
216
216
|
}>, "many">>;
|
|
217
217
|
defaultStatusKey: z.ZodOptional<z.ZodString>;
|
|
218
218
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
219
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
219
220
|
}, "strict", z.ZodTypeAny, {
|
|
220
221
|
name: string;
|
|
221
222
|
statuses: {
|
|
@@ -238,6 +239,7 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
238
239
|
defaultStatusKey?: string | undefined;
|
|
239
240
|
icon?: string | undefined;
|
|
240
241
|
}[] | undefined;
|
|
242
|
+
customFields?: Record<string, unknown> | undefined;
|
|
241
243
|
defaultStatusKey?: string | undefined;
|
|
242
244
|
isDefault?: boolean | undefined;
|
|
243
245
|
}, {
|
|
@@ -256,6 +258,7 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
|
|
|
256
258
|
defaultStatusKey?: string | undefined;
|
|
257
259
|
icon?: string | undefined;
|
|
258
260
|
}[] | undefined;
|
|
261
|
+
customFields?: Record<string, unknown> | undefined;
|
|
259
262
|
transitions?: {
|
|
260
263
|
fromStatusKey: string;
|
|
261
264
|
toStatusKey: string;
|
|
@@ -321,6 +324,7 @@ export declare const UpdateWorkflowSchema: z.ZodObject<{
|
|
|
321
324
|
}>, "many">>>;
|
|
322
325
|
defaultStatusKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
323
326
|
isDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
327
|
+
customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
324
328
|
}, "strict", z.ZodTypeAny, {
|
|
325
329
|
name?: string | undefined;
|
|
326
330
|
description?: string | undefined;
|
|
@@ -332,6 +336,7 @@ export declare const UpdateWorkflowSchema: z.ZodObject<{
|
|
|
332
336
|
defaultStatusKey?: string | undefined;
|
|
333
337
|
icon?: string | undefined;
|
|
334
338
|
}[] | undefined;
|
|
339
|
+
customFields?: Record<string, unknown> | undefined;
|
|
335
340
|
statuses?: {
|
|
336
341
|
key: string;
|
|
337
342
|
category: "in_progress" | "canceled" | "not_started" | "completed";
|
|
@@ -356,6 +361,7 @@ export declare const UpdateWorkflowSchema: z.ZodObject<{
|
|
|
356
361
|
defaultStatusKey?: string | undefined;
|
|
357
362
|
icon?: string | undefined;
|
|
358
363
|
}[] | undefined;
|
|
364
|
+
customFields?: Record<string, unknown> | undefined;
|
|
359
365
|
statuses?: {
|
|
360
366
|
key: string;
|
|
361
367
|
category: "in_progress" | "canceled" | "not_started" | "completed";
|
|
@@ -555,6 +561,7 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
555
561
|
}>>;
|
|
556
562
|
startDate: z.ZodOptional<z.ZodString>;
|
|
557
563
|
targetEndDate: z.ZodOptional<z.ZodString>;
|
|
564
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
558
565
|
}, "strict", z.ZodTypeAny, {
|
|
559
566
|
name: string;
|
|
560
567
|
key?: string | undefined;
|
|
@@ -617,6 +624,7 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
617
624
|
} | undefined;
|
|
618
625
|
startDate?: string | undefined;
|
|
619
626
|
targetEndDate?: string | undefined;
|
|
627
|
+
customFields?: Record<string, unknown> | undefined;
|
|
620
628
|
}, {
|
|
621
629
|
name: string;
|
|
622
630
|
key?: string | undefined;
|
|
@@ -679,6 +687,7 @@ export declare const CreateProjectSchema: z.ZodObject<{
|
|
|
679
687
|
} | undefined;
|
|
680
688
|
startDate?: string | undefined;
|
|
681
689
|
targetEndDate?: string | undefined;
|
|
690
|
+
customFields?: Record<string, unknown> | undefined;
|
|
682
691
|
}>;
|
|
683
692
|
export declare const UpdateProjectSchema: z.ZodObject<{
|
|
684
693
|
key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -865,6 +874,7 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
865
874
|
}>>>;
|
|
866
875
|
startDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
867
876
|
targetEndDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
877
|
+
customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
868
878
|
}, "strict", z.ZodTypeAny, {
|
|
869
879
|
name?: string | undefined;
|
|
870
880
|
key?: string | undefined;
|
|
@@ -927,6 +937,7 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
927
937
|
} | undefined;
|
|
928
938
|
startDate?: string | undefined;
|
|
929
939
|
targetEndDate?: string | undefined;
|
|
940
|
+
customFields?: Record<string, unknown> | undefined;
|
|
930
941
|
}, {
|
|
931
942
|
name?: string | undefined;
|
|
932
943
|
key?: string | undefined;
|
|
@@ -989,6 +1000,7 @@ export declare const UpdateProjectSchema: z.ZodObject<{
|
|
|
989
1000
|
} | undefined;
|
|
990
1001
|
startDate?: string | undefined;
|
|
991
1002
|
targetEndDate?: string | undefined;
|
|
1003
|
+
customFields?: Record<string, unknown> | undefined;
|
|
992
1004
|
}>;
|
|
993
1005
|
export declare const CreateTaskSchema: z.ZodObject<{
|
|
994
1006
|
title: z.ZodString;
|
|
@@ -1070,6 +1082,7 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
|
1070
1082
|
projectId: string;
|
|
1071
1083
|
title: string;
|
|
1072
1084
|
description?: string | undefined;
|
|
1085
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1073
1086
|
status?: string | undefined;
|
|
1074
1087
|
semanticStatus?: "in_progress" | "canceled" | "not_started" | "completed" | undefined;
|
|
1075
1088
|
priority?: string | undefined;
|
|
@@ -1116,12 +1129,12 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
|
1116
1129
|
createdAt?: string | undefined;
|
|
1117
1130
|
completedAt?: string | undefined;
|
|
1118
1131
|
}[] | undefined;
|
|
1119
|
-
customFields?: Record<string, unknown> | undefined;
|
|
1120
1132
|
parentId?: string | undefined;
|
|
1121
1133
|
}, {
|
|
1122
1134
|
projectId: string;
|
|
1123
1135
|
title: string;
|
|
1124
1136
|
description?: string | undefined;
|
|
1137
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1125
1138
|
status?: string | undefined;
|
|
1126
1139
|
semanticStatus?: "in_progress" | "canceled" | "not_started" | "completed" | undefined;
|
|
1127
1140
|
priority?: string | undefined;
|
|
@@ -1168,7 +1181,6 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
|
1168
1181
|
createdAt?: string | undefined;
|
|
1169
1182
|
completedAt?: string | undefined;
|
|
1170
1183
|
}[] | undefined;
|
|
1171
|
-
customFields?: Record<string, unknown> | undefined;
|
|
1172
1184
|
parentId?: string | undefined;
|
|
1173
1185
|
}>;
|
|
1174
1186
|
export declare const UpdateTaskSchema: z.ZodObject<{
|
|
@@ -1248,6 +1260,7 @@ export declare const UpdateTaskSchema: z.ZodObject<{
|
|
|
1248
1260
|
parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1249
1261
|
}, "strict", z.ZodTypeAny, {
|
|
1250
1262
|
description?: string | undefined;
|
|
1263
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1251
1264
|
title?: string | undefined;
|
|
1252
1265
|
status?: string | undefined;
|
|
1253
1266
|
semanticStatus?: "in_progress" | "canceled" | "not_started" | "completed" | undefined;
|
|
@@ -1295,10 +1308,10 @@ export declare const UpdateTaskSchema: z.ZodObject<{
|
|
|
1295
1308
|
createdAt?: string | undefined;
|
|
1296
1309
|
completedAt?: string | undefined;
|
|
1297
1310
|
}[] | undefined;
|
|
1298
|
-
customFields?: Record<string, unknown> | undefined;
|
|
1299
1311
|
parentId?: string | undefined;
|
|
1300
1312
|
}, {
|
|
1301
1313
|
description?: string | undefined;
|
|
1314
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1302
1315
|
title?: string | undefined;
|
|
1303
1316
|
status?: string | undefined;
|
|
1304
1317
|
semanticStatus?: "in_progress" | "canceled" | "not_started" | "completed" | undefined;
|
|
@@ -1346,7 +1359,6 @@ export declare const UpdateTaskSchema: z.ZodObject<{
|
|
|
1346
1359
|
createdAt?: string | undefined;
|
|
1347
1360
|
completedAt?: string | undefined;
|
|
1348
1361
|
}[] | undefined;
|
|
1349
|
-
customFields?: Record<string, unknown> | undefined;
|
|
1350
1362
|
parentId?: string | undefined;
|
|
1351
1363
|
}>;
|
|
1352
1364
|
export declare const ReportAgentStatusSchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -1384,11 +1396,14 @@ export type ReportAgentStatusBody = z.infer<typeof ReportAgentStatusSchema>;
|
|
|
1384
1396
|
export declare const CreateDependencySchema: z.ZodObject<{
|
|
1385
1397
|
dependsOnTaskId: z.ZodString;
|
|
1386
1398
|
type: z.ZodDefault<z.ZodEnum<["blocking", "blocked_by", "relates_to"]>>;
|
|
1399
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1387
1400
|
}, "strict", z.ZodTypeAny, {
|
|
1388
1401
|
type: "blocking" | "blocked_by" | "relates_to";
|
|
1389
1402
|
dependsOnTaskId: string;
|
|
1403
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1390
1404
|
}, {
|
|
1391
1405
|
dependsOnTaskId: string;
|
|
1406
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1392
1407
|
type?: "blocking" | "blocked_by" | "relates_to" | undefined;
|
|
1393
1408
|
}>;
|
|
1394
1409
|
export declare const CreateDeliverableSchema: z.ZodObject<{
|
|
@@ -1408,10 +1423,10 @@ export declare const CreateDeliverableSchema: z.ZodObject<{
|
|
|
1408
1423
|
projectId: string;
|
|
1409
1424
|
title: string;
|
|
1410
1425
|
description?: string | undefined;
|
|
1426
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1411
1427
|
status?: string | undefined;
|
|
1412
1428
|
reviewerId?: string | undefined;
|
|
1413
1429
|
dueDate?: string | undefined;
|
|
1414
|
-
customFields?: Record<string, unknown> | undefined;
|
|
1415
1430
|
format?: string | undefined;
|
|
1416
1431
|
specs?: Record<string, unknown> | undefined;
|
|
1417
1432
|
leadId?: string | undefined;
|
|
@@ -1421,10 +1436,10 @@ export declare const CreateDeliverableSchema: z.ZodObject<{
|
|
|
1421
1436
|
projectId: string;
|
|
1422
1437
|
title: string;
|
|
1423
1438
|
description?: string | undefined;
|
|
1439
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1424
1440
|
status?: string | undefined;
|
|
1425
1441
|
reviewerId?: string | undefined;
|
|
1426
1442
|
dueDate?: string | undefined;
|
|
1427
|
-
customFields?: Record<string, unknown> | undefined;
|
|
1428
1443
|
format?: string | undefined;
|
|
1429
1444
|
specs?: Record<string, unknown> | undefined;
|
|
1430
1445
|
leadId?: string | undefined;
|
|
@@ -1445,11 +1460,11 @@ export declare const UpdateDeliverableSchema: z.ZodObject<{
|
|
|
1445
1460
|
customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1446
1461
|
}, "strict", z.ZodTypeAny, {
|
|
1447
1462
|
description?: string | undefined;
|
|
1463
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1448
1464
|
title?: string | undefined;
|
|
1449
1465
|
status?: string | undefined;
|
|
1450
1466
|
reviewerId?: string | undefined;
|
|
1451
1467
|
dueDate?: string | undefined;
|
|
1452
|
-
customFields?: Record<string, unknown> | undefined;
|
|
1453
1468
|
format?: string | undefined;
|
|
1454
1469
|
specs?: Record<string, unknown> | undefined;
|
|
1455
1470
|
leadId?: string | undefined;
|
|
@@ -1457,11 +1472,11 @@ export declare const UpdateDeliverableSchema: z.ZodObject<{
|
|
|
1457
1472
|
outputUrls?: string[] | undefined;
|
|
1458
1473
|
}, {
|
|
1459
1474
|
description?: string | undefined;
|
|
1475
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1460
1476
|
title?: string | undefined;
|
|
1461
1477
|
status?: string | undefined;
|
|
1462
1478
|
reviewerId?: string | undefined;
|
|
1463
1479
|
dueDate?: string | undefined;
|
|
1464
|
-
customFields?: Record<string, unknown> | undefined;
|
|
1465
1480
|
format?: string | undefined;
|
|
1466
1481
|
specs?: Record<string, unknown> | undefined;
|
|
1467
1482
|
leadId?: string | undefined;
|
|
@@ -1558,6 +1573,7 @@ export declare const CreateTeamSchema: z.ZodObject<{
|
|
|
1558
1573
|
halfDay?: boolean | undefined;
|
|
1559
1574
|
}[] | undefined;
|
|
1560
1575
|
}>>;
|
|
1576
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1561
1577
|
}, "strict", z.ZodTypeAny, {
|
|
1562
1578
|
name: string;
|
|
1563
1579
|
memberIds: string[];
|
|
@@ -1581,6 +1597,7 @@ export declare const CreateTeamSchema: z.ZodObject<{
|
|
|
1581
1597
|
halfDay?: boolean | undefined;
|
|
1582
1598
|
}[] | undefined;
|
|
1583
1599
|
} | undefined;
|
|
1600
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1584
1601
|
leaderId?: string | undefined;
|
|
1585
1602
|
headcount?: number | undefined;
|
|
1586
1603
|
weeklyCapacityHours?: number | undefined;
|
|
@@ -1606,6 +1623,7 @@ export declare const CreateTeamSchema: z.ZodObject<{
|
|
|
1606
1623
|
halfDay?: boolean | undefined;
|
|
1607
1624
|
}[] | undefined;
|
|
1608
1625
|
} | undefined;
|
|
1626
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1609
1627
|
leaderId?: string | undefined;
|
|
1610
1628
|
memberIds?: string[] | undefined;
|
|
1611
1629
|
headcount?: number | undefined;
|
|
@@ -1701,6 +1719,7 @@ export declare const UpdateTeamSchema: z.ZodObject<{
|
|
|
1701
1719
|
halfDay?: boolean | undefined;
|
|
1702
1720
|
}[] | undefined;
|
|
1703
1721
|
}>>>;
|
|
1722
|
+
customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1704
1723
|
}, "strict", z.ZodTypeAny, {
|
|
1705
1724
|
name?: string | undefined;
|
|
1706
1725
|
description?: string | undefined;
|
|
@@ -1723,6 +1742,7 @@ export declare const UpdateTeamSchema: z.ZodObject<{
|
|
|
1723
1742
|
halfDay?: boolean | undefined;
|
|
1724
1743
|
}[] | undefined;
|
|
1725
1744
|
} | undefined;
|
|
1745
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1726
1746
|
leaderId?: string | undefined;
|
|
1727
1747
|
memberIds?: string[] | undefined;
|
|
1728
1748
|
headcount?: number | undefined;
|
|
@@ -1749,6 +1769,7 @@ export declare const UpdateTeamSchema: z.ZodObject<{
|
|
|
1749
1769
|
halfDay?: boolean | undefined;
|
|
1750
1770
|
}[] | undefined;
|
|
1751
1771
|
} | undefined;
|
|
1772
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1752
1773
|
leaderId?: string | undefined;
|
|
1753
1774
|
memberIds?: string[] | undefined;
|
|
1754
1775
|
headcount?: number | undefined;
|
|
@@ -1760,11 +1781,13 @@ export declare const CreateContainerSchema: z.ZodObject<{
|
|
|
1760
1781
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1761
1782
|
type: z.ZodOptional<z.ZodString>;
|
|
1762
1783
|
color: z.ZodOptional<z.ZodString>;
|
|
1784
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1763
1785
|
projectId: z.ZodString;
|
|
1764
1786
|
}, "strict", z.ZodTypeAny, {
|
|
1765
1787
|
name: string;
|
|
1766
1788
|
projectId: string;
|
|
1767
1789
|
description?: string | undefined;
|
|
1790
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1768
1791
|
parentId?: string | undefined;
|
|
1769
1792
|
type?: string | undefined;
|
|
1770
1793
|
color?: string | undefined;
|
|
@@ -1772,6 +1795,7 @@ export declare const CreateContainerSchema: z.ZodObject<{
|
|
|
1772
1795
|
name: string;
|
|
1773
1796
|
projectId: string;
|
|
1774
1797
|
description?: string | undefined;
|
|
1798
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1775
1799
|
parentId?: string | undefined;
|
|
1776
1800
|
type?: string | undefined;
|
|
1777
1801
|
color?: string | undefined;
|
|
@@ -1782,15 +1806,18 @@ export declare const UpdateContainerSchema: z.ZodObject<{
|
|
|
1782
1806
|
parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1783
1807
|
type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1784
1808
|
color: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1809
|
+
customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1785
1810
|
}, "strict", z.ZodTypeAny, {
|
|
1786
1811
|
name?: string | undefined;
|
|
1787
1812
|
description?: string | undefined;
|
|
1813
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1788
1814
|
parentId?: string | undefined;
|
|
1789
1815
|
type?: string | undefined;
|
|
1790
1816
|
color?: string | undefined;
|
|
1791
1817
|
}, {
|
|
1792
1818
|
name?: string | undefined;
|
|
1793
1819
|
description?: string | undefined;
|
|
1820
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1794
1821
|
parentId?: string | undefined;
|
|
1795
1822
|
type?: string | undefined;
|
|
1796
1823
|
color?: string | undefined;
|
|
@@ -1802,12 +1829,14 @@ export declare const CreateIterationSchema: z.ZodObject<{
|
|
|
1802
1829
|
startDate: z.ZodOptional<z.ZodString>;
|
|
1803
1830
|
endDate: z.ZodOptional<z.ZodString>;
|
|
1804
1831
|
status: z.ZodDefault<z.ZodEnum<["planning", "active", "completed"]>>;
|
|
1832
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1805
1833
|
projectId: z.ZodString;
|
|
1806
1834
|
}, "strict", z.ZodTypeAny, {
|
|
1807
1835
|
name: string;
|
|
1808
1836
|
projectId: string;
|
|
1809
1837
|
status: "active" | "completed" | "planning";
|
|
1810
1838
|
startDate?: string | undefined;
|
|
1839
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1811
1840
|
type?: string | undefined;
|
|
1812
1841
|
goal?: string | undefined;
|
|
1813
1842
|
endDate?: string | undefined;
|
|
@@ -1815,6 +1844,7 @@ export declare const CreateIterationSchema: z.ZodObject<{
|
|
|
1815
1844
|
name: string;
|
|
1816
1845
|
projectId: string;
|
|
1817
1846
|
startDate?: string | undefined;
|
|
1847
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1818
1848
|
status?: "active" | "completed" | "planning" | undefined;
|
|
1819
1849
|
type?: string | undefined;
|
|
1820
1850
|
goal?: string | undefined;
|
|
@@ -1827,9 +1857,11 @@ export declare const UpdateIterationSchema: z.ZodObject<{
|
|
|
1827
1857
|
type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1828
1858
|
startDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1829
1859
|
endDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1830
|
-
|
|
1860
|
+
customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1861
|
+
}, "strict", z.ZodTypeAny, {
|
|
1831
1862
|
name?: string | undefined;
|
|
1832
1863
|
startDate?: string | undefined;
|
|
1864
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1833
1865
|
status?: "active" | "completed" | "planning" | undefined;
|
|
1834
1866
|
type?: string | undefined;
|
|
1835
1867
|
goal?: string | undefined;
|
|
@@ -1837,6 +1869,7 @@ export declare const UpdateIterationSchema: z.ZodObject<{
|
|
|
1837
1869
|
}, {
|
|
1838
1870
|
name?: string | undefined;
|
|
1839
1871
|
startDate?: string | undefined;
|
|
1872
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1840
1873
|
status?: "active" | "completed" | "planning" | undefined;
|
|
1841
1874
|
type?: string | undefined;
|
|
1842
1875
|
goal?: string | undefined;
|
|
@@ -1848,15 +1881,18 @@ export declare const CreateCommentSchema: z.ZodObject<{
|
|
|
1848
1881
|
content: z.ZodString;
|
|
1849
1882
|
mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1850
1883
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1884
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1851
1885
|
}, "strict", z.ZodTypeAny, {
|
|
1852
1886
|
taskId: string;
|
|
1853
1887
|
content: string;
|
|
1888
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1854
1889
|
parentId?: string | undefined;
|
|
1855
1890
|
mentions?: string[] | undefined;
|
|
1856
1891
|
metadata?: Record<string, unknown> | undefined;
|
|
1857
1892
|
}, {
|
|
1858
1893
|
taskId: string;
|
|
1859
1894
|
content: string;
|
|
1895
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1860
1896
|
parentId?: string | undefined;
|
|
1861
1897
|
mentions?: string[] | undefined;
|
|
1862
1898
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -1865,11 +1901,14 @@ export declare const UpdateCommentSchema: z.ZodObject<{
|
|
|
1865
1901
|
content: z.ZodOptional<z.ZodString>;
|
|
1866
1902
|
mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1867
1903
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1868
|
-
|
|
1904
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1905
|
+
}, "strict", z.ZodTypeAny, {
|
|
1906
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1869
1907
|
content?: string | undefined;
|
|
1870
1908
|
mentions?: string[] | undefined;
|
|
1871
1909
|
metadata?: Record<string, unknown> | undefined;
|
|
1872
1910
|
}, {
|
|
1911
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1873
1912
|
content?: string | undefined;
|
|
1874
1913
|
mentions?: string[] | undefined;
|
|
1875
1914
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -1887,6 +1926,7 @@ export declare const CreateAttachmentSchema: z.ZodObject<{
|
|
|
1887
1926
|
sizeBytes: z.ZodDefault<z.ZodNumber>;
|
|
1888
1927
|
url: z.ZodString;
|
|
1889
1928
|
storageKey: z.ZodOptional<z.ZodString>;
|
|
1929
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1890
1930
|
taskId: z.ZodOptional<z.ZodString>;
|
|
1891
1931
|
projectId: z.ZodOptional<z.ZodString>;
|
|
1892
1932
|
commentId: z.ZodOptional<z.ZodString>;
|
|
@@ -1897,6 +1937,7 @@ export declare const CreateAttachmentSchema: z.ZodObject<{
|
|
|
1897
1937
|
mimeType: string;
|
|
1898
1938
|
sizeBytes: number;
|
|
1899
1939
|
url: string;
|
|
1940
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1900
1941
|
projectId?: string | undefined;
|
|
1901
1942
|
taskId?: string | undefined;
|
|
1902
1943
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -1906,6 +1947,7 @@ export declare const CreateAttachmentSchema: z.ZodObject<{
|
|
|
1906
1947
|
}, {
|
|
1907
1948
|
filename: string;
|
|
1908
1949
|
url: string;
|
|
1950
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1909
1951
|
projectId?: string | undefined;
|
|
1910
1952
|
taskId?: string | undefined;
|
|
1911
1953
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -1920,6 +1962,7 @@ export declare const UploadAttachmentSchema: z.ZodObject<{
|
|
|
1920
1962
|
data: z.ZodString;
|
|
1921
1963
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1922
1964
|
encoding: z.ZodOptional<z.ZodEnum<["base64", "utf-8", "binary"]>>;
|
|
1965
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1923
1966
|
taskId: z.ZodOptional<z.ZodString>;
|
|
1924
1967
|
projectId: z.ZodOptional<z.ZodString>;
|
|
1925
1968
|
commentId: z.ZodOptional<z.ZodString>;
|
|
@@ -1928,6 +1971,7 @@ export declare const UploadAttachmentSchema: z.ZodObject<{
|
|
|
1928
1971
|
}, "strict", z.ZodTypeAny, {
|
|
1929
1972
|
filename: string;
|
|
1930
1973
|
data: string;
|
|
1974
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1931
1975
|
projectId?: string | undefined;
|
|
1932
1976
|
taskId?: string | undefined;
|
|
1933
1977
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -1938,6 +1982,7 @@ export declare const UploadAttachmentSchema: z.ZodObject<{
|
|
|
1938
1982
|
}, {
|
|
1939
1983
|
filename: string;
|
|
1940
1984
|
data: string;
|
|
1985
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1941
1986
|
projectId?: string | undefined;
|
|
1942
1987
|
taskId?: string | undefined;
|
|
1943
1988
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -1970,16 +2015,19 @@ export declare const LogTimeSchema: z.ZodObject<{
|
|
|
1970
2015
|
isBillable: z.ZodOptional<z.ZodBoolean>;
|
|
1971
2016
|
description: z.ZodOptional<z.ZodString>;
|
|
1972
2017
|
loggedAt: z.ZodOptional<z.ZodString>;
|
|
2018
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1973
2019
|
}, "strict", z.ZodTypeAny, {
|
|
1974
2020
|
taskId: string;
|
|
1975
2021
|
hours: number;
|
|
1976
2022
|
description?: string | undefined;
|
|
2023
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1977
2024
|
loggedAt?: string | undefined;
|
|
1978
2025
|
isBillable?: boolean | undefined;
|
|
1979
2026
|
}, {
|
|
1980
2027
|
taskId: string;
|
|
1981
2028
|
hours: number;
|
|
1982
2029
|
description?: string | undefined;
|
|
2030
|
+
customFields?: Record<string, unknown> | undefined;
|
|
1983
2031
|
loggedAt?: string | undefined;
|
|
1984
2032
|
isBillable?: boolean | undefined;
|
|
1985
2033
|
}>;
|
|
@@ -2044,16 +2092,19 @@ export declare const CreateWebhookSchema: z.ZodObject<{
|
|
|
2044
2092
|
/** Signing secret (at least 16 characters). Generated when omitted and returned once. */
|
|
2045
2093
|
secret: z.ZodOptional<z.ZodString>;
|
|
2046
2094
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
2095
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2047
2096
|
}, "strict", z.ZodTypeAny, {
|
|
2048
2097
|
name: string;
|
|
2049
2098
|
events: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "agent.status_updated" | "task.deleted" | "time.logged" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "dependency.removed" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "team.updated" | "team.deleted" | "container.updated" | "container.deleted" | "iteration.created" | "iteration.updated" | "iteration.deleted" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[];
|
|
2050
2099
|
url: string;
|
|
2100
|
+
customFields?: Record<string, unknown> | undefined;
|
|
2051
2101
|
secret?: string | undefined;
|
|
2052
2102
|
active?: boolean | undefined;
|
|
2053
2103
|
}, {
|
|
2054
2104
|
name: string;
|
|
2055
2105
|
events: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "agent.status_updated" | "task.deleted" | "time.logged" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "dependency.removed" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "team.updated" | "team.deleted" | "container.updated" | "container.deleted" | "iteration.created" | "iteration.updated" | "iteration.deleted" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[];
|
|
2056
2106
|
url: string;
|
|
2107
|
+
customFields?: Record<string, unknown> | undefined;
|
|
2057
2108
|
secret?: string | undefined;
|
|
2058
2109
|
active?: boolean | undefined;
|
|
2059
2110
|
}>;
|
|
@@ -2063,15 +2114,18 @@ export declare const UpdateWebhookSchema: z.ZodObject<{
|
|
|
2063
2114
|
events: z.ZodOptional<z.ZodArray<z.ZodEnum<["*", "agent.status_updated", "attachment.created", "attachment.deleted", "comment.created", "comment.deleted", "comment.reaction.added", "comment.reaction.removed", "comment.updated", "container.created", "container.deleted", "container.updated", "deliverable.created", "deliverable.deleted", "deliverable.status_changed", "deliverable.updated", "dependency.added", "dependency.removed", "iteration.completed", "iteration.created", "iteration.deleted", "iteration.started", "iteration.updated", "project.created", "project.deleted", "project.updated", "task.blocked", "task.created", "task.deleted", "task.status_changed", "task.unblocked", "task.updated", "team.created", "team.deleted", "team.updated", "time.logged", "workflow.created", "workflow.deleted", "workflow.updated"]>, "many">>;
|
|
2064
2115
|
secret: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2065
2116
|
active: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2117
|
+
customFields: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2066
2118
|
}, "strict", z.ZodTypeAny, {
|
|
2067
2119
|
name?: string | undefined;
|
|
2068
2120
|
events?: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "agent.status_updated" | "task.deleted" | "time.logged" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "dependency.removed" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "team.updated" | "team.deleted" | "container.updated" | "container.deleted" | "iteration.created" | "iteration.updated" | "iteration.deleted" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[] | undefined;
|
|
2121
|
+
customFields?: Record<string, unknown> | undefined;
|
|
2069
2122
|
url?: string | undefined;
|
|
2070
2123
|
secret?: string | undefined;
|
|
2071
2124
|
active?: boolean | undefined;
|
|
2072
2125
|
}, {
|
|
2073
2126
|
name?: string | undefined;
|
|
2074
2127
|
events?: ("task.created" | "task.updated" | "task.status_changed" | "task.blocked" | "task.unblocked" | "agent.status_updated" | "task.deleted" | "time.logged" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.reaction.added" | "comment.reaction.removed" | "attachment.created" | "attachment.deleted" | "dependency.added" | "dependency.removed" | "project.created" | "project.updated" | "project.deleted" | "workflow.created" | "workflow.updated" | "workflow.deleted" | "iteration.started" | "iteration.completed" | "team.created" | "team.updated" | "team.deleted" | "container.updated" | "container.deleted" | "iteration.created" | "iteration.updated" | "iteration.deleted" | "container.created" | "deliverable.created" | "deliverable.updated" | "deliverable.status_changed" | "deliverable.deleted" | "*")[] | undefined;
|
|
2128
|
+
customFields?: Record<string, unknown> | undefined;
|
|
2075
2129
|
url?: string | undefined;
|
|
2076
2130
|
secret?: string | undefined;
|
|
2077
2131
|
active?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAS1F;AAUD,eAAO,MAAM,oBAAoB,oEAAkE,CAAC;AACpG,eAAO,MAAM,gBAAgB,wCAAsC,CAAC;AAEpE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe7B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;IAItC,2EAA2E;;;;;;;;;;;;;;;;;;;;;EAK3E,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AAOH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,UAA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,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC5E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACxD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -90,7 +90,8 @@ export const CreateWorkflowSchema = strictObject({
|
|
|
90
90
|
.default([]),
|
|
91
91
|
taskTypes: z.array(TaskTypeDefinitionSchema).optional(),
|
|
92
92
|
defaultStatusKey: z.string().optional(),
|
|
93
|
-
isDefault: z.boolean().optional()
|
|
93
|
+
isDefault: z.boolean().optional(),
|
|
94
|
+
customFields: customFields.optional()
|
|
94
95
|
});
|
|
95
96
|
export const UpdateWorkflowSchema = CreateWorkflowSchema.partial();
|
|
96
97
|
// --- Projects ---
|
|
@@ -115,7 +116,8 @@ export const CreateProjectSchema = strictObject({
|
|
|
115
116
|
customFieldDefinitions: z.array(CustomFieldDefinitionSchema).optional(),
|
|
116
117
|
schedule: WorkScheduleSchema.optional(),
|
|
117
118
|
startDate: isoString.optional(),
|
|
118
|
-
targetEndDate: isoString.optional()
|
|
119
|
+
targetEndDate: isoString.optional(),
|
|
120
|
+
customFields: customFields.optional()
|
|
119
121
|
});
|
|
120
122
|
export const UpdateProjectSchema = CreateProjectSchema.partial();
|
|
121
123
|
// --- Tasks ---
|
|
@@ -188,7 +190,8 @@ export const ReportAgentStatusSchema = strictObject({
|
|
|
188
190
|
// --- Dependencies ---
|
|
189
191
|
export const CreateDependencySchema = strictObject({
|
|
190
192
|
dependsOnTaskId: nonEmpty,
|
|
191
|
-
type: z.enum(['blocking', 'blocked_by', 'relates_to']).default('blocking')
|
|
193
|
+
type: z.enum(['blocking', 'blocked_by', 'relates_to']).default('blocking'),
|
|
194
|
+
customFields: customFields.optional()
|
|
192
195
|
});
|
|
193
196
|
// --- Deliverables ---
|
|
194
197
|
const deliverableFields = {
|
|
@@ -214,7 +217,8 @@ export const CreateTeamSchema = strictObject({
|
|
|
214
217
|
memberIds: z.array(z.string()).default([]),
|
|
215
218
|
headcount: z.number().nonnegative().optional(),
|
|
216
219
|
weeklyCapacityHours: z.number().nonnegative().optional(),
|
|
217
|
-
schedule: WorkScheduleSchema.optional()
|
|
220
|
+
schedule: WorkScheduleSchema.optional(),
|
|
221
|
+
customFields: customFields.optional()
|
|
218
222
|
});
|
|
219
223
|
export const UpdateTeamSchema = CreateTeamSchema.partial();
|
|
220
224
|
// --- Containers ---
|
|
@@ -223,7 +227,8 @@ const containerFields = {
|
|
|
223
227
|
description: z.string().optional(),
|
|
224
228
|
parentId: z.string().optional(),
|
|
225
229
|
type: z.string().optional(),
|
|
226
|
-
color: z.string().optional()
|
|
230
|
+
color: z.string().optional(),
|
|
231
|
+
customFields: customFields.optional()
|
|
227
232
|
};
|
|
228
233
|
export const CreateContainerSchema = strictObject({ projectId: nonEmpty, ...containerFields });
|
|
229
234
|
export const UpdateContainerSchema = strictObject(containerFields).partial();
|
|
@@ -234,23 +239,21 @@ const iterationFields = {
|
|
|
234
239
|
type: z.string().optional(),
|
|
235
240
|
startDate: isoString.optional(),
|
|
236
241
|
endDate: isoString.optional(),
|
|
237
|
-
status: z.enum(['planning', 'active', 'completed']).default('planning')
|
|
242
|
+
status: z.enum(['planning', 'active', 'completed']).default('planning'),
|
|
243
|
+
customFields: customFields.optional()
|
|
238
244
|
};
|
|
239
245
|
export const CreateIterationSchema = strictObject({ projectId: nonEmpty, ...iterationFields });
|
|
240
|
-
export const UpdateIterationSchema = z
|
|
241
|
-
.object({ ...iterationFields, status: z.enum(['planning', 'active', 'completed']) })
|
|
242
|
-
.partial();
|
|
246
|
+
export const UpdateIterationSchema = strictObject({ ...iterationFields, status: z.enum(['planning', 'active', 'completed']) }).partial();
|
|
243
247
|
// --- Comments & Reactions ---
|
|
244
248
|
export const CreateCommentSchema = strictObject({
|
|
245
249
|
taskId: nonEmpty,
|
|
246
250
|
parentId: z.string().optional(),
|
|
247
251
|
content: nonEmpty,
|
|
248
252
|
mentions: z.array(z.string()).optional(),
|
|
249
|
-
metadata: metadata.optional()
|
|
253
|
+
metadata: metadata.optional(),
|
|
254
|
+
customFields: customFields.optional()
|
|
250
255
|
});
|
|
251
|
-
export const UpdateCommentSchema = z
|
|
252
|
-
.object({ content: nonEmpty, mentions: z.array(z.string()), metadata })
|
|
253
|
-
.partial();
|
|
256
|
+
export const UpdateCommentSchema = strictObject({ content: nonEmpty, mentions: z.array(z.string()), metadata, customFields }).partial();
|
|
254
257
|
export const CommentReactionSchema = strictObject({
|
|
255
258
|
emoji: nonEmpty
|
|
256
259
|
});
|
|
@@ -269,14 +272,16 @@ export const CreateAttachmentSchema = strictObject({
|
|
|
269
272
|
mimeType: nonEmpty.default('application/octet-stream'),
|
|
270
273
|
sizeBytes: z.number().int().nonnegative().default(0),
|
|
271
274
|
url: nonEmpty,
|
|
272
|
-
storageKey: z.string().optional()
|
|
275
|
+
storageKey: z.string().optional(),
|
|
276
|
+
customFields: customFields.optional()
|
|
273
277
|
});
|
|
274
278
|
export const UploadAttachmentSchema = strictObject({
|
|
275
279
|
...attachmentLinks,
|
|
276
280
|
filename: nonEmpty,
|
|
277
281
|
data: z.string(),
|
|
278
282
|
mimeType: z.string().optional(),
|
|
279
|
-
encoding: z.enum(['base64', 'utf-8', 'binary']).optional()
|
|
283
|
+
encoding: z.enum(['base64', 'utf-8', 'binary']).optional(),
|
|
284
|
+
customFields: customFields.optional()
|
|
280
285
|
});
|
|
281
286
|
export const PresignAttachmentSchema = strictObject({
|
|
282
287
|
/** Project the upload belongs to; the file is stored under `projects/<projectId>/`. */
|
|
@@ -292,7 +297,8 @@ export const LogTimeSchema = strictObject({
|
|
|
292
297
|
hours: z.number().positive(),
|
|
293
298
|
isBillable: z.boolean().optional(),
|
|
294
299
|
description: z.string().optional(),
|
|
295
|
-
loggedAt: isoString.optional()
|
|
300
|
+
loggedAt: isoString.optional(),
|
|
301
|
+
customFields: customFields.optional()
|
|
296
302
|
});
|
|
297
303
|
// --- List queries (URL search parameters) ---
|
|
298
304
|
const csv = z
|
|
@@ -328,7 +334,8 @@ export const CreateWebhookSchema = strictObject({
|
|
|
328
334
|
events: z.array(z.enum(['*', ...DOMAIN_EVENT_NAMES])).min(1),
|
|
329
335
|
/** Signing secret (at least 16 characters). Generated when omitted and returned once. */
|
|
330
336
|
secret: z.string().min(16).optional(),
|
|
331
|
-
active: z.boolean().optional()
|
|
337
|
+
active: z.boolean().optional(),
|
|
338
|
+
customFields: customFields.optional()
|
|
332
339
|
});
|
|
333
340
|
export const UpdateWebhookSchema = CreateWebhookSchema.partial();
|
|
334
341
|
//# sourceMappingURL=index.js.map
|