@opencrvs/toolkit 1.9.12-rc.ad2ea34 → 1.9.12-rc.b03dff5
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/FieldConfig.d.ts +286 -84
- package/dist/events/index.js +16 -8
- package/dist/notification/index.js +16 -8
- package/package.json +1 -1
|
@@ -6383,6 +6383,33 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6383
6383
|
}, {
|
|
6384
6384
|
type: z.ZodLiteral<"COUNTRY">;
|
|
6385
6385
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
6386
|
+
optionOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
|
|
6387
|
+
value: z.ZodString;
|
|
6388
|
+
label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
6389
|
+
id: string;
|
|
6390
|
+
description: string;
|
|
6391
|
+
defaultMessage: string;
|
|
6392
|
+
}>]>;
|
|
6393
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
6394
|
+
}, "label">, "strip", z.ZodTypeAny, {
|
|
6395
|
+
value: string;
|
|
6396
|
+
conditionals?: ({
|
|
6397
|
+
type: "SHOW";
|
|
6398
|
+
conditional: JSONSchema;
|
|
6399
|
+
} | {
|
|
6400
|
+
type: "ENABLE";
|
|
6401
|
+
conditional: JSONSchema;
|
|
6402
|
+
})[] | undefined;
|
|
6403
|
+
}, {
|
|
6404
|
+
value: string;
|
|
6405
|
+
conditionals?: ({
|
|
6406
|
+
type: "SHOW";
|
|
6407
|
+
conditional: JSONSchema;
|
|
6408
|
+
} | {
|
|
6409
|
+
type: "ENABLE";
|
|
6410
|
+
conditional: JSONSchema;
|
|
6411
|
+
})[] | undefined;
|
|
6412
|
+
}>, "many">>;
|
|
6386
6413
|
}>, "strip", z.ZodTypeAny, {
|
|
6387
6414
|
type: "COUNTRY";
|
|
6388
6415
|
id: string;
|
|
@@ -6425,6 +6452,16 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6425
6452
|
uncorrectable?: boolean | undefined;
|
|
6426
6453
|
analytics?: boolean | undefined;
|
|
6427
6454
|
defaultValue?: string | undefined;
|
|
6455
|
+
optionOverrides?: {
|
|
6456
|
+
value: string;
|
|
6457
|
+
conditionals?: ({
|
|
6458
|
+
type: "SHOW";
|
|
6459
|
+
conditional: JSONSchema;
|
|
6460
|
+
} | {
|
|
6461
|
+
type: "ENABLE";
|
|
6462
|
+
conditional: JSONSchema;
|
|
6463
|
+
})[] | undefined;
|
|
6464
|
+
}[] | undefined;
|
|
6428
6465
|
}, {
|
|
6429
6466
|
type: "COUNTRY";
|
|
6430
6467
|
id: string;
|
|
@@ -6487,6 +6524,16 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6487
6524
|
uncorrectable?: boolean | undefined;
|
|
6488
6525
|
analytics?: boolean | undefined;
|
|
6489
6526
|
defaultValue?: string | undefined;
|
|
6527
|
+
optionOverrides?: {
|
|
6528
|
+
value: string;
|
|
6529
|
+
conditionals?: ({
|
|
6530
|
+
type: "SHOW";
|
|
6531
|
+
conditional: JSONSchema;
|
|
6532
|
+
} | {
|
|
6533
|
+
type: "ENABLE";
|
|
6534
|
+
conditional: JSONSchema;
|
|
6535
|
+
})[] | undefined;
|
|
6536
|
+
}[] | undefined;
|
|
6490
6537
|
}>;
|
|
6491
6538
|
export type Country = z.infer<typeof Country>;
|
|
6492
6539
|
export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
|
@@ -7872,33 +7919,10 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7872
7919
|
type: z.ZodLiteral<"ADDRESS">;
|
|
7873
7920
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
7874
7921
|
lineSeparator: z.ZodOptional<z.ZodString>;
|
|
7875
|
-
fields: z.ZodOptional<z.ZodArray<z.
|
|
7922
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
7923
|
+
type: z.ZodLiteral<"COUNTRY">;
|
|
7876
7924
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
7877
|
-
|
|
7878
|
-
id: string;
|
|
7879
|
-
description: string;
|
|
7880
|
-
defaultMessage: string;
|
|
7881
|
-
}>;
|
|
7882
|
-
parent: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
7883
|
-
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
7884
|
-
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
7885
|
-
}, "strip", z.ZodTypeAny, {
|
|
7886
|
-
$$field: string;
|
|
7887
|
-
$$subfield: string[];
|
|
7888
|
-
}, {
|
|
7889
|
-
$$field: string;
|
|
7890
|
-
$$subfield?: string[] | undefined;
|
|
7891
|
-
}>, z.ZodArray<z.ZodObject<{
|
|
7892
|
-
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
7893
|
-
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
7894
|
-
}, "strip", z.ZodTypeAny, {
|
|
7895
|
-
$$field: string;
|
|
7896
|
-
$$subfield: string[];
|
|
7897
|
-
}, {
|
|
7898
|
-
$$field: string;
|
|
7899
|
-
$$subfield?: string[] | undefined;
|
|
7900
|
-
}>, "many">]>>;
|
|
7901
|
-
required: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
7925
|
+
required: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
7902
7926
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7903
7927
|
id: string;
|
|
7904
7928
|
description: string;
|
|
@@ -7912,64 +7936,47 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7912
7936
|
description: string;
|
|
7913
7937
|
defaultMessage: string;
|
|
7914
7938
|
};
|
|
7915
|
-
}>]
|
|
7916
|
-
|
|
7917
|
-
secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7918
|
-
placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7939
|
+
}>]>>>>;
|
|
7940
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7919
7941
|
id: string;
|
|
7920
7942
|
description: string;
|
|
7921
7943
|
defaultMessage: string;
|
|
7922
7944
|
}>>;
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7945
|
+
conditionals: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>>;
|
|
7946
|
+
optionOverrides: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
|
|
7947
|
+
value: z.ZodString;
|
|
7948
|
+
label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7926
7949
|
id: string;
|
|
7927
7950
|
description: string;
|
|
7928
7951
|
defaultMessage: string;
|
|
7929
|
-
}>;
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7952
|
+
}>]>;
|
|
7953
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
7954
|
+
}, "label">, "strip", z.ZodTypeAny, {
|
|
7955
|
+
value: string;
|
|
7956
|
+
conditionals?: ({
|
|
7957
|
+
type: "SHOW";
|
|
7958
|
+
conditional: JSONSchema;
|
|
7959
|
+
} | {
|
|
7960
|
+
type: "ENABLE";
|
|
7961
|
+
conditional: JSONSchema;
|
|
7962
|
+
})[] | undefined;
|
|
7933
7963
|
}, {
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
}
|
|
7939
|
-
|
|
7964
|
+
value: string;
|
|
7965
|
+
conditionals?: ({
|
|
7966
|
+
type: "SHOW";
|
|
7967
|
+
conditional: JSONSchema;
|
|
7968
|
+
} | {
|
|
7969
|
+
type: "ENABLE";
|
|
7970
|
+
conditional: JSONSchema;
|
|
7971
|
+
})[] | undefined;
|
|
7940
7972
|
}>, "many">>>;
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
description: string;
|
|
7944
|
-
defaultMessage: string;
|
|
7945
|
-
}>>;
|
|
7946
|
-
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7947
|
-
uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7948
|
-
value: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
7949
|
-
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
7950
|
-
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
7951
|
-
}, "strip", z.ZodTypeAny, {
|
|
7952
|
-
$$field: string;
|
|
7953
|
-
$$subfield: string[];
|
|
7954
|
-
}, {
|
|
7955
|
-
$$field: string;
|
|
7956
|
-
$$subfield?: string[] | undefined;
|
|
7957
|
-
}>, z.ZodArray<z.ZodObject<{
|
|
7958
|
-
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
7959
|
-
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
7960
|
-
}, "strip", z.ZodTypeAny, {
|
|
7961
|
-
$$field: string;
|
|
7962
|
-
$$subfield: string[];
|
|
7963
|
-
}, {
|
|
7964
|
-
$$field: string;
|
|
7965
|
-
$$subfield?: string[] | undefined;
|
|
7966
|
-
}>, "many">]>>;
|
|
7967
|
-
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7968
|
-
}, "id" | "required" | "conditionals">, "strip", z.ZodTypeAny, {
|
|
7973
|
+
}, "strip", z.ZodTypeAny, {
|
|
7974
|
+
type: "COUNTRY";
|
|
7969
7975
|
id: string;
|
|
7970
7976
|
required?: boolean | {
|
|
7971
7977
|
message: TranslationConfig;
|
|
7972
7978
|
} | undefined;
|
|
7979
|
+
label?: TranslationConfig | undefined;
|
|
7973
7980
|
conditionals?: ({
|
|
7974
7981
|
type: "SHOW";
|
|
7975
7982
|
conditional: JSONSchema;
|
|
@@ -7980,7 +7987,18 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7980
7987
|
type: "DISPLAY_ON_REVIEW";
|
|
7981
7988
|
conditional: JSONSchema;
|
|
7982
7989
|
})[] | undefined;
|
|
7990
|
+
optionOverrides?: {
|
|
7991
|
+
value: string;
|
|
7992
|
+
conditionals?: ({
|
|
7993
|
+
type: "SHOW";
|
|
7994
|
+
conditional: JSONSchema;
|
|
7995
|
+
} | {
|
|
7996
|
+
type: "ENABLE";
|
|
7997
|
+
conditional: JSONSchema;
|
|
7998
|
+
})[] | undefined;
|
|
7999
|
+
}[] | undefined;
|
|
7983
8000
|
}, {
|
|
8001
|
+
type: "COUNTRY";
|
|
7984
8002
|
id: string;
|
|
7985
8003
|
required?: boolean | {
|
|
7986
8004
|
message: {
|
|
@@ -7989,6 +8007,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7989
8007
|
defaultMessage: string;
|
|
7990
8008
|
};
|
|
7991
8009
|
} | undefined;
|
|
8010
|
+
label?: {
|
|
8011
|
+
id: string;
|
|
8012
|
+
description: string;
|
|
8013
|
+
defaultMessage: string;
|
|
8014
|
+
} | undefined;
|
|
7992
8015
|
conditionals?: ({
|
|
7993
8016
|
type: "SHOW";
|
|
7994
8017
|
conditional: JSONSchema;
|
|
@@ -7999,12 +8022,47 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7999
8022
|
type: "DISPLAY_ON_REVIEW";
|
|
8000
8023
|
conditional: JSONSchema;
|
|
8001
8024
|
})[] | undefined;
|
|
8002
|
-
|
|
8003
|
-
|
|
8025
|
+
optionOverrides?: {
|
|
8026
|
+
value: string;
|
|
8027
|
+
conditionals?: ({
|
|
8028
|
+
type: "SHOW";
|
|
8029
|
+
conditional: JSONSchema;
|
|
8030
|
+
} | {
|
|
8031
|
+
type: "ENABLE";
|
|
8032
|
+
conditional: JSONSchema;
|
|
8033
|
+
})[] | undefined;
|
|
8034
|
+
}[] | undefined;
|
|
8035
|
+
}>, z.ZodObject<{
|
|
8036
|
+
type: z.ZodLiteral<"ADMINISTRATIVE_AREA">;
|
|
8037
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
8038
|
+
required: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
8039
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
8040
|
+
id: string;
|
|
8041
|
+
description: string;
|
|
8042
|
+
defaultMessage: string;
|
|
8043
|
+
}>;
|
|
8044
|
+
}, "strip", z.ZodTypeAny, {
|
|
8045
|
+
message: TranslationConfig;
|
|
8046
|
+
}, {
|
|
8047
|
+
message: {
|
|
8048
|
+
id: string;
|
|
8049
|
+
description: string;
|
|
8050
|
+
defaultMessage: string;
|
|
8051
|
+
};
|
|
8052
|
+
}>]>>>>;
|
|
8053
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
8054
|
+
id: string;
|
|
8055
|
+
description: string;
|
|
8056
|
+
defaultMessage: string;
|
|
8057
|
+
}>>;
|
|
8058
|
+
conditionals: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>>;
|
|
8059
|
+
}, "strip", z.ZodTypeAny, {
|
|
8060
|
+
type: "ADMINISTRATIVE_AREA";
|
|
8004
8061
|
id: string;
|
|
8005
8062
|
required?: boolean | {
|
|
8006
8063
|
message: TranslationConfig;
|
|
8007
8064
|
} | undefined;
|
|
8065
|
+
label?: TranslationConfig | undefined;
|
|
8008
8066
|
conditionals?: ({
|
|
8009
8067
|
type: "SHOW";
|
|
8010
8068
|
conditional: JSONSchema;
|
|
@@ -8016,6 +8074,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8016
8074
|
conditional: JSONSchema;
|
|
8017
8075
|
})[] | undefined;
|
|
8018
8076
|
}, {
|
|
8077
|
+
type: "ADMINISTRATIVE_AREA";
|
|
8019
8078
|
id: string;
|
|
8020
8079
|
required?: boolean | {
|
|
8021
8080
|
message: {
|
|
@@ -8024,6 +8083,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8024
8083
|
defaultMessage: string;
|
|
8025
8084
|
};
|
|
8026
8085
|
} | undefined;
|
|
8086
|
+
label?: {
|
|
8087
|
+
id: string;
|
|
8088
|
+
description: string;
|
|
8089
|
+
defaultMessage: string;
|
|
8090
|
+
} | undefined;
|
|
8027
8091
|
conditionals?: ({
|
|
8028
8092
|
type: "SHOW";
|
|
8029
8093
|
conditional: JSONSchema;
|
|
@@ -8034,7 +8098,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8034
8098
|
type: "DISPLAY_ON_REVIEW";
|
|
8035
8099
|
conditional: JSONSchema;
|
|
8036
8100
|
})[] | undefined;
|
|
8037
|
-
}>, "many">>;
|
|
8101
|
+
}>]>, "many">>;
|
|
8038
8102
|
streetAddressForm: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8039
8103
|
id: z.ZodString;
|
|
8040
8104
|
required: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
@@ -8122,12 +8186,13 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8122
8186
|
}>, "many">>;
|
|
8123
8187
|
}, "strip", z.ZodTypeAny, {
|
|
8124
8188
|
lineSeparator?: string | undefined;
|
|
8125
|
-
fields?: {
|
|
8126
|
-
type: "COUNTRY"
|
|
8189
|
+
fields?: ({
|
|
8190
|
+
type: "COUNTRY";
|
|
8127
8191
|
id: string;
|
|
8128
8192
|
required?: boolean | {
|
|
8129
8193
|
message: TranslationConfig;
|
|
8130
8194
|
} | undefined;
|
|
8195
|
+
label?: TranslationConfig | undefined;
|
|
8131
8196
|
conditionals?: ({
|
|
8132
8197
|
type: "SHOW";
|
|
8133
8198
|
conditional: JSONSchema;
|
|
@@ -8138,7 +8203,34 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8138
8203
|
type: "DISPLAY_ON_REVIEW";
|
|
8139
8204
|
conditional: JSONSchema;
|
|
8140
8205
|
})[] | undefined;
|
|
8141
|
-
|
|
8206
|
+
optionOverrides?: {
|
|
8207
|
+
value: string;
|
|
8208
|
+
conditionals?: ({
|
|
8209
|
+
type: "SHOW";
|
|
8210
|
+
conditional: JSONSchema;
|
|
8211
|
+
} | {
|
|
8212
|
+
type: "ENABLE";
|
|
8213
|
+
conditional: JSONSchema;
|
|
8214
|
+
})[] | undefined;
|
|
8215
|
+
}[] | undefined;
|
|
8216
|
+
} | {
|
|
8217
|
+
type: "ADMINISTRATIVE_AREA";
|
|
8218
|
+
id: string;
|
|
8219
|
+
required?: boolean | {
|
|
8220
|
+
message: TranslationConfig;
|
|
8221
|
+
} | undefined;
|
|
8222
|
+
label?: TranslationConfig | undefined;
|
|
8223
|
+
conditionals?: ({
|
|
8224
|
+
type: "SHOW";
|
|
8225
|
+
conditional: JSONSchema;
|
|
8226
|
+
} | {
|
|
8227
|
+
type: "ENABLE";
|
|
8228
|
+
conditional: JSONSchema;
|
|
8229
|
+
} | {
|
|
8230
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8231
|
+
conditional: JSONSchema;
|
|
8232
|
+
})[] | undefined;
|
|
8233
|
+
})[] | undefined;
|
|
8142
8234
|
streetAddressForm?: {
|
|
8143
8235
|
type: "TEXT";
|
|
8144
8236
|
id: string;
|
|
@@ -8163,7 +8255,8 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8163
8255
|
}[] | undefined;
|
|
8164
8256
|
}, {
|
|
8165
8257
|
lineSeparator?: string | undefined;
|
|
8166
|
-
fields?: {
|
|
8258
|
+
fields?: ({
|
|
8259
|
+
type: "COUNTRY";
|
|
8167
8260
|
id: string;
|
|
8168
8261
|
required?: boolean | {
|
|
8169
8262
|
message: {
|
|
@@ -8172,6 +8265,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8172
8265
|
defaultMessage: string;
|
|
8173
8266
|
};
|
|
8174
8267
|
} | undefined;
|
|
8268
|
+
label?: {
|
|
8269
|
+
id: string;
|
|
8270
|
+
description: string;
|
|
8271
|
+
defaultMessage: string;
|
|
8272
|
+
} | undefined;
|
|
8175
8273
|
conditionals?: ({
|
|
8176
8274
|
type: "SHOW";
|
|
8177
8275
|
conditional: JSONSchema;
|
|
@@ -8182,7 +8280,42 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8182
8280
|
type: "DISPLAY_ON_REVIEW";
|
|
8183
8281
|
conditional: JSONSchema;
|
|
8184
8282
|
})[] | undefined;
|
|
8185
|
-
|
|
8283
|
+
optionOverrides?: {
|
|
8284
|
+
value: string;
|
|
8285
|
+
conditionals?: ({
|
|
8286
|
+
type: "SHOW";
|
|
8287
|
+
conditional: JSONSchema;
|
|
8288
|
+
} | {
|
|
8289
|
+
type: "ENABLE";
|
|
8290
|
+
conditional: JSONSchema;
|
|
8291
|
+
})[] | undefined;
|
|
8292
|
+
}[] | undefined;
|
|
8293
|
+
} | {
|
|
8294
|
+
type: "ADMINISTRATIVE_AREA";
|
|
8295
|
+
id: string;
|
|
8296
|
+
required?: boolean | {
|
|
8297
|
+
message: {
|
|
8298
|
+
id: string;
|
|
8299
|
+
description: string;
|
|
8300
|
+
defaultMessage: string;
|
|
8301
|
+
};
|
|
8302
|
+
} | undefined;
|
|
8303
|
+
label?: {
|
|
8304
|
+
id: string;
|
|
8305
|
+
description: string;
|
|
8306
|
+
defaultMessage: string;
|
|
8307
|
+
} | undefined;
|
|
8308
|
+
conditionals?: ({
|
|
8309
|
+
type: "SHOW";
|
|
8310
|
+
conditional: JSONSchema;
|
|
8311
|
+
} | {
|
|
8312
|
+
type: "ENABLE";
|
|
8313
|
+
conditional: JSONSchema;
|
|
8314
|
+
} | {
|
|
8315
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8316
|
+
conditional: JSONSchema;
|
|
8317
|
+
})[] | undefined;
|
|
8318
|
+
})[] | undefined;
|
|
8186
8319
|
streetAddressForm?: {
|
|
8187
8320
|
type: "TEXT";
|
|
8188
8321
|
id: string;
|
|
@@ -8300,12 +8433,13 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8300
8433
|
} | undefined;
|
|
8301
8434
|
configuration?: {
|
|
8302
8435
|
lineSeparator?: string | undefined;
|
|
8303
|
-
fields?: {
|
|
8304
|
-
type: "COUNTRY"
|
|
8436
|
+
fields?: ({
|
|
8437
|
+
type: "COUNTRY";
|
|
8305
8438
|
id: string;
|
|
8306
8439
|
required?: boolean | {
|
|
8307
8440
|
message: TranslationConfig;
|
|
8308
8441
|
} | undefined;
|
|
8442
|
+
label?: TranslationConfig | undefined;
|
|
8309
8443
|
conditionals?: ({
|
|
8310
8444
|
type: "SHOW";
|
|
8311
8445
|
conditional: JSONSchema;
|
|
@@ -8316,7 +8450,34 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8316
8450
|
type: "DISPLAY_ON_REVIEW";
|
|
8317
8451
|
conditional: JSONSchema;
|
|
8318
8452
|
})[] | undefined;
|
|
8319
|
-
|
|
8453
|
+
optionOverrides?: {
|
|
8454
|
+
value: string;
|
|
8455
|
+
conditionals?: ({
|
|
8456
|
+
type: "SHOW";
|
|
8457
|
+
conditional: JSONSchema;
|
|
8458
|
+
} | {
|
|
8459
|
+
type: "ENABLE";
|
|
8460
|
+
conditional: JSONSchema;
|
|
8461
|
+
})[] | undefined;
|
|
8462
|
+
}[] | undefined;
|
|
8463
|
+
} | {
|
|
8464
|
+
type: "ADMINISTRATIVE_AREA";
|
|
8465
|
+
id: string;
|
|
8466
|
+
required?: boolean | {
|
|
8467
|
+
message: TranslationConfig;
|
|
8468
|
+
} | undefined;
|
|
8469
|
+
label?: TranslationConfig | undefined;
|
|
8470
|
+
conditionals?: ({
|
|
8471
|
+
type: "SHOW";
|
|
8472
|
+
conditional: JSONSchema;
|
|
8473
|
+
} | {
|
|
8474
|
+
type: "ENABLE";
|
|
8475
|
+
conditional: JSONSchema;
|
|
8476
|
+
} | {
|
|
8477
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8478
|
+
conditional: JSONSchema;
|
|
8479
|
+
})[] | undefined;
|
|
8480
|
+
})[] | undefined;
|
|
8320
8481
|
streetAddressForm?: {
|
|
8321
8482
|
type: "TEXT";
|
|
8322
8483
|
id: string;
|
|
@@ -8412,7 +8573,43 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8412
8573
|
} | undefined;
|
|
8413
8574
|
configuration?: {
|
|
8414
8575
|
lineSeparator?: string | undefined;
|
|
8415
|
-
fields?: {
|
|
8576
|
+
fields?: ({
|
|
8577
|
+
type: "COUNTRY";
|
|
8578
|
+
id: string;
|
|
8579
|
+
required?: boolean | {
|
|
8580
|
+
message: {
|
|
8581
|
+
id: string;
|
|
8582
|
+
description: string;
|
|
8583
|
+
defaultMessage: string;
|
|
8584
|
+
};
|
|
8585
|
+
} | undefined;
|
|
8586
|
+
label?: {
|
|
8587
|
+
id: string;
|
|
8588
|
+
description: string;
|
|
8589
|
+
defaultMessage: string;
|
|
8590
|
+
} | undefined;
|
|
8591
|
+
conditionals?: ({
|
|
8592
|
+
type: "SHOW";
|
|
8593
|
+
conditional: JSONSchema;
|
|
8594
|
+
} | {
|
|
8595
|
+
type: "ENABLE";
|
|
8596
|
+
conditional: JSONSchema;
|
|
8597
|
+
} | {
|
|
8598
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8599
|
+
conditional: JSONSchema;
|
|
8600
|
+
})[] | undefined;
|
|
8601
|
+
optionOverrides?: {
|
|
8602
|
+
value: string;
|
|
8603
|
+
conditionals?: ({
|
|
8604
|
+
type: "SHOW";
|
|
8605
|
+
conditional: JSONSchema;
|
|
8606
|
+
} | {
|
|
8607
|
+
type: "ENABLE";
|
|
8608
|
+
conditional: JSONSchema;
|
|
8609
|
+
})[] | undefined;
|
|
8610
|
+
}[] | undefined;
|
|
8611
|
+
} | {
|
|
8612
|
+
type: "ADMINISTRATIVE_AREA";
|
|
8416
8613
|
id: string;
|
|
8417
8614
|
required?: boolean | {
|
|
8418
8615
|
message: {
|
|
@@ -8421,6 +8618,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8421
8618
|
defaultMessage: string;
|
|
8422
8619
|
};
|
|
8423
8620
|
} | undefined;
|
|
8621
|
+
label?: {
|
|
8622
|
+
id: string;
|
|
8623
|
+
description: string;
|
|
8624
|
+
defaultMessage: string;
|
|
8625
|
+
} | undefined;
|
|
8424
8626
|
conditionals?: ({
|
|
8425
8627
|
type: "SHOW";
|
|
8426
8628
|
conditional: JSONSchema;
|
|
@@ -8431,7 +8633,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8431
8633
|
type: "DISPLAY_ON_REVIEW";
|
|
8432
8634
|
conditional: JSONSchema;
|
|
8433
8635
|
})[] | undefined;
|
|
8434
|
-
}[] | undefined;
|
|
8636
|
+
})[] | undefined;
|
|
8435
8637
|
streetAddressForm?: {
|
|
8436
8638
|
type: "TEXT";
|
|
8437
8639
|
id: string;
|
package/dist/events/index.js
CHANGED
|
@@ -2286,7 +2286,10 @@ var Checkbox = BaseField.extend({
|
|
|
2286
2286
|
}).describe("Boolean checkbox field");
|
|
2287
2287
|
var Country = BaseField.extend({
|
|
2288
2288
|
type: import_zod17.z.literal(FieldType.COUNTRY),
|
|
2289
|
-
defaultValue: NonEmptyTextValue.optional()
|
|
2289
|
+
defaultValue: NonEmptyTextValue.optional(),
|
|
2290
|
+
optionOverrides: import_zod17.z.array(SelectOption.omit({ label: true })).optional().describe(
|
|
2291
|
+
"Conditionals for specific countries. Countries not listed are always shown and enabled."
|
|
2292
|
+
)
|
|
2290
2293
|
}).describe("Country select field");
|
|
2291
2294
|
var AdministrativeAreas = import_zod17.z.enum([
|
|
2292
2295
|
"ADMIN_STRUCTURE",
|
|
@@ -2334,14 +2337,19 @@ var Office = BaseField.extend({
|
|
|
2334
2337
|
var DefaultAddressFieldValue = DomesticAddressFieldValue.extend({
|
|
2335
2338
|
administrativeArea: import_zod17.z.union([UUID, SerializedUserField]).optional()
|
|
2336
2339
|
});
|
|
2337
|
-
var
|
|
2340
|
+
var commonDomesticFieldProps = {
|
|
2338
2341
|
id: true,
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2342
|
+
type: true,
|
|
2343
|
+
label: true,
|
|
2344
|
+
conditionals: true,
|
|
2345
|
+
required: true
|
|
2346
|
+
};
|
|
2347
|
+
var DomesticAddressField = Country.partial().pick({
|
|
2348
|
+
...commonDomesticFieldProps,
|
|
2349
|
+
optionOverrides: true
|
|
2350
|
+
}).required({ id: true, type: true }).or(
|
|
2351
|
+
AdministrativeArea.partial().pick(commonDomesticFieldProps).required({ id: true, type: true })
|
|
2352
|
+
);
|
|
2345
2353
|
var Address = BaseField.extend({
|
|
2346
2354
|
type: import_zod17.z.literal(FieldType.ADDRESS),
|
|
2347
2355
|
configuration: import_zod17.z.object({
|
|
@@ -1792,7 +1792,10 @@ var Checkbox = BaseField.extend({
|
|
|
1792
1792
|
}).describe("Boolean checkbox field");
|
|
1793
1793
|
var Country = BaseField.extend({
|
|
1794
1794
|
type: import_zod17.z.literal(FieldType.COUNTRY),
|
|
1795
|
-
defaultValue: NonEmptyTextValue.optional()
|
|
1795
|
+
defaultValue: NonEmptyTextValue.optional(),
|
|
1796
|
+
optionOverrides: import_zod17.z.array(SelectOption.omit({ label: true })).optional().describe(
|
|
1797
|
+
"Conditionals for specific countries. Countries not listed are always shown and enabled."
|
|
1798
|
+
)
|
|
1796
1799
|
}).describe("Country select field");
|
|
1797
1800
|
var AdministrativeAreas = import_zod17.z.enum([
|
|
1798
1801
|
"ADMIN_STRUCTURE",
|
|
@@ -1840,14 +1843,19 @@ var Office = BaseField.extend({
|
|
|
1840
1843
|
var DefaultAddressFieldValue = DomesticAddressFieldValue.extend({
|
|
1841
1844
|
administrativeArea: import_zod17.z.union([UUID, SerializedUserField]).optional()
|
|
1842
1845
|
});
|
|
1843
|
-
var
|
|
1846
|
+
var commonDomesticFieldProps = {
|
|
1844
1847
|
id: true,
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1848
|
+
type: true,
|
|
1849
|
+
label: true,
|
|
1850
|
+
conditionals: true,
|
|
1851
|
+
required: true
|
|
1852
|
+
};
|
|
1853
|
+
var DomesticAddressField = Country.partial().pick({
|
|
1854
|
+
...commonDomesticFieldProps,
|
|
1855
|
+
optionOverrides: true
|
|
1856
|
+
}).required({ id: true, type: true }).or(
|
|
1857
|
+
AdministrativeArea.partial().pick(commonDomesticFieldProps).required({ id: true, type: true })
|
|
1858
|
+
);
|
|
1851
1859
|
var Address = BaseField.extend({
|
|
1852
1860
|
type: import_zod17.z.literal(FieldType.ADDRESS),
|
|
1853
1861
|
configuration: import_zod17.z.object({
|