@opencrvs/toolkit 1.8.0-rc.f8be155 → 1.8.0-rc.f8e0ee5

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 (33) hide show
  1. package/dist/commons/api/router.d.ts +2029 -5136
  2. package/dist/commons/conditionals/conditionals.d.ts +0 -4
  3. package/dist/commons/conditionals/validate.d.ts +0 -6
  4. package/dist/commons/events/ActionConfig.d.ts +20914 -44038
  5. package/dist/commons/events/ActionDocument.d.ts +484 -1888
  6. package/dist/commons/events/ActionInput.d.ts +304 -1504
  7. package/dist/commons/events/ActionType.d.ts +0 -4
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +3 -75
  9. package/dist/commons/events/CompositeFieldValue.d.ts +0 -28
  10. package/dist/commons/events/Constants.d.ts +0 -1
  11. package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
  12. package/dist/commons/events/Draft.d.ts +34 -130
  13. package/dist/commons/events/EventConfig.d.ts +16720 -30190
  14. package/dist/commons/events/EventDocument.d.ts +346 -1210
  15. package/dist/commons/events/EventIndex.d.ts +32 -270
  16. package/dist/commons/events/EventMetadata.d.ts +60 -27
  17. package/dist/commons/events/FieldConfig.d.ts +893 -1682
  18. package/dist/commons/events/FieldType.d.ts +1 -4
  19. package/dist/commons/events/FieldTypeMapping.d.ts +50 -89
  20. package/dist/commons/events/FieldValue.d.ts +5 -41
  21. package/dist/commons/events/FormConfig.d.ts +2510 -7640
  22. package/dist/commons/events/PageConfig.d.ts +1638 -2896
  23. package/dist/commons/events/SummaryConfig.d.ts +5 -0
  24. package/dist/commons/events/WorkqueueConfig.d.ts +19 -297
  25. package/dist/commons/events/defineConfig.d.ts +1440 -3841
  26. package/dist/commons/events/field.d.ts +0 -4
  27. package/dist/commons/events/scopes.d.ts +1 -1
  28. package/dist/commons/events/test.utils.d.ts +39 -126
  29. package/dist/commons/events/transactions.d.ts +1 -1
  30. package/dist/commons/events/utils.d.ts +18 -9664
  31. package/dist/conditionals/index.js +1 -18
  32. package/dist/events/index.js +1103 -1370
  33. package/package.json +1 -1
