@opencrvs/toolkit 1.8.0-rc.fb5b9fe → 1.8.0-rc.fb96ec1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/commons/api/router.d.ts +6886 -544
  2. package/dist/commons/conditionals/conditionals.d.ts +4 -0
  3. package/dist/commons/conditionals/validate.d.ts +6 -0
  4. package/dist/commons/events/ActionConfig.d.ts +18678 -6326
  5. package/dist/commons/events/ActionDocument.d.ts +1783 -280
  6. package/dist/commons/events/ActionInput.d.ts +1382 -182
  7. package/dist/commons/events/ActionType.d.ts +6 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +279 -3
  9. package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
  10. package/dist/commons/events/Constants.d.ts +1 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +1161 -413
  12. package/dist/commons/events/Draft.d.ts +118 -17
  13. package/dist/commons/events/EventConfig.d.ts +10125 -4116
  14. package/dist/commons/events/EventDocument.d.ts +1144 -205
  15. package/dist/commons/events/EventIndex.d.ts +839 -185
  16. package/dist/commons/events/EventMetadata.d.ts +52 -40
  17. package/dist/commons/events/FieldConfig.d.ts +1717 -872
  18. package/dist/commons/events/FieldType.d.ts +4 -1
  19. package/dist/commons/events/FieldTypeMapping.d.ts +89 -50
  20. package/dist/commons/events/FieldValue.d.ts +41 -5
  21. package/dist/commons/events/FormConfig.d.ts +7640 -2444
  22. package/dist/commons/events/PageConfig.d.ts +2816 -1540
  23. package/dist/commons/events/SummaryConfig.d.ts +0 -5
  24. package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
  25. package/dist/commons/events/WorkqueueConfig.d.ts +4460 -1685
  26. package/dist/commons/events/defineConfig.d.ts +971 -17
  27. package/dist/commons/events/field.d.ts +9 -0
  28. package/dist/commons/events/index.d.ts +1 -0
  29. package/dist/commons/events/scopes.d.ts +1 -2
  30. package/dist/commons/events/test.utils.d.ts +146 -38
  31. package/dist/commons/events/utils.d.ts +9669 -10
  32. package/dist/conditionals/index.js +38 -18
  33. package/dist/events/index.js +1703 -1045
  34. package/dist/scopes/index.d.ts +4 -1
  35. package/dist/scopes/index.js +67 -17
  36. package/package.json +3 -3
@@ -8,6 +8,25 @@ export declare const FieldReference: z.ZodObject<{
8
8
  }, {
9
9
  $$field: string;
10
10
  }>;
11
+ export declare const ValidationConfig: z.ZodObject<{
12
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
13
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
14
+ id: string;
15
+ description: string;
16
+ defaultMessage: string;
17
+ }>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ message: TranslationConfig;
20
+ validator: import(".").JSONSchema;
21
+ }, {
22
+ message: {
23
+ id: string;
24
+ description: string;
25
+ defaultMessage: string;
26
+ };
27
+ validator: import(".").JSONSchema;
28
+ }>;
29
+ export type ValidationConfig = z.infer<typeof ValidationConfig>;
11
30
  declare const BaseField: z.ZodObject<{
12
31
  id: z.ZodString;
13
32
  parent: z.ZodOptional<z.ZodObject<{
@@ -2268,7 +2287,7 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
2268
2287
  hideLabel?: boolean | undefined;
2269
2288
  defaultValue?: string | undefined;
2270
2289
  }>;
2271
- declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
2290
+ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
2272
2291
  id: z.ZodString;
2273
2292
  parent: z.ZodOptional<z.ZodObject<{
2274
2293
  $$field: z.ZodString;
@@ -2314,10 +2333,48 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
2314
2333
  }>>;
2315
2334
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2316
2335
  }, {
2317
- type: z.ZodLiteral<"CHECKBOX">;
2318
- defaultValue: z.ZodOptional<z.ZodBoolean>;
2336
+ type: z.ZodLiteral<"NAME">;
2337
+ defaultValue: z.ZodOptional<z.ZodObject<{
2338
+ firstname: z.ZodString;
2339
+ surname: z.ZodString;
2340
+ }, "strip", z.ZodTypeAny, {
2341
+ firstname: string;
2342
+ surname: string;
2343
+ }, {
2344
+ firstname: string;
2345
+ surname: string;
2346
+ }>>;
2347
+ configuration: z.ZodOptional<z.ZodObject<{
2348
+ maxLength: z.ZodOptional<z.ZodNumber>;
2349
+ prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2350
+ id: string;
2351
+ description: string;
2352
+ defaultMessage: string;
2353
+ }>>;
2354
+ postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2355
+ id: string;
2356
+ description: string;
2357
+ defaultMessage: string;
2358
+ }>>;
2359
+ }, "strip", z.ZodTypeAny, {
2360
+ maxLength?: number | undefined;
2361
+ prefix?: TranslationConfig | undefined;
2362
+ postfix?: TranslationConfig | undefined;
2363
+ }, {
2364
+ maxLength?: number | undefined;
2365
+ prefix?: {
2366
+ id: string;
2367
+ description: string;
2368
+ defaultMessage: string;
2369
+ } | undefined;
2370
+ postfix?: {
2371
+ id: string;
2372
+ description: string;
2373
+ defaultMessage: string;
2374
+ } | undefined;
2375
+ }>>;
2319
2376
  }>, "strip", z.ZodTypeAny, {
2320
- type: "CHECKBOX";
2377
+ type: "NAME";
2321
2378
  id: string;
2322
2379
  label: TranslationConfig;
2323
2380
  parent?: {
@@ -2341,9 +2398,17 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
2341
2398
  placeholder?: TranslationConfig | undefined;
2342
2399
  helperText?: TranslationConfig | undefined;
2343
2400
  hideLabel?: boolean | undefined;
2344
- defaultValue?: boolean | undefined;
2401
+ defaultValue?: {
2402
+ firstname: string;
2403
+ surname: string;
2404
+ } | undefined;
2405
+ configuration?: {
2406
+ maxLength?: number | undefined;
2407
+ prefix?: TranslationConfig | undefined;
2408
+ postfix?: TranslationConfig | undefined;
2409
+ } | undefined;
2345
2410
  }, {
2346
- type: "CHECKBOX";
2411
+ type: "NAME";
2347
2412
  id: string;
2348
2413
  label: {
2349
2414
  id: string;
@@ -2383,10 +2448,25 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
2383
2448
  defaultMessage: string;
2384
2449
  } | undefined;
2385
2450
  hideLabel?: boolean | undefined;
2386
- defaultValue?: boolean | undefined;
2451
+ defaultValue?: {
2452
+ firstname: string;
2453
+ surname: string;
2454
+ } | undefined;
2455
+ configuration?: {
2456
+ maxLength?: number | undefined;
2457
+ prefix?: {
2458
+ id: string;
2459
+ description: string;
2460
+ defaultMessage: string;
2461
+ } | undefined;
2462
+ postfix?: {
2463
+ id: string;
2464
+ description: string;
2465
+ defaultMessage: string;
2466
+ } | undefined;
2467
+ } | undefined;
2387
2468
  }>;
2388
- export type Checkbox = z.infer<typeof Checkbox>;
2389
- declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2469
+ declare const PhoneField: z.ZodObject<z.objectUtil.extendShape<{
2390
2470
  id: z.ZodString;
2391
2471
  parent: z.ZodOptional<z.ZodObject<{
2392
2472
  $$field: z.ZodString;
@@ -2432,10 +2512,10 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2432
2512
  }>>;
2433
2513
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2434
2514
  }, {
2435
- type: z.ZodLiteral<"COUNTRY">;
2436
2515
  defaultValue: z.ZodOptional<z.ZodString>;
2516
+ type: z.ZodLiteral<"PHONE">;
2437
2517
  }>, "strip", z.ZodTypeAny, {
2438
- type: "COUNTRY";
2518
+ type: "PHONE";
2439
2519
  id: string;
2440
2520
  label: TranslationConfig;
2441
2521
  parent?: {
@@ -2461,7 +2541,7 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2461
2541
  hideLabel?: boolean | undefined;
2462
2542
  defaultValue?: string | undefined;
2463
2543
  }, {
2464
- type: "COUNTRY";
2544
+ type: "PHONE";
2465
2545
  id: string;
2466
2546
  label: {
2467
2547
  id: string;
@@ -2503,29 +2583,7 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2503
2583
  hideLabel?: boolean | undefined;
2504
2584
  defaultValue?: string | undefined;
2505
2585
  }>;
2506
- export type Country = z.infer<typeof Country>;
2507
- export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2508
- declare const AdministrativeAreaConfiguration: z.ZodObject<{
2509
- partOf: z.ZodOptional<z.ZodObject<{
2510
- $declaration: z.ZodString;
2511
- }, "strip", z.ZodTypeAny, {
2512
- $declaration: string;
2513
- }, {
2514
- $declaration: string;
2515
- }>>;
2516
- type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2517
- }, "strip", z.ZodTypeAny, {
2518
- type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2519
- partOf?: {
2520
- $declaration: string;
2521
- } | undefined;
2522
- }, {
2523
- type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2524
- partOf?: {
2525
- $declaration: string;
2526
- } | undefined;
2527
- }>;
2528
- declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2586
+ declare const IdField: z.ZodObject<z.objectUtil.extendShape<{
2529
2587
  id: z.ZodString;
2530
2588
  parent: z.ZodOptional<z.ZodObject<{
2531
2589
  $$field: z.ZodString;
@@ -2571,38 +2629,12 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2571
2629
  }>>;
2572
2630
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2573
2631
  }, {
2574
- type: z.ZodLiteral<"ADMINISTRATIVE_AREA">;
2575
2632
  defaultValue: z.ZodOptional<z.ZodString>;
2576
- configuration: z.ZodObject<{
2577
- partOf: z.ZodOptional<z.ZodObject<{
2578
- $declaration: z.ZodString;
2579
- }, "strip", z.ZodTypeAny, {
2580
- $declaration: string;
2581
- }, {
2582
- $declaration: string;
2583
- }>>;
2584
- type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2585
- }, "strip", z.ZodTypeAny, {
2586
- type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2587
- partOf?: {
2588
- $declaration: string;
2589
- } | undefined;
2590
- }, {
2591
- type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2592
- partOf?: {
2593
- $declaration: string;
2594
- } | undefined;
2595
- }>;
2633
+ type: z.ZodLiteral<"ID">;
2596
2634
  }>, "strip", z.ZodTypeAny, {
2597
- type: "ADMINISTRATIVE_AREA";
2635
+ type: "ID";
2598
2636
  id: string;
2599
2637
  label: TranslationConfig;
2600
- configuration: {
2601
- type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2602
- partOf?: {
2603
- $declaration: string;
2604
- } | undefined;
2605
- };
2606
2638
  parent?: {
2607
2639
  $$field: string;
2608
2640
  } | undefined;
@@ -2626,19 +2658,13 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2626
2658
  hideLabel?: boolean | undefined;
2627
2659
  defaultValue?: string | undefined;
2628
2660
  }, {
2629
- type: "ADMINISTRATIVE_AREA";
2661
+ type: "ID";
2630
2662
  id: string;
2631
2663
  label: {
2632
2664
  id: string;
2633
2665
  description: string;
2634
2666
  defaultMessage: string;
2635
2667
  };
2636
- configuration: {
2637
- type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2638
- partOf?: {
2639
- $declaration: string;
2640
- } | undefined;
2641
- };
2642
2668
  parent?: {
2643
2669
  $$field: string;
2644
2670
  } | undefined;
@@ -2674,8 +2700,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2674
2700
  hideLabel?: boolean | undefined;
2675
2701
  defaultValue?: string | undefined;
2676
2702
  }>;
2677
- export type AdministrativeArea = z.infer<typeof AdministrativeArea>;
2678
- declare const Location: z.ZodObject<z.objectUtil.extendShape<{
2703
+ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
2679
2704
  id: z.ZodString;
2680
2705
  parent: z.ZodOptional<z.ZodObject<{
2681
2706
  $$field: z.ZodString;
@@ -2721,10 +2746,10 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
2721
2746
  }>>;
2722
2747
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2723
2748
  }, {
2724
- type: z.ZodLiteral<"LOCATION">;
2725
- defaultValue: z.ZodOptional<z.ZodString>;
2749
+ type: z.ZodLiteral<"CHECKBOX">;
2750
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
2726
2751
  }>, "strip", z.ZodTypeAny, {
2727
- type: "LOCATION";
2752
+ type: "CHECKBOX";
2728
2753
  id: string;
2729
2754
  label: TranslationConfig;
2730
2755
  parent?: {
@@ -2748,9 +2773,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
2748
2773
  placeholder?: TranslationConfig | undefined;
2749
2774
  helperText?: TranslationConfig | undefined;
2750
2775
  hideLabel?: boolean | undefined;
2751
- defaultValue?: string | undefined;
2776
+ defaultValue?: boolean | undefined;
2752
2777
  }, {
2753
- type: "LOCATION";
2778
+ type: "CHECKBOX";
2754
2779
  id: string;
2755
2780
  label: {
2756
2781
  id: string;
@@ -2790,10 +2815,10 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
2790
2815
  defaultMessage: string;
2791
2816
  } | undefined;
2792
2817
  hideLabel?: boolean | undefined;
2793
- defaultValue?: string | undefined;
2818
+ defaultValue?: boolean | undefined;
2794
2819
  }>;
2795
- export type Location = z.infer<typeof Location>;
2796
- declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
2820
+ export type Checkbox = z.infer<typeof Checkbox>;
2821
+ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2797
2822
  id: z.ZodString;
2798
2823
  parent: z.ZodOptional<z.ZodObject<{
2799
2824
  $$field: z.ZodString;
@@ -2839,63 +2864,12 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
2839
2864
  }>>;
2840
2865
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2841
2866
  }, {
2842
- type: z.ZodLiteral<"FILE_WITH_OPTIONS">;
2843
- options: z.ZodArray<z.ZodObject<{
2844
- value: z.ZodString;
2845
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2846
- id: string;
2847
- description: string;
2848
- defaultMessage: string;
2849
- }>;
2850
- }, "strip", z.ZodTypeAny, {
2851
- value: string;
2852
- label: TranslationConfig;
2853
- }, {
2854
- value: string;
2855
- label: {
2856
- id: string;
2857
- description: string;
2858
- defaultMessage: string;
2859
- };
2860
- }>, "many">;
2861
- defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
2862
- filename: z.ZodString;
2863
- originalFilename: z.ZodString;
2864
- type: z.ZodString;
2865
- option: z.ZodString;
2866
- }, "strip", z.ZodTypeAny, {
2867
- type: string;
2868
- option: string;
2869
- filename: string;
2870
- originalFilename: string;
2871
- }, {
2872
- type: string;
2873
- option: string;
2874
- filename: string;
2875
- originalFilename: string;
2876
- }>, "many">>;
2877
- configuration: z.ZodDefault<z.ZodObject<{
2878
- maxFileSize: z.ZodDefault<z.ZodNumber>;
2879
- acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>, "many">>;
2880
- }, "strip", z.ZodTypeAny, {
2881
- maxFileSize: number;
2882
- acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2883
- }, {
2884
- maxFileSize?: number | undefined;
2885
- acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2886
- }>>;
2867
+ type: z.ZodLiteral<"COUNTRY">;
2868
+ defaultValue: z.ZodOptional<z.ZodString>;
2887
2869
  }>, "strip", z.ZodTypeAny, {
2888
- type: "FILE_WITH_OPTIONS";
2870
+ type: "COUNTRY";
2889
2871
  id: string;
2890
- options: {
2891
- value: string;
2892
- label: TranslationConfig;
2893
- }[];
2894
2872
  label: TranslationConfig;
2895
- configuration: {
2896
- maxFileSize: number;
2897
- acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2898
- };
2899
2873
  parent?: {
2900
2874
  $$field: string;
2901
2875
  } | undefined;
@@ -2917,23 +2891,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
2917
2891
  placeholder?: TranslationConfig | undefined;
2918
2892
  helperText?: TranslationConfig | undefined;
2919
2893
  hideLabel?: boolean | undefined;
2920
- defaultValue?: {
2921
- type: string;
2922
- option: string;
2923
- filename: string;
2924
- originalFilename: string;
2925
- }[] | undefined;
2894
+ defaultValue?: string | undefined;
2926
2895
  }, {
2927
- type: "FILE_WITH_OPTIONS";
2896
+ type: "COUNTRY";
2928
2897
  id: string;
2929
- options: {
2930
- value: string;
2931
- label: {
2932
- id: string;
2933
- description: string;
2934
- defaultMessage: string;
2935
- };
2936
- }[];
2937
2898
  label: {
2938
2899
  id: string;
2939
2900
  description: string;
@@ -2972,29 +2933,41 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
2972
2933
  defaultMessage: string;
2973
2934
  } | undefined;
2974
2935
  hideLabel?: boolean | undefined;
2975
- defaultValue?: {
2976
- type: string;
2977
- option: string;
2978
- filename: string;
2979
- originalFilename: string;
2980
- }[] | undefined;
2981
- configuration?: {
2982
- maxFileSize?: number | undefined;
2983
- acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2984
- } | undefined;
2936
+ defaultValue?: string | undefined;
2985
2937
  }>;
2986
- export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
2987
- declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
2988
- id: z.ZodString;
2989
- parent: z.ZodOptional<z.ZodObject<{
2990
- $$field: z.ZodString;
2938
+ export type Country = z.infer<typeof Country>;
2939
+ export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2940
+ declare const AdministrativeAreaConfiguration: z.ZodObject<{
2941
+ partOf: z.ZodOptional<z.ZodObject<{
2942
+ $declaration: z.ZodString;
2991
2943
  }, "strip", z.ZodTypeAny, {
2992
- $$field: string;
2944
+ $declaration: string;
2993
2945
  }, {
2994
- $$field: string;
2946
+ $declaration: string;
2995
2947
  }>>;
2996
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
2997
- required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2948
+ type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2949
+ }, "strip", z.ZodTypeAny, {
2950
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2951
+ partOf?: {
2952
+ $declaration: string;
2953
+ } | undefined;
2954
+ }, {
2955
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2956
+ partOf?: {
2957
+ $declaration: string;
2958
+ } | undefined;
2959
+ }>;
2960
+ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2961
+ id: z.ZodString;
2962
+ parent: z.ZodOptional<z.ZodObject<{
2963
+ $$field: z.ZodString;
2964
+ }, "strip", z.ZodTypeAny, {
2965
+ $$field: string;
2966
+ }, {
2967
+ $$field: string;
2968
+ }>>;
2969
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
2970
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2998
2971
  placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2999
2972
  id: string;
3000
2973
  description: string;
@@ -3030,12 +3003,38 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
3030
3003
  }>>;
3031
3004
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3032
3005
  }, {
3033
- type: z.ZodLiteral<"FACILITY">;
3006
+ type: z.ZodLiteral<"ADMINISTRATIVE_AREA">;
3034
3007
  defaultValue: z.ZodOptional<z.ZodString>;
3008
+ configuration: z.ZodObject<{
3009
+ partOf: z.ZodOptional<z.ZodObject<{
3010
+ $declaration: z.ZodString;
3011
+ }, "strip", z.ZodTypeAny, {
3012
+ $declaration: string;
3013
+ }, {
3014
+ $declaration: string;
3015
+ }>>;
3016
+ type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
3017
+ }, "strip", z.ZodTypeAny, {
3018
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
3019
+ partOf?: {
3020
+ $declaration: string;
3021
+ } | undefined;
3022
+ }, {
3023
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
3024
+ partOf?: {
3025
+ $declaration: string;
3026
+ } | undefined;
3027
+ }>;
3035
3028
  }>, "strip", z.ZodTypeAny, {
3036
- type: "FACILITY";
3029
+ type: "ADMINISTRATIVE_AREA";
3037
3030
  id: string;
3038
3031
  label: TranslationConfig;
3032
+ configuration: {
3033
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
3034
+ partOf?: {
3035
+ $declaration: string;
3036
+ } | undefined;
3037
+ };
3039
3038
  parent?: {
3040
3039
  $$field: string;
3041
3040
  } | undefined;
@@ -3059,13 +3058,19 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
3059
3058
  hideLabel?: boolean | undefined;
3060
3059
  defaultValue?: string | undefined;
3061
3060
  }, {
3062
- type: "FACILITY";
3061
+ type: "ADMINISTRATIVE_AREA";
3063
3062
  id: string;
3064
3063
  label: {
3065
3064
  id: string;
3066
3065
  description: string;
3067
3066
  defaultMessage: string;
3068
3067
  };
3068
+ configuration: {
3069
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
3070
+ partOf?: {
3071
+ $declaration: string;
3072
+ } | undefined;
3073
+ };
3069
3074
  parent?: {
3070
3075
  $$field: string;
3071
3076
  } | undefined;
@@ -3101,8 +3106,8 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
3101
3106
  hideLabel?: boolean | undefined;
3102
3107
  defaultValue?: string | undefined;
3103
3108
  }>;
