@opencrvs/toolkit 1.8.0-rc.f7910f3 → 1.8.0-rc.f872339

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.
Files changed (31) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +5825 -13746
  3. package/dist/commons/conditionals/conditionals.d.ts +25 -3
  4. package/dist/commons/conditionals/validate.d.ts +12 -17
  5. package/dist/commons/events/ActionConfig.d.ts +1202 -6605
  6. package/dist/commons/events/ActionDocument.d.ts +7344 -244
  7. package/dist/commons/events/ActionInput.d.ts +2129 -392
  8. package/dist/commons/events/ActionType.d.ts +26 -16
  9. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  10. package/dist/commons/events/Conditional.d.ts +21 -5
  11. package/dist/commons/events/Draft.d.ts +52 -37
  12. package/dist/commons/events/EventConfig.d.ts +846 -3043
  13. package/dist/commons/events/EventConfigInput.d.ts +5 -2
  14. package/dist/commons/events/EventDocument.d.ts +703 -304
  15. package/dist/commons/events/EventIndex.d.ts +9 -3
  16. package/dist/commons/events/EventMetadata.d.ts +6 -0
  17. package/dist/commons/events/FieldConfig.d.ts +286 -45
  18. package/dist/commons/events/FormConfig.d.ts +559 -322
  19. package/dist/commons/events/PageConfig.d.ts +335 -0
  20. package/dist/commons/events/SummaryConfig.d.ts +93 -7
  21. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  22. package/dist/commons/events/User.d.ts +5 -0
  23. package/dist/commons/events/defineConfig.d.ts +41 -435
  24. package/dist/commons/events/index.d.ts +3 -1
  25. package/dist/commons/events/scopes.d.ts +25 -0
  26. package/dist/commons/events/test.utils.d.ts +63 -284
  27. package/dist/commons/events/utils.d.ts +83 -178
  28. package/dist/commons/events/utils.test.d.ts +2 -0
  29. package/dist/conditionals/index.js +161 -93
  30. package/dist/events/index.js +1348 -849
  31. 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").AllActionConditionalFields[]>, "many">>>;
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").AllActionConditionalFields[]>, "many">>>;
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").AllActionConditionalFields[]>, "many">>>;
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").AllActionConditionalFields[]>, "many">>>;
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").AllActionConditionalFields[]>, "many">>>;
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").AllActionConditionalFields[]>, "many">>>;
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").AllActionConditionalFields[]>, "many">>>;
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").AllActionConditionalFields[]>, "many">>>;
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").AllActionConditionalFields[]>, "many">>>;
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").AllActionConditionalFields[]>, "many">>>;
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").AllActionConditionalFields[]>, "many">>>;
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>>;
@@ -1504,18 +1564,29 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
1504
1564
  }, {
1505
1565
  width?: "full" | "auto" | undefined;
1506
1566
  }>>;
1567
+ fileName: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1568
+ id: string;
1569
+ description: string;
1570
+ defaultMessage: string;
1571
+ }>>;
1507
1572
  }, "strip", z.ZodTypeAny, {
1508
1573
  maxFileSize: number;
1509
1574
  acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
1510
1575
  style?: {
1511
1576
  width?: "full" | "auto" | undefined;
1512
1577
  } | undefined;
1578
+ fileName?: TranslationConfig | undefined;
1513
1579
  }, {
1514
1580
  maxFileSize?: number | undefined;
1515
1581
  acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
1516
1582
  style?: {
1517
1583
  width?: "full" | "auto" | undefined;
1518
1584
  } | undefined;
1585
+ fileName?: {
1586
+ id: string;
1587
+ description: string;
1588
+ defaultMessage: string;
1589
+ } | undefined;
1519
1590
  }>>;
1520
1591
  }>, "strip", z.ZodTypeAny, {
1521
1592
  type: "FILE";
@@ -1527,6 +1598,7 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
1527
1598
  style?: {
1528
1599
  width?: "full" | "auto" | undefined;
1529
1600
  } | undefined;
1601
+ fileName?: TranslationConfig | undefined;
1530
1602
  };
