@opencrvs/toolkit 1.8.0-rc.ffe8c17 → 1.8.1-rc.a372970
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 +6644 -9555
- package/dist/commons/conditionals/conditionals.d.ts +26 -3
- package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
- package/dist/commons/conditionals/validate.d.ts +14 -17
- package/dist/commons/events/ActionConfig.d.ts +1008 -3209
- package/dist/commons/events/ActionDocument.d.ts +9488 -312
- package/dist/commons/events/ActionInput.d.ts +5329 -472
- package/dist/commons/events/ActionType.d.ts +26 -11
- package/dist/commons/events/CompositeFieldValue.d.ts +152 -2
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +351 -48
- package/dist/commons/events/EventConfig.d.ts +639 -2862
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +3340 -424
- 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 +383 -104
- package/dist/commons/events/FieldTypeMapping.d.ts +104 -207
- package/dist/commons/events/FieldValue.d.ts +71 -76
- package/dist/commons/events/FormConfig.d.ts +527 -279
- 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 +40 -417
- package/dist/commons/events/index.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +140 -213
- package/dist/commons/events/utils.d.ts +126 -156
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +166 -81
- package/dist/events/index.js +1287 -795
- package/dist/scopes/index.d.ts +70 -1
- package/dist/scopes/index.js +130 -0
- 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;
|
@@ -747,6 +777,9 @@ declare const TextAreaField: z.ZodObject<z.objectUtil.extendShape<{
|
|
747
777
|
} | undefined;
|
748
778
|
}>;
|
749
779
|
export type TextAreaField = z.infer<typeof TextAreaField>;
|
780
|
+
export declare const ImageMimeType: z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>;
|
781
|
+
export declare const MimeType: z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>;
|
782
|
+
export type MimeType = z.infer<typeof MimeType>;
|
750
783
|
declare const SignatureField: z.ZodObject<z.objectUtil.extendShape<{
|
751
784
|
id: z.ZodString;
|
752
785
|
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
|
@@ -759,7 +792,7 @@ declare const SignatureField: z.ZodObject<z.objectUtil.extendShape<{
|
|
759
792
|
expression: string;
|
760
793
|
dependsOn?: string[] | undefined;
|
761
794
|
}>]>>;
|
762
|
-
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">>>;
|
763
796
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
764
797
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
765
798
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -800,20 +833,24 @@ declare const SignatureField: z.ZodObject<z.objectUtil.extendShape<{
|
|
800
833
|
description: string;
|
801
834
|
defaultMessage: string;
|
802
835
|
}>;
|
803
|
-
configuration: z.
|
804
|
-
|
805
|
-
|
836
|
+
configuration: z.ZodDefault<z.ZodObject<{
|
837
|
+
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
838
|
+
acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>, "many">>;
|
806
839
|
}, "strip", z.ZodTypeAny, {
|
807
|
-
|
808
|
-
|
840
|
+
maxFileSize: number;
|
841
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
809
842
|
}, {
|
810
|
-
|
811
|
-
|
812
|
-
}
|
843
|
+
maxFileSize?: number | undefined;
|
844
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
845
|
+
}>>;
|
813
846
|
}>, "strip", z.ZodTypeAny, {
|
814
847
|
type: "SIGNATURE";
|
815
848
|
id: string;
|
816
849
|
label: TranslationConfig;
|
850
|
+
configuration: {
|
851
|
+
maxFileSize: number;
|
852
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
853
|
+
};
|
817
854
|
signaturePromptLabel: TranslationConfig;
|
818
855
|
validation?: {
|
819
856
|
message: TranslationConfig;
|
@@ -831,15 +868,14 @@ declare const SignatureField: z.ZodObject<z.objectUtil.extendShape<{
|
|
831
868
|
} | {
|
832
869
|
type: "ENABLE";
|
833
870
|
conditional: import(".").JSONSchema;
|
871
|
+
} | {
|
872
|
+
type: "DISPLAY_ON_REVIEW";
|
873
|
+
conditional: import(".").JSONSchema;
|
834
874
|
})[] | undefined;
|
835
875
|
disabled?: boolean | undefined;
|
836
876
|
hidden?: boolean | undefined;
|
837
877
|
placeholder?: TranslationConfig | undefined;
|
838
878
|
hideLabel?: boolean | undefined;
|
839
|
-
configuration?: {
|
840
|
-
maxSizeMb?: number | undefined;
|
841
|
-
allowedFileFormats?: string[] | undefined;
|
842
|
-
} | undefined;
|
843
879
|
}, {
|
844
880
|
type: "SIGNATURE";
|
845
881
|
id: string;
|
@@ -873,6 +909,9 @@ declare const SignatureField: z.ZodObject<z.objectUtil.extendShape<{
|
|
873
909
|
} | {
|
874
910
|
type: "ENABLE";
|
875
911
|
conditional: import(".").JSONSchema;
|
912
|
+
} | {
|
913
|
+
type: "DISPLAY_ON_REVIEW";
|
914
|
+
conditional: import(".").JSONSchema;
|
876
915
|
})[] | undefined;
|
877
916
|
disabled?: boolean | undefined;
|
878
917
|
hidden?: boolean | undefined;
|
@@ -883,8 +922,8 @@ declare const SignatureField: z.ZodObject<z.objectUtil.extendShape<{
|
|
883
922
|
} | undefined;
|
884
923
|
hideLabel?: boolean | undefined;
|
885
924
|
configuration?: {
|
886
|
-
|
887
|
-
|
925
|
+
maxFileSize?: number | undefined;
|
926
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
888
927
|
} | undefined;
|
889
928
|
}>;
|
890
929
|
export type SignatureField = z.infer<typeof SignatureField>;
|
@@ -900,7 +939,7 @@ export declare const EmailField: z.ZodObject<z.objectUtil.extendShape<{
|
|
900
939
|
expression: string;
|
901
940
|
dependsOn?: string[] | undefined;
|
902
941
|
}>]>>;
|
903
|
-
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">>>;
|
904
943
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
905
944
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
906
945
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -973,6 +1012,9 @@ export declare const EmailField: z.ZodObject<z.objectUtil.extendShape<{
|
|
973
1012
|
} | {
|
974
1013
|
type: "ENABLE";
|
975
1014
|
conditional: import(".").JSONSchema;
|
1015
|
+
} | {
|
1016
|
+
type: "DISPLAY_ON_REVIEW";
|
1017
|
+
conditional: import(".").JSONSchema;
|
976
1018
|
})[] | undefined;
|
977
1019
|
disabled?: boolean | undefined;
|
978
1020
|
hidden?: boolean | undefined;
|
@@ -1009,6 +1051,9 @@ export declare const EmailField: z.ZodObject<z.objectUtil.extendShape<{
|
|
1009
1051
|
} | {
|
1010
1052
|
type: "ENABLE";
|
1011
1053
|
conditional: import(".").JSONSchema;
|
1054
|
+
} | {
|
1055
|
+
type: "DISPLAY_ON_REVIEW";
|
1056
|
+
conditional: import(".").JSONSchema;
|
1012
1057
|
})[] | undefined;
|
1013
1058
|
disabled?: boolean | undefined;
|
1014
1059
|
hidden?: boolean | undefined;
|
@@ -1035,7 +1080,7 @@ declare const DateField: z.ZodObject<z.objectUtil.extendShape<{
|
|
1035
1080
|
expression: string;
|
1036
1081
|
dependsOn?: string[] | undefined;
|
1037
1082
|
}>]>>;
|
1038
|
-
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">>>;
|
1039
1084
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1040
1085
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1041
1086
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1116,6 +1161,9 @@ declare const DateField: z.ZodObject<z.objectUtil.extendShape<{
|
|
1116
1161
|
} | {
|
1117
1162
|
type: "ENABLE";
|
1118
1163
|
conditional: import(".").JSONSchema;
|
1164
|
+
} | {
|
1165
|
+
type: "DISPLAY_ON_REVIEW";
|
1166
|
+
conditional: import(".").JSONSchema;
|
1119
1167
|
})[] | undefined;
|
1120
1168
|
disabled?: boolean | undefined;
|
1121
1169
|
hidden?: boolean | undefined;
|
@@ -1152,6 +1200,9 @@ declare const DateField: z.ZodObject<z.objectUtil.extendShape<{
|
|
1152
1200
|
} | {
|
1153
1201
|
type: "ENABLE";
|
1154
1202
|
conditional: import(".").JSONSchema;
|
1203
|
+
} | {
|
1204
|
+
type: "DISPLAY_ON_REVIEW";
|
1205
|
+
conditional: import(".").JSONSchema;
|
1155
1206
|
})[] | undefined;
|
1156
1207
|
disabled?: boolean | undefined;
|
1157
1208
|
hidden?: boolean | undefined;
|
@@ -1184,7 +1235,7 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
|
|
1184
1235
|
expression: string;
|
1185
1236
|
dependsOn?: string[] | undefined;
|
1186
1237
|
}>]>>;
|
1187
|
-
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">>>;
|
1188
1239
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1189
1240
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1190
1241
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1272,6 +1323,9 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
|
|
1272
1323
|
} | {
|
1273
1324
|
type: "ENABLE";
|
1274
1325
|
conditional: import(".").JSONSchema;
|
1326
|
+
} | {
|
1327
|
+
type: "DISPLAY_ON_REVIEW";
|
1328
|
+
conditional: import(".").JSONSchema;
|
1275
1329
|
})[] | undefined;
|
1276
1330
|
disabled?: boolean | undefined;
|
1277
1331
|
hidden?: boolean | undefined;
|
@@ -1305,6 +1359,9 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
|
|
1305
1359
|
} | {
|
1306
1360
|
type: "ENABLE";
|
1307
1361
|
conditional: import(".").JSONSchema;
|
1362
|
+
} | {
|
1363
|
+
type: "DISPLAY_ON_REVIEW";
|
1364
|
+
conditional: import(".").JSONSchema;
|
1308
1365
|
})[] | undefined;
|
1309
1366
|
disabled?: boolean | undefined;
|
1310
1367
|
hidden?: boolean | undefined;
|
@@ -1333,7 +1390,7 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
|
|
1333
1390
|
expression: string;
|
1334
1391
|
dependsOn?: string[] | undefined;
|
1335
1392
|
}>]>>;
|
1336
|
-
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">>>;
|
1337
1394
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1338
1395
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1339
1396
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1399,6 +1456,9 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
|
|
1399
1456
|
} | {
|
1400
1457
|
type: "ENABLE";
|
1401
1458
|
conditional: import(".").JSONSchema;
|
1459
|
+
} | {
|
1460
|
+
type: "DISPLAY_ON_REVIEW";
|
1461
|
+
conditional: import(".").JSONSchema;
|
1402
1462
|
})[] | undefined;
|
1403
1463
|
disabled?: boolean | undefined;
|
1404
1464
|
hidden?: boolean | undefined;
|
@@ -1432,6 +1492,9 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
|
|
1432
1492
|
} | {
|
1433
1493
|
type: "ENABLE";
|
1434
1494
|
conditional: import(".").JSONSchema;
|
1495
|
+
} | {
|
1496
|
+
type: "DISPLAY_ON_REVIEW";
|
1497
|
+
conditional: import(".").JSONSchema;
|
1435
1498
|
})[] | undefined;
|
1436
1499
|
disabled?: boolean | undefined;
|
1437
1500
|
hidden?: boolean | undefined;
|
@@ -1455,7 +1518,7 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1455
1518
|
expression: string;
|
1456
1519
|
dependsOn?: string[] | undefined;
|
1457
1520
|
}>]>>;
|
1458
|
-
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">>>;
|
1459
1522
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1460
1523
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1461
1524
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1491,32 +1554,40 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1491
1554
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1492
1555
|
}, {
|
1493
1556
|
type: z.ZodLiteral<"FILE">;
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1557
|
+
configuration: z.ZodDefault<z.ZodObject<{
|
1558
|
+
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
1559
|
+
acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>, "many">>;
|
1560
|
+
style: z.ZodOptional<z.ZodObject<{
|
1561
|
+
width: z.ZodOptional<z.ZodEnum<["full", "auto"]>>;
|
1497
1562
|
}, "strip", z.ZodTypeAny, {
|
1498
|
-
|
1563
|
+
width?: "full" | "auto" | undefined;
|
1499
1564
|
}, {
|
1500
|
-
|
1501
|
-
}
|
1565
|
+
width?: "full" | "auto" | undefined;
|
1566
|
+
}>>;
|
1502
1567
|
}, "strip", z.ZodTypeAny, {
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1568
|
+
maxFileSize: number;
|
1569
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
1570
|
+
style?: {
|
1571
|
+
width?: "full" | "auto" | undefined;
|
1572
|
+
} | undefined;
|
1506
1573
|
}, {
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1574
|
+
maxFileSize?: number | undefined;
|
1575
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
1576
|
+
style?: {
|
1577
|
+
width?: "full" | "auto" | undefined;
|
1578
|
+
} | undefined;
|
1510
1579
|
}>>;
|
1511
1580
|
}>, "strip", z.ZodTypeAny, {
|
1512
1581
|
type: "FILE";
|
1513
1582
|
id: string;
|
1514
1583
|
label: TranslationConfig;
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1584
|
+
configuration: {
|
1585
|
+
maxFileSize: number;
|
1586
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
1587
|
+
style?: {
|
1588
|
+
width?: "full" | "auto" | undefined;
|
1589
|
+
} | undefined;
|
1590
|
+
};
|
1520
1591
|
validation?: {
|
1521
1592
|
message: TranslationConfig;
|
1522
1593
|
validator: import(".").JSONSchema;
|
@@ -1533,6 +1604,9 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1533
1604
|
} | {
|
1534
1605
|
type: "ENABLE";
|
1535
1606
|
conditional: import(".").JSONSchema;
|
1607
|
+
} | {
|
1608
|
+
type: "DISPLAY_ON_REVIEW";
|
1609
|
+
conditional: import(".").JSONSchema;
|
1536
1610
|
})[] | undefined;
|
1537
1611
|
disabled?: boolean | undefined;
|
1538
1612
|
hidden?: boolean | undefined;
|
@@ -1546,11 +1620,6 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1546
1620
|
description: string;
|
1547
1621
|
defaultMessage: string;
|
1548
1622
|
};
|
1549
|
-
options?: {
|
1550
|
-
style: {
|
1551
|
-
fullWidth: boolean;
|
1552
|
-
};
|
1553
|
-
} | undefined;
|
1554
1623
|
validation?: {
|
1555
1624
|
message: {
|
1556
1625
|
id: string;
|
@@ -1571,6 +1640,9 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1571
1640
|
} | {
|
1572
1641
|
type: "ENABLE";
|
1573
1642
|
conditional: import(".").JSONSchema;
|
1643
|
+
} | {
|
1644
|
+
type: "DISPLAY_ON_REVIEW";
|
1645
|
+
conditional: import(".").JSONSchema;
|
1574
1646
|
})[] | undefined;
|
1575
1647
|
disabled?: boolean | undefined;
|
1576
1648
|
hidden?: boolean | undefined;
|
@@ -1580,6 +1652,13 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1580
1652
|
defaultMessage: string;
|
1581
1653
|
} | undefined;
|
1582
1654
|
hideLabel?: boolean | undefined;
|
1655
|
+
configuration?: {
|
1656
|
+
maxFileSize?: number | undefined;
|
1657
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
1658
|
+
style?: {
|
1659
|
+
width?: "full" | "auto" | undefined;
|
1660
|
+
} | undefined;
|
1661
|
+
} | undefined;
|
1583
1662
|
}>;
|
1584
1663
|
export type File = z.infer<typeof File>;
|
1585
1664
|
declare const SelectOption: z.ZodObject<{
|
@@ -1612,7 +1691,7 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
1612
1691
|
expression: string;
|
1613
1692
|
dependsOn?: string[] | undefined;
|
1614
1693
|
}>]>>;
|
1615
|
-
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">>>;
|
1616
1695
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1617
1696
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1618
1697
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1717,6 +1796,9 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
1717
1796
|
} | {
|
1718
1797
|
type: "ENABLE";
|
1719
1798
|
conditional: import(".").JSONSchema;
|
1799
|
+
} | {
|
1800
|
+
type: "DISPLAY_ON_REVIEW";
|
1801
|
+
conditional: import(".").JSONSchema;
|
1720
1802
|
})[] | undefined;
|
1721
1803
|
disabled?: boolean | undefined;
|
1722
1804
|
hidden?: boolean | undefined;
|
@@ -1763,6 +1845,9 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
1763
1845
|
} | {
|
1764
1846
|
type: "ENABLE";
|
1765
1847
|
conditional: import(".").JSONSchema;
|
1848
|
+
} | {
|
1849
|
+
type: "DISPLAY_ON_REVIEW";
|
1850
|
+
conditional: import(".").JSONSchema;
|
1766
1851
|
})[] | undefined;
|
1767
1852
|
disabled?: boolean | undefined;
|
1768
1853
|
hidden?: boolean | undefined;
|
@@ -1791,7 +1876,7 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
|
|
1791
1876
|
expression: string;
|
1792
1877
|
dependsOn?: string[] | undefined;
|
1793
1878
|
}>]>>;
|
1794
|
-
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">>>;
|
1795
1880
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1796
1881
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1797
1882
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1873,6 +1958,9 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
|
|
1873
1958
|
} | {
|
1874
1959
|
type: "ENABLE";
|
1875
1960
|
conditional: import(".").JSONSchema;
|
1961
|
+
} | {
|
1962
|
+
type: "DISPLAY_ON_REVIEW";
|
1963
|
+
conditional: import(".").JSONSchema;
|
1876
1964
|
})[] | undefined;
|
1877
1965
|
disabled?: boolean | undefined;
|
1878
1966
|
hidden?: boolean | undefined;
|
@@ -1908,6 +1996,9 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
|
|
1908
1996
|
} | {
|
1909
1997
|
type: "ENABLE";
|
1910
1998
|
conditional: import(".").JSONSchema;
|
1999
|
+
} | {
|
2000
|
+
type: "DISPLAY_ON_REVIEW";
|
2001
|
+
conditional: import(".").JSONSchema;
|
1911
2002
|
})[] | undefined;
|
1912
2003
|
disabled?: boolean | undefined;
|
1913
2004
|
hidden?: boolean | undefined;
|
@@ -1936,7 +2027,7 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
1936
2027
|
expression: string;
|
1937
2028
|
dependsOn?: string[] | undefined;
|
1938
2029
|
}>]>>;
|
1939
|
-
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">>>;
|
1940
2031
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1941
2032
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1942
2033
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2024,6 +2115,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
2024
2115
|
} | {
|
2025
2116
|
type: "ENABLE";
|
2026
2117
|
conditional: import(".").JSONSchema;
|
2118
|
+
} | {
|
2119
|
+
type: "DISPLAY_ON_REVIEW";
|
2120
|
+
conditional: import(".").JSONSchema;
|
2027
2121
|
})[] | undefined;
|
2028
2122
|
disabled?: boolean | undefined;
|
2029
2123
|
hidden?: boolean | undefined;
|
@@ -2065,6 +2159,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
2065
2159
|
} | {
|
2066
2160
|
type: "ENABLE";
|
2067
2161
|
conditional: import(".").JSONSchema;
|
2162
|
+
} | {
|
2163
|
+
type: "DISPLAY_ON_REVIEW";
|
2164
|
+
conditional: import(".").JSONSchema;
|
2068
2165
|
})[] | undefined;
|
2069
2166
|
disabled?: boolean | undefined;
|
2070
2167
|
hidden?: boolean | undefined;
|
@@ -2087,7 +2184,7 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2087
2184
|
expression: string;
|
2088
2185
|
dependsOn?: string[] | undefined;
|
2089
2186
|
}>]>>;
|
2090
|
-
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">>>;
|
2091
2188
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2092
2189
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2093
2190
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2153,6 +2250,9 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2153
2250
|
} | {
|
2154
2251
|
type: "ENABLE";
|
2155
2252
|
conditional: import(".").JSONSchema;
|
2253
|
+
} | {
|
2254
|
+
type: "DISPLAY_ON_REVIEW";
|
2255
|
+
conditional: import(".").JSONSchema;
|
2156
2256
|
})[] | undefined;
|
2157
2257
|
disabled?: boolean | undefined;
|
2158
2258
|
hidden?: boolean | undefined;
|
@@ -2186,6 +2286,9 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2186
2286
|
} | {
|
2187
2287
|
type: "ENABLE";
|
2188
2288
|
conditional: import(".").JSONSchema;
|
2289
|
+
} | {
|
2290
|
+
type: "DISPLAY_ON_REVIEW";
|
2291
|
+
conditional: import(".").JSONSchema;
|
2189
2292
|
})[] | undefined;
|
2190
2293
|
disabled?: boolean | undefined;
|
2191
2294
|
hidden?: boolean | undefined;
|
@@ -2209,7 +2312,7 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2209
2312
|
expression: string;
|
2210
2313
|
dependsOn?: string[] | undefined;
|
2211
2314
|
}>]>>;
|
2212
|
-
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">>>;
|
2213
2316
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2214
2317
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2215
2318
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2275,6 +2378,9 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2275
2378
|
} | {
|
2276
2379
|
type: "ENABLE";
|
2277
2380
|
conditional: import(".").JSONSchema;
|
2381
|
+
} | {
|
2382
|
+
type: "DISPLAY_ON_REVIEW";
|
2383
|
+
conditional: import(".").JSONSchema;
|
2278
2384
|
})[] | undefined;
|
2279
2385
|
disabled?: boolean | undefined;
|
2280
2386
|
hidden?: boolean | undefined;
|
@@ -2308,6 +2414,9 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2308
2414
|
} | {
|
2309
2415
|
type: "ENABLE";
|
2310
2416
|
conditional: import(".").JSONSchema;
|
2417
|
+
} | {
|
2418
|
+
type: "DISPLAY_ON_REVIEW";
|
2419
|
+
conditional: import(".").JSONSchema;
|
2311
2420
|
})[] | undefined;
|
2312
2421
|
disabled?: boolean | undefined;
|
2313
2422
|
hidden?: boolean | undefined;
|
@@ -2322,22 +2431,22 @@ export type Country = z.infer<typeof Country>;
|
|
2322
2431
|
export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2323
2432
|
declare const AdministrativeAreaConfiguration: z.ZodObject<{
|
2324
2433
|
partOf: z.ZodOptional<z.ZodObject<{
|
2325
|
-
$
|
2434
|
+
$declaration: z.ZodString;
|
2326
2435
|
}, "strip", z.ZodTypeAny, {
|
2327
|
-
$
|
2436
|
+
$declaration: string;
|
2328
2437
|
}, {
|
2329
|
-
$
|
2438
|
+
$declaration: string;
|
2330
2439
|
}>>;
|
2331
2440
|
type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2332
2441
|
}, "strip", z.ZodTypeAny, {
|
2333
2442
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2334
2443
|
partOf?: {
|
2335
|
-
$
|
2444
|
+
$declaration: string;
|
2336
2445
|
} | undefined;
|
2337
2446
|
}, {
|
2338
2447
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2339
2448
|
partOf?: {
|
2340
|
-
$
|
2449
|
+
$declaration: string;
|
2341
2450
|
} | undefined;
|
2342
2451
|
}>;
|
2343
2452
|
declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
@@ -2352,7 +2461,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2352
2461
|
expression: string;
|
2353
2462
|
dependsOn?: string[] | undefined;
|
2354
2463
|
}>]>>;
|
2355
|
-
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">>>;
|
2356
2465
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2357
2466
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2358
2467
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2400,22 +2509,22 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2400
2509
|
}>]>>;
|
2401
2510
|
configuration: z.ZodObject<{
|
2402
2511
|
partOf: z.ZodOptional<z.ZodObject<{
|
2403
|
-
$
|
2512
|
+
$declaration: z.ZodString;
|
2404
2513
|
}, "strip", z.ZodTypeAny, {
|
2405
|
-
$
|
2514
|
+
$declaration: string;
|
2406
2515
|
}, {
|
2407
|
-
$
|
2516
|
+
$declaration: string;
|
2408
2517
|
}>>;
|
2409
2518
|
type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2410
2519
|
}, "strip", z.ZodTypeAny, {
|
2411
2520
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2412
2521
|
partOf?: {
|
2413
|
-
$
|
2522
|
+
$declaration: string;
|
2414
2523
|
} | undefined;
|
2415
2524
|
}, {
|
2416
2525
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2417
2526
|
partOf?: {
|
2418
|
-
$
|
2527
|
+
$declaration: string;
|
2419
2528
|
} | undefined;
|
2420
2529
|
}>;
|
2421
2530
|
}>, "strip", z.ZodTypeAny, {
|
@@ -2425,7 +2534,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2425
2534
|
configuration: {
|
2426
2535
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2427
2536
|
partOf?: {
|
2428
|
-
$
|
2537
|
+
$declaration: string;
|
2429
2538
|
} | undefined;
|
2430
2539
|
};
|
2431
2540
|
validation?: {
|
@@ -2444,6 +2553,9 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2444
2553
|
} | {
|
2445
2554
|
type: "ENABLE";
|
2446
2555
|
conditional: import(".").JSONSchema;
|
2556
|
+
} | {
|
2557
|
+
type: "DISPLAY_ON_REVIEW";
|
2558
|
+
conditional: import(".").JSONSchema;
|
2447
2559
|
})[] | undefined;
|
2448
2560
|
disabled?: boolean | undefined;
|
2449
2561
|
hidden?: boolean | undefined;
|
@@ -2460,7 +2572,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2460
2572
|
configuration: {
|
2461
2573
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2462
2574
|
partOf?: {
|
2463
|
-
$
|
2575
|
+
$declaration: string;
|
2464
2576
|
} | undefined;
|
2465
2577
|
};
|
2466
2578
|
validation?: {
|
@@ -2483,6 +2595,9 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2483
2595
|
} | {
|
2484
2596
|
type: "ENABLE";
|
2485
2597
|
conditional: import(".").JSONSchema;
|
2598
|
+
} | {
|
2599
|
+
type: "DISPLAY_ON_REVIEW";
|
2600
|
+
conditional: import(".").JSONSchema;
|
2486
2601
|
})[] | undefined;
|
2487
2602
|
disabled?: boolean | undefined;
|
2488
2603
|
hidden?: boolean | undefined;
|
@@ -2506,7 +2621,7 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2506
2621
|
expression: string;
|
2507
2622
|
dependsOn?: string[] | undefined;
|
2508
2623
|
}>]>>;
|
2509
|
-
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">>>;
|
2510
2625
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2511
2626
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2512
2627
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2572,6 +2687,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2572
2687
|
} | {
|
2573
2688
|
type: "ENABLE";
|
2574
2689
|
conditional: import(".").JSONSchema;
|
2690
|
+
} | {
|
2691
|
+
type: "DISPLAY_ON_REVIEW";
|
2692
|
+
conditional: import(".").JSONSchema;
|
2575
2693
|
})[] | undefined;
|
2576
2694
|
disabled?: boolean | undefined;
|
2577
2695
|
hidden?: boolean | undefined;
|
@@ -2605,6 +2723,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2605
2723
|
} | {
|
2606
2724
|
type: "ENABLE";
|
2607
2725
|
conditional: import(".").JSONSchema;
|
2726
|
+
} | {
|
2727
|
+
type: "DISPLAY_ON_REVIEW";
|
2728
|
+
conditional: import(".").JSONSchema;
|
2608
2729
|
})[] | undefined;
|
2609
2730
|
disabled?: boolean | undefined;
|
2610
2731
|
hidden?: boolean | undefined;
|
@@ -2628,7 +2749,7 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2628
2749
|
expression: string;
|
2629
2750
|
dependsOn?: string[] | undefined;
|
2630
2751
|
}>]>>;
|
2631
|
-
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">>>;
|
2632
2753
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2633
2754
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2634
2755
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2682,6 +2803,16 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2682
2803
|
defaultMessage: string;
|
2683
2804
|
};
|
2684
2805
|
}>, "many">;
|
2806
|
+
configuration: z.ZodDefault<z.ZodObject<{
|
2807
|
+
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
2808
|
+
acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>, "many">>;
|
2809
|
+
}, "strip", z.ZodTypeAny, {
|
2810
|
+
maxFileSize: number;
|
2811
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2812
|
+
}, {
|
2813
|
+
maxFileSize?: number | undefined;
|
2814
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2815
|
+
}>>;
|
2685
2816
|
}>, "strip", z.ZodTypeAny, {
|
2686
2817
|
type: "FILE_WITH_OPTIONS";
|
2687
2818
|
id: string;
|
@@ -2690,6 +2821,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2690
2821
|
label: TranslationConfig;
|
2691
2822
|
}[];
|
2692
2823
|
label: TranslationConfig;
|
2824
|
+
configuration: {
|
2825
|
+
maxFileSize: number;
|
2826
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2827
|
+
};
|
2693
2828
|
validation?: {
|
2694
2829
|
message: TranslationConfig;
|
2695
2830
|
validator: import(".").JSONSchema;
|
@@ -2706,6 +2841,9 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2706
2841
|
} | {
|
2707
2842
|
type: "ENABLE";
|
2708
2843
|
conditional: import(".").JSONSchema;
|
2844
|
+
} | {
|
2845
|
+
type: "DISPLAY_ON_REVIEW";
|
2846
|
+
conditional: import(".").JSONSchema;
|
2709
2847
|
})[] | undefined;
|
2710
2848
|
disabled?: boolean | undefined;
|
2711
2849
|
hidden?: boolean | undefined;
|
@@ -2747,6 +2885,9 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2747
2885
|
} | {
|
2748
2886
|
type: "ENABLE";
|
2749
2887
|
conditional: import(".").JSONSchema;
|
2888
|
+
} | {
|
2889
|
+
type: "DISPLAY_ON_REVIEW";
|
2890
|
+
conditional: import(".").JSONSchema;
|
2750
2891
|
})[] | undefined;
|
2751
2892
|
disabled?: boolean | undefined;
|
2752
2893
|
hidden?: boolean | undefined;
|
@@ -2756,6 +2897,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2756
2897
|
defaultMessage: string;
|
2757
2898
|
} | undefined;
|
2758
2899
|
hideLabel?: boolean | undefined;
|
2900
|
+
configuration?: {
|
2901
|
+
maxFileSize?: number | undefined;
|
2902
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2903
|
+
} | undefined;
|
2759
2904
|
}>;
|
2760
2905
|
export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
|
2761
2906
|
declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
@@ -2770,7 +2915,7 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2770
2915
|
expression: string;
|
2771
2916
|
dependsOn?: string[] | undefined;
|
2772
2917
|
}>]>>;
|
2773
|
-
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">>>;
|
2774
2919
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2775
2920
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2776
2921
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2836,6 +2981,9 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2836
2981
|
} | {
|
2837
2982
|
type: "ENABLE";
|
2838
2983
|
conditional: import(".").JSONSchema;
|
2984
|
+
} | {
|
2985
|
+
type: "DISPLAY_ON_REVIEW";
|
2986
|
+
conditional: import(".").JSONSchema;
|
2839
2987
|
})[] | undefined;
|
2840
2988
|
disabled?: boolean | undefined;
|
2841
2989
|
hidden?: boolean | undefined;
|
@@ -2869,6 +3017,9 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2869
3017
|
} | {
|
2870
3018
|
type: "ENABLE";
|
2871
3019
|
conditional: import(".").JSONSchema;
|
3020
|
+
} | {
|
3021
|
+
type: "DISPLAY_ON_REVIEW";
|
3022
|
+
conditional: import(".").JSONSchema;
|
2872
3023
|
})[] | undefined;
|
2873
3024
|
disabled?: boolean | undefined;
|
2874
3025
|
hidden?: boolean | undefined;
|
@@ -2892,7 +3043,7 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2892
3043
|
expression: string;
|
2893
3044
|
dependsOn?: string[] | undefined;
|
2894
3045
|
}>]>>;
|
2895
|
-
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">>>;
|
2896
3047
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2897
3048
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2898
3049
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2958,6 +3109,9 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2958
3109
|
} | {
|
2959
3110
|
type: "ENABLE";
|
2960
3111
|
conditional: import(".").JSONSchema;
|
3112
|
+
} | {
|
3113
|
+
type: "DISPLAY_ON_REVIEW";
|
3114
|
+
conditional: import(".").JSONSchema;
|
2961
3115
|
})[] | undefined;
|
2962
3116
|
disabled?: boolean | undefined;
|
2963
3117
|
hidden?: boolean | undefined;
|
@@ -2991,6 +3145,9 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2991
3145
|
} | {
|
2992
3146
|
type: "ENABLE";
|
2993
3147
|
conditional: import(".").JSONSchema;
|
3148
|
+
} | {
|
3149
|
+
type: "DISPLAY_ON_REVIEW";
|
3150
|
+
conditional: import(".").JSONSchema;
|
2994
3151
|
})[] | undefined;
|
2995
3152
|
disabled?: boolean | undefined;
|
2996
3153
|
hidden?: boolean | undefined;
|
@@ -3014,7 +3171,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3014
3171
|
expression: string;
|
3015
3172
|
dependsOn?: string[] | undefined;
|
3016
3173
|
}>]>>;
|
3017
|
-
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">>>;
|
3018
3175
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3019
3176
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3020
3177
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -3050,8 +3207,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3050
3207
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3051
3208
|
}, {
|
3052
3209
|
type: z.ZodLiteral<"ADDRESS">;
|
3053
|
-
defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
3210
|
+
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
3054
3211
|
country: z.ZodString;
|
3212
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
3055
3213
|
province: z.ZodString;
|
3056
3214
|
district: z.ZodString;
|
3057
3215
|
}, {
|
@@ -3064,6 +3222,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3064
3222
|
}>, "strip", z.ZodTypeAny, {
|
3065
3223
|
country: string;
|
3066
3224
|
district: string;
|
3225
|
+
addressType: "DOMESTIC";
|
3067
3226
|
province: string;
|
3068
3227
|
urbanOrRural: "URBAN";
|
3069
3228
|
number?: string | undefined;
|
@@ -3074,6 +3233,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3074
3233
|
}, {
|
3075
3234
|
country: string;
|
3076
3235
|
district: string;
|
3236
|
+
addressType: "DOMESTIC";
|
3077
3237
|
province: string;
|
3078
3238
|
urbanOrRural: "URBAN";
|
3079
3239
|
number?: string | undefined;
|
@@ -3083,6 +3243,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3083
3243
|
zipCode?: string | undefined;
|
3084
3244
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
3085
3245
|
country: z.ZodString;
|
3246
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
3086
3247
|
province: z.ZodString;
|
3087
3248
|
district: z.ZodString;
|
3088
3249
|
}, {
|
@@ -3091,15 +3252,47 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3091
3252
|
}>, "strip", z.ZodTypeAny, {
|
3092
3253
|
country: string;
|
3093
3254
|
district: string;
|
3255
|
+
addressType: "DOMESTIC";
|
3094
3256
|
province: string;
|
3095
3257
|
urbanOrRural: "RURAL";
|
3096
3258
|
village?: string | undefined;
|
3097
3259
|
}, {
|
3098
3260
|
country: string;
|
3099
3261
|
district: string;
|
3262
|
+
addressType: "DOMESTIC";
|
3100
3263
|
province: string;
|
3101
3264
|
urbanOrRural: "RURAL";
|
3102
3265
|
village?: string | undefined;
|
3266
|
+
}>]>, z.ZodObject<{
|
3267
|
+
country: z.ZodString;
|
3268
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
3269
|
+
state: z.ZodString;
|
3270
|
+
district2: z.ZodString;
|
3271
|
+
cityOrTown: z.ZodOptional<z.ZodString>;
|
3272
|
+
addressLine1: z.ZodOptional<z.ZodString>;
|
3273
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
3274
|
+
addressLine3: z.ZodOptional<z.ZodString>;
|
3275
|
+
postcodeOrZip: z.ZodOptional<z.ZodString>;
|
3276
|
+
}, "strip", z.ZodTypeAny, {
|
3277
|
+
country: string;
|
3278
|
+
state: string;
|
3279
|
+
addressType: "INTERNATIONAL";
|
3280
|
+
district2: string;
|
3281
|
+
cityOrTown?: string | undefined;
|
3282
|
+
addressLine1?: string | undefined;
|
3283
|
+
addressLine2?: string | undefined;
|
3284
|
+
addressLine3?: string | undefined;
|
3285
|
+
postcodeOrZip?: string | undefined;
|
3286
|
+
}, {
|
3287
|
+
country: string;
|
3288
|
+
state: string;
|
3289
|
+
addressType: "INTERNATIONAL";
|
3290
|
+
district2: string;
|
3291
|
+
cityOrTown?: string | undefined;
|
3292
|
+
addressLine1?: string | undefined;
|
3293
|
+
addressLine2?: string | undefined;
|
3294
|
+
addressLine3?: string | undefined;
|
3295
|
+
postcodeOrZip?: string | undefined;
|
3103
3296
|
}>]>>;
|
3104
3297
|
}>, "strip", z.ZodTypeAny, {
|
3105
3298
|
type: "ADDRESS";
|
@@ -3114,6 +3307,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3114
3307
|
defaultValue?: {
|
3115
3308
|
country: string;
|
3116
3309
|
district: string;
|
3310
|
+
addressType: "DOMESTIC";
|
3117
3311
|
province: string;
|
3118
3312
|
urbanOrRural: "URBAN";
|
3119
3313
|
number?: string | undefined;
|
@@ -3124,9 +3318,20 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3124
3318
|
} | {
|
3125
3319
|
country: string;
|
3126
3320
|
district: string;
|
3321
|
+
addressType: "DOMESTIC";
|
3127
3322
|
province: string;
|
3128
3323
|
urbanOrRural: "RURAL";
|
3129
3324
|
village?: string | undefined;
|
3325
|
+
} | {
|
3326
|
+
country: string;
|
3327
|
+
state: string;
|
3328
|
+
addressType: "INTERNATIONAL";
|
3329
|
+
district2: string;
|
3330
|
+
cityOrTown?: string | undefined;
|
3331
|
+
addressLine1?: string | undefined;
|
3332
|
+
addressLine2?: string | undefined;
|
3333
|
+
addressLine3?: string | undefined;
|
3334
|
+
postcodeOrZip?: string | undefined;
|
3130
3335
|
} | undefined;
|
3131
3336
|
conditionals?: ({
|
3132
3337
|
type: "SHOW";
|
@@ -3134,6 +3339,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3134
3339
|
} | {
|
3135
3340
|
type: "ENABLE";
|
3136
3341
|
conditional: import(".").JSONSchema;
|
3342
|
+
} | {
|
3343
|
+
type: "DISPLAY_ON_REVIEW";
|
3344
|
+
conditional: import(".").JSONSchema;
|
3137
3345
|
})[] | undefined;
|
3138
3346
|
disabled?: boolean | undefined;
|
3139
3347
|
hidden?: boolean | undefined;
|
@@ -3160,6 +3368,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3160
3368
|
defaultValue?: {
|
3161
3369
|
country: string;
|
3162
3370
|
district: string;
|
3371
|
+
addressType: "DOMESTIC";
|
3163
3372
|
province: string;
|
3164
3373
|
urbanOrRural: "URBAN";
|
3165
3374
|
number?: string | undefined;
|
@@ -3170,9 +3379,20 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3170
3379
|
} | {
|
3171
3380
|
country: string;
|
3172
3381
|
district: string;
|
3382
|
+
addressType: "DOMESTIC";
|
3173
3383
|
province: string;
|
3174
3384
|
urbanOrRural: "RURAL";
|
3175
3385
|
village?: string | undefined;
|
3386
|
+
} | {
|
3387
|
+
country: string;
|
3388
|
+
state: string;
|
3389
|
+
addressType: "INTERNATIONAL";
|
3390
|
+
district2: string;
|
3391
|
+
cityOrTown?: string | undefined;
|
3392
|
+
addressLine1?: string | undefined;
|
3393
|
+
addressLine2?: string | undefined;
|
3394
|
+
addressLine3?: string | undefined;
|
3395
|
+
postcodeOrZip?: string | undefined;
|
3176
3396
|
} | undefined;
|
3177
3397
|
conditionals?: ({
|
3178
3398
|
type: "SHOW";
|
@@ -3180,6 +3400,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3180
3400
|
} | {
|
3181
3401
|
type: "ENABLE";
|
3182
3402
|
conditional: import(".").JSONSchema;
|
3403
|
+
} | {
|
3404
|
+
type: "DISPLAY_ON_REVIEW";
|
3405
|
+
conditional: import(".").JSONSchema;
|
3183
3406
|
})[] | undefined;
|
3184
3407
|
disabled?: boolean | undefined;
|
3185
3408
|
hidden?: boolean | undefined;
|
@@ -3190,7 +3413,32 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3190
3413
|
} | undefined;
|
3191
3414
|
hideLabel?: boolean | undefined;
|
3192
3415
|
}>;
|
3193
|
-
declare const
|
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>;
|
3441
|
+
declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
3194
3442
|
id: z.ZodString;
|
3195
3443
|
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
|
3196
3444
|
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
@@ -3202,7 +3450,7 @@ declare const Data: z.ZodObject<z.objectUtil.extendShape<{
|
|
3202
3450
|
expression: string;
|
3203
3451
|
dependsOn?: string[] | undefined;
|
3204
3452
|
}>]>>;
|
3205
|
-
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">>>;
|
3206
3454
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3207
3455
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3208
3456
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -3239,38 +3487,54 @@ declare const Data: z.ZodObject<z.objectUtil.extendShape<{
|
|
3239
3487
|
}, {
|
3240
3488
|
type: z.ZodLiteral<"DATA">;
|
3241
3489
|
configuration: z.ZodObject<{
|
3242
|
-
title: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3243
|
-
id: string;
|
3244
|
-
description: string;
|
3245
|
-
defaultMessage: string;
|
3246
|
-
}>>;
|
3247
3490
|
subtitle: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3248
3491
|
id: string;
|
3249
3492
|
description: string;
|
3250
3493
|
defaultMessage: string;
|
3251
3494
|
}>>;
|
3252
|
-
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<{
|
3253
3513
|
fieldId: z.ZodString;
|
3254
3514
|
}, "strip", z.ZodTypeAny, {
|
3255
3515
|
fieldId: string;
|
3256
3516
|
}, {
|
3257
3517
|
fieldId: string;
|
3258
|
-
}>, "many">;
|
3518
|
+
}>]>, "many">;
|
3259
3519
|
}, "strip", z.ZodTypeAny, {
|
3260
|
-
data: {
|
3520
|
+
data: ({
|
3521
|
+
value: string;
|
3522
|
+
label: TranslationConfig;
|
3523
|
+
} | {
|
3261
3524
|
fieldId: string;
|
3262
|
-
}[];
|
3263
|
-
title?: TranslationConfig | undefined;
|
3525
|
+
})[];
|
3264
3526
|
subtitle?: TranslationConfig | undefined;
|
3265
3527
|
}, {
|
3266
|
-
data: {
|
3528
|
+
data: ({
|
3529
|
+
value: string;
|
3530
|
+
label: {
|
3531
|
+
id: string;
|
3532
|
+
description: string;
|
3533
|
+
defaultMessage: string;
|
3534
|
+
};
|
3535
|
+
} | {
|
3267
3536
|
fieldId: string;
|
3268
|
-
}[];
|
3269
|
-
title?: {
|
3270
|
-
id: string;
|
3271
|
-
description: string;
|
3272
|
-
defaultMessage: string;
|
3273
|
-
} | undefined;
|
3537
|
+
})[];
|
3274
3538
|
subtitle?: {
|
3275
3539
|
id: string;
|
3276
3540
|
description: string;
|
@@ -3282,10 +3546,12 @@ declare const Data: z.ZodObject<z.objectUtil.extendShape<{
|
|
3282
3546
|
id: string;
|
3283
3547
|
label: TranslationConfig;
|
3284
3548
|
configuration: {
|
3285
|
-
data: {
|
3549
|
+
data: ({
|
3550
|
+
value: string;
|
3551
|
+
label: TranslationConfig;
|
3552
|
+
} | {
|
3286
3553
|
fieldId: string;
|
3287
|
-
}[];
|
3288
|
-
title?: TranslationConfig | undefined;
|
3554
|
+
})[];
|
3289
3555
|
subtitle?: TranslationConfig | undefined;
|
3290
3556
|
};
|
3291
3557
|
validation?: {
|
@@ -3304,6 +3570,9 @@ declare const Data: z.ZodObject<z.objectUtil.extendShape<{
|
|
3304
3570
|
} | {
|
3305
3571
|
type: "ENABLE";
|
3306
3572
|
conditional: import(".").JSONSchema;
|
3573
|
+
} | {
|
3574
|
+
type: "DISPLAY_ON_REVIEW";
|
3575
|
+
conditional: import(".").JSONSchema;
|
3307
3576
|
})[] | undefined;
|
3308
3577
|
disabled?: boolean | undefined;
|
3309
3578
|
hidden?: boolean | undefined;
|
@@ -3318,14 +3587,16 @@ declare const Data: z.ZodObject<z.objectUtil.extendShape<{
|
|
3318
3587
|
defaultMessage: string;
|
3319
3588
|
};
|
3320
3589
|
configuration: {
|
3321
|
-
data: {
|
3590
|
+
data: ({
|
3591
|
+
value: string;
|
3592
|
+
label: {
|
3593
|
+
id: string;
|
3594
|
+
description: string;
|
3595
|
+
defaultMessage: string;
|
3596
|
+
};
|
3597
|
+
} | {
|
3322
3598
|
fieldId: string;
|
3323
|
-
}[];
|
3324
|
-
title?: {
|
3325
|
-
id: string;
|
3326
|
-
description: string;
|
3327
|
-
defaultMessage: string;
|
3328
|
-
} | undefined;
|
3599
|
+
})[];
|
3329
3600
|
subtitle?: {
|
3330
3601
|
id: string;
|
3331
3602
|
description: string;
|
@@ -3352,6 +3623,9 @@ declare const Data: z.ZodObject<z.objectUtil.extendShape<{
|
|
3352
3623
|
} | {
|
3353
3624
|
type: "ENABLE";
|
3354
3625
|
conditional: import(".").JSONSchema;
|
3626
|
+
} | {
|
3627
|
+
type: "DISPLAY_ON_REVIEW";
|
3628
|
+
conditional: import(".").JSONSchema;
|
3355
3629
|
})[] | undefined;
|
3356
3630
|
disabled?: boolean | undefined;
|
3357
3631
|
hidden?: boolean | undefined;
|
@@ -3362,12 +3636,17 @@ declare const Data: z.ZodObject<z.objectUtil.extendShape<{
|
|
3362
3636
|
} | undefined;
|
3363
3637
|
hideLabel?: boolean | undefined;
|
3364
3638
|
}>;
|
3365
|
-
export type
|
3639
|
+
export type DataField = z.infer<typeof DataField>;
|
3640
|
+
/** @knipignore */
|
3641
|
+
export type AllFields = typeof Address | typeof TextField | typeof NumberField | typeof TextAreaField | typeof DateField | typeof Paragraph | typeof RadioGroup | typeof BulletList | typeof PageHeader | typeof Select | typeof Checkbox | typeof File | typeof Country | typeof AdministrativeArea | typeof Divider | typeof Location | typeof Facility | typeof Office | typeof SignatureField | typeof EmailField | typeof FileUploadWithOptions | typeof DataField;
|
3366
3642
|
/** @knipignore */
|
3367
|
-
export type
|
3643
|
+
export type Inferred = z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof Paragraph> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof Checkbox> | z.infer<typeof File> | z.infer<typeof FileUploadWithOptions> | z.infer<typeof Country> | z.infer<typeof AdministrativeArea> | z.infer<typeof Divider> | z.infer<typeof Location> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField>;
|
3368
3644
|
/** @knipignore */
|
3369
|
-
|
3370
|
-
|
3645
|
+
/**
|
3646
|
+
* This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
|
3647
|
+
*/
|
3648
|
+
export type InferredInput = z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof NumberField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof Paragraph> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof Checkbox> | z.input<typeof File> | z.input<typeof FileUploadWithOptions> | z.input<typeof Country> | z.input<typeof AdministrativeArea> | z.input<typeof Divider> | z.input<typeof Location> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField>;
|
3649
|
+
export declare const FieldConfig: z.ZodType<Inferred, any, InferredInput>;
|
3371
3650
|
export type SelectField = z.infer<typeof Select>;
|
3372
3651
|
export type LocationField = z.infer<typeof Location>;
|
3373
3652
|
export type RadioField = z.infer<typeof RadioGroup>;
|