3104
- export type Facility = z.infer<typeof Facility>;
3105
- declare const Office: z.ZodObject<z.objectUtil.extendShape<{
3109
+ export type AdministrativeArea = z.infer<typeof AdministrativeArea>;
3110
+ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
3106
3111
  id: z.ZodString;
3107
3112
  parent: z.ZodOptional<z.ZodObject<{
3108
3113
  $$field: z.ZodString;
@@ -3148,10 +3153,10 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
3148
3153
  }>>;
3149
3154
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3150
3155
  }, {
3151
- type: z.ZodLiteral<"OFFICE">;
3156
+ type: z.ZodLiteral<"LOCATION">;
3152
3157
  defaultValue: z.ZodOptional<z.ZodString>;
3153
3158
  }>, "strip", z.ZodTypeAny, {
3154
- type: "OFFICE";
3159
+ type: "LOCATION";
3155
3160
  id: string;
3156
3161
  label: TranslationConfig;
3157
3162
  parent?: {
@@ -3177,7 +3182,7 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
3177
3182
  hideLabel?: boolean | undefined;
3178
3183
  defaultValue?: string | undefined;
3179
3184
  }, {
3180
- type: "OFFICE";
3185
+ type: "LOCATION";
3181
3186
  id: string;
3182
3187
  label: {
3183
3188
  id: string;
@@ -3219,8 +3224,8 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
3219
3224
  hideLabel?: boolean | undefined;
3220
3225
  defaultValue?: string | undefined;
3221
3226
  }>;
3222
- export type Office = z.infer<typeof Office>;
3223
- declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3227
+ export type Location = z.infer<typeof Location>;
3228
+ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
3224
3229
  id: z.ZodString;
3225
3230
  parent: z.ZodOptional<z.ZodObject<{
3226
3231
  $$field: z.ZodString;
@@ -3266,98 +3271,63 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3266
3271
  }>>;
3267
3272
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3268
3273
  }, {
3269
- type: z.ZodLiteral<"ADDRESS">;
3270
- defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
3271
- country: z.ZodString;
3272
- addressType: z.ZodLiteral<"DOMESTIC">;
3273
- province: z.ZodString;
3274
- district: z.ZodString;
3275
- }, {
3276
- urbanOrRural: z.ZodLiteral<"URBAN">;
3277
- town: z.ZodOptional<z.ZodString>;
3278
- residentialArea: z.ZodOptional<z.ZodString>;
3279
- street: z.ZodOptional<z.ZodString>;
3280
- number: z.ZodOptional<z.ZodString>;
3281
- zipCode: z.ZodOptional<z.ZodString>;
3282
- }>, "strip", z.ZodTypeAny, {
3283
- country: string;
3284
- district: string;
3285
- addressType: "DOMESTIC";
3286
- province: string;
3287
- urbanOrRural: "URBAN";
3288
- number?: string | undefined;
3289
- town?: string | undefined;
3290
- residentialArea?: string | undefined;
3291
- street?: string | undefined;
3292
- zipCode?: string | undefined;
3293
- }, {
3294
- country: string;
3295
- district: string;
3296
- addressType: "DOMESTIC";
3297
- province: string;
3298
- urbanOrRural: "URBAN";
3299
- number?: string | undefined;
3300
- town?: string | undefined;
3301
- residentialArea?: string | undefined;
3302
- street?: string | undefined;
3303
- zipCode?: string | undefined;
3304
- }>, z.ZodObject<z.objectUtil.extendShape<{
3305
- country: z.ZodString;
3306
- addressType: z.ZodLiteral<"DOMESTIC">;
3307
- province: z.ZodString;
3308
- district: z.ZodString;
3274
+ type: z.ZodLiteral<"FILE_WITH_OPTIONS">;
3275
+ options: z.ZodArray<z.ZodObject<{
3276
+ value: z.ZodString;
3277
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3278
+ id: string;
3279
+ description: string;
3280
+ defaultMessage: string;
3281
+ }>;
3282
+ }, "strip", z.ZodTypeAny, {
3283
+ value: string;
3284
+ label: TranslationConfig;
3309
3285
  }, {
3310
- urbanOrRural: z.ZodLiteral<"RURAL">;
3311
- village: z.ZodOptional<z.ZodString>;
3312
- }>, "strip", z.ZodTypeAny, {
3313
- country: string;
3314
- district: string;
3315
- addressType: "DOMESTIC";
3316
- province: string;
3317
- urbanOrRural: "RURAL";
3318
- village?: string | undefined;
3286
+ value: string;
3287
+ label: {
3288
+ id: string;
3289
+ description: string;
3290
+ defaultMessage: string;
3291
+ };
3292
+ }>, "many">;
3293
+ defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
3294
+ filename: z.ZodString;
3295
+ originalFilename: z.ZodString;
3296
+ type: z.ZodString;
3297
+ option: z.ZodString;
3298
+ }, "strip", z.ZodTypeAny, {
3299
+ type: string;
3300
+ option: string;
3301
+ filename: string;
3302
+ originalFilename: string;
3319
3303
  }, {
3320
- country: string;
3321
- district: string;
3322
- addressType: "DOMESTIC";
3323
- province: string;
3324
- urbanOrRural: "RURAL";
3325
- village?: string | undefined;
3326
- }>]>, z.ZodObject<{
3327
- country: z.ZodString;
3328
- addressType: z.ZodLiteral<"INTERNATIONAL">;
3329
- state: z.ZodString;
3330
- district2: z.ZodString;
3331
- cityOrTown: z.ZodOptional<z.ZodString>;
3332
- addressLine1: z.ZodOptional<z.ZodString>;
3333
- addressLine2: z.ZodOptional<z.ZodString>;
3334
- addressLine3: z.ZodOptional<z.ZodString>;
3335
- postcodeOrZip: z.ZodOptional<z.ZodString>;
3304
+ type: string;
3305
+ option: string;
3306
+ filename: string;
3307
+ originalFilename: string;
3308
+ }>, "many">>;
3309
+ configuration: z.ZodDefault<z.ZodObject<{
3310
+ maxFileSize: z.ZodDefault<z.ZodNumber>;
3311
+ acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>, "many">>;
3336
3312
  }, "strip", z.ZodTypeAny, {
3337
- country: string;
3338
- state: string;
3339
- addressType: "INTERNATIONAL";
3340
- district2: string;
3341
- cityOrTown?: string | undefined;
3342
- addressLine1?: string | undefined;
3343
- addressLine2?: string | undefined;
3344
- addressLine3?: string | undefined;
3345
- postcodeOrZip?: string | undefined;
3313
+ maxFileSize: number;
3314
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
3346
3315
  }, {
3347
- country: string;
3348
- state: string;
3349
- addressType: "INTERNATIONAL";
3350
- district2: string;
3351
- cityOrTown?: string | undefined;
3352
- addressLine1?: string | undefined;
3353
- addressLine2?: string | undefined;
3354
- addressLine3?: string | undefined;
3355
- postcodeOrZip?: string | undefined;
3356
- }>]>>;
3316
+ maxFileSize?: number | undefined;
3317
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
3318
+ }>>;
3357
3319
  }>, "strip", z.ZodTypeAny, {
3358
- type: "ADDRESS";
3320
+ type: "FILE_WITH_OPTIONS";
3359
3321
  id: string;
3322
+ options: {
3323
+ value: string;
3324
+ label: TranslationConfig;
3325
+ }[];
3360
3326
  label: TranslationConfig;
3327
+ configuration: {
3328
+ maxFileSize: number;
3329
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
3330
+ };
3361
3331
  parent?: {
3362
3332
  $$field: string;
3363
3333
  } | undefined;
@@ -3380,37 +3350,22 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3380
3350
  helperText?: TranslationConfig | undefined;
3381
3351
  hideLabel?: boolean | undefined;
3382
3352
  defaultValue?: {
3383
- country: string;
3384
- district: string;
3385
- addressType: "DOMESTIC";
3386
- province: string;
3387
- urbanOrRural: "URBAN";
3388
- number?: string | undefined;
3389
- town?: string | undefined;
3390
- residentialArea?: string | undefined;
3391
- street?: string | undefined;
3392
- zipCode?: string | undefined;
3393
- } | {
3394
- country: string;
3395
- district: string;
3396
- addressType: "DOMESTIC";
3397
- province: string;
3398
- urbanOrRural: "RURAL";
3399
- village?: string | undefined;
3400
- } | {
3401
- country: string;
3402
- state: string;
3403
- addressType: "INTERNATIONAL";
3404
- district2: string;
3405
- cityOrTown?: string | undefined;
3406
- addressLine1?: string | undefined;
3407
- addressLine2?: string | undefined;
3408
- addressLine3?: string | undefined;
3409
- postcodeOrZip?: string | undefined;
3410
- } | undefined;
3353
+ type: string;
3354
+ option: string;
3355
+ filename: string;
3356
+ originalFilename: string;
3357
+ }[] | undefined;
3411
3358
  }, {
3412
- type: "ADDRESS";
3359
+ type: "FILE_WITH_OPTIONS";
3413
3360
  id: string;
3361
+ options: {
3362
+ value: string;
3363
+ label: {
3364
+ id: string;
3365
+ description: string;
3366
+ defaultMessage: string;
3367
+ };
3368
+ }[];
3414
3369
  label: {
3415
3370
  id: string;
3416
3371
  description: string;
@@ -3450,9 +3405,929 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3450
3405
  } | undefined;
3451
3406
  hideLabel?: boolean | undefined;
3452
3407
  defaultValue?: {
3453
- country: string;
3454
- district: string;
3455
- addressType: "DOMESTIC";
3408
+ type: string;
3409
+ option: string;
3410
+ filename: string;
3411
+ originalFilename: string;
3412
+ }[] | undefined;
3413
+ configuration?: {
3414
+ maxFileSize?: number | undefined;
3415
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
3416
+ } | undefined;
3417
+ }>;
3418
+ export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
3419
+ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
3420
+ id: z.ZodString;
3421
+ parent: z.ZodOptional<z.ZodObject<{
3422
+ $$field: z.ZodString;
3423
+ }, "strip", z.ZodTypeAny, {
3424
+ $$field: string;
3425
+ }, {
3426
+ $$field: string;
3427
+ }>>;
3428
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
3429
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3430
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3431
+ id: string;
3432
+ description: string;
3433
+ defaultMessage: string;
3434
+ }>>;
3435
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
3436
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
3437
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3438
+ id: string;
3439
+ description: string;
3440
+ defaultMessage: string;
3441
+ }>;
3442
+ }, "strip", z.ZodTypeAny, {
3443
+ message: TranslationConfig;
3444
+ validator: import(".").JSONSchema;
3445
+ }, {
3446
+ message: {
3447
+ id: string;
3448
+ description: string;
3449
+ defaultMessage: string;
3450
+ };
3451
+ validator: import(".").JSONSchema;
3452
+ }>, "many">>>;
3453
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3454
+ id: string;
3455
+ description: string;
3456
+ defaultMessage: string;
3457
+ }>;
3458
+ helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3459
+ id: string;
3460
+ description: string;
3461
+ defaultMessage: string;
3462
+ }>>;
3463
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3464
+ }, {
3465
+ type: z.ZodLiteral<"FACILITY">;
3466
+ defaultValue: z.ZodOptional<z.ZodString>;
3467
+ }>, "strip", z.ZodTypeAny, {
3468
+ type: "FACILITY";
3469
+ id: string;
3470
+ label: TranslationConfig;
3471
+ parent?: {
3472
+ $$field: string;
3473
+ } | undefined;
3474
+ validation?: {
3475
+ message: TranslationConfig;
3476
+ validator: import(".").JSONSchema;
3477
+ }[] | undefined;
3478
+ required?: boolean | undefined;
3479
+ conditionals?: ({
3480
+ type: "SHOW";
3481
+ conditional: import(".").JSONSchema;
3482
+ } | {
3483
+ type: "ENABLE";
3484
+ conditional: import(".").JSONSchema;
3485
+ } | {
3486
+ type: "DISPLAY_ON_REVIEW";
3487
+ conditional: import(".").JSONSchema;
3488
+ })[] | undefined;
3489
+ placeholder?: TranslationConfig | undefined;
3490
+ helperText?: TranslationConfig | undefined;
3491
+ hideLabel?: boolean | undefined;
3492
+ defaultValue?: string | undefined;
3493
+ }, {
3494
+ type: "FACILITY";
3495
+ id: string;
3496
+ label: {
3497
+ id: string;
3498
+ description: string;
3499
+ defaultMessage: string;
3500
+ };
3501
+ parent?: {
3502
+ $$field: string;
3503
+ } | undefined;
3504
+ validation?: {
3505
+ message: {
3506
+ id: string;
3507
+ description: string;
3508
+ defaultMessage: string;
3509
+ };
3510
+ validator: import(".").JSONSchema;
3511
+ }[] | undefined;
3512
+ required?: boolean | undefined;
3513
+ conditionals?: ({
3514
+ type: "SHOW";
3515
+ conditional: import(".").JSONSchema;
3516
+ } | {
3517
+ type: "ENABLE";
3518
+ conditional: import(".").JSONSchema;
3519
+ } | {
3520
+ type: "DISPLAY_ON_REVIEW";
3521
+ conditional: import(".").JSONSchema;
3522
+ })[] | undefined;
3523
+ placeholder?: {
3524
+ id: string;
3525
+ description: string;
3526
+ defaultMessage: string;
3527
+ } | undefined;
3528
+ helperText?: {
3529
+ id: string;
3530
+ description: string;
3531
+ defaultMessage: string;
3532
+ } | undefined;
3533
+ hideLabel?: boolean | undefined;
3534
+ defaultValue?: string | undefined;
3535
+ }>;
3536
+ export type Facility = z.infer<typeof Facility>;
3537
+ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
3538
+ id: z.ZodString;
3539
+ parent: z.ZodOptional<z.ZodObject<{
3540
+ $$field: z.ZodString;
3541
+ }, "strip", z.ZodTypeAny, {
3542
+ $$field: string;
3543
+ }, {
3544
+ $$field: string;
3545
+ }>>;
3546
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
3547
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3548
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3549
+ id: string;
3550
+ description: string;
3551
+ defaultMessage: string;
3552
+ }>>;
3553
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
3554
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
3555
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3556
+ id: string;
3557
+ description: string;
3558
+ defaultMessage: string;
3559
+ }>;
3560
+ }, "strip", z.ZodTypeAny, {
3561
+ message: TranslationConfig;
3562
+ validator: import(".").JSONSchema;
3563
+ }, {
3564
+ message: {
3565
+ id: string;
3566
+ description: string;
3567
+ defaultMessage: string;
3568
+ };
3569
+ validator: import(".").JSONSchema;
3570
+ }>, "many">>>;
3571
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3572
+ id: string;
3573
+ description: string;
3574
+ defaultMessage: string;
3575
+ }>;
3576
+ helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3577
+ id: string;
3578
+ description: string;
3579
+ defaultMessage: string;
3580
+ }>>;
3581
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3582
+ }, {
3583
+ type: z.ZodLiteral<"OFFICE">;
3584
+ defaultValue: z.ZodOptional<z.ZodString>;
3585
+ }>, "strip", z.ZodTypeAny, {
3586
+ type: "OFFICE";
3587
+ id: string;
3588
+ label: TranslationConfig;
3589
+ parent?: {
3590
+ $$field: string;
3591
+ } | undefined;
3592
+ validation?: {
3593
+ message: TranslationConfig;
3594
+ validator: import(".").JSONSchema;
3595
+ }[] | undefined;
3596
+ required?: boolean | undefined;
3597
+ conditionals?: ({
3598
+ type: "SHOW";
3599
+ conditional: import(".").JSONSchema;
3600
+ } | {
3601
+ type: "ENABLE";
3602
+ conditional: import(".").JSONSchema;
3603
+ } | {
3604
+ type: "DISPLAY_ON_REVIEW";
3605
+ conditional: import(".").JSONSchema;
3606
+ })[] | undefined;
3607
+ placeholder?: TranslationConfig | undefined;
3608
+ helperText?: TranslationConfig | undefined;
3609
+ hideLabel?: boolean | undefined;
3610
+ defaultValue?: string | undefined;
3611
+ }, {
3612
+ type: "OFFICE";
3613
+ id: string;
3614
+ label: {
3615
+ id: string;
3616
+ description: string;
3617
+ defaultMessage: string;
3618
+ };
3619
+ parent?: {
3620
+ $$field: string;
3621
+ } | undefined;
3622
+ validation?: {
3623
+ message: {
3624
+ id: string;
3625
+ description: string;
3626
+ defaultMessage: string;
3627
+ };
3628
+ validator: import(".").JSONSchema;
3629
+ }[] | undefined;
3630
+ required?: boolean | undefined;
3631
+ conditionals?: ({
3632
+ type: "SHOW";
3633
+ conditional: import(".").JSONSchema;
3634
+ } | {
3635
+ type: "ENABLE";
3636
+ conditional: import(".").JSONSchema;
3637
+ } | {
3638
+ type: "DISPLAY_ON_REVIEW";
3639
+ conditional: import(".").JSONSchema;
3640
+ })[] | undefined;
3641
+ placeholder?: {
3642
+ id: string;
3643
+ description: string;
3644
+ defaultMessage: string;
3645
+ } | undefined;
3646
+ helperText?: {
3647
+ id: string;
3648
+ description: string;
3649
+ defaultMessage: string;
3650
+ } | undefined;
3651
+ hideLabel?: boolean | undefined;
3652
+ defaultValue?: string | undefined;
3653
+ }>;
3654
+ export type Office = z.infer<typeof Office>;
3655
+ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3656
+ id: z.ZodString;
3657
+ parent: z.ZodOptional<z.ZodObject<{
3658
+ $$field: z.ZodString;
3659
+ }, "strip", z.ZodTypeAny, {
3660
+ $$field: string;
3661
+ }, {
3662
+ $$field: string;
3663
+ }>>;
3664
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
3665
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3666
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3667
+ id: string;
3668
+ description: string;
3669
+ defaultMessage: string;
3670
+ }>>;
3671
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
3672
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
3673
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3674
+ id: string;
3675
+ description: string;
3676
+ defaultMessage: string;
3677
+ }>;
3678
+ }, "strip", z.ZodTypeAny, {
3679
+ message: TranslationConfig;
3680
+ validator: import(".").JSONSchema;
3681
+ }, {
3682
+ message: {
3683
+ id: string;
3684
+ description: string;
3685
+ defaultMessage: string;
3686
+ };
3687
+ validator: import(".").JSONSchema;
3688
+ }>, "many">>>;
3689
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3690
+ id: string;
3691
+ description: string;
3692
+ defaultMessage: string;
3693
+ }>;
3694
+ helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3695
+ id: string;
3696
+ description: string;
3697
+ defaultMessage: string;
3698
+ }>>;
3699
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3700
+ }, {
3701
+ type: z.ZodLiteral<"ADDRESS">;
3702
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
3703
+ country: z.ZodString;
3704
+ addressType: z.ZodLiteral<"DOMESTIC">;
3705
+ province: z.ZodString;
3706
+ district: z.ZodString;
3707
+ }, {
3708
+ urbanOrRural: z.ZodLiteral<"URBAN">;
3709
+ town: z.ZodOptional<z.ZodString>;
3710
+ residentialArea: z.ZodOptional<z.ZodString>;
3711
+ street: z.ZodOptional<z.ZodString>;
3712
+ number: z.ZodOptional<z.ZodString>;
3713
+ zipCode: z.ZodOptional<z.ZodString>;
3714
+ }>, "strip", z.ZodTypeAny, {
3715
+ country: string;
3716
+ district: string;
3717
+ addressType: "DOMESTIC";
3718
+ province: string;
3719
+ urbanOrRural: "URBAN";
3720
+ number?: string | undefined;
3721
+ town?: string | undefined;
3722
+ residentialArea?: string | undefined;
3723
+ street?: string | undefined;
3724
+ zipCode?: string | undefined;
3725
+ }, {
3726
+ country: string;
3727
+ district: string;
3728
+ addressType: "DOMESTIC";
3729
+ province: string;
3730
+ urbanOrRural: "URBAN";
3731
+ number?: string | undefined;
3732
+ town?: string | undefined;
3733
+ residentialArea?: string | undefined;
3734
+ street?: string | undefined;
3735
+ zipCode?: string | undefined;
3736
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3737
+ country: z.ZodString;
3738
+ addressType: z.ZodLiteral<"DOMESTIC">;
3739
+ province: z.ZodString;
3740
+ district: z.ZodString;
3741
+ }, {
3742
+ urbanOrRural: z.ZodLiteral<"RURAL">;
3743
+ village: z.ZodOptional<z.ZodString>;
3744
+ }>, "strip", z.ZodTypeAny, {
3745
+ country: string;
3746
+ district: string;
3747
+ addressType: "DOMESTIC";
3748
+ province: string;
3749
+ urbanOrRural: "RURAL";
3750
+ village?: string | undefined;
3751
+ }, {
3752
+ country: string;
3753
+ district: string;
3754
+ addressType: "DOMESTIC";
3755
+ province: string;
3756
+ urbanOrRural: "RURAL";
3757
+ village?: string | undefined;
3758
+ }>]>, z.ZodObject<{
3759
+ country: z.ZodString;
3760
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
3761
+ state: z.ZodString;
3762
+ district2: z.ZodString;
3763
+ cityOrTown: z.ZodOptional<z.ZodString>;
3764
+ addressLine1: z.ZodOptional<z.ZodString>;
3765
+ addressLine2: z.ZodOptional<z.ZodString>;
3766
+ addressLine3: z.ZodOptional<z.ZodString>;
3767
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
3768
+ }, "strip", z.ZodTypeAny, {
3769
+ country: string;
3770
+ state: string;
3771
+ addressType: "INTERNATIONAL";
3772
+ district2: string;
3773
+ cityOrTown?: string | undefined;
3774
+ addressLine1?: string | undefined;
3775
+ addressLine2?: string | undefined;
3776
+ addressLine3?: string | undefined;
3777
+ postcodeOrZip?: string | undefined;
3778
+ }, {
3779
+ country: string;
3780
+ state: string;
3781
+ addressType: "INTERNATIONAL";
3782
+ district2: string;
3783
+ cityOrTown?: string | undefined;
3784
+ addressLine1?: string | undefined;
3785
+ addressLine2?: string | undefined;
3786
+ addressLine3?: string | undefined;
3787
+ postcodeOrZip?: string | undefined;
3788
+ }>]>>;
3789
+ }>, "strip", z.ZodTypeAny, {
3790
+ type: "ADDRESS";
3791
+ id: string;
3792
+ label: TranslationConfig;
3793
+ parent?: {
3794
+ $$field: string;
3795
+ } | undefined;
3796
+ validation?: {
3797
+ message: TranslationConfig;
3798
+ validator: import(".").JSONSchema;
3799
+ }[] | undefined;
3800
+ required?: boolean | undefined;
3801
+ conditionals?: ({
3802
+ type: "SHOW";
3803
+ conditional: import(".").JSONSchema;
3804
+ } | {
3805
+ type: "ENABLE";
3806
+ conditional: import(".").JSONSchema;
3807
+ } | {
3808
+ type: "DISPLAY_ON_REVIEW";
3809
+ conditional: import(".").JSONSchema;
3810
+ })[] | undefined;
3811
+ placeholder?: TranslationConfig | undefined;
3812
+ helperText?: TranslationConfig | undefined;
3813
+ hideLabel?: boolean | undefined;
3814
+ defaultValue?: {
3815
+ country: string;
3816
+ district: string;
3817
+ addressType: "DOMESTIC";
3818
+ province: string;
3819
+ urbanOrRural: "URBAN";
3820
+ number?: string | undefined;
3821
+ town?: string | undefined;
3822
+ residentialArea?: string | undefined;
3823
+ street?: string | undefined;
3824
+ zipCode?: string | undefined;
3825
+ } | {
3826
+ country: string;
3827
+ district: string;
3828
+ addressType: "DOMESTIC";
3829
+ province: string;
3830
+ urbanOrRural: "RURAL";
3831
+ village?: string | undefined;
3832
+ } | {
3833
+ country: string;
3834
+ state: string;
3835
+ addressType: "INTERNATIONAL";
3836
+ district2: string;
3837
+ cityOrTown?: string | undefined;
3838
+ addressLine1?: string | undefined;
3839
+ addressLine2?: string | undefined;
3840
+ addressLine3?: string | undefined;
3841
+ postcodeOrZip?: string | undefined;
3842
+ } | undefined;
3843
+ }, {
3844
+ type: "ADDRESS";
3845
+ id: string;
3846
+ label: {
3847
+ id: string;
3848
+ description: string;
3849
+ defaultMessage: string;
3850
+ };
3851
+ parent?: {
3852
+ $$field: string;
3853
+ } | undefined;
3854
+ validation?: {
3855
+ message: {
3856
+ id: string;
3857
+ description: string;
3858
+ defaultMessage: string;
3859
+ };
3860
+ validator: import(".").JSONSchema;
3861
+ }[] | undefined;
3862
+ required?: boolean | undefined;
3863
+ conditionals?: ({
3864
+ type: "SHOW";
3865
+ conditional: import(".").JSONSchema;
3866
+ } | {
3867
+ type: "ENABLE";
3868
+ conditional: import(".").JSONSchema;
3869
+ } | {
3870
+ type: "DISPLAY_ON_REVIEW";
3871
+ conditional: import(".").JSONSchema;
3872
+ })[] | undefined;
3873
+ placeholder?: {
3874
+ id: string;
3875
+ description: string;
3876
+ defaultMessage: string;
3877
+ } | undefined;
3878
+ helperText?: {
3879
+ id: string;
3880
+ description: string;
3881
+ defaultMessage: string;
3882
+ } | undefined;
3883
+ hideLabel?: boolean | undefined;
3884
+ defaultValue?: {
3885
+ country: string;
3886
+ district: string;
3887
+ addressType: "DOMESTIC";
3888
+ province: string;
3889
+ urbanOrRural: "URBAN";
3890
+ number?: string | undefined;
3891
+ town?: string | undefined;
3892
+ residentialArea?: string | undefined;
3893
+ street?: string | undefined;
3894
+ zipCode?: string | undefined;
3895
+ } | {
3896
+ country: string;
3897
+ district: string;
3898
+ addressType: "DOMESTIC";
3899
+ province: string;
3900
+ urbanOrRural: "RURAL";
3901
+ village?: string | undefined;
3902
+ } | {
3903
+ country: string;
3904
+ state: string;
3905
+ addressType: "INTERNATIONAL";
3906
+ district2: string;
3907
+ cityOrTown?: string | undefined;
3908
+ addressLine1?: string | undefined;
3909
+ addressLine2?: string | undefined;
3910
+ addressLine3?: string | undefined;
3911
+ postcodeOrZip?: string | undefined;
3912
+ } | undefined;
3913
+ }>;
3914
+ export declare const DataEntry: z.ZodUnion<[z.ZodObject<{
3915
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3916
+ id: string;
3917
+ description: string;
3918
+ defaultMessage: string;
3919
+ }>;
3920
+ value: z.ZodUnion<[z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3921
+ id: string;
3922
+ description: string;
3923
+ defaultMessage: string;
3924
+ }>, z.ZodString]>;
3925
+ }, "strip", z.ZodTypeAny, {
3926
+ value: string | TranslationConfig;
3927
+ label: TranslationConfig;
3928
+ }, {
3929
+ value: string | {
3930
+ id: string;
3931
+ description: string;
3932
+ defaultMessage: string;
3933
+ };
3934
+ label: {
3935
+ id: string;
3936
+ description: string;
3937
+ defaultMessage: string;
3938
+ };
3939
+ }>, z.ZodObject<{
3940
+ fieldId: z.ZodString;
3941
+ }, "strip", z.ZodTypeAny, {
3942
+ fieldId: string;
3943
+ }, {
3944
+ fieldId: string;
3945
+ }>]>;
3946
+ export type DataEntry = z.infer<typeof DataEntry>;
3947
+ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3948
+ id: z.ZodString;
3949
+ parent: z.ZodOptional<z.ZodObject<{
3950
+ $$field: z.ZodString;
3951
+ }, "strip", z.ZodTypeAny, {
3952
+ $$field: string;
3953
+ }, {
3954
+ $$field: string;
3955
+ }>>;
3956
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
3957
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3958
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3959
+ id: string;
3960
+ description: string;
3961
+ defaultMessage: string;
3962
+ }>>;
3963
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
3964
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
3965
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3966
+ id: string;
3967
+ description: string;
3968
+ defaultMessage: string;
3969
+ }>;
3970
+ }, "strip", z.ZodTypeAny, {
3971
+ message: TranslationConfig;
3972
+ validator: import(".").JSONSchema;
3973
+ }, {
3974
+ message: {
3975
+ id: string;
3976
+ description: string;
3977
+ defaultMessage: string;
3978
+ };
3979
+ validator: import(".").JSONSchema;
3980
+ }>, "many">>>;
3981
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3982
+ id: string;
3983
+ description: string;
3984
+ defaultMessage: string;
3985
+ }>;
3986
+ helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3987
+ id: string;
3988
+ description: string;
3989
+ defaultMessage: string;
3990
+ }>>;
3991
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3992
+ }, {
3993
+ type: z.ZodLiteral<"DATA">;
3994
+ configuration: z.ZodObject<{
3995
+ subtitle: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3996
+ id: string;
3997
+ description: string;
3998
+ defaultMessage: string;
3999
+ }>>;
4000
+ data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
4001
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4002
+ id: string;
4003
+ description: string;
4004
+ defaultMessage: string;
4005
+ }>;
4006
+ value: z.ZodUnion<[z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4007
+ id: string;
4008
+ description: string;
4009
+ defaultMessage: string;
4010
+ }>, z.ZodString]>;
4011
+ }, "strip", z.ZodTypeAny, {
4012
+ value: string | TranslationConfig;
4013
+ label: TranslationConfig;
4014
+ }, {
4015
+ value: string | {
4016
+ id: string;
4017
+ description: string;
4018
+ defaultMessage: string;
4019
+ };
4020
+ label: {
4021
+ id: string;
4022
+ description: string;
4023
+ defaultMessage: string;
4024
+ };
4025
+ }>, z.ZodObject<{
4026
+ fieldId: z.ZodString;
4027
+ }, "strip", z.ZodTypeAny, {
4028
+ fieldId: string;
4029
+ }, {
4030
+ fieldId: string;
4031
+ }>]>, "many">;
4032
+ }, "strip", z.ZodTypeAny, {
4033
+ data: ({
4034
+ value: string | TranslationConfig;
4035
+ label: TranslationConfig;
4036
+ } | {
4037
+ fieldId: string;
4038
+ })[];
4039
+ subtitle?: TranslationConfig | undefined;
4040
+ }, {
4041
+ data: ({
4042
+ value: string | {
4043
+ id: string;
4044
+ description: string;
4045
+ defaultMessage: string;
4046
+ };
4047
+ label: {
4048
+ id: string;
4049
+ description: string;
4050
+ defaultMessage: string;
4051
+ };
4052
+ } | {
4053
+ fieldId: string;
4054
+ })[];
4055
+ subtitle?: {
4056
+ id: string;
4057
+ description: string;
4058
+ defaultMessage: string;
4059
+ } | undefined;
4060
+ }>;
4061
+ }>, "strip", z.ZodTypeAny, {
4062
+ type: "DATA";
4063
+ id: string;
4064
+ label: TranslationConfig;
4065
+ configuration: {
4066
+ data: ({
4067
+ value: string | TranslationConfig;
4068
+ label: TranslationConfig;
4069
+ } | {
4070
+ fieldId: string;
4071
+ })[];
4072
+ subtitle?: TranslationConfig | undefined;
4073
+ };
4074
+ parent?: {
4075
+ $$field: string;
4076
+ } | undefined;
4077
+ validation?: {
4078
+ message: TranslationConfig;
4079
+ validator: import(".").JSONSchema;
4080
+ }[] | undefined;
4081
+ required?: boolean | undefined;
4082
+ conditionals?: ({
4083
+ type: "SHOW";
4084
+ conditional: import(".").JSONSchema;
4085
+ } | {
4086
+ type: "ENABLE";
4087
+ conditional: import(".").JSONSchema;
4088
+ } | {
4089
+ type: "DISPLAY_ON_REVIEW";
4090
+ conditional: import(".").JSONSchema;
4091
+ })[] | undefined;
4092
+ placeholder?: TranslationConfig | undefined;
4093
+ helperText?: TranslationConfig | undefined;
4094
+ hideLabel?: boolean | undefined;
4095
+ }, {
4096
+ type: "DATA";
4097
+ id: string;
4098
+ label: {
4099
+ id: string;
4100
+ description: string;
4101
+ defaultMessage: string;
4102
+ };
4103
+ configuration: {
4104
+ data: ({
4105
+ value: string | {
4106
+ id: string;
4107
+ description: string;
4108
+ defaultMessage: string;
4109
+ };
4110
+ label: {
4111
+ id: string;
4112
+ description: string;
4113
+ defaultMessage: string;
4114
+ };
4115
+ } | {
4116
+ fieldId: string;
4117
+ })[];
4118
+ subtitle?: {
4119
+ id: string;
4120
+ description: string;
4121
+ defaultMessage: string;
4122
+ } | undefined;
4123
+ };
4124
+ parent?: {
4125
+ $$field: string;
4126
+ } | undefined;
4127
+ validation?: {
4128
+ message: {
4129
+ id: string;
4130
+ description: string;
4131
+ defaultMessage: string;
4132
+ };
4133
+ validator: import(".").JSONSchema;
4134
+ }[] | undefined;
4135
+ required?: boolean | undefined;
4136
+ conditionals?: ({
4137
+ type: "SHOW";
4138
+ conditional: import(".").JSONSchema;
4139
+ } | {
4140
+ type: "ENABLE";
4141
+ conditional: import(".").JSONSchema;
4142
+ } | {
4143
+ type: "DISPLAY_ON_REVIEW";
4144
+ conditional: import(".").JSONSchema;
4145
+ })[] | undefined;
4146
+ placeholder?: {
4147
+ id: string;
4148
+ description: string;
4149
+ defaultMessage: string;
4150
+ } | undefined;
4151
+ helperText?: {
4152
+ id: string;
4153
+ description: string;
4154
+ defaultMessage: string;
4155
+ } | undefined;
4156
+ hideLabel?: boolean | undefined;
4157
+ }>;
4158
+ export type DataField = z.infer<typeof DataField>;
4159
+ /** @knipignore */
4160
+ export type AllFields = typeof Address | typeof TextField | typeof NumberField | typeof TextAreaField | typeof DateField | typeof DateRangeField | typeof Paragraph | typeof RadioGroup | typeof BulletList | typeof PageHeader | typeof Select | typeof NameField | typeof PhoneField | typeof IdField | typeof Checkbox | typeof File | typeof Country | typeof AdministrativeArea | typeof Divider | typeof Location | typeof Facility | typeof Office | typeof SignatureField | typeof EmailField | typeof FileUploadWithOptions | typeof DataField;
4161
+ /** @knipignore */
4162
+ 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 DateRangeField> | z.infer<typeof Paragraph> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof NameField> | z.infer<typeof PhoneField> | z.infer<typeof IdField> | 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>;
4163
+ /** @knipignore */
4164
+ /**
4165
+ * This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
4166
+ */
4167
+ 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 DateRangeField> | z.input<typeof Paragraph> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof NameField> | z.input<typeof PhoneField> | z.input<typeof IdField> | 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>;
4168
+ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
4169
+ id: z.ZodString;
4170
+ parent: z.ZodOptional<z.ZodObject<{
4171
+ $$field: z.ZodString;
4172
+ }, "strip", z.ZodTypeAny, {
4173
+ $$field: string;
4174
+ }, {
4175
+ $$field: string;
4176
+ }>>;
4177
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
4178
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4179
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4180
+ id: string;
4181
+ description: string;
4182
+ defaultMessage: string;
4183
+ }>>;
4184
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
4185
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
4186
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4187
+ id: string;
4188
+ description: string;
4189
+ defaultMessage: string;
4190
+ }>;
4191
+ }, "strip", z.ZodTypeAny, {
4192
+ message: TranslationConfig;
4193
+ validator: import(".").JSONSchema;
4194
+ }, {
4195
+ message: {
4196
+ id: string;
4197
+ description: string;
4198
+ defaultMessage: string;
4199
+ };
4200
+ validator: import(".").JSONSchema;
4201
+ }>, "many">>>;
4202
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4203
+ id: string;
4204
+ description: string;
4205
+ defaultMessage: string;
4206
+ }>;
4207
+ helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4208
+ id: string;
4209
+ description: string;
4210
+ defaultMessage: string;
4211
+ }>>;
4212
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4213
+ }, {
4214
+ type: z.ZodLiteral<"ADDRESS">;
4215
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
4216
+ country: z.ZodString;
4217
+ addressType: z.ZodLiteral<"DOMESTIC">;
4218
+ province: z.ZodString;
4219
+ district: z.ZodString;
4220
+ }, {
4221
+ urbanOrRural: z.ZodLiteral<"URBAN">;
4222
+ town: z.ZodOptional<z.ZodString>;
4223
+ residentialArea: z.ZodOptional<z.ZodString>;
4224
+ street: z.ZodOptional<z.ZodString>;
4225
+ number: z.ZodOptional<z.ZodString>;
4226
+ zipCode: z.ZodOptional<z.ZodString>;
4227
+ }>, "strip", z.ZodTypeAny, {
4228
+ country: string;
4229
+ district: string;
4230
+ addressType: "DOMESTIC";
4231
+ province: string;
4232
+ urbanOrRural: "URBAN";
4233
+ number?: string | undefined;
4234
+ town?: string | undefined;
4235
+ residentialArea?: string | undefined;
4236
+ street?: string | undefined;
4237
+ zipCode?: string | undefined;
4238
+ }, {
4239
+ country: string;
4240
+ district: string;
4241
+ addressType: "DOMESTIC";
4242
+ province: string;
4243
+ urbanOrRural: "URBAN";
4244
+ number?: string | undefined;
4245
+ town?: string | undefined;
4246
+ residentialArea?: string | undefined;
4247
+ street?: string | undefined;
4248
+ zipCode?: string | undefined;
4249
+ }>, z.ZodObject<z.objectUtil.extendShape<{
4250
+ country: z.ZodString;
4251
+ addressType: z.ZodLiteral<"DOMESTIC">;
4252
+ province: z.ZodString;
4253
+ district: z.ZodString;
4254
+ }, {
4255
+ urbanOrRural: z.ZodLiteral<"RURAL">;
4256
+ village: z.ZodOptional<z.ZodString>;
4257
+ }>, "strip", z.ZodTypeAny, {
4258
+ country: string;
4259
+ district: string;
4260
+ addressType: "DOMESTIC";
4261
+ province: string;
4262
+ urbanOrRural: "RURAL";
4263
+ village?: string | undefined;
4264
+ }, {
4265
+ country: string;
4266
+ district: string;
4267
+ addressType: "DOMESTIC";
4268
+ province: string;
4269
+ urbanOrRural: "RURAL";
4270
+ village?: string | undefined;
4271
+ }>]>, z.ZodObject<{
4272
+ country: z.ZodString;
4273
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
4274
+ state: z.ZodString;
4275
+ district2: z.ZodString;
4276
+ cityOrTown: z.ZodOptional<z.ZodString>;
4277
+ addressLine1: z.ZodOptional<z.ZodString>;
4278
+ addressLine2: z.ZodOptional<z.ZodString>;
4279
+ addressLine3: z.ZodOptional<z.ZodString>;
4280
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
4281
+ }, "strip", z.ZodTypeAny, {
4282
+ country: string;
4283
+ state: string;
4284
+ addressType: "INTERNATIONAL";
4285
+ district2: string;
4286
+ cityOrTown?: string | undefined;
4287
+ addressLine1?: string | undefined;
4288
+ addressLine2?: string | undefined;
4289
+ addressLine3?: string | undefined;
4290
+ postcodeOrZip?: string | undefined;
4291
+ }, {
4292
+ country: string;
4293
+ state: string;
4294
+ addressType: "INTERNATIONAL";
4295
+ district2: string;
4296
+ cityOrTown?: string | undefined;
4297
+ addressLine1?: string | undefined;
4298
+ addressLine2?: string | undefined;
4299
+ addressLine3?: string | undefined;
4300
+ postcodeOrZip?: string | undefined;
4301
+ }>]>>;
4302
+ }>, "strip", z.ZodTypeAny, {
4303
+ type: "ADDRESS";
4304
+ id: string;
4305
+ label: TranslationConfig;
4306
+ parent?: {
4307
+ $$field: string;
4308
+ } | undefined;
4309
+ validation?: {
4310
+ message: TranslationConfig;
4311
+ validator: import(".").JSONSchema;
4312
+ }[] | undefined;
4313
+ required?: boolean | undefined;
4314
+ conditionals?: ({
4315
+ type: "SHOW";
4316
+ conditional: import(".").JSONSchema;
4317
+ } | {
4318
+ type: "ENABLE";
4319
+ conditional: import(".").JSONSchema;
4320
+ } | {
4321
+ type: "DISPLAY_ON_REVIEW";
4322
+ conditional: import(".").JSONSchema;
4323
+ })[] | undefined;
4324
+ placeholder?: TranslationConfig | undefined;
4325
+ helperText?: TranslationConfig | undefined;
4326
+ hideLabel?: boolean | undefined;
4327
+ defaultValue?: {
4328
+ country: string;
4329
+ district: string;
4330
+ addressType: "DOMESTIC";
3456
4331
  province: string;
3457
4332
  urbanOrRural: "URBAN";
3458
4333
  number?: string | undefined;
@@ -3478,41 +4353,245 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3478
4353
  addressLine3?: string | undefined;
3479
4354
  postcodeOrZip?: string | undefined;
3480
4355
  } | undefined;
3481
- }>;
3482
- export declare const DataEntry: z.ZodUnion<[z.ZodObject<{
4356
+ }, {
4357
+ type: "ADDRESS";
4358
+ id: string;
4359
+ label: {
4360
+ id: string;
4361
+ description: string;
4362
+ defaultMessage: string;
4363
+ };
4364
+ parent?: {
4365
+ $$field: string;
4366
+ } | undefined;
4367
+ validation?: {
4368
+ message: {
4369
+ id: string;
4370
+ description: string;
4371
+ defaultMessage: string;
4372
+ };
4373
+ validator: import(".").JSONSchema;
4374
+ }[] | undefined;
4375
+ required?: boolean | undefined;
4376
+ conditionals?: ({
4377
+ type: "SHOW";
4378
+ conditional: import(".").JSONSchema;
4379
+ } | {
4380
+ type: "ENABLE";
4381
+ conditional: import(".").JSONSchema;
4382
+ } | {
4383
+ type: "DISPLAY_ON_REVIEW";
4384
+ conditional: import(".").JSONSchema;
4385
+ })[] | undefined;
4386
+ placeholder?: {
4387
+ id: string;
4388
+ description: string;
4389
+ defaultMessage: string;
4390
+ } | undefined;
4391
+ helperText?: {
4392
+ id: string;
4393
+ description: string;
4394
+ defaultMessage: string;
4395
+ } | undefined;
4396
+ hideLabel?: boolean | undefined;
4397
+ defaultValue?: {
4398
+ country: string;
4399
+ district: string;
4400
+ addressType: "DOMESTIC";
4401
+ province: string;
4402
+ urbanOrRural: "URBAN";
4403
+ number?: string | undefined;
4404
+ town?: string | undefined;
4405
+ residentialArea?: string | undefined;
4406
+ street?: string | undefined;
4407
+ zipCode?: string | undefined;
4408
+ } | {
4409
+ country: string;
4410
+ district: string;
4411
+ addressType: "DOMESTIC";
4412
+ province: string;
4413
+ urbanOrRural: "RURAL";
4414
+ village?: string | undefined;
4415
+ } | {
4416
+ country: string;
4417
+ state: string;
4418
+ addressType: "INTERNATIONAL";
4419
+ district2: string;
4420
+ cityOrTown?: string | undefined;
4421
+ addressLine1?: string | undefined;
4422
+ addressLine2?: string | undefined;
4423
+ addressLine3?: string | undefined;
4424
+ postcodeOrZip?: string | undefined;
4425
+ } | undefined;
4426
+ }>, z.ZodObject<z.objectUtil.extendShape<{
4427
+ id: z.ZodString;
4428
+ parent: z.ZodOptional<z.ZodObject<{
4429
+ $$field: z.ZodString;
4430
+ }, "strip", z.ZodTypeAny, {
4431
+ $$field: string;
4432
+ }, {
4433
+ $$field: string;
4434
+ }>>;
4435
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
4436
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4437
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4438
+ id: string;
4439
+ description: string;
4440
+ defaultMessage: string;
4441
+ }>>;
4442
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
4443
+ validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
4444
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4445
+ id: string;
4446
+ description: string;
4447
+ defaultMessage: string;
4448
+ }>;
4449
+ }, "strip", z.ZodTypeAny, {
4450
+ message: TranslationConfig;
4451
+ validator: import(".").JSONSchema;
4452
+ }, {
4453
+ message: {
4454
+ id: string;
4455
+ description: string;
4456
+ defaultMessage: string;
4457
+ };
4458
+ validator: import(".").JSONSchema;
4459
+ }>, "many">>>;
3483
4460
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3484
4461
  id: string;