1531
1603
  validation?: {
1532
1604
  message: TranslationConfig;
@@ -1544,6 +1616,9 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
1544
1616
  } | {
1545
1617
  type: "ENABLE";
1546
1618
  conditional: import(".").JSONSchema;
1619
+ } | {
1620
+ type: "DISPLAY_ON_REVIEW";
1621
+ conditional: import(".").JSONSchema;
1547
1622
  })[] | undefined;
1548
1623
  disabled?: boolean | undefined;
1549
1624
  hidden?: boolean | undefined;
@@ -1577,6 +1652,9 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
1577
1652
  } | {
1578
1653
  type: "ENABLE";
1579
1654
  conditional: import(".").JSONSchema;
1655
+ } | {
1656
+ type: "DISPLAY_ON_REVIEW";
1657
+ conditional: import(".").JSONSchema;
1580
1658
  })[] | undefined;
1581
1659
  disabled?: boolean | undefined;
1582
1660
  hidden?: boolean | undefined;
@@ -1592,6 +1670,11 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
1592
1670
  style?: {
1593
1671
  width?: "full" | "auto" | undefined;
1594
1672
  } | undefined;
1673
+ fileName?: {
1674
+ id: string;
1675
+ description: string;
1676
+ defaultMessage: string;
1677
+ } | undefined;
1595
1678
  } | undefined;
1596
1679
  }>;
1597
1680
  export type File = z.infer<typeof File>;
@@ -1625,7 +1708,7 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
1625
1708
  expression: string;
1626
1709
  dependsOn?: string[] | undefined;
1627
1710
  }>]>>;
1628
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").AllActionConditionalFields[]>, "many">>>;
1711
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
1629
1712
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1630
1713
  disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1631
1714
  hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -1730,6 +1813,9 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
1730
1813
  } | {
1731
1814
  type: "ENABLE";
1732
1815
  conditional: import(".").JSONSchema;
1816
+ } | {
1817
+ type: "DISPLAY_ON_REVIEW";
1818
+ conditional: import(".").JSONSchema;
1733
1819
  })[] | undefined;
1734
1820
  disabled?: boolean | undefined;
1735
1821
  hidden?: boolean | undefined;
@@ -1776,6 +1862,9 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
1776
1862
  } | {
1777
1863
  type: "ENABLE";
1778
1864
  conditional: import(".").JSONSchema;
1865
+ } | {
1866
+ type: "DISPLAY_ON_REVIEW";
1867
+ conditional: import(".").JSONSchema;
1779
1868
  })[] | undefined;
1780
1869
  disabled?: boolean | undefined;
1781
1870
  hidden?: boolean | undefined;
@@ -1804,7 +1893,7 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
1804
1893
  expression: string;
1805
1894
  dependsOn?: string[] | undefined;
1806
1895
  }>]>>;
1807
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").AllActionConditionalFields[]>, "many">>>;
1896
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
1808
1897
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1809
1898
  disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1810
1899
  hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -1886,6 +1975,9 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
1886
1975
  } | {
1887
1976
  type: "ENABLE";
1888
1977
  conditional: import(".").JSONSchema;
1978
+ } | {
1979
+ type: "DISPLAY_ON_REVIEW";
1980
+ conditional: import(".").JSONSchema;
1889
1981
  })[] | undefined;
1890
1982
  disabled?: boolean | undefined;
1891
1983
  hidden?: boolean | undefined;
@@ -1921,6 +2013,9 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
1921
2013
  } | {
1922
2014
  type: "ENABLE";
1923
2015
  conditional: import(".").JSONSchema;
2016
+ } | {
2017
+ type: "DISPLAY_ON_REVIEW";
2018
+ conditional: import(".").JSONSchema;
1924
2019
  })[] | undefined;
