@opencrvs/toolkit 1.8.0-rc.fbb7263 → 1.8.0-rc.fd16d13
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/dist/commons/api/router.d.ts +3769 -22
- package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
- package/dist/commons/conditionals/validate.d.ts +27 -0
- package/dist/commons/conditionals/validate.test.d.ts +2 -0
- package/dist/commons/events/ActionConfig.d.ts +6 -24
- package/dist/commons/events/ActionDocument.d.ts +1630 -73
- package/dist/commons/events/ActionInput.d.ts +2456 -116
- package/dist/commons/events/ActionType.d.ts +1 -1
- package/dist/commons/events/CompositeFieldValue.d.ts +120 -10
- package/dist/commons/events/Draft.d.ts +224 -8
- package/dist/commons/events/EventConfig.d.ts +4 -28
- package/dist/commons/events/EventDocument.d.ts +1955 -65
- package/dist/commons/events/FieldConfig.d.ts +49 -3
- package/dist/commons/events/FieldType.d.ts +4 -0
- package/dist/commons/events/FieldTypeMapping.d.ts +108 -6
- package/dist/commons/events/FieldValue.d.ts +58 -4
- package/dist/commons/events/TemplateConfig.d.ts +38 -0
- package/dist/commons/events/defineConfig.d.ts +1 -7
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/test.utils.d.ts +111 -3
- package/dist/commons/events/utils.d.ts +112 -0
- package/dist/events/index.js +284 -93
- package/package.json +1 -1
@@ -285,7 +285,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
285
285
|
draft?: boolean | undefined;
|
286
286
|
} | {
|
287
287
|
type: "REJECT";
|
288
|
-
comment: string;
|
289
288
|
conditionals: ({
|
290
289
|
type: "SHOW";
|
291
290
|
conditional: import(".").JSONSchema;
|
@@ -311,11 +310,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
311
310
|
fields: import("./FieldConfig").Inferred[];
|
312
311
|
};
|
313
312
|
}[];
|
314
|
-
isDuplicate: boolean;
|
315
313
|
draft?: boolean | undefined;
|
316
314
|
} | {
|
317
315
|
type: "MARKED_AS_DUPLICATE";
|
318
|
-
comment: string;
|
319
316
|
conditionals: ({
|
320
317
|
type: "SHOW";
|
321
318
|
conditional: import(".").JSONSchema;
|
@@ -341,11 +338,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
341
338
|
fields: import("./FieldConfig").Inferred[];
|
342
339
|
};
|
343
340
|
}[];
|
344
|
-
duplicates: string[];
|
345
341
|
draft?: boolean | undefined;
|
346
342
|
} | {
|
347
|
-
type: "
|
348
|
-
comment: string;
|
343
|
+
type: "ARCHIVE";
|
349
344
|
conditionals: ({
|
350
345
|
type: "SHOW";
|
351
346
|
conditional: import(".").JSONSchema;
|
@@ -371,7 +366,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
371
366
|
fields: import("./FieldConfig").Inferred[];
|
372
367
|
};
|
373
368
|
}[];
|
374
|
-
isDuplicate: boolean;
|
375
369
|
draft?: boolean | undefined;
|
376
370
|
} | {
|
377
371
|
type: "REGISTER";
|
@@ -714,7 +708,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
714
708
|
})[] | undefined;
|
715
709
|
} | {
|
716
710
|
type: "REJECT";
|
717
|
-
comment: string;
|
718
711
|
label: {
|
719
712
|
id: string;
|
720
713
|
description: string;
|
@@ -753,7 +746,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
753
746
|
};
|
754
747
|
active?: boolean | undefined;
|
755
748
|
}[];
|
756
|
-
isDuplicate: boolean;
|
757
749
|
draft?: boolean | undefined;
|
758
750
|
conditionals?: ({
|
759
751
|
type: "SHOW";
|
@@ -764,7 +756,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
764
756
|
})[] | undefined;
|
765
757
|
} | {
|
766
758
|
type: "MARKED_AS_DUPLICATE";
|
767
|
-
comment: string;
|
768
759
|
label: {
|
769
760
|
id: string;
|
770
761
|
description: string;
|
@@ -803,7 +794,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
803
794
|
};
|
804
795
|
active?: boolean | undefined;
|
805
796
|
}[];
|
806
|
-
duplicates: string[];
|
807
797
|
draft?: boolean | undefined;
|
808
798
|
conditionals?: ({
|
809
799
|
type: "SHOW";
|
@@ -813,8 +803,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
813
803
|
conditional: import(".").JSONSchema;
|
814
804
|
})[] | undefined;
|
815
805
|
} | {
|
816
|
-
type: "
|
817
|
-
comment: string;
|
806
|
+
type: "ARCHIVE";
|
818
807
|
label: {
|
819
808
|
id: string;
|
820
809
|
description: string;
|
@@ -853,7 +842,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
853
842
|
};
|
854
843
|
active?: boolean | undefined;
|
855
844
|
}[];
|
856
|
-
isDuplicate: boolean;
|
857
845
|
draft?: boolean | undefined;
|
858
846
|
conditionals?: ({
|
859
847
|
type: "SHOW";
|
@@ -1343,7 +1331,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
1343
1331
|
draft?: boolean | undefined;
|
1344
1332
|
} | {
|
1345
1333
|
type: "REJECT";
|
1346
|
-
comment: string;
|
1347
1334
|
conditionals: ({
|
1348
1335
|
type: "SHOW";
|
1349
1336
|
conditional: import(".").JSONSchema;
|
@@ -1369,11 +1356,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
1369
1356
|
fields: import("./FieldConfig").Inferred[];
|
1370
1357
|
};
|
1371
1358
|
}[];
|
1372
|
-
isDuplicate: boolean;
|
1373
1359
|
draft?: boolean | undefined;
|
1374
1360
|
} | {
|
1375
1361
|
type: "MARKED_AS_DUPLICATE";
|
1376
|
-
comment: string;
|
1377
1362
|
conditionals: ({
|
1378
1363
|
type: "SHOW";
|
1379
1364
|
conditional: import(".").JSONSchema;
|
@@ -1399,11 +1384,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
1399
1384
|
fields: import("./FieldConfig").Inferred[];
|
1400
1385
|
};
|
1401
1386
|
}[];
|
1402
|
-
duplicates: string[];
|
1403
1387
|
draft?: boolean | undefined;
|
1404
1388
|
} | {
|
1405
|
-
type: "
|
1406
|
-
comment: string;
|
1389
|
+
type: "ARCHIVE";
|
1407
1390
|
conditionals: ({
|
1408
1391
|
type: "SHOW";
|
1409
1392
|
conditional: import(".").JSONSchema;
|
@@ -1429,7 +1412,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
1429
1412
|
fields: import("./FieldConfig").Inferred[];
|
1430
1413
|
};
|
1431
1414
|
}[];
|
1432
|
-
isDuplicate: boolean;
|
1433
1415
|
draft?: boolean | undefined;
|
1434
1416
|
} | {
|
1435
1417
|
type: "REGISTER";
|
@@ -1772,7 +1754,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
1772
1754
|
})[] | undefined;
|
1773
1755
|
} | {
|
1774
1756
|
type: "REJECT";
|
1775
|
-
comment: string;
|
1776
1757
|
label: {
|
1777
1758
|
id: string;
|
1778
1759
|
description: string;
|
@@ -1811,7 +1792,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
1811
1792
|
};
|
1812
1793
|
active?: boolean | undefined;
|
1813
1794
|
}[];
|
1814
|
-
isDuplicate: boolean;
|
1815
1795
|
draft?: boolean | undefined;
|
1816
1796
|
conditionals?: ({
|
1817
1797
|
type: "SHOW";
|
@@ -1822,7 +1802,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
1822
1802
|
})[] | undefined;
|
1823
1803
|
} | {
|
1824
1804
|
type: "MARKED_AS_DUPLICATE";
|
1825
|
-
comment: string;
|
1826
1805
|
label: {
|
1827
1806
|
id: string;
|
1828
1807
|
description: string;
|
@@ -1861,7 +1840,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
1861
1840
|
};
|
1862
1841
|
active?: boolean | undefined;
|
1863
1842
|
}[];
|
1864
|
-
duplicates: string[];
|
1865
1843
|
draft?: boolean | undefined;
|
1866
1844
|
conditionals?: ({
|
1867
1845
|
type: "SHOW";
|
@@ -1871,8 +1849,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
1871
1849
|
conditional: import(".").JSONSchema;
|
1872
1850
|
})[] | undefined;
|
1873
1851
|
} | {
|
1874
|
-
type: "
|
1875
|
-
comment: string;
|
1852
|
+
type: "ARCHIVE";
|
1876
1853
|
label: {
|
1877
1854
|
id: string;
|
1878
1855
|
description: string;
|
@@ -1911,7 +1888,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
1911
1888
|
};
|
1912
1889
|
active?: boolean | undefined;
|
1913
1890
|
}[];
|
1914
|
-
isDuplicate: boolean;
|
1915
1891
|
draft?: boolean | undefined;
|
1916
1892
|
conditionals?: ({
|
1917
1893
|
type: "SHOW";
|