@opencrvs/toolkit 1.8.0-rc.f7e8fb5 → 1.8.0-rc.f872339
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commons/api/router.d.ts +6700 -9337
- 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 -17
- package/dist/commons/conditionals/validate.test.d.ts +2 -0
- package/dist/commons/events/ActionConfig.d.ts +1123 -2056
- 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 +155 -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 +709 -1226
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +3343 -424
- 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 +567 -74
- package/dist/commons/events/FieldType.d.ts +2 -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/SummaryConfig.d.ts +93 -7
- package/dist/commons/events/TemplateConfig.d.ts +5 -5
- package/dist/commons/events/User.d.ts +5 -0
- package/dist/commons/events/defineConfig.d.ts +104 -218
- package/dist/commons/events/index.d.ts +3 -1
- package/dist/commons/events/scopes.d.ts +25 -0
- package/dist/commons/events/test.utils.d.ts +140 -213
- package/dist/commons/events/utils.d.ts +125 -83
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +166 -81
- package/dist/events/index.js +1644 -832
- 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,52 @@ 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
|
+
}>>;
|
1567
|
+
fileName: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
1568
|
+
id: string;
|
1569
|
+
description: string;
|
1570
|
+
defaultMessage: string;
|
1571
|
+
}>>;
|
1502
1572
|
}, "strip", z.ZodTypeAny, {
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1573
|
+
maxFileSize: number;
|
1574
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
1575
|
+
style?: {
|
1576
|
+
width?: "full" | "auto" | undefined;
|
1577
|
+
} | undefined;
|
1578
|
+
fileName?: TranslationConfig | undefined;
|
1506
1579
|
}, {
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1580
|
+
maxFileSize?: number | undefined;
|
1581
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
1582
|
+
style?: {
|
1583
|
+
width?: "full" | "auto" | undefined;
|
1584
|
+
} | undefined;
|
1585
|
+
fileName?: {
|
1586
|
+
id: string;
|
1587
|
+
description: string;
|
1588
|
+
defaultMessage: string;
|
1589
|
+
} | undefined;
|
1510
1590
|
}>>;
|
1511
1591
|
}>, "strip", z.ZodTypeAny, {
|
1512
1592
|
type: "FILE";
|
1513
1593
|
id: string;
|
1514
1594
|
label: TranslationConfig;
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1595
|
+
configuration: {
|
1596
|
+
maxFileSize: number;
|
1597
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
1598
|
+
style?: {
|
1599
|
+
width?: "full" | "auto" | undefined;
|
1600
|
+
} | undefined;
|
1601
|
+
fileName?: TranslationConfig | undefined;
|
1602
|
+
};
|
1520
1603
|
validation?: {
|
1521
1604
|
message: TranslationConfig;
|
1522
1605
|
validator: import(".").JSONSchema;
|
@@ -1533,6 +1616,9 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1533
1616
|
} | {
|
1534
1617
|
type: "ENABLE";
|
1535
1618
|
conditional: import(".").JSONSchema;
|
1619
|
+
} | {
|
1620
|
+
type: "DISPLAY_ON_REVIEW";
|
1621
|
+
conditional: import(".").JSONSchema;
|
1536
1622
|
})[] | undefined;
|
1537
1623
|
disabled?: boolean | undefined;
|
1538
1624
|
hidden?: boolean | undefined;
|
@@ -1546,11 +1632,6 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1546
1632
|
description: string;
|
1547
1633
|
defaultMessage: string;
|
1548
1634
|
};
|
1549
|
-
options?: {
|
1550
|
-
style: {
|
1551
|
-
fullWidth: boolean;
|
1552
|
-
};
|
1553
|
-
} | undefined;
|
1554
1635
|
validation?: {
|
1555
1636
|
message: {
|
1556
1637
|
id: string;
|
@@ -1571,6 +1652,9 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1571
1652
|
} | {
|
1572
1653
|
type: "ENABLE";
|
1573
1654
|
conditional: import(".").JSONSchema;
|
1655
|
+
} | {
|
1656
|
+
type: "DISPLAY_ON_REVIEW";
|
1657
|
+
conditional: import(".").JSONSchema;
|
1574
1658
|
})[] | undefined;
|
1575
1659
|
disabled?: boolean | undefined;
|
1576
1660
|
hidden?: boolean | undefined;
|
@@ -1580,6 +1664,18 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1580
1664
|
defaultMessage: string;
|
1581
1665
|
} | undefined;
|
1582
1666
|
hideLabel?: boolean | undefined;
|
1667
|
+
configuration?: {
|
1668
|
+
maxFileSize?: number | undefined;
|
1669
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
1670
|
+
style?: {
|
1671
|
+
width?: "full" | "auto" | undefined;
|
1672
|
+
} | undefined;
|
1673
|
+
fileName?: {
|
1674
|
+
id: string;
|
1675
|
+
description: string;
|
1676
|
+
defaultMessage: string;
|
1677
|
+
} | undefined;
|
1678
|
+
} | undefined;
|
1583
1679
|
}>;
|
1584
1680
|
export type File = z.infer<typeof File>;
|
1585
1681
|
declare const SelectOption: z.ZodObject<{
|
@@ -1612,7 +1708,7 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
1612
1708
|
expression: string;
|
1613
1709
|
dependsOn?: string[] | undefined;
|
1614
1710
|
}>]>>;
|
1615
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
1711
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
1616
1712
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1617
1713
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1618
1714
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1717,6 +1813,9 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
1717
1813
|
} | {
|
1718
1814
|
type: "ENABLE";
|
1719
1815
|
conditional: import(".").JSONSchema;
|
1816
|
+
} | {
|
1817
|
+
type: "DISPLAY_ON_REVIEW";
|
1818
|
+
conditional: import(".").JSONSchema;
|
1720
1819
|
})[] | undefined;
|
1721
1820
|
disabled?: boolean | undefined;
|
1722
1821
|
hidden?: boolean | undefined;
|
@@ -1763,6 +1862,9 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
1763
1862
|
} | {
|
1764
1863
|
type: "ENABLE";
|
1765
1864
|
conditional: import(".").JSONSchema;
|
1865
|
+
} | {
|
1866
|
+
type: "DISPLAY_ON_REVIEW";
|
1867
|
+
conditional: import(".").JSONSchema;
|
1766
1868
|
})[] | undefined;
|
1767
1869
|
disabled?: boolean | undefined;
|
1768
1870
|
hidden?: boolean | undefined;
|
@@ -1791,7 +1893,7 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
|
|
1791
1893
|
expression: string;
|
1792
1894
|
dependsOn?: string[] | undefined;
|
1793
1895
|
}>]>>;
|
1794
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
1896
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
1795
1897
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1796
1898
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1797
1899
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1873,6 +1975,9 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
|
|
1873
1975
|
} | {
|
1874
1976
|
type: "ENABLE";
|
1875
1977
|
conditional: import(".").JSONSchema;
|
1978
|
+
} | {
|
1979
|
+
type: "DISPLAY_ON_REVIEW";
|
1980
|
+
conditional: import(".").JSONSchema;
|
1876
1981
|
})[] | undefined;
|
1877
1982
|
disabled?: boolean | undefined;
|
1878
1983
|
hidden?: boolean | undefined;
|
@@ -1908,6 +2013,9 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
|
|
1908
2013
|
} | {
|
1909
2014
|
type: "ENABLE";
|
1910
2015
|
conditional: import(".").JSONSchema;
|
2016
|
+
} | {
|
2017
|
+
type: "DISPLAY_ON_REVIEW";
|
2018
|
+
conditional: import(".").JSONSchema;
|
1911
2019
|
})[] | undefined;
|
1912
2020
|
disabled?: boolean | undefined;
|
1913
2021
|
hidden?: boolean | undefined;
|
@@ -1936,7 +2044,7 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
1936
2044
|
expression: string;
|
1937
2045
|
dependsOn?: string[] | undefined;
|
1938
2046
|
}>]>>;
|
1939
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2047
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
1940
2048
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1941
2049
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1942
2050
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2024,6 +2132,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
2024
2132
|
} | {
|
2025
2133
|
type: "ENABLE";
|
2026
2134
|
conditional: import(".").JSONSchema;
|
2135
|
+
} | {
|
2136
|
+
type: "DISPLAY_ON_REVIEW";
|
2137
|
+
conditional: import(".").JSONSchema;
|
2027
2138
|
})[] | undefined;
|
2028
2139
|
disabled?: boolean | undefined;
|
2029
2140
|
hidden?: boolean | undefined;
|
@@ -2065,6 +2176,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
2065
2176
|
} | {
|
2066
2177
|
type: "ENABLE";
|
2067
2178
|
conditional: import(".").JSONSchema;
|
2179
|
+
} | {
|
2180
|
+
type: "DISPLAY_ON_REVIEW";
|
2181
|
+
conditional: import(".").JSONSchema;
|
2068
2182
|
})[] | undefined;
|
2069
2183
|
disabled?: boolean | undefined;
|
2070
2184
|
hidden?: boolean | undefined;
|
@@ -2087,7 +2201,7 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2087
2201
|
expression: string;
|
2088
2202
|
dependsOn?: string[] | undefined;
|
2089
2203
|
}>]>>;
|
2090
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2204
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2091
2205
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2092
2206
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2093
2207
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2153,6 +2267,9 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2153
2267
|
} | {
|
2154
2268
|
type: "ENABLE";
|
2155
2269
|
conditional: import(".").JSONSchema;
|
2270
|
+
} | {
|
2271
|
+
type: "DISPLAY_ON_REVIEW";
|
2272
|
+
conditional: import(".").JSONSchema;
|
2156
2273
|
})[] | undefined;
|
2157
2274
|
disabled?: boolean | undefined;
|
2158
2275
|
hidden?: boolean | undefined;
|
@@ -2186,6 +2303,9 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2186
2303
|
} | {
|
2187
2304
|
type: "ENABLE";
|
2188
2305
|
conditional: import(".").JSONSchema;
|
2306
|
+
} | {
|
2307
|
+
type: "DISPLAY_ON_REVIEW";
|
2308
|
+
conditional: import(".").JSONSchema;
|
2189
2309
|
})[] | undefined;
|
2190
2310
|
disabled?: boolean | undefined;
|
2191
2311
|
hidden?: boolean | undefined;
|
@@ -2209,7 +2329,7 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2209
2329
|
expression: string;
|
2210
2330
|
dependsOn?: string[] | undefined;
|
2211
2331
|
}>]>>;
|
2212
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2332
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2213
2333
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2214
2334
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2215
2335
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2275,6 +2395,9 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2275
2395
|
} | {
|
2276
2396
|
type: "ENABLE";
|
2277
2397
|
conditional: import(".").JSONSchema;
|
2398
|
+
} | {
|
2399
|
+
type: "DISPLAY_ON_REVIEW";
|
2400
|
+
conditional: import(".").JSONSchema;
|
2278
2401
|
})[] | undefined;
|
2279
2402
|
disabled?: boolean | undefined;
|
2280
2403
|
hidden?: boolean | undefined;
|
@@ -2308,6 +2431,9 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2308
2431
|
} | {
|
2309
2432
|
type: "ENABLE";
|
2310
2433
|
conditional: import(".").JSONSchema;
|
2434
|
+
} | {
|
2435
|
+
type: "DISPLAY_ON_REVIEW";
|
2436
|
+
conditional: import(".").JSONSchema;
|
2311
2437
|
})[] | undefined;
|
2312
2438
|
disabled?: boolean | undefined;
|
2313
2439
|
hidden?: boolean | undefined;
|
@@ -2322,22 +2448,22 @@ export type Country = z.infer<typeof Country>;
|
|
2322
2448
|
export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2323
2449
|
declare const AdministrativeAreaConfiguration: z.ZodObject<{
|
2324
2450
|
partOf: z.ZodOptional<z.ZodObject<{
|
2325
|
-
$
|
2451
|
+
$declaration: z.ZodString;
|
2326
2452
|
}, "strip", z.ZodTypeAny, {
|
2327
|
-
$
|
2453
|
+
$declaration: string;
|
2328
2454
|
}, {
|
2329
|
-
$
|
2455
|
+
$declaration: string;
|
2330
2456
|
}>>;
|
2331
2457
|
type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2332
2458
|
}, "strip", z.ZodTypeAny, {
|
2333
2459
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2334
2460
|
partOf?: {
|
2335
|
-
$
|
2461
|
+
$declaration: string;
|
2336
2462
|
} | undefined;
|
2337
2463
|
}, {
|
2338
2464
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2339
2465
|
partOf?: {
|
2340
|
-
$
|
2466
|
+
$declaration: string;
|
2341
2467
|
} | undefined;
|
2342
2468
|
}>;
|
2343
2469
|
declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
@@ -2352,7 +2478,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2352
2478
|
expression: string;
|
2353
2479
|
dependsOn?: string[] | undefined;
|
2354
2480
|
}>]>>;
|
2355
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2481
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2356
2482
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2357
2483
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2358
2484
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2400,22 +2526,22 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2400
2526
|
}>]>>;
|
2401
2527
|
configuration: z.ZodObject<{
|
2402
2528
|
partOf: z.ZodOptional<z.ZodObject<{
|
2403
|
-
$
|
2529
|
+
$declaration: z.ZodString;
|
2404
2530
|
}, "strip", z.ZodTypeAny, {
|
2405
|
-
$
|
2531
|
+
$declaration: string;
|
2406
2532
|
}, {
|
2407
|
-
$
|
2533
|
+
$declaration: string;
|
2408
2534
|
}>>;
|
2409
2535
|
type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2410
2536
|
}, "strip", z.ZodTypeAny, {
|
2411
2537
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2412
2538
|
partOf?: {
|
2413
|
-
$
|
2539
|
+
$declaration: string;
|
2414
2540
|
} | undefined;
|
2415
2541
|
}, {
|
2416
2542
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2417
2543
|
partOf?: {
|
2418
|
-
$
|
2544
|
+
$declaration: string;
|
2419
2545
|
} | undefined;
|
2420
2546
|
}>;
|
2421
2547
|
}>, "strip", z.ZodTypeAny, {
|
@@ -2425,7 +2551,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2425
2551
|
configuration: {
|
2426
2552
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2427
2553
|
partOf?: {
|
2428
|
-
$
|
2554
|
+
$declaration: string;
|
2429
2555
|
} | undefined;
|
2430
2556
|
};
|
2431
2557
|
validation?: {
|
@@ -2444,6 +2570,9 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2444
2570
|
} | {
|
2445
2571
|
type: "ENABLE";
|
2446
2572
|
conditional: import(".").JSONSchema;
|
2573
|
+
} | {
|
2574
|
+
type: "DISPLAY_ON_REVIEW";
|
2575
|
+
conditional: import(".").JSONSchema;
|
2447
2576
|
})[] | undefined;
|
2448
2577
|
disabled?: boolean | undefined;
|
2449
2578
|
hidden?: boolean | undefined;
|
@@ -2460,7 +2589,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2460
2589
|
configuration: {
|
2461
2590
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2462
2591
|
partOf?: {
|
2463
|
-
$
|
2592
|
+
$declaration: string;
|
2464
2593
|
} | undefined;
|
2465
2594
|
};
|
2466
2595
|
validation?: {
|
@@ -2483,6 +2612,9 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2483
2612
|
} | {
|
2484
2613
|
type: "ENABLE";
|
2485
2614
|
conditional: import(".").JSONSchema;
|
2615
|
+
} | {
|
2616
|
+
type: "DISPLAY_ON_REVIEW";
|
2617
|
+
conditional: import(".").JSONSchema;
|
2486
2618
|
})[] | undefined;
|
2487
2619
|
disabled?: boolean | undefined;
|
2488
2620
|
hidden?: boolean | undefined;
|
@@ -2506,7 +2638,7 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2506
2638
|
expression: string;
|
2507
2639
|
dependsOn?: string[] | undefined;
|
2508
2640
|
}>]>>;
|
2509
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2641
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2510
2642
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2511
2643
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2512
2644
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2572,6 +2704,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2572
2704
|
} | {
|
2573
2705
|
type: "ENABLE";
|
2574
2706
|
conditional: import(".").JSONSchema;
|
2707
|
+
} | {
|
2708
|
+
type: "DISPLAY_ON_REVIEW";
|
2709
|
+
conditional: import(".").JSONSchema;
|
2575
2710
|
})[] | undefined;
|
2576
2711
|
disabled?: boolean | undefined;
|
2577
2712
|
hidden?: boolean | undefined;
|
@@ -2605,6 +2740,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2605
2740
|
} | {
|
2606
2741
|
type: "ENABLE";
|
2607
2742
|
conditional: import(".").JSONSchema;
|
2743
|
+
} | {
|
2744
|
+
type: "DISPLAY_ON_REVIEW";
|
2745
|
+
conditional: import(".").JSONSchema;
|
2608
2746
|
})[] | undefined;
|
2609
2747
|
disabled?: boolean | undefined;
|
2610
2748
|
hidden?: boolean | undefined;
|
@@ -2628,7 +2766,7 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2628
2766
|
expression: string;
|
2629
2767
|
dependsOn?: string[] | undefined;
|
2630
2768
|
}>]>>;
|
2631
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2769
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2632
2770
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2633
2771
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2634
2772
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2682,6 +2820,16 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2682
2820
|
defaultMessage: string;
|
2683
2821
|
};
|
2684
2822
|
}>, "many">;
|
2823
|
+
configuration: z.ZodDefault<z.ZodObject<{
|
2824
|
+
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
2825
|
+
acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>, "many">>;
|
2826
|
+
}, "strip", z.ZodTypeAny, {
|
2827
|
+
maxFileSize: number;
|
2828
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2829
|
+
}, {
|
2830
|
+
maxFileSize?: number | undefined;
|
2831
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2832
|
+
}>>;
|
2685
2833
|
}>, "strip", z.ZodTypeAny, {
|
2686
2834
|
type: "FILE_WITH_OPTIONS";
|
2687
2835
|
id: string;
|
@@ -2690,6 +2838,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2690
2838
|
label: TranslationConfig;
|
2691
2839
|
}[];
|
2692
2840
|
label: TranslationConfig;
|
2841
|
+
configuration: {
|
2842
|
+
maxFileSize: number;
|
2843
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2844
|
+
};
|
2693
2845
|
validation?: {
|
2694
2846
|
message: TranslationConfig;
|
2695
2847
|
validator: import(".").JSONSchema;
|
@@ -2706,6 +2858,9 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2706
2858
|
} | {
|
2707
2859
|
type: "ENABLE";
|
2708
2860
|
conditional: import(".").JSONSchema;
|
2861
|
+
} | {
|
2862
|
+
type: "DISPLAY_ON_REVIEW";
|
2863
|
+
conditional: import(".").JSONSchema;
|
2709
2864
|
})[] | undefined;
|
2710
2865
|
disabled?: boolean | undefined;
|
2711
2866
|
hidden?: boolean | undefined;
|
@@ -2747,6 +2902,9 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2747
2902
|
} | {
|
2748
2903
|
type: "ENABLE";
|
2749
2904
|
conditional: import(".").JSONSchema;
|
2905
|
+
} | {
|
2906
|
+
type: "DISPLAY_ON_REVIEW";
|
2907
|
+
conditional: import(".").JSONSchema;
|
2750
2908
|
})[] | undefined;
|
2751
2909
|
disabled?: boolean | undefined;
|
2752
2910
|
hidden?: boolean | undefined;
|
@@ -2756,6 +2914,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2756
2914
|
defaultMessage: string;
|
2757
2915
|
} | undefined;
|
2758
2916
|
hideLabel?: boolean | undefined;
|
2917
|
+
configuration?: {
|
2918
|
+
maxFileSize?: number | undefined;
|
2919
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2920
|
+
} | undefined;
|
2759
2921
|
}>;
|
2760
2922
|
export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
|
2761
2923
|
declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
@@ -2770,7 +2932,7 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2770
2932
|
expression: string;
|
2771
2933
|
dependsOn?: string[] | undefined;
|
2772
2934
|
}>]>>;
|
2773
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
2935
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2774
2936
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2775
2937
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2776
2938
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2836,6 +2998,9 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2836
2998
|
} | {
|
2837
2999
|
type: "ENABLE";
|
2838
3000
|
conditional: import(".").JSONSchema;
|
3001
|
+
} | {
|
3002
|
+
type: "DISPLAY_ON_REVIEW";
|
3003
|
+
conditional: import(".").JSONSchema;
|
2839
3004
|
})[] | undefined;
|
2840
3005
|
disabled?: boolean | undefined;
|
2841
3006
|
hidden?: boolean | undefined;
|
@@ -2869,6 +3034,9 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2869
3034
|
} | {
|
2870
3035
|
type: "ENABLE";
|
2871
3036
|
conditional: import(".").JSONSchema;
|
3037
|
+
} | {
|
3038
|
+
type: "DISPLAY_ON_REVIEW";
|
3039
|
+
conditional: import(".").JSONSchema;
|
2872
3040
|
})[] | undefined;
|
2873
3041
|
disabled?: boolean | undefined;
|
2874
3042
|
hidden?: boolean | undefined;
|
@@ -2892,7 +3060,7 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2892
3060
|
expression: string;
|
2893
3061
|
dependsOn?: string[] | undefined;
|
2894
3062
|
}>]>>;
|
2895
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
3063
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
2896
3064
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2897
3065
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2898
3066
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2958,6 +3126,9 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2958
3126
|
} | {
|
2959
3127
|
type: "ENABLE";
|
2960
3128
|
conditional: import(".").JSONSchema;
|
3129
|
+
} | {
|
3130
|
+
type: "DISPLAY_ON_REVIEW";
|
3131
|
+
conditional: import(".").JSONSchema;
|
2961
3132
|
})[] | undefined;
|
2962
3133
|
disabled?: boolean | undefined;
|
2963
3134
|
hidden?: boolean | undefined;
|
@@ -2991,6 +3162,9 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2991
3162
|
} | {
|
2992
3163
|
type: "ENABLE";
|
2993
3164
|
conditional: import(".").JSONSchema;
|
3165
|
+
} | {
|
3166
|
+
type: "DISPLAY_ON_REVIEW";
|
3167
|
+
conditional: import(".").JSONSchema;
|
2994
3168
|
})[] | undefined;
|
2995
3169
|
disabled?: boolean | undefined;
|
2996
3170
|
hidden?: boolean | undefined;
|
@@ -3014,7 +3188,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3014
3188
|
expression: string;
|
3015
3189
|
dependsOn?: string[] | undefined;
|
3016
3190
|
}>]>>;
|
3017
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").
|
3191
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
3018
3192
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3019
3193
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3020
3194
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -3050,8 +3224,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3050
3224
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3051
3225
|
}, {
|
3052
3226
|
type: z.ZodLiteral<"ADDRESS">;
|
3053
|
-
defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
3227
|
+
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
3054
3228
|
country: z.ZodString;
|
3229
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
3055
3230
|
province: z.ZodString;
|
3056
3231
|
district: z.ZodString;
|
3057
3232
|
}, {
|
@@ -3064,6 +3239,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3064
3239
|
}>, "strip", z.ZodTypeAny, {
|
3065
3240
|
country: string;
|
3066
3241
|
district: string;
|
3242
|
+
addressType: "DOMESTIC";
|
3067
3243
|
province: string;
|
3068
3244
|
urbanOrRural: "URBAN";
|
3069
3245
|
number?: string | undefined;
|
@@ -3074,6 +3250,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3074
3250
|
}, {
|
3075
3251
|
country: string;
|
3076
3252
|
district: string;
|
3253
|
+
addressType: "DOMESTIC";
|
3077
3254
|
province: string;
|
3078
3255
|
urbanOrRural: "URBAN";
|
3079
3256
|
number?: string | undefined;
|
@@ -3083,6 +3260,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3083
3260
|
zipCode?: string | undefined;
|
3084
3261
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
3085
3262
|
country: z.ZodString;
|
3263
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
3086
3264
|
province: z.ZodString;
|
3087
3265
|
district: z.ZodString;
|
3088
3266
|
}, {
|
@@ -3091,15 +3269,47 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3091
3269
|
}>, "strip", z.ZodTypeAny, {
|
3092
3270
|
country: string;
|
3093
3271
|
district: string;
|
3272
|
+
addressType: "DOMESTIC";
|
3094
3273
|
province: string;
|
3095
3274
|
urbanOrRural: "RURAL";
|
3096
3275
|
village?: string | undefined;
|
3097
3276
|
}, {
|
3098
3277
|
country: string;
|
3099
3278
|
district: string;
|
3279
|
+
addressType: "DOMESTIC";
|
3100
3280
|
province: string;
|
3101
3281
|
urbanOrRural: "RURAL";
|
3102
3282
|
village?: string | undefined;
|
3283
|
+
}>]>, z.ZodObject<{
|
3284
|
+
country: z.ZodString;
|
3285
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
3286
|
+
state: z.ZodString;
|
3287
|
+
district2: z.ZodString;
|
3288
|
+
cityOrTown: z.ZodOptional<z.ZodString>;
|
3289
|
+
addressLine1: z.ZodOptional<z.ZodString>;
|
3290
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
3291
|
+
addressLine3: z.ZodOptional<z.ZodString>;
|
3292
|
+
postcodeOrZip: z.ZodOptional<z.ZodString>;
|
3293
|
+
}, "strip", z.ZodTypeAny, {
|
3294
|
+
country: string;
|
3295
|
+
state: string;
|
3296
|
+
addressType: "INTERNATIONAL";
|
3297
|
+
district2: string;
|
3298
|
+
cityOrTown?: string | undefined;
|
3299
|
+
addressLine1?: string | undefined;
|
3300
|
+
addressLine2?: string | undefined;
|
3301
|
+
addressLine3?: string | undefined;
|
3302
|
+
postcodeOrZip?: string | undefined;
|
3303
|
+
}, {
|
3304
|
+
country: string;
|
3305
|
+
state: string;
|
3306
|
+
addressType: "INTERNATIONAL";
|
3307
|
+
district2: string;
|
3308
|
+
cityOrTown?: string | undefined;
|
3309
|
+
addressLine1?: string | undefined;
|
3310
|
+
addressLine2?: string | undefined;
|
3311
|
+
addressLine3?: string | undefined;
|
3312
|
+
postcodeOrZip?: string | undefined;
|
3103
3313
|
}>]>>;
|
3104
3314
|
}>, "strip", z.ZodTypeAny, {
|
3105
3315
|
type: "ADDRESS";
|
@@ -3114,6 +3324,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3114
3324
|
defaultValue?: {
|
3115
3325
|
country: string;
|
3116
3326
|
district: string;
|
3327
|
+
addressType: "DOMESTIC";
|
3117
3328
|
province: string;
|
3118
3329
|
urbanOrRural: "URBAN";
|
3119
3330
|
number?: string | undefined;
|
@@ -3124,9 +3335,20 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3124
3335
|
} | {
|
3125
3336
|
country: string;
|
3126
3337
|
district: string;
|
3338
|
+
addressType: "DOMESTIC";
|
3127
3339
|
province: string;
|
3128
3340
|
urbanOrRural: "RURAL";
|
3129
3341
|
village?: string | undefined;
|
3342
|
+
} | {
|
3343
|
+
country: string;
|
3344
|
+
state: string;
|
3345
|
+
addressType: "INTERNATIONAL";
|
3346
|
+
district2: string;
|
3347
|
+
cityOrTown?: string | undefined;
|
3348
|
+
addressLine1?: string | undefined;
|
3349
|
+
addressLine2?: string | undefined;
|
3350
|
+
addressLine3?: string | undefined;
|
3351
|
+
postcodeOrZip?: string | undefined;
|
3130
3352
|
} | undefined;
|
3131
3353
|
conditionals?: ({
|
3132
3354
|
type: "SHOW";
|
@@ -3134,6 +3356,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3134
3356
|
} | {
|
3135
3357
|
type: "ENABLE";
|
3136
3358
|
conditional: import(".").JSONSchema;
|
3359
|
+
} | {
|
3360
|
+
type: "DISPLAY_ON_REVIEW";
|
3361
|
+
conditional: import(".").JSONSchema;
|
3137
3362
|
})[] | undefined;
|
3138
3363
|
disabled?: boolean | undefined;
|
3139
3364
|
hidden?: boolean | undefined;
|
@@ -3160,6 +3385,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3160
3385
|
defaultValue?: {
|
3161
3386
|
country: string;
|
3162
3387
|
district: string;
|
3388
|
+
addressType: "DOMESTIC";
|
3163
3389
|
province: string;
|
3164
3390
|
urbanOrRural: "URBAN";
|
3165
3391
|
number?: string | undefined;
|
@@ -3170,9 +3396,20 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3170
3396
|
} | {
|
3171
3397
|
country: string;
|
3172
3398
|
district: string;
|
3399
|
+
addressType: "DOMESTIC";
|
3173
3400
|
province: string;
|
3174
3401
|
urbanOrRural: "RURAL";
|
3175
3402
|
village?: string | undefined;
|
3403
|
+
} | {
|
3404
|
+
country: string;
|
3405
|
+
state: string;
|
3406
|
+
addressType: "INTERNATIONAL";
|
3407
|
+
district2: string;
|
3408
|
+
cityOrTown?: string | undefined;
|
3409
|
+
addressLine1?: string | undefined;
|
3410
|
+
addressLine2?: string | undefined;
|
3411
|
+
addressLine3?: string | undefined;
|
3412
|
+
postcodeOrZip?: string | undefined;
|
3176
3413
|
} | undefined;
|
3177
3414
|
conditionals?: ({
|
3178
3415
|
type: "SHOW";
|
@@ -3180,6 +3417,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3180
3417
|
} | {
|
3181
3418
|
type: "ENABLE";
|
3182
3419
|
conditional: import(".").JSONSchema;
|
3420
|
+
} | {
|
3421
|
+
type: "DISPLAY_ON_REVIEW";
|
3422
|
+
conditional: import(".").JSONSchema;
|
3183
3423
|
})[] | undefined;
|
3184
3424
|
disabled?: boolean | undefined;
|
3185
3425
|
hidden?: boolean | undefined;
|
@@ -3190,11 +3430,264 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3190
3430
|
} | undefined;
|
3191
3431
|
hideLabel?: boolean | undefined;
|
3192
3432
|
}>;
|
3433
|
+
export declare const DataEntry: z.ZodUnion<[z.ZodObject<{
|
3434
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3435
|
+
id: string;
|
3436
|
+
description: string;
|
3437
|
+
defaultMessage: string;
|
3438
|
+
}>;
|
3439
|
+
value: z.ZodUnion<[z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3440
|
+
id: string;
|
3441
|
+
description: string;
|
3442
|
+
defaultMessage: string;
|
3443
|
+
}>, z.ZodString]>;
|
3444
|
+
}, "strip", z.ZodTypeAny, {
|
3445
|
+
value: string | TranslationConfig;
|
3446
|
+
label: TranslationConfig;
|
3447
|
+
}, {
|
3448
|
+
value: string | {
|
3449
|
+
id: string;
|
3450
|
+
description: string;
|
3451
|
+
defaultMessage: string;
|
3452
|
+
};
|
3453
|
+
label: {
|
3454
|
+
id: string;
|
3455
|
+
description: string;
|
3456
|
+
defaultMessage: string;
|
3457
|
+
};
|
3458
|
+
}>, z.ZodObject<{
|
3459
|
+
fieldId: z.ZodString;
|
3460
|
+
}, "strip", z.ZodTypeAny, {
|
3461
|
+
fieldId: string;
|
3462
|
+
}, {
|
3463
|
+
fieldId: string;
|
3464
|
+
}>]>;
|
3465
|
+
export type DataEntry = z.infer<typeof DataEntry>;
|
3466
|
+
declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
3467
|
+
id: z.ZodString;
|
3468
|
+
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
|
3469
|
+
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
3470
|
+
expression: z.ZodString;
|
3471
|
+
}, "strip", z.ZodTypeAny, {
|
3472
|
+
dependsOn: string[];
|
3473
|
+
expression: string;
|
3474
|
+
}, {
|
3475
|
+
expression: string;
|
3476
|
+
dependsOn?: string[] | undefined;
|
3477
|
+
}>]>>;
|
3478
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
3479
|
+
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3480
|
+
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3481
|
+
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3482
|
+
placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3483
|
+
id: string;
|
3484
|
+
description: string;
|
3485
|
+
defaultMessage: string;
|
3486
|
+
}>>;
|
3487
|
+
validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
3488
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
3489
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3490
|
+
id: string;
|
3491
|
+
description: string;
|
3492
|
+
defaultMessage: string;
|
3493
|
+
}>;
|
3494
|
+
}, "strip", z.ZodTypeAny, {
|
3495
|
+
message: TranslationConfig;
|
3496
|
+
validator: import(".").JSONSchema;
|
3497
|
+
}, {
|
3498
|
+
message: {
|
3499
|
+
id: string;
|
3500
|
+
description: string;
|
3501
|
+
defaultMessage: string;
|
3502
|
+
};
|
3503
|
+
validator: import(".").JSONSchema;
|
3504
|
+
}>, "many">>>;
|
3505
|
+
dependsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
3506
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3507
|
+
id: string;
|
3508
|
+
description: string;
|
3509
|
+
defaultMessage: string;
|
3510
|
+
}>;
|
3511
|
+
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3512
|
+
}, {
|
3513
|
+
type: z.ZodLiteral<"DATA">;
|
3514
|
+
configuration: z.ZodObject<{
|
3515
|
+
subtitle: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3516
|
+
id: string;
|
3517
|
+
description: string;
|
3518
|
+
defaultMessage: string;
|
3519
|
+
}>>;
|
3520
|
+
data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
3521
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3522
|
+
id: string;
|
3523
|
+
description: string;
|
3524
|
+
defaultMessage: string;
|
3525
|
+
}>;
|
3526
|
+
value: z.ZodUnion<[z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3527
|
+
id: string;
|
3528
|
+
description: string;
|
3529
|
+
defaultMessage: string;
|
3530
|
+
}>, z.ZodString]>;
|
3531
|
+
}, "strip", z.ZodTypeAny, {
|
3532
|
+
value: string | TranslationConfig;
|
3533
|
+
label: TranslationConfig;
|
3534
|
+
}, {
|
3535
|
+
value: string | {
|
3536
|
+
id: string;
|
3537
|
+
description: string;
|
3538
|
+
defaultMessage: string;
|
3539
|
+
};
|
3540
|
+
label: {
|
3541
|
+
id: string;
|
3542
|
+
description: string;
|
3543
|
+
defaultMessage: string;
|
3544
|
+
};
|
3545
|
+
}>, z.ZodObject<{
|
3546
|
+
fieldId: z.ZodString;
|
3547
|
+
}, "strip", z.ZodTypeAny, {
|
3548
|
+
fieldId: string;
|
3549
|
+
}, {
|
3550
|
+
fieldId: string;
|
3551
|
+
}>]>, "many">;
|
3552
|
+
}, "strip", z.ZodTypeAny, {
|
3553
|
+
data: ({
|
3554
|
+
value: string | TranslationConfig;
|
3555
|
+
label: TranslationConfig;
|
3556
|
+
} | {
|
3557
|
+
fieldId: string;
|
3558
|
+
})[];
|
3559
|
+
subtitle?: TranslationConfig | undefined;
|
3560
|
+
}, {
|
3561
|
+
data: ({
|
3562
|
+
value: string | {
|
3563
|
+
id: string;
|
3564
|
+
description: string;
|
3565
|
+
defaultMessage: string;
|
3566
|
+
};
|
3567
|
+
label: {
|
3568
|
+
id: string;
|
3569
|
+
description: string;
|
3570
|
+
defaultMessage: string;
|
3571
|
+
};
|
3572
|
+
} | {
|
3573
|
+
fieldId: string;
|
3574
|
+
})[];
|
3575
|
+
subtitle?: {
|
3576
|
+
id: string;
|
3577
|
+
description: string;
|
3578
|
+
defaultMessage: string;
|
3579
|
+
} | undefined;
|
3580
|
+
}>;
|
3581
|
+
}>, "strip", z.ZodTypeAny, {
|
3582
|
+
type: "DATA";
|
3583
|
+
id: string;
|
3584
|
+
label: TranslationConfig;
|
3585
|
+
configuration: {
|
3586
|
+
data: ({
|
3587
|
+
value: string | TranslationConfig;
|
3588
|
+
label: TranslationConfig;
|
3589
|
+
} | {
|
3590
|
+
fieldId: string;
|
3591
|
+
})[];
|
3592
|
+
subtitle?: TranslationConfig | undefined;
|
3593
|
+
};
|
3594
|
+
validation?: {
|
3595
|
+
message: TranslationConfig;
|
3596
|
+
validator: import(".").JSONSchema;
|
3597
|
+
}[] | undefined;
|
3598
|
+
required?: boolean | undefined;
|
3599
|
+
dependsOn?: string[] | undefined;
|
3600
|
+
defaultValue?: string | number | boolean | {
|
3601
|
+
dependsOn: string[];
|
3602
|
+
expression: string;
|
3603
|
+
} | undefined;
|
3604
|
+
conditionals?: ({
|
3605
|
+
type: "SHOW";
|
3606
|
+
conditional: import(".").JSONSchema;
|
3607
|
+
} | {
|
3608
|
+
type: "ENABLE";
|
3609
|
+
conditional: import(".").JSONSchema;
|
3610
|
+
} | {
|
3611
|
+
type: "DISPLAY_ON_REVIEW";
|
3612
|
+
conditional: import(".").JSONSchema;
|
3613
|
+
})[] | undefined;
|
3614
|
+
disabled?: boolean | undefined;
|
3615
|
+
hidden?: boolean | undefined;
|
3616
|
+
placeholder?: TranslationConfig | undefined;
|
3617
|
+
hideLabel?: boolean | undefined;
|
3618
|
+
}, {
|
3619
|
+
type: "DATA";
|
3620
|
+
id: string;
|
3621
|
+
label: {
|
3622
|
+
id: string;
|
3623
|
+
description: string;
|
3624
|
+
defaultMessage: string;
|
3625
|
+
};
|
3626
|
+
configuration: {
|
3627
|
+
data: ({
|
3628
|
+
value: string | {
|
3629
|
+
id: string;
|
3630
|
+
description: string;
|
3631
|
+
defaultMessage: string;
|
3632
|
+
};
|
3633
|
+
label: {
|
3634
|
+
id: string;
|
3635
|
+
description: string;
|
3636
|
+
defaultMessage: string;
|
3637
|
+
};
|
3638
|
+
} | {
|
3639
|
+
fieldId: string;
|
3640
|
+
})[];
|
3641
|
+
subtitle?: {
|
3642
|
+
id: string;
|
3643
|
+
description: string;
|
3644
|
+
defaultMessage: string;
|
3645
|
+
} | undefined;
|
3646
|
+
};
|
3647
|
+
validation?: {
|
3648
|
+
message: {
|
3649
|
+
id: string;
|
3650
|
+
description: string;
|
3651
|
+
defaultMessage: string;
|
3652
|
+
};
|
3653
|
+
validator: import(".").JSONSchema;
|
3654
|
+
}[] | undefined;
|
3655
|
+
required?: boolean | undefined;
|
3656
|
+
dependsOn?: string[] | undefined;
|
3657
|
+
defaultValue?: string | number | boolean | {
|
3658
|
+
expression: string;
|
3659
|
+
dependsOn?: string[] | undefined;
|
3660
|
+
} | undefined;
|
3661
|
+
conditionals?: ({
|
3662
|
+
type: "SHOW";
|
3663
|
+
conditional: import(".").JSONSchema;
|
3664
|
+
} | {
|
3665
|
+
type: "ENABLE";
|
3666
|
+
conditional: import(".").JSONSchema;
|
3667
|
+
} | {
|
3668
|
+
type: "DISPLAY_ON_REVIEW";
|
3669
|
+
conditional: import(".").JSONSchema;
|
3670
|
+
})[] | undefined;
|
3671
|
+
disabled?: boolean | undefined;
|
3672
|
+
hidden?: boolean | undefined;
|
3673
|
+
placeholder?: {
|
3674
|
+
id: string;
|
3675
|
+
description: string;
|
3676
|
+
defaultMessage: string;
|
3677
|
+
} | undefined;
|
3678
|
+
hideLabel?: boolean | undefined;
|
3679
|
+
}>;
|
3680
|
+
export type DataField = z.infer<typeof DataField>;
|
3681
|
+
/** @knipignore */
|
3682
|
+
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;
|
3193
3683
|
/** @knipignore */
|
3194
|
-
export type
|
3684
|
+
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>;
|
3195
3685
|
/** @knipignore */
|
3196
|
-
|
3197
|
-
|
3686
|
+
/**
|
3687
|
+
* This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
|
3688
|
+
*/
|
3689
|
+
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>;
|
3690
|
+
export declare const FieldConfig: z.ZodType<Inferred, any, InferredInput>;
|
3198
3691
|
export type SelectField = z.infer<typeof Select>;
|
3199
3692
|
export type LocationField = z.infer<typeof Location>;
|
3200
3693
|
export type RadioField = z.infer<typeof RadioGroup>;
|