1925
2020
  disabled?: boolean | undefined;
1926
2021
  hidden?: boolean | undefined;
@@ -1949,7 +2044,7 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
1949
2044
  expression: string;
1950
2045
  dependsOn?: string[] | undefined;
1951
2046
  }>]>>;
1952
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").AllActionConditionalFields[]>, "many">>>;
2047
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
1953
2048
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1954
2049
  disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1955
2050
  hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -2037,6 +2132,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
2037
2132
  } | {
2038
2133
  type: "ENABLE";
2039
2134
  conditional: import(".").JSONSchema;
2135
+ } | {
2136
+ type: "DISPLAY_ON_REVIEW";
2137
+ conditional: import(".").JSONSchema;
2040
2138
  })[] | undefined;
2041
2139
  disabled?: boolean | undefined;
2042
2140
  hidden?: boolean | undefined;
@@ -2078,6 +2176,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
2078
2176
  } | {
2079
2177
  type: "ENABLE";
2080
2178
  conditional: import(".").JSONSchema;
2179
+ } | {
2180
+ type: "DISPLAY_ON_REVIEW";
2181
+ conditional: import(".").JSONSchema;
2081
2182
  })[] | undefined;
2082
2183
  disabled?: boolean | undefined;
2083
2184
  hidden?: boolean | undefined;
@@ -2100,7 +2201,7 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
2100
2201
  expression: string;
2101
2202
  dependsOn?: string[] | undefined;
2102
2203
  }>]>>;
2103
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").AllActionConditionalFields[]>, "many">>>;
2204
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
2104
2205
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2105
2206
  disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2106
2207
  hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -2166,6 +2267,9 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
2166
2267
  } | {
2167
2268
  type: "ENABLE";
2168
2269
  conditional: import(".").JSONSchema;
2270
+ } | {
2271
+ type: "DISPLAY_ON_REVIEW";
2272
+ conditional: import(".").JSONSchema;
2169
2273
  })[] | undefined;
2170
2274
  disabled?: boolean | undefined;
2171
2275
  hidden?: boolean | undefined;
@@ -2199,6 +2303,9 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
2199
2303
  } | {
2200
2304
  type: "ENABLE";
2201
2305
  conditional: import(".").JSONSchema;
2306
+ } | {
2307
+ type: "DISPLAY_ON_REVIEW";
2308
+ conditional: import(".").JSONSchema;
2202
2309
  })[] | undefined;
2203
2310
  disabled?: boolean | undefined;
2204
2311
  hidden?: boolean | undefined;
@@ -2222,7 +2329,7 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2222
2329
  expression: string;
2223
2330
  dependsOn?: string[] | undefined;
2224
2331
  }>]>>;
2225
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").AllActionConditionalFields[]>, "many">>>;
2332
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
2226
2333
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2227
2334
  disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2228
2335
  hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -2288,6 +2395,9 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2288
2395
  } | {
2289
2396
  type: "ENABLE";
2290
2397
  conditional: import(".").JSONSchema;
2398
+ } | {
2399
+ type: "DISPLAY_ON_REVIEW";
2400
+ conditional: import(".").JSONSchema;
2291
2401
  })[] | undefined;
2292
2402
  disabled?: boolean | undefined;
2293
2403
  hidden?: boolean | undefined;
@@ -2321,6 +2431,9 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2321
2431
  } | {
2322
2432
  type: "ENABLE";
2323
2433
  conditional: import(".").JSONSchema;
2434
+ } | {
2435
+ type: "DISPLAY_ON_REVIEW";
2436
+ conditional: import(".").JSONSchema;
2324
2437
  })[] | undefined;
2325
2438
  disabled?: boolean | undefined;
2326
2439
  hidden?: boolean | undefined;
@@ -2335,22 +2448,22 @@ export type Country = z.infer<typeof Country>;
2335
2448
  export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2336
