@opencrvs/toolkit 1.9.12-rc.8753d72 → 1.9.12-rc.9427b0f
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 +14 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +258 -0
- package/dist/commons/events/EventConfig.d.ts +170 -0
- package/dist/commons/events/FieldConfig.d.ts +397 -10
- package/dist/commons/events/defineConfig.d.ts +14 -0
- package/dist/commons/events/utils.d.ts +14 -0
- package/dist/events/index.js +11 -3
- package/dist/notification/index.js +11 -3
- package/package.json +1 -1
|
@@ -3456,9 +3456,17 @@ export declare const SelectOption: z.ZodObject<{
|
|
|
3456
3456
|
description: string;
|
|
3457
3457
|
defaultMessage: string;
|
|
3458
3458
|
}>]>;
|
|
3459
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
3459
3460
|
}, "strip", z.ZodTypeAny, {
|
|
3460
3461
|
value: string;
|
|
3461
3462
|
label: string | TranslationConfig;
|
|
3463
|
+
conditionals?: ({
|
|
3464
|
+
type: "SHOW";
|
|
3465
|
+
conditional: JSONSchema;
|
|
3466
|
+
} | {
|
|
3467
|
+
type: "ENABLE";
|
|
3468
|
+
conditional: JSONSchema;
|
|
3469
|
+
})[] | undefined;
|
|
3462
3470
|
}, {
|
|
3463
3471
|
value: string;
|
|
3464
3472
|
label: string | {
|
|
@@ -3466,6 +3474,13 @@ export declare const SelectOption: z.ZodObject<{
|
|
|
3466
3474
|
description: string;
|
|
3467
3475
|
defaultMessage: string;
|
|
3468
3476
|
};
|
|
3477
|
+
conditionals?: ({
|
|
3478
|
+
type: "SHOW";
|
|
3479
|
+
conditional: JSONSchema;
|
|
3480
|
+
} | {
|
|
3481
|
+
type: "ENABLE";
|
|
3482
|
+
conditional: JSONSchema;
|
|
3483
|
+
})[] | undefined;
|
|
3469
3484
|
}>;
|
|
3470
3485
|
declare const NumberWithUnitField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3471
3486
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -3579,9 +3594,17 @@ declare const NumberWithUnitField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3579
3594
|
description: string;
|
|
3580
3595
|
defaultMessage: string;
|
|
3581
3596
|
}>]>;
|
|
3597
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
3582
3598
|
}, "strip", z.ZodTypeAny, {
|
|
3583
3599
|
value: string;
|
|
3584
3600
|
label: string | TranslationConfig;
|
|
3601
|
+
conditionals?: ({
|
|
3602
|
+
type: "SHOW";
|
|
3603
|
+
conditional: JSONSchema;
|
|
3604
|
+
} | {
|
|
3605
|
+
type: "ENABLE";
|
|
3606
|
+
conditional: JSONSchema;
|
|
3607
|
+
})[] | undefined;
|
|
3585
3608
|
}, {
|
|
3586
3609
|
value: string;
|
|
3587
3610
|
label: string | {
|
|
@@ -3589,6 +3612,13 @@ declare const NumberWithUnitField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3589
3612
|
description: string;
|
|
3590
3613
|
defaultMessage: string;
|
|
3591
3614
|
};
|
|
3615
|
+
conditionals?: ({
|
|
3616
|
+
type: "SHOW";
|
|
3617
|
+
conditional: JSONSchema;
|
|
3618
|
+
} | {
|
|
3619
|
+
type: "ENABLE";
|
|
3620
|
+
conditional: JSONSchema;
|
|
3621
|
+
})[] | undefined;
|
|
3592
3622
|
}>, "many">;
|
|
3593
3623
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
3594
3624
|
min: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3617,6 +3647,13 @@ declare const NumberWithUnitField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3617
3647
|
options: {
|
|
3618
3648
|
value: string;
|
|
3619
3649
|
label: string | TranslationConfig;
|
|
3650
|
+
conditionals?: ({
|
|
3651
|
+
type: "SHOW";
|
|
3652
|
+
conditional: JSONSchema;
|
|
3653
|
+
} | {
|
|
3654
|
+
type: "ENABLE";
|
|
3655
|
+
conditional: JSONSchema;
|
|
3656
|
+
})[] | undefined;
|
|
3620
3657
|
}[];
|
|
3621
3658
|
label: TranslationConfig;
|
|
3622
3659
|
parent?: {
|
|
@@ -3675,6 +3712,13 @@ declare const NumberWithUnitField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3675
3712
|
description: string;
|
|
3676
3713
|
defaultMessage: string;
|
|
3677
3714
|
};
|
|
3715
|
+
conditionals?: ({
|
|
3716
|
+
type: "SHOW";
|
|
3717
|
+
conditional: JSONSchema;
|
|
3718
|
+
} | {
|
|
3719
|
+
type: "ENABLE";
|
|
3720
|
+
conditional: JSONSchema;
|
|
3721
|
+
})[] | undefined;
|
|
3678
3722
|
}[];
|
|
3679
3723
|
label: {
|
|
3680
3724
|
id: string;
|
|
@@ -3851,9 +3895,17 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3851
3895
|
description: string;
|
|
3852
3896
|
defaultMessage: string;
|
|
3853
3897
|
}>]>;
|
|
3898
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
3854
3899
|
}, "strip", z.ZodTypeAny, {
|
|
3855
3900
|
value: string;
|
|
3856
3901
|
label: string | TranslationConfig;
|
|
3902
|
+
conditionals?: ({
|
|
3903
|
+
type: "SHOW";
|
|
3904
|
+
conditional: JSONSchema;
|
|
3905
|
+
} | {
|
|
3906
|
+
type: "ENABLE";
|
|
3907
|
+
conditional: JSONSchema;
|
|
3908
|
+
})[] | undefined;
|
|
3857
3909
|
}, {
|
|
3858
3910
|
value: string;
|
|
3859
3911
|
label: string | {
|
|
@@ -3861,6 +3913,13 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3861
3913
|
description: string;
|
|
3862
3914
|
defaultMessage: string;
|
|
3863
3915
|
};
|
|
3916
|
+
conditionals?: ({
|
|
3917
|
+
type: "SHOW";
|
|
3918
|
+
conditional: JSONSchema;
|
|
3919
|
+
} | {
|
|
3920
|
+
type: "ENABLE";
|
|
3921
|
+
conditional: JSONSchema;
|
|
3922
|
+
})[] | undefined;
|
|
3864
3923
|
}>, "many">;
|
|
3865
3924
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
3866
3925
|
styles: z.ZodOptional<z.ZodObject<{
|
|
@@ -3885,6 +3944,13 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3885
3944
|
options: {
|
|
3886
3945
|
value: string;
|
|
3887
3946
|
label: string | TranslationConfig;
|
|
3947
|
+
conditionals?: ({
|
|
3948
|
+
type: "SHOW";
|
|
3949
|
+
conditional: JSONSchema;
|
|
3950
|
+
} | {
|
|
3951
|
+
type: "ENABLE";
|
|
3952
|
+
conditional: JSONSchema;
|
|
3953
|
+
})[] | undefined;
|
|
3888
3954
|
}[];
|
|
3889
3955
|
label: TranslationConfig;
|
|
3890
3956
|
parent?: {
|
|
@@ -3940,6 +4006,13 @@ declare const RadioGroup: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3940
4006
|
description: string;
|
|
3941
4007
|
defaultMessage: string;
|
|
3942
4008
|
};
|
|
4009
|
+
conditionals?: ({
|
|
4010
|
+
type: "SHOW";
|
|
4011
|
+
conditional: JSONSchema;
|
|
4012
|
+
} | {
|
|
4013
|
+
type: "ENABLE";
|
|
4014
|
+
conditional: JSONSchema;
|
|
4015
|
+
})[] | undefined;
|
|
3943
4016
|
}[];
|
|
3944
4017
|
label: {
|
|
3945
4018
|
id: string;
|
|
@@ -4350,9 +4423,17 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4350
4423
|
description: string;
|
|
4351
4424
|
defaultMessage: string;
|
|
4352
4425
|
}>]>;
|
|
4426
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
4353
4427
|
}, "strip", z.ZodTypeAny, {
|
|
4354
4428
|
value: string;
|
|
4355
4429
|
label: string | TranslationConfig;
|
|
4430
|
+
conditionals?: ({
|
|
4431
|
+
type: "SHOW";
|
|
4432
|
+
conditional: JSONSchema;
|
|
4433
|
+
} | {
|
|
4434
|
+
type: "ENABLE";
|
|
4435
|
+
conditional: JSONSchema;
|
|
4436
|
+
})[] | undefined;
|
|
4356
4437
|
}, {
|
|
4357
4438
|
value: string;
|
|
4358
4439
|
label: string | {
|
|
@@ -4360,6 +4441,13 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4360
4441
|
description: string;
|
|
4361
4442
|
defaultMessage: string;
|
|
4362
4443
|
};
|
|
4444
|
+
conditionals?: ({
|
|
4445
|
+
type: "SHOW";
|
|
4446
|
+
conditional: JSONSchema;
|
|
4447
|
+
} | {
|
|
4448
|
+
type: "ENABLE";
|
|
4449
|
+
conditional: JSONSchema;
|
|
4450
|
+
})[] | undefined;
|
|
4363
4451
|
}>, "many">;
|
|
4364
4452
|
noOptionsMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
4365
4453
|
id: string;
|
|
@@ -4372,6 +4460,13 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4372
4460
|
options: {
|
|
4373
4461
|
value: string;
|
|
4374
4462
|
label: string | TranslationConfig;
|
|
4463
|
+
conditionals?: ({
|
|
4464
|
+
type: "SHOW";
|
|
4465
|
+
conditional: JSONSchema;
|
|
4466
|
+
} | {
|
|
4467
|
+
type: "ENABLE";
|
|
4468
|
+
conditional: JSONSchema;
|
|
4469
|
+
})[] | undefined;
|
|
4375
4470
|
}[];
|
|
4376
4471
|
label: TranslationConfig;
|
|
4377
4472
|
parent?: {
|
|
@@ -4423,6 +4518,13 @@ declare const Select: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4423
4518
|
description: string;
|
|
4424
4519
|
defaultMessage: string;
|
|
4425
4520
|
};
|
|
4521
|
+
conditionals?: ({
|
|
4522
|
+
type: "SHOW";
|
|
4523
|
+
conditional: JSONSchema;
|
|
4524
|
+
} | {
|
|
4525
|
+
type: "ENABLE";
|
|
4526
|
+
conditional: JSONSchema;
|
|
4527
|
+
})[] | undefined;
|
|
4426
4528
|
}[];
|
|
4427
4529
|
label: {
|
|
4428
4530
|
id: string;
|
|
@@ -6986,9 +7088,17 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6986
7088
|
description: string;
|
|
6987
7089
|
defaultMessage: string;
|
|
6988
7090
|
}>]>;
|
|
7091
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
6989
7092
|
}, "strip", z.ZodTypeAny, {
|
|
6990
7093
|
value: string;
|
|
6991
7094
|
label: string | TranslationConfig;
|
|
7095
|
+
conditionals?: ({
|
|
7096
|
+
type: "SHOW";
|
|
7097
|
+
conditional: JSONSchema;
|
|
7098
|
+
} | {
|
|
7099
|
+
type: "ENABLE";
|
|
7100
|
+
conditional: JSONSchema;
|
|
7101
|
+
})[] | undefined;
|
|
6992
7102
|
}, {
|
|
6993
7103
|
value: string;
|
|
6994
7104
|
label: string | {
|
|
@@ -6996,6 +7106,13 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6996
7106
|
description: string;
|
|
6997
7107
|
defaultMessage: string;
|
|
6998
7108
|
};
|
|
7109
|
+
conditionals?: ({
|
|
7110
|
+
type: "SHOW";
|
|
7111
|
+
conditional: JSONSchema;
|
|
7112
|
+
} | {
|
|
7113
|
+
type: "ENABLE";
|
|
7114
|
+
conditional: JSONSchema;
|
|
7115
|
+
})[] | undefined;
|
|
6999
7116
|
}>, "many">;
|
|
7000
7117
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7001
7118
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -7063,6 +7180,13 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7063
7180
|
options: {
|
|
7064
7181
|
value: string;
|
|
7065
7182
|
label: string | TranslationConfig;
|
|
7183
|
+
conditionals?: ({
|
|
7184
|
+
type: "SHOW";
|
|
7185
|
+
conditional: JSONSchema;
|
|
7186
|
+
} | {
|
|
7187
|
+
type: "ENABLE";
|
|
7188
|
+
conditional: JSONSchema;
|
|
7189
|
+
})[] | undefined;
|
|
7066
7190
|
}[];
|
|
7067
7191
|
label: TranslationConfig;
|
|
7068
7192
|
configuration: {
|
|
@@ -7128,6 +7252,13 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7128
7252
|
description: string;
|
|
7129
7253
|
defaultMessage: string;
|
|
7130
7254
|
};
|
|
7255
|
+
conditionals?: ({
|
|
7256
|
+
type: "SHOW";
|
|
7257
|
+
conditional: JSONSchema;
|
|
7258
|
+
} | {
|
|
7259
|
+
type: "ENABLE";
|
|
7260
|
+
conditional: JSONSchema;
|
|
7261
|
+
})[] | undefined;
|
|
7131
7262
|
}[];
|
|
7132
7263
|
label: {
|
|
7133
7264
|
id: string;
|
|
@@ -7741,8 +7872,169 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7741
7872
|
type: z.ZodLiteral<"ADDRESS">;
|
|
7742
7873
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
7743
7874
|
lineSeparator: z.ZodOptional<z.ZodString>;
|
|
7744
|
-
fields: z.ZodOptional<z.ZodArray<z.
|
|
7745
|
-
|
|
7875
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<Pick<{
|
|
7876
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
7877
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
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<{
|
|
7902
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7903
|
+
id: string;
|
|
7904
|
+
description: string;
|
|
7905
|
+
defaultMessage: string;
|
|
7906
|
+
}>;
|
|
7907
|
+
}, "strip", z.ZodTypeAny, {
|
|
7908
|
+
message: TranslationConfig;
|
|
7909
|
+
}, {
|
|
7910
|
+
message: {
|
|
7911
|
+
id: string;
|
|
7912
|
+
description: string;
|
|
7913
|
+
defaultMessage: string;
|
|
7914
|
+
};
|
|
7915
|
+
}>]>>>;
|
|
7916
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
|
7917
|
+
secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7918
|
+
placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7919
|
+
id: string;
|
|
7920
|
+
description: string;
|
|
7921
|
+
defaultMessage: string;
|
|
7922
|
+
}>>;
|
|
7923
|
+
validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7924
|
+
validator: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
|
7925
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7926
|
+
id: string;
|
|
7927
|
+
description: string;
|
|
7928
|
+
defaultMessage: string;
|
|
7929
|
+
}>;
|
|
7930
|
+
}, "strip", z.ZodTypeAny, {
|
|
7931
|
+
message: TranslationConfig;
|
|
7932
|
+
validator: JSONSchema;
|
|
7933
|
+
}, {
|
|
7934
|
+
message: {
|
|
7935
|
+
id: string;
|
|
7936
|
+
description: string;
|
|
7937
|
+
defaultMessage: string;
|
|
7938
|
+
};
|
|
7939
|
+
validator: JSONSchema;
|
|
7940
|
+
}>, "many">>>;
|
|
7941
|
+
helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7942
|
+
id: string;
|
|
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, {
|
|
7969
|
+
id: string;
|
|
7970
|
+
required?: boolean | {
|
|
7971
|
+
message: TranslationConfig;
|
|
7972
|
+
} | undefined;
|
|
7973
|
+
conditionals?: ({
|
|
7974
|
+
type: "SHOW";
|
|
7975
|
+
conditional: JSONSchema;
|
|
7976
|
+
} | {
|
|
7977
|
+
type: "ENABLE";
|
|
7978
|
+
conditional: JSONSchema;
|
|
7979
|
+
} | {
|
|
7980
|
+
type: "DISPLAY_ON_REVIEW";
|
|
7981
|
+
conditional: JSONSchema;
|
|
7982
|
+
})[] | undefined;
|
|
7983
|
+
}, {
|
|
7984
|
+
id: string;
|
|
7985
|
+
required?: boolean | {
|
|
7986
|
+
message: {
|
|
7987
|
+
id: string;
|
|
7988
|
+
description: string;
|
|
7989
|
+
defaultMessage: string;
|
|
7990
|
+
};
|
|
7991
|
+
} | undefined;
|
|
7992
|
+
conditionals?: ({
|
|
7993
|
+
type: "SHOW";
|
|
7994
|
+
conditional: JSONSchema;
|
|
7995
|
+
} | {
|
|
7996
|
+
type: "ENABLE";
|
|
7997
|
+
conditional: JSONSchema;
|
|
7998
|
+
} | {
|
|
7999
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8000
|
+
conditional: JSONSchema;
|
|
8001
|
+
})[] | undefined;
|
|
8002
|
+
}>, {
|
|
8003
|
+
type: "COUNTRY" | "ADMINISTRATIVE_AREA";
|
|
8004
|
+
id: string;
|
|
8005
|
+
required?: boolean | {
|
|
8006
|
+
message: TranslationConfig;
|
|
8007
|
+
} | undefined;
|
|
8008
|
+
conditionals?: ({
|
|
8009
|
+
type: "SHOW";
|
|
8010
|
+
conditional: JSONSchema;
|
|
8011
|
+
} | {
|
|
8012
|
+
type: "ENABLE";
|
|
8013
|
+
conditional: JSONSchema;
|
|
8014
|
+
} | {
|
|
8015
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8016
|
+
conditional: JSONSchema;
|
|
8017
|
+
})[] | undefined;
|
|
8018
|
+
}, {
|
|
8019
|
+
id: string;
|
|
8020
|
+
required?: boolean | {
|
|
8021
|
+
message: {
|
|
8022
|
+
id: string;
|
|
8023
|
+
description: string;
|
|
8024
|
+
defaultMessage: string;
|
|
8025
|
+
};
|
|
8026
|
+
} | undefined;
|
|
8027
|
+
conditionals?: ({
|
|
8028
|
+
type: "SHOW";
|
|
8029
|
+
conditional: JSONSchema;
|
|
8030
|
+
} | {
|
|
8031
|
+
type: "ENABLE";
|
|
8032
|
+
conditional: JSONSchema;
|
|
8033
|
+
} | {
|
|
8034
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8035
|
+
conditional: JSONSchema;
|
|
8036
|
+
})[] | undefined;
|
|
8037
|
+
}>, "many">>;
|
|
7746
8038
|
streetAddressForm: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7747
8039
|
id: z.ZodString;
|
|
7748
8040
|
required: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
@@ -7830,8 +8122,23 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7830
8122
|
}>, "many">>;
|
|
7831
8123
|
}, "strip", z.ZodTypeAny, {
|
|
7832
8124
|
lineSeparator?: string | undefined;
|
|
7833
|
-
fields?:
|
|
7834
|
-
|
|
8125
|
+
fields?: {
|
|
8126
|
+
type: "COUNTRY" | "ADMINISTRATIVE_AREA";
|
|
8127
|
+
id: string;
|
|
8128
|
+
required?: boolean | {
|
|
8129
|
+
message: TranslationConfig;
|
|
8130
|
+
} | undefined;
|
|
8131
|
+
conditionals?: ({
|
|
8132
|
+
type: "SHOW";
|
|
8133
|
+
conditional: JSONSchema;
|
|
8134
|
+
} | {
|
|
8135
|
+
type: "ENABLE";
|
|
8136
|
+
conditional: JSONSchema;
|
|
8137
|
+
} | {
|
|
8138
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8139
|
+
conditional: JSONSchema;
|
|
8140
|
+
})[] | undefined;
|
|
8141
|
+
}[] | undefined;
|
|
7835
8142
|
streetAddressForm?: {
|
|
7836
8143
|
type: "TEXT";
|
|
7837
8144
|
id: string;
|
|
@@ -7856,8 +8163,26 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7856
8163
|
}[] | undefined;
|
|
7857
8164
|
}, {
|
|
7858
8165
|
lineSeparator?: string | undefined;
|
|
7859
|
-
fields?:
|
|
7860
|
-
|
|
8166
|
+
fields?: {
|
|
8167
|
+
id: string;
|
|
8168
|
+
required?: boolean | {
|
|
8169
|
+
message: {
|
|
8170
|
+
id: string;
|
|
8171
|
+
description: string;
|
|
8172
|
+
defaultMessage: string;
|
|
8173
|
+
};
|
|
8174
|
+
} | undefined;
|
|
8175
|
+
conditionals?: ({
|
|
8176
|
+
type: "SHOW";
|
|
8177
|
+
conditional: JSONSchema;
|
|
8178
|
+
} | {
|
|
8179
|
+
type: "ENABLE";
|
|
8180
|
+
conditional: JSONSchema;
|
|
8181
|
+
} | {
|
|
8182
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8183
|
+
conditional: JSONSchema;
|
|
8184
|
+
})[] | undefined;
|
|
8185
|
+
}[] | undefined;
|
|
7861
8186
|
streetAddressForm?: {
|
|
7862
8187
|
type: "TEXT";
|
|
7863
8188
|
id: string;
|
|
@@ -7975,8 +8300,23 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7975
8300
|
} | undefined;
|
|
7976
8301
|
configuration?: {
|
|
7977
8302
|
lineSeparator?: string | undefined;
|
|
7978
|
-
fields?:
|
|
7979
|
-
|
|
8303
|
+
fields?: {
|
|
8304
|
+
type: "COUNTRY" | "ADMINISTRATIVE_AREA";
|
|
8305
|
+
id: string;
|
|
8306
|
+
required?: boolean | {
|
|
8307
|
+
message: TranslationConfig;
|
|
8308
|
+
} | undefined;
|
|
8309
|
+
conditionals?: ({
|
|
8310
|
+
type: "SHOW";
|
|
8311
|
+
conditional: JSONSchema;
|
|
8312
|
+
} | {
|
|
8313
|
+
type: "ENABLE";
|
|
8314
|
+
conditional: JSONSchema;
|
|
8315
|
+
} | {
|
|
8316
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8317
|
+
conditional: JSONSchema;
|
|
8318
|
+
})[] | undefined;
|
|
8319
|
+
}[] | undefined;
|
|
7980
8320
|
streetAddressForm?: {
|
|
7981
8321
|
type: "TEXT";
|
|
7982
8322
|
id: string;
|
|
@@ -8072,8 +8412,26 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8072
8412
|
} | undefined;
|
|
8073
8413
|
configuration?: {
|
|
8074
8414
|
lineSeparator?: string | undefined;
|
|
8075
|
-
fields?:
|
|
8076
|
-
|
|
8415
|
+
fields?: {
|
|
8416
|
+
id: string;
|
|
8417
|
+
required?: boolean | {
|
|
8418
|
+
message: {
|
|
8419
|
+
id: string;
|
|
8420
|
+
description: string;
|
|
8421
|
+
defaultMessage: string;
|
|
8422
|
+
};
|
|
8423
|
+
} | undefined;
|
|
8424
|
+
conditionals?: ({
|
|
8425
|
+
type: "SHOW";
|
|
8426
|
+
conditional: JSONSchema;
|
|
8427
|
+
} | {
|
|
8428
|
+
type: "ENABLE";
|
|
8429
|
+
conditional: JSONSchema;
|
|
8430
|
+
} | {
|
|
8431
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8432
|
+
conditional: JSONSchema;
|
|
8433
|
+
})[] | undefined;
|
|
8434
|
+
}[] | undefined;
|
|
8077
8435
|
streetAddressForm?: {
|
|
8078
8436
|
type: "TEXT";
|
|
8079
8437
|
id: string;
|
|
@@ -12744,9 +13102,17 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12744
13102
|
description: string;
|
|
12745
13103
|
defaultMessage: string;
|
|
12746
13104
|
}>]>;
|
|
13105
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
12747
13106
|
}, "strip", z.ZodTypeAny, {
|
|
12748
13107
|
value: string;
|
|
12749
13108
|
label: string | TranslationConfig;
|
|
13109
|
+
conditionals?: ({
|
|
13110
|
+
type: "SHOW";
|
|
13111
|
+
conditional: JSONSchema;
|
|
13112
|
+
} | {
|
|
13113
|
+
type: "ENABLE";
|
|
13114
|
+
conditional: JSONSchema;
|
|
13115
|
+
})[] | undefined;
|
|
12750
13116
|
}, {
|
|
12751
13117
|
value: string;
|
|
12752
13118
|
label: string | {
|
|
@@ -12754,6 +13120,13 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12754
13120
|
description: string;
|
|
12755
13121
|
defaultMessage: string;
|
|
12756
13122
|
};
|
|
13123
|
+
conditionals?: ({
|
|
13124
|
+
type: "SHOW";
|
|
13125
|
+
conditional: JSONSchema;
|
|
13126
|
+
} | {
|
|
13127
|
+
type: "ENABLE";
|
|
13128
|
+
conditional: JSONSchema;
|
|
13129
|
+
})[] | undefined;
|
|
12757
13130
|
}>, "many">;
|
|
12758
13131
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12759
13132
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -12821,6 +13194,13 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12821
13194
|
options: {
|
|
12822
13195
|
value: string;
|
|
12823
13196
|
label: string | TranslationConfig;
|
|
13197
|
+
conditionals?: ({
|
|
13198
|
+
type: "SHOW";
|
|
13199
|
+
conditional: JSONSchema;
|
|
13200
|
+
} | {
|
|
13201
|
+
type: "ENABLE";
|
|
13202
|
+
conditional: JSONSchema;
|
|
13203
|
+
})[] | undefined;
|
|
12824
13204
|
}[];
|
|
12825
13205
|
label: TranslationConfig;
|
|
12826
13206
|
configuration: {
|
|
@@ -12886,6 +13266,13 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12886
13266
|
description: string;
|
|
12887
13267
|
defaultMessage: string;
|
|
12888
13268
|
};
|
|
13269
|
+
conditionals?: ({
|
|
13270
|
+
type: "SHOW";
|
|
13271
|
+
conditional: JSONSchema;
|
|
13272
|
+
} | {
|
|
13273
|
+
type: "ENABLE";
|
|
13274
|
+
conditional: JSONSchema;
|
|
13275
|
+
})[] | undefined;
|
|
12889
13276
|
}[];
|
|
12890
13277
|
label: {
|
|
12891
13278
|
id: string;
|
|
@@ -176,6 +176,13 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
176
176
|
options?: {
|
|
177
177
|
value: string;
|
|
178
178
|
label: string | import("./TranslationConfig").TranslationConfig;
|
|
179
|
+
conditionals?: ({
|
|
180
|
+
type: "SHOW";
|
|
181
|
+
conditional: import(".").JSONSchema;
|
|
182
|
+
} | {
|
|
183
|
+
type: "ENABLE";
|
|
184
|
+
conditional: import(".").JSONSchema;
|
|
185
|
+
})[] | undefined;
|
|
179
186
|
}[] | undefined;
|
|
180
187
|
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
181
188
|
conditionals?: ({
|
|
@@ -204,6 +211,13 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
204
211
|
options?: {
|
|
205
212
|
value: string;
|
|
206
213
|
label: string | import("./TranslationConfig").TranslationConfig;
|
|
214
|
+
conditionals?: ({
|
|
215
|
+
type: "SHOW";
|
|
216
|
+
conditional: import(".").JSONSchema;
|
|
217
|
+
} | {
|
|
218
|
+
type: "ENABLE";
|
|
219
|
+
conditional: import(".").JSONSchema;
|
|
220
|
+
})[] | undefined;
|
|
207
221
|
}[] | undefined;
|
|
208
222
|
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
209
223
|
conditionals?: ({
|
|
@@ -554,6 +554,13 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
|
554
554
|
options?: {
|
|
555
555
|
value: string;
|
|
556
556
|
label: string | import("./TranslationConfig").TranslationConfig;
|
|
557
|
+
conditionals?: ({
|
|
558
|
+
type: "SHOW";
|
|
559
|
+
conditional: import(".").JSONSchema;
|
|
560
|
+
} | {
|
|
561
|
+
type: "ENABLE";
|
|
562
|
+
conditional: import(".").JSONSchema;
|
|
563
|
+
})[] | undefined;
|
|
557
564
|
}[] | undefined;
|
|
558
565
|
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
559
566
|
conditionals?: ({
|
|
@@ -582,6 +589,13 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
|
582
589
|
options?: {
|
|
583
590
|
value: string;
|
|
584
591
|
label: string | import("./TranslationConfig").TranslationConfig;
|
|
592
|
+
conditionals?: ({
|
|
593
|
+
type: "SHOW";
|
|
594
|
+
conditional: import(".").JSONSchema;
|
|
595
|
+
} | {
|
|
596
|
+
type: "ENABLE";
|
|
597
|
+
conditional: import(".").JSONSchema;
|
|
598
|
+
})[] | undefined;
|
|
585
599
|
}[] | undefined;
|
|
586
600
|
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
587
601
|
conditionals?: ({
|
package/dist/events/index.js
CHANGED
|
@@ -2182,7 +2182,8 @@ var File = BaseField.extend({
|
|
|
2182
2182
|
}).describe("File upload");
|
|
2183
2183
|
var SelectOption = import_zod17.z.object({
|
|
2184
2184
|
value: import_zod17.z.string().describe("The value of the option"),
|
|
2185
|
-
label: import_zod17.z.union([import_zod17.z.string(), TranslationConfig]).describe("The label of the option")
|
|
2185
|
+
label: import_zod17.z.union([import_zod17.z.string(), TranslationConfig]).describe("The label of the option"),
|
|
2186
|
+
conditionals: import_zod17.z.array(ActionConditional).default([]).optional()
|
|
2186
2187
|
});
|
|
2187
2188
|
var NumberWithUnitField = BaseField.extend({
|
|
2188
2189
|
type: import_zod17.z.literal(FieldType.NUMBER_WITH_UNIT),
|
|
@@ -2333,12 +2334,19 @@ var Office = BaseField.extend({
|
|
|
2333
2334
|
var DefaultAddressFieldValue = DomesticAddressFieldValue.extend({
|
|
2334
2335
|
administrativeArea: import_zod17.z.union([UUID, SerializedUserField]).optional()
|
|
2335
2336
|
});
|
|
2337
|
+
var DomesticAddressField = BaseField.pick({
|
|
2338
|
+
id: true,
|
|
2339
|
+
required: true,
|
|
2340
|
+
conditionals: true
|
|
2341
|
+
}).transform((config) => ({
|
|
2342
|
+
...config,
|
|
2343
|
+
type: config.id === "country" ? FieldType.COUNTRY : FieldType.ADMINISTRATIVE_AREA
|
|
2344
|
+
})).openapi({ effectType: "input", type: "object" });
|
|
2336
2345
|
var Address = BaseField.extend({
|
|
2337
2346
|
type: import_zod17.z.literal(FieldType.ADDRESS),
|
|
2338
2347
|
configuration: import_zod17.z.object({
|
|
2339
2348
|
lineSeparator: import_zod17.z.string().optional(),
|
|
2340
|
-
fields: import_zod17.z.array(
|
|
2341
|
-
administrativeLevels: import_zod17.z.array(import_zod17.z.string()).optional(),
|
|
2349
|
+
fields: import_zod17.z.array(DomesticAddressField).optional(),
|
|
2342
2350
|
streetAddressForm: import_zod17.z.array(
|
|
2343
2351
|
import_zod17.z.object({
|
|
2344
2352
|
id: import_zod17.z.string(),
|