@opencrvs/toolkit 1.8.0-rc.fc43738 → 1.8.0-rc.fcf46fc
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 +6956 -9633
- package/dist/commons/conditionals/conditionals.d.ts +28 -5
- package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
- package/dist/commons/conditionals/validate.d.ts +46 -22
- 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 +10571 -1388
- package/dist/commons/events/ActionInput.d.ts +6943 -2170
- package/dist/commons/events/ActionType.d.ts +27 -12
- package/dist/commons/events/CompositeFieldValue.d.ts +414 -0
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +499 -199
- 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 +4635 -1719
- package/dist/commons/events/EventIndex.d.ts +9 -6
- package/dist/commons/events/EventMetadata.d.ts +6 -3
- package/dist/commons/events/FieldConfig.d.ts +529 -74
- package/dist/commons/events/FieldType.d.ts +6 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +274 -39
- package/dist/commons/events/FieldValue.d.ts +136 -65
- 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/defineConfig.d.ts +91 -222
- package/dist/commons/events/index.d.ts +4 -1
- package/dist/commons/events/test.utils.d.ts +176 -243
- package/dist/commons/events/utils.d.ts +196 -70
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +166 -81
- package/dist/events/index.js +1679 -903
- 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;
|
@@ -1170,6 +1221,8 @@ declare const DateField: z.ZodObject<z.objectUtil.extendShape<{
|
|
1170
1221
|
} | undefined;
|
1171
1222
|
}>;
|
1172
1223
|
export type DateField = z.infer<typeof DateField>;
|
1224
|
+
declare const HtmlFontVariant: z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>;
|
1225
|
+
export type HtmlFontVariant = z.infer<typeof HtmlFontVariant>;
|
1173
1226
|
declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
|
1174
1227
|
id: z.ZodString;
|
1175
1228
|
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
|
@@ -1182,7 +1235,7 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
|
|
1182
1235
|
expression: string;
|
1183
1236
|
dependsOn?: string[] | undefined;
|
1184
1237
|
}>]>>;
|
1185
|
-
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">>>;
|
1186
1239
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1187
1240
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1188
1241
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1270,6 +1323,9 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
|
|
1270
1323
|
} | {
|
1271
1324
|
type: "ENABLE";
|
1272
1325
|
conditional: import(".").JSONSchema;
|
1326
|
+
} | {
|
1327
|
+
type: "DISPLAY_ON_REVIEW";
|
1328
|
+
conditional: import(".").JSONSchema;
|
1273
1329
|
})[] | undefined;
|
1274
1330
|
disabled?: boolean | undefined;
|
1275
1331
|
hidden?: boolean | undefined;
|
@@ -1303,6 +1359,9 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
|
|
1303
1359
|
} | {
|
1304
1360
|
type: "ENABLE";
|
1305
1361
|
conditional: import(".").JSONSchema;
|
1362
|
+
} | {
|
1363
|
+
type: "DISPLAY_ON_REVIEW";
|
1364
|
+
conditional: import(".").JSONSchema;
|
1306
1365
|
})[] | undefined;
|
1307
1366
|
disabled?: boolean | undefined;
|
1308
1367
|
hidden?: boolean | undefined;
|
@@ -1331,7 +1390,7 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
|
|
1331
1390
|
expression: string;
|
1332
1391
|
dependsOn?: string[] | undefined;
|
1333
1392
|
}>]>>;
|
1334
|
-
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">>>;
|
1335
1394
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1336
1395
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1337
1396
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1397,6 +1456,9 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
|
|
1397
1456
|
} | {
|
1398
1457
|
type: "ENABLE";
|
1399
1458
|
conditional: import(".").JSONSchema;
|
1459
|
+
} | {
|
1460
|
+
type: "DISPLAY_ON_REVIEW";
|
1461
|
+
conditional: import(".").JSONSchema;
|
1400
1462
|
})[] | undefined;
|
1401
1463
|
disabled?: boolean | undefined;
|
1402
1464
|
hidden?: boolean | undefined;
|
@@ -1430,6 +1492,9 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
|
|
1430
1492
|
} | {
|
1431
1493
|
type: "ENABLE";
|
1432
1494
|
conditional: import(".").JSONSchema;
|
1495
|
+
} | {
|
1496
|
+
type: "DISPLAY_ON_REVIEW";
|
1497
|
+
conditional: import(".").JSONSchema;
|
1433
1498
|
})[] | undefined;
|
1434
1499
|
disabled?: boolean | undefined;
|
1435
1500
|
hidden?: boolean | undefined;
|
@@ -1453,7 +1518,7 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1453
1518
|
expression: string;
|
1454
1519
|
dependsOn?: string[] | undefined;
|
1455
1520
|
}>]>>;
|
1456
|
-
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">>>;
|
1457
1522
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1458
1523
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1459
1524
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1489,32 +1554,40 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1489
1554
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1490
1555
|
}, {
|
1491
1556
|
type: z.ZodLiteral<"FILE">;
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
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"]>>;
|
1495
1562
|
}, "strip", z.ZodTypeAny, {
|
1496
|
-
|
1563
|
+
width?: "full" | "auto" | undefined;
|
1497
1564
|
}, {
|
1498
|
-
|
1499
|
-
}
|
1565
|
+
width?: "full" | "auto" | undefined;
|
1566
|
+
}>>;
|
1500
1567
|
}, "strip", z.ZodTypeAny, {
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1568
|
+
maxFileSize: number;
|
1569
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
1570
|
+
style?: {
|
1571
|
+
width?: "full" | "auto" | undefined;
|
1572
|
+
} | undefined;
|
1504
1573
|
}, {
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
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;
|
1508
1579
|
}>>;
|
1509
1580
|
}>, "strip", z.ZodTypeAny, {
|
1510
1581
|
type: "FILE";
|
1511
1582
|
id: string;
|
1512
1583
|
label: TranslationConfig;
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
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
|
+
};
|
1518
1591
|
validation?: {
|
1519
1592
|
message: TranslationConfig;
|
1520
1593
|
validator: import(".").JSONSchema;
|
@@ -1531,6 +1604,9 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1531
1604
|
} | {
|
1532
1605
|
type: "ENABLE";
|
1533
1606
|
conditional: import(".").JSONSchema;
|
1607
|
+
} | {
|
1608
|
+
type: "DISPLAY_ON_REVIEW";
|
1609
|
+
conditional: import(".").JSONSchema;
|
1534
1610
|
})[] | undefined;
|
1535
1611
|
disabled?: boolean | undefined;
|
1536
1612
|
hidden?: boolean | undefined;
|
@@ -1544,11 +1620,6 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1544
1620
|
description: string;
|
1545
1621
|
defaultMessage: string;
|
1546
1622
|
};
|
1547
|
-
options?: {
|
1548
|
-
style: {
|
1549
|
-
fullWidth: boolean;
|
1550
|
-
};
|
1551
|
-
} | undefined;
|
1552
1623
|
validation?: {
|
1553
1624
|
message: {
|
1554
1625
|
id: string;
|
@@ -1569,6 +1640,9 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1569
1640
|
} | {
|
1570
1641
|
type: "ENABLE";
|
1571
1642
|
conditional: import(".").JSONSchema;
|
1643
|
+
} | {
|
1644
|
+
type: "DISPLAY_ON_REVIEW";
|
1645
|
+
conditional: import(".").JSONSchema;
|
1572
1646
|
})[] | undefined;
|
1573
1647
|
disabled?: boolean | undefined;
|
1574
1648
|
hidden?: boolean | undefined;
|
@@ -1578,6 +1652,13 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1578
1652
|
defaultMessage: string;
|
1579
1653
|
} | undefined;
|
1580
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;
|
1581
1662
|
}>;
|
1582
1663
|
export type File = z.infer<typeof File>;
|
1583
1664
|
declare const SelectOption: z.ZodObject<{
|
@@ -1610,7 +1691,7 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
1610
1691
|
expression: string;
|
1611
1692
|
dependsOn?: string[] | undefined;
|
1612
1693
|
}>]>>;
|
1613
|
-
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">>>;
|
1614
1695
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1615
1696
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1616
1697
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1715,6 +1796,9 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
1715
1796
|
} | {
|
1716
1797
|
type: "ENABLE";
|
1717
1798
|
conditional: import(".").JSONSchema;
|
1799
|
+
} | {
|
1800
|
+
type: "DISPLAY_ON_REVIEW";
|
1801
|
+
conditional: import(".").JSONSchema;
|
1718
1802
|
})[] | undefined;
|
1719
1803
|
disabled?: boolean | undefined;
|
1720
1804
|
hidden?: boolean | undefined;
|
@@ -1761,6 +1845,9 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
1761
1845
|
} | {
|
1762
1846
|
type: "ENABLE";
|
1763
1847
|
conditional: import(".").JSONSchema;
|
1848
|
+
} | {
|
1849
|
+
type: "DISPLAY_ON_REVIEW";
|
1850
|
+
conditional: import(".").JSONSchema;
|
1764
1851
|
})[] | undefined;
|
1765
1852
|
disabled?: boolean | undefined;
|
1766
1853
|
hidden?: boolean | undefined;
|
@@ -1789,7 +1876,7 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
|
|
1789
1876
|
expression: string;
|
1790
1877
|
dependsOn?: string[] | undefined;
|
1791
1878
|
}>]>>;
|
1792
|
-
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">>>;
|
1793
1880
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1794
1881
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1795
1882
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1871,6 +1958,9 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
|
|
1871
1958
|
} | {
|
1872
1959
|
type: "ENABLE";
|
1873
1960
|
conditional: import(".").JSONSchema;
|
1961
|
+
} | {
|
1962
|
+
type: "DISPLAY_ON_REVIEW";
|
1963
|
+
conditional: import(".").JSONSchema;
|
1874
1964
|
})[] | undefined;
|
1875
1965
|
disabled?: boolean | undefined;
|
1876
1966
|
hidden?: boolean | undefined;
|
@@ -1906,6 +1996,9 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
|
|
1906
1996
|
} | {
|
1907
1997
|
type: "ENABLE";
|
1908
1998
|
conditional: import(".").JSONSchema;
|
1999
|
+
} | {
|
2000
|
+
type: "DISPLAY_ON_REVIEW";
|
2001
|
+
conditional: import(".").JSONSchema;
|
1909
2002
|
})[] | undefined;
|
1910
2003
|
disabled?: boolean | undefined;
|
1911
2004
|
hidden?: boolean | undefined;
|
@@ -1934,7 +2027,7 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
1934
2027
|
expression: string;
|
1935
2028
|
dependsOn?: string[] | undefined;
|
1936
2029
|
}>]>>;
|
1937
|
-
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">>>;
|
1938
2031
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1939
2032
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
1940
2033
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2022,6 +2115,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
2022
2115
|
} | {
|
2023
2116
|
type: "ENABLE";
|
2024
2117
|
conditional: import(".").JSONSchema;
|
2118
|
+
} | {
|
2119
|
+
type: "DISPLAY_ON_REVIEW";
|
2120
|
+
conditional: import(".").JSONSchema;
|
2025
2121
|
})[] | undefined;
|
2026
2122
|
disabled?: boolean | undefined;
|
2027
2123
|
hidden?: boolean | undefined;
|
@@ -2063,6 +2159,9 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
2063
2159
|
} | {
|
2064
2160
|
type: "ENABLE";
|
2065
2161
|
conditional: import(".").JSONSchema;
|
2162
|
+
} | {
|
2163
|
+
type: "DISPLAY_ON_REVIEW";
|
2164
|
+
conditional: import(".").JSONSchema;
|
2066
2165
|
})[] | undefined;
|
2067
2166
|
disabled?: boolean | undefined;
|
2068
2167
|
hidden?: boolean | undefined;
|
@@ -2085,7 +2184,7 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2085
2184
|
expression: string;
|
2086
2185
|
dependsOn?: string[] | undefined;
|
2087
2186
|
}>]>>;
|
2088
|
-
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">>>;
|
2089
2188
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2090
2189
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2091
2190
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2151,6 +2250,9 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2151
2250
|
} | {
|
2152
2251
|
type: "ENABLE";
|
2153
2252
|
conditional: import(".").JSONSchema;
|
2253
|
+
} | {
|
2254
|
+
type: "DISPLAY_ON_REVIEW";
|
2255
|
+
conditional: import(".").JSONSchema;
|
2154
2256
|
})[] | undefined;
|
2155
2257
|
disabled?: boolean | undefined;
|
2156
2258
|
hidden?: boolean | undefined;
|
@@ -2184,6 +2286,9 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2184
2286
|
} | {
|
2185
2287
|
type: "ENABLE";
|
2186
2288
|
conditional: import(".").JSONSchema;
|
2289
|
+
} | {
|
2290
|
+
type: "DISPLAY_ON_REVIEW";
|
2291
|
+
conditional: import(".").JSONSchema;
|
2187
2292
|
})[] | undefined;
|
2188
2293
|
disabled?: boolean | undefined;
|
2189
2294
|
hidden?: boolean | undefined;
|
@@ -2207,7 +2312,7 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2207
2312
|
expression: string;
|
2208
2313
|
dependsOn?: string[] | undefined;
|
2209
2314
|
}>]>>;
|
2210
|
-
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">>>;
|
2211
2316
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2212
2317
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2213
2318
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2273,6 +2378,9 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2273
2378
|
} | {
|
2274
2379
|
type: "ENABLE";
|
2275
2380
|
conditional: import(".").JSONSchema;
|
2381
|
+
} | {
|
2382
|
+
type: "DISPLAY_ON_REVIEW";
|
2383
|
+
conditional: import(".").JSONSchema;
|
2276
2384
|
})[] | undefined;
|
2277
2385
|
disabled?: boolean | undefined;
|
2278
2386
|
hidden?: boolean | undefined;
|
@@ -2306,6 +2414,9 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2306
2414
|
} | {
|
2307
2415
|
type: "ENABLE";
|
2308
2416
|
conditional: import(".").JSONSchema;
|
2417
|
+
} | {
|
2418
|
+
type: "DISPLAY_ON_REVIEW";
|
2419
|
+
conditional: import(".").JSONSchema;
|
2309
2420
|
})[] | undefined;
|
2310
2421
|
disabled?: boolean | undefined;
|
2311
2422
|
hidden?: boolean | undefined;
|
@@ -2317,24 +2428,25 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2317
2428
|
hideLabel?: boolean | undefined;
|
2318
2429
|
}>;
|
2319
2430
|
export type Country = z.infer<typeof Country>;
|
2431
|
+
export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2320
2432
|
declare const AdministrativeAreaConfiguration: z.ZodObject<{
|
2321
2433
|
partOf: z.ZodOptional<z.ZodObject<{
|
2322
|
-
$
|
2434
|
+
$declaration: z.ZodString;
|
2323
2435
|
}, "strip", z.ZodTypeAny, {
|
2324
|
-
$
|
2436
|
+
$declaration: string;
|
2325
2437
|
}, {
|
2326
|
-
$
|
2438
|
+
$declaration: string;
|
2327
2439
|
}>>;
|
2328
2440
|
type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2329
2441
|
}, "strip", z.ZodTypeAny, {
|
2330
2442
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2331
2443
|
partOf?: {
|
2332
|
-
$
|
2444
|
+
$declaration: string;
|
2333
2445
|
} | undefined;
|
2334
2446
|
}, {
|
2335
2447
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2336
2448
|
partOf?: {
|
2337
|
-
$
|
2449
|
+
$declaration: string;
|
2338
2450
|
} | undefined;
|
2339
2451
|
}>;
|
2340
2452
|
declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
@@ -2349,7 +2461,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2349
2461
|
expression: string;
|
2350
2462
|
dependsOn?: string[] | undefined;
|
2351
2463
|
}>]>>;
|
2352
|
-
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">>>;
|
2353
2465
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2354
2466
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2355
2467
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2397,22 +2509,22 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2397
2509
|
}>]>>;
|
2398
2510
|
configuration: z.ZodObject<{
|
2399
2511
|
partOf: z.ZodOptional<z.ZodObject<{
|
2400
|
-
$
|
2512
|
+
$declaration: z.ZodString;
|
2401
2513
|
}, "strip", z.ZodTypeAny, {
|
2402
|
-
$
|
2514
|
+
$declaration: string;
|
2403
2515
|
}, {
|
2404
|
-
$
|
2516
|
+
$declaration: string;
|
2405
2517
|
}>>;
|
2406
2518
|
type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2407
2519
|
}, "strip", z.ZodTypeAny, {
|
2408
2520
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2409
2521
|
partOf?: {
|
2410
|
-
$
|
2522
|
+
$declaration: string;
|
2411
2523
|
} | undefined;
|
2412
2524
|
}, {
|
2413
2525
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2414
2526
|
partOf?: {
|
2415
|
-
$
|
2527
|
+
$declaration: string;
|
2416
2528
|
} | undefined;
|
2417
2529
|
}>;
|
2418
2530
|
}>, "strip", z.ZodTypeAny, {
|
@@ -2422,7 +2534,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2422
2534
|
configuration: {
|
2423
2535
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2424
2536
|
partOf?: {
|
2425
|
-
$
|
2537
|
+
$declaration: string;
|
2426
2538
|
} | undefined;
|
2427
2539
|
};
|
2428
2540
|
validation?: {
|
@@ -2441,6 +2553,9 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2441
2553
|
} | {
|
2442
2554
|
type: "ENABLE";
|
2443
2555
|
conditional: import(".").JSONSchema;
|
2556
|
+
} | {
|
2557
|
+
type: "DISPLAY_ON_REVIEW";
|
2558
|
+
conditional: import(".").JSONSchema;
|
2444
2559
|
})[] | undefined;
|
2445
2560
|
disabled?: boolean | undefined;
|
2446
2561
|
hidden?: boolean | undefined;
|
@@ -2457,7 +2572,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2457
2572
|
configuration: {
|
2458
2573
|
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2459
2574
|
partOf?: {
|
2460
|
-
$
|
2575
|
+
$declaration: string;
|
2461
2576
|
} | undefined;
|
2462
2577
|
};
|
2463
2578
|
validation?: {
|
@@ -2480,6 +2595,9 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2480
2595
|
} | {
|
2481
2596
|
type: "ENABLE";
|
2482
2597
|
conditional: import(".").JSONSchema;
|
2598
|
+
} | {
|
2599
|
+
type: "DISPLAY_ON_REVIEW";
|
2600
|
+
conditional: import(".").JSONSchema;
|
2483
2601
|
})[] | undefined;
|
2484
2602
|
disabled?: boolean | undefined;
|
2485
2603
|
hidden?: boolean | undefined;
|
@@ -2503,7 +2621,7 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2503
2621
|
expression: string;
|
2504
2622
|
dependsOn?: string[] | undefined;
|
2505
2623
|
}>]>>;
|
2506
|
-
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">>>;
|
2507
2625
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2508
2626
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2509
2627
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2569,6 +2687,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2569
2687
|
} | {
|
2570
2688
|
type: "ENABLE";
|
2571
2689
|
conditional: import(".").JSONSchema;
|
2690
|
+
} | {
|
2691
|
+
type: "DISPLAY_ON_REVIEW";
|
2692
|
+
conditional: import(".").JSONSchema;
|
2572
2693
|
})[] | undefined;
|
2573
2694
|
disabled?: boolean | undefined;
|
2574
2695
|
hidden?: boolean | undefined;
|
@@ -2602,6 +2723,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2602
2723
|
} | {
|
2603
2724
|
type: "ENABLE";
|
2604
2725
|
conditional: import(".").JSONSchema;
|
2726
|
+
} | {
|
2727
|
+
type: "DISPLAY_ON_REVIEW";
|
2728
|
+
conditional: import(".").JSONSchema;
|
2605
2729
|
})[] | undefined;
|
2606
2730
|
disabled?: boolean | undefined;
|
2607
2731
|
hidden?: boolean | undefined;
|
@@ -2625,7 +2749,7 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2625
2749
|
expression: string;
|
2626
2750
|
dependsOn?: string[] | undefined;
|
2627
2751
|
}>]>>;
|
2628
|
-
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">>>;
|
2629
2753
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2630
2754
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2631
2755
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2679,6 +2803,16 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2679
2803
|
defaultMessage: string;
|
2680
2804
|
};
|
2681
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
|
+
}>>;
|
2682
2816
|
}>, "strip", z.ZodTypeAny, {
|
2683
2817
|
type: "FILE_WITH_OPTIONS";
|
2684
2818
|
id: string;
|
@@ -2687,6 +2821,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2687
2821
|
label: TranslationConfig;
|
2688
2822
|
}[];
|
2689
2823
|
label: TranslationConfig;
|
2824
|
+
configuration: {
|
2825
|
+
maxFileSize: number;
|
2826
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2827
|
+
};
|
2690
2828
|
validation?: {
|
2691
2829
|
message: TranslationConfig;
|
2692
2830
|
validator: import(".").JSONSchema;
|
@@ -2703,6 +2841,9 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2703
2841
|
} | {
|
2704
2842
|
type: "ENABLE";
|
2705
2843
|
conditional: import(".").JSONSchema;
|
2844
|
+
} | {
|
2845
|
+
type: "DISPLAY_ON_REVIEW";
|
2846
|
+
conditional: import(".").JSONSchema;
|
2706
2847
|
})[] | undefined;
|
2707
2848
|
disabled?: boolean | undefined;
|
2708
2849
|
hidden?: boolean | undefined;
|
@@ -2744,6 +2885,9 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2744
2885
|
} | {
|
2745
2886
|
type: "ENABLE";
|
2746
2887
|
conditional: import(".").JSONSchema;
|
2888
|
+
} | {
|
2889
|
+
type: "DISPLAY_ON_REVIEW";
|
2890
|
+
conditional: import(".").JSONSchema;
|
2747
2891
|
})[] | undefined;
|
2748
2892
|
disabled?: boolean | undefined;
|
2749
2893
|
hidden?: boolean | undefined;
|
@@ -2753,6 +2897,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2753
2897
|
defaultMessage: string;
|
2754
2898
|
} | undefined;
|
2755
2899
|
hideLabel?: boolean | undefined;
|
2900
|
+
configuration?: {
|
2901
|
+
maxFileSize?: number | undefined;
|
2902
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2903
|
+
} | undefined;
|
2756
2904
|
}>;
|
2757
2905
|
export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
|
2758
2906
|
declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
@@ -2767,7 +2915,7 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2767
2915
|
expression: string;
|
2768
2916
|
dependsOn?: string[] | undefined;
|
2769
2917
|
}>]>>;
|
2770
|
-
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">>>;
|
2771
2919
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2772
2920
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2773
2921
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2833,6 +2981,9 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2833
2981
|
} | {
|
2834
2982
|
type: "ENABLE";
|
2835
2983
|
conditional: import(".").JSONSchema;
|
2984
|
+
} | {
|
2985
|
+
type: "DISPLAY_ON_REVIEW";
|
2986
|
+
conditional: import(".").JSONSchema;
|
2836
2987
|
})[] | undefined;
|
2837
2988
|
disabled?: boolean | undefined;
|
2838
2989
|
hidden?: boolean | undefined;
|
@@ -2866,6 +3017,9 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
2866
3017
|
} | {
|
2867
3018
|
type: "ENABLE";
|
2868
3019
|
conditional: import(".").JSONSchema;
|
3020
|
+
} | {
|
3021
|
+
type: "DISPLAY_ON_REVIEW";
|
3022
|
+
conditional: import(".").JSONSchema;
|
2869
3023
|
})[] | undefined;
|
2870
3024
|
disabled?: boolean | undefined;
|
2871
3025
|
hidden?: boolean | undefined;
|
@@ -2889,7 +3043,7 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2889
3043
|
expression: string;
|
2890
3044
|
dependsOn?: string[] | undefined;
|
2891
3045
|
}>]>>;
|
2892
|
-
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">>>;
|
2893
3047
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2894
3048
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2895
3049
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -2955,6 +3109,9 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2955
3109
|
} | {
|
2956
3110
|
type: "ENABLE";
|
2957
3111
|
conditional: import(".").JSONSchema;
|
3112
|
+
} | {
|
3113
|
+
type: "DISPLAY_ON_REVIEW";
|
3114
|
+
conditional: import(".").JSONSchema;
|
2958
3115
|
})[] | undefined;
|
2959
3116
|
disabled?: boolean | undefined;
|
2960
3117
|
hidden?: boolean | undefined;
|
@@ -2988,6 +3145,9 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
2988
3145
|
} | {
|
2989
3146
|
type: "ENABLE";
|
2990
3147
|
conditional: import(".").JSONSchema;
|
3148
|
+
} | {
|
3149
|
+
type: "DISPLAY_ON_REVIEW";
|
3150
|
+
conditional: import(".").JSONSchema;
|
2991
3151
|
})[] | undefined;
|
2992
3152
|
disabled?: boolean | undefined;
|
2993
3153
|
hidden?: boolean | undefined;
|
@@ -3011,7 +3171,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3011
3171
|
expression: string;
|
3012
3172
|
dependsOn?: string[] | undefined;
|
3013
3173
|
}>]>>;
|
3014
|
-
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">>>;
|
3015
3175
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3016
3176
|
disabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3017
3177
|
hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -3047,8 +3207,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3047
3207
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3048
3208
|
}, {
|
3049
3209
|
type: z.ZodLiteral<"ADDRESS">;
|
3050
|
-
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<{
|
3051
3211
|
country: z.ZodString;
|
3212
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
3052
3213
|
province: z.ZodString;
|
3053
3214
|
district: z.ZodString;
|
3054
3215
|
}, {
|
@@ -3061,6 +3222,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3061
3222
|
}>, "strip", z.ZodTypeAny, {
|
3062
3223
|
country: string;
|
3063
3224
|
district: string;
|
3225
|
+
addressType: "DOMESTIC";
|
3064
3226
|
province: string;
|
3065
3227
|
urbanOrRural: "URBAN";
|
3066
3228
|
number?: string | undefined;
|
@@ -3071,6 +3233,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3071
3233
|
}, {
|
3072
3234
|
country: string;
|
3073
3235
|
district: string;
|
3236
|
+
addressType: "DOMESTIC";
|
3074
3237
|
province: string;
|
3075
3238
|
urbanOrRural: "URBAN";
|
3076
3239
|
number?: string | undefined;
|
@@ -3080,6 +3243,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3080
3243
|
zipCode?: string | undefined;
|
3081
3244
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
3082
3245
|
country: z.ZodString;
|
3246
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
3083
3247
|
province: z.ZodString;
|
3084
3248
|
district: z.ZodString;
|
3085
3249
|
}, {
|
@@ -3088,15 +3252,47 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3088
3252
|
}>, "strip", z.ZodTypeAny, {
|
3089
3253
|
country: string;
|
3090
3254
|
district: string;
|
3255
|
+
addressType: "DOMESTIC";
|
3091
3256
|
province: string;
|
3092
3257
|
urbanOrRural: "RURAL";
|
3093
3258
|
village?: string | undefined;
|
3094
3259
|
}, {
|
3095
3260
|
country: string;
|
3096
3261
|
district: string;
|
3262
|
+
addressType: "DOMESTIC";
|
3097
3263
|
province: string;
|
3098
3264
|
urbanOrRural: "RURAL";
|
3099
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;
|
3100
3296
|
}>]>>;
|
3101
3297
|
}>, "strip", z.ZodTypeAny, {
|
3102
3298
|
type: "ADDRESS";
|
@@ -3111,6 +3307,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3111
3307
|
defaultValue?: {
|
3112
3308
|
country: string;
|
3113
3309
|
district: string;
|
3310
|
+
addressType: "DOMESTIC";
|
3114
3311
|
province: string;
|
3115
3312
|
urbanOrRural: "URBAN";
|
3116
3313
|
number?: string | undefined;
|
@@ -3121,9 +3318,20 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3121
3318
|
} | {
|
3122
3319
|
country: string;
|
3123
3320
|
district: string;
|
3321
|
+
addressType: "DOMESTIC";
|
3124
3322
|
province: string;
|
3125
3323
|
urbanOrRural: "RURAL";
|
3126
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;
|
3127
3335
|
} | undefined;
|
3128
3336
|
conditionals?: ({
|
3129
3337
|
type: "SHOW";
|
@@ -3131,6 +3339,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3131
3339
|
} | {
|
3132
3340
|
type: "ENABLE";
|
3133
3341
|
conditional: import(".").JSONSchema;
|
3342
|
+
} | {
|
3343
|
+
type: "DISPLAY_ON_REVIEW";
|
3344
|
+
conditional: import(".").JSONSchema;
|
3134
3345
|
})[] | undefined;
|
3135
3346
|
disabled?: boolean | undefined;
|
3136
3347
|
hidden?: boolean | undefined;
|
@@ -3157,6 +3368,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3157
3368
|
defaultValue?: {
|
3158
3369
|
country: string;
|
3159
3370
|
district: string;
|
3371
|
+
addressType: "DOMESTIC";
|
3160
3372
|
province: string;
|
3161
3373
|
urbanOrRural: "URBAN";
|
3162
3374
|
number?: string | undefined;
|
@@ -3167,9 +3379,20 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3167
3379
|
} | {
|
3168
3380
|
country: string;
|
3169
3381
|
district: string;
|
3382
|
+
addressType: "DOMESTIC";
|
3170
3383
|
province: string;
|
3171
3384
|
urbanOrRural: "RURAL";
|
3172
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;
|
3173
3396
|
} | undefined;
|
3174
3397
|
conditionals?: ({
|
3175
3398
|
type: "SHOW";
|
@@ -3177,6 +3400,9 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3177
3400
|
} | {
|
3178
3401
|
type: "ENABLE";
|
3179
3402
|
conditional: import(".").JSONSchema;
|
3403
|
+
} | {
|
3404
|
+
type: "DISPLAY_ON_REVIEW";
|
3405
|
+
conditional: import(".").JSONSchema;
|
3180
3406
|
})[] | undefined;
|
3181
3407
|
disabled?: boolean | undefined;
|
3182
3408
|
hidden?: boolean | undefined;
|
@@ -3187,11 +3413,240 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3187
3413
|
} | undefined;
|
3188
3414
|
hideLabel?: boolean | undefined;
|
3189
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;
|
3190
3642
|
/** @knipignore */
|
3191
|
-
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>;
|
3192
3644
|
/** @knipignore */
|
3193
|
-
|
3194
|
-
|
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>;
|
3195
3650
|
export type SelectField = z.infer<typeof Select>;
|
3196
3651
|
export type LocationField = z.infer<typeof Location>;
|
3197
3652
|
export type RadioField = z.infer<typeof RadioGroup>;
|