3485
4462
  description: string;
3486
4463
  defaultMessage: string;
3487
4464
  }>;
3488
- value: z.ZodUnion<[z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4465
+ helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3489
4466
  id: string;
3490
4467
  description: string;
3491
4468
  defaultMessage: string;
3492
- }>, z.ZodString]>;
3493
- }, "strip", z.ZodTypeAny, {
3494
- value: string | TranslationConfig;
4469
+ }>>;
4470
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4471
+ }, {
4472
+ type: z.ZodLiteral<"TEXT">;
4473
+ defaultValue: z.ZodOptional<z.ZodString>;
4474
+ configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
4475
+ maxLength: z.ZodOptional<z.ZodNumber>;
4476
+ type: z.ZodOptional<z.ZodEnum<["text", "password"]>>;
4477
+ prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4478
+ id: string;
4479
+ description: string;
4480
+ defaultMessage: string;
4481
+ }>>;
4482
+ postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4483
+ id: string;
4484
+ description: string;
4485
+ defaultMessage: string;
4486
+ }>>;
4487
+ }, "strip", z.ZodTypeAny, {
4488
+ type?: "text" | "password" | undefined;
4489
+ maxLength?: number | undefined;
4490
+ prefix?: TranslationConfig | undefined;
4491
+ postfix?: TranslationConfig | undefined;
4492
+ }, {
4493
+ type?: "text" | "password" | undefined;
4494
+ maxLength?: number | undefined;
4495
+ prefix?: {
4496
+ id: string;
4497
+ description: string;
4498
+ defaultMessage: string;
4499
+ } | undefined;
4500
+ postfix?: {
4501
+ id: string;
4502
+ description: string;
4503
+ defaultMessage: string;
4504
+ } | undefined;
4505
+ }>>>;
4506
+ }>, "strip", z.ZodTypeAny, {
4507
+ type: "TEXT";
4508
+ id: string;
3495
4509
  label: TranslationConfig;
4510
+ parent?: {
4511
+ $$field: string;
4512
+ } | undefined;
4513
+ validation?: {
4514
+ message: TranslationConfig;
4515
+ validator: import(".").JSONSchema;
4516
+ }[] | undefined;
4517
+ required?: boolean | undefined;
4518
+ conditionals?: ({
4519
+ type: "SHOW";
4520
+ conditional: import(".").JSONSchema;
4521
+ } | {
4522
+ type: "ENABLE";
4523
+ conditional: import(".").JSONSchema;
4524
+ } | {
4525
+ type: "DISPLAY_ON_REVIEW";
4526
+ conditional: import(".").JSONSchema;
4527
+ })[] | undefined;
4528
+ placeholder?: TranslationConfig | undefined;
4529
+ helperText?: TranslationConfig | undefined;
4530
+ hideLabel?: boolean | undefined;
4531
+ defaultValue?: string | undefined;
4532
+ configuration?: {
4533
+ type?: "text" | "password" | undefined;
4534
+ maxLength?: number | undefined;
4535
+ prefix?: TranslationConfig | undefined;
4536
+ postfix?: TranslationConfig | undefined;
4537
+ } | undefined;
3496
4538
  }, {
3497
- value: string | {
4539
+ type: "TEXT";
4540
+ id: string;
4541
+ label: {
3498
4542
  id: string;
3499
4543
  description: string;
3500
4544
  defaultMessage: string;
3501
4545
  };
3502
- label: {
4546
+ parent?: {
4547
+ $$field: string;
4548
+ } | undefined;
4549
+ validation?: {
4550
+ message: {
4551
+ id: string;
4552
+ description: string;
4553
+ defaultMessage: string;
4554
+ };
4555
+ validator: import(".").JSONSchema;
4556
+ }[] | undefined;
4557
+ required?: boolean | undefined;
4558
+ conditionals?: ({
4559
+ type: "SHOW";
4560
+ conditional: import(".").JSONSchema;
4561
+ } | {
4562
+ type: "ENABLE";
4563
+ conditional: import(".").JSONSchema;
4564
+ } | {
4565
+ type: "DISPLAY_ON_REVIEW";
4566
+ conditional: import(".").JSONSchema;
4567
+ })[] | undefined;
4568
+ placeholder?: {
3503
4569
  id: string;
3504
4570
  description: string;
3505
4571
  defaultMessage: string;
3506
- };
3507
- }>, z.ZodObject<{
3508
- fieldId: z.ZodString;
3509
- }, "strip", z.ZodTypeAny, {
3510
- fieldId: string;
3511
- }, {
3512
- fieldId: string;
3513
- }>]>;
3514
- export type DataEntry = z.infer<typeof DataEntry>;
3515
- declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
4572
+ } | undefined;
4573
+ helperText?: {
4574
+ id: string;
4575
+ description: string;
4576
+ defaultMessage: string;
4577
+ } | undefined;
4578
+ hideLabel?: boolean | undefined;
4579
+ defaultValue?: string | undefined;
4580
+ configuration?: {
4581
+ type?: "text" | "password" | undefined;
4582
+ maxLength?: number | undefined;
4583
+ prefix?: {
4584
+ id: string;
4585
+ description: string;
4586
+ defaultMessage: string;
4587
+ } | undefined;
4588
+ postfix?: {
4589
+ id: string;
4590
+ description: string;
4591
+ defaultMessage: string;
4592
+ } | undefined;
4593
+ } | undefined;
4594
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3516
4595
  id: z.ZodString;