2449
  declare const AdministrativeAreaConfiguration: z.ZodObject<{
2337
2450
  partOf: z.ZodOptional<z.ZodObject<{
2338
- $data: z.ZodString;
2451
+ $declaration: z.ZodString;
2339
2452
  }, "strip", z.ZodTypeAny, {
2340
- $data: string;
2453
+ $declaration: string;
2341
2454
  }, {
2342
- $data: string;
2455
+ $declaration: string;
2343
2456
  }>>;
2344
2457
  type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2345
2458
  }, "strip", z.ZodTypeAny, {
2346
2459
  type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2347
2460
  partOf?: {
2348
- $data: string;
2461
+ $declaration: string;
2349
2462
  } | undefined;
2350
2463
  }, {
2351
2464
  type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2352
2465
  partOf?: {
2353
- $data: string;
2466
+ $declaration: string;
2354
2467
  } | undefined;
2355
2468
  }>;
2356
2469
  declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
@@ -2365,7 +2478,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2365
2478
  expression: string;
2366
2479
  dependsOn?: string[] | undefined;
2367
2480
  }>]>>;
2368
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").AllActionConditionalFields[]>, "many">>>;
2481
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
2369
2482
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2370
2483
  disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2371
2484
  hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -2413,22 +2526,22 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2413
2526
  }>]>>;
2414
2527
  configuration: z.ZodObject<{
2415
2528
  partOf: z.ZodOptional<z.ZodObject<{
2416
- $data: z.ZodString;
2529
+ $declaration: z.ZodString;
2417
2530
  }, "strip", z.ZodTypeAny, {
2418
- $data: string;
2531
+ $declaration: string;
2419
2532
  }, {
2420
- $data: string;
2533
+ $declaration: string;
2421
2534
  }>>;
2422
2535
  type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2423
2536
  }, "strip", z.ZodTypeAny, {
2424
2537
  type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2425
2538
  partOf?: {
2426
- $data: string;
2539
+ $declaration: string;
2427
2540
  } | undefined;
2428
2541
  }, {
2429
2542
  type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2430
2543
  partOf?: {
2431
- $data: string;
2544
+ $declaration: string;
2432
2545
  } | undefined;
2433
2546
  }>;
2434
2547
  }>, "strip", z.ZodTypeAny, {
@@ -2438,7 +2551,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2438
2551
  configuration: {
2439
2552
  type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2440
2553
  partOf?: {
2441
- $data: string;
2554
+ $declaration: string;
2442
2555
  } | undefined;
2443
2556
  };
2444
2557
  validation?: {
@@ -2457,6 +2570,9 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2457
2570
  } | {
2458
2571
  type: "ENABLE";
2459
2572
  conditional: import(".").JSONSchema;
2573
+ } | {
2574
+ type: "DISPLAY_ON_REVIEW";
2575
+ conditional: import(".").JSONSchema;
2460
2576
  })[] | undefined;
2461
2577
  disabled?: boolean | undefined;
2462
2578
  hidden?: boolean | undefined;
@@ -2473,7 +2589,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2473
2589
  configuration: {
2474
2590
  type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2475
2591
  partOf?: {
2476
- $data: string;
2592
+ $declaration: string;
2477
2593
  } | undefined;
2478
2594
  };
2479
2595
  validation?: {
@@ -2496,6 +2612,9 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2496
2612
  } | {
2497
2613
  type: "ENABLE";
2498
2614
  conditional: import(".").JSONSchema;
2615
+ } | {
2616
+ type: "DISPLAY_ON_REVIEW";
2617
+ conditional: import(".").JSONSchema;
2499
2618
  })[] | undefined;
2500
2619
  disabled?: boolean | undefined;
2501
2620
  hidden?: boolean | undefined;
@@ -2519,7 +2638,7 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
2519
2638
  expression: string;
2520
2639
  dependsOn?: string[] | undefined;
2521
2640
  }>]>>;
2522
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").AllActionConditionalFields[]>, "many">>>;
2641
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
2523
2642
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2524
2643
  disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2525
