@opencrvs/toolkit 1.8.0-rc.ff62f9e → 1.8.0-rc.ffb4f66
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 +1 -1
- package/dist/commons/api/router.d.ts +6496 -15505
- package/dist/commons/conditionals/conditionals.d.ts +25 -3
- package/dist/commons/conditionals/validate.d.ts +14 -17
- package/dist/commons/events/ActionConfig.d.ts +1202 -6605
- package/dist/commons/events/ActionDocument.d.ts +6956 -255
- package/dist/commons/events/ActionInput.d.ts +1316 -367
- package/dist/commons/events/ActionType.d.ts +25 -16
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +52 -37
- package/dist/commons/events/EventConfig.d.ts +648 -2983
- package/dist/commons/events/EventConfigInput.d.ts +5 -2
- package/dist/commons/events/EventDocument.d.ts +495 -662
- package/dist/commons/events/EventIndex.d.ts +6 -3
- package/dist/commons/events/EventMetadata.d.ts +3 -0
- package/dist/commons/events/FieldConfig.d.ts +245 -45
- package/dist/commons/events/FormConfig.d.ts +559 -322
- package/dist/commons/events/PageConfig.d.ts +335 -0
- package/dist/commons/events/TemplateConfig.d.ts +5 -5
- package/dist/commons/events/defineConfig.d.ts +28 -433
- package/dist/commons/events/index.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +63 -284
- package/dist/commons/events/utils.d.ts +83 -178
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +161 -93
- package/dist/events/index.js +1103 -819
- package/package.json +1 -1
@@ -13,7 +13,7 @@ declare const BaseField: z.ZodObject<{
|
|
13
13
|
expression: string;
|
14
14
|
dependsOn?: string[] | undefined;
|
15
15
|
}>]>>;
|
16
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
16
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
17
17
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
18
18
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
19
19
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -66,6 +66,9 @@ declare const BaseField: z.ZodObject<{
|
|
66
66
|
} | {
|
67
67
|
type: "ENABLE";
|
68
68
|
conditional: import(".").JSONSchema;
|
69
|
+
} | {
|
70
|
+
type: "DISPLAY_ON_REVIEW";
|
71
|
+
conditional: import(".").JSONSchema;
|
69
72
|
})[] | undefined;
|
70
73
|
disabled?: boolean | undefined;
|
71
74
|
hidden?: boolean | undefined;
|
@@ -98,6 +101,9 @@ declare const BaseField: z.ZodObject<{
|
|
98
101
|
} | {
|
99
102
|
type: "ENABLE";
|
100
103
|
conditional: import(".").JSONSchema;
|
104
|
+
} | {
|
105
|
+
type: "DISPLAY_ON_REVIEW";
|
106
|
+
conditional: import(".").JSONSchema;
|
101
107
|
})[] | undefined;
|
102
108
|
disabled?: boolean | undefined;
|
103
109
|
hidden?: boolean | undefined;
|
@@ -121,7 +127,7 @@ declare const Divider: z.ZodObject<z.objectUtil.extendShape<{
|
|
121
127
|
expression: string;
|
122
128
|
dependsOn?: string[] | undefined;
|
123
129
|
}>]>>;
|
124
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
130
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
125
131
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
126
132
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
127
133
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -177,6 +183,9 @@ declare const Divider: z.ZodObject<z.objectUtil.extendShape<{
|
|
177
183
|
} | {
|
178
184
|
type: "ENABLE";
|
179
185
|
conditional: import(".").JSONSchema;
|
186
|
+
} | {
|
187
|
+
type: "DISPLAY_ON_REVIEW";
|
188
|
+
conditional: import(".").JSONSchema;
|
180
189
|
})[] | undefined;
|
181
190
|
disabled?: boolean | undefined;
|
182
191
|
hidden?: boolean | undefined;
|
@@ -210,6 +219,9 @@ declare const Divider: z.ZodObject<z.objectUtil.extendShape<{
|
|
210
219
|
} | {
|
211
220
|
type: "ENABLE";
|
212
221
|
conditional: import(".").JSONSchema;
|
222
|
+
} | {
|
223
|
+
type: "DISPLAY_ON_REVIEW";
|
224
|
+
conditional: import(".").JSONSchema;
|
213
225
|
})[] | undefined;
|
214
226
|
disabled?: boolean | undefined;
|
215
227
|
hidden?: boolean | undefined;
|
@@ -233,7 +245,7 @@ declare const TextField: z.ZodObject<z.objectUtil.extendShape<{
|
|
233
245
|
expression: string;
|
234
246
|
dependsOn?: string[] | undefined;
|
235
247
|
}>]>>;
|
236
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
248
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
237
249
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
238
250
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
239
251
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -331,6 +343,9 @@ declare const TextField: z.ZodObject<z.objectUtil.extendShape<{
|
|
331
343
|
} | {
|
332
344
|
type: "ENABLE";
|
333
345
|
conditional: import(".").JSONSchema;
|
346
|
+
} | {
|
347
|
+
type: "DISPLAY_ON_REVIEW";
|
348
|
+
conditional: import(".").JSONSchema;
|
334
349
|
})[] | undefined;
|
335
350
|
disabled?: boolean | undefined;
|
336
351
|
hidden?: boolean | undefined;
|
@@ -370,6 +385,9 @@ declare const TextField: z.ZodObject<z.objectUtil.extendShape<{
|
|
370
385
|
} | {
|
371
386
|
type: "ENABLE";
|
372
387
|
conditional: import(".").JSONSchema;
|
388
|
+
} | {
|
389
|
+
type: "DISPLAY_ON_REVIEW";
|
390
|
+
conditional: import(".").JSONSchema;
|
373
391
|
})[] | undefined;
|
374
392
|
disabled?: boolean | undefined;
|
375
393
|
hidden?: boolean | undefined;
|
@@ -407,7 +425,7 @@ declare const NumberField: z.ZodObject<z.objectUtil.extendShape<{
|
|
407
425
|
expression: string;
|
408
426
|
dependsOn?: string[] | undefined;
|
409
427
|
}>]>>;
|
410
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
428
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
411
429
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
412
430
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
413
431
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -505,6 +523,9 @@ declare const NumberField: z.ZodObject<z.objectUtil.extendShape<{
|
|
505
523
|
} | {
|
506
524
|
type: "ENABLE";
|
507
525
|
conditional: import(".").JSONSchema;
|
526
|
+
} | {
|
527
|
+
type: "DISPLAY_ON_REVIEW";
|
528
|
+
conditional: import(".").JSONSchema;
|
508
529
|
})[] | undefined;
|
509
530
|
disabled?: boolean | undefined;
|
510
531
|
hidden?: boolean | undefined;
|
@@ -544,6 +565,9 @@ declare const NumberField: z.ZodObject<z.objectUtil.extendShape<{
|
|
544
565
|
} | {
|
545
566
|
type: "ENABLE";
|
546
567
|
conditional: import(".").JSONSchema;
|
568
|
+
} | {
|
569
|
+
type: "DISPLAY_ON_REVIEW";
|
570
|
+
conditional: import(".").JSONSchema;
|
547
571
|
})[] | undefined;
|
548
572
|
disabled?: boolean | undefined;
|
549
573
|
hidden?: boolean | undefined;
|
@@ -580,7 +604,7 @@ declare const TextAreaField: z.ZodObject<z.objectUtil.extendShape<{
|
|
580
604
|
expression: string;
|
581
605
|
dependsOn?: string[] | undefined;
|
582
606
|
}>]>>;
|
583
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
607
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
584
608
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
585
609
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
586
610
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -681,6 +705,9 @@ declare const TextAreaField: z.ZodObject<z.objectUtil.extendShape<{
|
|
681
705
|
} | {
|
682
706
|
type: "ENABLE";
|
683
707
|
conditional: import(".").JSONSchema;
|
708
|
+
} | {
|
709
|
+
type: "DISPLAY_ON_REVIEW";
|
710
|
+
conditional: import(".").JSONSchema;
|
684
711
|
})[] | undefined;
|
685
712
|
disabled?: boolean | undefined;
|
686
713
|
hidden?: boolean | undefined;
|
@@ -721,6 +748,9 @@ declare const TextAreaField: z.ZodObject<z.objectUtil.extendShape<{
|
|
721
748
|
} | {
|
722
749
|
type: "ENABLE";
|
723
750
|
conditional: import(".").JSONSchema;
|
751
|
+
} | {
|
752
|
+
type: "DISPLAY_ON_REVIEW";
|
753
|
+
conditional: import(".").JSONSchema;
|
724
754
|
})[] | undefined;
|
725
755
|
disabled?: boolean | undefined;
|
726
756
|
hidden?: boolean | undefined;
|
@@ -762,7 +792,7 @@ declare const SignatureField: z.ZodObject<z.objectUtil.extendShape<{
|
|
762
792
|
expression: string;
|
763
793
|
dependsOn?: string[] | undefined;
|
764
794
|
}>]>>;
|
765
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
795
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
766
796
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
767
797
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
768
798
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -838,6 +868,9 @@ declare const SignatureField: z.ZodObject<z.objectUtil.extendShape<{
|
|
838
868
|
} | {
|
839
869
|
type: "ENABLE";
|
840
870
|
conditional: import(".").JSONSchema;
|
871
|
+
} | {
|
872
|
+
type: "DISPLAY_ON_REVIEW";
|
873
|
+
conditional: import(".").JSONSchema;
|
841
874
|
})[] | undefined;
|
842
875
|
disabled?: boolean | undefined;
|
843
876
|
hidden?: boolean | undefined;
|
@@ -876,6 +909,9 @@ declare const SignatureField: z.ZodObject<z.objectUtil.extendShape<{
|
|
876
909
|
} | {
|
877
910
|
type: "ENABLE";
|
878
911
|
conditional: import(".").JSONSchema;
|
912
|
+
} | {
|
913
|
+
type: "DISPLAY_ON_REVIEW";
|
914
|
+
conditional: import(".").JSONSchema;
|
879
915
|
})[] | undefined;
|
880
916
|
disabled?: boolean | undefined;
|
881
917
|
hidden?: boolean | undefined;
|
@@ -903,7 +939,7 @@ export declare const EmailField: z.ZodObject<z.objectUtil.extendShape<{
|
|
903
939
|
expression: string;
|
904
940
|
dependsOn?: string[] | undefined;
|
905
941
|
}>]>>;
|
906
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
942
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
907
943
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
908
944
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
909
945
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -976,6 +1012,9 @@ export declare const EmailField: z.ZodObject<z.objectUtil.extendShape<{
|
|
976
1012
|
} | {
|
977
1013
|
type: "ENABLE";
|
978
1014
|
conditional: import(".").JSONSchema;
|
1015
|
+
} | {
|
1016
|
+
type: "DISPLAY_ON_REVIEW";
|
1017
|
+
conditional: import(".").JSONSchema;
|
979
1018
|
})[] | undefined;
|
980
1019
|
disabled?: boolean | undefined;
|
981
1020
|
hidden?: boolean | undefined;
|
@@ -1012,6 +1051,9 @@ export declare const EmailField: z.ZodObject<z.objectUtil.extendShape<{
|
|
1012
1051
|
} | {
|
1013
1052
|
type: "ENABLE";
|
1014
1053
|
conditional: import(".").JSONSchema;
|
1054
|
+
} | {
|
1055
|
+
type: "DISPLAY_ON_REVIEW";
|
1056
|
+
conditional: import(".").JSONSchema;
|
1015
1057
|
})[] | undefined;
|
1016
1058
|
disabled?: boolean | undefined;
|
1017
1059
|
hidden?: boolean | undefined;
|
@@ -1038,7 +1080,7 @@ declare const DateField: z.ZodObject<z.objectUtil.extendShape<{
|
|
1038
1080
|
expression: string;
|
1039
1081
|
dependsOn?: string[] | undefined;
|
1040
1082
|
}>]>>;
|
1041
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
1083
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
1042
1084
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1043
1085
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1044
1086
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1119,6 +1161,9 @@ declare const DateField: z.ZodObject<z.objectUtil.extendShape<{
|
|
1119
1161
|
} | {
|
1120
1162
|
type: "ENABLE";
|
1121
1163
|
conditional: import(".").JSONSchema;
|
1164
|
+
} | {
|
1165
|
+
type: "DISPLAY_ON_REVIEW";
|
1166
|
+
conditional: import(".").JSONSchema;
|
1122
1167
|
})[] | undefined;
|
1123
1168
|
disabled?: boolean | undefined;
|
1124
1169
|
hidden?: boolean | undefined;
|
@@ -1155,6 +1200,9 @@ declare const DateField: z.ZodObject<z.objectUtil.extendShape<{
|
|
1155
1200
|
} | {
|
1156
1201
|
type: "ENABLE";
|
1157
1202
|
conditional: import(".").JSONSchema;
|
1203
|
+
} | {
|
1204
|
+
type: "DISPLAY_ON_REVIEW";
|
1205
|
+
conditional: import(".").JSONSchema;
|
1158
1206
|
})[] | undefined;
|
1159
1207
|
disabled?: boolean | undefined;
|
1160
1208
|
hidden?: boolean | undefined;
|
@@ -1187,7 +1235,7 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
|
|
1187
1235
|
expression: string;
|
1188
1236
|
dependsOn?: string[] | undefined;
|
1189
1237
|
}>]>>;
|
1190
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
1238
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
1191
1239
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1192
1240
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1193
1241
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1275,6 +1323,9 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
|
|
1275
1323
|
} | {
|
1276
1324
|
type: "ENABLE";
|
1277
1325
|
conditional: import(".").JSONSchema;
|
1326
|
+
} | {
|
1327
|
+
type: "DISPLAY_ON_REVIEW";
|
1328
|
+
conditional: import(".").JSONSchema;
|
1278
1329
|
})[] | undefined;
|
1279
1330
|
disabled?: boolean | undefined;
|
1280
1331
|
hidden?: boolean | undefined;
|
@@ -1308,6 +1359,9 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
|
|
1308
1359
|
} | {
|
1309
1360
|
type: "ENABLE";
|
1310
1361
|
conditional: import(".").JSONSchema;
|
1362
|
+
} | {
|
1363
|
+
type: "DISPLAY_ON_REVIEW";
|
1364
|
+
conditional: import(".").JSONSchema;
|
1311
1365
|
})[] | undefined;
|
1312
1366
|
disabled?: boolean | undefined;
|
1313
1367
|
hidden?: boolean | undefined;
|
@@ -1336,7 +1390,7 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
|
|
1336
1390
|
expression: string;
|
1337
1391
|
dependsOn?: string[] | undefined;
|
1338
1392
|
}>]>>;
|
1339
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
1393
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
1340
1394
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1341
1395
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1342
1396
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1402,6 +1456,9 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
|
|
1402
1456
|
} | {
|
1403
1457
|
type: "ENABLE";
|
1404
1458
|
conditional: import(".").JSONSchema;
|
1459
|
+
} | {
|
1460
|
+
type: "DISPLAY_ON_REVIEW";
|
1461
|
+
conditional: import(".").JSONSchema;
|
1405
1462
|
})[] | undefined;
|
1406
1463
|
disabled?: boolean | undefined;
|
1407
1464
|
hidden?: boolean | undefined;
|
@@ -1435,6 +1492,9 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
|
|
1435
1492
|
} | {
|
1436
1493
|
type: "ENABLE";
|
1437
1494
|
conditional: import(".").JSONSchema;
|
1495
|
+
} | {
|
1496
|
+
type: "DISPLAY_ON_REVIEW";
|
1497
|
+
conditional: import(".").JSONSchema;
|
1438
1498
|
})[] | undefined;
|
1439
1499
|
disabled?: boolean | undefined;
|
1440
1500
|
hidden?: boolean | undefined;
|
@@ -1458,7 +1518,7 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1458
1518
|
expression: string;
|
1459
1519
|
dependsOn?: string[] | undefined;
|
1460
1520
|
}>]>>;
|
1461
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
1521
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
1462
1522
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1463
1523
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1464
1524
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1544,6 +1604,9 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1544
1604
|
} | {
|
1545
1605
|
type: "ENABLE";
|
1546
1606
|
conditional: import(".").JSONSchema;
|
1607
|
+
} | {
|
1608
|
+
type: "DISPLAY_ON_REVIEW";
|
1609
|
+
conditional: import(".").JSONSchema;
|
1547
1610
|
})[] | undefined;
|
1548
1611
|
disabled?: boolean | undefined;
|
1549
1612
|
hidden?: boolean | undefined;
|
@@ -1577,6 +1640,9 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1577
1640
|
} | {
|
1578
1641
|
type: "ENABLE";
|
1579
1642
|
conditional: import(".").JSONSchema;
|
1643
|
+
} | {
|
1644
|
+
type: "DISPLAY_ON_REVIEW";
|
1645
|
+
conditional: import(".").JSONSchema;
|
1580
1646
|
})[] | undefined;
|
1581
1647
|
disabled?: boolean | undefined;
|
1582
1648
|
hidden?: boolean | undefined;
|
@@ -1625,7 +1691,7 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
1625
1691
|
expression: string;
|
1626
1692
|
dependsOn?: string[] | undefined;
|
1627
1693
|
}>]>>;
|
1628
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
1694
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
1629
1695
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1630
1696
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1631
1697
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1730,6 +1796,9 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
1730
1796
|
} | {
|
1731
1797
|
type: "ENABLE";
|
1732
1798
|
conditional: import(".").JSONSchema;
|
1799
|
+
} | {
|
1800
|
+
type: "DISPLAY_ON_REVIEW";
|
1801
|
+
conditional: import(".").JSONSchema;
|
1733
1802
|
})[] | undefined;
|
1734
1803
|
disabled?: boolean | undefined;
|
1735
1804
|
hidden?: boolean | undefined;
|
@@ -1776,6 +1845,9 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
1776
1845
|
} | {
|
1777
1846
|
type: "ENABLE";
|
1778
1847
|
conditional: import(".").JSONSchema;
|
1848
|
+
} | {
|
1849
|
+
type: "DISPLAY_ON_REVIEW";
|
1850
|
+
conditional: import(".").JSONSchema;
|
1779
1851
|
})[] | undefined;
|
1780
1852
|
disabled?: boolean | undefined;
|
1781
1853
|
hidden?: boolean | undefined;
|
@@ -1804,7 +1876,7 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
|
|
1804
1876
|
expression: string;
|
1805
1877
|
dependsOn?: string[] | undefined;
|
1806
1878
|
}>]>>;
|
1807
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
1879
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
1808
1880
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1809
1881
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1810
1882
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1886,6 +1958,9 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
|
|
1886
1958
|
} | {
|
1887
1959
|
type: "ENABLE";
|
1888
1960
|
conditional: import(".").JSONSchema;
|
1961
|
+
} | {
|
1962
|
+
type: "DISPLAY_ON_REVIEW";
|
1963
|
+
conditional: import(".").JSONSchema;
|
1889
1964
|
})[] | undefined;
|
1890
1965
|
disabled?: boolean | undefined;
|
1891
1966
|
hidden?: boolean | undefined;
|
@@ -1921,6 +1996,9 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
|
|
1921
1996
|
} | {
|
1922
1997
|
type: "ENABLE";
|
1923
1998
|
conditional: import(".").JSONSchema;
|
1999
|
+
} | {
|
2000
|
+
type: "DISPLAY_ON_REVIEW";
|
2001
|
+
conditional: import(".").JSONSchema;
|
1924
2002
|
})[] | undefined;
|
1925
2003
|
disabled?: boolean | undefined;
|
1926
2004
|
hidden?: boolean | undefined;
|
@@ -1949,7 +2027,7 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
1949
2027
|
expression: string;
|
1950
2028
|
dependsOn?: string[] | undefined;
|
1951
2029
|
}>]>>;
|
1952
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2030
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
1953
2031
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1954
2032
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1955
2033
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2037,6 +2115,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
2037
2115
|
} | {
|
2038
2116
|
type: "ENABLE";
|
2039
2117
|
conditional: import(".").JSONSchema;
|
2118
|
+
} | {
|
2119
|
+
type: "DISPLAY_ON_REVIEW";
|
2120
|
+
conditional: import(".").JSONSchema;
|
2040
2121
|
})[] | undefined;
|
2041
2122
|
disabled?: boolean | undefined;
|
2042
2123
|
hidden?: boolean | undefined;
|
@@ -2078,6 +2159,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
2078
2159
|
} | {
|
2079
2160
|
type: "ENABLE";
|
2080
2161
|
conditional: import(".").JSONSchema;
|
2162
|
+
} | {
|
2163
|
+
type: "DISPLAY_ON_REVIEW";
|
2164
|
+
conditional: import(".").JSONSchema;
|
2081
2165
|
})[] | undefined;
|
2082
2166
|
disabled?: boolean | undefined;
|
2083
2167
|
hidden?: boolean | undefined;
|
@@ -2100,7 +2184,7 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2100
2184
|
expression: string;
|
2101
2185
|
dependsOn?: string[] | undefined;
|
2102
2186
|
}>]>>;
|
2103
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2187
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2104
2188
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2105
2189
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2106
2190
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2166,6 +2250,9 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2166
2250
|
} | {
|
2167
2251
|
type: "ENABLE";
|
2168
2252
|
conditional: import(".").JSONSchema;
|
2253
|
+
} | {
|
2254
|
+
type: "DISPLAY_ON_REVIEW";
|
2255
|
+
conditional: import(".").JSONSchema;
|
2169
2256
|
})[] | undefined;
|
2170
2257
|
disabled?: boolean | undefined;
|
2171
2258
|
hidden?: boolean | undefined;
|
@@ -2199,6 +2286,9 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2199
2286
|
} | {
|
2200
2287
|
type: "ENABLE";
|
2201
2288
|
conditional: import(".").JSONSchema;
|
2289
|
+
} | {
|
2290
|
+
type: "DISPLAY_ON_REVIEW";
|
2291
|
+
conditional: import(".").JSONSchema;
|
2202
2292
|
})[] | undefined;
|
2203
2293
|
disabled?: boolean | undefined;
|
2204
2294
|
hidden?: boolean | undefined;
|
@@ -2222,7 +2312,7 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2222
2312
|
expression: string;
|
2223
2313
|
dependsOn?: string[] | undefined;
|
2224
2314
|
}>]>>;
|
2225
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2315
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2226
2316
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2227
2317
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2228
2318
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2288,6 +2378,9 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2288
2378
|
} | {
|
2289
2379
|
type: "ENABLE";
|
2290
2380
|
conditional: import(".").JSONSchema;
|
2381
|
+
} | {
|
2382
|
+
type: "DISPLAY_ON_REVIEW";
|
2383
|
+
conditional: import(".").JSONSchema;
|
2291
2384
|
})[] | undefined;
|
2292
2385
|
disabled?: boolean | undefined;
|
2293
2386
|
hidden?: boolean | undefined;
|
@@ -2321,6 +2414,9 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2321
2414
|
} | {
|
2322
2415
|
type: "ENABLE";
|
2323
2416
|
conditional: import(".").JSONSchema;
|
2417
|
+
} | {
|
2418
|
+
type: "DISPLAY_ON_REVIEW";
|
2419
|
+
conditional: import(".").JSONSchema;
|
2324
2420
|
})[] | undefined;
|
2325
2421
|
disabled?: boolean | undefined;
|
2326
2422
|
hidden?: boolean | undefined;
|
@@ -2335,22 +2431,22 @@ export type Country = z.infer<typeof Country>;
|
|
2335
2431
|
export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2336
2432
|
declare const AdministrativeAreaConfiguration: z.ZodObject<{
|
2337
2433
|
partOf: z.ZodOptional<z.ZodObject<{
|
2338
|
-
$
|
2434
|
+
$declaration: z.ZodString;
|
2339
2435
|
}, "strip", z.ZodTypeAny, {
|
2340
|
-
$
|
2436
|
+
$declaration: string;
|
2341
2437
|
}, {
|
2342
|
-
$
|
2438
|
+
$declaration: string;
|
2343
2439
|
}>>;
|
2344
2440
|
type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2345
2441
|
}, "strip", z.ZodTypeAny, {
|
2346
2442
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2347
2443
|
partOf?: {
|
2348
|
-
$
|
2444
|
+
$declaration: string;
|
2349
2445
|
} | undefined;
|
2350
2446
|
}, {
|
2351
2447
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2352
2448
|
partOf?: {
|
2353
|
-
$
|
2449
|
+
$declaration: string;
|
2354
2450
|
} | undefined;
|
2355
2451
|
}>;
|
2356
2452
|
declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
@@ -2365,7 +2461,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2365
2461
|
expression: string;
|
2366
2462
|
dependsOn?: string[] | undefined;
|
2367
2463
|
}>]>>;
|
2368
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2464
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2369
2465
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2370
2466
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2371
2467
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2413,22 +2509,22 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2413
2509
|
}>]>>;
|
2414
2510
|
configuration: z.ZodObject<{
|
2415
2511
|
partOf: z.ZodOptional<z.ZodObject<{
|
2416
|
-
$
|
2512
|
+
$declaration: z.ZodString;
|
2417
2513
|
}, "strip", z.ZodTypeAny, {
|
2418
|
-
$
|
2514
|
+
$declaration: string;
|
2419
2515
|
}, {
|
2420
|
-
$
|
2516
|
+
$declaration: string;
|
2421
2517
|
}>>;
|
2422
2518
|
type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2423
2519
|
}, "strip", z.ZodTypeAny, {
|
2424
2520
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2425
2521
|
partOf?: {
|
2426
|
-
$
|
2522
|
+
$declaration: string;
|
2427
2523
|
} | undefined;
|
2428
2524
|
}, {
|
2429
2525
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2430
2526
|
partOf?: {
|
2431
|
-
$
|
2527
|
+
$declaration: string;
|
2432
2528
|
} | undefined;
|
2433
2529
|
}>;
|
2434
2530
|
}>, "strip", z.ZodTypeAny, {
|
@@ -2438,7 +2534,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2438
2534
|
configuration: {
|
2439
2535
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2440
2536
|
partOf?: {
|
2441
|
-
$
|
2537
|
+
$declaration: string;
|
2442
2538
|
} | undefined;
|
2443
2539
|
};
|
2444
2540
|
validation?: {
|
@@ -2457,6 +2553,9 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2457
2553
|
} | {
|
2458
2554
|
type: "ENABLE";
|
2459
2555
|
conditional: import(".").JSONSchema;
|
2556
|
+
} | {
|
2557
|
+
type: "DISPLAY_ON_REVIEW";
|
2558
|
+
conditional: import(".").JSONSchema;
|
2460
2559
|
})[] | undefined;
|
2461
2560
|
disabled?: boolean | undefined;
|
2462
2561
|
hidden?: boolean | undefined;
|
@@ -2473,7 +2572,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2473
2572
|
configuration: {
|
2474
2573
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2475
2574
|
partOf?: {
|
2476
|
-
$
|
2575
|
+
$declaration: string;
|
2477
2576
|
} | undefined;
|
2478
2577
|
};
|
2479
2578
|
validation?: {
|
@@ -2496,6 +2595,9 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2496
2595
|
} | {
|
2497
2596
|
type: "ENABLE";
|
2498
2597
|
conditional: import(".").JSONSchema;
|
2598
|
+
} | {
|
2599
|
+
type: "DISPLAY_ON_REVIEW";
|
2600
|
+
conditional: import(".").JSONSchema;
|
2499
2601
|
})[] | undefined;
|
2500
2602
|
disabled?: boolean | undefined;
|
2501
2603
|
hidden?: boolean | undefined;
|
@@ -2519,7 +2621,7 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2519
2621
|
expression: string;
|
2520
2622
|
dependsOn?: string[] | undefined;
|
2521
2623
|
}>]>>;
|
2522
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2624
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2523
2625
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2524
2626
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2525
2627
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2585,6 +2687,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2585
2687
|
} | {
|
2586
2688
|
type: "ENABLE";
|
2587
2689
|
conditional: import(".").JSONSchema;
|
2690
|
+
} | {
|
2691
|
+
type: "DISPLAY_ON_REVIEW";
|
2692
|
+
conditional: import(".").JSONSchema;
|
2588
2693
|
})[] | undefined;
|
2589
2694
|
disabled?: boolean | undefined;
|
2590
2695
|
hidden?: boolean | undefined;
|
@@ -2618,6 +2723,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2618
2723
|
} | {
|
2619
2724
|
type: "ENABLE";
|
2620
2725
|
conditional: import(".").JSONSchema;
|
2726
|
+
} | {
|
2727
|
+
type: "DISPLAY_ON_REVIEW";
|
2728
|
+
conditional: import(".").JSONSchema;
|
2621
2729
|
})[] | undefined;
|
2622
2730
|
disabled?: boolean | undefined;
|
2623
2731
|
hidden?: boolean | undefined;
|
@@ -2641,7 +2749,7 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2641
2749
|
expression: string;
|
2642
2750
|
dependsOn?: string[] | undefined;
|
2643
2751
|
}>]>>;
|
2644
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2752
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2645
2753
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2646
2754
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2647
2755
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2733,6 +2841,9 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2733
2841
|
} | {
|
2734
2842
|
type: "ENABLE";
|
2735
2843
|
conditional: import(".").JSONSchema;
|
2844
|
+
} | {
|
2845
|
+
type: "DISPLAY_ON_REVIEW";
|
2846
|
+
conditional: import(".").JSONSchema;
|
2736
2847
|
})[] | undefined;
|
2737
2848
|
disabled?: boolean | undefined;
|
2738
2849
|
hidden?: boolean | undefined;
|
@@ -2774,6 +2885,9 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2774
2885
|
} | {
|
2775
2886
|
type: "ENABLE";
|
2776
2887
|
conditional: import(".").JSONSchema;
|
2888
|
+
} | {
|
2889
|
+
type: "DISPLAY_ON_REVIEW";
|
2890
|
+
conditional: import(".").JSONSchema;
|
2777
2891
|
})[] | undefined;
|
2778
2892
|
disabled?: boolean | undefined;
|
2779
2893
|
hidden?: boolean | undefined;
|
@@ -2801,7 +2915,7 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2801
2915
|
expression: string;
|
2802
2916
|
dependsOn?: string[] | undefined;
|
2803
2917
|
}>]>>;
|
2804
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2918
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2805
2919
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2806
2920
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2807
2921
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2867,6 +2981,9 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2867
2981
|
} | {
|
2868
2982
|
type: "ENABLE";
|
2869
2983
|
conditional: import(".").JSONSchema;
|
2984
|
+
} | {
|
2985
|
+
type: "DISPLAY_ON_REVIEW";
|
2986
|
+
conditional: import(".").JSONSchema;
|
2870
2987
|
})[] | undefined;
|
2871
2988
|
disabled?: boolean | undefined;
|
2872
2989
|
hidden?: boolean | undefined;
|
@@ -2900,6 +3017,9 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2900
3017
|
} | {
|
2901
3018
|
type: "ENABLE";
|
2902
3019
|
conditional: import(".").JSONSchema;
|
3020
|
+
} | {
|
3021
|
+
type: "DISPLAY_ON_REVIEW";
|
3022
|
+
conditional: import(".").JSONSchema;
|
2903
3023
|
})[] | undefined;
|
2904
3024
|
disabled?: boolean | undefined;
|
2905
3025
|
hidden?: boolean | undefined;
|
@@ -2923,7 +3043,7 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2923
3043
|
expression: string;
|
2924
3044
|
dependsOn?: string[] | undefined;
|
2925
3045
|
}>]>>;
|
2926
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
3046
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2927
3047
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2928
3048
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2929
3049
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2989,6 +3109,9 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2989
3109
|
} | {
|
2990
3110
|
type: "ENABLE";
|
2991
3111
|
conditional: import(".").JSONSchema;
|
3112
|
+
} | {
|
3113
|
+
type: "DISPLAY_ON_REVIEW";
|
3114
|
+
conditional: import(".").JSONSchema;
|
2992
3115
|
})[] | undefined;
|
2993
3116
|
disabled?: boolean | undefined;
|
2994
3117
|
hidden?: boolean | undefined;
|
@@ -3022,6 +3145,9 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
3022
3145
|
} | {
|
3023
3146
|
type: "ENABLE";
|
3024
3147
|
conditional: import(".").JSONSchema;
|
3148
|
+
} | {
|
3149
|
+
type: "DISPLAY_ON_REVIEW";
|
3150
|
+
conditional: import(".").JSONSchema;
|
3025
3151
|
})[] | undefined;
|
3026
3152
|
disabled?: boolean | undefined;
|
3027
3153
|
hidden?: boolean | undefined;
|
@@ -3045,7 +3171,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3045
3171
|
expression: string;
|
3046
3172
|
dependsOn?: string[] | undefined;
|
3047
3173
|
}>]>>;
|
3048
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
3174
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
3049
3175
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3050
3176
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3051
3177
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -3213,6 +3339,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3213
3339
|
} | {
|
3214
3340
|
type: "ENABLE";
|
3215
3341
|
conditional: import(".").JSONSchema;
|
3342
|
+
} | {
|
3343
|
+
type: "DISPLAY_ON_REVIEW";
|
3344
|
+
conditional: import(".").JSONSchema;
|
3216
3345
|
})[] | undefined;
|
3217
3346
|
disabled?: boolean | undefined;
|
3218
3347
|
hidden?: boolean | undefined;
|
@@ -3271,6 +3400,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3271
3400
|
} | {
|
3272
3401
|
type: "ENABLE";
|
3273
3402
|
conditional: import(".").JSONSchema;
|
3403
|
+
} | {
|
3404
|
+
type: "DISPLAY_ON_REVIEW";
|
3405
|
+
conditional: import(".").JSONSchema;
|
3274
3406
|
})[] | undefined;
|
3275
3407
|
disabled?: boolean | undefined;
|
3276
3408
|
hidden?: boolean | undefined;
|
@@ -3281,6 +3413,31 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3281
3413
|
} | undefined;
|
3282
3414
|
hideLabel?: boolean | undefined;
|
3283
3415
|
}>;
|
3416
|
+
export declare const DataEntry: z.ZodUnion<[z.ZodObject<{
|
3417
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3418
|
+
id: string;
|
3419
|
+
description: string;
|
3420
|
+
defaultMessage: string;
|
3421
|
+
}>;
|
3422
|
+
value: z.ZodString;
|
3423
|
+
}, "strip", z.ZodTypeAny, {
|
3424
|
+
value: string;
|
3425
|
+
label: TranslationConfig;
|
3426
|
+
}, {
|
3427
|
+
value: string;
|
3428
|
+
label: {
|
3429
|
+
id: string;
|
3430
|
+
description: string;
|
3431
|
+
defaultMessage: string;
|
3432
|
+
};
|
3433
|
+
}>, z.ZodObject<{
|
3434
|
+
fieldId: z.ZodString;
|
3435
|
+
}, "strip", z.ZodTypeAny, {
|
3436
|
+
fieldId: string;
|
3437
|
+
}, {
|
3438
|
+
fieldId: string;
|
3439
|
+
}>]>;
|
3440
|
+
export type DataEntry = z.infer<typeof DataEntry>;
|
3284
3441
|
declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
3285
3442
|
id: z.ZodString;
|
3286
3443
|
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
|
@@ -3293,7 +3450,7 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3293
3450
|
expression: string;
|
3294
3451
|
dependsOn?: string[] | undefined;
|
3295
3452
|
}>]>>;
|
3296
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
3453
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
3297
3454
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3298
3455
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3299
3456
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -3335,22 +3492,49 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3335
3492
|
description: string;
|
3336
3493
|
defaultMessage: string;
|
3337
3494
|
}>>;
|
3338
|
-
data: z.ZodArray<z.ZodObject<{
|
3495
|
+
data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
3496
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3497
|
+
id: string;
|
3498
|
+
description: string;
|
3499
|
+
defaultMessage: string;
|
3500
|
+
}>;
|
3501
|
+
value: z.ZodString;
|
3502
|
+
}, "strip", z.ZodTypeAny, {
|
3503
|
+
value: string;
|
3504
|
+
label: TranslationConfig;
|
3505
|
+
}, {
|
3506
|
+
value: string;
|
3507
|
+
label: {
|
3508
|
+
id: string;
|
3509
|
+
description: string;
|
3510
|
+
defaultMessage: string;
|
3511
|
+
};
|
3512
|
+
}>, z.ZodObject<{
|
3339
3513
|
fieldId: z.ZodString;
|
3340
3514
|
}, "strip", z.ZodTypeAny, {
|
3341
3515
|
fieldId: string;
|
3342
3516
|
}, {
|
3343
3517
|
fieldId: string;
|
3344
|
-
}>, "many">;
|
3518
|
+
}>]>, "many">;
|
3345
3519
|
}, "strip", z.ZodTypeAny, {
|
3346
|
-
data: {
|
3520
|
+
data: ({
|
3521
|
+
value: string;
|
3522
|
+
label: TranslationConfig;
|
3523
|
+
} | {
|
3347
3524
|
fieldId: string;
|
3348
|
-
}[];
|
3525
|
+
})[];
|
3349
3526
|
subtitle?: TranslationConfig | undefined;
|
3350
3527
|
}, {
|
3351
|
-
data: {
|
3528
|
+
data: ({
|
3529
|
+
value: string;
|
3530
|
+
label: {
|
3531
|
+
id: string;
|
3532
|
+
description: string;
|
3533
|
+
defaultMessage: string;
|
3534
|
+
};
|
3535
|
+
} | {
|
3352
3536
|
fieldId: string;
|
3353
|
-
}[];
|
3537
|
+
})[];
|
3354
3538
|
subtitle?: {
|
3355
3539
|
id: string;
|
3356
3540
|
description: string;
|
@@ -3362,9 +3546,12 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3362
3546
|
id: string;
|
3363
3547
|
label: TranslationConfig;
|
3364
3548
|
configuration: {
|
3365
|
-
data: {
|
3549
|
+
data: ({
|
3550
|
+
value: string;
|
3551
|
+
label: TranslationConfig;
|
3552
|
+
} | {
|
3366
3553
|
fieldId: string;
|
3367
|
-
}[];
|
3554
|
+
})[];
|
3368
3555
|
subtitle?: TranslationConfig | undefined;
|
3369
3556
|
};
|
3370
3557
|
validation?: {
|
@@ -3383,6 +3570,9 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3383
3570
|
} | {
|
3384
3571
|
type: "ENABLE";
|
3385
3572
|
conditional: import(".").JSONSchema;
|
3573
|
+
} | {
|
3574
|
+
type: "DISPLAY_ON_REVIEW";
|
3575
|
+
conditional: import(".").JSONSchema;
|
3386
3576
|
})[] | undefined;
|
3387
3577
|
disabled?: boolean | undefined;
|
3388
3578
|
hidden?: boolean | undefined;
|
@@ -3397,9 +3587,16 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3397
3587
|
defaultMessage: string;
|
3398
3588
|
};
|
3399
3589
|
configuration: {
|
3400
|
-
data: {
|
3590
|
+
data: ({
|
3591
|
+
value: string;
|
3592
|
+
label: {
|
3593
|
+
id: string;
|
3594
|
+
description: string;
|
3595
|
+
defaultMessage: string;
|
3596
|
+
};
|
3597
|
+
} | {
|
3401
3598
|
fieldId: string;
|
3402
|
-
}[];
|
3599
|
+
})[];
|
3403
3600
|
subtitle?: {
|
3404
3601
|
id: string;
|
3405
3602
|
description: string;
|
@@ -3426,6 +3623,9 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3426
3623
|
} | {
|
3427
3624
|
type: "ENABLE";
|
3428
3625
|
conditional: import(".").JSONSchema;
|
3626
|
+
} | {
|
3627
|
+
type: "DISPLAY_ON_REVIEW";
|
3628
|
+
conditional: import(".").JSONSchema;
|
3429
3629
|
})[] | undefined;
|
3430
3630
|
disabled?: boolean | undefined;
|
3431
3631
|
hidden?: boolean | undefined;
|