3517
4596
  parent: z.ZodOptional<z.ZodObject<{
3518
4597
  $$field: z.ZodString;
@@ -3558,87 +4637,44 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3558
4637
  }>>;
3559
4638
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3560
4639
  }, {
3561
- type: z.ZodLiteral<"DATA">;
3562
- configuration: z.ZodObject<{
3563
- subtitle: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4640
+ type: z.ZodLiteral<"NUMBER">;
4641
+ defaultValue: z.ZodOptional<z.ZodNumber>;
4642
+ configuration: z.ZodOptional<z.ZodObject<{
4643
+ min: z.ZodOptional<z.ZodNumber>;
4644
+ max: z.ZodOptional<z.ZodNumber>;
4645
+ prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4646
+ id: string;
4647
+ description: string;
4648
+ defaultMessage: string;
4649
+ }>>;
4650
+ postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3564
4651
  id: string;
3565
4652
  description: string;
3566
4653
  defaultMessage: string;
3567
4654
  }>>;
3568
- data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
3569
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3570
- id: string;
3571
- description: string;
3572
- defaultMessage: string;
3573
- }>;
3574
- value: z.ZodUnion<[z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3575
- id: string;
3576
- description: string;
3577
- defaultMessage: string;
3578
- }>, z.ZodString]>;
3579
- }, "strip", z.ZodTypeAny, {
3580
- value: string | TranslationConfig;
3581
- label: TranslationConfig;
3582
- }, {
3583
- value: string | {
3584
- id: string;
3585
- description: string;
3586
- defaultMessage: string;
3587
- };
3588
- label: {
3589
- id: string;
3590
- description: string;
3591
- defaultMessage: string;
3592
- };
3593
- }>, z.ZodObject<{
3594
- fieldId: z.ZodString;
3595
- }, "strip", z.ZodTypeAny, {
3596
- fieldId: string;
3597
- }, {
3598
- fieldId: string;
3599
- }>]>, "many">;
3600
4655
  }, "strip", z.ZodTypeAny, {
3601
- data: ({
3602
- value: string | TranslationConfig;
3603
- label: TranslationConfig;
3604
- } | {
3605
- fieldId: string;
3606
- })[];
3607
- subtitle?: TranslationConfig | undefined;
4656
+ prefix?: TranslationConfig | undefined;
4657
+ postfix?: TranslationConfig | undefined;
4658
+ min?: number | undefined;
4659
+ max?: number | undefined;
3608
4660
  }, {
3609
- data: ({
3610
- value: string | {
3611
- id: string;
3612
- description: string;
3613
- defaultMessage: string;
3614
- };
3615
- label: {
3616
- id: string;
3617
- description: string;
3618
- defaultMessage: string;
3619
- };
3620
- } | {
3621
- fieldId: string;
3622
- })[];
3623
- subtitle?: {
4661
+ prefix?: {
3624
4662
  id: string;
3625
4663
  description: string;
3626
4664
  defaultMessage: string;
3627
4665
  } | undefined;
3628
- }>;
3629
- }>, "strip", z.ZodTypeAny, {
3630
- type: "DATA";
3631
- id: string;
3632
- label: TranslationConfig;
3633
- configuration: {
3634
- data: ({
3635
- value: string | TranslationConfig;
3636
- label: TranslationConfig;
3637
- } | {
3638
- fieldId: string;
3639
- })[];
3640
- subtitle?: TranslationConfig | undefined;
3641
- };
4666
+ postfix?: {
4667
+ id: string;
4668
+ description: string;
4669
+ defaultMessage: string;
4670
+ } | undefined;
4671
+ min?: number | undefined;
4672
+ max?: number | undefined;
4673
+ }>>;
4674
+ }>, "strip", z.ZodTypeAny, {
4675
+ type: "NUMBER";
4676
+ id: string;
4677
+ label: TranslationConfig;
3642
4678
  parent?: {
3643
4679
  $$field: string;
3644
4680
  } | undefined;
@@ -3660,35 +4696,21 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3660
4696
  placeholder?: TranslationConfig | undefined;
3661
4697
  helperText?: TranslationConfig | undefined;
3662
4698
  hideLabel?: boolean | undefined;
4699
+ defaultValue?: number | undefined;
4700
+ configuration?: {
4701
+ prefix?: TranslationConfig | undefined;
4702
+ postfix?: TranslationConfig | undefined;
4703
+ min?: number | undefined;
4704
+ max?: number | undefined;
4705
+ } | undefined;
3663
4706
  }, {
3664
- type: "DATA";
4707
+ type: "NUMBER";
3665
4708
  id: string;
3666
4709
  label: {
3667
4710
  id: string;
3668
4711
  description: string;
3669
4712
  defaultMessage: string;
3670
4713
  };
3671
- configuration: {
3672
- data: ({
3673
- value: string | {
3674
- id: string;
3675
- description: string;
3676
- defaultMessage: string;
3677
- };
3678
- label: {
3679
- id: string;
3680
- description: string;
3681
- defaultMessage: string;
3682
- };
3683
- } | {
3684
- fieldId: string;
3685
- })[];
3686
- subtitle?: {
3687
- id: string;
3688
- description: string;
3689
- defaultMessage: string;
3690
- } | undefined;
3691
- };
3692
4714
  parent?: {
3693
4715
  $$field: string;
3694
4716
  } | undefined;
@@ -3722,18 +4744,22 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3722
4744
  defaultMessage: string;
3723
4745
  } | undefined;