2644
  hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -2585,6 +2704,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
2585
2704
  } | {
2586
2705
  type: "ENABLE";
2587
2706
  conditional: import(".").JSONSchema;
2707
+ } | {
2708
+ type: "DISPLAY_ON_REVIEW";
2709
+ conditional: import(".").JSONSchema;
2588
2710
  })[] | undefined;
2589
2711
  disabled?: boolean | undefined;
2590
2712
  hidden?: boolean | undefined;
@@ -2618,6 +2740,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
2618
2740
  } | {
2619
2741
  type: "ENABLE";
2620
2742
  conditional: import(".").JSONSchema;
2743
+ } | {
2744
+ type: "DISPLAY_ON_REVIEW";
2745
+ conditional: import(".").JSONSchema;
2621
2746
  })[] | undefined;
2622
2747
  disabled?: boolean | undefined;
2623
2748
  hidden?: boolean | undefined;
@@ -2641,7 +2766,7 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
2641
2766
  expression: string;
2642
2767
  dependsOn?: string[] | undefined;
2643
2768
  }>]>>;
2644
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").AllActionConditionalFields[]>, "many">>>;
2769
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
2645
2770
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2646
2771
  disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2647
2772
  hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -2733,6 +2858,9 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
2733
2858
  } | {
2734
2859
  type: "ENABLE";
2735
2860
  conditional: import(".").JSONSchema;
2861
+ } | {
2862
+ type: "DISPLAY_ON_REVIEW";
2863
+ conditional: import(".").JSONSchema;
2736
2864
  })[] | undefined;
2737
2865
  disabled?: boolean | undefined;
2738
2866
  hidden?: boolean | undefined;
@@ -2774,6 +2902,9 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
2774
2902
  } | {
2775
2903
  type: "ENABLE";
2776
2904
  conditional: import(".").JSONSchema;
2905
+ } | {
2906
+ type: "DISPLAY_ON_REVIEW";
2907
+ conditional: import(".").JSONSchema;
2777
2908
  })[] | undefined;
2778
2909
  disabled?: boolean | undefined;
2779
2910
  hidden?: boolean | undefined;
@@ -2801,7 +2932,7 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
2801
2932
  expression: string;
2802
2933
  dependsOn?: string[] | undefined;
2803
2934
  }>]>>;
2804
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").AllActionConditionalFields[]>, "many">>>;
2935
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
2805
2936
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2806
2937
  disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2807
2938
  hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -2867,6 +2998,9 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
2867
2998
  } | {
2868
2999
  type: "ENABLE";
2869
3000
  conditional: import(".").JSONSchema;
3001
+ } | {
3002
+ type: "DISPLAY_ON_REVIEW";
3003
+ conditional: import(".").JSONSchema;
2870
3004
  })[] | undefined;
2871
3005
  disabled?: boolean | undefined;
2872
3006
  hidden?: boolean | undefined;
@@ -2900,6 +3034,9 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
2900
3034
  } | {
2901
3035
  type: "ENABLE";
2902
3036
  conditional: import(".").JSONSchema;
3037
+ } | {
3038
+ type: "DISPLAY_ON_REVIEW";
3039
+ conditional: import(".").JSONSchema;
2903
3040
  })[] | undefined;
2904
3041
  disabled?: boolean | undefined;
2905
3042
  hidden?: boolean | undefined;
@@ -2923,7 +3060,7 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
2923
3060
  expression: string;
2924
3061
  dependsOn?: string[] | undefined;
2925
3062
  }>]>>;
2926
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").AllActionConditionalFields[]>, "many">>>;
3063
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
2927
3064
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2928
3065
  disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2929
3066
  hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -2989,6 +3126,9 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
2989
3126
  } | {
2990
3127
  type: "ENABLE";
2991
3128
  conditional: import(".").JSONSchema;
3129
+ } | {
3130
+ type: "DISPLAY_ON_REVIEW";
3131
+ conditional: import(".").JSONSchema;
2992
3132
  })[] | undefined;