@@ -1317,6 +1317,29 @@ declare const DateRangeField: z.ZodObject<z.objectUtil.extendShape<{
1317
1317
  export type DateRangeField = z.infer<typeof DateRangeField>;
1318
1318
  declare const HtmlFontVariant: z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>;
1319
1319
  export type HtmlFontVariant = z.infer<typeof HtmlFontVariant>;
1320
+ declare const ParagraphConfiguration: z.ZodDefault<z.ZodObject<{
1321
+ styles: z.ZodOptional<z.ZodObject<{
1322
+ fontVariant: z.ZodOptional<z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>>;
1323
+ hint: z.ZodOptional<z.ZodBoolean>;
1324
+ }, "strip", z.ZodTypeAny, {
1325
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1326
+ hint?: boolean | undefined;
1327
+ }, {
1328
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1329
+ hint?: boolean | undefined;
1330
+ }>>;
1331
+ }, "strip", z.ZodTypeAny, {
1332
+ styles?: {
1333
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1334
+ hint?: boolean | undefined;
1335
+ } | undefined;
1336
+ }, {
1337
+ styles?: {
1338
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1339
+ hint?: boolean | undefined;
1340
+ } | undefined;
1341
+ }>>;
1342
+ export type ParagraphConfiguration = z.infer<typeof ParagraphConfiguration>;
1320
1343
  declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
1321
1344
  id: z.ZodString;
1322
1345
  parent: z.ZodOptional<z.ZodObject<{
@@ -1368,18 +1391,23 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
1368
1391
  configuration: z.ZodDefault<z.ZodObject<{
1369
1392
  styles: z.ZodOptional<z.ZodObject<{
1370
1393
  fontVariant: z.ZodOptional<z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>>;
1394
+ hint: z.ZodOptional<z.ZodBoolean>;
1371
1395
  }, "strip", z.ZodTypeAny, {
1372
1396
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1397
+ hint?: boolean | undefined;
1373
1398
  }, {
1374
1399
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1400
+ hint?: boolean | undefined;
1375
1401
  }>>;
1376
1402
  }, "strip", z.ZodTypeAny, {
1377
1403
  styles?: {
1378
1404
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1405
+ hint?: boolean | undefined;
1379
1406
  } | undefined;
1380
1407
  }, {
1381
1408
  styles?: {
1382
1409
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1410
+ hint?: boolean | undefined;
1383
1411
  } | undefined;
1384
1412
  }>>;
1385
1413
  }>, "strip", z.ZodTypeAny, {
@@ -1389,6 +1417,7 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
1389
1417
  configuration: {
1390
1418
  styles?: {
1391
1419
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1420
+ hint?: boolean | undefined;
1392
1421
  } | undefined;
1393
1422
  };
1394
1423
  parent?: {
@@ -1458,6 +1487,7 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
1458
1487
  configuration?: {
1459
1488
  styles?: {
1460
1489
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1490
+ hint?: boolean | undefined;
1461
1491
  } | undefined;
1462
1492
  } | undefined;
1463
1493
  }>;
@@ -2268,7 +2298,7 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
2268
2298
  hideLabel?: boolean | undefined;
2269
2299
  defaultValue?: string | undefined;
2270
2300
  }>;
2271
- declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
2301
+ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
2272
2302
  id: z.ZodString;
2273
2303
  parent: z.ZodOptional<z.ZodObject<{
2274
2304
  $$field: z.ZodString;
@@ -2314,48 +2344,10 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
2314
2344
  }>>;
2315
2345
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2316
2346
  }, {
2317
- type: z.ZodLiteral<"NAME">;
2318
- defaultValue: z.ZodOptional<z.ZodObject<{
2319
- firstname: z.ZodString;
2320
- surname: z.ZodString;
2321
- }, "strip", z.ZodTypeAny, {
2322
- firstname: string;
2323
- surname: string;
2324
- }, {
2325
- firstname: string;
2326
- surname: string;
2327
- }>>;
2328
- configuration: z.ZodOptional<z.ZodObject<{
2329
- maxLength: z.ZodOptional<z.ZodNumber>;
2330
- prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2331
- id: string;
2332
- description: string;
2333
- defaultMessage: string;
2334
- }>>;
2335
- postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2336
- id: string;
2337
- description: string;
2338
- defaultMessage: string;
2339
- }>>;
2340
- }, "strip", z.ZodTypeAny, {
2341
- maxLength?: number | undefined;
2342
- prefix?: TranslationConfig | undefined;
2343
- postfix?: TranslationConfig | undefined;
2344
- }, {
2345
- maxLength?: number | undefined;
2346
- prefix?: {
2347
- id: string;
2348
- description: string;
2349
- defaultMessage: string;
2350
- } | undefined;
2351
- postfix?: {
2352
- id: string;
2353
- description: string;
2354
- defaultMessage: string;
2355
- } | undefined;
2356
- }>>;
2347
+ type: z.ZodLiteral<"CHECKBOX">;
2348
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
2357
2349
  }>, "strip", z.ZodTypeAny, {
2358
- type: "NAME";
2350
+ type: "CHECKBOX";
2359
2351
  id: string;
2360
2352
  label: TranslationConfig;
2361
2353
  parent?: {
@@ -2379,17 +2371,9 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
2379
2371
  placeholder?: TranslationConfig | undefined;
2380
2372
  helperText?: TranslationConfig | undefined;
2381
2373
  hideLabel?: boolean | undefined;
2382
- defaultValue?: {
2383
- firstname: string;
2384
- surname: string;
2385
- } | undefined;
2386
- configuration?: {
2387
- maxLength?: number | undefined;
2388
- prefix?: TranslationConfig | undefined;
2389
- postfix?: TranslationConfig | undefined;
2390
- } | undefined;
2374
+ defaultValue?: boolean | undefined;
2391
2375
  }, {
2392
- type: "NAME";
2376
+ type: "CHECKBOX";
2393
2377
  id: string;
2394
2378
  label: {
2395
2379
  id: string;
@@ -2429,25 +2413,10 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
2429
2413
  defaultMessage: string;
2430
2414
  } | undefined;
2431
2415
  hideLabel?: boolean | undefined;
2432
- defaultValue?: {
2433
- firstname: string;
2434
- surname: string;
2435
- } | undefined;
2436
- configuration?: {
2437
- maxLength?: number | undefined;
2438
- prefix?: {
2439
- id: string;
2440
- description: string;
2441
- defaultMessage: string;
2442
- } | undefined;
2443
- postfix?: {
2444
- id: string;
2445
- description: string;
2446
- defaultMessage: string;
2447
- } | undefined;
2448
- } | undefined;
2416
+ defaultValue?: boolean | undefined;
2449
2417
  }>;
2450
- declare const PhoneField: z.ZodObject<z.objectUtil.extendShape<{
2418
+ export type Checkbox = z.infer<typeof Checkbox>;
2419
+ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2451
2420
  id: z.ZodString;
2452
2421
  parent: z.ZodOptional<z.ZodObject<{
2453
2422
  $$field: z.ZodString;
@@ -2493,10 +2462,10 @@ declare const PhoneField: z.ZodObject<z.objectUtil.extendShape<{
2493
2462
  }>>;
2494
2463
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2495
2464
  }, {
2465
+ type: z.ZodLiteral<"COUNTRY">;
2496
2466
  defaultValue: z.ZodOptional<z.ZodString>;
2497
- type: z.ZodLiteral<"PHONE">;
2498
2467
  }>, "strip", z.ZodTypeAny, {
2499
- type: "PHONE";
2468
+ type: "COUNTRY";
2500
2469
  id: string;
2501
2470
  label: TranslationConfig;
2502
2471
  parent?: {
@@ -2522,7 +2491,7 @@ declare const PhoneField: z.ZodObject<z.objectUtil.extendShape<{
2522
2491
  hideLabel?: boolean | undefined;
2523
2492
  defaultValue?: string | undefined;
2524
2493
  }, {
2525
- type: "PHONE";
2494
+ type: "COUNTRY";
2526
2495
  id: string;
2527
2496
  label: {
2528
2497
  id: string;
@@ -2564,7 +2533,29 @@ declare const PhoneField: z.ZodObject<z.objectUtil.extendShape<{
2564
2533
  hideLabel?: boolean | undefined;
2565
2534
  defaultValue?: string | undefined;
2566
2535
  }>;
2567
- declare const IdField: z.ZodObject<z.objectUtil.extendShape<{
2536
+ export type Country = z.infer<typeof Country>;
2537
+ export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2538
+ declare const AdministrativeAreaConfiguration: z.ZodObject<{
2539
+ partOf: z.ZodOptional<z.ZodObject<{
2540
+ $declaration: z.ZodString;
2541
+ }, "strip", z.ZodTypeAny, {
2542
+ $declaration: string;
2543
+ }, {
2544
+ $declaration: string;
2545
+ }>>;
2546
+ type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2547
+ }, "strip", z.ZodTypeAny, {
2548
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2549
+ partOf?: {
2550
+ $declaration: string;
2551
+ } | undefined;
2552
+ }, {
2553
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2554
+ partOf?: {
2555
+ $declaration: string;
2556
+ } | undefined;
2557
+ }>;
2558
+ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2568
2559
  id: z.ZodString;
2569
2560
  parent: z.ZodOptional<z.ZodObject<{
2570
2561
  $$field: z.ZodString;
@@ -2610,12 +2601,38 @@ declare const IdField: z.ZodObject<z.objectUtil.extendShape<{
2610
2601
  }>>;
2611
2602
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2612
2603
  }, {
2604
+ type: z.ZodLiteral<"ADMINISTRATIVE_AREA">;
2613
2605
  defaultValue: z.ZodOptional<z.ZodString>;
2614
- type: z.ZodLiteral<"ID">;
2606
+ configuration: z.ZodObject<{
2607
+ partOf: z.ZodOptional<z.ZodObject<{
2608
+ $declaration: z.ZodString;
2609
+ }, "strip", z.ZodTypeAny, {
2610
+ $declaration: string;
2611
+ }, {
2612
+ $declaration: string;
2613
+ }>>;
2614
+ type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2615
+ }, "strip", z.ZodTypeAny, {
2616
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2617
+ partOf?: {
2618
+ $declaration: string;
2619
+ } | undefined;
2620
+ }, {
2621
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2622
+ partOf?: {
2623
+ $declaration: string;
2624
+ } | undefined;
2625
+ }>;
2615
2626
  }>, "strip", z.ZodTypeAny, {
2616
- type: "ID";
2627
+ type: "ADMINISTRATIVE_AREA";
2617
2628
  id: string;
2618
2629
  label: TranslationConfig;
2630
+ configuration: {
2631
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2632
+ partOf?: {
2633
+ $declaration: string;
2634
+ } | undefined;
2635
+ };
2619
2636
  parent?: {
2620
2637
  $$field: string;
2621
2638
  } | undefined;
@@ -2639,13 +2656,19 @@ declare const IdField: z.ZodObject<z.objectUtil.extendShape<{
2639
2656
  hideLabel?: boolean | undefined;
2640
2657
  defaultValue?: string | undefined;
2641
2658
  }, {
2642
- type: "ID";
2659
+ type: "ADMINISTRATIVE_AREA";
2643
2660
  id: string;
2644
2661
  label: {
2645
2662
  id: string;
2646
2663
  description: string;
2647
2664
  defaultMessage: string;
2648
2665
  };
2666
+ configuration: {
2667
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2668
+ partOf?: {
2669
+ $declaration: string;
2670
+ } | undefined;
2671
+ };
2649
2672
  parent?: {
2650
2673
  $$field: string;
2651
2674
  } | undefined;
@@ -2681,7 +2704,8 @@ declare const IdField: z.ZodObject<z.objectUtil.extendShape<{
2681
2704
  hideLabel?: boolean | undefined;
2682
2705
  defaultValue?: string | undefined;
2683
2706
  }>;
2684
- declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
2707
+ export type AdministrativeArea = z.infer<typeof AdministrativeArea>;
2708
+ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
2685
2709
  id: z.ZodString;
2686
2710
  parent: z.ZodOptional<z.ZodObject<{
2687
2711
  $$field: z.ZodString;
@@ -2727,10 +2751,10 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
2727
2751
  }>>;
2728
2752
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2729
2753
  }, {
2730
- type: z.ZodLiteral<"CHECKBOX">;
2731
- defaultValue: z.ZodOptional<z.ZodBoolean>;
2754
+ type: z.ZodLiteral<"LOCATION">;
2755
+ defaultValue: z.ZodOptional<z.ZodString>;
2732
2756
  }>, "strip", z.ZodTypeAny, {
2733
- type: "CHECKBOX";
2757
+ type: "LOCATION";
2734
2758
  id: string;
2735
2759
  label: TranslationConfig;
2736
2760
  parent?: {
@@ -2754,9 +2778,9 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
2754
2778
  placeholder?: TranslationConfig | undefined;
2755
2779
  helperText?: TranslationConfig | undefined;
2756
2780
  hideLabel?: boolean | undefined;
2757
- defaultValue?: boolean | undefined;
2781
+ defaultValue?: string | undefined;
2758
2782
  }, {
2759
- type: "CHECKBOX";
2783
+ type: "LOCATION";
2760
2784
  id: string;
2761
2785
  label: {
2762
2786
  id: string;
@@ -2796,10 +2820,10 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
2796
2820
  defaultMessage: string;
2797
2821
  } | undefined;
2798
2822
  hideLabel?: boolean | undefined;
2799
- defaultValue?: boolean | undefined;
2823
+ defaultValue?: string | undefined;
2800
2824
  }>;
2801
- export type Checkbox = z.infer<typeof Checkbox>;
2802
- declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2825
+ export type Location = z.infer<typeof Location>;
2826
+ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
2803
2827
  id: z.ZodString;
2804
2828
  parent: z.ZodOptional<z.ZodObject<{
2805
2829
  $$field: z.ZodString;
@@ -2845,12 +2869,63 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2845
2869
  }>>;
2846
2870
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2847
2871
  }, {
2848
- type: z.ZodLiteral<"COUNTRY">;
2849
- defaultValue: z.ZodOptional<z.ZodString>;
2872
+ type: z.ZodLiteral<"FILE_WITH_OPTIONS">;
2873
+ options: z.ZodArray<z.ZodObject<{
2874
+ value: z.ZodString;
2875
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2876
+ id: string;
2877
+ description: string;
2878
+ defaultMessage: string;
2879
+ }>;
2880
+ }, "strip", z.ZodTypeAny, {
2881
+ value: string;
2882
+ label: TranslationConfig;
2883
+ }, {
2884
+ value: string;
2885
+ label: {
2886
+ id: string;
2887
+ description: string;
2888
+ defaultMessage: string;
2889
+ };
2890
+ }>, "many">;
2891
+ defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
2892
+ filename: z.ZodString;
2893
+ originalFilename: z.ZodString;
2894
+ type: z.ZodString;
2895
+ option: z.ZodString;
2896
+ }, "strip", z.ZodTypeAny, {
2897
+ type: string;
2898
+ option: string;
2899
+ filename: string;
2900
+ originalFilename: string;
2901
+ }, {
2902
+ type: string;
2903
+ option: string;
2904
+ filename: string;
2905
+ originalFilename: string;
2906
+ }>, "many">>;
2907
+ configuration: z.ZodDefault<z.ZodObject<{
2908
+ maxFileSize: z.ZodDefault<z.ZodNumber>;
2909
+ acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>, "many">>;
2910
+ }, "strip", z.ZodTypeAny, {
2911
+ maxFileSize: number;
2912
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2913
+ }, {
2914
+ maxFileSize?: number | undefined;
2915
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2916
+ }>>;
2850
2917
  }>, "strip", z.ZodTypeAny, {
2851
- type: "COUNTRY";
2918
+ type: "FILE_WITH_OPTIONS";
2852
2919
  id: string;
2920
+ options: {
2921
+ value: string;
2922
+ label: TranslationConfig;
2923
+ }[];
2853
2924
  label: TranslationConfig;
2925
+ configuration: {
2926
+ maxFileSize: number;
2927
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
2928
+ };
2854
2929
  parent?: {
2855
2930
  $$field: string;
2856
2931
  } | undefined;
@@ -2872,10 +2947,23 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2872
2947
  placeholder?: TranslationConfig | undefined;
2873
2948
  helperText?: TranslationConfig | undefined;
2874
2949
  hideLabel?: boolean | undefined;
2875
- defaultValue?: string | undefined;
2950
+ defaultValue?: {
2951
+ type: string;
2952
+ option: string;
2953
+ filename: string;
2954
+ originalFilename: string;
2955
+ }[] | undefined;
2876
2956
  }, {
2877
- type: "COUNTRY";
2957
+ type: "FILE_WITH_OPTIONS";
2878
2958
  id: string;
2959
+ options: {
2960
+ value: string;
2961
+ label: {
2962
+ id: string;
2963
+ description: string;
2964
+ defaultMessage: string;
2965
+ };
2966
+ }[];
2879
2967
  label: {
2880
2968
  id: string;
2881
2969
  description: string;
@@ -2914,38 +3002,26 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
2914
3002
  defaultMessage: string;
2915
3003
  } | undefined;
2916
3004
  hideLabel?: boolean | undefined;
2917
- defaultValue?: string | undefined;
3005
+ defaultValue?: {
3006
+ type: string;
3007
+ option: string;
3008
+ filename: string;
3009
+ originalFilename: string;
3010
+ }[] | undefined;
3011
+ configuration?: {
3012
+ maxFileSize?: number | undefined;
3013
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
3014
+ } | undefined;
2918
3015
  }>;
2919
- export type Country = z.infer<typeof Country>;
2920
- export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2921
- declare const AdministrativeAreaConfiguration: z.ZodObject<{
2922
- partOf: z.ZodOptional<z.ZodObject<{
2923
- $declaration: z.ZodString;
3016
+ export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
3017
+ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
3018
+ id: z.ZodString;
3019
+ parent: z.ZodOptional<z.ZodObject<{
3020
+ $$field: z.ZodString;
2924
3021
  }, "strip", z.ZodTypeAny, {
2925
- $declaration: string;
3022
+ $$field: string;
2926
3023
  }, {
2927
- $declaration: string;
2928
- }>>;
2929
- type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2930
- }, "strip", z.ZodTypeAny, {
2931
- type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2932
- partOf?: {
2933
- $declaration: string;
2934
- } | undefined;
2935
- }, {
2936
- type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
2937
- partOf?: {
2938
- $declaration: string;
2939
- } | undefined;
2940
- }>;
2941
- declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2942
- id: z.ZodString;
2943
- parent: z.ZodOptional<z.ZodObject<{
2944
- $$field: z.ZodString;
2945
- }, "strip", z.ZodTypeAny, {
2946
- $$field: string;
2947
- }, {
2948
- $$field: string;
3024
+ $$field: string;
2949
3025
  }>>;
2950
3026
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
2951
3027
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -2984,38 +3060,12 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
2984
3060
  }>>;
2985
3061
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2986
3062
  }, {
2987
- type: z.ZodLiteral<"ADMINISTRATIVE_AREA">;
3063
+ type: z.ZodLiteral<"FACILITY">;
2988
3064
  defaultValue: z.ZodOptional<z.ZodString>;
2989
- configuration: z.ZodObject<{
2990
- partOf: z.ZodOptional<z.ZodObject<{
2991
- $declaration: z.ZodString;
2992
- }, "strip", z.ZodTypeAny, {
2993
- $declaration: string;
2994
- }, {
2995
- $declaration: string;
2996
- }>>;
2997
- type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
2998
- }, "strip", z.ZodTypeAny, {
2999
- type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
3000
- partOf?: {
3001
- $declaration: string;
3002
- } | undefined;
3003
- }, {
3004
- type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
3005
- partOf?: {
3006
- $declaration: string;
3007
- } | undefined;
3008
- }>;
3009
3065
  }>, "strip", z.ZodTypeAny, {
3010
- type: "ADMINISTRATIVE_AREA";
3066
+ type: "FACILITY";
3011
3067
  id: string;
3012
3068
  label: TranslationConfig;
3013
- configuration: {
3014
- type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
3015
- partOf?: {
3016
- $declaration: string;
3017
- } | undefined;
3018
- };
3019
3069
  parent?: {
3020
3070
  $$field: string;
3021
3071
  } | undefined;
@@ -3039,19 +3089,13 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
3039
3089
  hideLabel?: boolean | undefined;
3040
3090
  defaultValue?: string | undefined;
3041
3091
  }, {
3042
- type: "ADMINISTRATIVE_AREA";
3092
+ type: "FACILITY";
3043
3093
  id: string;
3044
3094
  label: {
3045
3095
  id: string;
3046
3096
  description: string;
3047
3097
  defaultMessage: string;
3048
3098
  };
3049
- configuration: {
3050
- type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
3051
- partOf?: {
3052
- $declaration: string;
3053
- } | undefined;
3054
- };
3055
3099
  parent?: {
3056
3100
  $$field: string;
3057
3101
  } | undefined;
@@ -3087,8 +3131,8 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
3087
3131
  hideLabel?: boolean | undefined;
3088
3132
  defaultValue?: string | undefined;
3089
3133
  }>;
3090
- export type AdministrativeArea = z.infer<typeof AdministrativeArea>;
3091
- declare const Location: z.ZodObject<z.objectUtil.extendShape<{
3134
+ export type Facility = z.infer<typeof Facility>;
3135
+ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
3092
3136
  id: z.ZodString;
3093
3137
  parent: z.ZodOptional<z.ZodObject<{
3094
3138
  $$field: z.ZodString;
@@ -3134,10 +3178,10 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
3134
3178
  }>>;
3135
3179
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3136
3180
  }, {
3137
- type: z.ZodLiteral<"LOCATION">;
3181
+ type: z.ZodLiteral<"OFFICE">;
3138
3182
  defaultValue: z.ZodOptional<z.ZodString>;
3139
3183
  }>, "strip", z.ZodTypeAny, {
3140
- type: "LOCATION";
3184
+ type: "OFFICE";
3141
3185
  id: string;
3142
3186
  label: TranslationConfig;
3143
3187
  parent?: {
@@ -3163,7 +3207,7 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
3163
3207
  hideLabel?: boolean | undefined;
3164
3208
  defaultValue?: string | undefined;
3165
3209
  }, {
3166
- type: "LOCATION";
3210
+ type: "OFFICE";
3167
3211
  id: string;
3168
3212
  label: {
3169
3213
  id: string;
@@ -3205,8 +3249,8 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
3205
3249
  hideLabel?: boolean | undefined;
3206
3250
  defaultValue?: string | undefined;
3207
3251
  }>;
3208
- export type Location = z.infer<typeof Location>;
3209
- declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
3252
+ export type Office = z.infer<typeof Office>;
3253
+ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3210
3254
  id: z.ZodString;
3211
3255
  parent: z.ZodOptional<z.ZodObject<{
3212
3256
  $$field: z.ZodString;
@@ -3252,63 +3296,98 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
3252
3296
  }>>;
3253
3297
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3254
3298
  }, {
3255
- type: z.ZodLiteral<"FILE_WITH_OPTIONS">;
3256
- options: z.ZodArray<z.ZodObject<{
3257
- value: z.ZodString;
3258
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3259
- id: string;
3260
- description: string;
3261
- defaultMessage: string;
3262
- }>;
3263
- }, "strip", z.ZodTypeAny, {
3264
- value: string;
3265
- label: TranslationConfig;
3299
+ type: z.ZodLiteral<"ADDRESS">;
3300
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
3301
+ country: z.ZodString;
3302
+ addressType: z.ZodLiteral<"DOMESTIC">;
3303
+ province: z.ZodString;
3304
+ district: z.ZodString;
3266
3305
  }, {
3267
- value: string;
3268
- label: {
3269
- id: string;
3270
- description: string;
3271
- defaultMessage: string;
3272
- };
3273
- }>, "many">;
3274
- defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
3275
- filename: z.ZodString;
3276
- originalFilename: z.ZodString;
3277
- type: z.ZodString;
3278
- option: z.ZodString;
3279
- }, "strip", z.ZodTypeAny, {
3280
- type: string;
3281
- option: string;
3282
- filename: string;
3283
- originalFilename: string;
3306
+ urbanOrRural: z.ZodLiteral<"URBAN">;
3307
+ town: z.ZodOptional<z.ZodString>;
3308
+ residentialArea: z.ZodOptional<z.ZodString>;
3309
+ street: z.ZodOptional<z.ZodString>;
3310
+ number: z.ZodOptional<z.ZodString>;
3311
+ zipCode: z.ZodOptional<z.ZodString>;
3312
+ }>, "strip", z.ZodTypeAny, {
3313
+ country: string;
3314
+ district: string;
3315
+ addressType: "DOMESTIC";
3316
+ province: string;
3317
+ urbanOrRural: "URBAN";
3318
+ number?: string | undefined;
3319
+ town?: string | undefined;
3320
+ residentialArea?: string | undefined;
3321
+ street?: string | undefined;
3322
+ zipCode?: string | undefined;
3284
3323
  }, {
3285
- type: string;
3286
- option: string;
3287
- filename: string;
3288
- originalFilename: string;
3289
- }>, "many">>;
3290
- configuration: z.ZodDefault<z.ZodObject<{
3291
- maxFileSize: z.ZodDefault<z.ZodNumber>;
3292
- acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>, "many">>;
3324
+ country: string;
3325
+ district: string;
3326
+ addressType: "DOMESTIC";
3327
+ province: string;
3328
+ urbanOrRural: "URBAN";
3329
+ number?: string | undefined;
3330
+ town?: string | undefined;
3331
+ residentialArea?: string | undefined;
3332
+ street?: string | undefined;
3333
+ zipCode?: string | undefined;
3334
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3335
+ country: z.ZodString;
3336
+ addressType: z.ZodLiteral<"DOMESTIC">;
3337
+ province: z.ZodString;
3338
+ district: z.ZodString;
3339
+ }, {
3340
+ urbanOrRural: z.ZodLiteral<"RURAL">;
3341
+ village: z.ZodOptional<z.ZodString>;
3342
+ }>, "strip", z.ZodTypeAny, {
3343
+ country: string;
3344
+ district: string;
3345
+ addressType: "DOMESTIC";
3346
+ province: string;
3347
+ urbanOrRural: "RURAL";
3348
+ village?: string | undefined;
3349
+ }, {
3350
+ country: string;
3351
+ district: string;
3352
+ addressType: "DOMESTIC";
3353
+ province: string;
3354
+ urbanOrRural: "RURAL";
3355
+ village?: string | undefined;
3356
+ }>]>, z.ZodObject<{
3357
+ country: z.ZodString;
3358
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
3359
+ state: z.ZodString;
3360
+ district2: z.ZodString;
3361
+ cityOrTown: z.ZodOptional<z.ZodString>;
3362
+ addressLine1: z.ZodOptional<z.ZodString>;
3363
+ addressLine2: z.ZodOptional<z.ZodString>;
3364
+ addressLine3: z.ZodOptional<z.ZodString>;
3365
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
3293
3366
  }, "strip", z.ZodTypeAny, {
3294
- maxFileSize: number;
3295
- acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
3367
+ country: string;
3368
+ state: string;
3369
+ addressType: "INTERNATIONAL";
3370
+ district2: string;
3371
+ cityOrTown?: string | undefined;
3372
+ addressLine1?: string | undefined;
3373
+ addressLine2?: string | undefined;
3374
+ addressLine3?: string | undefined;
3375
+ postcodeOrZip?: string | undefined;
3296
3376
  }, {
3297
- maxFileSize?: number | undefined;
3298
- acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
3299
- }>>;
3377
+ country: string;
3378
+ state: string;
3379
+ addressType: "INTERNATIONAL";
3380
+ district2: string;
3381
+ cityOrTown?: string | undefined;
3382
+ addressLine1?: string | undefined;
3383
+ addressLine2?: string | undefined;
3384
+ addressLine3?: string | undefined;
3385
+ postcodeOrZip?: string | undefined;
3386
+ }>]>>;
3300
3387
  }>, "strip", z.ZodTypeAny, {
3301
- type: "FILE_WITH_OPTIONS";
3388
+ type: "ADDRESS";
3302
3389
  id: string;
3303
- options: {
3304
- value: string;
3305
- label: TranslationConfig;
3306
- }[];
3307
3390
  label: TranslationConfig;
3308
- configuration: {
3309
- maxFileSize: number;
3310
- acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
3311
- };
3312
3391
  parent?: {
3313
3392
  $$field: string;
3314
3393
  } | undefined;
@@ -3331,1011 +3410,36 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
3331
3410
  helperText?: TranslationConfig | undefined;
3332
3411
  hideLabel?: boolean | undefined;
3333
3412
  defaultValue?: {
3334
- type: string;
3335
- option: string;
3336
- filename: string;
3337
- originalFilename: string;
3338
- }[] | undefined;
3413
+ country: string;
3414
+ district: string;
3415
+ addressType: "DOMESTIC";
3416
+ province: string;
3417
+ urbanOrRural: "URBAN";
3418
+ number?: string | undefined;
3419
+ town?: string | undefined;
3420
+ residentialArea?: string | undefined;
3421
+ street?: string | undefined;
3422
+ zipCode?: string | undefined;
3423
+ } | {
3424
+ country: string;
3425
+ district: string;
3426
+ addressType: "DOMESTIC";
3427
+ province: string;
3428
+ urbanOrRural: "RURAL";
3429
+ village?: string | undefined;
3430
+ } | {
3431
+ country: string;
3432
+ state: string;
3433
+ addressType: "INTERNATIONAL";
3434
+ district2: string;
3435
+ cityOrTown?: string | undefined;
3436
+ addressLine1?: string | undefined;
3437
+ addressLine2?: string | undefined;
3438
+ addressLine3?: string | undefined;
3439
+ postcodeOrZip?: string | undefined;
3440
+ } | undefined;
3339
3441
  }, {
3340
- type: "FILE_WITH_OPTIONS";
3341
- id: string;
3342
- options: {
3343
- value: string;
3344
- label: {
3345
- id: string;
3346
- description: string;
3347
- defaultMessage: string;
3348
- };
3349
- }[];
3350
- label: {
3351
- id: string;
3352
- description: string;
3353
- defaultMessage: string;
3354
- };
3355
- parent?: {
3356
- $$field: string;
3357
- } | undefined;
3358
- validation?: {
3359
- message: {
3360
- id: string;
3361
- description: string;
3362
- defaultMessage: string;
3363
- };
3364
- validator: import(".").JSONSchema;
3365
- }[] | undefined;
3366
- required?: boolean | undefined;
3367
- conditionals?: ({
3368
- type: "SHOW";
3369
- conditional: import(".").JSONSchema;
3370
- } | {
3371
- type: "ENABLE";
3372
- conditional: import(".").JSONSchema;
3373
- } | {
3374
- type: "DISPLAY_ON_REVIEW";
3375
- conditional: import(".").JSONSchema;
3376
- })[] | undefined;
3377
- placeholder?: {
3378
- id: string;
3379
- description: string;
3380
- defaultMessage: string;
3381
- } | undefined;
3382
- helperText?: {
3383
- id: string;
3384
- description: string;
3385
- defaultMessage: string;
3386
- } | undefined;
3387
- hideLabel?: boolean | undefined;
3388
- defaultValue?: {
3389
- type: string;
3390
- option: string;
3391
- filename: string;
3392
- originalFilename: string;
3393
- }[] | undefined;
3394
- configuration?: {
3395
- maxFileSize?: number | undefined;
3396
- acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
3397
- } | undefined;
3398
- }>;
3399
- export type FileUploadWithOptions = z.infer<typeof FileUploadWithOptions>;
3400
- declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
3401
- id: z.ZodString;
3402
- parent: z.ZodOptional<z.ZodObject<{
3403
- $$field: z.ZodString;
3404
- }, "strip", z.ZodTypeAny, {
3405
- $$field: string;
3406
- }, {
3407
- $$field: string;
3408
- }>>;
3409
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
3410
- required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3411
- placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3412
- id: string;
3413
- description: string;
3414
- defaultMessage: string;
3415
- }>>;
3416
- validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
3417
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
3418
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3419
- id: string;
3420
- description: string;
3421
- defaultMessage: string;
3422
- }>;
3423
- }, "strip", z.ZodTypeAny, {
3424
- message: TranslationConfig;
3425
- validator: import(".").JSONSchema;
3426
- }, {
3427
- message: {
3428
- id: string;
3429
- description: string;
3430
- defaultMessage: string;
3431
- };
3432
- validator: import(".").JSONSchema;
3433
- }>, "many">>>;
3434
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3435
- id: string;
3436
- description: string;
3437
- defaultMessage: string;
3438
- }>;
3439
- helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3440
- id: string;
3441
- description: string;
3442
- defaultMessage: string;
3443
- }>>;
3444
- hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3445
- }, {
3446
- type: z.ZodLiteral<"FACILITY">;
3447
- defaultValue: z.ZodOptional<z.ZodString>;
3448
- }>, "strip", z.ZodTypeAny, {
3449
- type: "FACILITY";
3450
- id: string;
3451
- label: TranslationConfig;
3452
- parent?: {
3453
- $$field: string;
3454
- } | undefined;
3455
- validation?: {
3456
- message: TranslationConfig;
3457
- validator: import(".").JSONSchema;
3458
- }[] | undefined;
3459
- required?: boolean | undefined;
3460
- conditionals?: ({
3461
- type: "SHOW";
3462
- conditional: import(".").JSONSchema;
3463
- } | {
3464
- type: "ENABLE";
3465
- conditional: import(".").JSONSchema;
3466
- } | {
3467
- type: "DISPLAY_ON_REVIEW";
3468
- conditional: import(".").JSONSchema;
3469
- })[] | undefined;
3470
- placeholder?: TranslationConfig | undefined;
3471
- helperText?: TranslationConfig | undefined;
3472
- hideLabel?: boolean | undefined;
3473
- defaultValue?: string | undefined;
3474
- }, {
3475
- type: "FACILITY";
3476
- id: string;
3477
- label: {
3478
- id: string;
3479
- description: string;
3480
- defaultMessage: string;
3481
- };
3482
- parent?: {
3483
- $$field: string;
3484
- } | undefined;
3485
- validation?: {
3486
- message: {
3487
- id: string;
3488
- description: string;
3489
- defaultMessage: string;
3490
- };
3491
- validator: import(".").JSONSchema;
3492
- }[] | undefined;
3493
- required?: boolean | undefined;
3494
- conditionals?: ({
3495
- type: "SHOW";
3496
- conditional: import(".").JSONSchema;
3497
- } | {
3498
- type: "ENABLE";
3499
- conditional: import(".").JSONSchema;
3500
- } | {
3501
- type: "DISPLAY_ON_REVIEW";
3502
- conditional: import(".").JSONSchema;
3503
- })[] | undefined;
3504
- placeholder?: {
3505
- id: string;
3506
- description: string;
3507
- defaultMessage: string;
3508
- } | undefined;
3509
- helperText?: {
3510
- id: string;
3511
- description: string;
3512
- defaultMessage: string;
3513
- } | undefined;
3514
- hideLabel?: boolean | undefined;
3515
- defaultValue?: string | undefined;
3516
- }>;
3517
- export type Facility = z.infer<typeof Facility>;
3518
- declare const Office: z.ZodObject<z.objectUtil.extendShape<{
3519
- id: z.ZodString;
3520
- parent: z.ZodOptional<z.ZodObject<{
3521
- $$field: z.ZodString;
3522
- }, "strip", z.ZodTypeAny, {
3523
- $$field: string;
3524
- }, {
3525
- $$field: string;
3526
- }>>;
3527
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
3528
- required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3529
- placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3530
- id: string;
3531
- description: string;
3532
- defaultMessage: string;
3533
- }>>;
3534
- validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
3535
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
3536
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3537
- id: string;
3538
- description: string;
3539
- defaultMessage: string;
3540
- }>;
3541
- }, "strip", z.ZodTypeAny, {
3542
- message: TranslationConfig;
3543
- validator: import(".").JSONSchema;
3544
- }, {
3545
- message: {
3546
- id: string;
3547
- description: string;
3548
- defaultMessage: string;
3549
- };
3550
- validator: import(".").JSONSchema;
3551
- }>, "many">>>;
3552
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3553
- id: string;
3554
- description: string;
3555
- defaultMessage: string;
3556
- }>;
3557
- helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3558
- id: string;
3559
- description: string;
3560
- defaultMessage: string;
3561
- }>>;
3562
- hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3563
- }, {
3564
- type: z.ZodLiteral<"OFFICE">;
3565
- defaultValue: z.ZodOptional<z.ZodString>;
3566
- }>, "strip", z.ZodTypeAny, {
3567
- type: "OFFICE";
3568
- id: string;
3569
- label: TranslationConfig;
3570
- parent?: {
3571
- $$field: string;
3572
- } | undefined;
3573
- validation?: {
3574
- message: TranslationConfig;
3575
- validator: import(".").JSONSchema;
3576
- }[] | undefined;
3577
- required?: boolean | undefined;
3578
- conditionals?: ({
3579
- type: "SHOW";
3580
- conditional: import(".").JSONSchema;
3581
- } | {
3582
- type: "ENABLE";
3583
- conditional: import(".").JSONSchema;
3584
- } | {
3585
- type: "DISPLAY_ON_REVIEW";
3586
- conditional: import(".").JSONSchema;
3587
- })[] | undefined;
3588
- placeholder?: TranslationConfig | undefined;
3589
- helperText?: TranslationConfig | undefined;
3590
- hideLabel?: boolean | undefined;
3591
- defaultValue?: string | undefined;
3592
- }, {
3593
- type: "OFFICE";
3594
- id: string;
3595
- label: {
3596
- id: string;
3597
- description: string;
3598
- defaultMessage: string;
3599
- };
3600
- parent?: {
3601
- $$field: string;
3602
- } | undefined;
3603
- validation?: {
3604
- message: {
3605
- id: string;
3606
- description: string;
3607
- defaultMessage: string;
3608
- };
3609
- validator: import(".").JSONSchema;
3610
- }[] | undefined;
3611
- required?: boolean | undefined;
3612
- conditionals?: ({
3613
- type: "SHOW";
3614
- conditional: import(".").JSONSchema;
3615
- } | {
3616
- type: "ENABLE";
3617
- conditional: import(".").JSONSchema;
3618
- } | {
3619
- type: "DISPLAY_ON_REVIEW";
3620
- conditional: import(".").JSONSchema;
3621
- })[] | undefined;
3622
- placeholder?: {
3623
- id: string;
3624
- description: string;
3625
- defaultMessage: string;
3626
- } | undefined;
3627
- helperText?: {
3628
- id: string;
3629
- description: string;
3630
- defaultMessage: string;
3631
- } | undefined;
3632
- hideLabel?: boolean | undefined;
3633
- defaultValue?: string | undefined;
3634
- }>;
3635
- export type Office = z.infer<typeof Office>;
3636
- declare const Address: z.ZodObject<z.objectUtil.extendShape<{
3637
- id: z.ZodString;
3638
- parent: z.ZodOptional<z.ZodObject<{
3639
- $$field: z.ZodString;
3640
- }, "strip", z.ZodTypeAny, {
3641
- $$field: string;
3642
- }, {
3643
- $$field: string;
3644
- }>>;
3645
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
3646
- required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3647
- placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3648
- id: string;
3649
- description: string;
3650
- defaultMessage: string;
3651
- }>>;
3652
- validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
3653
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
3654
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3655
- id: string;
3656
- description: string;
3657
- defaultMessage: string;
3658
- }>;
3659
- }, "strip", z.ZodTypeAny, {
3660
- message: TranslationConfig;
3661
- validator: import(".").JSONSchema;
3662
- }, {
3663
- message: {
3664
- id: string;
3665
- description: string;
3666
- defaultMessage: string;
3667
- };
3668
- validator: import(".").JSONSchema;
3669
- }>, "many">>>;
3670
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3671
- id: string;
3672
- description: string;
3673
- defaultMessage: string;
3674
- }>;
3675
- helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3676
- id: string;
3677
- description: string;
3678
- defaultMessage: string;
3679
- }>>;
3680
- hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3681
- }, {
3682
- type: z.ZodLiteral<"ADDRESS">;
3683
- defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
3684
- country: z.ZodString;
3685
- addressType: z.ZodLiteral<"DOMESTIC">;
3686
- province: z.ZodString;
3687
- district: z.ZodString;
3688
- }, {
3689
- urbanOrRural: z.ZodLiteral<"URBAN">;
3690
- town: z.ZodOptional<z.ZodString>;
3691
- residentialArea: z.ZodOptional<z.ZodString>;
3692
- street: z.ZodOptional<z.ZodString>;
3693
- number: z.ZodOptional<z.ZodString>;
3694
- zipCode: z.ZodOptional<z.ZodString>;
3695
- }>, "strip", z.ZodTypeAny, {
3696
- country: string;
3697
- district: string;
3698
- addressType: "DOMESTIC";
3699
- province: string;
3700
- urbanOrRural: "URBAN";
3701
- number?: string | undefined;
3702
- town?: string | undefined;
3703
- residentialArea?: string | undefined;
3704
- street?: string | undefined;
3705
- zipCode?: string | undefined;
3706
- }, {
3707
- country: string;
3708
- district: string;
3709
- addressType: "DOMESTIC";
3710
- province: string;
3711
- urbanOrRural: "URBAN";
3712
- number?: string | undefined;
3713
- town?: string | undefined;
3714
- residentialArea?: string | undefined;
3715
- street?: string | undefined;
3716
- zipCode?: string | undefined;
3717
- }>, z.ZodObject<z.objectUtil.extendShape<{
3718
- country: z.ZodString;
3719
- addressType: z.ZodLiteral<"DOMESTIC">;
3720
- province: z.ZodString;
3721
- district: z.ZodString;
3722
- }, {
3723
- urbanOrRural: z.ZodLiteral<"RURAL">;
3724
- village: z.ZodOptional<z.ZodString>;
3725
- }>, "strip", z.ZodTypeAny, {
3726
- country: string;
3727
- district: string;
3728
- addressType: "DOMESTIC";
3729
- province: string;
3730
- urbanOrRural: "RURAL";
3731
- village?: string | undefined;
3732
- }, {
3733
- country: string;
3734
- district: string;
3735
- addressType: "DOMESTIC";
3736
- province: string;
3737
- urbanOrRural: "RURAL";
3738
- village?: string | undefined;
3739
- }>]>, z.ZodObject<{
3740
- country: z.ZodString;
3741
- addressType: z.ZodLiteral<"INTERNATIONAL">;
3742
- state: z.ZodString;
3743
- district2: z.ZodString;
3744
- cityOrTown: z.ZodOptional<z.ZodString>;
3745
- addressLine1: z.ZodOptional<z.ZodString>;
3746
- addressLine2: z.ZodOptional<z.ZodString>;
3747
- addressLine3: z.ZodOptional<z.ZodString>;
3748
- postcodeOrZip: z.ZodOptional<z.ZodString>;
3749
- }, "strip", z.ZodTypeAny, {
3750
- country: string;
3751
- state: string;
3752
- addressType: "INTERNATIONAL";
3753
- district2: string;
3754
- cityOrTown?: string | undefined;
3755
- addressLine1?: string | undefined;
3756
- addressLine2?: string | undefined;
3757
- addressLine3?: string | undefined;
3758
- postcodeOrZip?: string | undefined;
3759
- }, {
3760
- country: string;
3761
- state: string;
3762
- addressType: "INTERNATIONAL";
3763
- district2: string;
3764
- cityOrTown?: string | undefined;
3765
- addressLine1?: string | undefined;
3766
- addressLine2?: string | undefined;
3767
- addressLine3?: string | undefined;
3768
- postcodeOrZip?: string | undefined;
3769
- }>]>>;
3770
- }>, "strip", z.ZodTypeAny, {
3771
- type: "ADDRESS";
3772
- id: string;
3773
- label: TranslationConfig;
3774
- parent?: {
3775
- $$field: string;
3776
- } | undefined;
3777
- validation?: {
3778
- message: TranslationConfig;
3779
- validator: import(".").JSONSchema;
3780
- }[] | undefined;
3781
- required?: boolean | undefined;
3782
- conditionals?: ({
3783
- type: "SHOW";
3784
- conditional: import(".").JSONSchema;
3785
- } | {
3786
- type: "ENABLE";
3787
- conditional: import(".").JSONSchema;
3788
- } | {
3789
- type: "DISPLAY_ON_REVIEW";
3790
- conditional: import(".").JSONSchema;
3791
- })[] | undefined;
3792
- placeholder?: TranslationConfig | undefined;
3793
- helperText?: TranslationConfig | undefined;
3794
- hideLabel?: boolean | undefined;
3795
- defaultValue?: {
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: "RURAL";
3812
- village?: string | undefined;
3813
- } | {
3814
- country: string;
3815
- state: string;
3816
- addressType: "INTERNATIONAL";
3817
- district2: string;
3818
- cityOrTown?: string | undefined;
3819
- addressLine1?: string | undefined;
3820
- addressLine2?: string | undefined;
3821
- addressLine3?: string | undefined;
3822
- postcodeOrZip?: string | undefined;
3823
- } | undefined;
3824
- }, {
3825
- type: "ADDRESS";
3826
- id: string;
3827
- label: {
3828
- id: string;
3829
- description: string;
3830
- defaultMessage: string;
3831
- };
3832
- parent?: {
3833
- $$field: string;
3834
- } | undefined;
3835
- validation?: {
3836
- message: {
3837
- id: string;
3838
- description: string;
3839
- defaultMessage: string;
3840
- };
3841
- validator: import(".").JSONSchema;
3842
- }[] | undefined;
3843
- required?: boolean | undefined;
3844
- conditionals?: ({
3845
- type: "SHOW";
3846
- conditional: import(".").JSONSchema;
3847
- } | {
3848
- type: "ENABLE";
3849
- conditional: import(".").JSONSchema;
3850
- } | {
3851
- type: "DISPLAY_ON_REVIEW";
3852
- conditional: import(".").JSONSchema;
3853
- })[] | undefined;
3854
- placeholder?: {
3855
- id: string;
3856
- description: string;
3857
- defaultMessage: string;
3858
- } | undefined;
3859
- helperText?: {
3860
- id: string;
3861
- description: string;
3862
- defaultMessage: string;
3863
- } | undefined;
3864
- hideLabel?: boolean | undefined;
3865
- defaultValue?: {
3866
- country: string;
3867
- district: string;
3868
- addressType: "DOMESTIC";
3869
- province: string;
3870
- urbanOrRural: "URBAN";
3871
- number?: string | undefined;
3872
- town?: string | undefined;
3873
- residentialArea?: string | undefined;
3874
- street?: string | undefined;
3875
- zipCode?: string | undefined;
3876
- } | {
3877
- country: string;
3878
- district: string;
3879
- addressType: "DOMESTIC";
3880
- province: string;
3881
- urbanOrRural: "RURAL";
3882
- village?: string | undefined;
3883
- } | {
3884
- country: string;
3885
- state: string;
3886
- addressType: "INTERNATIONAL";
3887
- district2: string;
3888
- cityOrTown?: string | undefined;
3889
- addressLine1?: string | undefined;
3890
- addressLine2?: string | undefined;
3891
- addressLine3?: string | undefined;
3892
- postcodeOrZip?: string | undefined;
3893
- } | undefined;
3894
- }>;
3895
- export declare const DataEntry: z.ZodUnion<[z.ZodObject<{
3896
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3897
- id: string;
3898
- description: string;
3899
- defaultMessage: string;
3900
- }>;
3901
- value: z.ZodUnion<[z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3902
- id: string;
3903
- description: string;
3904
- defaultMessage: string;
3905
- }>, z.ZodString]>;
3906
- }, "strip", z.ZodTypeAny, {
3907
- value: string | TranslationConfig;
3908
- label: TranslationConfig;
3909
- }, {
3910
- value: string | {
3911
- id: string;
3912
- description: string;
3913
- defaultMessage: string;
3914
- };
3915
- label: {
3916
- id: string;
3917
- description: string;
3918
- defaultMessage: string;
3919
- };
3920
- }>, z.ZodObject<{
3921
- fieldId: z.ZodString;
3922
- }, "strip", z.ZodTypeAny, {
3923
- fieldId: string;
3924
- }, {
3925
- fieldId: string;
3926
- }>]>;
3927
- export type DataEntry = z.infer<typeof DataEntry>;
3928
- declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
3929
- id: z.ZodString;
3930
- parent: z.ZodOptional<z.ZodObject<{
3931
- $$field: z.ZodString;
3932
- }, "strip", z.ZodTypeAny, {
3933
- $$field: string;
3934
- }, {
3935
- $$field: string;
3936
- }>>;
3937
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
3938
- required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3939
- placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3940
- id: string;
3941
- description: string;
3942
- defaultMessage: string;
3943
- }>>;
3944
- validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
3945
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
3946
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3947
- id: string;
3948
- description: string;
3949
- defaultMessage: string;
3950
- }>;
3951
- }, "strip", z.ZodTypeAny, {
3952
- message: TranslationConfig;
3953
- validator: import(".").JSONSchema;
3954
- }, {
3955
- message: {
3956
- id: string;
3957
- description: string;
3958
- defaultMessage: string;
3959
- };
3960
- validator: import(".").JSONSchema;
3961
- }>, "many">>>;
3962
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3963
- id: string;
3964
- description: string;
3965
- defaultMessage: string;
3966
- }>;
3967
- helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3968
- id: string;
3969
- description: string;
3970
- defaultMessage: string;
3971
- }>>;
3972
- hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3973
- }, {
3974
- type: z.ZodLiteral<"DATA">;
3975
- configuration: z.ZodObject<{
3976
- subtitle: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3977
- id: string;
3978
- description: string;
3979
- defaultMessage: string;
3980
- }>>;
3981
- data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
3982
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3983
- id: string;
3984
- description: string;
3985
- defaultMessage: string;
3986
- }>;
3987
- value: z.ZodUnion<[z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3988
- id: string;
3989
- description: string;
3990
- defaultMessage: string;
3991
- }>, z.ZodString]>;
3992
- }, "strip", z.ZodTypeAny, {
3993
- value: string | TranslationConfig;
3994
- label: TranslationConfig;
3995
- }, {
3996
- value: string | {
3997
- id: string;
3998
- description: string;
3999
- defaultMessage: string;
4000
- };
4001
- label: {
4002
- id: string;
4003
- description: string;
4004
- defaultMessage: string;
4005
- };
4006
- }>, z.ZodObject<{
4007
- fieldId: z.ZodString;
4008
- }, "strip", z.ZodTypeAny, {
4009
- fieldId: string;
4010
- }, {
4011
- fieldId: string;
4012
- }>]>, "many">;
4013
- }, "strip", z.ZodTypeAny, {
4014
- data: ({
4015
- value: string | TranslationConfig;
4016
- label: TranslationConfig;
4017
- } | {
4018
- fieldId: string;
4019
- })[];
4020
- subtitle?: TranslationConfig | undefined;
4021
- }, {
4022
- data: ({
4023
- value: string | {
4024
- id: string;
4025
- description: string;
4026
- defaultMessage: string;
4027
- };
4028
- label: {
4029
- id: string;
4030
- description: string;
4031
- defaultMessage: string;
4032
- };
4033
- } | {
4034
- fieldId: string;
4035
- })[];
4036
- subtitle?: {
4037
- id: string;
4038
- description: string;
4039
- defaultMessage: string;
4040
- } | undefined;
4041
- }>;
4042
- }>, "strip", z.ZodTypeAny, {
4043
- type: "DATA";
4044
- id: string;
4045
- label: TranslationConfig;
4046
- configuration: {
4047
- data: ({
4048
- value: string | TranslationConfig;
4049
- label: TranslationConfig;
4050
- } | {
4051
- fieldId: string;
4052
- })[];
4053
- subtitle?: TranslationConfig | undefined;
4054
- };
4055
- parent?: {
4056
- $$field: string;
4057
- } | undefined;
4058
- validation?: {
4059
- message: TranslationConfig;
4060
- validator: import(".").JSONSchema;
4061
- }[] | undefined;
4062
- required?: boolean | undefined;
4063
- conditionals?: ({
4064
- type: "SHOW";
4065
- conditional: import(".").JSONSchema;
4066
- } | {
4067
- type: "ENABLE";
4068
- conditional: import(".").JSONSchema;
4069
- } | {
4070
- type: "DISPLAY_ON_REVIEW";
4071
- conditional: import(".").JSONSchema;
4072
- })[] | undefined;
4073
- placeholder?: TranslationConfig | undefined;
4074
- helperText?: TranslationConfig | undefined;
4075
- hideLabel?: boolean | undefined;
4076
- }, {
4077
- type: "DATA";
4078
- id: string;
4079
- label: {
4080
- id: string;
4081
- description: string;
4082
- defaultMessage: string;
4083
- };
4084
- configuration: {
4085
- data: ({
4086
- value: string | {
4087
- id: string;
4088
- description: string;
4089
- defaultMessage: string;
4090
- };
4091
- label: {
4092
- id: string;
4093
- description: string;
4094
- defaultMessage: string;
4095
- };
4096
- } | {
4097
- fieldId: string;
4098
- })[];
4099
- subtitle?: {
4100
- id: string;
4101
- description: string;
4102
- defaultMessage: string;
4103
- } | undefined;
4104
- };
4105
- parent?: {
4106
- $$field: string;
4107
- } | undefined;
4108
- validation?: {
4109
- message: {
4110
- id: string;
4111
- description: string;
4112
- defaultMessage: string;
4113
- };
4114
- validator: import(".").JSONSchema;
4115
- }[] | undefined;
4116
- required?: boolean | undefined;
4117
- conditionals?: ({
4118
- type: "SHOW";
4119
- conditional: import(".").JSONSchema;
4120
- } | {
4121
- type: "ENABLE";
4122
- conditional: import(".").JSONSchema;
4123
- } | {
4124
- type: "DISPLAY_ON_REVIEW";
4125
- conditional: import(".").JSONSchema;
4126
- })[] | undefined;
4127
- placeholder?: {
4128
- id: string;
4129
- description: string;
4130
- defaultMessage: string;
4131
- } | undefined;
4132
- helperText?: {
4133
- id: string;
4134
- description: string;
4135
- defaultMessage: string;
4136
- } | undefined;
4137
- hideLabel?: boolean | undefined;
4138
- }>;
4139
- export type DataField = z.infer<typeof DataField>;
4140
- /** @knipignore */
4141
- 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;
4142
- /** @knipignore */
4143
- 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>;
4144
- /** @knipignore */
4145
- /**
4146
- * This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
4147
- */
4148
- 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>;
4149
- export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
4150
- id: z.ZodString;
4151
- parent: z.ZodOptional<z.ZodObject<{
4152
- $$field: z.ZodString;
4153
- }, "strip", z.ZodTypeAny, {
4154
- $$field: string;
4155
- }, {
4156
- $$field: string;
4157
- }>>;
4158
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
4159
- required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4160
- placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4161
- id: string;
4162
- description: string;
4163
- defaultMessage: string;
4164
- }>>;
4165
- validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
4166
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
4167
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4168
- id: string;
4169
- description: string;
4170
- defaultMessage: string;
4171
- }>;
4172
- }, "strip", z.ZodTypeAny, {
4173
- message: TranslationConfig;
4174
- validator: import(".").JSONSchema;
4175
- }, {
4176
- message: {
4177
- id: string;
4178
- description: string;
4179
- defaultMessage: string;
4180
- };
4181
- validator: import(".").JSONSchema;
4182
- }>, "many">>>;
4183
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4184
- id: string;
4185
- description: string;
4186
- defaultMessage: string;
4187
- }>;
4188
- helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4189
- id: string;
4190
- description: string;
4191
- defaultMessage: string;
4192
- }>>;
4193
- hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4194
- }, {
4195
- type: z.ZodLiteral<"ADDRESS">;
4196
- defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
4197
- country: z.ZodString;
4198
- addressType: z.ZodLiteral<"DOMESTIC">;
4199
- province: z.ZodString;
4200
- district: z.ZodString;
4201
- }, {
4202
- urbanOrRural: z.ZodLiteral<"URBAN">;
4203
- town: z.ZodOptional<z.ZodString>;
4204
- residentialArea: z.ZodOptional<z.ZodString>;
4205
- street: z.ZodOptional<z.ZodString>;
4206
- number: z.ZodOptional<z.ZodString>;
4207
- zipCode: z.ZodOptional<z.ZodString>;
4208
- }>, "strip", z.ZodTypeAny, {
4209
- country: string;
4210
- district: string;
4211
- addressType: "DOMESTIC";
4212
- province: string;
4213
- urbanOrRural: "URBAN";
4214
- number?: string | undefined;
4215
- town?: string | undefined;
4216
- residentialArea?: string | undefined;
4217
- street?: string | undefined;
4218
- zipCode?: string | undefined;
4219
- }, {
4220
- country: string;
4221
- district: string;
4222
- addressType: "DOMESTIC";
4223
- province: string;
4224
- urbanOrRural: "URBAN";
4225
- number?: string | undefined;
4226
- town?: string | undefined;
4227
- residentialArea?: string | undefined;
4228
- street?: string | undefined;
4229
- zipCode?: string | undefined;
4230
- }>, z.ZodObject<z.objectUtil.extendShape<{
4231
- country: z.ZodString;
4232
- addressType: z.ZodLiteral<"DOMESTIC">;
4233
- province: z.ZodString;
4234
- district: z.ZodString;
4235
- }, {
4236
- urbanOrRural: z.ZodLiteral<"RURAL">;
4237
- village: z.ZodOptional<z.ZodString>;
4238
- }>, "strip", z.ZodTypeAny, {
4239
- country: string;
4240
- district: string;
4241
- addressType: "DOMESTIC";
4242
- province: string;
4243
- urbanOrRural: "RURAL";
4244
- village?: string | undefined;
4245
- }, {
4246
- country: string;
4247
- district: string;
4248
- addressType: "DOMESTIC";
4249
- province: string;
4250
- urbanOrRural: "RURAL";
4251
- village?: string | undefined;
4252
- }>]>, z.ZodObject<{
4253
- country: z.ZodString;
4254
- addressType: z.ZodLiteral<"INTERNATIONAL">;
4255
- state: z.ZodString;
4256
- district2: z.ZodString;
4257
- cityOrTown: z.ZodOptional<z.ZodString>;
4258
- addressLine1: z.ZodOptional<z.ZodString>;
4259
- addressLine2: z.ZodOptional<z.ZodString>;
4260
- addressLine3: z.ZodOptional<z.ZodString>;
4261
- postcodeOrZip: z.ZodOptional<z.ZodString>;
4262
- }, "strip", z.ZodTypeAny, {
4263
- country: string;
4264
- state: string;
4265
- addressType: "INTERNATIONAL";
4266
- district2: string;
4267
- cityOrTown?: string | undefined;
4268
- addressLine1?: string | undefined;
4269
- addressLine2?: string | undefined;
4270
- addressLine3?: string | undefined;
4271
- postcodeOrZip?: string | undefined;
4272
- }, {
4273
- country: string;
4274
- state: string;
4275
- addressType: "INTERNATIONAL";
4276
- district2: string;
4277
- cityOrTown?: string | undefined;
4278
- addressLine1?: string | undefined;
4279
- addressLine2?: string | undefined;
4280
- addressLine3?: string | undefined;
4281
- postcodeOrZip?: string | undefined;
4282
- }>]>>;
4283
- }>, "strip", z.ZodTypeAny, {
4284
- type: "ADDRESS";
4285
- id: string;
4286
- label: TranslationConfig;
4287
- parent?: {
4288
- $$field: string;
4289
- } | undefined;
4290
- validation?: {
4291
- message: TranslationConfig;
4292
- validator: import(".").JSONSchema;
4293
- }[] | undefined;
4294
- required?: boolean | undefined;
4295
- conditionals?: ({
4296
- type: "SHOW";
4297
- conditional: import(".").JSONSchema;
4298
- } | {
4299
- type: "ENABLE";
4300
- conditional: import(".").JSONSchema;
4301
- } | {
4302
- type: "DISPLAY_ON_REVIEW";
4303
- conditional: import(".").JSONSchema;
4304
- })[] | undefined;
4305
- placeholder?: TranslationConfig | undefined;
4306
- helperText?: TranslationConfig | undefined;
4307
- hideLabel?: boolean | undefined;
4308
- defaultValue?: {
4309
- country: string;
4310
- district: string;
4311
- addressType: "DOMESTIC";
4312
- province: string;
4313
- urbanOrRural: "URBAN";
4314
- number?: string | undefined;
4315
- town?: string | undefined;
4316
- residentialArea?: string | undefined;
4317
- street?: string | undefined;
4318
- zipCode?: string | undefined;
4319
- } | {
4320
- country: string;
4321
- district: string;
4322
- addressType: "DOMESTIC";
4323
- province: string;
4324
- urbanOrRural: "RURAL";
4325
- village?: string | undefined;
4326
- } | {
4327
- country: string;
4328
- state: string;
4329
- addressType: "INTERNATIONAL";
4330
- district2: string;
4331
- cityOrTown?: string | undefined;
4332
- addressLine1?: string | undefined;
4333
- addressLine2?: string | undefined;
4334
- addressLine3?: string | undefined;
4335
- postcodeOrZip?: string | undefined;
4336
- } | undefined;
4337
- }, {
4338
- type: "ADDRESS";
3442
+ type: "ADDRESS";
4339
3443
  id: string;
4340
3444
  label: {
4341
3445
  id: string;
@@ -4404,175 +3508,41 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4404
3508
  addressLine3?: string | undefined;
4405
3509
  postcodeOrZip?: string | undefined;
4406
3510
  } | undefined;
4407
- }>, z.ZodObject<z.objectUtil.extendShape<{
4408
- id: z.ZodString;
4409
- parent: z.ZodOptional<z.ZodObject<{
4410
- $$field: z.ZodString;
4411
- }, "strip", z.ZodTypeAny, {
4412
- $$field: string;
4413
- }, {
4414
- $$field: string;
4415
- }>>;
4416
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
4417
- required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4418
- placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4419
- id: string;
4420
- description: string;
4421
- defaultMessage: string;
4422
- }>>;
4423
- validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
4424
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
4425
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4426
- id: string;
4427
- description: string;
4428
- defaultMessage: string;
4429
- }>;
4430
- }, "strip", z.ZodTypeAny, {
4431
- message: TranslationConfig;
4432
- validator: import(".").JSONSchema;
4433
- }, {
4434
- message: {
4435
- id: string;
4436
- description: string;
4437
- defaultMessage: string;
4438
- };
4439
- validator: import(".").JSONSchema;
4440
- }>, "many">>>;
3511
+ }>;
3512
+ export declare const DataEntry: z.ZodUnion<[z.ZodObject<{
4441
3513
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4442
3514
  id: string;
4443
3515
  description: string;
4444
3516
  defaultMessage: string;
4445
3517
  }>;
4446
- helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3518
+ value: z.ZodUnion<[z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4447
3519
  id: string;
4448
3520
  description: string;
4449
3521
  defaultMessage: string;
4450
- }>>;
4451
- hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4452
- }, {
4453
- type: z.ZodLiteral<"TEXT">;
4454
- defaultValue: z.ZodOptional<z.ZodString>;
4455
- configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
4456
- maxLength: z.ZodOptional<z.ZodNumber>;
4457
- type: z.ZodOptional<z.ZodEnum<["text", "password"]>>;
4458
- prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4459
- id: string;
4460
- description: string;
4461
- defaultMessage: string;
4462
- }>>;
4463
- postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4464
- id: string;
4465
- description: string;
4466
- defaultMessage: string;
4467
- }>>;
4468
- }, "strip", z.ZodTypeAny, {
4469
- type?: "text" | "password" | undefined;
4470
- maxLength?: number | undefined;
4471
- prefix?: TranslationConfig | undefined;
4472
- postfix?: TranslationConfig | undefined;
4473
- }, {
4474
- type?: "text" | "password" | undefined;
4475
- maxLength?: number | undefined;
4476
- prefix?: {
4477
- id: string;
4478
- description: string;
4479
- defaultMessage: string;
4480
- } | undefined;
4481
- postfix?: {
4482
- id: string;
4483
- description: string;
4484
- defaultMessage: string;
4485
- } | undefined;
4486
- }>>>;
4487
- }>, "strip", z.ZodTypeAny, {
4488
- type: "TEXT";
4489
- id: string;
3522
+ }>, z.ZodString]>;
3523
+ }, "strip", z.ZodTypeAny, {
3524
+ value: string | TranslationConfig;
4490
3525
  label: TranslationConfig;
4491
- parent?: {
4492
- $$field: string;
4493
- } | undefined;
4494
- validation?: {
4495
- message: TranslationConfig;
4496
- validator: import(".").JSONSchema;
4497
- }[] | undefined;
4498
- required?: boolean | undefined;
4499
- conditionals?: ({
4500
- type: "SHOW";
4501
- conditional: import(".").JSONSchema;
4502
- } | {
4503
- type: "ENABLE";
4504
- conditional: import(".").JSONSchema;
4505
- } | {
4506
- type: "DISPLAY_ON_REVIEW";
4507
- conditional: import(".").JSONSchema;
4508
- })[] | undefined;
4509
- placeholder?: TranslationConfig | undefined;
4510
- helperText?: TranslationConfig | undefined;
4511
- hideLabel?: boolean | undefined;
4512
- defaultValue?: string | undefined;
4513
- configuration?: {
4514
- type?: "text" | "password" | undefined;
4515
- maxLength?: number | undefined;
4516
- prefix?: TranslationConfig | undefined;
4517
- postfix?: TranslationConfig | undefined;
4518
- } | undefined;
4519
3526
  }, {
4520
- type: "TEXT";
4521
- id: string;
4522
- label: {
3527
+ value: string | {
4523
3528
  id: string;
4524
3529
  description: string;
4525
3530
  defaultMessage: string;
4526
3531
  };
4527
- parent?: {
4528
- $$field: string;
4529
- } | undefined;
4530
- validation?: {
4531
- message: {
4532
- id: string;
4533
- description: string;
4534
- defaultMessage: string;
4535
- };
4536
- validator: import(".").JSONSchema;
4537
- }[] | undefined;
4538
- required?: boolean | undefined;
4539
- conditionals?: ({
4540
- type: "SHOW";
4541
- conditional: import(".").JSONSchema;
4542
- } | {
4543
- type: "ENABLE";
4544
- conditional: import(".").JSONSchema;
4545
- } | {
4546
- type: "DISPLAY_ON_REVIEW";
4547
- conditional: import(".").JSONSchema;
4548
- })[] | undefined;
4549
- placeholder?: {
4550
- id: string;
4551
- description: string;
4552
- defaultMessage: string;
4553
- } | undefined;
4554
- helperText?: {
3532
+ label: {
4555
3533
  id: string;
4556
3534
  description: string;
4557
3535
  defaultMessage: string;
4558
- } | undefined;
4559
- hideLabel?: boolean | undefined;
4560
- defaultValue?: string | undefined;
4561
- configuration?: {
4562
- type?: "text" | "password" | undefined;
4563
- maxLength?: number | undefined;
4564
- prefix?: {
4565
- id: string;
4566
- description: string;
4567
- defaultMessage: string;
4568
- } | undefined;
4569
- postfix?: {
4570
- id: string;
4571
- description: string;
4572
- defaultMessage: string;
4573
- } | undefined;
4574
- } | undefined;
4575
- }>, z.ZodObject<z.objectUtil.extendShape<{
3536
+ };
3537
+ }>, z.ZodObject<{
3538
+ fieldId: z.ZodString;
3539
+ }, "strip", z.ZodTypeAny, {
3540
+ fieldId: string;
3541
+ }, {
3542
+ fieldId: string;
3543
+ }>]>;
3544
+ export type DataEntry = z.infer<typeof DataEntry>;
3545
+ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
4576
3546
  id: z.ZodString;