3724
4746
  hideLabel?: boolean | undefined;
3725
- }>;
3726
- export type DataField = z.infer<typeof DataField>;
3727
- /** @knipignore */
3728
- export type AllFields = typeof Address | typeof TextField | typeof NumberField | typeof TextAreaField | typeof DateField | typeof DateRangeField | 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;
3729
- /** @knipignore */
3730
- 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 DateRangeField> | 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>;
3731
- /** @knipignore */
3732
- /**
3733
- * This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
3734
- */
3735
- 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 DateRangeField> | 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>;
3736
- export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
4747
+ defaultValue?: number | undefined;
4748
+ configuration?: {
4749
+ prefix?: {
4750
+ id: string;
4751
+ description: string;
4752
+ defaultMessage: string;
4753
+ } | undefined;
4754
+ postfix?: {
4755
+ id: string;
4756
+ description: string;
4757
+ defaultMessage: string;
4758
+ } | undefined;
4759
+ min?: number | undefined;
4760
+ max?: number | undefined;
4761
+ } | undefined;
4762
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3737
4763
  id: z.ZodString;
3738
4764
  parent: z.ZodOptional<z.ZodObject<{
3739
4765
  $$field: z.ZodString;
@@ -3779,96 +4805,45 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
3779
4805
  }>>;