2993
3133
  disabled?: boolean | undefined;
2994
3134
  hidden?: boolean | undefined;
@@ -3022,6 +3162,9 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
3022
3162
  } | {
3023
3163
  type: "ENABLE";
3024
3164
  conditional: import(".").JSONSchema;
3165
+ } | {
3166
+ type: "DISPLAY_ON_REVIEW";
3167
+ conditional: import(".").JSONSchema;
3025
3168
  })[] | undefined;
3026
3169
  disabled?: boolean | undefined;
3027
3170
  hidden?: boolean | undefined;
@@ -3045,7 +3188,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3045
3188
  expression: string;
3046
3189
  dependsOn?: string[] | undefined;
3047
3190
  }>]>>;
3048
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").AllActionConditionalFields[]>, "many">>>;
3191
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
3049
3192
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3050
3193
  disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3051
3194
  hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -3213,6 +3356,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3213
3356
  } | {
3214
3357
  type: "ENABLE";
3215
3358
  conditional: import(".").JSONSchema;
3359
+ } | {
3360
+ type: "DISPLAY_ON_REVIEW";
3361
+ conditional: import(".").JSONSchema;
3216
3362
  })[] | undefined;
3217
3363
  disabled?: boolean | undefined;
3218
3364
  hidden?: boolean | undefined;
@@ -3271,6 +3417,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3271
3417
  } | {
3272
3418
  type: "ENABLE";
3273
3419
  conditional: import(".").JSONSchema;
3420
+ } | {
3421
+ type: "DISPLAY_ON_REVIEW";
3422
+ conditional: import(".").JSONSchema;
3274
3423
  })[] | undefined;
3275
3424
  disabled?: boolean | undefined;
3276
3425
  hidden?: boolean | undefined;
@@ -3281,6 +3430,39 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3281
3430
  } | undefined;
3282
3431
  hideLabel?: boolean | undefined;
3283
3432
  }>;
3433
+ export declare const DataEntry: z.ZodUnion<[z.ZodObject<{
3434
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3435
+ id: string;
3436
+ description: string;
3437
+ defaultMessage: string;
3438
+ }>;
3439
+ value: z.ZodUnion<[z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3440
+ id: string;
3441
+ description: string;
3442
+ defaultMessage: string;
3443
+ }>, z.ZodString]>;
3444
+ }, "strip", z.ZodTypeAny, {
3445
+ value: string | TranslationConfig;
3446
+ label: TranslationConfig;
3447
+ }, {
3448
+ value: string | {
3449
+ id: string;
3450
+ description: string;
3451
+ defaultMessage: string;
3452
+ };
3453
+ label: {
3454
+ id: string;
3455
+ description: string;
3456
+ defaultMessage: string;
3457
+ };
3458
+ }>, z.ZodObject<{
3459
+ fieldId: z.ZodString;
3460
+ }, "strip", z.ZodTypeAny, {
3461
+ fieldId: string;
3462
+ }, {
3463
+ fieldId: string;
3464
+ }>]>;
3465
+ export type DataEntry = z.infer<typeof DataEntry>;
3284
3466
  declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3285
3467
  id: z.ZodString;
3286
3468
  defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
@@ -3293,7 +3475,7 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3293
3475
  expression: string;
3294
3476
  dependsOn?: string[] | undefined;
3295
3477
  }>]>>;
3296
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").AllActionConditionalFields[]>, "many">>>;
3478
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
3297
3479
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3298
3480
  disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3299
3481
  hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -3335,22 +3517,61 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3335
3517
  description: string;
3336
3518
  defaultMessage: string;
3337
3519
  }>>;
