@opencrvs/toolkit 1.8.0-rc.fe87a15 → 1.8.0-rc.fe8c092
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commons/api/router.d.ts +6884 -614
- package/dist/commons/conditionals/conditionals.d.ts +4 -0
- package/dist/commons/conditionals/validate.d.ts +6 -0
- package/dist/commons/events/ActionConfig.d.ts +18678 -6326
- package/dist/commons/events/ActionDocument.d.ts +1923 -414
- package/dist/commons/events/ActionInput.d.ts +1504 -304
- package/dist/commons/events/ActionType.d.ts +6 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +75 -3
- package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
- package/dist/commons/events/Constants.d.ts +1 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +254 -168
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
- package/dist/commons/events/Draft.d.ts +134 -33
- package/dist/commons/events/EventConfig.d.ts +8242 -2365
- package/dist/commons/events/EventDocument.d.ts +1242 -298
- package/dist/commons/events/EventIndex.d.ts +798 -123
- package/dist/commons/events/EventMetadata.d.ts +62 -59
- package/dist/commons/events/FieldConfig.d.ts +1572 -746
- package/dist/commons/events/FieldType.d.ts +4 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +89 -50
- package/dist/commons/events/FieldValue.d.ts +41 -5
- package/dist/commons/events/FormConfig.d.ts +7640 -2444
- package/dist/commons/events/PageConfig.d.ts +2816 -1540
- package/dist/commons/events/SummaryConfig.d.ts +0 -5
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
- package/dist/commons/events/WorkqueueConfig.d.ts +3277 -1512
- package/dist/commons/events/defineConfig.d.ts +959 -13
- package/dist/commons/events/field.d.ts +4 -0
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/scopes.d.ts +1 -2
- package/dist/commons/events/test.utils.d.ts +138 -40
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +9666 -16
- package/dist/conditionals/index.js +18 -1
- package/dist/events/index.js +1592 -1011
- package/dist/scopes/index.d.ts +4 -1
- package/dist/scopes/index.js +67 -17
- package/package.json +1 -1
@@ -2268,7 +2268,7 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
2268
2268
|
hideLabel?: boolean | undefined;
|
2269
2269
|
defaultValue?: string | undefined;
|
2270
2270
|
}>;
|
2271
|
-
declare const
|
2271
|
+
declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
2272
2272
|
id: z.ZodString;
|
2273
2273
|
parent: z.ZodOptional<z.ZodObject<{
|
2274
2274
|
$$field: z.ZodString;
|
@@ -2314,10 +2314,48 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2314
2314
|
}>>;
|
2315
2315
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2316
2316
|
}, {
|
2317
|
-
type: z.ZodLiteral<"
|
2318
|
-
defaultValue: z.ZodOptional<z.
|
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
|
+
}>>;
|
2319
2357
|
}>, "strip", z.ZodTypeAny, {
|
2320
|
-
type: "
|
2358
|
+
type: "NAME";
|
2321
2359
|
id: string;
|
2322
2360
|
label: TranslationConfig;
|
2323
2361
|
parent?: {
|
@@ -2341,9 +2379,17 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2341
2379
|
placeholder?: TranslationConfig | undefined;
|
2342
2380
|
helperText?: TranslationConfig | undefined;
|
2343
2381
|
hideLabel?: boolean | undefined;
|
2344
|
-
defaultValue?:
|
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;
|
2345
2391
|
}, {
|
2346
|
-
type: "
|
2392
|
+
type: "NAME";
|
2347
2393
|
id: string;
|
2348
2394
|
label: {
|
2349
2395
|
id: string;
|
@@ -2383,10 +2429,25 @@ declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
2383
2429
|
defaultMessage: string;
|
2384
2430
|
} | undefined;
|
2385
2431
|
hideLabel?: boolean | undefined;
|
2386
|
-
defaultValue?:
|
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;
|
2387
2449
|
}>;
|
2388
|
-
|
2389
|
-
declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
2450
|
+
declare const PhoneField: z.ZodObject<z.objectUtil.extendShape<{
|
2390
2451
|
id: z.ZodString;
|
2391
2452
|
parent: z.ZodOptional<z.ZodObject<{
|
2392
2453
|
$$field: z.ZodString;
|
@@ -2432,10 +2493,10 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2432
2493
|
}>>;
|
2433
2494
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2434
2495
|
}, {
|
2435
|
-
type: z.ZodLiteral<"COUNTRY">;
|
2436
2496
|
defaultValue: z.ZodOptional<z.ZodString>;
|
2497
|
+
type: z.ZodLiteral<"PHONE">;
|
2437
2498
|
}>, "strip", z.ZodTypeAny, {
|
2438
|
-
type: "
|
2499
|
+
type: "PHONE";
|
2439
2500
|
id: string;
|
2440
2501
|
label: TranslationConfig;
|
2441
2502
|
parent?: {
|
@@ -2461,7 +2522,7 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2461
2522
|
hideLabel?: boolean | undefined;
|
2462
2523
|
defaultValue?: string | undefined;
|
2463
2524
|
}, {
|
2464
|
-
type: "
|
2525
|
+
type: "PHONE";
|
2465
2526
|
id: string;
|
2466
2527
|
label: {
|
2467
2528
|
id: string;
|
@@ -2503,29 +2564,7 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
2503
2564
|
hideLabel?: boolean | undefined;
|
2504
2565
|
defaultValue?: string | undefined;
|
2505
2566
|
}>;
|
2506
|
-
|
2507
|
-
export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2508
|
-
declare const AdministrativeAreaConfiguration: z.ZodObject<{
|
2509
|
-
partOf: z.ZodOptional<z.ZodObject<{
|
2510
|
-
$declaration: z.ZodString;
|
2511
|
-
}, "strip", z.ZodTypeAny, {
|
2512
|
-
$declaration: string;
|
2513
|
-
}, {
|
2514
|
-
$declaration: string;
|
2515
|
-
}>>;
|
2516
|
-
type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2517
|
-
}, "strip", z.ZodTypeAny, {
|
2518
|
-
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2519
|
-
partOf?: {
|
2520
|
-
$declaration: string;
|
2521
|
-
} | undefined;
|
2522
|
-
}, {
|
2523
|
-
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2524
|
-
partOf?: {
|
2525
|
-
$declaration: string;
|
2526
|
-
} | undefined;
|
2527
|
-
}>;
|
2528
|
-
declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
2567
|
+
declare const IdField: z.ZodObject<z.objectUtil.extendShape<{
|
2529
2568
|
id: z.ZodString;
|
2530
2569
|
parent: z.ZodOptional<z.ZodObject<{
|
2531
2570
|
$$field: z.ZodString;
|
@@ -2571,38 +2610,12 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2571
2610
|
}>>;
|
2572
2611
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2573
2612
|
}, {
|
2574
|
-
type: z.ZodLiteral<"ADMINISTRATIVE_AREA">;
|
2575
2613
|
defaultValue: z.ZodOptional<z.ZodString>;
|
2576
|
-
|
2577
|
-
partOf: z.ZodOptional<z.ZodObject<{
|
2578
|
-
$declaration: z.ZodString;
|
2579
|
-
}, "strip", z.ZodTypeAny, {
|
2580
|
-
$declaration: string;
|
2581
|
-
}, {
|
2582
|
-
$declaration: string;
|
2583
|
-
}>>;
|
2584
|
-
type: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
2585
|
-
}, "strip", z.ZodTypeAny, {
|
2586
|
-
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2587
|
-
partOf?: {
|
2588
|
-
$declaration: string;
|
2589
|
-
} | undefined;
|
2590
|
-
}, {
|
2591
|
-
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2592
|
-
partOf?: {
|
2593
|
-
$declaration: string;
|
2594
|
-
} | undefined;
|
2595
|
-
}>;
|
2614
|
+
type: z.ZodLiteral<"ID">;
|
2596
2615
|
}>, "strip", z.ZodTypeAny, {
|
2597
|
-
type: "
|
2616
|
+
type: "ID";
|
2598
2617
|
id: string;
|
2599
2618
|
label: TranslationConfig;
|
2600
|
-
configuration: {
|
2601
|
-
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2602
|
-
partOf?: {
|
2603
|
-
$declaration: string;
|
2604
|
-
} | undefined;
|
2605
|
-
};
|
2606
2619
|
parent?: {
|
2607
2620
|
$$field: string;
|
2608
2621
|
} | undefined;
|
@@ -2626,19 +2639,13 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2626
2639
|
hideLabel?: boolean | undefined;
|
2627
2640
|
defaultValue?: string | undefined;
|
2628
2641
|
}, {
|
2629
|
-
type: "
|
2642
|
+
type: "ID";
|
2630
2643
|
id: string;
|
2631
2644
|
label: {
|
2632
2645
|
id: string;
|
2633
2646
|
description: string;
|
2634
2647
|
defaultMessage: string;
|
2635
2648
|
};
|
2636
|
-
configuration: {
|
2637
|
-
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
2638
|
-
partOf?: {
|
2639
|
-
$declaration: string;
|
2640
|
-
} | undefined;
|
2641
|
-
};
|
2642
2649
|
parent?: {
|
2643
2650
|
$$field: string;
|
2644
2651
|
} | undefined;
|
@@ -2674,8 +2681,7 @@ declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
|
2674
2681
|
hideLabel?: boolean | undefined;
|
2675
2682
|
defaultValue?: string | undefined;
|
2676
2683
|
}>;
|
2677
|
-
|
2678
|
-
declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
2684
|
+
declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
2679
2685
|
id: z.ZodString;
|
2680
2686
|
parent: z.ZodOptional<z.ZodObject<{
|
2681
2687
|
$$field: z.ZodString;
|
@@ -2721,10 +2727,10 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2721
2727
|
}>>;
|
2722
2728
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2723
2729
|
}, {
|
2724
|
-
type: z.ZodLiteral<"
|
2725
|
-
defaultValue: z.ZodOptional<z.
|
2730
|
+
type: z.ZodLiteral<"CHECKBOX">;
|
2731
|
+
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
2726
2732
|
}>, "strip", z.ZodTypeAny, {
|
2727
|
-
type: "
|
2733
|
+
type: "CHECKBOX";
|
2728
2734
|
id: string;
|
2729
2735
|
label: TranslationConfig;
|
2730
2736
|
parent?: {
|
@@ -2748,9 +2754,9 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2748
2754
|
placeholder?: TranslationConfig | undefined;
|
2749
2755
|
helperText?: TranslationConfig | undefined;
|
2750
2756
|
hideLabel?: boolean | undefined;
|
2751
|
-
defaultValue?:
|
2757
|
+
defaultValue?: boolean | undefined;
|
2752
2758
|
}, {
|
2753
|
-
type: "
|
2759
|
+
type: "CHECKBOX";
|
2754
2760
|
id: string;
|
2755
2761
|
label: {
|
2756
2762
|
id: string;
|
@@ -2790,10 +2796,10 @@ declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
|
2790
2796
|
defaultMessage: string;
|
2791
2797
|
} | undefined;
|
2792
2798
|
hideLabel?: boolean | undefined;
|
2793
|
-
defaultValue?:
|
2799
|
+
defaultValue?: boolean | undefined;
|
2794
2800
|
}>;
|
2795
|
-
export type
|
2796
|
-
declare const
|
2801
|
+
export type Checkbox = z.infer<typeof Checkbox>;
|
2802
|
+
declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
2797
2803
|
id: z.ZodString;
|
2798
2804
|
parent: z.ZodOptional<z.ZodObject<{
|
2799
2805
|
$$field: z.ZodString;
|
@@ -2839,63 +2845,12 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2839
2845
|
}>>;
|
2840
2846
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
2841
2847
|
}, {
|
2842
|
-
type: z.ZodLiteral<"
|
2843
|
-
|
2844
|
-
value: z.ZodString;
|
2845
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
2846
|
-
id: string;
|
2847
|
-
description: string;
|
2848
|
-
defaultMessage: string;
|
2849
|
-
}>;
|
2850
|
-
}, "strip", z.ZodTypeAny, {
|
2851
|
-
value: string;
|
2852
|
-
label: TranslationConfig;
|
2853
|
-
}, {
|
2854
|
-
value: string;
|
2855
|
-
label: {
|
2856
|
-
id: string;
|
2857
|
-
description: string;
|
2858
|
-
defaultMessage: string;
|
2859
|
-
};
|
2860
|
-
}>, "many">;
|
2861
|
-
defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
2862
|
-
filename: z.ZodString;
|
2863
|
-
originalFilename: z.ZodString;
|
2864
|
-
type: z.ZodString;
|
2865
|
-
option: z.ZodString;
|
2866
|
-
}, "strip", z.ZodTypeAny, {
|
2867
|
-
type: string;
|
2868
|
-
option: string;
|
2869
|
-
filename: string;
|
2870
|
-
originalFilename: string;
|
2871
|
-
}, {
|
2872
|
-
type: string;
|
2873
|
-
option: string;
|
2874
|
-
filename: string;
|
2875
|
-
originalFilename: string;
|
2876
|
-
}>, "many">>;
|
2877
|
-
configuration: z.ZodDefault<z.ZodObject<{
|
2878
|
-
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
2879
|
-
acceptedFileTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["image/png", "image/jpg", "image/jpeg", "image/svg+xml"]>, "many">>;
|
2880
|
-
}, "strip", z.ZodTypeAny, {
|
2881
|
-
maxFileSize: number;
|
2882
|
-
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2883
|
-
}, {
|
2884
|
-
maxFileSize?: number | undefined;
|
2885
|
-
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2886
|
-
}>>;
|
2848
|
+
type: z.ZodLiteral<"COUNTRY">;
|
2849
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
2887
2850
|
}>, "strip", z.ZodTypeAny, {
|
2888
|
-
type: "
|
2851
|
+
type: "COUNTRY";
|
2889
2852
|
id: string;
|
2890
|
-
options: {
|
2891
|
-
value: string;
|
2892
|
-
label: TranslationConfig;
|
2893
|
-
}[];
|
2894
2853
|
label: TranslationConfig;
|
2895
|
-
configuration: {
|
2896
|
-
maxFileSize: number;
|
2897
|
-
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
2898
|
-
};
|
2899
2854
|
parent?: {
|
2900
2855
|
$$field: string;
|
2901
2856
|
} | undefined;
|
@@ -2917,23 +2872,10 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2917
2872
|
placeholder?: TranslationConfig | undefined;
|
2918
2873
|
helperText?: TranslationConfig | undefined;
|
2919
2874
|
hideLabel?: boolean | undefined;
|
2920
|
-
defaultValue?:
|
2921
|
-
type: string;
|
2922
|
-
option: string;
|
2923
|
-
filename: string;
|
2924
|
-
originalFilename: string;
|
2925
|
-
}[] | undefined;
|
2875
|
+
defaultValue?: string | undefined;
|
2926
2876
|
}, {
|
2927
|
-
type: "
|
2877
|
+
type: "COUNTRY";
|
2928
2878
|
id: string;
|
2929
|
-
options: {
|
2930
|
-
value: string;
|
2931
|
-
label: {
|
2932
|
-
id: string;
|
2933
|
-
description: string;
|
2934
|
-
defaultMessage: string;
|
2935
|
-
};
|
2936
|
-
}[];
|
2937
2879
|
label: {
|
2938
2880
|
id: string;
|
2939
2881
|
description: string;
|
@@ -2972,19 +2914,31 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
2972
2914
|
defaultMessage: string;
|
2973
2915
|
} | undefined;
|
2974
2916
|
hideLabel?: boolean | undefined;
|
2975
|
-
defaultValue?:
|
2976
|
-
|
2977
|
-
|
2978
|
-
|
2979
|
-
|
2980
|
-
|
2981
|
-
|
2982
|
-
|
2983
|
-
|
2917
|
+
defaultValue?: string | undefined;
|
2918
|
+
}>;
|
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;
|
2924
|
+
}, "strip", z.ZodTypeAny, {
|
2925
|
+
$declaration: string;
|
2926
|
+
}, {
|
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;
|
2984
2939
|
} | undefined;
|
2985
2940
|
}>;
|
2986
|
-
|
2987
|
-
declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
2941
|
+
declare const AdministrativeArea: z.ZodObject<z.objectUtil.extendShape<{
|
2988
2942
|
id: z.ZodString;
|
2989
2943
|
parent: z.ZodOptional<z.ZodObject<{
|
2990
2944
|
$$field: z.ZodString;
|
@@ -3030,12 +2984,38 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
3030
2984
|
}>>;
|
3031
2985
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3032
2986
|
}, {
|
3033
|
-
type: z.ZodLiteral<"
|
2987
|
+
type: z.ZodLiteral<"ADMINISTRATIVE_AREA">;
|
3034
2988
|
defaultValue: z.ZodOptional<z.ZodString>;
|
3035
|
-
|
3036
|
-
|
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
|
+
}>, "strip", z.ZodTypeAny, {
|
3010
|
+
type: "ADMINISTRATIVE_AREA";
|
3037
3011
|
id: string;
|
3038
3012
|
label: TranslationConfig;
|
3013
|
+
configuration: {
|
3014
|
+
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
3015
|
+
partOf?: {
|
3016
|
+
$declaration: string;
|
3017
|
+
} | undefined;
|
3018
|
+
};
|
3039
3019
|
parent?: {
|
3040
3020
|
$$field: string;
|
3041
3021
|
} | undefined;
|
@@ -3059,13 +3039,19 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
3059
3039
|
hideLabel?: boolean | undefined;
|
3060
3040
|
defaultValue?: string | undefined;
|
3061
3041
|
}, {
|
3062
|
-
type: "
|
3042
|
+
type: "ADMINISTRATIVE_AREA";
|
3063
3043
|
id: string;
|
3064
3044
|
label: {
|
3065
3045
|
id: string;
|
3066
3046
|
description: string;
|
3067
3047
|
defaultMessage: string;
|
3068
3048
|
};
|
3049
|
+
configuration: {
|
3050
|
+
type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
|
3051
|
+
partOf?: {
|
3052
|
+
$declaration: string;
|
3053
|
+
} | undefined;
|
3054
|
+
};
|
3069
3055
|
parent?: {
|
3070
3056
|
$$field: string;
|
3071
3057
|
} | undefined;
|
@@ -3101,8 +3087,8 @@ declare const Facility: z.ZodObject<z.objectUtil.extendShape<{
|
|
3101
3087
|
hideLabel?: boolean | undefined;
|
3102
3088
|
defaultValue?: string | undefined;
|
3103
3089
|
}>;
|
3104
|
-
export type
|
3105
|
-
declare const
|
3090
|
+
export type AdministrativeArea = z.infer<typeof AdministrativeArea>;
|
3091
|
+
declare const Location: z.ZodObject<z.objectUtil.extendShape<{
|
3106
3092
|
id: z.ZodString;
|
3107
3093
|
parent: z.ZodOptional<z.ZodObject<{
|
3108
3094
|
$$field: z.ZodString;
|
@@ -3148,10 +3134,10 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
3148
3134
|
}>>;
|
3149
3135
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3150
3136
|
}, {
|
3151
|
-
type: z.ZodLiteral<"
|
3137
|
+
type: z.ZodLiteral<"LOCATION">;
|
3152
3138
|
defaultValue: z.ZodOptional<z.ZodString>;
|
3153
3139
|
}>, "strip", z.ZodTypeAny, {
|
3154
|
-
type: "
|
3140
|
+
type: "LOCATION";
|
3155
3141
|
id: string;
|
3156
3142
|
label: TranslationConfig;
|
3157
3143
|
parent?: {
|
@@ -3177,7 +3163,7 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
3177
3163
|
hideLabel?: boolean | undefined;
|
3178
3164
|
defaultValue?: string | undefined;
|
3179
3165
|
}, {
|
3180
|
-
type: "
|
3166
|
+
type: "LOCATION";
|
3181
3167
|
id: string;
|
3182
3168
|
label: {
|
3183
3169
|
id: string;
|
@@ -3219,8 +3205,8 @@ declare const Office: z.ZodObject<z.objectUtil.extendShape<{
|
|
3219
3205
|
hideLabel?: boolean | undefined;
|
3220
3206
|
defaultValue?: string | undefined;
|
3221
3207
|
}>;
|
3222
|
-
export type
|
3223
|
-
declare const
|
3208
|
+
export type Location = z.infer<typeof Location>;
|
3209
|
+
declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
3224
3210
|
id: z.ZodString;
|
3225
3211
|
parent: z.ZodOptional<z.ZodObject<{
|
3226
3212
|
$$field: z.ZodString;
|
@@ -3266,98 +3252,63 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3266
3252
|
}>>;
|
3267
3253
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3268
3254
|
}, {
|
3269
|
-
type: z.ZodLiteral<"
|
3270
|
-
|
3271
|
-
|
3272
|
-
|
3273
|
-
|
3274
|
-
|
3275
|
-
|
3276
|
-
|
3277
|
-
|
3278
|
-
|
3279
|
-
|
3280
|
-
number: z.ZodOptional<z.ZodString>;
|
3281
|
-
zipCode: z.ZodOptional<z.ZodString>;
|
3282
|
-
}>, "strip", z.ZodTypeAny, {
|
3283
|
-
country: string;
|
3284
|
-
district: string;
|
3285
|
-
addressType: "DOMESTIC";
|
3286
|
-
province: string;
|
3287
|
-
urbanOrRural: "URBAN";
|
3288
|
-
number?: string | undefined;
|
3289
|
-
town?: string | undefined;
|
3290
|
-
residentialArea?: string | undefined;
|
3291
|
-
street?: string | undefined;
|
3292
|
-
zipCode?: string | undefined;
|
3293
|
-
}, {
|
3294
|
-
country: string;
|
3295
|
-
district: string;
|
3296
|
-
addressType: "DOMESTIC";
|
3297
|
-
province: string;
|
3298
|
-
urbanOrRural: "URBAN";
|
3299
|
-
number?: string | undefined;
|
3300
|
-
town?: string | undefined;
|
3301
|
-
residentialArea?: string | undefined;
|
3302
|
-
street?: string | undefined;
|
3303
|
-
zipCode?: string | undefined;
|
3304
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
3305
|
-
country: z.ZodString;
|
3306
|
-
addressType: z.ZodLiteral<"DOMESTIC">;
|
3307
|
-
province: z.ZodString;
|
3308
|
-
district: z.ZodString;
|
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;
|
3309
3266
|
}, {
|
3310
|
-
|
3311
|
-
|
3312
|
-
|
3313
|
-
|
3314
|
-
|
3315
|
-
|
3316
|
-
|
3317
|
-
|
3318
|
-
|
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;
|
3319
3284
|
}, {
|
3320
|
-
|
3321
|
-
|
3322
|
-
|
3323
|
-
|
3324
|
-
|
3325
|
-
|
3326
|
-
|
3327
|
-
|
3328
|
-
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
3329
|
-
state: z.ZodString;
|
3330
|
-
district2: z.ZodString;
|
3331
|
-
cityOrTown: z.ZodOptional<z.ZodString>;
|
3332
|
-
addressLine1: z.ZodOptional<z.ZodString>;
|
3333
|
-
addressLine2: z.ZodOptional<z.ZodString>;
|
3334
|
-
addressLine3: z.ZodOptional<z.ZodString>;
|
3335
|
-
postcodeOrZip: z.ZodOptional<z.ZodString>;
|
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">>;
|
3336
3293
|
}, "strip", z.ZodTypeAny, {
|
3337
|
-
|
3338
|
-
|
3339
|
-
addressType: "INTERNATIONAL";
|
3340
|
-
district2: string;
|
3341
|
-
cityOrTown?: string | undefined;
|
3342
|
-
addressLine1?: string | undefined;
|
3343
|
-
addressLine2?: string | undefined;
|
3344
|
-
addressLine3?: string | undefined;
|
3345
|
-
postcodeOrZip?: string | undefined;
|
3294
|
+
maxFileSize: number;
|
3295
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
3346
3296
|
}, {
|
3347
|
-
|
3348
|
-
|
3349
|
-
|
3350
|
-
district2: string;
|
3351
|
-
cityOrTown?: string | undefined;
|
3352
|
-
addressLine1?: string | undefined;
|
3353
|
-
addressLine2?: string | undefined;
|
3354
|
-
addressLine3?: string | undefined;
|
3355
|
-
postcodeOrZip?: string | undefined;
|
3356
|
-
}>]>>;
|
3297
|
+
maxFileSize?: number | undefined;
|
3298
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
3299
|
+
}>>;
|
3357
3300
|
}>, "strip", z.ZodTypeAny, {
|
3358
|
-
type: "
|
3301
|
+
type: "FILE_WITH_OPTIONS";
|
3359
3302
|
id: string;
|
3303
|
+
options: {
|
3304
|
+
value: string;
|
3305
|
+
label: TranslationConfig;
|
3306
|
+
}[];
|
3360
3307
|
label: TranslationConfig;
|
3308
|
+
configuration: {
|
3309
|
+
maxFileSize: number;
|
3310
|
+
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
3311
|
+
};
|
3361
3312
|
parent?: {
|
3362
3313
|
$$field: string;
|
3363
3314
|
} | undefined;
|
@@ -3380,37 +3331,22 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3380
3331
|
helperText?: TranslationConfig | undefined;
|
3381
3332
|
hideLabel?: boolean | undefined;
|
3382
3333
|
defaultValue?: {
|
3383
|
-
|
3384
|
-
|
3385
|
-
|
3386
|
-
|
3387
|
-
|
3388
|
-
number?: string | undefined;
|
3389
|
-
town?: string | undefined;
|
3390
|
-
residentialArea?: string | undefined;
|
3391
|
-
street?: string | undefined;
|
3392
|
-
zipCode?: string | undefined;
|
3393
|
-
} | {
|
3394
|
-
country: string;
|
3395
|
-
district: string;
|
3396
|
-
addressType: "DOMESTIC";
|
3397
|
-
province: string;
|
3398
|
-
urbanOrRural: "RURAL";
|
3399
|
-
village?: string | undefined;
|
3400
|
-
} | {
|
3401
|
-
country: string;
|
3402
|
-
state: string;
|
3403
|
-
addressType: "INTERNATIONAL";
|
3404
|
-
district2: string;
|
3405
|
-
cityOrTown?: string | undefined;
|
3406
|
-
addressLine1?: string | undefined;
|
3407
|
-
addressLine2?: string | undefined;
|
3408
|
-
addressLine3?: string | undefined;
|
3409
|
-
postcodeOrZip?: string | undefined;
|
3410
|
-
} | undefined;
|
3334
|
+
type: string;
|
3335
|
+
option: string;
|
3336
|
+
filename: string;
|
3337
|
+
originalFilename: string;
|
3338
|
+
}[] | undefined;
|
3411
3339
|
}, {
|
3412
|
-
type: "
|
3340
|
+
type: "FILE_WITH_OPTIONS";
|
3413
3341
|
id: string;
|
3342
|
+
options: {
|
3343
|
+
value: string;
|
3344
|
+
label: {
|
3345
|
+
id: string;
|
3346
|
+
description: string;
|
3347
|
+
defaultMessage: string;
|
3348
|
+
};
|
3349
|
+
}[];
|
3414
3350
|
label: {
|
3415
3351
|
id: string;
|
3416
3352
|
description: string;
|
@@ -3450,69 +3386,136 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
3450
3386
|
} | undefined;
|
3451
3387
|
hideLabel?: boolean | undefined;
|
3452
3388
|
defaultValue?: {
|
3453
|
-
|
3454
|
-
|
3455
|
-
|
3456
|
-
|
3457
|
-
|
3458
|
-
|
3459
|
-
|
3460
|
-
|
3461
|
-
|
3462
|
-
zipCode?: string | undefined;
|
3463
|
-
} | {
|
3464
|
-
country: string;
|
3465
|
-
district: string;
|
3466
|
-
addressType: "DOMESTIC";
|
3467
|
-
province: string;
|
3468
|
-
urbanOrRural: "RURAL";
|
3469
|
-
village?: string | undefined;
|
3470
|
-
} | {
|
3471
|
-
country: string;
|
3472
|
-
state: string;
|
3473
|
-
addressType: "INTERNATIONAL";
|
3474
|
-
district2: string;
|
3475
|
-
cityOrTown?: string | undefined;
|
3476
|
-
addressLine1?: string | undefined;
|
3477
|
-
addressLine2?: string | undefined;
|
3478
|
-
addressLine3?: string | undefined;
|
3479
|
-
postcodeOrZip?: string | undefined;
|
3480
|
-
} | undefined;
|
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;
|
3481
3398
|
}>;
|
3482
|
-
export
|
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">>>;
|
3483
3434
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3484
3435
|
id: string;
|
3485
3436
|
description: string;
|
3486
3437
|
defaultMessage: string;
|
3487
3438
|
}>;
|
3488
|
-
|
3439
|
+
helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3489
3440
|
id: string;
|
3490
3441
|
description: string;
|
3491
3442
|
defaultMessage: string;
|
3492
|
-
}
|
3493
|
-
|
3494
|
-
|
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;
|
3495
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;
|
3496
3474
|
}, {
|
3497
|
-
|
3475
|
+
type: "FACILITY";
|
3476
|
+
id: string;
|
3477
|
+
label: {
|
3498
3478
|
id: string;
|
3499
3479
|
description: string;
|
3500
3480
|
defaultMessage: string;
|
3501
3481
|
};
|
3502
|
-
|
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?: {
|
3503
3505
|
id: string;
|
3504
3506
|
description: string;
|
3505
3507
|
defaultMessage: string;
|
3506
|
-
};
|
3507
|
-
|
3508
|
-
|
3509
|
-
|
3510
|
-
|
3511
|
-
}
|
3512
|
-
|
3513
|
-
|
3514
|
-
|
3515
|
-
|
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<{
|
3516
3519
|
id: z.ZodString;
|
3517
3520
|
parent: z.ZodOptional<z.ZodObject<{
|
3518
3521
|
$$field: z.ZodString;
|
@@ -3558,87 +3561,12 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3558
3561
|
}>>;
|
3559
3562
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
3560
3563
|
}, {
|
3561
|
-
type: z.ZodLiteral<"
|
3562
|
-
|
3563
|
-
subtitle: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3564
|
-
id: string;
|
3565
|
-
description: string;
|
3566
|
-
defaultMessage: string;
|
3567
|
-
}>>;
|
3568
|
-
data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
3569
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3570
|
-
id: string;
|
3571
|
-
description: string;
|
3572
|
-
defaultMessage: string;
|
3573
|
-
}>;
|
3574
|
-
value: z.ZodUnion<[z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3575
|
-
id: string;
|
3576
|
-
description: string;
|
3577
|
-
defaultMessage: string;
|
3578
|
-
}>, z.ZodString]>;
|
3579
|
-
}, "strip", z.ZodTypeAny, {
|
3580
|
-
value: string | TranslationConfig;
|
3581
|
-
label: TranslationConfig;
|
3582
|
-
}, {
|
3583
|
-
value: string | {
|
3584
|
-
id: string;
|
3585
|
-
description: string;
|
3586
|
-
defaultMessage: string;
|
3587
|
-
};
|
3588
|
-
label: {
|
3589
|
-
id: string;
|
3590
|
-
description: string;
|
3591
|
-
defaultMessage: string;
|
3592
|
-
};
|
3593
|
-
}>, z.ZodObject<{
|
3594
|
-
fieldId: z.ZodString;
|
3595
|
-
}, "strip", z.ZodTypeAny, {
|
3596
|
-
fieldId: string;
|
3597
|
-
}, {
|
3598
|
-
fieldId: string;
|
3599
|
-
}>]>, "many">;
|
3600
|
-
}, "strip", z.ZodTypeAny, {
|
3601
|
-
data: ({
|
3602
|
-
value: string | TranslationConfig;
|
3603
|
-
label: TranslationConfig;
|
3604
|
-
} | {
|
3605
|
-
fieldId: string;
|
3606
|
-
})[];
|
3607
|
-
subtitle?: TranslationConfig | undefined;
|
3608
|
-
}, {
|
3609
|
-
data: ({
|
3610
|
-
value: string | {
|
3611
|
-
id: string;
|
3612
|
-
description: string;
|
3613
|
-
defaultMessage: string;
|
3614
|
-
};
|
3615
|
-
label: {
|
3616
|
-
id: string;
|
3617
|
-
description: string;
|
3618
|
-
defaultMessage: string;
|
3619
|
-
};
|
3620
|
-
} | {
|
3621
|
-
fieldId: string;
|
3622
|
-
})[];
|
3623
|
-
subtitle?: {
|
3624
|
-
id: string;
|
3625
|
-
description: string;
|
3626
|
-
defaultMessage: string;
|
3627
|
-
} | undefined;
|
3628
|
-
}>;
|
3564
|
+
type: z.ZodLiteral<"OFFICE">;
|
3565
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
3629
3566
|
}>, "strip", z.ZodTypeAny, {
|
3630
|
-
type: "
|
3567
|
+
type: "OFFICE";
|
3631
3568
|
id: string;
|
3632
3569
|
label: TranslationConfig;
|
3633
|
-
configuration: {
|
3634
|
-
data: ({
|
3635
|
-
value: string | TranslationConfig;
|
3636
|
-
label: TranslationConfig;
|
3637
|
-
} | {
|
3638
|
-
fieldId: string;
|
3639
|
-
})[];
|
3640
|
-
subtitle?: TranslationConfig | undefined;
|
3641
|
-
};
|
3642
3570
|
parent?: {
|
3643
3571
|
$$field: string;
|
3644
3572
|
} | undefined;
|
@@ -3660,35 +3588,15 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3660
3588
|
placeholder?: TranslationConfig | undefined;
|
3661
3589
|
helperText?: TranslationConfig | undefined;
|
3662
3590
|
hideLabel?: boolean | undefined;
|
3591
|
+
defaultValue?: string | undefined;
|
3663
3592
|
}, {
|
3664
|
-
type: "
|
3593
|
+
type: "OFFICE";
|
3665
3594
|
id: string;
|
3666
3595
|
label: {
|
3667
3596
|
id: string;
|
3668
3597
|
description: string;
|
3669
3598
|
defaultMessage: string;
|
3670
3599
|
};
|
3671
|
-
configuration: {
|
3672
|
-
data: ({
|
3673
|
-
value: string | {
|
3674
|
-
id: string;
|
3675
|
-
description: string;
|
3676
|
-
defaultMessage: string;
|
3677
|
-
};
|
3678
|
-
label: {
|
3679
|
-
id: string;
|
3680
|
-
description: string;
|
3681
|
-
defaultMessage: string;
|
3682
|
-
};
|
3683
|
-
} | {
|
3684
|
-
fieldId: string;
|
3685
|
-
})[];
|
3686
|
-
subtitle?: {
|
3687
|
-
id: string;
|
3688
|
-
description: string;
|
3689
|
-
defaultMessage: string;
|
3690
|
-
} | undefined;
|
3691
|
-
};
|
3692
3600
|
parent?: {
|
3693
3601
|
$$field: string;
|
3694
3602
|
} | undefined;
|
@@ -3722,18 +3630,10 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3722
3630
|
defaultMessage: string;
|
3723
3631
|
} | undefined;
|
3724
3632
|
hideLabel?: boolean | undefined;
|
3633
|
+
defaultValue?: string | undefined;
|
3725
3634
|
}>;
|
3726
|
-
export type
|
3727
|
-
|
3728
|
-
export type AllFields = typeof Address | typeof TextField | typeof NumberField | typeof TextAreaField | typeof DateField | typeof DateRangeField | typeof Paragraph | typeof RadioGroup | typeof BulletList | typeof PageHeader | typeof Select | typeof Checkbox | typeof File | typeof Country | typeof AdministrativeArea | typeof Divider | typeof Location | typeof Facility | typeof Office | typeof SignatureField | typeof EmailField | typeof FileUploadWithOptions | typeof DataField;
|
3729
|
-
/** @knipignore */
|
3730
|
-
export type Inferred = z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof DateRangeField> | z.infer<typeof Paragraph> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof Checkbox> | z.infer<typeof File> | z.infer<typeof FileUploadWithOptions> | z.infer<typeof Country> | z.infer<typeof AdministrativeArea> | z.infer<typeof Divider> | z.infer<typeof Location> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField>;
|
3731
|
-
/** @knipignore */
|
3732
|
-
/**
|
3733
|
-
* This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
|
3734
|
-
*/
|
3735
|
-
export type InferredInput = z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof NumberField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof DateRangeField> | z.input<typeof Paragraph> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof Checkbox> | z.input<typeof File> | z.input<typeof FileUploadWithOptions> | z.input<typeof Country> | z.input<typeof AdministrativeArea> | z.input<typeof Divider> | z.input<typeof Location> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField>;
|
3736
|
-
export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
3635
|
+
export type Office = z.infer<typeof Office>;
|
3636
|
+
declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
3737
3637
|
id: z.ZodString;
|
3738
3638
|
parent: z.ZodOptional<z.ZodObject<{
|
3739
3639
|
$$field: z.ZodString;
|
@@ -3981,15 +3881,1037 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
3981
3881
|
urbanOrRural: "RURAL";
|
3982
3882
|
village?: string | undefined;
|
3983
3883
|
} | {
|
3984
|
-
country: string;
|
3985
|
-
state: string;
|
3986
|
-
addressType: "INTERNATIONAL";
|
3987
|
-
district2: string;
|
3988
|
-
cityOrTown?: string | undefined;
|
3989
|
-
addressLine1?: string | undefined;
|
3990
|
-
addressLine2?: string | undefined;
|
3991
|
-
addressLine3?: string | undefined;
|
3992
|
-
postcodeOrZip?: string | undefined;
|
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";
|
4339
|
+
id: string;
|
4340
|
+
label: {
|
4341
|
+
id: string;
|
4342
|
+
description: string;
|
4343
|
+
defaultMessage: string;
|
4344
|
+
};
|
4345
|
+
parent?: {
|
4346
|
+
$$field: string;
|
4347
|
+
} | undefined;
|
4348
|
+
validation?: {
|
4349
|
+
message: {
|
4350
|
+
id: string;
|
4351
|
+
description: string;
|
4352
|
+
defaultMessage: string;
|
4353
|
+
};
|
4354
|
+
validator: import(".").JSONSchema;
|
4355
|
+
}[] | undefined;
|
4356
|
+
required?: boolean | undefined;
|
4357
|
+
conditionals?: ({
|
4358
|
+
type: "SHOW";
|
4359
|
+
conditional: import(".").JSONSchema;
|
4360
|
+
} | {
|
4361
|
+
type: "ENABLE";
|
4362
|
+
conditional: import(".").JSONSchema;
|
4363
|
+
} | {
|
4364
|
+
type: "DISPLAY_ON_REVIEW";
|
4365
|
+
conditional: import(".").JSONSchema;
|
4366
|
+
})[] | undefined;
|
4367
|
+
placeholder?: {
|
4368
|
+
id: string;
|
4369
|
+
description: string;
|
4370
|
+
defaultMessage: string;
|
4371
|
+
} | undefined;
|
4372
|
+
helperText?: {
|
4373
|
+
id: string;
|
4374
|
+
description: string;
|
4375
|
+
defaultMessage: string;
|
4376
|
+
} | undefined;
|
4377
|
+
hideLabel?: boolean | undefined;
|
4378
|
+
defaultValue?: {
|
4379
|
+
country: string;
|
4380
|
+
district: string;
|
4381
|
+
addressType: "DOMESTIC";
|
4382
|
+
province: string;
|
4383
|
+
urbanOrRural: "URBAN";
|
4384
|
+
number?: string | undefined;
|
4385
|
+
town?: string | undefined;
|
4386
|
+
residentialArea?: string | undefined;
|
4387
|
+
street?: string | undefined;
|
4388
|
+
zipCode?: string | undefined;
|
4389
|
+
} | {
|
4390
|
+
country: string;
|
4391
|
+
district: string;
|
4392
|
+
addressType: "DOMESTIC";
|
4393
|
+
province: string;
|
4394
|
+
urbanOrRural: "RURAL";
|
4395
|
+
village?: string | undefined;
|
4396
|
+
} | {
|
4397
|
+
country: string;
|
4398
|
+
state: string;
|
4399
|
+
addressType: "INTERNATIONAL";
|
4400
|
+
district2: string;
|
4401
|
+
cityOrTown?: string | undefined;
|
4402
|
+
addressLine1?: string | undefined;
|
4403
|
+
addressLine2?: string | undefined;
|
4404
|
+
addressLine3?: string | undefined;
|
4405
|
+
postcodeOrZip?: string | undefined;
|
4406
|
+
} | 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">>>;
|
4441
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4442
|
+
id: string;
|
4443
|
+
description: string;
|
4444
|
+
defaultMessage: string;
|
4445
|
+
}>;
|
4446
|
+
helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4447
|
+
id: string;
|
4448
|
+
description: string;
|
4449
|
+
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;
|
4490
|
+
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
|
+
}, {
|
4520
|
+
type: "TEXT";
|
4521
|
+
id: string;
|
4522
|
+
label: {
|
4523
|
+
id: string;
|
4524
|
+
description: string;
|
4525
|
+
defaultMessage: string;
|
4526
|
+
};
|
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?: {
|
4555
|
+
id: string;
|
4556
|
+
description: string;
|
4557
|
+
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<{
|
4576
|
+
id: z.ZodString;
|
4577
|
+
parent: z.ZodOptional<z.ZodObject<{
|
4578
|
+
$$field: z.ZodString;
|
4579
|
+
}, "strip", z.ZodTypeAny, {
|
4580
|
+
$$field: string;
|
4581
|
+
}, {
|
4582
|
+
$$field: string;
|
4583
|
+
}>>;
|
4584
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
4585
|
+
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4586
|
+
placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4587
|
+
id: string;
|
4588
|
+
description: string;
|
4589
|
+
defaultMessage: string;
|
4590
|
+
}>>;
|
4591
|
+
validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
4592
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
4593
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4594
|
+
id: string;
|
4595
|
+
description: string;
|
4596
|
+
defaultMessage: string;
|
4597
|
+
}>;
|
4598
|
+
}, "strip", z.ZodTypeAny, {
|
4599
|
+
message: TranslationConfig;
|
4600
|
+
validator: import(".").JSONSchema;
|
4601
|
+
}, {
|
4602
|
+
message: {
|
4603
|
+
id: string;
|
4604
|
+
description: string;
|
4605
|
+
defaultMessage: string;
|
4606
|
+
};
|
4607
|
+
validator: import(".").JSONSchema;
|
4608
|
+
}>, "many">>>;
|
4609
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4610
|
+
id: string;
|
4611
|
+
description: string;
|
4612
|
+
defaultMessage: string;
|
4613
|
+
}>;
|
4614
|
+
helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4615
|
+
id: string;
|
4616
|
+
description: string;
|
4617
|
+
defaultMessage: string;
|
4618
|
+
}>>;
|
4619
|
+
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4620
|
+
}, {
|
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, {
|
4632
|
+
id: string;
|
4633
|
+
description: string;
|
4634
|
+
defaultMessage: string;
|
4635
|
+
}>>;
|
4636
|
+
}, "strip", z.ZodTypeAny, {
|
4637
|
+
prefix?: TranslationConfig | undefined;
|
4638
|
+
postfix?: TranslationConfig | undefined;
|
4639
|
+
min?: number | undefined;
|
4640
|
+
max?: number | undefined;
|
4641
|
+
}, {
|
4642
|
+
prefix?: {
|
4643
|
+
id: string;
|
4644
|
+
description: string;
|
4645
|
+
defaultMessage: string;
|
4646
|
+
} | undefined;
|
4647
|
+
postfix?: {
|
4648
|
+
id: string;
|
4649
|
+
description: string;
|
4650
|
+
defaultMessage: string;
|
4651
|
+
} | undefined;
|
4652
|
+
min?: number | undefined;
|
4653
|
+
max?: number | undefined;
|
4654
|
+
}>>;
|
4655
|
+
}>, "strip", z.ZodTypeAny, {
|
4656
|
+
type: "NUMBER";
|
4657
|
+
id: string;
|
4658
|
+
label: TranslationConfig;
|
4659
|
+
parent?: {
|
4660
|
+
$$field: string;
|
4661
|
+
} | undefined;
|
4662
|
+
validation?: {
|
4663
|
+
message: TranslationConfig;
|
4664
|
+
validator: import(".").JSONSchema;
|
4665
|
+
}[] | undefined;
|
4666
|
+
required?: boolean | undefined;
|
4667
|
+
conditionals?: ({
|
4668
|
+
type: "SHOW";
|
4669
|
+
conditional: import(".").JSONSchema;
|
4670
|
+
} | {
|
4671
|
+
type: "ENABLE";
|
4672
|
+
conditional: import(".").JSONSchema;
|
4673
|
+
} | {
|
4674
|
+
type: "DISPLAY_ON_REVIEW";
|
4675
|
+
conditional: import(".").JSONSchema;
|
4676
|
+
})[] | undefined;
|
4677
|
+
placeholder?: TranslationConfig | undefined;
|
4678
|
+
helperText?: TranslationConfig | undefined;
|
4679
|
+
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
|
+
}, {
|
4688
|
+
type: "NUMBER";
|
4689
|
+
id: string;
|
4690
|
+
label: {
|
4691
|
+
id: string;
|
4692
|
+
description: string;
|
4693
|
+
defaultMessage: string;
|
4694
|
+
};
|
4695
|
+
parent?: {
|
4696
|
+
$$field: string;
|
4697
|
+
} | undefined;
|
4698
|
+
validation?: {
|
4699
|
+
message: {
|
4700
|
+
id: string;
|
4701
|
+
description: string;
|
4702
|
+
defaultMessage: string;
|
4703
|
+
};
|
4704
|
+
validator: import(".").JSONSchema;
|
4705
|
+
}[] | undefined;
|
4706
|
+
required?: boolean | undefined;
|
4707
|
+
conditionals?: ({
|
4708
|
+
type: "SHOW";
|
4709
|
+
conditional: import(".").JSONSchema;
|
4710
|
+
} | {
|
4711
|
+
type: "ENABLE";
|
4712
|
+
conditional: import(".").JSONSchema;
|
4713
|
+
} | {
|
4714
|
+
type: "DISPLAY_ON_REVIEW";
|
4715
|
+
conditional: import(".").JSONSchema;
|
4716
|
+
})[] | undefined;
|
4717
|
+
placeholder?: {
|
4718
|
+
id: string;
|
4719
|
+
description: string;
|
4720
|
+
defaultMessage: string;
|
4721
|
+
} | undefined;
|
4722
|
+
helperText?: {
|
4723
|
+
id: string;
|
4724
|
+
description: string;
|
4725
|
+
defaultMessage: string;
|
4726
|
+
} | undefined;
|
4727
|
+
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<{
|
4744
|
+
id: z.ZodString;
|
4745
|
+
parent: z.ZodOptional<z.ZodObject<{
|
4746
|
+
$$field: z.ZodString;
|
4747
|
+
}, "strip", z.ZodTypeAny, {
|
4748
|
+
$$field: string;
|
4749
|
+
}, {
|
4750
|
+
$$field: string;
|
4751
|
+
}>>;
|
4752
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
4753
|
+
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4754
|
+
placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4755
|
+
id: string;
|
4756
|
+
description: string;
|
4757
|
+
defaultMessage: string;
|
4758
|
+
}>>;
|
4759
|
+
validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
4760
|
+
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
4761
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4762
|
+
id: string;
|
4763
|
+
description: string;
|
4764
|
+
defaultMessage: string;
|
4765
|
+
}>;
|
4766
|
+
}, "strip", z.ZodTypeAny, {
|
4767
|
+
message: TranslationConfig;
|
4768
|
+
validator: import(".").JSONSchema;
|
4769
|
+
}, {
|
4770
|
+
message: {
|
4771
|
+
id: string;
|
4772
|
+
description: string;
|
4773
|
+
defaultMessage: string;
|
4774
|
+
};
|
4775
|
+
validator: import(".").JSONSchema;
|
4776
|
+
}>, "many">>>;
|
4777
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4778
|
+
id: string;
|
4779
|
+
description: string;
|
4780
|
+
defaultMessage: string;
|
4781
|
+
}>;
|
4782
|
+
helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4783
|
+
id: string;
|
4784
|
+
description: string;
|
4785
|
+
defaultMessage: string;
|
4786
|
+
}>>;
|
4787
|
+
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4788
|
+
}, {
|
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
|
+
}>>;
|
4805
|
+
}, "strip", z.ZodTypeAny, {
|
4806
|
+
maxLength?: number | undefined;
|
4807
|
+
prefix?: TranslationConfig | undefined;
|
4808
|
+
postfix?: TranslationConfig | undefined;
|
4809
|
+
rows?: number | undefined;
|
4810
|
+
cols?: number | undefined;
|
4811
|
+
}, {
|
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
|
+
}>>>;
|
4826
|
+
}>, "strip", z.ZodTypeAny, {
|
4827
|
+
type: "TEXTAREA";
|
4828
|
+
id: string;
|
4829
|
+
label: TranslationConfig;
|
4830
|
+
parent?: {
|
4831
|
+
$$field: string;
|
4832
|
+
} | undefined;
|
4833
|
+
validation?: {
|
4834
|
+
message: TranslationConfig;
|
4835
|
+
validator: import(".").JSONSchema;
|
4836
|
+
}[] | undefined;
|
4837
|
+
required?: boolean | undefined;
|
4838
|
+
conditionals?: ({
|
4839
|
+
type: "SHOW";
|
4840
|
+
conditional: import(".").JSONSchema;
|
4841
|
+
} | {
|
4842
|
+
type: "ENABLE";
|
4843
|
+
conditional: import(".").JSONSchema;
|
4844
|
+
} | {
|
4845
|
+
type: "DISPLAY_ON_REVIEW";
|
4846
|
+
conditional: import(".").JSONSchema;
|
4847
|
+
})[] | undefined;
|
4848
|
+
placeholder?: TranslationConfig | undefined;
|
4849
|
+
helperText?: TranslationConfig | undefined;
|
4850
|
+
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;
|
4858
|
+
} | undefined;
|
4859
|
+
}, {
|
4860
|
+
type: "TEXTAREA";
|
4861
|
+
id: string;
|
4862
|
+
label: {
|
4863
|
+
id: string;
|
4864
|
+
description: string;
|
4865
|
+
defaultMessage: string;
|
4866
|
+
};
|
4867
|
+
parent?: {
|
4868
|
+
$$field: string;
|
4869
|
+
} | undefined;
|
4870
|
+
validation?: {
|
4871
|
+
message: {
|
4872
|
+
id: string;
|
4873
|
+
description: string;
|
4874
|
+
defaultMessage: string;
|
4875
|
+
};
|
4876
|
+
validator: import(".").JSONSchema;
|
4877
|
+
}[] | undefined;
|
4878
|
+
required?: boolean | undefined;
|
4879
|
+
conditionals?: ({
|
4880
|
+
type: "SHOW";
|
4881
|
+
conditional: import(".").JSONSchema;
|
4882
|
+
} | {
|
4883
|
+
type: "ENABLE";
|
4884
|
+
conditional: import(".").JSONSchema;
|
4885
|
+
} | {
|
4886
|
+
type: "DISPLAY_ON_REVIEW";
|
4887
|
+
conditional: import(".").JSONSchema;
|
4888
|
+
})[] | undefined;
|
4889
|
+
placeholder?: {
|
4890
|
+
id: string;
|
4891
|
+
description: string;
|
4892
|
+
defaultMessage: string;
|
4893
|
+
} | undefined;
|
4894
|
+
helperText?: {
|
4895
|
+
id: string;
|
4896
|
+
description: string;
|
4897
|
+
defaultMessage: string;
|
4898
|
+
} | 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;
|
3993
4915
|
} | undefined;
|
3994
4916
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
3995
4917
|
id: z.ZodString;
|
@@ -4037,42 +4959,25 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4037
4959
|
}>>;
|
4038
4960
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4039
4961
|
}, {
|
4040
|
-
type: z.ZodLiteral<"
|
4962
|
+
type: z.ZodLiteral<"DATE">;
|
4041
4963
|
defaultValue: z.ZodOptional<z.ZodString>;
|
4042
|
-
configuration: z.ZodOptional<z.
|
4043
|
-
|
4044
|
-
type: z.ZodOptional<z.ZodEnum<["text", "password"]>>;
|
4045
|
-
prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4046
|
-
id: string;
|
4047
|
-
description: string;
|
4048
|
-
defaultMessage: string;
|
4049
|
-
}>>;
|
4050
|
-
postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4964
|
+
configuration: z.ZodOptional<z.ZodObject<{
|
4965
|
+
notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4051
4966
|
id: string;
|
4052
4967
|
description: string;
|
4053
4968
|
defaultMessage: string;
|
4054
4969
|
}>>;
|
4055
4970
|
}, "strip", z.ZodTypeAny, {
|
4056
|
-
|
4057
|
-
maxLength?: number | undefined;
|
4058
|
-
prefix?: TranslationConfig | undefined;
|
4059
|
-
postfix?: TranslationConfig | undefined;
|
4971
|
+
notice?: TranslationConfig | undefined;
|
4060
4972
|
}, {
|
4061
|
-
|
4062
|
-
maxLength?: number | undefined;
|
4063
|
-
prefix?: {
|
4064
|
-
id: string;
|
4065
|
-
description: string;
|
4066
|
-
defaultMessage: string;
|
4067
|
-
} | undefined;
|
4068
|
-
postfix?: {
|
4973
|
+
notice?: {
|
4069
4974
|
id: string;
|
4070
4975
|
description: string;
|
4071
4976
|
defaultMessage: string;
|
4072
4977
|
} | undefined;
|
4073
|
-
}
|
4978
|
+
}>>;
|
4074
4979
|
}>, "strip", z.ZodTypeAny, {
|
4075
|
-
type: "
|
4980
|
+
type: "DATE";
|
4076
4981
|
id: string;
|
4077
4982
|
label: TranslationConfig;
|
4078
4983
|
parent?: {
|
@@ -4098,13 +5003,10 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4098
5003
|
hideLabel?: boolean | undefined;
|
4099
5004
|
defaultValue?: string | undefined;
|
4100
5005
|
configuration?: {
|
4101
|
-
|
4102
|
-
maxLength?: number | undefined;
|
4103
|
-
prefix?: TranslationConfig | undefined;
|
4104
|
-
postfix?: TranslationConfig | undefined;
|
5006
|
+
notice?: TranslationConfig | undefined;
|
4105
5007
|
} | undefined;
|
4106
5008
|
}, {
|
4107
|
-
type: "
|
5009
|
+
type: "DATE";
|
4108
5010
|
id: string;
|
4109
5011
|
label: {
|
4110
5012
|
id: string;
|
@@ -4146,14 +5048,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4146
5048
|
hideLabel?: boolean | undefined;
|
4147
5049
|
defaultValue?: string | undefined;
|
4148
5050
|
configuration?: {
|
4149
|
-
|
4150
|
-
maxLength?: number | undefined;
|
4151
|
-
prefix?: {
|
4152
|
-
id: string;
|
4153
|
-
description: string;
|
4154
|
-
defaultMessage: string;
|
4155
|
-
} | undefined;
|
4156
|
-
postfix?: {
|
5051
|
+
notice?: {
|
4157
5052
|
id: string;
|
4158
5053
|
description: string;
|
4159
5054
|
defaultMessage: string;
|
@@ -4205,42 +5100,25 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4205
5100
|
}>>;
|
4206
5101
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4207
5102
|
}, {
|
4208
|
-
type: z.ZodLiteral<"
|
4209
|
-
defaultValue: z.ZodOptional<z.
|
5103
|
+
type: z.ZodLiteral<"DATE_RANGE">;
|
5104
|
+
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>;
|
4210
5105
|
configuration: z.ZodOptional<z.ZodObject<{
|
4211
|
-
|
4212
|
-
max: z.ZodOptional<z.ZodNumber>;
|
4213
|
-
prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4214
|
-
id: string;
|
4215
|
-
description: string;
|
4216
|
-
defaultMessage: string;
|
4217
|
-
}>>;
|
4218
|
-
postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
5106
|
+
notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4219
5107
|
id: string;
|
4220
5108
|
description: string;
|
4221
5109
|
defaultMessage: string;
|
4222
5110
|
}>>;
|
4223
5111
|
}, "strip", z.ZodTypeAny, {
|
4224
|
-
|
4225
|
-
postfix?: TranslationConfig | undefined;
|
4226
|
-
min?: number | undefined;
|
4227
|
-
max?: number | undefined;
|
5112
|
+
notice?: TranslationConfig | undefined;
|
4228
5113
|
}, {
|
4229
|
-
|
4230
|
-
id: string;
|
4231
|
-
description: string;
|
4232
|
-
defaultMessage: string;
|
4233
|
-
} | undefined;
|
4234
|
-
postfix?: {
|
5114
|
+
notice?: {
|
4235
5115
|
id: string;
|
4236
5116
|
description: string;
|
4237
5117
|
defaultMessage: string;
|
4238
5118
|
} | undefined;
|
4239
|
-
min?: number | undefined;
|
4240
|
-
max?: number | undefined;
|
4241
5119
|
}>>;
|
4242
5120
|
}>, "strip", z.ZodTypeAny, {
|
4243
|
-
type: "
|
5121
|
+
type: "DATE_RANGE";
|
4244
5122
|
id: string;
|
4245
5123
|
label: TranslationConfig;
|
4246
5124
|
parent?: {
|
@@ -4264,15 +5142,12 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4264
5142
|
placeholder?: TranslationConfig | undefined;
|
4265
5143
|
helperText?: TranslationConfig | undefined;
|
4266
5144
|
hideLabel?: boolean | undefined;
|
4267
|
-
defaultValue?:
|
5145
|
+
defaultValue?: string | [string, string] | undefined;
|
4268
5146
|
configuration?: {
|
4269
|
-
|
4270
|
-
postfix?: TranslationConfig | undefined;
|
4271
|
-
min?: number | undefined;
|
4272
|
-
max?: number | undefined;
|
5147
|
+
notice?: TranslationConfig | undefined;
|
4273
5148
|
} | undefined;
|
4274
5149
|
}, {
|
4275
|
-
type: "
|
5150
|
+
type: "DATE_RANGE";
|
4276
5151
|
id: string;
|
4277
5152
|
label: {
|
4278
5153
|
id: string;
|
@@ -4312,20 +5187,13 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4312
5187
|
defaultMessage: string;
|
4313
5188
|
} | undefined;
|
4314
5189
|
hideLabel?: boolean | undefined;
|
4315
|
-
defaultValue?:
|
5190
|
+
defaultValue?: string | [string, string] | undefined;
|
4316
5191
|
configuration?: {
|
4317
|
-
|
4318
|
-
id: string;
|
4319
|
-
description: string;
|
4320
|
-
defaultMessage: string;
|
4321
|
-
} | undefined;
|
4322
|
-
postfix?: {
|
5192
|
+
notice?: {
|
4323
5193
|
id: string;
|
4324
5194
|
description: string;
|
4325
5195
|
defaultMessage: string;
|
4326
5196
|
} | undefined;
|
4327
|
-
min?: number | undefined;
|
4328
|
-
max?: number | undefined;
|
4329
5197
|
} | undefined;
|
4330
5198
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
4331
5199
|
id: z.ZodString;
|
@@ -4373,47 +5241,34 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4373
5241
|
}>>;
|
4374
5242
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4375
5243
|
}, {
|
4376
|
-
type: z.ZodLiteral<"
|
5244
|
+
type: z.ZodLiteral<"PARAGRAPH">;
|
4377
5245
|
defaultValue: z.ZodOptional<z.ZodString>;
|
4378
|
-
configuration: z.
|
4379
|
-
|
4380
|
-
|
4381
|
-
|
4382
|
-
|
4383
|
-
|
4384
|
-
|
4385
|
-
defaultMessage: string;
|
4386
|
-
}>>;
|
4387
|
-
postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4388
|
-
id: string;
|
4389
|
-
description: string;
|
4390
|
-
defaultMessage: string;
|
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;
|
4391
5253
|
}>>;
|
4392
5254
|
}, "strip", z.ZodTypeAny, {
|
4393
|
-
|
4394
|
-
|
4395
|
-
postfix?: TranslationConfig | undefined;
|
4396
|
-
rows?: number | undefined;
|
4397
|
-
cols?: number | undefined;
|
4398
|
-
}, {
|
4399
|
-
maxLength?: number | undefined;
|
4400
|
-
prefix?: {
|
4401
|
-
id: string;
|
4402
|
-
description: string;
|
4403
|
-
defaultMessage: string;
|
5255
|
+
styles?: {
|
5256
|
+
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
4404
5257
|
} | undefined;
|
4405
|
-
|
4406
|
-
|
4407
|
-
|
4408
|
-
defaultMessage: string;
|
5258
|
+
}, {
|
5259
|
+
styles?: {
|
5260
|
+
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
4409
5261
|
} | undefined;
|
4410
|
-
|
4411
|
-
cols?: number | undefined;
|
4412
|
-
}>>>;
|
5262
|
+
}>>;
|
4413
5263
|
}>, "strip", z.ZodTypeAny, {
|
4414
|
-
type: "
|
5264
|
+
type: "PARAGRAPH";
|
4415
5265
|
id: string;
|
4416
5266
|
label: TranslationConfig;
|
5267
|
+
configuration: {
|
5268
|
+
styles?: {
|
5269
|
+
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
5270
|
+
} | undefined;
|
5271
|
+
};
|
4417
5272
|
parent?: {
|
4418
5273
|
$$field: string;
|
4419
5274
|
} | undefined;
|
@@ -4436,15 +5291,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4436
5291
|
helperText?: TranslationConfig | undefined;
|
4437
5292
|
hideLabel?: boolean | undefined;
|
4438
5293
|
defaultValue?: string | undefined;
|
4439
|
-
configuration?: {
|
4440
|
-
maxLength?: number | undefined;
|
4441
|
-
prefix?: TranslationConfig | undefined;
|
4442
|
-
postfix?: TranslationConfig | undefined;
|
4443
|
-
rows?: number | undefined;
|
4444
|
-
cols?: number | undefined;
|
4445
|
-
} | undefined;
|
4446
5294
|
}, {
|
4447
|
-
type: "
|
5295
|
+
type: "PARAGRAPH";
|
4448
5296
|
id: string;
|
4449
5297
|
label: {
|
4450
5298
|
id: string;
|
@@ -4486,19 +5334,9 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4486
5334
|
hideLabel?: boolean | undefined;
|
4487
5335
|
defaultValue?: string | undefined;
|
4488
5336
|
configuration?: {
|
4489
|
-
|
4490
|
-
|
4491
|
-
id: string;
|
4492
|
-
description: string;
|
4493
|
-
defaultMessage: string;
|
4494
|
-
} | undefined;
|
4495
|
-
postfix?: {
|
4496
|
-
id: string;
|
4497
|
-
description: string;
|
4498
|
-
defaultMessage: string;
|
5337
|
+
styles?: {
|
5338
|
+
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
4499
5339
|
} | undefined;
|
4500
|
-
rows?: number | undefined;
|
4501
|
-
cols?: number | undefined;
|
4502
5340
|
} | undefined;
|
4503
5341
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
4504
5342
|
id: z.ZodString;
|
@@ -4546,26 +5384,50 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4546
5384
|
}>>;
|
4547
5385
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4548
5386
|
}, {
|
4549
|
-
type: z.ZodLiteral<"
|
5387
|
+
type: z.ZodLiteral<"RADIO_GROUP">;
|
4550
5388
|
defaultValue: z.ZodOptional<z.ZodString>;
|
4551
|
-
|
4552
|
-
|
5389
|
+
options: z.ZodArray<z.ZodObject<{
|
5390
|
+
value: z.ZodString;
|
5391
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
4553
5392
|
id: string;
|
4554
5393
|
description: string;
|
4555
5394
|
defaultMessage: string;
|
4556
|
-
}
|
5395
|
+
}>;
|
4557
5396
|
}, "strip", z.ZodTypeAny, {
|
4558
|
-
|
5397
|
+
value: string;
|
5398
|
+
label: TranslationConfig;
|
4559
5399
|
}, {
|
4560
|
-
|
5400
|
+
value: string;
|
5401
|
+
label: {
|
4561
5402
|
id: string;
|
4562
5403
|
description: string;
|
4563
5404
|
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;
|
4564
5422
|
} | undefined;
|
4565
5423
|
}>>;
|
4566
5424
|
}>, "strip", z.ZodTypeAny, {
|
4567
|
-
type: "
|
5425
|
+
type: "RADIO_GROUP";
|
4568
5426
|
id: string;
|
5427
|
+
options: {
|
5428
|
+
value: string;
|
5429
|
+
label: TranslationConfig;
|
5430
|
+
}[];
|
4569
5431
|
label: TranslationConfig;
|
4570
5432
|
parent?: {
|
4571
5433
|
$$field: string;
|
@@ -4590,11 +5452,21 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4590
5452
|
hideLabel?: boolean | undefined;
|
4591
5453
|
defaultValue?: string | undefined;
|
4592
5454
|
configuration?: {
|
4593
|
-
|
5455
|
+
styles?: {
|
5456
|
+
size?: "NORMAL" | "LARGE" | undefined;
|
5457
|
+
} | undefined;
|
4594
5458
|
} | undefined;
|
4595
5459
|
}, {
|
4596
|
-
type: "
|
5460
|
+
type: "RADIO_GROUP";
|
4597
5461
|
id: string;
|
5462
|
+
options: {
|
5463
|
+
value: string;
|
5464
|
+
label: {
|
5465
|
+
id: string;
|
5466
|
+
description: string;
|
5467
|
+
defaultMessage: string;
|
5468
|
+
};
|
5469
|
+
}[];
|
4598
5470
|
label: {
|
4599
5471
|
id: string;
|
4600
5472
|
description: string;
|
@@ -4635,10 +5507,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4635
5507
|
hideLabel?: boolean | undefined;
|
4636
5508
|
defaultValue?: string | undefined;
|
4637
5509
|
configuration?: {
|
4638
|
-
|
4639
|
-
|
4640
|
-
description: string;
|
4641
|
-
defaultMessage: string;
|
5510
|
+
styles?: {
|
5511
|
+
size?: "NORMAL" | "LARGE" | undefined;
|
4642
5512
|
} | undefined;
|
4643
5513
|
} | undefined;
|
4644
5514
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
@@ -4687,27 +5557,40 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4687
5557
|
}>>;
|
4688
5558
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4689
5559
|
}, {
|
4690
|
-
type: z.ZodLiteral<"
|
4691
|
-
defaultValue: z.ZodOptional<z.
|
4692
|
-
|
4693
|
-
|
4694
|
-
|
4695
|
-
|
4696
|
-
|
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;
|
4697
5574
|
}>>;
|
4698
5575
|
}, "strip", z.ZodTypeAny, {
|
4699
|
-
|
5576
|
+
styles?: {
|
5577
|
+
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
5578
|
+
} | undefined;
|
4700
5579
|
}, {
|
4701
|
-
|
4702
|
-
|
4703
|
-
description: string;
|
4704
|
-
defaultMessage: string;
|
5580
|
+
styles?: {
|
5581
|
+
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
4705
5582
|
} | undefined;
|
4706
5583
|
}>>;
|
4707
5584
|
}>, "strip", z.ZodTypeAny, {
|
4708
|
-
type: "
|
5585
|
+
type: "BULLET_LIST";
|
4709
5586
|
id: string;
|
4710
5587
|
label: TranslationConfig;
|
5588
|
+
configuration: {
|
5589
|
+
styles?: {
|
5590
|
+
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
5591
|
+
} | undefined;
|
5592
|
+
};
|
5593
|
+
items: TranslationConfig[];
|
4711
5594
|
parent?: {
|
4712
5595
|
$$field: string;
|
4713
5596
|
} | undefined;
|
@@ -4729,18 +5612,20 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4729
5612
|
placeholder?: TranslationConfig | undefined;
|
4730
5613
|
helperText?: TranslationConfig | undefined;
|
4731
5614
|
hideLabel?: boolean | undefined;
|
4732
|
-
defaultValue?: string |
|
4733
|
-
configuration?: {
|
4734
|
-
notice?: TranslationConfig | undefined;
|
4735
|
-
} | undefined;
|
5615
|
+
defaultValue?: string | undefined;
|
4736
5616
|
}, {
|
4737
|
-
type: "
|
5617
|
+
type: "BULLET_LIST";
|
4738
5618
|
id: string;
|
4739
5619
|
label: {
|
4740
5620
|
id: string;
|
4741
5621
|
description: string;
|
4742
5622
|
defaultMessage: string;
|
4743
5623
|
};
|
5624
|
+
items: {
|
5625
|
+
id: string;
|
5626
|
+
description: string;
|
5627
|
+
defaultMessage: string;
|
5628
|
+
}[];
|
4744
5629
|
parent?: {
|
4745
5630
|
$$field: string;
|
4746
5631
|
} | undefined;
|
@@ -4774,12 +5659,10 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4774
5659
|
defaultMessage: string;
|
4775
5660
|
} | undefined;
|
4776
5661
|
hideLabel?: boolean | undefined;
|
4777
|
-
defaultValue?: string |
|
5662
|
+
defaultValue?: string | undefined;
|
4778
5663
|
configuration?: {
|
4779
|
-
|
4780
|
-
|
4781
|
-
description: string;
|
4782
|
-
defaultMessage: string;
|
5664
|
+
styles?: {
|
5665
|
+
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
4783
5666
|
} | undefined;
|
4784
5667
|
} | undefined;
|
4785
5668
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
@@ -4828,34 +5711,12 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4828
5711
|
}>>;
|
4829
5712
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4830
5713
|
}, {
|
4831
|
-
type: z.ZodLiteral<"
|
5714
|
+
type: z.ZodLiteral<"PAGE_HEADER">;
|
4832
5715
|
defaultValue: z.ZodOptional<z.ZodString>;
|
4833
|
-
configuration: z.ZodDefault<z.ZodObject<{
|
4834
|
-
styles: z.ZodOptional<z.ZodObject<{
|
4835
|
-
fontVariant: z.ZodOptional<z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>>;
|
4836
|
-
}, "strip", z.ZodTypeAny, {
|
4837
|
-
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
4838
|
-
}, {
|
4839
|
-
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
4840
|
-
}>>;
|
4841
|
-
}, "strip", z.ZodTypeAny, {
|
4842
|
-
styles?: {
|
4843
|
-
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
4844
|
-
} | undefined;
|
4845
|
-
}, {
|
4846
|
-
styles?: {
|
4847
|
-
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
4848
|
-
} | undefined;
|
4849
|
-
}>>;
|
4850
5716
|
}>, "strip", z.ZodTypeAny, {
|
4851
|
-
type: "
|
5717
|
+
type: "PAGE_HEADER";
|
4852
5718
|
id: string;
|
4853
5719
|
label: TranslationConfig;
|
4854
|
-
configuration: {
|
4855
|
-
styles?: {
|
4856
|
-
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
4857
|
-
} | undefined;
|
4858
|
-
};
|
4859
5720
|
parent?: {
|
4860
5721
|
$$field: string;
|
4861
5722
|
} | undefined;
|
@@ -4879,7 +5740,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4879
5740
|
hideLabel?: boolean | undefined;
|
4880
5741
|
defaultValue?: string | undefined;
|
4881
5742
|
}, {
|
4882
|
-
type: "
|
5743
|
+
type: "PAGE_HEADER";
|
4883
5744
|
id: string;
|
4884
5745
|
label: {
|
4885
5746
|
id: string;
|
@@ -4920,11 +5781,6 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4920
5781
|
} | undefined;
|
4921
5782
|
hideLabel?: boolean | undefined;
|
4922
5783
|
defaultValue?: string | undefined;
|
4923
|
-
configuration?: {
|
4924
|
-
styles?: {
|
4925
|
-
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
4926
|
-
} | undefined;
|
4927
|
-
} | undefined;
|
4928
5784
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
4929
5785
|
id: z.ZodString;
|
4930
5786
|
parent: z.ZodOptional<z.ZodObject<{
|
@@ -4971,7 +5827,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4971
5827
|
}>>;
|
4972
5828
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4973
5829
|
}, {
|
4974
|
-
type: z.ZodLiteral<"
|
5830
|
+
type: z.ZodLiteral<"SELECT">;
|
4975
5831
|
defaultValue: z.ZodOptional<z.ZodString>;
|
4976
5832
|
options: z.ZodArray<z.ZodObject<{
|
4977
5833
|
value: z.ZodString;
|
@@ -4991,25 +5847,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4991
5847
|
defaultMessage: string;
|
4992
5848
|
};
|
4993
5849
|
}>, "many">;
|
4994
|
-
configuration: z.ZodOptional<z.ZodObject<{
|
4995
|
-
styles: z.ZodOptional<z.ZodObject<{
|
4996
|
-
size: z.ZodOptional<z.ZodEnum<["NORMAL", "LARGE"]>>;
|
4997
|
-
}, "strip", z.ZodTypeAny, {
|
4998
|
-
size?: "NORMAL" | "LARGE" | undefined;
|
4999
|
-
}, {
|
5000
|
-
size?: "NORMAL" | "LARGE" | undefined;
|
5001
|
-
}>>;
|
5002
|
-
}, "strip", z.ZodTypeAny, {
|
5003
|
-
styles?: {
|
5004
|
-
size?: "NORMAL" | "LARGE" | undefined;
|
5005
|
-
} | undefined;
|
5006
|
-
}, {
|
5007
|
-
styles?: {
|
5008
|
-
size?: "NORMAL" | "LARGE" | undefined;
|
5009
|
-
} | undefined;
|
5010
|
-
}>>;
|
5011
5850
|
}>, "strip", z.ZodTypeAny, {
|
5012
|
-
type: "
|
5851
|
+
type: "SELECT";
|
5013
5852
|
id: string;
|
5014
5853
|
options: {
|
5015
5854
|
value: string;
|
@@ -5038,13 +5877,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
5038
5877
|
helperText?: TranslationConfig | undefined;
|
5039
5878
|
hideLabel?: boolean | undefined;
|
5040
5879
|
defaultValue?: string | undefined;
|
5041
|
-
configuration?: {
|
5042
|
-
styles?: {
|
5043
|
-
size?: "NORMAL" | "LARGE" | undefined;
|
5044
|
-
} | undefined;
|
5045
|
-
} | undefined;
|
5046
5880
|
}, {
|
5047
|
-
type: "
|
5881
|
+
type: "SELECT";
|
5048
5882
|
id: string;
|
5049
5883
|
options: {
|
5050
5884
|
value: string;
|
@@ -5093,11 +5927,6 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
5093
5927
|
} | undefined;
|
5094
5928
|
hideLabel?: boolean | undefined;
|
5095
5929
|
defaultValue?: string | undefined;
|
5096
|
-
configuration?: {
|
5097
|
-
styles?: {
|
5098
|
-
size?: "NORMAL" | "LARGE" | undefined;
|
5099
|
-
} | undefined;
|
5100
|
-
} | undefined;
|
5101
5930
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
5102
5931
|
id: z.ZodString;
|
5103
5932
|
parent: z.ZodOptional<z.ZodObject<{
|
@@ -5144,40 +5973,50 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
5144
5973
|
}>>;
|
5145
5974
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
5146
5975
|
}, {
|
5147
|
-
type: z.ZodLiteral<"
|
5148
|
-
defaultValue: z.ZodOptional<z.
|
5149
|
-
|
5150
|
-
|
5151
|
-
|
5152
|
-
|
5153
|
-
|
5154
|
-
|
5155
|
-
|
5156
|
-
|
5157
|
-
|
5158
|
-
|
5159
|
-
|
5160
|
-
|
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;
|
5161
5998
|
}>>;
|
5162
5999
|
}, "strip", z.ZodTypeAny, {
|
5163
|
-
|
5164
|
-
|
5165
|
-
|
6000
|
+
maxLength?: number | undefined;
|
6001
|
+
prefix?: TranslationConfig | undefined;
|
6002
|
+
postfix?: TranslationConfig | undefined;
|
5166
6003
|
}, {
|
5167
|
-
|
5168
|
-
|
6004
|
+
maxLength?: number | undefined;
|
6005
|
+
prefix?: {
|
6006
|
+
id: string;
|
6007
|
+
description: string;
|
6008
|
+
defaultMessage: string;
|
6009
|
+
} | undefined;
|
6010
|
+
postfix?: {
|
6011
|
+
id: string;
|
6012
|
+
description: string;
|
6013
|
+
defaultMessage: string;
|
5169
6014
|
} | undefined;
|
5170
6015
|
}>>;
|
5171
6016
|
}>, "strip", z.ZodTypeAny, {
|
5172
|
-
type: "
|
6017
|
+
type: "NAME";
|
5173
6018
|
id: string;
|
5174
6019
|
label: TranslationConfig;
|
5175
|
-
configuration: {
|
5176
|
-
styles?: {
|
5177
|
-
fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
|
5178
|
-
} | undefined;
|
5179
|
-
};
|
5180
|
-
items: TranslationConfig[];
|
5181
6020
|
parent?: {
|
5182
6021
|
$$field: string;
|
5183
6022
|
} | undefined;
|
@@ -5199,20 +6038,23 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
5199
6038
|
placeholder?: TranslationConfig | undefined;
|
5200
6039
|
helperText?: TranslationConfig | undefined;
|
5201
6040
|
hideLabel?: boolean | undefined;
|
5202
|
-
defaultValue?:
|
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;
|
5203
6050
|
}, {
|
5204
|
-
type: "
|
6051
|
+
type: "NAME";
|
5205
6052
|
id: string;
|
5206
6053
|
label: {
|
5207
6054
|
id: string;
|
5208
6055
|
description: string;
|
5209
6056
|
defaultMessage: string;
|
5210
6057
|
};
|
5211
|
-
items: {
|
5212
|
-
id: string;
|
5213
|
-
description: string;
|
5214
|
-
defaultMessage: string;
|
5215
|
-
}[];
|
5216
6058
|
parent?: {
|
5217
6059
|
$$field: string;
|
5218
6060
|
} | undefined;
|
@@ -5246,10 +6088,21 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
5246
6088
|
defaultMessage: string;
|
5247
6089
|
} | undefined;
|
5248
6090
|
hideLabel?: boolean | undefined;
|
5249
|
-
defaultValue?:
|
6091
|
+
defaultValue?: {
|
6092
|
+
firstname: string;
|
6093
|
+
surname: string;
|
6094
|
+
} | undefined;
|
5250
6095
|
configuration?: {
|
5251
|
-
|
5252
|
-
|
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;
|
5253
6106
|
} | undefined;
|
5254
6107
|
} | undefined;
|
5255
6108
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
@@ -5298,10 +6151,10 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
5298
6151
|
}>>;
|
5299
6152
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
5300
6153
|
}, {
|
5301
|
-
type: z.ZodLiteral<"PAGE_HEADER">;
|
5302
6154
|
defaultValue: z.ZodOptional<z.ZodString>;
|
6155
|
+
type: z.ZodLiteral<"PHONE">;
|
5303
6156
|
}>, "strip", z.ZodTypeAny, {
|
5304
|
-
type: "
|
6157
|
+
type: "PHONE";
|
5305
6158
|
id: string;
|
5306
6159
|
label: TranslationConfig;
|
5307
6160
|
parent?: {
|
@@ -5327,7 +6180,7 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
5327
6180
|
hideLabel?: boolean | undefined;
|
5328
6181
|
defaultValue?: string | undefined;
|
5329
6182
|
}, {
|
5330
|
-
type: "
|
6183
|
+
type: "PHONE";
|
5331
6184
|
id: string;
|
5332
6185
|
label: {
|
5333
6186
|
id: string;
|
@@ -5414,33 +6267,11 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
5414
6267
|
}>>;
|
5415
6268
|
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
5416
6269
|
}, {
|
5417
|
-
type: z.ZodLiteral<"SELECT">;
|
5418
6270
|
defaultValue: z.ZodOptional<z.ZodString>;
|
5419
|
-
|
5420
|
-
value: z.ZodString;
|
5421
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
5422
|
-
id: string;
|
5423
|
-
description: string;
|
5424
|
-
defaultMessage: string;
|
5425
|
-
}>;
|
5426
|
-
}, "strip", z.ZodTypeAny, {
|
5427
|
-
value: string;
|
5428
|
-
label: TranslationConfig;
|
5429
|
-
}, {
|
5430
|
-
value: string;
|
5431
|
-
label: {
|
5432
|
-
id: string;
|
5433
|
-
description: string;
|
5434
|
-
defaultMessage: string;
|
5435
|
-
};
|
5436
|
-
}>, "many">;
|
6271
|
+
type: z.ZodLiteral<"ID">;
|
5437
6272
|
}>, "strip", z.ZodTypeAny, {
|
5438
|
-
type: "
|
6273
|
+
type: "ID";
|
5439
6274
|
id: string;
|
5440
|
-
options: {
|
5441
|
-
value: string;
|
5442
|
-
label: TranslationConfig;
|
5443
|
-
}[];
|
5444
6275
|
label: TranslationConfig;
|
5445
6276
|
parent?: {
|
5446
6277
|
$$field: string;
|
@@ -5465,16 +6296,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
5465
6296
|
hideLabel?: boolean | undefined;
|
5466
6297
|
defaultValue?: string | undefined;
|
5467
6298
|
}, {
|
5468
|
-
type: "
|
6299
|
+
type: "ID";
|
5469
6300
|
id: string;
|
5470
|
-
options: {
|
5471
|
-
value: string;
|
5472
|
-
label: {
|
5473
|
-
id: string;
|
5474
|
-
description: string;
|
5475
|
-
defaultMessage: string;
|
5476
|
-
};
|
5477
|
-
}[];
|
5478
6301
|
label: {
|
5479
6302
|
id: string;
|
5480
6303
|
description: string;
|
@@ -7220,6 +8043,9 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
7220
8043
|
hideLabel?: boolean | undefined;
|
7221
8044
|
}>]>;
|
7222
8045
|
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>;
|
7223
8049
|
export type LocationField = z.infer<typeof Location>;
|
7224
8050
|
export type RadioField = z.infer<typeof RadioGroup>;
|
7225
8051
|
export type AddressField = z.infer<typeof Address>;
|