3780
4806
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3781
4807
  }, {
3782
- type: z.ZodLiteral<"ADDRESS">;
3783
- defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
3784
- country: z.ZodString;
3785
- addressType: z.ZodLiteral<"DOMESTIC">;
3786
- province: z.ZodString;
3787
- district: z.ZodString;
3788
- }, {
3789
- urbanOrRural: z.ZodLiteral<"URBAN">;
3790
- town: z.ZodOptional<z.ZodString>;
3791
- residentialArea: z.ZodOptional<z.ZodString>;
3792
- street: z.ZodOptional<z.ZodString>;
3793
- number: z.ZodOptional<z.ZodString>;
3794
- zipCode: z.ZodOptional<z.ZodString>;
3795
- }>, "strip", z.ZodTypeAny, {
3796
- country: string;
3797
- district: string;
3798
- addressType: "DOMESTIC";
3799
- province: string;
3800
- urbanOrRural: "URBAN";
3801
- number?: string | undefined;
3802
- town?: string | undefined;
3803
- residentialArea?: string | undefined;
3804
- street?: string | undefined;
3805
- zipCode?: string | undefined;
3806
- }, {
3807
- country: string;
3808
- district: string;
3809
- addressType: "DOMESTIC";
3810
- province: string;
3811
- urbanOrRural: "URBAN";
3812
- number?: string | undefined;
3813
- town?: string | undefined;
3814
- residentialArea?: string | undefined;
3815
- street?: string | undefined;
3816
- zipCode?: string | undefined;
3817
- }>, z.ZodObject<z.objectUtil.extendShape<{
3818
- country: z.ZodString;
3819
- addressType: z.ZodLiteral<"DOMESTIC">;
3820
- province: z.ZodString;
3821
- district: z.ZodString;
3822
- }, {
3823
- urbanOrRural: z.ZodLiteral<"RURAL">;
3824
- village: z.ZodOptional<z.ZodString>;
3825
- }>, "strip", z.ZodTypeAny, {
3826
- country: string;
3827
- district: string;
3828
- addressType: "DOMESTIC";
3829
- province: string;
3830
- urbanOrRural: "RURAL";
3831
- village?: string | undefined;
3832
- }, {
3833
- country: string;
3834
- district: string;
3835
- addressType: "DOMESTIC";
3836
- province: string;
3837
- urbanOrRural: "RURAL";
3838
- village?: string | undefined;
3839
- }>]>, z.ZodObject<{
3840
- country: z.ZodString;
3841
- addressType: z.ZodLiteral<"INTERNATIONAL">;
3842
- state: z.ZodString;
3843
- district2: z.ZodString;
3844
- cityOrTown: z.ZodOptional<z.ZodString>;
3845
- addressLine1: z.ZodOptional<z.ZodString>;
3846
- addressLine2: z.ZodOptional<z.ZodString>;
3847
- addressLine3: z.ZodOptional<z.ZodString>;
3848
- postcodeOrZip: z.ZodOptional<z.ZodString>;
4808
+ type: z.ZodLiteral<"TEXTAREA">;
4809
+ defaultValue: z.ZodOptional<z.ZodString>;
4810
+ configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
4811
+ maxLength: z.ZodOptional<z.ZodNumber>;
4812
+ rows: z.ZodOptional<z.ZodNumber>;
4813
+ cols: z.ZodOptional<z.ZodNumber>;
4814
+ prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4815
+ id: string;
4816
+ description: string;
4817
+ defaultMessage: string;
4818
+ }>>;
4819
+ postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4820
+ id: string;
4821
+ description: string;
4822
+ defaultMessage: string;
4823
+ }>>;
3849
4824
  }, "strip", z.ZodTypeAny, {
3850
- country: string;
3851
- state: string;
3852
- addressType: "INTERNATIONAL";
3853
- district2: string;
3854
- cityOrTown?: string | undefined;
3855
- addressLine1?: string | undefined;
3856
- addressLine2?: string | undefined;
3857
- addressLine3?: string | undefined;
3858
- postcodeOrZip?: string | undefined;
4825
+ maxLength?: number | undefined;
4826
+ prefix?: TranslationConfig | undefined;
4827
+ postfix?: TranslationConfig | undefined;
4828
+ rows?: number | undefined;
4829
+ cols?: number | undefined;
3859
4830
  }, {
3860
- country: string;
3861
- state: string;
3862
- addressType: "INTERNATIONAL";
3863
- district2: string;
3864
- cityOrTown?: string | undefined;
3865
- addressLine1?: string | undefined;
3866
- addressLine2?: string | undefined;
3867
- addressLine3?: string | undefined;
3868
- postcodeOrZip?: string | undefined;
3869
- }>]>>;
4831
+ maxLength?: number | undefined;
4832
+ prefix?: {
4833
+ id: string;
4834
+ description: string;
4835
+ defaultMessage: string;
4836
+ } | undefined;
4837
+ postfix?: {
4838
+ id: string;
4839
+ description: string;
4840
+ defaultMessage: string;
4841
+ } | undefined;
4842
+ rows?: number | undefined;
4843
+ cols?: number | undefined;
4844
+ }>>>;
3870
4845
  }>, "strip", z.ZodTypeAny, {
3871
- type: "ADDRESS";
4846
+ type: "TEXTAREA";
3872
4847
  id: string;
3873
4848
  label: TranslationConfig;
3874
4849
  parent?: {
@@ -3892,37 +4867,16 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
3892
4867
  placeholder?: TranslationConfig | undefined;
3893
4868
  helperText?: TranslationConfig | undefined;
3894
4869
  hideLabel?: boolean | undefined;
3895
- defaultValue?: {
3896
- country: string;
3897
- district: string;
3898
- addressType: "DOMESTIC";
3899
- province: string;
3900
- urbanOrRural: "URBAN";
3901
- number?: string | undefined;
3902
- town?: string | undefined;
3903
- residentialArea?: string | undefined;
3904
- street?: string | undefined;
3905
- zipCode?: string | undefined;
3906
- } | {
3907
- country: string;
3908
- district: string;
3909
- addressType: "DOMESTIC";
3910
- province: string;
3911
- urbanOrRural: "RURAL";
3912
- village?: string | undefined;
3913
- } | {
3914
- country: string;
3915
- state: string;
3916
- addressType: "INTERNATIONAL";
3917
- district2: string;
3918
- cityOrTown?: string | undefined;
3919
- addressLine1?: string | undefined;
3920
- addressLine2?: string | undefined;
3921
- addressLine3?: string | undefined;
3922
- postcodeOrZip?: string | undefined;
4870
+ defaultValue?: string | undefined;
4871
+ configuration?: {
4872
+ maxLength?: number | undefined;
4873
+ prefix?: TranslationConfig | undefined;
4874
+ postfix?: TranslationConfig | undefined;
4875
+ rows?: number | undefined;
4876
+ cols?: number | undefined;
3923
4877
  } | undefined;
3924
4878
  }, {
3925
- type: "ADDRESS";
4879
+ type: "TEXTAREA";
3926
4880
  id: string;
3927
4881
  label: {
3928
4882
  id: string;
@@ -3948,48 +4902,35 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
3948
4902
  type: "ENABLE";
3949
4903
  conditional: import(".").JSONSchema;
3950
4904
  } | {
3951
- type: "DISPLAY_ON_REVIEW";
3952
- conditional: import(".").JSONSchema;
3953
- })[] | undefined;
3954
- placeholder?: {
3955
- id: string;
3956
- description: string;
3957
- defaultMessage: string;
3958
- } | undefined;
3959
- helperText?: {
3960
- id: string;
3961
- description: string;
3962
- defaultMessage: string;
3963
- } | undefined;
3964
- hideLabel?: boolean | undefined;
3965
- defaultValue?: {
3966
- country: string;
3967
- district: string;
3968
- addressType: "DOMESTIC";
3969
- province: string;
3970
- urbanOrRural: "URBAN";
3971
- number?: string | undefined;
3972
- town?: string | undefined;
3973
- residentialArea?: string | undefined;
3974
- street?: string | undefined;
3975
- zipCode?: string | undefined;
3976
- } | {
3977
- country: string;
3978
- district: string;
3979
- addressType: "DOMESTIC";
3980
- province: string;
3981
- urbanOrRural: "RURAL";
3982
- village?: string | undefined;
3983
- } | {
3984
- country: string;
3985
- state: string;
3986
- addressType: "INTERNATIONAL";
3987
- district2: string;
3988
- cityOrTown?: string | undefined;
3989
- addressLine1?: string | undefined;
3990
- addressLine2?: string | undefined;
3991
- addressLine3?: string | undefined;
3992
- postcodeOrZip?: string | undefined;
4905
+ type: "DISPLAY_ON_REVIEW";
4906
+ conditional: import(".").JSONSchema;
4907
+ })[] | undefined;
4908
+ placeholder?: {
4909
+ id: string;
4910
+ description: string;
4911
+ defaultMessage: string;
4912
+ } | undefined;
4913
+ helperText?: {
4914
+ id: string;
4915
+ description: string;
4916
+ defaultMessage: string;
4917
+ } | undefined;
4918
+ hideLabel?: boolean | undefined;
4919
+ defaultValue?: string | undefined;
4920
+ configuration?: {
4921
+ maxLength?: number | undefined;
4922
+ prefix?: {
4923
+ id: string;
4924
+ description: string;
4925
+ defaultMessage: string;
4926
+ } | undefined;
4927
+ postfix?: {
4928
+ id: string;
4929
+ description: string;
4930
+ defaultMessage: string;
4931
+ } | undefined;
4932
+ rows?: number | undefined;
4933
+ cols?: number | undefined;
3993
4934
  } | undefined;
3994
4935
  }>, z.ZodObject<z.objectUtil.extendShape<{
3995
4936
  id: z.ZodString;
@@ -4037,42 +4978,25 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4037
4978
  }>>;