3338
- data: z.ZodArray<z.ZodObject<{
3520
+ data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
3521
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3522
+ id: string;
3523
+ description: string;
3524
+ defaultMessage: string;
3525
+ }>;
3526
+ value: z.ZodUnion<[z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3527
+ id: string;
3528
+ description: string;
3529
+ defaultMessage: string;
3530
+ }>, z.ZodString]>;
3531
+ }, "strip", z.ZodTypeAny, {
3532
+ value: string | TranslationConfig;
3533
+ label: TranslationConfig;
3534
+ }, {
3535
+ value: string | {
3536
+ id: string;
3537
+ description: string;
3538
+ defaultMessage: string;
3539
+ };
3540
+ label: {
3541
+ id: string;
3542
+ description: string;
3543
+ defaultMessage: string;
3544
+ };
3545
+ }>, z.ZodObject<{
3339
3546
  fieldId: z.ZodString;
3340
3547
  }, "strip", z.ZodTypeAny, {
3341
3548
  fieldId: string;
3342
3549
  }, {
3343
3550
  fieldId: string;
3344
- }>, "many">;
3551
+ }>]>, "many">;
3345
3552
  }, "strip", z.ZodTypeAny, {
3346
- data: {
3553
+ data: ({
3554
+ value: string | TranslationConfig;
3555
+ label: TranslationConfig;
3556
+ } | {
3347
3557
  fieldId: string;
3348
- }[];
3558
+ })[];
3349
3559
  subtitle?: TranslationConfig | undefined;
3350
3560
  }, {
3351
- data: {
3561
+ data: ({
3562
+ value: string | {
3563
+ id: string;
3564
+ description: string;
3565
+ defaultMessage: string;
3566
+ };
3567
+ label: {
3568
+ id: string;
3569
+ description: string;
3570
+ defaultMessage: string;
3571
+ };
3572
+ } | {
3352
3573
  fieldId: string;
3353
- }[];
3574
+ })[];
3354
3575
  subtitle?: {
3355
3576
  id: string;
3356
3577
  description: string;
@@ -3362,9 +3583,12 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3362
3583
  id: string;
3363
3584
  label: TranslationConfig;
3364
3585
  configuration: {
3365
- data: {
3586
+ data: ({
3587
+ value: string | TranslationConfig;
3588
+ label: TranslationConfig;
3589
+ } | {
3366
3590
  fieldId: string;
3367
- }[];
3591
+ })[];
3368
3592
  subtitle?: TranslationConfig | undefined;
3369
3593
  };
3370
3594
  validation?: {
@@ -3383,6 +3607,9 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3383
3607
  } | {
3384
3608
  type: "ENABLE";
3385
3609
  conditional: import(".").JSONSchema;
3610
+ } | {
3611
+ type: "DISPLAY_ON_REVIEW";
3612
+ conditional: import(".").JSONSchema;
3386
3613
  })[] | undefined;
3387
3614
  disabled?: boolean | undefined;
3388
3615
  hidden?: boolean | undefined;
@@ -3397,9 +3624,20 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3397
3624
  defaultMessage: string;
3398
3625
  };
3399
3626
  configuration: {
3400
- data: {
3627
+ data: ({
3628
+ value: string | {
3629
+ id: string;
3630
+ description: string;
3631
+ defaultMessage: string;
3632
+ };
3633
+ label: {
3634
+ id: string;
3635
+ description: string;
3636
+ defaultMessage: string;
3637
+ };
3638
+ } | {
3401
3639
  fieldId: string;
3402
- }[];
3640
+ })[];
3403
3641
  subtitle?: {
3404
3642
  id: string;
3405
3643
  description: string;
@@ -3426,6 +3664,9 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3426
3664
  } | {
3427
3665
  type: "ENABLE";
3428
3666
  conditional: import(".").JSONSchema;
3667
+ } | {
3668
+ type: "DISPLAY_ON_REVIEW";
3669
+ conditional: import(".").JSONSchema;
3429
3670
  })[] | undefined;
3430
3671
  disabled?: boolean | undefined;
3431
3672
  hidden?: boolean | undefined;