4577
3547
  parent: z.ZodOptional<z.ZodObject<{
4578
3548
  $$field: z.ZodString;
@@ -4618,44 +3588,87 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4618
3588
  }>>;
4619
3589
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4620
3590
  }, {
4621
- type: z.ZodLiteral<"NUMBER">;
4622
- defaultValue: z.ZodOptional<z.ZodNumber>;
4623
- configuration: z.ZodOptional<z.ZodObject<{
4624
- min: z.ZodOptional<z.ZodNumber>;
4625
- max: z.ZodOptional<z.ZodNumber>;
4626
- prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4627
- id: string;
4628
- description: string;
4629
- defaultMessage: string;
4630
- }>>;
4631
- postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3591
+ type: z.ZodLiteral<"DATA">;
3592
+ configuration: z.ZodObject<{
3593
+ subtitle: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4632
3594
  id: string;
4633
3595
  description: string;
4634
3596
  defaultMessage: string;
4635
3597
  }>>;
3598
+ data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
3599
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3600
+ id: string;
3601
+ description: string;
3602
+ defaultMessage: string;
3603
+ }>;
3604
+ value: z.ZodUnion<[z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3605
+ id: string;
3606
+ description: string;
3607
+ defaultMessage: string;
3608
+ }>, z.ZodString]>;
3609
+ }, "strip", z.ZodTypeAny, {
3610
+ value: string | TranslationConfig;
3611
+ label: TranslationConfig;
3612
+ }, {
3613
+ value: string | {
3614
+ id: string;
3615
+ description: string;
3616
+ defaultMessage: string;
3617
+ };
3618
+ label: {
3619
+ id: string;
3620
+ description: string;
3621
+ defaultMessage: string;
3622
+ };
3623
+ }>, z.ZodObject<{
3624
+ fieldId: z.ZodString;
3625
+ }, "strip", z.ZodTypeAny, {
3626
+ fieldId: string;
3627
+ }, {
3628
+ fieldId: string;
3629
+ }>]>, "many">;
4636
3630
  }, "strip", z.ZodTypeAny, {
4637
- prefix?: TranslationConfig | undefined;
4638
- postfix?: TranslationConfig | undefined;
4639
- min?: number | undefined;
4640
- max?: number | undefined;
3631
+ data: ({
3632
+ value: string | TranslationConfig;
3633
+ label: TranslationConfig;
3634
+ } | {
3635
+ fieldId: string;
3636
+ })[];
3637
+ subtitle?: TranslationConfig | undefined;
4641
3638
  }, {
4642
- prefix?: {
4643
- id: string;
4644
- description: string;
4645
- defaultMessage: string;
4646
- } | undefined;
4647
- postfix?: {
3639
+ data: ({
3640
+ value: string | {
3641
+ id: string;
3642
+ description: string;
3643
+ defaultMessage: string;
3644
+ };
3645
+ label: {
3646
+ id: string;
3647
+ description: string;
3648
+ defaultMessage: string;
3649
+ };
3650
+ } | {
3651
+ fieldId: string;
3652
+ })[];
3653
+ subtitle?: {
4648
3654
  id: string;
4649
3655
  description: string;
4650
3656
  defaultMessage: string;
4651
3657
  } | undefined;
4652
- min?: number | undefined;
4653
- max?: number | undefined;
4654
- }>>;
3658
+ }>;
4655
3659
  }>, "strip", z.ZodTypeAny, {
4656
- type: "NUMBER";
3660
+ type: "DATA";
4657
3661
  id: string;
4658
3662
  label: TranslationConfig;
3663
+ configuration: {
3664
+ data: ({
3665
+ value: string | TranslationConfig;
3666
+ label: TranslationConfig;
3667
+ } | {
3668
+ fieldId: string;
3669
+ })[];
3670
+ subtitle?: TranslationConfig | undefined;
3671
+ };
4659
3672
  parent?: {
4660
3673
  $$field: string;
4661
3674
  } | undefined;
@@ -4677,21 +3690,35 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4677
3690
  placeholder?: TranslationConfig | undefined;
4678
3691
  helperText?: TranslationConfig | undefined;
4679
3692
  hideLabel?: boolean | undefined;
4680
- defaultValue?: number | undefined;
4681
- configuration?: {
4682
- prefix?: TranslationConfig | undefined;
4683
- postfix?: TranslationConfig | undefined;
4684
- min?: number | undefined;
4685
- max?: number | undefined;
4686
- } | undefined;
4687
3693
  }, {
4688
- type: "NUMBER";
3694
+ type: "DATA";
4689
3695
  id: string;
4690
3696
  label: {
4691
3697
  id: string;
4692
3698
  description: string;
4693
3699
  defaultMessage: string;
4694
3700
  };
3701
+ configuration: {
3702
+ data: ({
3703
+ value: string | {
3704
+ id: string;
3705
+ description: string;
3706
+ defaultMessage: string;
3707
+ };
3708
+ label: {
3709
+ id: string;
3710
+ description: string;
3711
+ defaultMessage: string;
3712
+ };
3713
+ } | {
3714
+ fieldId: string;
3715
+ })[];
3716
+ subtitle?: {
3717
+ id: string;
3718
+ description: string;
3719
+ defaultMessage: string;
3720
+ } | undefined;
3721
+ };
4695
3722
  parent?: {
4696
3723
  $$field: string;
4697
3724
  } | undefined;
@@ -4725,22 +3752,18 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4725
3752
  defaultMessage: string;
4726
3753
  } | undefined;
