@opencrvs/toolkit 1.8.0-rc.fbb7263 → 1.8.0-rc.fbcec4c
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 +7079 -9746
- 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 +39 -11
- package/dist/commons/conditionals/validate.test.d.ts +2 -0
- package/dist/commons/events/ActionConfig.d.ts +1116 -2067
- package/dist/commons/events/ActionDocument.d.ts +9482 -312
- package/dist/commons/events/ActionInput.d.ts +5244 -477
- package/dist/commons/events/ActionType.d.ts +25 -12
- package/dist/commons/events/CompositeFieldValue.d.ts +155 -2
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +348 -48
- package/dist/commons/events/EventConfig.d.ts +559 -1238
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +3343 -429
- package/dist/commons/events/EventIndex.d.ts +9 -3
- package/dist/commons/events/EventMetadata.d.ts +6 -0
- package/dist/commons/events/FieldConfig.d.ts +527 -74
- package/dist/commons/events/FieldType.d.ts +6 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +154 -3
- package/dist/commons/events/FieldValue.d.ts +76 -2
- package/dist/commons/events/FormConfig.d.ts +633 -48
- package/dist/commons/events/PageConfig.d.ts +335 -0
- package/dist/commons/events/TemplateConfig.d.ts +38 -0
- package/dist/commons/events/User.d.ts +5 -0
- package/dist/commons/events/defineConfig.d.ts +91 -222
- package/dist/commons/events/index.d.ts +3 -1
- package/dist/commons/events/test.utils.d.ts +140 -213
- package/dist/commons/events/utils.d.ts +188 -69
- package/dist/conditionals/index.js +166 -81
- package/dist/events/index.js +1441 -795
- 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;
|
@@ -2319,24 +2428,25 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2319
2428
|
hideLabel?: boolean | undefined;
|
2320
2429
|
}>;
|
2321
2430
|
export type Country = z.infer<typeof Country>;
|
2431
|
+
export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2322
2432
|
declare const AdministrativeAreaConfiguration: z.ZodObject<{
|
2323
2433
|
partOf: z.ZodOptional<z.ZodObject<{
|
2324
|
-
$
|
2434
|
+
$declaration: z.ZodString;
|
2325
2435
|
}, "strip", z.ZodTypeAny, {
|
2326
|
-
$
|
2436
|
+
$declaration: string;
|
2327
2437
|
}, {
|
2328
|
-
$
|
2438
|
+
$declaration: string;
|
2329
2439
|
}>>;
|
2330
2440
|
type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2331
2441
|
}, "strip", z.ZodTypeAny, {
|
2332
2442
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2333
2443
|
partOf?: {
|
2334
|
-
$
|
2444
|
+
$declaration: string;
|
2335
2445
|
} | undefined;
|
2336
2446
|
}, {
|
2337
2447
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2338
2448
|
partOf?: {
|
2339
|
-
$
|
2449
|
+
$declaration: string;
|
2340
2450
|
} | undefined;
|
2341
2451
|
}>;
|
2342
2452
|
declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
@@ -2351,7 +2461,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2351
2461
|
expression: string;
|
2352
2462
|
dependsOn?: string[] | undefined;
|
2353
2463
|
}>]>>;
|
2354
|
-
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">>>;
|
2355
2465
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2356
2466
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2357
2467
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2399,22 +2509,22 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2399
2509
|
}>]>>;
|
2400
2510
|
configuration: z.ZodObject<{
|
2401
2511
|
partOf: z.ZodOptional<z.ZodObject<{
|
2402
|
-
$
|
2512
|
+
$declaration: z.ZodString;
|
2403
2513
|
}, "strip", z.ZodTypeAny, {
|
2404
|
-
$
|
2514
|
+
$declaration: string;
|
2405
2515
|
}, {
|
2406
|
-
$
|
2516
|
+
$declaration: string;
|
2407
2517
|
}>>;
|
2408
2518
|
type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2409
2519
|
}, "strip", z.ZodTypeAny, {
|
2410
2520
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2411
2521
|
partOf?: {
|
2412
|
-
$
|
2522
|
+
$declaration: string;
|
2413
2523
|
} | undefined;
|
2414
2524
|
}, {
|
2415
2525
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2416
2526
|
partOf?: {
|
2417
|
-
$
|
2527
|
+
$declaration: string;
|
2418
2528
|
} | undefined;
|
2419
2529
|
}>;
|
2420
2530
|
}>, "strip", z.ZodTypeAny, {
|
@@ -2424,7 +2534,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2424
2534
|
configuration: {
|
2425
2535
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2426
2536
|
partOf?: {
|
2427
|
-
$
|
2537
|
+
$declaration: string;
|
2428
2538
|
} | undefined;
|
2429
2539
|
};
|
2430
2540
|
validation?: {
|
@@ -2443,6 +2553,9 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2443
2553
|
} | {
|
2444
2554
|
type: "ENABLE";
|
2445
2555
|
conditional: import(".").JSONSchema;
|
2556
|
+
} | {
|
2557
|
+
type: "DISPLAY_ON_REVIEW";
|
2558
|
+
conditional: import(".").JSONSchema;
|
2446
2559
|
})[] | undefined;
|
2447
2560
|
disabled?: boolean | undefined;
|
2448
2561
|
hidden?: boolean | undefined;
|
@@ -2459,7 +2572,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2459
2572
|
configuration: {
|
2460
2573
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2461
2574
|
partOf?: {
|
2462
|
-
$
|
2575
|
+
$declaration: string;
|
2463
2576
|
} | undefined;
|
2464
2577
|
};
|
2465
2578
|
validation?: {
|
@@ -2482,6 +2595,9 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2482
2595
|
} | {
|
2483
2596
|
type: "ENABLE";
|
2484
2597
|
conditional: import(".").JSONSchema;
|
2598
|
+
} | {
|
2599
|
+
type: "DISPLAY_ON_REVIEW";
|
2600
|
+
conditional: import(".").JSONSchema;
|
2485
2601
|
})[] | undefined;
|
2486
2602
|
disabled?: boolean | undefined;
|
2487
2603
|
hidden?: boolean | undefined;
|
@@ -2505,7 +2621,7 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2505
2621
|
expression: string;
|
2506
2622
|
dependsOn?: string[] | undefined;
|
2507
2623
|
}>]>>;
|
2508
|
-
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">>>;
|
2509
2625
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2510
2626
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2511
2627
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2571,6 +2687,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2571
2687
|
} | {
|
2572
2688
|
type: "ENABLE";
|
2573
2689
|
conditional: import(".").JSONSchema;
|
2690
|
+
} | {
|
2691
|
+
type: "DISPLAY_ON_REVIEW";
|
2692
|
+
conditional: import(".").JSONSchema;
|
2574
2693
|
})[] | undefined;
|
2575
2694
|
disabled?: boolean | undefined;
|
2576
2695
|
hidden?: boolean | undefined;
|
@@ -2604,6 +2723,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2604
2723
|
} | {
|
2605
2724
|
type: "ENABLE";
|
2606
2725
|
conditional: import(".").JSONSchema;
|
2726
|
+
} | {
|
2727
|
+
type: "DISPLAY_ON_REVIEW";
|
2728
|
+
conditional: import(".").JSONSchema;
|
2607
2729
|
})[] | undefined;
|
2608
2730
|
disabled?: boolean | undefined;
|
2609
2731
|
hidden?: boolean | undefined;
|
@@ -2627,7 +2749,7 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2627
2749
|
expression: string;
|
2628
2750
|
dependsOn?: string[] | undefined;
|
2629
2751
|
}>]>>;
|
2630
|
-
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">>>;
|
2631
2753
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2632
2754
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2633
2755
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2681,6 +2803,16 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2681
2803
|
defaultMessage: string;
|
2682
2804
|
};
|
2683
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
|
+
}>>;
|
2684
2816
|
}>, "strip", z.ZodTypeAny, {
|
2685
2817
|
type: "FILE_WITH_OPTIONS";
|
2686
2818
|
id: string;
|
@@ -2689,6 +2821,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2689
2821
|
label: TranslationConfig;
|
2690
2822
|
}[];
|
2691
2823
|
label: TranslationConfig;
|
2824
|
+
configuration: {
|
2825
|
+
maxFileSize: number;
|
2826
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2827
|
+
};
|
2692
2828
|
validation?: {
|
2693
2829
|
message: TranslationConfig;
|
2694
2830
|
validator: import(".").JSONSchema;
|
@@ -2705,6 +2841,9 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2705
2841
|
} | {
|
2706
2842
|
type: "ENABLE";
|
2707
2843
|
conditional: import(".").JSONSchema;
|
2844
|
+
} | {
|
2845
|
+
type: "DISPLAY_ON_REVIEW";
|
2846
|
+
conditional: import(".").JSONSchema;
|
2708
2847
|
})[] | undefined;
|
2709
2848
|
disabled?: boolean | undefined;
|
2710
2849
|
hidden?: boolean | undefined;
|
@@ -2746,6 +2885,9 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2746
2885
|
} | {
|
2747
2886
|
type: "ENABLE";
|
2748
2887
|
conditional: import(".").JSONSchema;
|
2888
|
+
} | {
|
2889
|
+
type: "DISPLAY_ON_REVIEW";
|
2890
|
+
conditional: import(".").JSONSchema;
|
2749
2891
|
})[] | undefined;
|
2750
2892
|
disabled?: boolean | undefined;
|
2751
2893
|
hidden?: boolean | undefined;
|
@@ -2755,6 +2897,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2755
2897
|
defaultMessage: string;
|
2756
2898
|
} | undefined;
|
2757
2899
|
hideLabel?: boolean | undefined;
|
2900
|
+
configuration?: {
|
2901
|
+
maxFileSize?: number | undefined;
|
2902
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2903
|
+
} | undefined;
|
2758
2904
|
}>;
|
2759
2905
|
export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
|
2760
2906
|
declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
@@ -2769,7 +2915,7 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2769
2915
|
expression: string;
|
2770
2916
|
dependsOn?: string[] | undefined;
|
2771
2917
|
}>]>>;
|
2772
|
-
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">>>;
|
2773
2919
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2774
2920
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2775
2921
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2835,6 +2981,9 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2835
2981
|
} | {
|
2836
2982
|
type: "ENABLE";
|
2837
2983
|
conditional: import(".").JSONSchema;
|
2984
|
+
} | {
|
2985
|
+
type: "DISPLAY_ON_REVIEW";
|
2986
|
+
conditional: import(".").JSONSchema;
|
2838
2987
|
})[] | undefined;
|
2839
2988
|
disabled?: boolean | undefined;
|
2840
2989
|
hidden?: boolean | undefined;
|
@@ -2868,6 +3017,9 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2868
3017
|
} | {
|
2869
3018
|
type: "ENABLE";
|
2870
3019
|
conditional: import(".").JSONSchema;
|
3020
|
+
} | {
|
3021
|
+
type: "DISPLAY_ON_REVIEW";
|
3022
|
+
conditional: import(".").JSONSchema;
|
2871
3023
|
})[] | undefined;
|
2872
3024
|
disabled?: boolean | undefined;
|
2873
3025
|
hidden?: boolean | undefined;
|
@@ -2891,7 +3043,7 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2891
3043
|
expression: string;
|
2892
3044
|
dependsOn?: string[] | undefined;
|
2893
3045
|
}>]>>;
|
2894
|
-
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">>>;
|
2895
3047
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2896
3048
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2897
3049
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2957,6 +3109,9 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2957
3109
|
} | {
|
2958
3110
|
type: "ENABLE";
|
2959
3111
|
conditional: import(".").JSONSchema;
|
3112
|
+
} | {
|
3113
|
+
type: "DISPLAY_ON_REVIEW";
|
3114
|
+
conditional: import(".").JSONSchema;
|
2960
3115
|
})[] | undefined;
|
2961
3116
|
disabled?: boolean | undefined;
|
2962
3117
|
hidden?: boolean | undefined;
|
@@ -2990,6 +3145,9 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2990
3145
|
} | {
|
2991
3146
|
type: "ENABLE";
|
2992
3147
|
conditional: import(".").JSONSchema;
|
3148
|
+
} | {
|
3149
|
+
type: "DISPLAY_ON_REVIEW";
|
3150
|
+
conditional: import(".").JSONSchema;
|
2993
3151
|
})[] | undefined;
|
2994
3152
|
disabled?: boolean | undefined;
|
2995
3153
|
hidden?: boolean | undefined;
|
@@ -3013,7 +3171,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3013
3171
|
expression: string;
|
3014
3172
|
dependsOn?: string[] | undefined;
|
3015
3173
|
}>]>>;
|
3016
|
-
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">>>;
|
3017
3175
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3018
3176
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3019
3177
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -3049,8 +3207,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3049
3207
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3050
3208
|
}, {
|
3051
3209
|
type: z.ZodLiteral<"ADDRESS">;
|
3052
|
-
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<{
|
3053
3211
|
country: z.ZodString;
|
3212
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
3054
3213
|
province: z.ZodString;
|
3055
3214
|
district: z.ZodString;
|
3056
3215
|
}, {
|
@@ -3063,6 +3222,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3063
3222
|
}>, "strip", z.ZodTypeAny, {
|
3064
3223
|
country: string;
|
3065
3224
|
district: string;
|
3225
|
+
addressType: "DOMESTIC";
|
3066
3226
|
province: string;
|
3067
3227
|
urbanOrRural: "URBAN";
|
3068
3228
|
number?: string | undefined;
|
@@ -3073,6 +3233,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3073
3233
|
}, {
|
3074
3234
|
country: string;
|
3075
3235
|
district: string;
|
3236
|
+
addressType: "DOMESTIC";
|
3076
3237
|
province: string;
|
3077
3238
|
urbanOrRural: "URBAN";
|
3078
3239
|
number?: string | undefined;
|
@@ -3082,6 +3243,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3082
3243
|
zipCode?: string | undefined;
|
3083
3244
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
3084
3245
|
country: z.ZodString;
|
3246
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
3085
3247
|
province: z.ZodString;
|
3086
3248
|
district: z.ZodString;
|
3087
3249
|
}, {
|
@@ -3090,15 +3252,47 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3090
3252
|
}>, "strip", z.ZodTypeAny, {
|
3091
3253
|
country: string;
|
3092
3254
|
district: string;
|
3255
|
+
addressType: "DOMESTIC";
|
3093
3256
|
province: string;
|
3094
3257
|
urbanOrRural: "RURAL";
|
3095
3258
|
village?: string | undefined;
|
3096
3259
|
}, {
|
3097
3260
|
country: string;
|
3098
3261
|
district: string;
|
3262
|
+
addressType: "DOMESTIC";
|
3099
3263
|
province: string;
|
3100
3264
|
urbanOrRural: "RURAL";
|
3101
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;
|
3102
3296
|
}>]>>;
|
3103
3297
|
}>, "strip", z.ZodTypeAny, {
|
3104
3298
|
type: "ADDRESS";
|
@@ -3113,6 +3307,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3113
3307
|
defaultValue?: {
|
3114
3308
|
country: string;
|
3115
3309
|
district: string;
|
3310
|
+
addressType: "DOMESTIC";
|
3116
3311
|
province: string;
|
3117
3312
|
urbanOrRural: "URBAN";
|
3118
3313
|
number?: string | undefined;
|
@@ -3123,9 +3318,20 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3123
3318
|
} | {
|
3124
3319
|
country: string;
|
3125
3320
|
district: string;
|
3321
|
+
addressType: "DOMESTIC";
|
3126
3322
|
province: string;
|
3127
3323
|
urbanOrRural: "RURAL";
|
3128
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;
|
3129
3335
|
} | undefined;
|
3130
3336
|
conditionals?: ({
|
3131
3337
|
type: "SHOW";
|
@@ -3133,6 +3339,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3133
3339
|
} | {
|
3134
3340
|
type: "ENABLE";
|
3135
3341
|
conditional: import(".").JSONSchema;
|
3342
|
+
} | {
|
3343
|
+
type: "DISPLAY_ON_REVIEW";
|
3344
|
+
conditional: import(".").JSONSchema;
|
3136
3345
|
})[] | undefined;
|
3137
3346
|
disabled?: boolean | undefined;
|
3138
3347
|
hidden?: boolean | undefined;
|
@@ -3159,6 +3368,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3159
3368
|
defaultValue?: {
|
3160
3369
|
country: string;
|
3161
3370
|
district: string;
|
3371
|
+
addressType: "DOMESTIC";
|
3162
3372
|
province: string;
|
3163
3373
|
urbanOrRural: "URBAN";
|
3164
3374
|
number?: string | undefined;
|
@@ -3169,9 +3379,20 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3169
3379
|
} | {
|
3170
3380
|
country: string;
|
3171
3381
|
district: string;
|
3382
|
+
addressType: "DOMESTIC";
|
3172
3383
|
province: string;
|
3173
3384
|
urbanOrRural: "RURAL";
|
3174
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;
|
3175
3396
|
} | undefined;
|
3176
3397
|
conditionals?: ({
|
3177
3398
|
type: "SHOW";
|
@@ -3179,6 +3400,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3179
3400
|
} | {
|
3180
3401
|
type: "ENABLE";
|
3181
3402
|
conditional: import(".").JSONSchema;
|
3403
|
+
} | {
|
3404
|
+
type: "DISPLAY_ON_REVIEW";
|
3405
|
+
conditional: import(".").JSONSchema;
|
3182
3406
|
})[] | undefined;
|
3183
3407
|
disabled?: boolean | undefined;
|
3184
3408
|
hidden?: boolean | undefined;
|
@@ -3189,11 +3413,240 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3189
3413
|
} | undefined;
|
3190
3414
|
hideLabel?: boolean | undefined;
|
3191
3415
|
}>;
|
3416
|
+
export declare const DataEntry: z.ZodUnion<[z.ZodObject<{
|
3417
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3418
|
+
id: string;
|
3419
|
+
description: string;
|
3420
|
+
defaultMessage: string;
|
3421
|
+
}>;
|
3422
|
+
value: z.ZodString;
|
3423
|
+
}, "strip", z.ZodTypeAny, {
|
3424
|
+
value: string;
|
3425
|
+
label: TranslationConfig;
|
3426
|
+
}, {
|
3427
|
+
value: string;
|
3428
|
+
label: {
|
3429
|
+
id: string;
|
3430
|
+
description: string;
|
3431
|
+
defaultMessage: string;
|
3432
|
+
};
|
3433
|
+
}>, z.ZodObject<{
|
3434
|
+
fieldId: z.ZodString;
|
3435
|
+
}, "strip", z.ZodTypeAny, {
|
3436
|
+
fieldId: string;
|
3437
|
+
}, {
|
3438
|
+
fieldId: string;
|
3439
|
+
}>]>;
|
3440
|
+
export type DataEntry = z.infer<typeof DataEntry>;
|
3441
|
+
declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
3442
|
+
id: z.ZodString;
|
3443
|
+
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
|
3444
|
+
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
3445
|
+
expression: z.ZodString;
|
3446
|
+
}, "strip", z.ZodTypeAny, {
|
3447
|
+
dependsOn: string[];
|
3448
|
+
expression: string;
|
3449
|
+
}, {
|
3450
|
+
expression: string;
|
3451
|
+
dependsOn?: string[] | undefined;
|
3452
|
+
}>]>>;
|
3453
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
3454
|
+
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3455
|
+
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3456
|
+
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3457
|
+
placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3458
|
+
id: string;
|
3459
|
+
description: string;
|
3460
|
+
defaultMessage: string;
|
3461
|
+
}>>;
|
3462
|
+
validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
3463
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
3464
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3465
|
+
id: string;
|
3466
|
+
description: string;
|
3467
|
+
defaultMessage: string;
|
3468
|
+
}>;
|
3469
|
+
}, "strip", z.ZodTypeAny, {
|
3470
|
+
message: TranslationConfig;
|
3471
|
+
validator: import(".").JSONSchema;
|
3472
|
+
}, {
|
3473
|
+
message: {
|
3474
|
+
id: string;
|
3475
|
+
description: string;
|
3476
|
+
defaultMessage: string;
|
3477
|
+
};
|
3478
|
+
validator: import(".").JSONSchema;
|
3479
|
+
}>, "many">>>;
|
3480
|
+
dependsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
3481
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3482
|
+
id: string;
|
3483
|
+
description: string;
|
3484
|
+
defaultMessage: string;
|
3485
|
+
}>;
|
3486
|
+
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3487
|
+
}, {
|
3488
|
+
type: z.ZodLiteral<"DATA">;
|
3489
|
+
configuration: z.ZodObject<{
|
3490
|
+
subtitle: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3491
|
+
id: string;
|
3492
|
+
description: string;
|
3493
|
+
defaultMessage: string;
|
3494
|
+
}>>;
|
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<{
|
3513
|
+
fieldId: z.ZodString;
|
3514
|
+
}, "strip", z.ZodTypeAny, {
|
3515
|
+
fieldId: string;
|
3516
|
+
}, {
|
3517
|
+
fieldId: string;
|
3518
|
+
}>]>, "many">;
|
3519
|
+
}, "strip", z.ZodTypeAny, {
|
3520
|
+
data: ({
|
3521
|
+
value: string;
|
3522
|
+
label: TranslationConfig;
|
3523
|
+
} | {
|
3524
|
+
fieldId: string;
|
3525
|
+
})[];
|
3526
|
+
subtitle?: TranslationConfig | undefined;
|
3527
|
+
}, {
|
3528
|
+
data: ({
|
3529
|
+
value: string;
|
3530
|
+
label: {
|
3531
|
+
id: string;
|
3532
|
+
description: string;
|
3533
|
+
defaultMessage: string;
|
3534
|
+
};
|
3535
|
+
} | {
|
3536
|
+
fieldId: string;
|
3537
|
+
})[];
|
3538
|
+
subtitle?: {
|
3539
|
+
id: string;
|
3540
|
+
description: string;
|
3541
|
+
defaultMessage: string;
|
3542
|
+
} | undefined;
|
3543
|
+
}>;
|
3544
|
+
}>, "strip", z.ZodTypeAny, {
|
3545
|
+
type: "DATA";
|
3546
|
+
id: string;
|
3547
|
+
label: TranslationConfig;
|
3548
|
+
configuration: {
|
3549
|
+
data: ({
|
3550
|
+
value: string;
|
3551
|
+
label: TranslationConfig;
|
3552
|
+
} | {
|
3553
|
+
fieldId: string;
|
3554
|
+
})[];
|
3555
|
+
subtitle?: TranslationConfig | undefined;
|
3556
|
+
};
|
3557
|
+
validation?: {
|
3558
|
+
message: TranslationConfig;
|
3559
|
+
validator: import(".").JSONSchema;
|
3560
|
+
}[] | undefined;
|
3561
|
+
required?: boolean | undefined;
|
3562
|
+
dependsOn?: string[] | undefined;
|
3563
|
+
defaultValue?: string | number | boolean | {
|
3564
|
+
dependsOn: string[];
|
3565
|
+
expression: string;
|
3566
|
+
} | undefined;
|
3567
|
+
conditionals?: ({
|
3568
|
+
type: "SHOW";
|
3569
|
+
conditional: import(".").JSONSchema;
|
3570
|
+
} | {
|
3571
|
+
type: "ENABLE";
|
3572
|
+
conditional: import(".").JSONSchema;
|
3573
|
+
} | {
|
3574
|
+
type: "DISPLAY_ON_REVIEW";
|
3575
|
+
conditional: import(".").JSONSchema;
|
3576
|
+
})[] | undefined;
|
3577
|
+
disabled?: boolean | undefined;
|
3578
|
+
hidden?: boolean | undefined;
|
3579
|
+
placeholder?: TranslationConfig | undefined;
|
3580
|
+
hideLabel?: boolean | undefined;
|
3581
|
+
}, {
|
3582
|
+
type: "DATA";
|
3583
|
+
id: string;
|
3584
|
+
label: {
|
3585
|
+
id: string;
|
3586
|
+
description: string;
|
3587
|
+
defaultMessage: string;
|
3588
|
+
};
|
3589
|
+
configuration: {
|
3590
|
+
data: ({
|
3591
|
+
value: string;
|
3592
|
+
label: {
|
3593
|
+
id: string;
|
3594
|
+
description: string;
|
3595
|
+
defaultMessage: string;
|
3596
|
+
};
|
3597
|
+
} | {
|
3598
|
+
fieldId: string;
|
3599
|
+
})[];
|
3600
|
+
subtitle?: {
|
3601
|
+
id: string;
|
3602
|
+
description: string;
|
3603
|
+
defaultMessage: string;
|
3604
|
+
} | undefined;
|
3605
|
+
};
|
3606
|
+
validation?: {
|
3607
|
+
message: {
|
3608
|
+
id: string;
|
3609
|
+
description: string;
|
3610
|
+
defaultMessage: string;
|
3611
|
+
};
|
3612
|
+
validator: import(".").JSONSchema;
|
3613
|
+
}[] | undefined;
|
3614
|
+
required?: boolean | undefined;
|
3615
|
+
dependsOn?: string[] | undefined;
|
3616
|
+
defaultValue?: string | number | boolean | {
|
3617
|
+
expression: string;
|
3618
|
+
dependsOn?: string[] | undefined;
|
3619
|
+
} | undefined;
|
3620
|
+
conditionals?: ({
|
3621
|
+
type: "SHOW";
|
3622
|
+
conditional: import(".").JSONSchema;
|
3623
|
+
} | {
|
3624
|
+
type: "ENABLE";
|
3625
|
+
conditional: import(".").JSONSchema;
|
3626
|
+
} | {
|
3627
|
+
type: "DISPLAY_ON_REVIEW";
|
3628
|
+
conditional: import(".").JSONSchema;
|
3629
|
+
})[] | undefined;
|
3630
|
+
disabled?: boolean | undefined;
|
3631
|
+
hidden?: boolean | undefined;
|
3632
|
+
placeholder?: {
|
3633
|
+
id: string;
|
3634
|
+
description: string;
|
3635
|
+
defaultMessage: string;
|
3636
|
+
} | undefined;
|
3637
|
+
hideLabel?: boolean | undefined;
|
3638
|
+
}>;
|
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;
|
3192
3642
|
/** @knipignore */
|
3193
|
-
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>;
|
3194
3644
|
/** @knipignore */
|
3195
|
-
|
3196
|
-
|
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>;
|
3197
3650
|
export type SelectField = z.infer<typeof Select>;
|
3198
3651
|
export type LocationField = z.infer<typeof Location>;
|
3199
3652
|
export type RadioField = z.infer<typeof RadioGroup>;
|