4038
4979
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4039
4980
  }, {
4040
- type: z.ZodLiteral<"TEXT">;
4981
+ type: z.ZodLiteral<"DATE">;
4041
4982
  defaultValue: z.ZodOptional<z.ZodString>;
4042
- configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
4043
- maxLength: z.ZodOptional<z.ZodNumber>;
4044
- type: z.ZodOptional<z.ZodEnum<["text", "password"]>>;
4045
- prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4046
- id: string;
4047
- description: string;
4048
- defaultMessage: string;
4049
- }>>;
4050
- postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4983
+ configuration: z.ZodOptional<z.ZodObject<{
4984
+ notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4051
4985
  id: string;
4052
4986
  description: string;
4053
4987
  defaultMessage: string;
4054
4988
  }>>;
4055
4989
  }, "strip", z.ZodTypeAny, {
4056
- type?: "text" | "password" | undefined;
4057
- maxLength?: number | undefined;
4058
- prefix?: TranslationConfig | undefined;
4059
- postfix?: TranslationConfig | undefined;
4990
+ notice?: TranslationConfig | undefined;
4060
4991
  }, {
4061
- type?: "text" | "password" | undefined;
4062
- maxLength?: number | undefined;
4063
- prefix?: {
4064
- id: string;
4065
- description: string;
4066
- defaultMessage: string;
4067
- } | undefined;
4068
- postfix?: {
4992
+ notice?: {
4069
4993
  id: string;
4070
4994
  description: string;
4071
4995
  defaultMessage: string;
4072
4996
  } | undefined;
4073
- }>>>;
4997
+ }>>;
4074
4998
  }>, "strip", z.ZodTypeAny, {
4075
- type: "TEXT";
4999
+ type: "DATE";
4076
5000
  id: string;
4077
5001
  label: TranslationConfig;
4078
5002
  parent?: {
@@ -4098,13 +5022,10 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4098
5022
  hideLabel?: boolean | undefined;
4099
5023
  defaultValue?: string | undefined;
4100
5024
  configuration?: {
4101
- type?: "text" | "password" | undefined;
4102
- maxLength?: number | undefined;
4103
- prefix?: TranslationConfig | undefined;
4104
- postfix?: TranslationConfig | undefined;
5025
+ notice?: TranslationConfig | undefined;
4105
5026
  } | undefined;
4106
5027
  }, {
4107
- type: "TEXT";
5028
+ type: "DATE";
4108
5029
  id: string;
4109
5030
  label: {
4110
5031
  id: string;
@@ -4146,14 +5067,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4146
5067
  hideLabel?: boolean | undefined;
4147
5068
  defaultValue?: string | undefined;
4148
5069
  configuration?: {
4149
- type?: "text" | "password" | undefined;
4150
- maxLength?: number | undefined;
4151
- prefix?: {
4152
- id: string;
4153
- description: string;
4154
- defaultMessage: string;
4155
- } | undefined;
4156
- postfix?: {
5070
+ notice?: {
4157
5071
  id: string;
4158
5072
  description: string;
4159
5073
  defaultMessage: string;
@@ -4205,42 +5119,25 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4205
5119
  }>>;
4206
5120
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4207
5121
  }, {
4208
- type: z.ZodLiteral<"NUMBER">;
4209
- defaultValue: z.ZodOptional<z.ZodNumber>;
5122
+ type: z.ZodLiteral<"DATE_RANGE">;
5123
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>;
4210
5124
  configuration: z.ZodOptional<z.ZodObject<{
4211
- min: z.ZodOptional<z.ZodNumber>;
4212
- max: z.ZodOptional<z.ZodNumber>;
4213
- prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4214
- id: string;
4215
- description: string;
4216
- defaultMessage: string;
4217
- }>>;
4218
- postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5125
+ notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4219
5126
  id: string;
4220
5127
  description: string;
4221
5128
  defaultMessage: string;
4222
5129
  }>>;
4223
5130
  }, "strip", z.ZodTypeAny, {
4224
- prefix?: TranslationConfig | undefined;
4225
- postfix?: TranslationConfig | undefined;
4226
- min?: number | undefined;
4227
- max?: number | undefined;
5131
+ notice?: TranslationConfig | undefined;
4228
5132
  }, {
4229
- prefix?: {
4230
- id: string;
4231
- description: string;
4232
- defaultMessage: string;
4233
- } | undefined;
4234
- postfix?: {
5133
+ notice?: {
4235
5134
  id: string;
4236
5135
  description: string;
4237
5136
  defaultMessage: string;
4238
5137
  } | undefined;
4239
- min?: number | undefined;
4240
- max?: number | undefined;
4241
5138
  }>>;
4242
5139
  }>, "strip", z.ZodTypeAny, {
4243
- type: "NUMBER";
5140
+ type: "DATE_RANGE";
4244
5141
  id: string;
4245
5142
  label: TranslationConfig;
4246
5143
  parent?: {
@@ -4264,15 +5161,12 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4264
5161
  placeholder?: TranslationConfig | undefined;
4265
5162
  helperText?: TranslationConfig | undefined;
4266
5163
  hideLabel?: boolean | undefined;
4267
- defaultValue?: number | undefined;
5164
+ defaultValue?: string | [string, string] | undefined;
4268
5165
  configuration?: {
4269
- prefix?: TranslationConfig | undefined;
4270
- postfix?: TranslationConfig | undefined;
4271
- min?: number | undefined;
4272
- max?: number | undefined;
5166
+ notice?: TranslationConfig | undefined;
4273
5167
  } | undefined;
4274
5168
  }, {
4275
- type: "NUMBER";
5169
+ type: "DATE_RANGE";
4276
5170
  id: string;
4277
5171
  label: {
4278
5172
  id: string;
@@ -4312,20 +5206,13 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4312
5206
  defaultMessage: string;
4313
5207
  } | undefined;
4314
5208
  hideLabel?: boolean | undefined;
4315
- defaultValue?: number | undefined;
5209
+ defaultValue?: string | [string, string] | undefined;
4316
5210
  configuration?: {
4317
- prefix?: {
4318
- id: string;
4319
- description: string;
4320
- defaultMessage: string;
4321
- } | undefined;
4322
- postfix?: {
5211
+ notice?: {
4323
5212
  id: string;
4324
5213
  description: string;
4325
5214
  defaultMessage: string;
4326
5215
  } | undefined;
4327
- min?: number | undefined;
4328
- max?: number | undefined;
4329
5216
  } | undefined;
4330
5217
  }>, z.ZodObject<z.objectUtil.extendShape<{
4331
5218
  id: z.ZodString;
@@ -4373,47 +5260,34 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4373
5260
  }>>;
4374
5261
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4375
5262
  }, {
4376
- type: z.ZodLiteral<"TEXTAREA">;
5263
+ type: z.ZodLiteral<"PARAGRAPH">;
4377
5264
  defaultValue: z.ZodOptional<z.ZodString>;
4378
- configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
4379
- maxLength: z.ZodOptional<z.ZodNumber>;
4380
- rows: z.ZodOptional<z.ZodNumber>;
4381
- cols: z.ZodOptional<z.ZodNumber>;
4382
- prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4383
- id: string;
4384
- description: string;
4385
- defaultMessage: string;
4386
- }>>;
4387
- postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4388
- id: string;
4389
- description: string;
4390
- defaultMessage: string;
5265
+ configuration: z.ZodDefault<z.ZodObject<{
5266
+ styles: z.ZodOptional<z.ZodObject<{
5267
+ fontVariant: z.ZodOptional<z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>>;
5268
+ }, "strip", z.ZodTypeAny, {
5269
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5270
+ }, {
5271
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4391
5272
  }>>;
4392
5273
  }, "strip", z.ZodTypeAny, {
4393
- maxLength?: number | undefined;
4394
- prefix?: TranslationConfig | undefined;
4395
- postfix?: TranslationConfig | undefined;
4396
- rows?: number | undefined;
4397
- cols?: number | undefined;
4398
- }, {
4399
- maxLength?: number | undefined;
4400
- prefix?: {
4401
- id: string;
4402
- description: string;
4403
- defaultMessage: string;
5274
+ styles?: {
5275
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4404
5276
  } | undefined;
4405
- postfix?: {
4406
- id: string;
4407
- description: string;
4408
- defaultMessage: string;
5277
+ }, {
5278
+ styles?: {
5279
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4409
5280
  } | undefined;
4410
- rows?: number | undefined;
4411
- cols?: number | undefined;
4412
- }>>>;
5281
+ }>>;
4413
5282
  }>, "strip", z.ZodTypeAny, {
4414
- type: "TEXTAREA";
5283
+ type: "PARAGRAPH";
4415
5284
  id: string;
4416
5285
  label: TranslationConfig;
5286
+ configuration: {
5287
+ styles?: {
5288
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5289
+ } | undefined;
5290
+ };
4417
5291
  parent?: {
4418
5292
  $$field: string;
4419
5293
  } | undefined;
@@ -4436,15 +5310,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4436
5310
  helperText?: TranslationConfig | undefined;
4437
5311
  hideLabel?: boolean | undefined;
4438
5312
  defaultValue?: string | undefined;
4439
- configuration?: {
4440
- maxLength?: number | undefined;
4441
- prefix?: TranslationConfig | undefined;
4442
- postfix?: TranslationConfig | undefined;
4443
- rows?: number | undefined;
4444
- cols?: number | undefined;
4445
- } | undefined;
4446
5313
  }, {
4447
- type: "TEXTAREA";
5314
+ type: "PARAGRAPH";
4448
5315
  id: string;
4449
5316
  label: {
4450
5317
  id: string;
@@ -4486,19 +5353,9 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4486
5353
  hideLabel?: boolean | undefined;
4487
5354
  defaultValue?: string | undefined;
4488
5355
  configuration?: {
4489
- maxLength?: number | undefined;
4490
- prefix?: {
4491
- id: string;
4492
- description: string;
4493
- defaultMessage: string;
4494
- } | undefined;
4495
- postfix?: {
4496
- id: string;
4497
- description: string;
4498
- defaultMessage: string;
5356
+ styles?: {
5357
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4499
5358
  } | undefined;
4500
- rows?: number | undefined;
4501
- cols?: number | undefined;
4502
5359
  } | undefined;
4503
5360
  }>, z.ZodObject<z.objectUtil.extendShape<{
4504
5361
  id: z.ZodString;
@@ -4546,26 +5403,50 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4546
5403
  }>>;
4547
5404
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4548
5405
  }, {
4549
- type: z.ZodLiteral<"DATE">;
5406
+ type: z.ZodLiteral<"RADIO_GROUP">;
4550
5407
  defaultValue: z.ZodOptional<z.ZodString>;
4551
- configuration: z.ZodOptional<z.ZodObject<{
4552
- notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5408
+ options: z.ZodArray<z.ZodObject<{
5409
+ value: z.ZodString;
5410
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4553
5411
  id: string;
4554
5412
  description: string;
4555
5413
  defaultMessage: string;
4556
- }>>;
5414
+ }>;
4557
5415
  }, "strip", z.ZodTypeAny, {
4558
- notice?: TranslationConfig | undefined;
5416
+ value: string;
5417
+ label: TranslationConfig;
4559
5418
  }, {
4560
- notice?: {
5419
+ value: string;
5420
+ label: {
4561
5421
  id: string;
4562
5422
  description: string;
4563
5423
  defaultMessage: string;
5424
+ };
5425
+ }>, "many">;
5426
+ configuration: z.ZodOptional<z.ZodObject<{
5427
+ styles: z.ZodOptional<z.ZodObject<{
5428
+ size: z.ZodOptional<z.ZodEnum<["NORMAL", "LARGE"]>>;
5429
+ }, "strip", z.ZodTypeAny, {
5430
+ size?: "NORMAL" | "LARGE" | undefined;
5431
+ }, {
5432
+ size?: "NORMAL" | "LARGE" | undefined;
5433
+ }>>;
5434
+ }, "strip", z.ZodTypeAny, {
5435
+ styles?: {
5436
+ size?: "NORMAL" | "LARGE" | undefined;
5437
+ } | undefined;
5438
+ }, {
5439
+ styles?: {
5440
+ size?: "NORMAL" | "LARGE" | undefined;
4564
5441
  } | undefined;
4565
5442
  }>>;
4566
5443
  }>, "strip", z.ZodTypeAny, {
4567
- type: "DATE";
5444
+ type: "RADIO_GROUP";
4568
5445
  id: string;
5446
+ options: {
5447
+ value: string;
5448
+ label: TranslationConfig;
5449
+ }[];
4569
5450
  label: TranslationConfig;
4570
5451
  parent?: {
4571
5452
  $$field: string;
@@ -4590,11 +5471,21 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4590
5471
  hideLabel?: boolean | undefined;
4591
5472
  defaultValue?: string | undefined;
4592
5473
  configuration?: {
4593
- notice?: TranslationConfig | undefined;
5474
+ styles?: {
5475
+ size?: "NORMAL" | "LARGE" | undefined;
5476
+ } | undefined;
4594
5477
  } | undefined;
4595
5478
  }, {
4596
- type: "DATE";
5479
+ type: "RADIO_GROUP";
4597
5480
  id: string;
5481
+ options: {
5482
+ value: string;
5483
+ label: {
5484
+ id: string;
5485
+ description: string;
5486
+ defaultMessage: string;
5487
+ };
5488
+ }[];
4598
5489
  label: {
4599
5490
  id: string;
4600
5491
  description: string;
@@ -4635,10 +5526,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4635
5526
  hideLabel?: boolean | undefined;
4636
5527
  defaultValue?: string | undefined;
4637
5528
  configuration?: {
4638
- notice?: {
4639
- id: string;
4640
- description: string;
4641
- defaultMessage: string;
5529
+ styles?: {
5530
+ size?: "NORMAL" | "LARGE" | undefined;
4642
5531
  } | undefined;
4643
5532
  } | undefined;
4644
5533
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -4687,27 +5576,40 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4687
5576
  }>>;
4688
5577
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4689
5578
  }, {
4690
- type: z.ZodLiteral<"DATE_RANGE">;
4691
- defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>;
4692
- configuration: z.ZodOptional<z.ZodObject<{
4693
- notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4694
- id: string;
4695
- description: string;
4696
- defaultMessage: string;
5579
+ type: z.ZodLiteral<"BULLET_LIST">;
5580
+ defaultValue: z.ZodOptional<z.ZodString>;
5581
+ items: z.ZodArray<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5582
+ id: string;
5583
+ description: string;
5584
+ defaultMessage: string;
5585
+ }>, "many">;
5586
+ configuration: z.ZodDefault<z.ZodObject<{
5587
+ styles: z.ZodOptional<z.ZodObject<{
5588
+ fontVariant: z.ZodOptional<z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>>;
5589
+ }, "strip", z.ZodTypeAny, {
5590
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5591
+ }, {
5592
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4697
5593
  }>>;
4698
5594
  }, "strip", z.ZodTypeAny, {
4699
- notice?: TranslationConfig | undefined;
5595
+ styles?: {
5596
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5597
+ } | undefined;
4700
5598
  }, {
4701
- notice?: {
4702
- id: string;
4703
- description: string;
4704
- defaultMessage: string;
5599
+ styles?: {
5600
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4705
5601
  } | undefined;
4706
5602
  }>>;
4707
5603
  }>, "strip", z.ZodTypeAny, {
4708
- type: "DATE_RANGE";
5604
+ type: "BULLET_LIST";
4709
5605
  id: string;
4710
5606
  label: TranslationConfig;
5607
+ configuration: {
5608
+ styles?: {
5609
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5610
+ } | undefined;
5611
+ };
5612
+ items: TranslationConfig[];
4711
5613
  parent?: {
4712
5614
  $$field: string;
4713
5615
  } | undefined;
@@ -4729,18 +5631,20 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4729
5631
  placeholder?: TranslationConfig | undefined;
4730
5632
  helperText?: TranslationConfig | undefined;
4731
5633
  hideLabel?: boolean | undefined;
4732
- defaultValue?: string | [string, string] | undefined;
4733
- configuration?: {
4734
- notice?: TranslationConfig | undefined;
4735
- } | undefined;
5634
+ defaultValue?: string | undefined;
4736
5635
  }, {
4737
- type: "DATE_RANGE";
5636
+ type: "BULLET_LIST";
4738
5637
  id: string;
4739
5638
  label: {
4740
5639
  id: string;
4741
5640
  description: string;
4742
5641
  defaultMessage: string;
4743
5642
  };
5643
+ items: {
5644
+ id: string;
5645
+ description: string;
5646
+ defaultMessage: string;
5647
+ }[];
4744
5648
  parent?: {
4745
5649
  $$field: string;
4746
5650
  } | undefined;
@@ -4774,12 +5678,10 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4774
5678
  defaultMessage: string;
4775
5679
  } | undefined;
4776
5680
  hideLabel?: boolean | undefined;
4777
- defaultValue?: string | [string, string] | undefined;
5681
+ defaultValue?: string | undefined;
4778
5682
  configuration?: {
4779
- notice?: {
4780
- id: string;
4781
- description: string;
4782
- defaultMessage: string;
5683
+ styles?: {
5684
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4783
5685
  } | undefined;
4784
5686
  } | undefined;
4785
5687
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -4828,34 +5730,12 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4828
5730
  }>>;
4829
5731
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4830
5732
  }, {
4831
- type: z.ZodLiteral<"PARAGRAPH">;
5733
+ type: z.ZodLiteral<"PAGE_HEADER">;
4832
5734
  defaultValue: z.ZodOptional<z.ZodString>;
4833
- configuration: z.ZodDefault<z.ZodObject<{
4834
- styles: z.ZodOptional<z.ZodObject<{
4835
- fontVariant: z.ZodOptional<z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>>;
4836
- }, "strip", z.ZodTypeAny, {
4837
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4838
- }, {
4839
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4840
- }>>;
4841
- }, "strip", z.ZodTypeAny, {
4842
- styles?: {
4843
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4844
- } | undefined;
4845
- }, {
4846
- styles?: {
4847
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4848
- } | undefined;
4849
- }>>;
4850
5735
  }>, "strip", z.ZodTypeAny, {
4851
- type: "PARAGRAPH";
5736
+ type: "PAGE_HEADER";
4852
5737
  id: string;
4853
5738
  label: TranslationConfig;
4854
- configuration: {
4855
- styles?: {
4856
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4857
- } | undefined;
4858
- };
4859
5739
  parent?: {
4860
5740
  $$field: string;
4861
5741
  } | undefined;
@@ -4879,7 +5759,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4879
5759
  hideLabel?: boolean | undefined;
4880
5760
  defaultValue?: string | undefined;
4881
5761
  }, {
4882
- type: "PARAGRAPH";
5762
+ type: "PAGE_HEADER";
4883
5763
  id: string;
4884
5764
  label: {
4885
5765
  id: string;
@@ -4920,11 +5800,6 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4920
5800
  } | undefined;
4921
5801
  hideLabel?: boolean | undefined;
4922
5802
  defaultValue?: string | undefined;
4923
- configuration?: {
4924
- styles?: {
4925
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4926
- } | undefined;
4927
- } | undefined;
4928
5803
  }>, z.ZodObject<z.objectUtil.extendShape<{
4929
5804
  id: z.ZodString;
4930
5805
  parent: z.ZodOptional<z.ZodObject<{
@@ -4971,7 +5846,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4971
5846
  }>>;
4972
5847
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4973
5848
  }, {
4974
- type: z.ZodLiteral<"RADIO_GROUP">;
5849
+ type: z.ZodLiteral<"SELECT">;
4975
5850
  defaultValue: z.ZodOptional<z.ZodString>;
4976
5851
  options: z.ZodArray<z.ZodObject<{
4977
5852
  value: z.ZodString;
@@ -4991,25 +5866,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4991
5866
  defaultMessage: string;
4992
5867
  };
4993
5868
  }>, "many">;
4994
- configuration: z.ZodOptional<z.ZodObject<{
4995
- styles: z.ZodOptional<z.ZodObject<{
4996
- size: z.ZodOptional<z.ZodEnum<["NORMAL", "LARGE"]>>;
4997
- }, "strip", z.ZodTypeAny, {
4998
- size?: "NORMAL" | "LARGE" | undefined;
4999
- }, {
5000
- size?: "NORMAL" | "LARGE" | undefined;
5001
- }>>;
5002
- }, "strip", z.ZodTypeAny, {
5003
- styles?: {
5004
- size?: "NORMAL" | "LARGE" | undefined;
5005
- } | undefined;
5006
- }, {
5007
- styles?: {
5008
- size?: "NORMAL" | "LARGE" | undefined;
5009
- } | undefined;
5010
- }>>;
5011
5869
  }>, "strip", z.ZodTypeAny, {
5012
- type: "RADIO_GROUP";
5870
+ type: "SELECT";
5013
5871
  id: string;
5014
5872
  options: {
5015
5873
  value: string;
@@ -5038,13 +5896,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5038
5896
  helperText?: TranslationConfig | undefined;
5039
5897
  hideLabel?: boolean | undefined;
5040
5898
  defaultValue?: string | undefined;
5041
- configuration?: {
5042
- styles?: {
5043
- size?: "NORMAL" | "LARGE" | undefined;
5044
- } | undefined;
5045
- } | undefined;
5046
5899
  }, {
5047
- type: "RADIO_GROUP";
5900
+ type: "SELECT";
5048
5901
  id: string;
5049
5902
  options: {
5050
5903
  value: string;
@@ -5093,11 +5946,6 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5093
5946
  } | undefined;
5094
5947
  hideLabel?: boolean | undefined;
5095
5948
  defaultValue?: string | undefined;
5096
- configuration?: {
5097
- styles?: {
5098
- size?: "NORMAL" | "LARGE" | undefined;
5099
- } | undefined;
5100
- } | undefined;
5101
5949
  }>, z.ZodObject<z.objectUtil.extendShape<{
5102
5950
  id: z.ZodString;
5103
5951
  parent: z.ZodOptional<z.ZodObject<{
@@ -5144,40 +5992,50 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5144
5992
  }>>;
5145
5993
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5146
5994
  }, {
5147
- type: z.ZodLiteral<"BULLET_LIST">;
5148
- defaultValue: z.ZodOptional<z.ZodString>;
5149
- items: z.ZodArray<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5150
- id: string;
5151
- description: string;
5152
- defaultMessage: string;
5153
- }>, "many">;
5154
- configuration: z.ZodDefault<z.ZodObject<{
5155
- styles: z.ZodOptional<z.ZodObject<{
5156
- fontVariant: z.ZodOptional<z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>>;
5157
- }, "strip", z.ZodTypeAny, {
5158
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5159
- }, {
5160
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5995
+ type: z.ZodLiteral<"NAME">;
5996
+ defaultValue: z.ZodOptional<z.ZodObject<{
5997
+ firstname: z.ZodString;
5998
+ surname: z.ZodString;
5999
+ }, "strip", z.ZodTypeAny, {
6000
+ firstname: string;
6001
+ surname: string;
6002
+ }, {
6003
+ firstname: string;
6004
+ surname: string;
6005
+ }>>;
6006
+ configuration: z.ZodOptional<z.ZodObject<{
6007
+ maxLength: z.ZodOptional<z.ZodNumber>;
6008
+ prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
6009
+ id: string;
6010
+ description: string;
6011
+ defaultMessage: string;
6012
+ }>>;
6013
+ postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
6014
+ id: string;
6015
+ description: string;
6016
+ defaultMessage: string;
5161
6017
  }>>;
5162
6018
  }, "strip", z.ZodTypeAny, {
5163
- styles?: {
5164
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5165
- } | undefined;
6019
+ maxLength?: number | undefined;
6020
+ prefix?: TranslationConfig | undefined;
6021
+ postfix?: TranslationConfig | undefined;
5166
6022
  }, {
5167
- styles?: {
5168
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
6023
+ maxLength?: number | undefined;
6024
+ prefix?: {
6025
+ id: string;
6026
+ description: string;
6027
+ defaultMessage: string;
6028
+ } | undefined;
6029
+ postfix?: {
6030
+ id: string;
6031
+ description: string;
6032
+ defaultMessage: string;
5169
6033
  } | undefined;
5170
6034
  }>>;
5171
6035
  }>, "strip", z.ZodTypeAny, {
5172
- type: "BULLET_LIST";
6036
+ type: "NAME";
5173
6037
  id: string;
5174
6038
  label: TranslationConfig;
5175
- configuration: {
5176
- styles?: {
5177
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5178
- } | undefined;
5179
- };
5180
- items: TranslationConfig[];
5181
6039
  parent?: {
5182
6040
  $$field: string;
5183
6041
  } | undefined;
@@ -5199,20 +6057,23 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5199
6057
  placeholder?: TranslationConfig | undefined;
5200
6058
  helperText?: TranslationConfig | undefined;
5201
6059
  hideLabel?: boolean | undefined;
5202
- defaultValue?: string | undefined;
6060
+ defaultValue?: {
6061
+ firstname: string;
6062
+ surname: string;
6063
+ } | undefined;
6064
+ configuration?: {
6065
+ maxLength?: number | undefined;
6066
+ prefix?: TranslationConfig | undefined;
6067
+ postfix?: TranslationConfig | undefined;
6068
+ } | undefined;
5203
6069
  }, {
5204
- type: "BULLET_LIST";
6070
+ type: "NAME";
5205
6071
  id: string;
5206
6072
  label: {
5207
6073
  id: string;
5208
6074
  description: string;
5209
6075
  defaultMessage: string;
5210
6076
  };
5211
- items: {
5212
- id: string;
5213
- description: string;
5214
- defaultMessage: string;
5215
- }[];
5216
6077
  parent?: {
5217
6078
  $$field: string;
5218
6079
  } | undefined;
@@ -5246,10 +6107,21 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5246
6107
  defaultMessage: string;
5247
6108
  } | undefined;
5248
6109
  hideLabel?: boolean | undefined;
5249
- defaultValue?: string | undefined;
6110
+ defaultValue?: {
6111
+ firstname: string;
6112
+ surname: string;
6113
+ } | undefined;
5250
6114
  configuration?: {
5251
- styles?: {
5252
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
6115
+ maxLength?: number | undefined;
6116
+ prefix?: {
6117
+ id: string;
6118
+ description: string;
6119
+ defaultMessage: string;
6120
+ } | undefined;
6121
+ postfix?: {
6122
+ id: string;
6123
+ description: string;
6124
+ defaultMessage: string;
5253
6125
  } | undefined;
5254
6126
  } | undefined;
5255
6127
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -5298,10 +6170,10 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5298
6170
  }>>;
5299
6171
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5300
6172
  }, {
5301
- type: z.ZodLiteral<"PAGE_HEADER">;
5302
6173
  defaultValue: z.ZodOptional<z.ZodString>;
6174
+ type: z.ZodLiteral<"PHONE">;
5303
6175
  }>, "strip", z.ZodTypeAny, {
5304
- type: "PAGE_HEADER";
6176
+ type: "PHONE";
5305
6177
  id: string;
5306
6178
  label: TranslationConfig;
5307
6179
  parent?: {
@@ -5327,7 +6199,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5327
6199
  hideLabel?: boolean | undefined;
5328
6200
  defaultValue?: string | undefined;
5329
6201
  }, {
5330
- type: "PAGE_HEADER";
6202
+ type: "PHONE";
5331
6203
  id: string;
5332
6204
  label: {
5333
6205
  id: string;
@@ -5414,33 +6286,11 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5414
6286
  }>>;
5415
6287
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5416
6288
  }, {
5417
- type: z.ZodLiteral<"SELECT">;
5418
6289
  defaultValue: z.ZodOptional<z.ZodString>;
5419
- options: z.ZodArray<z.ZodObject<{
5420
- value: z.ZodString;
5421
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5422
- id: string;
5423
- description: string;
5424
- defaultMessage: string;
5425
- }>;
5426
- }, "strip", z.ZodTypeAny, {
5427
- value: string;
5428
- label: TranslationConfig;
5429
- }, {
5430
- value: string;
5431
- label: {
5432
- id: string;
5433
- description: string;
5434
- defaultMessage: string;
5435
- };
5436
- }>, "many">;
6290
+ type: z.ZodLiteral<"ID">;
5437
6291
  }>, "strip", z.ZodTypeAny, {
5438
- type: "SELECT";
6292
+ type: "ID";
5439
6293
  id: string;
5440
- options: {
5441
- value: string;
5442
- label: TranslationConfig;
5443
- }[];
5444
6294
  label: TranslationConfig;
5445
6295
  parent?: {
5446
6296
  $$field: string;
@@ -5465,16 +6315,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5465
6315
  hideLabel?: boolean | undefined;
5466
6316
  defaultValue?: string | undefined;
5467
6317
  }, {
5468
- type: "SELECT";
6318
+ type: "ID";
5469
6319
  id: string;
5470
- options: {
5471
- value: string;
5472
- label: {
5473
- id: string;
5474
- description: string;
5475
- defaultMessage: string;
5476
- };
5477
- }[];
5478
6320
  label: {
5479
6321
  id: string;
5480
6322
  description: string;
@@ -7220,6 +8062,9 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7220
8062
  hideLabel?: boolean | undefined;
7221
8063
  }>]>;
7222
8064
  export type SelectField = z.infer<typeof Select>;
8065
+ export type NameField = z.infer<typeof NameField>;
8066
+ export type PhoneField = z.infer<typeof PhoneField>;
8067
+ export type IdField = z.infer<typeof IdField>;
7223
8068
  export type LocationField = z.infer<typeof Location>;
7224
8069
  export type RadioField = z.infer<typeof RadioGroup>;
7225
8070
  export type AddressField = z.infer<typeof Address>;