4727
3754
  hideLabel?: boolean | undefined;
4728
- defaultValue?: number | undefined;
4729
- configuration?: {
4730
- prefix?: {
4731
- id: string;
4732
- description: string;
4733
- defaultMessage: string;
4734
- } | undefined;
4735
- postfix?: {
4736
- id: string;
4737
- description: string;
4738
- defaultMessage: string;
4739
- } | undefined;
4740
- min?: number | undefined;
4741
- max?: number | undefined;
4742
- } | undefined;
4743
- }>, z.ZodObject<z.objectUtil.extendShape<{
3755
+ }>;
3756
+ export type DataField = z.infer<typeof DataField>;
3757
+ /** @knipignore */
3758
+ 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;
3759
+ /** @knipignore */
3760
+ 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>;
3761
+ /** @knipignore */
3762
+ /**
3763
+ * This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
3764
+ */
3765
+ 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>;
3766
+ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
4744
3767
  id: z.ZodString;
4745
3768
  parent: z.ZodOptional<z.ZodObject<{
4746
3769
  $$field: z.ZodString;
@@ -4786,45 +3809,96 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4786
3809
  }>>;
4787
3810
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4788
3811
  }, {
4789
- type: z.ZodLiteral<"TEXTAREA">;
4790
- defaultValue: z.ZodOptional<z.ZodString>;
4791
- configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
4792
- maxLength: z.ZodOptional<z.ZodNumber>;
4793
- rows: z.ZodOptional<z.ZodNumber>;
4794
- cols: z.ZodOptional<z.ZodNumber>;
4795
- prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4796
- id: string;
4797
- description: string;
4798
- defaultMessage: string;
4799
- }>>;
4800
- postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4801
- id: string;
4802
- description: string;
4803
- defaultMessage: string;
4804
- }>>;
3812
+ type: z.ZodLiteral<"ADDRESS">;
3813
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
3814
+ country: z.ZodString;
3815
+ addressType: z.ZodLiteral<"DOMESTIC">;
3816
+ province: z.ZodString;
3817
+ district: z.ZodString;
3818
+ }, {
3819
+ urbanOrRural: z.ZodLiteral<"URBAN">;
3820
+ town: z.ZodOptional<z.ZodString>;
3821
+ residentialArea: z.ZodOptional<z.ZodString>;
3822
+ street: z.ZodOptional<z.ZodString>;
3823
+ number: z.ZodOptional<z.ZodString>;
3824
+ zipCode: z.ZodOptional<z.ZodString>;
3825
+ }>, "strip", z.ZodTypeAny, {
3826
+ country: string;
3827
+ district: string;
3828
+ addressType: "DOMESTIC";
3829
+ province: string;
3830
+ urbanOrRural: "URBAN";
3831
+ number?: string | undefined;
3832
+ town?: string | undefined;
3833
+ residentialArea?: string | undefined;
3834
+ street?: string | undefined;
3835
+ zipCode?: string | undefined;
3836
+ }, {
3837
+ country: string;
3838
+ district: string;
3839
+ addressType: "DOMESTIC";
3840
+ province: string;
3841
+ urbanOrRural: "URBAN";
3842
+ number?: string | undefined;
3843
+ town?: string | undefined;
3844
+ residentialArea?: string | undefined;
3845
+ street?: string | undefined;
3846
+ zipCode?: string | undefined;
3847
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3848
+ country: z.ZodString;
3849
+ addressType: z.ZodLiteral<"DOMESTIC">;
3850
+ province: z.ZodString;
3851
+ district: z.ZodString;
3852
+ }, {
3853
+ urbanOrRural: z.ZodLiteral<"RURAL">;
3854
+ village: z.ZodOptional<z.ZodString>;
3855
+ }>, "strip", z.ZodTypeAny, {
3856
+ country: string;
3857
+ district: string;
3858
+ addressType: "DOMESTIC";
3859
+ province: string;
3860
+ urbanOrRural: "RURAL";
3861
+ village?: string | undefined;
3862
+ }, {
3863
+ country: string;
3864
+ district: string;
3865
+ addressType: "DOMESTIC";
3866
+ province: string;
3867
+ urbanOrRural: "RURAL";
3868
+ village?: string | undefined;
3869
+ }>]>, z.ZodObject<{
3870
+ country: z.ZodString;
3871
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
3872
+ state: z.ZodString;
3873
+ district2: z.ZodString;
3874
+ cityOrTown: z.ZodOptional<z.ZodString>;
3875
+ addressLine1: z.ZodOptional<z.ZodString>;
3876
+ addressLine2: z.ZodOptional<z.ZodString>;
3877
+ addressLine3: z.ZodOptional<z.ZodString>;
3878
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
4805
3879
  }, "strip", z.ZodTypeAny, {
4806
- maxLength?: number | undefined;
4807
- prefix?: TranslationConfig | undefined;
4808
- postfix?: TranslationConfig | undefined;
4809
- rows?: number | undefined;
4810
- cols?: number | undefined;
3880
+ country: string;
3881
+ state: string;
3882
+ addressType: "INTERNATIONAL";
3883
+ district2: string;
3884
+ cityOrTown?: string | undefined;
3885
+ addressLine1?: string | undefined;
3886
+ addressLine2?: string | undefined;
3887
+ addressLine3?: string | undefined;
3888
+ postcodeOrZip?: string | undefined;
4811
3889
  }, {
4812
- maxLength?: number | undefined;
4813
- prefix?: {
4814
- id: string;
4815
- description: string;
4816
- defaultMessage: string;
4817
- } | undefined;
4818
- postfix?: {
4819
- id: string;
4820
- description: string;
4821
- defaultMessage: string;
4822
- } | undefined;
4823
- rows?: number | undefined;
4824
- cols?: number | undefined;
4825
- }>>>;
3890
+ country: string;
3891
+ state: string;
3892
+ addressType: "INTERNATIONAL";
3893
+ district2: string;
3894
+ cityOrTown?: string | undefined;
3895
+ addressLine1?: string | undefined;
3896
+ addressLine2?: string | undefined;
3897
+ addressLine3?: string | undefined;
3898
+ postcodeOrZip?: string | undefined;
3899
+ }>]>>;
4826
3900
  }>, "strip", z.ZodTypeAny, {
4827
- type: "TEXTAREA";
3901
+ type: "ADDRESS";
4828
3902
  id: string;
4829
3903
  label: TranslationConfig;
4830
3904
  parent?: {
@@ -4848,16 +3922,37 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4848
3922
  placeholder?: TranslationConfig | undefined;
4849
3923
  helperText?: TranslationConfig | undefined;
4850
3924
  hideLabel?: boolean | undefined;
4851
- defaultValue?: string | undefined;
4852
- configuration?: {
4853
- maxLength?: number | undefined;
4854
- prefix?: TranslationConfig | undefined;
4855
- postfix?: TranslationConfig | undefined;
4856
- rows?: number | undefined;
4857
- cols?: number | undefined;
3925
+ defaultValue?: {
3926
+ country: string;
3927
+ district: string;
3928
+ addressType: "DOMESTIC";
3929
+ province: string;
3930
+ urbanOrRural: "URBAN";
3931
+ number?: string | undefined;
3932
+ town?: string | undefined;
3933
+ residentialArea?: string | undefined;
3934
+ street?: string | undefined;
3935
+ zipCode?: string | undefined;
3936
+ } | {
3937
+ country: string;
3938
+ district: string;
3939
+ addressType: "DOMESTIC";
3940
+ province: string;
3941
+ urbanOrRural: "RURAL";
3942
+ village?: string | undefined;
3943
+ } | {
3944
+ country: string;
3945
+ state: string;
3946
+ addressType: "INTERNATIONAL";
3947
+ district2: string;
3948
+ cityOrTown?: string | undefined;
3949
+ addressLine1?: string | undefined;
3950
+ addressLine2?: string | undefined;
3951
+ addressLine3?: string | undefined;
3952
+ postcodeOrZip?: string | undefined;
4858
3953
  } | undefined;
4859
3954
  }, {
4860
- type: "TEXTAREA";
3955
+ type: "ADDRESS";
4861
3956
  id: string;
4862
3957
  label: {
4863
3958
  id: string;
@@ -4896,23 +3991,36 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4896
3991
  description: string;
4897
3992
  defaultMessage: string;
4898
3993
  } | undefined;
4899
- hideLabel?: boolean | undefined;
4900
- defaultValue?: string | undefined;
4901
- configuration?: {
4902
- maxLength?: number | undefined;
4903
- prefix?: {
4904
- id: string;
4905
- description: string;
4906
- defaultMessage: string;
4907
- } | undefined;
4908
- postfix?: {
4909
- id: string;
4910
- description: string;
4911
- defaultMessage: string;
4912
- } | undefined;
4913
- rows?: number | undefined;
4914
- cols?: number | undefined;
4915
- } | undefined;
3994
+ hideLabel?: boolean | undefined;
3995
+ defaultValue?: {
3996
+ country: string;
3997
+ district: string;
3998
+ addressType: "DOMESTIC";
3999
+ province: string;
4000
+ urbanOrRural: "URBAN";
4001
+ number?: string | undefined;
4002
+ town?: string | undefined;
4003
+ residentialArea?: string | undefined;
4004
+ street?: string | undefined;
4005
+ zipCode?: string | undefined;
4006
+ } | {
4007
+ country: string;
4008
+ district: string;
4009
+ addressType: "DOMESTIC";
4010
+ province: string;
4011
+ urbanOrRural: "RURAL";
4012
+ village?: string | undefined;
4013
+ } | {
4014
+ country: string;
4015
+ state: string;
4016
+ addressType: "INTERNATIONAL";
4017
+ district2: string;
4018
+ cityOrTown?: string | undefined;
4019
+ addressLine1?: string | undefined;
4020
+ addressLine2?: string | undefined;
4021
+ addressLine3?: string | undefined;
4022
+ postcodeOrZip?: string | undefined;
4023
+ } | undefined;
4916
4024
  }>, z.ZodObject<z.objectUtil.extendShape<{
4917
4025
  id: z.ZodString;
4918
4026
  parent: z.ZodOptional<z.ZodObject<{
@@ -4959,25 +4067,42 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4959
4067
  }>>;
4960
4068
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4961
4069
  }, {
4962
- type: z.ZodLiteral<"DATE">;
4070
+ type: z.ZodLiteral<"TEXT">;
4963
4071
  defaultValue: z.ZodOptional<z.ZodString>;
4964
- configuration: z.ZodOptional<z.ZodObject<{
4965
- notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4072
+ configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
4073
+ maxLength: z.ZodOptional<z.ZodNumber>;
4074
+ type: z.ZodOptional<z.ZodEnum<["text", "password"]>>;
4075
+ prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4076
+ id: string;
4077
+ description: string;
4078
+ defaultMessage: string;
4079
+ }>>;
4080
+ postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4966
4081
  id: string;
4967
4082
  description: string;
4968
4083
  defaultMessage: string;
4969
4084
  }>>;
4970
4085
  }, "strip", z.ZodTypeAny, {
4971
- notice?: TranslationConfig | undefined;
4086
+ type?: "text" | "password" | undefined;
4087
+ maxLength?: number | undefined;
4088
+ prefix?: TranslationConfig | undefined;
4089
+ postfix?: TranslationConfig | undefined;
4972
4090
  }, {
4973
- notice?: {
4091
+ type?: "text" | "password" | undefined;
4092
+ maxLength?: number | undefined;
4093
+ prefix?: {
4974
4094
  id: string;
4975
4095
  description: string;
4976
4096
  defaultMessage: string;
4977
4097
  } | undefined;
4978
- }>>;
4098
+ postfix?: {
4099
+ id: string;
4100
+ description: string;
4101
+ defaultMessage: string;
4102
+ } | undefined;
4103
+ }>>>;
4979
4104
  }>, "strip", z.ZodTypeAny, {
4980
- type: "DATE";
4105
+ type: "TEXT";
4981
4106
  id: string;
4982
4107
  label: TranslationConfig;
4983
4108
  parent?: {
@@ -5003,10 +4128,13 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5003
4128
  hideLabel?: boolean | undefined;
5004
4129
  defaultValue?: string | undefined;
5005
4130
  configuration?: {
5006
- notice?: TranslationConfig | undefined;
4131
+ type?: "text" | "password" | undefined;
4132
+ maxLength?: number | undefined;
4133
+ prefix?: TranslationConfig | undefined;
4134
+ postfix?: TranslationConfig | undefined;
5007
4135
  } | undefined;
5008
4136
  }, {
5009
- type: "DATE";
4137
+ type: "TEXT";
5010
4138
  id: string;
5011
4139
  label: {
5012
4140
  id: string;
@@ -5048,7 +4176,14 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5048
4176
  hideLabel?: boolean | undefined;
5049
4177
  defaultValue?: string | undefined;
5050
4178
  configuration?: {
5051
- notice?: {
4179
+ type?: "text" | "password" | undefined;
4180
+ maxLength?: number | undefined;
4181
+ prefix?: {
4182
+ id: string;
4183
+ description: string;
4184
+ defaultMessage: string;
4185
+ } | undefined;
4186
+ postfix?: {
5052
4187
  id: string;
5053
4188
  description: string;
5054
4189
  defaultMessage: string;
@@ -5100,25 +4235,42 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5100
4235
  }>>;
5101
4236
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5102
4237
  }, {
5103
- type: z.ZodLiteral<"DATE_RANGE">;
5104
- defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>;
4238
+ type: z.ZodLiteral<"NUMBER">;
4239
+ defaultValue: z.ZodOptional<z.ZodNumber>;
5105
4240
  configuration: z.ZodOptional<z.ZodObject<{
5106
- notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4241
+ min: z.ZodOptional<z.ZodNumber>;
4242
+ max: z.ZodOptional<z.ZodNumber>;
4243
+ prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4244
+ id: string;
4245
+ description: string;
4246
+ defaultMessage: string;
4247
+ }>>;
4248
+ postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5107
4249
  id: string;
5108
4250
  description: string;
5109
4251
  defaultMessage: string;
5110
4252
  }>>;
5111
4253
  }, "strip", z.ZodTypeAny, {
5112
- notice?: TranslationConfig | undefined;
4254
+ prefix?: TranslationConfig | undefined;
4255
+ postfix?: TranslationConfig | undefined;
4256
+ min?: number | undefined;
4257
+ max?: number | undefined;
5113
4258
  }, {
5114
- notice?: {
4259
+ prefix?: {
4260
+ id: string;
4261
+ description: string;
4262
+ defaultMessage: string;
4263
+ } | undefined;
4264
+ postfix?: {
5115
4265
  id: string;
5116
4266
  description: string;
5117
4267
  defaultMessage: string;
5118
4268
  } | undefined;
4269
+ min?: number | undefined;
4270
+ max?: number | undefined;
5119
4271
  }>>;
5120
4272
  }>, "strip", z.ZodTypeAny, {
5121
- type: "DATE_RANGE";
4273
+ type: "NUMBER";
5122
4274
  id: string;
5123
4275
  label: TranslationConfig;
5124
4276
  parent?: {
@@ -5142,12 +4294,15 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5142
4294
  placeholder?: TranslationConfig | undefined;
5143
4295
  helperText?: TranslationConfig | undefined;
5144
4296
  hideLabel?: boolean | undefined;
5145
- defaultValue?: string | [string, string] | undefined;
4297
+ defaultValue?: number | undefined;
5146
4298
  configuration?: {
5147
- notice?: TranslationConfig | undefined;
4299
+ prefix?: TranslationConfig | undefined;
4300
+ postfix?: TranslationConfig | undefined;
4301
+ min?: number | undefined;
4302
+ max?: number | undefined;
5148
4303
  } | undefined;
5149
4304
  }, {
5150
- type: "DATE_RANGE";
4305
+ type: "NUMBER";
5151
4306
  id: string;
5152
4307
  label: {
5153
4308
  id: string;
@@ -5187,13 +4342,20 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5187
4342
  defaultMessage: string;
5188
4343
  } | undefined;
5189
4344
  hideLabel?: boolean | undefined;
5190
- defaultValue?: string | [string, string] | undefined;
4345
+ defaultValue?: number | undefined;
5191
4346
  configuration?: {
5192
- notice?: {
4347
+ prefix?: {
4348
+ id: string;
4349
+ description: string;
4350
+ defaultMessage: string;
4351
+ } | undefined;
4352
+ postfix?: {
5193
4353
  id: string;
5194
4354
  description: string;
5195
4355
  defaultMessage: string;
5196
4356
  } | undefined;
4357
+ min?: number | undefined;
4358
+ max?: number | undefined;
5197
4359
  } | undefined;
5198
4360
  }>, z.ZodObject<z.objectUtil.extendShape<{
5199
4361
  id: z.ZodString;
@@ -5241,34 +4403,47 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5241
4403
  }>>;
5242
4404
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5243
4405
  }, {
5244
- type: z.ZodLiteral<"PARAGRAPH">;
4406
+ type: z.ZodLiteral<"TEXTAREA">;
5245
4407
  defaultValue: z.ZodOptional<z.ZodString>;
5246
- configuration: z.ZodDefault<z.ZodObject<{
5247
- styles: z.ZodOptional<z.ZodObject<{
5248
- fontVariant: z.ZodOptional<z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>>;
5249
- }, "strip", z.ZodTypeAny, {
5250
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5251
- }, {
5252
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4408
+ configuration: z.ZodOptional<z.ZodDefault<z.ZodObject<{
4409
+ maxLength: z.ZodOptional<z.ZodNumber>;
4410
+ rows: z.ZodOptional<z.ZodNumber>;
4411
+ cols: z.ZodOptional<z.ZodNumber>;
4412
+ prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4413
+ id: string;
4414
+ description: string;
4415
+ defaultMessage: string;
4416
+ }>>;
4417
+ postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4418
+ id: string;
4419
+ description: string;
4420
+ defaultMessage: string;
5253
4421
  }>>;
5254
4422
  }, "strip", z.ZodTypeAny, {
5255
- styles?: {
5256
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5257
- } | undefined;
4423
+ maxLength?: number | undefined;
4424
+ prefix?: TranslationConfig | undefined;
4425
+ postfix?: TranslationConfig | undefined;
4426
+ rows?: number | undefined;
4427
+ cols?: number | undefined;
5258
4428
  }, {
5259
- styles?: {
5260
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4429
+ maxLength?: number | undefined;
4430
+ prefix?: {
4431
+ id: string;
4432
+ description: string;
4433
+ defaultMessage: string;
5261
4434
  } | undefined;
5262
- }>>;
4435
+ postfix?: {
4436
+ id: string;
4437
+ description: string;
4438
+ defaultMessage: string;
4439
+ } | undefined;
4440
+ rows?: number | undefined;
4441
+ cols?: number | undefined;
4442
+ }>>>;
5263
4443
  }>, "strip", z.ZodTypeAny, {
5264
- type: "PARAGRAPH";
4444
+ type: "TEXTAREA";
5265
4445
  id: string;
5266
4446
  label: TranslationConfig;
5267
- configuration: {
5268
- styles?: {
5269
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5270
- } | undefined;
5271
- };
5272
4447
  parent?: {
5273
4448
  $$field: string;
5274
4449
  } | undefined;
@@ -5291,8 +4466,15 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5291
4466
  helperText?: TranslationConfig | undefined;
5292
4467
  hideLabel?: boolean | undefined;
5293
4468
  defaultValue?: string | undefined;
4469
+ configuration?: {
4470
+ maxLength?: number | undefined;
4471
+ prefix?: TranslationConfig | undefined;
4472
+ postfix?: TranslationConfig | undefined;
4473
+ rows?: number | undefined;
4474
+ cols?: number | undefined;
4475
+ } | undefined;
5294
4476
  }, {
5295
- type: "PARAGRAPH";
4477
+ type: "TEXTAREA";
5296
4478
  id: string;
5297
4479
  label: {
5298
4480
  id: string;
@@ -5334,9 +4516,19 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5334
4516
  hideLabel?: boolean | undefined;
5335
4517
  defaultValue?: string | undefined;
5336
4518
  configuration?: {
5337
- styles?: {
5338
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4519
+ maxLength?: number | undefined;
4520
+ prefix?: {
4521
+ id: string;
4522
+ description: string;
4523
+ defaultMessage: string;
4524
+ } | undefined;
4525
+ postfix?: {
4526
+ id: string;
4527
+ description: string;
4528
+ defaultMessage: string;
5339
4529
  } | undefined;
4530
+ rows?: number | undefined;
4531
+ cols?: number | undefined;
5340
4532
  } | undefined;
5341
4533
  }>, z.ZodObject<z.objectUtil.extendShape<{
5342
4534
  id: z.ZodString;
@@ -5384,50 +4576,26 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5384
4576
  }>>;
5385
4577
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5386
4578
  }, {
5387
- type: z.ZodLiteral<"RADIO_GROUP">;
4579
+ type: z.ZodLiteral<"DATE">;
5388
4580
  defaultValue: z.ZodOptional<z.ZodString>;
5389
- options: z.ZodArray<z.ZodObject<{
5390
- value: z.ZodString;
5391
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4581
+ configuration: z.ZodOptional<z.ZodObject<{
4582
+ notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5392
4583
  id: string;
5393
4584
  description: string;
5394
4585
  defaultMessage: string;
5395
- }>;
4586
+ }>>;
5396
4587
  }, "strip", z.ZodTypeAny, {
5397
- value: string;
5398
- label: TranslationConfig;
4588
+ notice?: TranslationConfig | undefined;
5399
4589
  }, {
5400
- value: string;
5401
- label: {
4590
+ notice?: {
5402
4591
  id: string;
5403
4592
  description: string;
5404
4593
  defaultMessage: string;
5405
- };
5406
- }>, "many">;
5407
- configuration: z.ZodOptional<z.ZodObject<{
5408
- styles: z.ZodOptional<z.ZodObject<{
5409
- size: z.ZodOptional<z.ZodEnum<["NORMAL", "LARGE"]>>;
5410
- }, "strip", z.ZodTypeAny, {
5411
- size?: "NORMAL" | "LARGE" | undefined;
5412
- }, {
5413
- size?: "NORMAL" | "LARGE" | undefined;
5414
- }>>;
5415
- }, "strip", z.ZodTypeAny, {
5416
- styles?: {
5417
- size?: "NORMAL" | "LARGE" | undefined;
5418
- } | undefined;
5419
- }, {
5420
- styles?: {
5421
- size?: "NORMAL" | "LARGE" | undefined;
5422
4594
  } | undefined;
5423
4595
  }>>;
5424
4596
  }>, "strip", z.ZodTypeAny, {
5425
- type: "RADIO_GROUP";
4597
+ type: "DATE";
5426
4598
  id: string;
5427
- options: {
5428
- value: string;
5429
- label: TranslationConfig;
5430
- }[];
5431
4599
  label: TranslationConfig;
5432
4600
  parent?: {
5433
4601
  $$field: string;
@@ -5451,22 +4619,12 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5451
4619
  helperText?: TranslationConfig | undefined;
5452
4620
  hideLabel?: boolean | undefined;
5453
4621
  defaultValue?: string | undefined;
5454
- configuration?: {
5455
- styles?: {
5456
- size?: "NORMAL" | "LARGE" | undefined;
5457
- } | undefined;
5458
- } | undefined;
5459
- }, {
5460
- type: "RADIO_GROUP";
5461
- id: string;
5462
- options: {
5463
- value: string;
5464
- label: {
5465
- id: string;
5466
- description: string;
5467
- defaultMessage: string;
5468
- };
5469
- }[];
4622
+ configuration?: {
4623
+ notice?: TranslationConfig | undefined;
4624
+ } | undefined;
4625
+ }, {
4626
+ type: "DATE";
4627
+ id: string;
5470
4628
  label: {
5471
4629
  id: string;
5472
4630
  description: string;
@@ -5507,8 +4665,10 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5507
4665
  hideLabel?: boolean | undefined;
5508
4666
  defaultValue?: string | undefined;
5509
4667
  configuration?: {
5510
- styles?: {
5511
- size?: "NORMAL" | "LARGE" | undefined;
4668
+ notice?: {
4669
+ id: string;
4670
+ description: string;
4671
+ defaultMessage: string;
5512
4672
  } | undefined;
5513
4673
  } | undefined;
5514
4674
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -5557,40 +4717,27 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5557
4717
  }>>;
5558
4718
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5559
4719
  }, {
5560
- type: z.ZodLiteral<"BULLET_LIST">;
5561
- defaultValue: z.ZodOptional<z.ZodString>;
5562
- items: z.ZodArray<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5563
- id: string;
5564
- description: string;
5565
- defaultMessage: string;
5566
- }>, "many">;
5567
- configuration: z.ZodDefault<z.ZodObject<{
5568
- styles: z.ZodOptional<z.ZodObject<{
5569
- fontVariant: z.ZodOptional<z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>>;
5570
- }, "strip", z.ZodTypeAny, {
5571
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5572
- }, {
5573
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4720
+ type: z.ZodLiteral<"DATE_RANGE">;
4721
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>;
4722
+ configuration: z.ZodOptional<z.ZodObject<{
4723
+ notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4724
+ id: string;
4725
+ description: string;
4726
+ defaultMessage: string;
5574
4727
  }>>;
5575
4728
  }, "strip", z.ZodTypeAny, {
5576
- styles?: {
5577
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5578
- } | undefined;
4729
+ notice?: TranslationConfig | undefined;
5579
4730
  }, {
5580
- styles?: {
5581
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4731
+ notice?: {
4732
+ id: string;
4733
+ description: string;
4734
+ defaultMessage: string;
5582
4735
  } | undefined;
5583
4736
  }>>;
5584
4737
  }>, "strip", z.ZodTypeAny, {
5585
- type: "BULLET_LIST";
4738
+ type: "DATE_RANGE";
5586
4739
  id: string;
5587
4740
  label: TranslationConfig;
5588
- configuration: {
5589
- styles?: {
5590
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5591
- } | undefined;
5592
- };
5593
- items: TranslationConfig[];
5594
4741
  parent?: {
5595
4742
  $$field: string;
5596
4743
  } | undefined;
@@ -5612,20 +4759,18 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5612
4759
  placeholder?: TranslationConfig | undefined;
5613
4760
  helperText?: TranslationConfig | undefined;
5614
4761
  hideLabel?: boolean | undefined;
5615
- defaultValue?: string | undefined;
4762
+ defaultValue?: string | [string, string] | undefined;
4763
+ configuration?: {
4764
+ notice?: TranslationConfig | undefined;
4765
+ } | undefined;
5616
4766
  }, {
5617
- type: "BULLET_LIST";
4767
+ type: "DATE_RANGE";
5618
4768
  id: string;
5619
4769
  label: {
5620
4770
  id: string;
5621
4771
  description: string;
5622
4772
  defaultMessage: string;
5623
4773
  };
5624
- items: {
5625
- id: string;
5626
- description: string;
5627
- defaultMessage: string;
5628
- }[];
5629
4774
  parent?: {
5630
4775
  $$field: string;
5631
4776
  } | undefined;
@@ -5659,10 +4804,12 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5659
4804
  defaultMessage: string;
5660
4805
  } | undefined;
5661
4806
  hideLabel?: boolean | undefined;
5662
- defaultValue?: string | undefined;
4807
+ defaultValue?: string | [string, string] | undefined;
5663
4808
  configuration?: {
5664
- styles?: {
5665
- fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4809
+ notice?: {
4810
+ id: string;
4811
+ description: string;
4812
+ defaultMessage: string;
5666
4813
  } | undefined;
5667
4814
  } | undefined;
5668
4815
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -5711,12 +4858,40 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5711
4858
  }>>;
5712
4859
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5713
4860
  }, {
5714
- type: z.ZodLiteral<"PAGE_HEADER">;
4861
+ type: z.ZodLiteral<"PARAGRAPH">;
5715
4862
  defaultValue: z.ZodOptional<z.ZodString>;
4863
+ configuration: z.ZodDefault<z.ZodObject<{
4864
+ styles: z.ZodOptional<z.ZodObject<{
4865
+ fontVariant: z.ZodOptional<z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>>;
4866
+ hint: z.ZodOptional<z.ZodBoolean>;
4867
+ }, "strip", z.ZodTypeAny, {
4868
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4869
+ hint?: boolean | undefined;
4870
+ }, {
4871
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4872
+ hint?: boolean | undefined;
4873
+ }>>;
4874
+ }, "strip", z.ZodTypeAny, {
4875
+ styles?: {
4876
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4877
+ hint?: boolean | undefined;
4878
+ } | undefined;
4879
+ }, {
4880
+ styles?: {
4881
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4882
+ hint?: boolean | undefined;
4883
+ } | undefined;
4884
+ }>>;
5716
4885
  }>, "strip", z.ZodTypeAny, {
5717
- type: "PAGE_HEADER";
4886
+ type: "PARAGRAPH";
5718
4887
  id: string;
5719
4888
  label: TranslationConfig;
4889
+ configuration: {
4890
+ styles?: {
4891
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4892
+ hint?: boolean | undefined;
4893
+ } | undefined;
4894
+ };
5720
4895
  parent?: {
5721
4896
  $$field: string;
5722
4897
  } | undefined;
@@ -5740,7 +4915,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5740
4915
  hideLabel?: boolean | undefined;
5741
4916
  defaultValue?: string | undefined;
5742
4917
  }, {
5743
- type: "PAGE_HEADER";
4918
+ type: "PARAGRAPH";
5744
4919
  id: string;
5745
4920
  label: {
5746
4921
  id: string;
@@ -5781,6 +4956,12 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5781
4956
  } | undefined;
5782
4957
  hideLabel?: boolean | undefined;
5783
4958
  defaultValue?: string | undefined;
4959
+ configuration?: {
4960
+ styles?: {
4961
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4962
+ hint?: boolean | undefined;
4963
+ } | undefined;
4964
+ } | undefined;
5784
4965
  }>, z.ZodObject<z.objectUtil.extendShape<{
5785
4966
  id: z.ZodString;
5786
4967
  parent: z.ZodOptional<z.ZodObject<{
@@ -5827,7 +5008,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5827
5008
  }>>;
5828
5009
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5829
5010
  }, {
5830
- type: z.ZodLiteral<"SELECT">;
5011
+ type: z.ZodLiteral<"RADIO_GROUP">;
5831
5012
  defaultValue: z.ZodOptional<z.ZodString>;
5832
5013
  options: z.ZodArray<z.ZodObject<{
5833
5014
  value: z.ZodString;
@@ -5847,8 +5028,25 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5847
5028
  defaultMessage: string;
5848
5029
  };
5849
5030
  }>, "many">;
5031
+ configuration: z.ZodOptional<z.ZodObject<{
5032
+ styles: z.ZodOptional<z.ZodObject<{
5033
+ size: z.ZodOptional<z.ZodEnum<["NORMAL", "LARGE"]>>;
5034
+ }, "strip", z.ZodTypeAny, {
5035
+ size?: "NORMAL" | "LARGE" | undefined;
5036
+ }, {
5037
+ size?: "NORMAL" | "LARGE" | undefined;
5038
+ }>>;
5039
+ }, "strip", z.ZodTypeAny, {
5040
+ styles?: {
5041
+ size?: "NORMAL" | "LARGE" | undefined;
5042
+ } | undefined;
5043
+ }, {
5044
+ styles?: {
5045
+ size?: "NORMAL" | "LARGE" | undefined;
5046
+ } | undefined;
5047
+ }>>;
5850
5048
  }>, "strip", z.ZodTypeAny, {
5851
- type: "SELECT";
5049
+ type: "RADIO_GROUP";
5852
5050
  id: string;
5853
5051
  options: {
5854
5052
  value: string;
@@ -5877,8 +5075,13 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5877
5075
  helperText?: TranslationConfig | undefined;
5878
5076
  hideLabel?: boolean | undefined;
5879
5077
  defaultValue?: string | undefined;
5078
+ configuration?: {
5079
+ styles?: {
5080
+ size?: "NORMAL" | "LARGE" | undefined;
5081
+ } | undefined;
5082
+ } | undefined;
5880
5083
  }, {
5881
- type: "SELECT";
5084
+ type: "RADIO_GROUP";
5882
5085
  id: string;
5883
5086
  options: {
5884
5087
  value: string;
@@ -5927,6 +5130,11 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5927
5130
  } | undefined;
5928
5131
  hideLabel?: boolean | undefined;
5929
5132
  defaultValue?: string | undefined;
5133
+ configuration?: {
5134
+ styles?: {
5135
+ size?: "NORMAL" | "LARGE" | undefined;
5136
+ } | undefined;
5137
+ } | undefined;
5930
5138
  }>, z.ZodObject<z.objectUtil.extendShape<{
5931
5139
  id: z.ZodString;
5932
5140
  parent: z.ZodOptional<z.ZodObject<{
@@ -5973,50 +5181,40 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5973
5181
  }>>;
5974
5182
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5975
5183
  }, {
5976
- type: z.ZodLiteral<"NAME">;
5977
- defaultValue: z.ZodOptional<z.ZodObject<{
5978
- firstname: z.ZodString;
5979
- surname: z.ZodString;
5980
- }, "strip", z.ZodTypeAny, {
5981
- firstname: string;
5982
- surname: string;
5983
- }, {
5984
- firstname: string;
5985
- surname: string;
5986
- }>>;
5987
- configuration: z.ZodOptional<z.ZodObject<{
5988
- maxLength: z.ZodOptional<z.ZodNumber>;
5989
- prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5990
- id: string;
5991
- description: string;
5992
- defaultMessage: string;
5993
- }>>;
5994
- postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5995
- id: string;
5996
- description: string;
5997
- defaultMessage: string;
5184
+ type: z.ZodLiteral<"BULLET_LIST">;
5185
+ defaultValue: z.ZodOptional<z.ZodString>;
5186
+ items: z.ZodArray<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5187
+ id: string;
5188
+ description: string;
5189
+ defaultMessage: string;
5190
+ }>, "many">;
5191
+ configuration: z.ZodDefault<z.ZodObject<{
5192
+ styles: z.ZodOptional<z.ZodObject<{
5193
+ fontVariant: z.ZodOptional<z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>>;
5194
+ }, "strip", z.ZodTypeAny, {
5195
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5196
+ }, {
5197
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5998
5198
  }>>;
5999
5199
  }, "strip", z.ZodTypeAny, {
6000
- maxLength?: number | undefined;
6001
- prefix?: TranslationConfig | undefined;
6002
- postfix?: TranslationConfig | undefined;
6003
- }, {
6004
- maxLength?: number | undefined;
6005
- prefix?: {
6006
- id: string;
6007
- description: string;
6008
- defaultMessage: string;
5200
+ styles?: {
5201
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
6009
5202
  } | undefined;
6010
- postfix?: {
6011
- id: string;
6012
- description: string;
6013
- defaultMessage: string;
5203
+ }, {
5204
+ styles?: {
5205
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
6014
5206
  } | undefined;
6015
5207
  }>>;
6016
5208
  }>, "strip", z.ZodTypeAny, {
6017
- type: "NAME";
5209
+ type: "BULLET_LIST";
6018
5210
  id: string;
6019
5211
  label: TranslationConfig;
5212
+ configuration: {
5213
+ styles?: {
5214
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
5215
+ } | undefined;
5216
+ };
5217
+ items: TranslationConfig[];
6020
5218
  parent?: {
6021
5219
  $$field: string;
6022
5220
  } | undefined;
@@ -6038,23 +5236,20 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6038
5236
  placeholder?: TranslationConfig | undefined;
6039
5237
  helperText?: TranslationConfig | undefined;
6040
5238
  hideLabel?: boolean | undefined;
6041
- defaultValue?: {
6042
- firstname: string;
6043
- surname: string;
6044
- } | undefined;
6045
- configuration?: {
6046
- maxLength?: number | undefined;
6047
- prefix?: TranslationConfig | undefined;
6048
- postfix?: TranslationConfig | undefined;
6049
- } | undefined;
5239
+ defaultValue?: string | undefined;
6050
5240
  }, {
6051
- type: "NAME";
5241
+ type: "BULLET_LIST";
6052
5242
  id: string;
6053
5243
  label: {
6054
5244
  id: string;
6055
5245
  description: string;
6056
5246
  defaultMessage: string;
6057
5247
  };
5248
+ items: {
5249
+ id: string;
5250
+ description: string;
5251
+ defaultMessage: string;
5252
+ }[];
6058
5253
  parent?: {
6059
5254
  $$field: string;
6060
5255
  } | undefined;
@@ -6088,21 +5283,10 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6088
5283
  defaultMessage: string;
6089
5284
  } | undefined;
6090
5285
  hideLabel?: boolean | undefined;
6091
- defaultValue?: {
6092
- firstname: string;
6093
- surname: string;
6094
- } | undefined;
5286
+ defaultValue?: string | undefined;
6095
5287
  configuration?: {
6096
- maxLength?: number | undefined;
6097
- prefix?: {
6098
- id: string;
6099
- description: string;
6100
- defaultMessage: string;
6101
- } | undefined;
6102
- postfix?: {
6103
- id: string;
6104
- description: string;
6105
- defaultMessage: string;
5288
+ styles?: {
5289
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
6106
5290
  } | undefined;
6107
5291
  } | undefined;
6108
5292
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -6151,10 +5335,10 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6151
5335
  }>>;
6152
5336
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6153
5337
  }, {
5338
+ type: z.ZodLiteral<"PAGE_HEADER">;
6154
5339
  defaultValue: z.ZodOptional<z.ZodString>;
6155
- type: z.ZodLiteral<"PHONE">;
6156
5340
  }>, "strip", z.ZodTypeAny, {
6157
- type: "PHONE";
5341
+ type: "PAGE_HEADER";
6158
5342
  id: string;
6159
5343
  label: TranslationConfig;
6160
5344
  parent?: {
@@ -6180,7 +5364,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6180
5364
  hideLabel?: boolean | undefined;
6181
5365
  defaultValue?: string | undefined;
6182
5366
  }, {
6183
- type: "PHONE";
5367
+ type: "PAGE_HEADER";
6184
5368
  id: string;
6185
5369
  label: {
6186
5370
  id: string;
@@ -6267,11 +5451,33 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6267
5451
  }>>;
6268
5452
  hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6269
5453
  }, {
5454
+ type: z.ZodLiteral<"SELECT">;
6270
5455
  defaultValue: z.ZodOptional<z.ZodString>;
6271
- type: z.ZodLiteral<"ID">;
5456
+ options: z.ZodArray<z.ZodObject<{
5457
+ value: z.ZodString;
5458
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5459
+ id: string;
5460
+ description: string;
5461
+ defaultMessage: string;
5462
+ }>;
5463
+ }, "strip", z.ZodTypeAny, {
5464
+ value: string;
5465
+ label: TranslationConfig;
5466
+ }, {
5467
+ value: string;
5468
+ label: {
5469
+ id: string;
5470
+ description: string;
5471
+ defaultMessage: string;
5472
+ };
5473
+ }>, "many">;
6272
5474
  }>, "strip", z.ZodTypeAny, {
6273
- type: "ID";
5475
+ type: "SELECT";
6274
5476
  id: string;
5477
+ options: {
5478
+ value: string;
5479
+ label: TranslationConfig;
5480
+ }[];
6275
5481
  label: TranslationConfig;
6276
5482
  parent?: {
6277
5483
  $$field: string;
@@ -6296,8 +5502,16 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6296
5502
  hideLabel?: boolean | undefined;
6297
5503
  defaultValue?: string | undefined;
6298
5504
  }, {
6299
- type: "ID";
5505
+ type: "SELECT";
6300
5506
  id: string;
5507
+ options: {
5508
+ value: string;
5509
+ label: {
5510
+ id: string;
5511
+ description: string;
5512
+ defaultMessage: string;
5513
+ };
5514
+ }[];
6301
5515
  label: {
6302
5516
  id: string;
6303
5517
  description: string;
@@ -8043,9 +7257,6 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8043
7257
  hideLabel?: boolean | undefined;
8044
7258
  }>]>;
8045
7259
  export type SelectField = z.infer<typeof Select>;
8046
- export type NameField = z.infer<typeof NameField>;
8047
- export type PhoneField = z.infer<typeof PhoneField>;
8048
- export type IdField = z.infer<typeof IdField>;
8049
7260
  export type LocationField = z.infer<typeof Location>;
8050
7261
  export type RadioField = z.infer<typeof RadioGroup>;
8051
7262
  export type AddressField = z.infer<typeof Address>;