@nira-opencrvs/toolkit 1.9.12-rc.0ec970c → 1.9.12-rc.7252f95
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 +299 -87
- package/dist/events/index.js +17 -9
- package/dist/notification/index.js +17 -9
- package/package.json +1 -1
|
@@ -5988,7 +5988,13 @@ declare const IdField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5988
5988
|
}>, "many">]>>;
|
|
5989
5989
|
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
5990
5990
|
}, {
|
|
5991
|
-
defaultValue: z.ZodOptional<z.ZodString
|
|
5991
|
+
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
5992
|
+
$userDataField: z.ZodString;
|
|
5993
|
+
}, "strip", z.ZodTypeAny, {
|
|
5994
|
+
$userDataField: string;
|
|
5995
|
+
}, {
|
|
5996
|
+
$userDataField: string;
|
|
5997
|
+
}>]>>;
|
|
5992
5998
|
type: z.ZodLiteral<"ID">;
|
|
5993
5999
|
}>, "strip", z.ZodTypeAny, {
|
|
5994
6000
|
type: "ID";
|
|
@@ -6031,7 +6037,9 @@ declare const IdField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6031
6037
|
hideLabel?: boolean | undefined;
|
|
6032
6038
|
uncorrectable?: boolean | undefined;
|
|
6033
6039
|
analytics?: boolean | undefined;
|
|
6034
|
-
defaultValue?: string |
|
|
6040
|
+
defaultValue?: string | {
|
|
6041
|
+
$userDataField: string;
|
|
6042
|
+
} | undefined;
|
|
6035
6043
|
}, {
|
|
6036
6044
|
type: "ID";
|
|
6037
6045
|
id: string;
|
|
@@ -6093,7 +6101,9 @@ declare const IdField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6093
6101
|
hideLabel?: boolean | undefined;
|
|
6094
6102
|
uncorrectable?: boolean | undefined;
|
|
6095
6103
|
analytics?: boolean | undefined;
|
|
6096
|
-
defaultValue?: string |
|
|
6104
|
+
defaultValue?: string | {
|
|
6105
|
+
$userDataField: string;
|
|
6106
|
+
} | undefined;
|
|
6097
6107
|
}>;
|
|
6098
6108
|
declare const Checkbox: z.ZodObject<z.objectUtil.extendShape<{
|
|
6099
6109
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -6393,6 +6403,33 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6393
6403
|
}, {
|
|
6394
6404
|
type: z.ZodLiteral<"COUNTRY">;
|
|
6395
6405
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
6406
|
+
optionOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
|
|
6407
|
+
value: z.ZodString;
|
|
6408
|
+
label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
6409
|
+
id: string;
|
|
6410
|
+
description: string;
|
|
6411
|
+
defaultMessage: string;
|
|
6412
|
+
}>]>;
|
|
6413
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
6414
|
+
}, "label">, "strip", z.ZodTypeAny, {
|
|
6415
|
+
value: string;
|
|
6416
|
+
conditionals?: ({
|
|
6417
|
+
type: "SHOW";
|
|
6418
|
+
conditional: JSONSchema;
|
|
6419
|
+
} | {
|
|
6420
|
+
type: "ENABLE";
|
|
6421
|
+
conditional: JSONSchema;
|
|
6422
|
+
})[] | undefined;
|
|
6423
|
+
}, {
|
|
6424
|
+
value: string;
|
|
6425
|
+
conditionals?: ({
|
|
6426
|
+
type: "SHOW";
|
|
6427
|
+
conditional: JSONSchema;
|
|
6428
|
+
} | {
|
|
6429
|
+
type: "ENABLE";
|
|
6430
|
+
conditional: JSONSchema;
|
|
6431
|
+
})[] | undefined;
|
|
6432
|
+
}>, "many">>;
|
|
6396
6433
|
}>, "strip", z.ZodTypeAny, {
|
|
6397
6434
|
type: "COUNTRY";
|
|
6398
6435
|
id: string;
|
|
@@ -6435,6 +6472,16 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6435
6472
|
uncorrectable?: boolean | undefined;
|
|
6436
6473
|
analytics?: boolean | undefined;
|
|
6437
6474
|
defaultValue?: string | undefined;
|
|
6475
|
+
optionOverrides?: {
|
|
6476
|
+
value: string;
|
|
6477
|
+
conditionals?: ({
|
|
6478
|
+
type: "SHOW";
|
|
6479
|
+
conditional: JSONSchema;
|
|
6480
|
+
} | {
|
|
6481
|
+
type: "ENABLE";
|
|
6482
|
+
conditional: JSONSchema;
|
|
6483
|
+
})[] | undefined;
|
|
6484
|
+
}[] | undefined;
|
|
6438
6485
|
}, {
|
|
6439
6486
|
type: "COUNTRY";
|
|
6440
6487
|
id: string;
|
|
@@ -6497,6 +6544,16 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6497
6544
|
uncorrectable?: boolean | undefined;
|
|
6498
6545
|
analytics?: boolean | undefined;
|
|
6499
6546
|
defaultValue?: string | undefined;
|
|
6547
|
+
optionOverrides?: {
|
|
6548
|
+
value: string;
|
|
6549
|
+
conditionals?: ({
|
|
6550
|
+
type: "SHOW";
|
|
6551
|
+
conditional: JSONSchema;
|
|
6552
|
+
} | {
|
|
6553
|
+
type: "ENABLE";
|
|
6554
|
+
conditional: JSONSchema;
|
|
6555
|
+
})[] | undefined;
|
|
6556
|
+
}[] | undefined;
|
|
6500
6557
|
}>;
|
|
6501
6558
|
export type Country = z.infer<typeof Country>;
|
|
6502
6559
|
export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
|
@@ -7907,33 +7964,10 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7907
7964
|
type: z.ZodLiteral<"ADDRESS">;
|
|
7908
7965
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
7909
7966
|
lineSeparator: z.ZodOptional<z.ZodString>;
|
|
7910
|
-
fields: z.ZodOptional<z.ZodArray<z.
|
|
7967
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
7968
|
+
type: z.ZodLiteral<"COUNTRY">;
|
|
7911
7969
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
7912
|
-
|
|
7913
|
-
id: string;
|
|
7914
|
-
description: string;
|
|
7915
|
-
defaultMessage: string;
|
|
7916
|
-
}>;
|
|
7917
|
-
parent: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
7918
|
-
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
7919
|
-
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
7920
|
-
}, "strip", z.ZodTypeAny, {
|
|
7921
|
-
$$field: string;
|
|
7922
|
-
$$subfield: string[];
|
|
7923
|
-
}, {
|
|
7924
|
-
$$field: string;
|
|
7925
|
-
$$subfield?: string[] | undefined;
|
|
7926
|
-
}>, z.ZodArray<z.ZodObject<{
|
|
7927
|
-
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
7928
|
-
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
7929
|
-
}, "strip", z.ZodTypeAny, {
|
|
7930
|
-
$$field: string;
|
|
7931
|
-
$$subfield: string[];
|
|
7932
|
-
}, {
|
|
7933
|
-
$$field: string;
|
|
7934
|
-
$$subfield?: string[] | undefined;
|
|
7935
|
-
}>, "many">]>>;
|
|
7936
|
-
required: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
7970
|
+
required: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
7937
7971
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7938
7972
|
id: string;
|
|
7939
7973
|
description: string;
|
|
@@ -7947,64 +7981,47 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7947
7981
|
description: string;
|
|
7948
7982
|
defaultMessage: string;
|
|
7949
7983
|
};
|
|
7950
|
-
}>]
|
|
7951
|
-
|
|
7952
|
-
secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7953
|
-
placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7984
|
+
}>]>>>>;
|
|
7985
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7954
7986
|
id: string;
|
|
7955
7987
|
description: string;
|
|
7956
7988
|
defaultMessage: string;
|
|
7957
7989
|
}>>;
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7990
|
+
conditionals: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>>;
|
|
7991
|
+
optionOverrides: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
|
|
7992
|
+
value: z.ZodString;
|
|
7993
|
+
label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7961
7994
|
id: string;
|
|
7962
7995
|
description: string;
|
|
7963
7996
|
defaultMessage: string;
|
|
7964
|
-
}>;
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7997
|
+
}>]>;
|
|
7998
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
7999
|
+
}, "label">, "strip", z.ZodTypeAny, {
|
|
8000
|
+
value: string;
|
|
8001
|
+
conditionals?: ({
|
|
8002
|
+
type: "SHOW";
|
|
8003
|
+
conditional: JSONSchema;
|
|
8004
|
+
} | {
|
|
8005
|
+
type: "ENABLE";
|
|
8006
|
+
conditional: JSONSchema;
|
|
8007
|
+
})[] | undefined;
|
|
7968
8008
|
}, {
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
}
|
|
7974
|
-
|
|
8009
|
+
value: string;
|
|
8010
|
+
conditionals?: ({
|
|
8011
|
+
type: "SHOW";
|
|
8012
|
+
conditional: JSONSchema;
|
|
8013
|
+
} | {
|
|
8014
|
+
type: "ENABLE";
|
|
8015
|
+
conditional: JSONSchema;
|
|
8016
|
+
})[] | undefined;
|
|
7975
8017
|
}>, "many">>>;
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
description: string;
|
|
7979
|
-
defaultMessage: string;
|
|
7980
|
-
}>>;
|
|
7981
|
-
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7982
|
-
uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7983
|
-
value: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
7984
|
-
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
7985
|
-
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
7986
|
-
}, "strip", z.ZodTypeAny, {
|
|
7987
|
-
$$field: string;
|
|
7988
|
-
$$subfield: string[];
|
|
7989
|
-
}, {
|
|
7990
|
-
$$field: string;
|
|
7991
|
-
$$subfield?: string[] | undefined;
|
|
7992
|
-
}>, z.ZodArray<z.ZodObject<{
|
|
7993
|
-
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
7994
|
-
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
7995
|
-
}, "strip", z.ZodTypeAny, {
|
|
7996
|
-
$$field: string;
|
|
7997
|
-
$$subfield: string[];
|
|
7998
|
-
}, {
|
|
7999
|
-
$$field: string;
|
|
8000
|
-
$$subfield?: string[] | undefined;
|
|
8001
|
-
}>, "many">]>>;
|
|
8002
|
-
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8003
|
-
}, "id" | "required" | "conditionals">, "strip", z.ZodTypeAny, {
|
|
8018
|
+
}, "strip", z.ZodTypeAny, {
|
|
8019
|
+
type: "COUNTRY";
|
|
8004
8020
|
id: string;
|
|
8005
8021
|
required?: boolean | {
|
|
8006
8022
|
message: TranslationConfig;
|
|
8007
8023
|
} | undefined;
|
|
8024
|
+
label?: TranslationConfig | undefined;
|
|
8008
8025
|
conditionals?: ({
|
|
8009
8026
|
type: "SHOW";
|
|
8010
8027
|
conditional: JSONSchema;
|
|
@@ -8015,7 +8032,18 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8015
8032
|
type: "DISPLAY_ON_REVIEW";
|
|
8016
8033
|
conditional: JSONSchema;
|
|
8017
8034
|
})[] | undefined;
|
|
8035
|
+
optionOverrides?: {
|
|
8036
|
+
value: string;
|
|
8037
|
+
conditionals?: ({
|
|
8038
|
+
type: "SHOW";
|
|
8039
|
+
conditional: JSONSchema;
|
|
8040
|
+
} | {
|
|
8041
|
+
type: "ENABLE";
|
|
8042
|
+
conditional: JSONSchema;
|
|
8043
|
+
})[] | undefined;
|
|
8044
|
+
}[] | undefined;
|
|
8018
8045
|
}, {
|
|
8046
|
+
type: "COUNTRY";
|
|
8019
8047
|
id: string;
|
|
8020
8048
|
required?: boolean | {
|
|
8021
8049
|
message: {
|
|
@@ -8024,6 +8052,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8024
8052
|
defaultMessage: string;
|
|
8025
8053
|
};
|
|
8026
8054
|
} | undefined;
|
|
8055
|
+
label?: {
|
|
8056
|
+
id: string;
|
|
8057
|
+
description: string;
|
|
8058
|
+
defaultMessage: string;
|
|
8059
|
+
} | undefined;
|
|
8027
8060
|
conditionals?: ({
|
|
8028
8061
|
type: "SHOW";
|
|
8029
8062
|
conditional: JSONSchema;
|
|
@@ -8034,12 +8067,47 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8034
8067
|
type: "DISPLAY_ON_REVIEW";
|
|
8035
8068
|
conditional: JSONSchema;
|
|
8036
8069
|
})[] | undefined;
|
|
8037
|
-
|
|
8038
|
-
|
|
8070
|
+
optionOverrides?: {
|
|
8071
|
+
value: string;
|
|
8072
|
+
conditionals?: ({
|
|
8073
|
+
type: "SHOW";
|
|
8074
|
+
conditional: JSONSchema;
|
|
8075
|
+
} | {
|
|
8076
|
+
type: "ENABLE";
|
|
8077
|
+
conditional: JSONSchema;
|
|
8078
|
+
})[] | undefined;
|
|
8079
|
+
}[] | undefined;
|
|
8080
|
+
}>, z.ZodObject<{
|
|
8081
|
+
type: z.ZodLiteral<"ADMINISTRATIVE_AREA">;
|
|
8082
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
8083
|
+
required: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
8084
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
8085
|
+
id: string;
|
|
8086
|
+
description: string;
|
|
8087
|
+
defaultMessage: string;
|
|
8088
|
+
}>;
|
|
8089
|
+
}, "strip", z.ZodTypeAny, {
|
|
8090
|
+
message: TranslationConfig;
|
|
8091
|
+
}, {
|
|
8092
|
+
message: {
|
|
8093
|
+
id: string;
|
|
8094
|
+
description: string;
|
|
8095
|
+
defaultMessage: string;
|
|
8096
|
+
};
|
|
8097
|
+
}>]>>>>;
|
|
8098
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
8099
|
+
id: string;
|
|
8100
|
+
description: string;
|
|
8101
|
+
defaultMessage: string;
|
|
8102
|
+
}>>;
|
|
8103
|
+
conditionals: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>>;
|
|
8104
|
+
}, "strip", z.ZodTypeAny, {
|
|
8105
|
+
type: "ADMINISTRATIVE_AREA";
|
|
8039
8106
|
id: string;
|
|
8040
8107
|
required?: boolean | {
|
|
8041
8108
|
message: TranslationConfig;
|
|
8042
8109
|
} | undefined;
|
|
8110
|
+
label?: TranslationConfig | undefined;
|
|
8043
8111
|
conditionals?: ({
|
|
8044
8112
|
type: "SHOW";
|
|
8045
8113
|
conditional: JSONSchema;
|
|
@@ -8051,6 +8119,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8051
8119
|
conditional: JSONSchema;
|
|
8052
8120
|
})[] | undefined;
|
|
8053
8121
|
}, {
|
|
8122
|
+
type: "ADMINISTRATIVE_AREA";
|
|
8054
8123
|
id: string;
|
|
8055
8124
|
required?: boolean | {
|
|
8056
8125
|
message: {
|
|
@@ -8059,6 +8128,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8059
8128
|
defaultMessage: string;
|
|
8060
8129
|
};
|
|
8061
8130
|
} | undefined;
|
|
8131
|
+
label?: {
|
|
8132
|
+
id: string;
|
|
8133
|
+
description: string;
|
|
8134
|
+
defaultMessage: string;
|
|
8135
|
+
} | undefined;
|
|
8062
8136
|
conditionals?: ({
|
|
8063
8137
|
type: "SHOW";
|
|
8064
8138
|
conditional: JSONSchema;
|
|
@@ -8069,7 +8143,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8069
8143
|
type: "DISPLAY_ON_REVIEW";
|
|
8070
8144
|
conditional: JSONSchema;
|
|
8071
8145
|
})[] | undefined;
|
|
8072
|
-
}>, "many">>;
|
|
8146
|
+
}>]>, "many">>;
|
|
8073
8147
|
streetAddressForm: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8074
8148
|
id: z.ZodString;
|
|
8075
8149
|
required: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
@@ -8157,12 +8231,13 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8157
8231
|
}>, "many">>;
|
|
8158
8232
|
}, "strip", z.ZodTypeAny, {
|
|
8159
8233
|
lineSeparator?: string | undefined;
|
|
8160
|
-
fields?: {
|
|
8161
|
-
type: "COUNTRY"
|
|
8234
|
+
fields?: ({
|
|
8235
|
+
type: "COUNTRY";
|
|
8162
8236
|
id: string;
|
|
8163
8237
|
required?: boolean | {
|
|
8164
8238
|
message: TranslationConfig;
|
|
8165
8239
|
} | undefined;
|
|
8240
|
+
label?: TranslationConfig | undefined;
|
|
8166
8241
|
conditionals?: ({
|
|
8167
8242
|
type: "SHOW";
|
|
8168
8243
|
conditional: JSONSchema;
|
|
@@ -8173,7 +8248,34 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8173
8248
|
type: "DISPLAY_ON_REVIEW";
|
|
8174
8249
|
conditional: JSONSchema;
|
|
8175
8250
|
})[] | undefined;
|
|
8176
|
-
|
|
8251
|
+
optionOverrides?: {
|
|
8252
|
+
value: string;
|
|
8253
|
+
conditionals?: ({
|
|
8254
|
+
type: "SHOW";
|
|
8255
|
+
conditional: JSONSchema;
|
|
8256
|
+
} | {
|
|
8257
|
+
type: "ENABLE";
|
|
8258
|
+
conditional: JSONSchema;
|
|
8259
|
+
})[] | undefined;
|
|
8260
|
+
}[] | undefined;
|
|
8261
|
+
} | {
|
|
8262
|
+
type: "ADMINISTRATIVE_AREA";
|
|
8263
|
+
id: string;
|
|
8264
|
+
required?: boolean | {
|
|
8265
|
+
message: TranslationConfig;
|
|
8266
|
+
} | undefined;
|
|
8267
|
+
label?: TranslationConfig | undefined;
|
|
8268
|
+
conditionals?: ({
|
|
8269
|
+
type: "SHOW";
|
|
8270
|
+
conditional: JSONSchema;
|
|
8271
|
+
} | {
|
|
8272
|
+
type: "ENABLE";
|
|
8273
|
+
conditional: JSONSchema;
|
|
8274
|
+
} | {
|
|
8275
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8276
|
+
conditional: JSONSchema;
|
|
8277
|
+
})[] | undefined;
|
|
8278
|
+
})[] | undefined;
|
|
8177
8279
|
streetAddressForm?: {
|
|
8178
8280
|
type: "TEXT";
|
|
8179
8281
|
id: string;
|
|
@@ -8198,7 +8300,8 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8198
8300
|
}[] | undefined;
|
|
8199
8301
|
}, {
|
|
8200
8302
|
lineSeparator?: string | undefined;
|
|
8201
|
-
fields?: {
|
|
8303
|
+
fields?: ({
|
|
8304
|
+
type: "COUNTRY";
|
|
8202
8305
|
id: string;
|
|
8203
8306
|
required?: boolean | {
|
|
8204
8307
|
message: {
|
|
@@ -8207,6 +8310,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8207
8310
|
defaultMessage: string;
|
|
8208
8311
|
};
|
|
8209
8312
|
} | undefined;
|
|
8313
|
+
label?: {
|
|
8314
|
+
id: string;
|
|
8315
|
+
description: string;
|
|
8316
|
+
defaultMessage: string;
|
|
8317
|
+
} | undefined;
|
|
8210
8318
|
conditionals?: ({
|
|
8211
8319
|
type: "SHOW";
|
|
8212
8320
|
conditional: JSONSchema;
|
|
@@ -8217,7 +8325,42 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8217
8325
|
type: "DISPLAY_ON_REVIEW";
|
|
8218
8326
|
conditional: JSONSchema;
|
|
8219
8327
|
})[] | undefined;
|
|
8220
|
-
|
|
8328
|
+
optionOverrides?: {
|
|
8329
|
+
value: string;
|
|
8330
|
+
conditionals?: ({
|
|
8331
|
+
type: "SHOW";
|
|
8332
|
+
conditional: JSONSchema;
|
|
8333
|
+
} | {
|
|
8334
|
+
type: "ENABLE";
|
|
8335
|
+
conditional: JSONSchema;
|
|
8336
|
+
})[] | undefined;
|
|
8337
|
+
}[] | undefined;
|
|
8338
|
+
} | {
|
|
8339
|
+
type: "ADMINISTRATIVE_AREA";
|
|
8340
|
+
id: string;
|
|
8341
|
+
required?: boolean | {
|
|
8342
|
+
message: {
|
|
8343
|
+
id: string;
|
|
8344
|
+
description: string;
|
|
8345
|
+
defaultMessage: string;
|
|
8346
|
+
};
|
|
8347
|
+
} | undefined;
|
|
8348
|
+
label?: {
|
|
8349
|
+
id: string;
|
|
8350
|
+
description: string;
|
|
8351
|
+
defaultMessage: string;
|
|
8352
|
+
} | undefined;
|
|
8353
|
+
conditionals?: ({
|
|
8354
|
+
type: "SHOW";
|
|
8355
|
+
conditional: JSONSchema;
|
|
8356
|
+
} | {
|
|
8357
|
+
type: "ENABLE";
|
|
8358
|
+
conditional: JSONSchema;
|
|
8359
|
+
} | {
|
|
8360
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8361
|
+
conditional: JSONSchema;
|
|
8362
|
+
})[] | undefined;
|
|
8363
|
+
})[] | undefined;
|
|
8221
8364
|
streetAddressForm?: {
|
|
8222
8365
|
type: "TEXT";
|
|
8223
8366
|
id: string;
|
|
@@ -8335,12 +8478,13 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8335
8478
|
} | undefined;
|
|
8336
8479
|
configuration?: {
|
|
8337
8480
|
lineSeparator?: string | undefined;
|
|
8338
|
-
fields?: {
|
|
8339
|
-
type: "COUNTRY"
|
|
8481
|
+
fields?: ({
|
|
8482
|
+
type: "COUNTRY";
|
|
8340
8483
|
id: string;
|
|
8341
8484
|
required?: boolean | {
|
|
8342
8485
|
message: TranslationConfig;
|
|
8343
8486
|
} | undefined;
|
|
8487
|
+
label?: TranslationConfig | undefined;
|
|
8344
8488
|
conditionals?: ({
|
|
8345
8489
|
type: "SHOW";
|
|
8346
8490
|
conditional: JSONSchema;
|
|
@@ -8351,7 +8495,34 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8351
8495
|
type: "DISPLAY_ON_REVIEW";
|
|
8352
8496
|
conditional: JSONSchema;
|
|
8353
8497
|
})[] | undefined;
|
|
8354
|
-
|
|
8498
|
+
optionOverrides?: {
|
|
8499
|
+
value: string;
|
|
8500
|
+
conditionals?: ({
|
|
8501
|
+
type: "SHOW";
|
|
8502
|
+
conditional: JSONSchema;
|
|
8503
|
+
} | {
|
|
8504
|
+
type: "ENABLE";
|
|
8505
|
+
conditional: JSONSchema;
|
|
8506
|
+
})[] | undefined;
|
|
8507
|
+
}[] | undefined;
|
|
8508
|
+
} | {
|
|
8509
|
+
type: "ADMINISTRATIVE_AREA";
|
|
8510
|
+
id: string;
|
|
8511
|
+
required?: boolean | {
|
|
8512
|
+
message: TranslationConfig;
|
|
8513
|
+
} | undefined;
|
|
8514
|
+
label?: TranslationConfig | undefined;
|
|
8515
|
+
conditionals?: ({
|
|
8516
|
+
type: "SHOW";
|
|
8517
|
+
conditional: JSONSchema;
|
|
8518
|
+
} | {
|
|
8519
|
+
type: "ENABLE";
|
|
8520
|
+
conditional: JSONSchema;
|
|
8521
|
+
} | {
|
|
8522
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8523
|
+
conditional: JSONSchema;
|
|
8524
|
+
})[] | undefined;
|
|
8525
|
+
})[] | undefined;
|
|
8355
8526
|
streetAddressForm?: {
|
|
8356
8527
|
type: "TEXT";
|
|
8357
8528
|
id: string;
|
|
@@ -8447,7 +8618,8 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8447
8618
|
} | undefined;
|
|
8448
8619
|
configuration?: {
|
|
8449
8620
|
lineSeparator?: string | undefined;
|
|
8450
|
-
fields?: {
|
|
8621
|
+
fields?: ({
|
|
8622
|
+
type: "COUNTRY";
|
|
8451
8623
|
id: string;
|
|
8452
8624
|
required?: boolean | {
|
|
8453
8625
|
message: {
|
|
@@ -8456,6 +8628,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8456
8628
|
defaultMessage: string;
|
|
8457
8629
|
};
|
|
8458
8630
|
} | undefined;
|
|
8631
|
+
label?: {
|
|
8632
|
+
id: string;
|
|
8633
|
+
description: string;
|
|
8634
|
+
defaultMessage: string;
|
|
8635
|
+
} | undefined;
|
|
8459
8636
|
conditionals?: ({
|
|
8460
8637
|
type: "SHOW";
|
|
8461
8638
|
conditional: JSONSchema;
|
|
@@ -8466,7 +8643,42 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8466
8643
|
type: "DISPLAY_ON_REVIEW";
|
|
8467
8644
|
conditional: JSONSchema;
|
|
8468
8645
|
})[] | undefined;
|
|
8469
|
-
|
|
8646
|
+
optionOverrides?: {
|
|
8647
|
+
value: string;
|
|
8648
|
+
conditionals?: ({
|
|
8649
|
+
type: "SHOW";
|
|
8650
|
+
conditional: JSONSchema;
|
|
8651
|
+
} | {
|
|
8652
|
+
type: "ENABLE";
|
|
8653
|
+
conditional: JSONSchema;
|
|
8654
|
+
})[] | undefined;
|
|
8655
|
+
}[] | undefined;
|
|
8656
|
+
} | {
|
|
8657
|
+
type: "ADMINISTRATIVE_AREA";
|
|
8658
|
+
id: string;
|
|
8659
|
+
required?: boolean | {
|
|
8660
|
+
message: {
|
|
8661
|
+
id: string;
|
|
8662
|
+
description: string;
|
|
8663
|
+
defaultMessage: string;
|
|
8664
|
+
};
|
|
8665
|
+
} | undefined;
|
|
8666
|
+
label?: {
|
|
8667
|
+
id: string;
|
|
8668
|
+
description: string;
|
|
8669
|
+
defaultMessage: string;
|
|
8670
|
+
} | undefined;
|
|
8671
|
+
conditionals?: ({
|
|
8672
|
+
type: "SHOW";
|
|
8673
|
+
conditional: JSONSchema;
|
|
8674
|
+
} | {
|
|
8675
|
+
type: "ENABLE";
|
|
8676
|
+
conditional: JSONSchema;
|
|
8677
|
+
} | {
|
|
8678
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8679
|
+
conditional: JSONSchema;
|
|
8680
|
+
})[] | undefined;
|
|
8681
|
+
})[] | undefined;
|
|
8470
8682
|
streetAddressForm?: {
|
|
8471
8683
|
type: "TEXT";
|
|
8472
8684
|
id: string;
|
package/dist/events/index.js
CHANGED
|
@@ -2288,7 +2288,7 @@ var PhoneField = BaseField.extend({
|
|
|
2288
2288
|
type: import_zod17.z.literal(FieldType.PHONE)
|
|
2289
2289
|
}).describe("Phone input field");
|
|
2290
2290
|
var IdField = BaseField.extend({
|
|
2291
|
-
defaultValue: NonEmptyTextValue.optional(),
|
|
2291
|
+
defaultValue: import_zod17.z.union([NonEmptyTextValue, SerializedUserDataField]).optional(),
|
|
2292
2292
|
type: import_zod17.z.literal(FieldType.ID)
|
|
2293
2293
|
}).describe("ID input field");
|
|
2294
2294
|
var Checkbox = BaseField.extend({
|
|
@@ -2297,7 +2297,10 @@ var Checkbox = BaseField.extend({
|
|
|
2297
2297
|
}).describe("Boolean checkbox field");
|
|
2298
2298
|
var Country = BaseField.extend({
|
|
2299
2299
|
type: import_zod17.z.literal(FieldType.COUNTRY),
|
|
2300
|
-
defaultValue: NonEmptyTextValue.optional()
|
|
2300
|
+
defaultValue: NonEmptyTextValue.optional(),
|
|
2301
|
+
optionOverrides: import_zod17.z.array(SelectOption.omit({ label: true })).optional().describe(
|
|
2302
|
+
"Conditionals for specific countries. Countries not listed are always shown and enabled."
|
|
2303
|
+
)
|
|
2301
2304
|
}).describe("Country select field");
|
|
2302
2305
|
var AdministrativeAreas = import_zod17.z.enum([
|
|
2303
2306
|
"ADMIN_STRUCTURE",
|
|
@@ -2345,14 +2348,19 @@ var Office = BaseField.extend({
|
|
|
2345
2348
|
var DefaultAddressFieldValue = DomesticAddressFieldValue.extend({
|
|
2346
2349
|
administrativeArea: import_zod17.z.union([UUID, SerializedUserField]).optional()
|
|
2347
2350
|
});
|
|
2348
|
-
var
|
|
2351
|
+
var commonDomesticFieldProps = {
|
|
2349
2352
|
id: true,
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2353
|
+
type: true,
|
|
2354
|
+
label: true,
|
|
2355
|
+
conditionals: true,
|
|
2356
|
+
required: true
|
|
2357
|
+
};
|
|
2358
|
+
var DomesticAddressField = Country.partial().pick({
|
|
2359
|
+
...commonDomesticFieldProps,
|
|
2360
|
+
optionOverrides: true
|
|
2361
|
+
}).required({ id: true, type: true }).or(
|
|
2362
|
+
AdministrativeArea.partial().pick(commonDomesticFieldProps).required({ id: true, type: true })
|
|
2363
|
+
);
|
|
2356
2364
|
var Address = BaseField.extend({
|
|
2357
2365
|
type: import_zod17.z.literal(FieldType.ADDRESS),
|
|
2358
2366
|
configuration: import_zod17.z.object({
|
|
@@ -1794,7 +1794,7 @@ var PhoneField = BaseField.extend({
|
|
|
1794
1794
|
type: import_zod17.z.literal(FieldType.PHONE)
|
|
1795
1795
|
}).describe("Phone input field");
|
|
1796
1796
|
var IdField = BaseField.extend({
|
|
1797
|
-
defaultValue: NonEmptyTextValue.optional(),
|
|
1797
|
+
defaultValue: import_zod17.z.union([NonEmptyTextValue, SerializedUserDataField]).optional(),
|
|
1798
1798
|
type: import_zod17.z.literal(FieldType.ID)
|
|
1799
1799
|
}).describe("ID input field");
|
|
1800
1800
|
var Checkbox = BaseField.extend({
|
|
@@ -1803,7 +1803,10 @@ var Checkbox = BaseField.extend({
|
|
|
1803
1803
|
}).describe("Boolean checkbox field");
|
|
1804
1804
|
var Country = BaseField.extend({
|
|
1805
1805
|
type: import_zod17.z.literal(FieldType.COUNTRY),
|
|
1806
|
-
defaultValue: NonEmptyTextValue.optional()
|
|
1806
|
+
defaultValue: NonEmptyTextValue.optional(),
|
|
1807
|
+
optionOverrides: import_zod17.z.array(SelectOption.omit({ label: true })).optional().describe(
|
|
1808
|
+
"Conditionals for specific countries. Countries not listed are always shown and enabled."
|
|
1809
|
+
)
|
|
1807
1810
|
}).describe("Country select field");
|
|
1808
1811
|
var AdministrativeAreas = import_zod17.z.enum([
|
|
1809
1812
|
"ADMIN_STRUCTURE",
|
|
@@ -1851,14 +1854,19 @@ var Office = BaseField.extend({
|
|
|
1851
1854
|
var DefaultAddressFieldValue = DomesticAddressFieldValue.extend({
|
|
1852
1855
|
administrativeArea: import_zod17.z.union([UUID, SerializedUserField]).optional()
|
|
1853
1856
|
});
|
|
1854
|
-
var
|
|
1857
|
+
var commonDomesticFieldProps = {
|
|
1855
1858
|
id: true,
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1859
|
+
type: true,
|
|
1860
|
+
label: true,
|
|
1861
|
+
conditionals: true,
|
|
1862
|
+
required: true
|
|
1863
|
+
};
|
|
1864
|
+
var DomesticAddressField = Country.partial().pick({
|
|
1865
|
+
...commonDomesticFieldProps,
|
|
1866
|
+
optionOverrides: true
|
|
1867
|
+
}).required({ id: true, type: true }).or(
|
|
1868
|
+
AdministrativeArea.partial().pick(commonDomesticFieldProps).required({ id: true, type: true })
|
|
1869
|
+
);
|
|
1862
1870
|
var Address = BaseField.extend({
|
|
1863
1871
|
type: import_zod17.z.literal(FieldType.ADDRESS),
|
|
1864
1872
|
configuration: import_zod17.z.object({
|