@opencrvs/toolkit 1.9.12-rc.d350fab → 1.9.12-rc.dcd12a4
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 +444 -10
- package/dist/commons/events/defineConfig.d.ts +14 -0
- package/dist/commons/events/utils.d.ts +14 -0
- package/dist/events/index.js +15 -4
- package/dist/notification/index.js +15 -4
- 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;
|
|
@@ -6281,6 +6383,33 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6281
6383
|
}, {
|
|
6282
6384
|
type: z.ZodLiteral<"COUNTRY">;
|
|
6283
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">>;
|
|
6284
6413
|
}>, "strip", z.ZodTypeAny, {
|
|
6285
6414
|
type: "COUNTRY";
|
|
6286
6415
|
id: string;
|
|
@@ -6323,6 +6452,16 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6323
6452
|
uncorrectable?: boolean | undefined;
|
|
6324
6453
|
analytics?: boolean | undefined;
|
|
6325
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;
|
|
6326
6465
|
}, {
|
|
6327
6466
|
type: "COUNTRY";
|
|
6328
6467
|
id: string;
|
|
@@ -6385,6 +6524,16 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6385
6524
|
uncorrectable?: boolean | undefined;
|
|
6386
6525
|
analytics?: boolean | undefined;
|
|
6387
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;
|
|
6388
6537
|
}>;
|
|
6389
6538
|
export type Country = z.infer<typeof Country>;
|
|
6390
6539
|
export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
|
|
@@ -6986,9 +7135,17 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6986
7135
|
description: string;
|
|
6987
7136
|
defaultMessage: string;
|
|
6988
7137
|
}>]>;
|
|
7138
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
6989
7139
|
}, "strip", z.ZodTypeAny, {
|
|
6990
7140
|
value: string;
|
|
6991
7141
|
label: string | TranslationConfig;
|
|
7142
|
+
conditionals?: ({
|
|
7143
|
+
type: "SHOW";
|
|
7144
|
+
conditional: JSONSchema;
|
|
7145
|
+
} | {
|
|
7146
|
+
type: "ENABLE";
|
|
7147
|
+
conditional: JSONSchema;
|
|
7148
|
+
})[] | undefined;
|
|
6992
7149
|
}, {
|
|
6993
7150
|
value: string;
|
|
6994
7151
|
label: string | {
|
|
@@ -6996,6 +7153,13 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
6996
7153
|
description: string;
|
|
6997
7154
|
defaultMessage: string;
|
|
6998
7155
|
};
|
|
7156
|
+
conditionals?: ({
|
|
7157
|
+
type: "SHOW";
|
|
7158
|
+
conditional: JSONSchema;
|
|
7159
|
+
} | {
|
|
7160
|
+
type: "ENABLE";
|
|
7161
|
+
conditional: JSONSchema;
|
|
7162
|
+
})[] | undefined;
|
|
6999
7163
|
}>, "many">;
|
|
7000
7164
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7001
7165
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -7063,6 +7227,13 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7063
7227
|
options: {
|
|
7064
7228
|
value: string;
|
|
7065
7229
|
label: string | TranslationConfig;
|
|
7230
|
+
conditionals?: ({
|
|
7231
|
+
type: "SHOW";
|
|
7232
|
+
conditional: JSONSchema;
|
|
7233
|
+
} | {
|
|
7234
|
+
type: "ENABLE";
|
|
7235
|
+
conditional: JSONSchema;
|
|
7236
|
+
})[] | undefined;
|
|
7066
7237
|
}[];
|
|
7067
7238
|
label: TranslationConfig;
|
|
7068
7239
|
configuration: {
|
|
@@ -7128,6 +7299,13 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7128
7299
|
description: string;
|
|
7129
7300
|
defaultMessage: string;
|
|
7130
7301
|
};
|
|
7302
|
+
conditionals?: ({
|
|
7303
|
+
type: "SHOW";
|
|
7304
|
+
conditional: JSONSchema;
|
|
7305
|
+
} | {
|
|
7306
|
+
type: "ENABLE";
|
|
7307
|
+
conditional: JSONSchema;
|
|
7308
|
+
})[] | undefined;
|
|
7131
7309
|
}[];
|
|
7132
7310
|
label: {
|
|
7133
7311
|
id: string;
|
|
@@ -7741,8 +7919,169 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7741
7919
|
type: z.ZodLiteral<"ADDRESS">;
|
|
7742
7920
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
7743
7921
|
lineSeparator: z.ZodOptional<z.ZodString>;
|
|
7744
|
-
fields: z.ZodOptional<z.ZodArray<z.
|
|
7745
|
-
|
|
7922
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<Pick<{
|
|
7923
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
7924
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7925
|
+
id: string;
|
|
7926
|
+
description: string;
|
|
7927
|
+
defaultMessage: string;
|
|
7928
|
+
}>;
|
|
7929
|
+
parent: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
7930
|
+
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
7931
|
+
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
7932
|
+
}, "strip", z.ZodTypeAny, {
|
|
7933
|
+
$$field: string;
|
|
7934
|
+
$$subfield: string[];
|
|
7935
|
+
}, {
|
|
7936
|
+
$$field: string;
|
|
7937
|
+
$$subfield?: string[] | undefined;
|
|
7938
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
7939
|
+
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
7940
|
+
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
7941
|
+
}, "strip", z.ZodTypeAny, {
|
|
7942
|
+
$$field: string;
|
|
7943
|
+
$$subfield: string[];
|
|
7944
|
+
}, {
|
|
7945
|
+
$$field: string;
|
|
7946
|
+
$$subfield?: string[] | undefined;
|
|
7947
|
+
}>, "many">]>>;
|
|
7948
|
+
required: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
7949
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7950
|
+
id: string;
|
|
7951
|
+
description: string;
|
|
7952
|
+
defaultMessage: string;
|
|
7953
|
+
}>;
|
|
7954
|
+
}, "strip", z.ZodTypeAny, {
|
|
7955
|
+
message: TranslationConfig;
|
|
7956
|
+
}, {
|
|
7957
|
+
message: {
|
|
7958
|
+
id: string;
|
|
7959
|
+
description: string;
|
|
7960
|
+
defaultMessage: string;
|
|
7961
|
+
};
|
|
7962
|
+
}>]>>>;
|
|
7963
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
|
7964
|
+
secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7965
|
+
placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7966
|
+
id: string;
|
|
7967
|
+
description: string;
|
|
7968
|
+
defaultMessage: string;
|
|
7969
|
+
}>>;
|
|
7970
|
+
validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7971
|
+
validator: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
|
7972
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7973
|
+
id: string;
|
|
7974
|
+
description: string;
|
|
7975
|
+
defaultMessage: string;
|
|
7976
|
+
}>;
|
|
7977
|
+
}, "strip", z.ZodTypeAny, {
|
|
7978
|
+
message: TranslationConfig;
|
|
7979
|
+
validator: JSONSchema;
|
|
7980
|
+
}, {
|
|
7981
|
+
message: {
|
|
7982
|
+
id: string;
|
|
7983
|
+
description: string;
|
|
7984
|
+
defaultMessage: string;
|
|
7985
|
+
};
|
|
7986
|
+
validator: JSONSchema;
|
|
7987
|
+
}>, "many">>>;
|
|
7988
|
+
helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
7989
|
+
id: string;
|
|
7990
|
+
description: string;
|
|
7991
|
+
defaultMessage: string;
|
|
7992
|
+
}>>;
|
|
7993
|
+
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7994
|
+
uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7995
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
7996
|
+
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
7997
|
+
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
7998
|
+
}, "strip", z.ZodTypeAny, {
|
|
7999
|
+
$$field: string;
|
|
8000
|
+
$$subfield: string[];
|
|
8001
|
+
}, {
|
|
8002
|
+
$$field: string;
|
|
8003
|
+
$$subfield?: string[] | undefined;
|
|
8004
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
8005
|
+
$$field: z.ZodEffects<z.ZodString, string, string>;
|
|
8006
|
+
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
8007
|
+
}, "strip", z.ZodTypeAny, {
|
|
8008
|
+
$$field: string;
|
|
8009
|
+
$$subfield: string[];
|
|
8010
|
+
}, {
|
|
8011
|
+
$$field: string;
|
|
8012
|
+
$$subfield?: string[] | undefined;
|
|
8013
|
+
}>, "many">]>>;
|
|
8014
|
+
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8015
|
+
}, "id" | "required" | "conditionals">, "strip", z.ZodTypeAny, {
|
|
8016
|
+
id: string;
|
|
8017
|
+
required?: boolean | {
|
|
8018
|
+
message: TranslationConfig;
|
|
8019
|
+
} | undefined;
|
|
8020
|
+
conditionals?: ({
|
|
8021
|
+
type: "SHOW";
|
|
8022
|
+
conditional: JSONSchema;
|
|
8023
|
+
} | {
|
|
8024
|
+
type: "ENABLE";
|
|
8025
|
+
conditional: JSONSchema;
|
|
8026
|
+
} | {
|
|
8027
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8028
|
+
conditional: JSONSchema;
|
|
8029
|
+
})[] | undefined;
|
|
8030
|
+
}, {
|
|
8031
|
+
id: string;
|
|
8032
|
+
required?: boolean | {
|
|
8033
|
+
message: {
|
|
8034
|
+
id: string;
|
|
8035
|
+
description: string;
|
|
8036
|
+
defaultMessage: string;
|
|
8037
|
+
};
|
|
8038
|
+
} | undefined;
|
|
8039
|
+
conditionals?: ({
|
|
8040
|
+
type: "SHOW";
|
|
8041
|
+
conditional: JSONSchema;
|
|
8042
|
+
} | {
|
|
8043
|
+
type: "ENABLE";
|
|
8044
|
+
conditional: JSONSchema;
|
|
8045
|
+
} | {
|
|
8046
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8047
|
+
conditional: JSONSchema;
|
|
8048
|
+
})[] | undefined;
|
|
8049
|
+
}>, {
|
|
8050
|
+
type: "COUNTRY" | "ADMINISTRATIVE_AREA";
|
|
8051
|
+
id: string;
|
|
8052
|
+
required?: boolean | {
|
|
8053
|
+
message: TranslationConfig;
|
|
8054
|
+
} | undefined;
|
|
8055
|
+
conditionals?: ({
|
|
8056
|
+
type: "SHOW";
|
|
8057
|
+
conditional: JSONSchema;
|
|
8058
|
+
} | {
|
|
8059
|
+
type: "ENABLE";
|
|
8060
|
+
conditional: JSONSchema;
|
|
8061
|
+
} | {
|
|
8062
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8063
|
+
conditional: JSONSchema;
|
|
8064
|
+
})[] | undefined;
|
|
8065
|
+
}, {
|
|
8066
|
+
id: string;
|
|
8067
|
+
required?: boolean | {
|
|
8068
|
+
message: {
|
|
8069
|
+
id: string;
|
|
8070
|
+
description: string;
|
|
8071
|
+
defaultMessage: string;
|
|
8072
|
+
};
|
|
8073
|
+
} | undefined;
|
|
8074
|
+
conditionals?: ({
|
|
8075
|
+
type: "SHOW";
|
|
8076
|
+
conditional: JSONSchema;
|
|
8077
|
+
} | {
|
|
8078
|
+
type: "ENABLE";
|
|
8079
|
+
conditional: JSONSchema;
|
|
8080
|
+
} | {
|
|
8081
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8082
|
+
conditional: JSONSchema;
|
|
8083
|
+
})[] | undefined;
|
|
8084
|
+
}>, "many">>;
|
|
7746
8085
|
streetAddressForm: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7747
8086
|
id: z.ZodString;
|
|
7748
8087
|
required: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
@@ -7830,8 +8169,23 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7830
8169
|
}>, "many">>;
|
|
7831
8170
|
}, "strip", z.ZodTypeAny, {
|
|
7832
8171
|
lineSeparator?: string | undefined;
|
|
7833
|
-
fields?:
|
|
7834
|
-
|
|
8172
|
+
fields?: {
|
|
8173
|
+
type: "COUNTRY" | "ADMINISTRATIVE_AREA";
|
|
8174
|
+
id: string;
|
|
8175
|
+
required?: boolean | {
|
|
8176
|
+
message: TranslationConfig;
|
|
8177
|
+
} | undefined;
|
|
8178
|
+
conditionals?: ({
|
|
8179
|
+
type: "SHOW";
|
|
8180
|
+
conditional: JSONSchema;
|
|
8181
|
+
} | {
|
|
8182
|
+
type: "ENABLE";
|
|
8183
|
+
conditional: JSONSchema;
|
|
8184
|
+
} | {
|
|
8185
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8186
|
+
conditional: JSONSchema;
|
|
8187
|
+
})[] | undefined;
|
|
8188
|
+
}[] | undefined;
|
|
7835
8189
|
streetAddressForm?: {
|
|
7836
8190
|
type: "TEXT";
|
|
7837
8191
|
id: string;
|
|
@@ -7856,8 +8210,26 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7856
8210
|
}[] | undefined;
|
|
7857
8211
|
}, {
|
|
7858
8212
|
lineSeparator?: string | undefined;
|
|
7859
|
-
fields?:
|
|
7860
|
-
|
|
8213
|
+
fields?: {
|
|
8214
|
+
id: string;
|
|
8215
|
+
required?: boolean | {
|
|
8216
|
+
message: {
|
|
8217
|
+
id: string;
|
|
8218
|
+
description: string;
|
|
8219
|
+
defaultMessage: string;
|
|
8220
|
+
};
|
|
8221
|
+
} | undefined;
|
|
8222
|
+
conditionals?: ({
|
|
8223
|
+
type: "SHOW";
|
|
8224
|
+
conditional: JSONSchema;
|
|
8225
|
+
} | {
|
|
8226
|
+
type: "ENABLE";
|
|
8227
|
+
conditional: JSONSchema;
|
|
8228
|
+
} | {
|
|
8229
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8230
|
+
conditional: JSONSchema;
|
|
8231
|
+
})[] | undefined;
|
|
8232
|
+
}[] | undefined;
|
|
7861
8233
|
streetAddressForm?: {
|
|
7862
8234
|
type: "TEXT";
|
|
7863
8235
|
id: string;
|
|
@@ -7975,8 +8347,23 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7975
8347
|
} | undefined;
|
|
7976
8348
|
configuration?: {
|
|
7977
8349
|
lineSeparator?: string | undefined;
|
|
7978
|
-
fields?:
|
|
7979
|
-
|
|
8350
|
+
fields?: {
|
|
8351
|
+
type: "COUNTRY" | "ADMINISTRATIVE_AREA";
|
|
8352
|
+
id: string;
|
|
8353
|
+
required?: boolean | {
|
|
8354
|
+
message: TranslationConfig;
|
|
8355
|
+
} | undefined;
|
|
8356
|
+
conditionals?: ({
|
|
8357
|
+
type: "SHOW";
|
|
8358
|
+
conditional: JSONSchema;
|
|
8359
|
+
} | {
|
|
8360
|
+
type: "ENABLE";
|
|
8361
|
+
conditional: JSONSchema;
|
|
8362
|
+
} | {
|
|
8363
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8364
|
+
conditional: JSONSchema;
|
|
8365
|
+
})[] | undefined;
|
|
8366
|
+
}[] | undefined;
|
|
7980
8367
|
streetAddressForm?: {
|
|
7981
8368
|
type: "TEXT";
|
|
7982
8369
|
id: string;
|
|
@@ -8072,8 +8459,26 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
8072
8459
|
} | undefined;
|
|
8073
8460
|
configuration?: {
|
|
8074
8461
|
lineSeparator?: string | undefined;
|
|
8075
|
-
fields?:
|
|
8076
|
-
|
|
8462
|
+
fields?: {
|
|
8463
|
+
id: string;
|
|
8464
|
+
required?: boolean | {
|
|
8465
|
+
message: {
|
|
8466
|
+
id: string;
|
|
8467
|
+
description: string;
|
|
8468
|
+
defaultMessage: string;
|
|
8469
|
+
};
|
|
8470
|
+
} | undefined;
|
|
8471
|
+
conditionals?: ({
|
|
8472
|
+
type: "SHOW";
|
|
8473
|
+
conditional: JSONSchema;
|
|
8474
|
+
} | {
|
|
8475
|
+
type: "ENABLE";
|
|
8476
|
+
conditional: JSONSchema;
|
|
8477
|
+
} | {
|
|
8478
|
+
type: "DISPLAY_ON_REVIEW";
|
|
8479
|
+
conditional: JSONSchema;
|
|
8480
|
+
})[] | undefined;
|
|
8481
|
+
}[] | undefined;
|
|
8077
8482
|
streetAddressForm?: {
|
|
8078
8483
|
type: "TEXT";
|
|
8079
8484
|
id: string;
|
|
@@ -12744,9 +13149,17 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12744
13149
|
description: string;
|
|
12745
13150
|
defaultMessage: string;
|
|
12746
13151
|
}>]>;
|
|
13152
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
|
|
12747
13153
|
}, "strip", z.ZodTypeAny, {
|
|
12748
13154
|
value: string;
|
|
12749
13155
|
label: string | TranslationConfig;
|
|
13156
|
+
conditionals?: ({
|
|
13157
|
+
type: "SHOW";
|
|
13158
|
+
conditional: JSONSchema;
|
|
13159
|
+
} | {
|
|
13160
|
+
type: "ENABLE";
|
|
13161
|
+
conditional: JSONSchema;
|
|
13162
|
+
})[] | undefined;
|
|
12750
13163
|
}, {
|
|
12751
13164
|
value: string;
|
|
12752
13165
|
label: string | {
|
|
@@ -12754,6 +13167,13 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12754
13167
|
description: string;
|
|
12755
13168
|
defaultMessage: string;
|
|
12756
13169
|
};
|
|
13170
|
+
conditionals?: ({
|
|
13171
|
+
type: "SHOW";
|
|
13172
|
+
conditional: JSONSchema;
|
|
13173
|
+
} | {
|
|
13174
|
+
type: "ENABLE";
|
|
13175
|
+
conditional: JSONSchema;
|
|
13176
|
+
})[] | undefined;
|
|
12757
13177
|
}>, "many">;
|
|
12758
13178
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12759
13179
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -12821,6 +13241,13 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12821
13241
|
options: {
|
|
12822
13242
|
value: string;
|
|
12823
13243
|
label: string | TranslationConfig;
|
|
13244
|
+
conditionals?: ({
|
|
13245
|
+
type: "SHOW";
|
|
13246
|
+
conditional: JSONSchema;
|
|
13247
|
+
} | {
|
|
13248
|
+
type: "ENABLE";
|
|
13249
|
+
conditional: JSONSchema;
|
|
13250
|
+
})[] | undefined;
|
|
12824
13251
|
}[];
|
|
12825
13252
|
label: TranslationConfig;
|
|
12826
13253
|
configuration: {
|
|
@@ -12886,6 +13313,13 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
12886
13313
|
description: string;
|
|
12887
13314
|
defaultMessage: string;
|
|
12888
13315
|
};
|
|
13316
|
+
conditionals?: ({
|
|
13317
|
+
type: "SHOW";
|
|
13318
|
+
conditional: JSONSchema;
|
|
13319
|
+
} | {
|
|
13320
|
+
type: "ENABLE";
|
|
13321
|
+
conditional: JSONSchema;
|
|
13322
|
+
})[] | undefined;
|
|
12889
13323
|
}[];
|
|
12890
13324
|
label: {
|
|
12891
13325
|
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?: ({
|