@opencrvs/toolkit 1.8.1-rc.e59d03c → 1.8.1-rc.ebf61ab
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/events/ActionConfig.d.ts +1920 -276
- package/dist/commons/events/EventConfig.d.ts +586 -94
- package/dist/commons/events/FieldConfig.d.ts +263 -28
- package/dist/commons/events/FormConfig.d.ts +924 -132
- package/dist/commons/events/PageConfig.d.ts +260 -36
- package/dist/commons/events/defineConfig.d.ts +54 -18
- package/dist/commons/events/utils.d.ts +96 -32
- package/dist/events/index.js +31 -9
- package/package.json +1 -1
@@ -2750,44 +2750,95 @@ export type SelectDateRangeField = z.infer<typeof SelectDateRangeField>;
|
|
2750
2750
|
export declare const NameConfig: z.ZodObject<{
|
2751
2751
|
firstname: z.ZodOptional<z.ZodObject<{
|
2752
2752
|
required: z.ZodBoolean;
|
2753
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
2754
|
+
id: string;
|
2755
|
+
description: string;
|
2756
|
+
defaultMessage: string;
|
2757
|
+
}>>;
|
2753
2758
|
}, "strip", z.ZodTypeAny, {
|
2754
2759
|
required: boolean;
|
2760
|
+
label?: TranslationConfig | undefined;
|
2755
2761
|
}, {
|
2756
2762
|
required: boolean;
|
2763
|
+
label?: {
|
2764
|
+
id: string;
|
2765
|
+
description: string;
|
2766
|
+
defaultMessage: string;
|
2767
|
+
} | undefined;
|
2757
2768
|
}>>;
|
2758
2769
|
middlename: z.ZodOptional<z.ZodObject<{
|
2759
2770
|
required: z.ZodBoolean;
|
2771
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
2772
|
+
id: string;
|
2773
|
+
description: string;
|
2774
|
+
defaultMessage: string;
|
2775
|
+
}>>;
|
2760
2776
|
}, "strip", z.ZodTypeAny, {
|
2761
2777
|
required: boolean;
|
2778
|
+
label?: TranslationConfig | undefined;
|
2762
2779
|
}, {
|
2763
2780
|
required: boolean;
|
2781
|
+
label?: {
|
2782
|
+
id: string;
|
2783
|
+
description: string;
|
2784
|
+
defaultMessage: string;
|
2785
|
+
} | undefined;
|
2764
2786
|
}>>;
|
2765
2787
|
surname: z.ZodOptional<z.ZodObject<{
|
2766
2788
|
required: z.ZodBoolean;
|
2789
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
2790
|
+
id: string;
|
2791
|
+
description: string;
|
2792
|
+
defaultMessage: string;
|
2793
|
+
}>>;
|
2767
2794
|
}, "strip", z.ZodTypeAny, {
|
2768
2795
|
required: boolean;
|
2796
|
+
label?: TranslationConfig | undefined;
|
2769
2797
|
}, {
|
2770
2798
|
required: boolean;
|
2799
|
+
label?: {
|
2800
|
+
id: string;
|
2801
|
+
description: string;
|
2802
|
+
defaultMessage: string;
|
2803
|
+
} | undefined;
|
2771
2804
|
}>>;
|
2772
2805
|
}, "strip", z.ZodTypeAny, {
|
2773
2806
|
firstname?: {
|
2774
2807
|
required: boolean;
|
2808
|
+
label?: TranslationConfig | undefined;
|
2775
2809
|
} | undefined;
|
2776
2810
|
surname?: {
|
2777
2811
|
required: boolean;
|
2812
|
+
label?: TranslationConfig | undefined;
|
2778
2813
|
} | undefined;
|
2779
2814
|
middlename?: {
|
2780
2815
|
required: boolean;
|
2816
|
+
label?: TranslationConfig | undefined;
|
2781
2817
|
} | undefined;
|
2782
2818
|
}, {
|
2783
2819
|
firstname?: {
|
2784
2820
|
required: boolean;
|
2821
|
+
label?: {
|
2822
|
+
id: string;
|
2823
|
+
description: string;
|
2824
|
+
defaultMessage: string;
|
2825
|
+
} | undefined;
|
2785
2826
|
} | undefined;
|
2786
2827
|
surname?: {
|
2787
2828
|
required: boolean;
|
2829
|
+
label?: {
|
2830
|
+
id: string;
|
2831
|
+
description: string;
|
2832
|
+
defaultMessage: string;
|
2833
|
+
} | undefined;
|
2788
2834
|
} | undefined;
|
2789
2835
|
middlename?: {
|
2790
2836
|
required: boolean;
|
2837
|
+
label?: {
|
2838
|
+
id: string;
|
2839
|
+
description: string;
|
2840
|
+
defaultMessage: string;
|
2841
|
+
} | undefined;
|
2791
2842
|
} | undefined;
|
2792
2843
|
}>;
|
2793
2844
|
export type NameConfig = z.infer<typeof NameConfig>;
|
@@ -2857,46 +2908,98 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
2857
2908
|
name: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
2858
2909
|
firstname: z.ZodOptional<z.ZodObject<{
|
2859
2910
|
required: z.ZodBoolean;
|
2911
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
2912
|
+
id: string;
|
2913
|
+
description: string;
|
2914
|
+
defaultMessage: string;
|
2915
|
+
}>>;
|
2860
2916
|
}, "strip", z.ZodTypeAny, {
|
2861
2917
|
required: boolean;
|
2918
|
+
label?: TranslationConfig | undefined;
|
2862
2919
|
}, {
|
2863
2920
|
required: boolean;
|
2921
|
+
label?: {
|
2922
|
+
id: string;
|
2923
|
+
description: string;
|
2924
|
+
defaultMessage: string;
|
2925
|
+
} | undefined;
|
2864
2926
|
}>>;
|
2865
2927
|
middlename: z.ZodOptional<z.ZodObject<{
|
2866
2928
|
required: z.ZodBoolean;
|
2929
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
2930
|
+
id: string;
|
2931
|
+
description: string;
|
2932
|
+
defaultMessage: string;
|
2933
|
+
}>>;
|
2867
2934
|
}, "strip", z.ZodTypeAny, {
|
2868
2935
|
required: boolean;
|
2936
|
+
label?: TranslationConfig | undefined;
|
2869
2937
|
}, {
|
2870
2938
|
required: boolean;
|
2939
|
+
label?: {
|
2940
|
+
id: string;
|
2941
|
+
description: string;
|
2942
|
+
defaultMessage: string;
|
2943
|
+
} | undefined;
|
2871
2944
|
}>>;
|
2872
2945
|
surname: z.ZodOptional<z.ZodObject<{
|
2873
2946
|
required: z.ZodBoolean;
|
2947
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
2948
|
+
id: string;
|
2949
|
+
description: string;
|
2950
|
+
defaultMessage: string;
|
2951
|
+
}>>;
|
2874
2952
|
}, "strip", z.ZodTypeAny, {
|
2875
2953
|
required: boolean;
|
2954
|
+
label?: TranslationConfig | undefined;
|
2876
2955
|
}, {
|
2877
2956
|
required: boolean;
|
2957
|
+
label?: {
|
2958
|
+
id: string;
|
2959
|
+
description: string;
|
2960
|
+
defaultMessage: string;
|
2961
|
+
} | undefined;
|
2878
2962
|
}>>;
|
2879
2963
|
}, "strip", z.ZodTypeAny, {
|
2880
2964
|
firstname?: {
|
2881
2965
|
required: boolean;
|
2966
|
+
label?: TranslationConfig | undefined;
|
2882
2967
|
} | undefined;
|
2883
2968
|
surname?: {
|
2884
2969
|
required: boolean;
|
2970
|
+
label?: TranslationConfig | undefined;
|
2885
2971
|
} | undefined;
|
2886
2972
|
middlename?: {
|
2887
2973
|
required: boolean;
|
2974
|
+
label?: TranslationConfig | undefined;
|
2888
2975
|
} | undefined;
|
2889
2976
|
}, {
|
2890
2977
|
firstname?: {
|
2891
2978
|
required: boolean;
|
2979
|
+
label?: {
|
2980
|
+
id: string;
|
2981
|
+
description: string;
|
2982
|
+
defaultMessage: string;
|
2983
|
+
} | undefined;
|
2892
2984
|
} | undefined;
|
2893
2985
|
surname?: {
|
2894
2986
|
required: boolean;
|
2987
|
+
label?: {
|
2988
|
+
id: string;
|
2989
|
+
description: string;
|
2990
|
+
defaultMessage: string;
|
2991
|
+
} | undefined;
|
2895
2992
|
} | undefined;
|
2896
2993
|
middlename?: {
|
2897
2994
|
required: boolean;
|
2995
|
+
label?: {
|
2996
|
+
id: string;
|
2997
|
+
description: string;
|
2998
|
+
defaultMessage: string;
|
2999
|
+
} | undefined;
|
2898
3000
|
} | undefined;
|
2899
3001
|
}>>>;
|
3002
|
+
order: z.ZodOptional<z.ZodArray<z.ZodEnum<["firstname", "middlename", "surname"]>, "many">>;
|
2900
3003
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
2901
3004
|
prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
2902
3005
|
id: string;
|
@@ -2908,35 +3011,53 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
2908
3011
|
description: string;
|
2909
3012
|
defaultMessage: string;
|
2910
3013
|
}>>;
|
2911
|
-
searchMode: z.ZodOptional<z.ZodBoolean>;
|
2912
3014
|
}, "strip", z.ZodTypeAny, {
|
2913
3015
|
name?: {
|
2914
3016
|
firstname?: {
|
2915
3017
|
required: boolean;
|
3018
|
+
label?: TranslationConfig | undefined;
|
2916
3019
|
} | undefined;
|
2917
3020
|
surname?: {
|
2918
3021
|
required: boolean;
|
3022
|
+
label?: TranslationConfig | undefined;
|
2919
3023
|
} | undefined;
|
2920
3024
|
middlename?: {
|
2921
3025
|
required: boolean;
|
3026
|
+
label?: TranslationConfig | undefined;
|
2922
3027
|
} | undefined;
|
2923
3028
|
} | undefined;
|
3029
|
+
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
2924
3030
|
maxLength?: number | undefined;
|
2925
3031
|
prefix?: TranslationConfig | undefined;
|
2926
3032
|
postfix?: TranslationConfig | undefined;
|
2927
|
-
searchMode?: boolean | undefined;
|
2928
3033
|
}, {
|
2929
3034
|
name?: {
|
2930
3035
|
firstname?: {
|
2931
3036
|
required: boolean;
|
3037
|
+
label?: {
|
3038
|
+
id: string;
|
3039
|
+
description: string;
|
3040
|
+
defaultMessage: string;
|
3041
|
+
} | undefined;
|
2932
3042
|
} | undefined;
|
2933
3043
|
surname?: {
|
2934
3044
|
required: boolean;
|
3045
|
+
label?: {
|
3046
|
+
id: string;
|
3047
|
+
description: string;
|
3048
|
+
defaultMessage: string;
|
3049
|
+
} | undefined;
|
2935
3050
|
} | undefined;
|
2936
3051
|
middlename?: {
|
2937
3052
|
required: boolean;
|
3053
|
+
label?: {
|
3054
|
+
id: string;
|
3055
|
+
description: string;
|
3056
|
+
defaultMessage: string;
|
3057
|
+
} | undefined;
|
2938
3058
|
} | undefined;
|
2939
3059
|
} | undefined;
|
3060
|
+
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
2940
3061
|
maxLength?: number | undefined;
|
2941
3062
|
prefix?: {
|
2942
3063
|
id: string;
|
@@ -2948,7 +3069,6 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
2948
3069
|
description: string;
|
2949
3070
|
defaultMessage: string;
|
2950
3071
|
} | undefined;
|
2951
|
-
searchMode?: boolean | undefined;
|
2952
3072
|
}>>>;
|
2953
3073
|
}>, "strip", z.ZodTypeAny, {
|
2954
3074
|
type: "NAME";
|
@@ -2986,18 +3106,21 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
2986
3106
|
name?: {
|
2987
3107
|
firstname?: {
|
2988
3108
|
required: boolean;
|
3109
|
+
label?: TranslationConfig | undefined;
|
2989
3110
|
} | undefined;
|
2990
3111
|
surname?: {
|
2991
3112
|
required: boolean;
|
3113
|
+
label?: TranslationConfig | undefined;
|
2992
3114
|
} | undefined;
|
2993
3115
|
middlename?: {
|
2994
3116
|
required: boolean;
|
3117
|
+
label?: TranslationConfig | undefined;
|
2995
3118
|
} | undefined;
|
2996
3119
|
} | undefined;
|
3120
|
+
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
2997
3121
|
maxLength?: number | undefined;
|
2998
3122
|
prefix?: TranslationConfig | undefined;
|
2999
3123
|
postfix?: TranslationConfig | undefined;
|
3000
|
-
searchMode?: boolean | undefined;
|
3001
3124
|
} | undefined;
|
3002
3125
|
}, {
|
3003
3126
|
type: "NAME";
|
@@ -3051,14 +3174,30 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3051
3174
|
name?: {
|
3052
3175
|
firstname?: {
|
3053
3176
|
required: boolean;
|
3177
|
+
label?: {
|
3178
|
+
id: string;
|
3179
|
+
description: string;
|
3180
|
+
defaultMessage: string;
|
3181
|
+
} | undefined;
|
3054
3182
|
} | undefined;
|
3055
3183
|
surname?: {
|
3056
3184
|
required: boolean;
|
3185
|
+
label?: {
|
3186
|
+
id: string;
|
3187
|
+
description: string;
|
3188
|
+
defaultMessage: string;
|
3189
|
+
} | undefined;
|
3057
3190
|
} | undefined;
|
3058
3191
|
middlename?: {
|
3059
3192
|
required: boolean;
|
3193
|
+
label?: {
|
3194
|
+
id: string;
|
3195
|
+
description: string;
|
3196
|
+
defaultMessage: string;
|
3197
|
+
} | undefined;
|
3060
3198
|
} | undefined;
|
3061
3199
|
} | undefined;
|
3200
|
+
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
3062
3201
|
maxLength?: number | undefined;
|
3063
3202
|
prefix?: {
|
3064
3203
|
id: string;
|
@@ -3070,7 +3209,6 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3070
3209
|
description: string;
|
3071
3210
|
defaultMessage: string;
|
3072
3211
|
} | undefined;
|
3073
|
-
searchMode?: boolean | undefined;
|
3074
3212
|
} | undefined;
|
3075
3213
|
}>;
|
3076
3214
|
declare const PhoneField: z.ZodObject<z.objectUtil.extendShape<{
|
@@ -4375,6 +4513,16 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
4375
4513
|
uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4376
4514
|
}, {
|
4377
4515
|
type: z.ZodLiteral<"ADDRESS">;
|
4516
|
+
configuration: z.ZodOptional<z.ZodObject<{
|
4517
|
+
lineSeparator: z.ZodOptional<z.ZodString>;
|
4518
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["number", "country", "province", "addressType", "district", "urbanOrRural", "town", "residentialArea", "street", "zipCode", "village", "state", "district2", "cityOrTown", "addressLine1", "addressLine2", "addressLine3", "postcodeOrZip"]>, "many">>;
|
4519
|
+
}, "strip", z.ZodTypeAny, {
|
4520
|
+
lineSeparator?: string | undefined;
|
4521
|
+
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
4522
|
+
}, {
|
4523
|
+
lineSeparator?: string | undefined;
|
4524
|
+
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
4525
|
+
}>>;
|
4378
4526
|
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
4379
4527
|
country: z.ZodString;
|
4380
4528
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
@@ -4462,13 +4610,6 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
4462
4610
|
addressLine3?: string | undefined;
|
4463
4611
|
postcodeOrZip?: string | undefined;
|
4464
4612
|
}>]>>;
|
4465
|
-
configuration: z.ZodOptional<z.ZodObject<{
|
4466
|
-
searchMode: z.ZodOptional<z.ZodBoolean>;
|
4467
|
-
}, "strip", z.ZodTypeAny, {
|
4468
|
-
searchMode?: boolean | undefined;
|
4469
|
-
}, {
|
4470
|
-
searchMode?: boolean | undefined;
|
4471
|
-
}>>;
|
4472
4613
|
}>, "strip", z.ZodTypeAny, {
|
4473
4614
|
type: "ADDRESS";
|
4474
4615
|
id: string;
|
@@ -4526,7 +4667,8 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
4526
4667
|
postcodeOrZip?: string | undefined;
|
4527
4668
|
} | undefined;
|
4528
4669
|
configuration?: {
|
4529
|
-
|
4670
|
+
lineSeparator?: string | undefined;
|
4671
|
+
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
4530
4672
|
} | undefined;
|
4531
4673
|
}, {
|
4532
4674
|
type: "ADDRESS";
|
@@ -4601,7 +4743,8 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
4601
4743
|
postcodeOrZip?: string | undefined;
|
4602
4744
|
} | undefined;
|
4603
4745
|
configuration?: {
|
4604
|
-
|
4746
|
+
lineSeparator?: string | undefined;
|
4747
|
+
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
4605
4748
|
} | undefined;
|
4606
4749
|
}>;
|
4607
4750
|
export declare const DataEntry: z.ZodUnion<[z.ZodObject<{
|
@@ -4905,6 +5048,16 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4905
5048
|
uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4906
5049
|
}, {
|
4907
5050
|
type: z.ZodLiteral<"ADDRESS">;
|
5051
|
+
configuration: z.ZodOptional<z.ZodObject<{
|
5052
|
+
lineSeparator: z.ZodOptional<z.ZodString>;
|
5053
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["number", "country", "province", "addressType", "district", "urbanOrRural", "town", "residentialArea", "street", "zipCode", "village", "state", "district2", "cityOrTown", "addressLine1", "addressLine2", "addressLine3", "postcodeOrZip"]>, "many">>;
|
5054
|
+
}, "strip", z.ZodTypeAny, {
|
5055
|
+
lineSeparator?: string | undefined;
|
5056
|
+
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
5057
|
+
}, {
|
5058
|
+
lineSeparator?: string | undefined;
|
5059
|
+
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
5060
|
+
}>>;
|
4908
5061
|
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
4909
5062
|
country: z.ZodString;
|
4910
5063
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
@@ -4992,13 +5145,6 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
4992
5145
|
addressLine3?: string | undefined;
|
4993
5146
|
postcodeOrZip?: string | undefined;
|
4994
5147
|
}>]>>;
|
4995
|
-
configuration: z.ZodOptional<z.ZodObject<{
|
4996
|
-
searchMode: z.ZodOptional<z.ZodBoolean>;
|
4997
|
-
}, "strip", z.ZodTypeAny, {
|
4998
|
-
searchMode?: boolean | undefined;
|
4999
|
-
}, {
|
5000
|
-
searchMode?: boolean | undefined;
|
5001
|
-
}>>;
|
5002
5148
|
}>, "strip", z.ZodTypeAny, {
|
5003
5149
|
type: "ADDRESS";
|
5004
5150
|
id: string;
|
@@ -5056,7 +5202,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
5056
5202
|
postcodeOrZip?: string | undefined;
|
5057
5203
|
} | undefined;
|
5058
5204
|
configuration?: {
|
5059
|
-
|
5205
|
+
lineSeparator?: string | undefined;
|
5206
|
+
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
5060
5207
|
} | undefined;
|
5061
5208
|
}, {
|
5062
5209
|
type: "ADDRESS";
|
@@ -5131,7 +5278,8 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
5131
5278
|
postcodeOrZip?: string | undefined;
|
5132
5279
|
} | undefined;
|
5133
5280
|
configuration?: {
|
5134
|
-
|
5281
|
+
lineSeparator?: string | undefined;
|
5282
|
+
fields?: ("number" | "country" | "district" | "state" | "addressType" | "province" | "urbanOrRural" | "town" | "residentialArea" | "street" | "zipCode" | "village" | "district2" | "cityOrTown" | "addressLine1" | "addressLine2" | "addressLine3" | "postcodeOrZip")[] | undefined;
|
5135
5283
|
} | undefined;
|
5136
5284
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
5137
5285
|
id: z.ZodString;
|
@@ -7103,46 +7251,98 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
7103
7251
|
name: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
7104
7252
|
firstname: z.ZodOptional<z.ZodObject<{
|
7105
7253
|
required: z.ZodBoolean;
|
7254
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
7255
|
+
id: string;
|
7256
|
+
description: string;
|
7257
|
+
defaultMessage: string;
|
7258
|
+
}>>;
|
7106
7259
|
}, "strip", z.ZodTypeAny, {
|
7107
7260
|
required: boolean;
|
7261
|
+
label?: TranslationConfig | undefined;
|
7108
7262
|
}, {
|
7109
7263
|
required: boolean;
|
7264
|
+
label?: {
|
7265
|
+
id: string;
|
7266
|
+
description: string;
|
7267
|
+
defaultMessage: string;
|
7268
|
+
} | undefined;
|
7110
7269
|
}>>;
|
7111
7270
|
middlename: z.ZodOptional<z.ZodObject<{
|
7112
7271
|
required: z.ZodBoolean;
|
7272
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
7273
|
+
id: string;
|
7274
|
+
description: string;
|
7275
|
+
defaultMessage: string;
|
7276
|
+
}>>;
|
7113
7277
|
}, "strip", z.ZodTypeAny, {
|
7114
7278
|
required: boolean;
|
7279
|
+
label?: TranslationConfig | undefined;
|
7115
7280
|
}, {
|
7116
7281
|
required: boolean;
|
7282
|
+
label?: {
|
7283
|
+
id: string;
|
7284
|
+
description: string;
|
7285
|
+
defaultMessage: string;
|
7286
|
+
} | undefined;
|
7117
7287
|
}>>;
|
7118
7288
|
surname: z.ZodOptional<z.ZodObject<{
|
7119
7289
|
required: z.ZodBoolean;
|
7290
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
7291
|
+
id: string;
|
7292
|
+
description: string;
|
7293
|
+
defaultMessage: string;
|
7294
|
+
}>>;
|
7120
7295
|
}, "strip", z.ZodTypeAny, {
|
7121
7296
|
required: boolean;
|
7297
|
+
label?: TranslationConfig | undefined;
|
7122
7298
|
}, {
|
7123
7299
|
required: boolean;
|
7300
|
+
label?: {
|
7301
|
+
id: string;
|
7302
|
+
description: string;
|
7303
|
+
defaultMessage: string;
|
7304
|
+
} | undefined;
|
7124
7305
|
}>>;
|
7125
7306
|
}, "strip", z.ZodTypeAny, {
|
7126
7307
|
firstname?: {
|
7127
7308
|
required: boolean;
|
7309
|
+
label?: TranslationConfig | undefined;
|
7128
7310
|
} | undefined;
|
7129
7311
|
surname?: {
|
7130
7312
|
required: boolean;
|
7313
|
+
label?: TranslationConfig | undefined;
|
7131
7314
|
} | undefined;
|
7132
7315
|
middlename?: {
|
7133
7316
|
required: boolean;
|
7317
|
+
label?: TranslationConfig | undefined;
|
7134
7318
|
} | undefined;
|
7135
7319
|
}, {
|
7136
7320
|
firstname?: {
|
7137
7321
|
required: boolean;
|
7322
|
+
label?: {
|
7323
|
+
id: string;
|
7324
|
+
description: string;
|
7325
|
+
defaultMessage: string;
|
7326
|
+
} | undefined;
|
7138
7327
|
} | undefined;
|
7139
7328
|
surname?: {
|
7140
7329
|
required: boolean;
|
7330
|
+
label?: {
|
7331
|
+
id: string;
|
7332
|
+
description: string;
|
7333
|
+
defaultMessage: string;
|
7334
|
+
} | undefined;
|
7141
7335
|
} | undefined;
|
7142
7336
|
middlename?: {
|
7143
7337
|
required: boolean;
|
7338
|
+
label?: {
|
7339
|
+
id: string;
|
7340
|
+
description: string;
|
7341
|
+
defaultMessage: string;
|
7342
|
+
} | undefined;
|
7144
7343
|
} | undefined;
|
7145
7344
|
}>>>;
|
7345
|
+
order: z.ZodOptional<z.ZodArray<z.ZodEnum<["firstname", "middlename", "surname"]>, "many">>;
|
7146
7346
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
7147
7347
|
prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
7148
7348
|
id: string;
|
@@ -7154,35 +7354,53 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
7154
7354
|
description: string;
|
7155
7355
|
defaultMessage: string;
|
7156
7356
|
}>>;
|
7157
|
-
searchMode: z.ZodOptional<z.ZodBoolean>;
|
7158
7357
|
}, "strip", z.ZodTypeAny, {
|
7159
7358
|
name?: {
|
7160
7359
|
firstname?: {
|
7161
7360
|
required: boolean;
|
7361
|
+
label?: TranslationConfig | undefined;
|
7162
7362
|
} | undefined;
|
7163
7363
|
surname?: {
|
7164
7364
|
required: boolean;
|
7365
|
+
label?: TranslationConfig | undefined;
|
7165
7366
|
} | undefined;
|
7166
7367
|
middlename?: {
|
7167
7368
|
required: boolean;
|
7369
|
+
label?: TranslationConfig | undefined;
|
7168
7370
|
} | undefined;
|
7169
7371
|
} | undefined;
|
7372
|
+
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
7170
7373
|
maxLength?: number | undefined;
|
7171
7374
|
prefix?: TranslationConfig | undefined;
|
7172
7375
|
postfix?: TranslationConfig | undefined;
|
7173
|
-
searchMode?: boolean | undefined;
|
7174
7376
|
}, {
|
7175
7377
|
name?: {
|
7176
7378
|
firstname?: {
|
7177
7379
|
required: boolean;
|
7380
|
+
label?: {
|
7381
|
+
id: string;
|
7382
|
+
description: string;
|
7383
|
+
defaultMessage: string;
|
7384
|
+
} | undefined;
|
7178
7385
|
} | undefined;
|
7179
7386
|
surname?: {
|
7180
7387
|
required: boolean;
|
7388
|
+
label?: {
|
7389
|
+
id: string;
|
7390
|
+
description: string;
|
7391
|
+
defaultMessage: string;
|
7392
|
+
} | undefined;
|
7181
7393
|
} | undefined;
|
7182
7394
|
middlename?: {
|
7183
7395
|
required: boolean;
|
7396
|
+
label?: {
|
7397
|
+
id: string;
|
7398
|
+
description: string;
|
7399
|
+
defaultMessage: string;
|
7400
|
+
} | undefined;
|
7184
7401
|
} | undefined;
|
7185
7402
|
} | undefined;
|
7403
|
+
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
7186
7404
|
maxLength?: number | undefined;
|
7187
7405
|
prefix?: {
|
7188
7406
|
id: string;
|
@@ -7194,7 +7412,6 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
7194
7412
|
description: string;
|
7195
7413
|
defaultMessage: string;
|
7196
7414
|
} | undefined;
|
7197
|
-
searchMode?: boolean | undefined;
|
7198
7415
|
}>>>;
|
7199
7416
|
}>, "strip", z.ZodTypeAny, {
|
7200
7417
|
type: "NAME";
|
@@ -7232,18 +7449,21 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
7232
7449
|
name?: {
|
7233
7450
|
firstname?: {
|
7234
7451
|
required: boolean;
|
7452
|
+
label?: TranslationConfig | undefined;
|
7235
7453
|
} | undefined;
|
7236
7454
|
surname?: {
|
7237
7455
|
required: boolean;
|
7456
|
+
label?: TranslationConfig | undefined;
|
7238
7457
|
} | undefined;
|
7239
7458
|
middlename?: {
|
7240
7459
|
required: boolean;
|
7460
|
+
label?: TranslationConfig | undefined;
|
7241
7461
|
} | undefined;
|
7242
7462
|
} | undefined;
|
7463
|
+
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
7243
7464
|
maxLength?: number | undefined;
|
7244
7465
|
prefix?: TranslationConfig | undefined;
|
7245
7466
|
postfix?: TranslationConfig | undefined;
|
7246
|
-
searchMode?: boolean | undefined;
|
7247
7467
|
} | undefined;
|
7248
7468
|
}, {
|
7249
7469
|
type: "NAME";
|
@@ -7297,14 +7517,30 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
7297
7517
|
name?: {
|
7298
7518
|
firstname?: {
|
7299
7519
|
required: boolean;
|
7520
|
+
label?: {
|
7521
|
+
id: string;
|
7522
|
+
description: string;
|
7523
|
+
defaultMessage: string;
|
7524
|
+
} | undefined;
|
7300
7525
|
} | undefined;
|
7301
7526
|
surname?: {
|
7302
7527
|
required: boolean;
|
7528
|
+
label?: {
|
7529
|
+
id: string;
|
7530
|
+
description: string;
|
7531
|
+
defaultMessage: string;
|
7532
|
+
} | undefined;
|
7303
7533
|
} | undefined;
|
7304
7534
|
middlename?: {
|
7305
7535
|
required: boolean;
|
7536
|
+
label?: {
|
7537
|
+
id: string;
|
7538
|
+
description: string;
|
7539
|
+
defaultMessage: string;
|
7540
|
+
} | undefined;
|
7306
7541
|
} | undefined;
|
7307
7542
|
} | undefined;
|
7543
|
+
order?: ("firstname" | "surname" | "middlename")[] | undefined;
|
7308
7544
|
maxLength?: number | undefined;
|
7309
7545
|
prefix?: {
|
7310
7546
|
id: string;
|
@@ -7316,7 +7552,6 @@ export declare const FieldConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
|
|
7316
7552
|
description: string;
|
7317
7553
|
defaultMessage: string;
|
7318
7554
|
} | undefined;
|
7319
|
-
searchMode?: boolean | undefined;
|
7320
7555
|
} | undefined;
|
7321
7556
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
7322
7557
|
id: z.ZodString;
|