@opencrvs/toolkit 1.9.12-rc.fd4afc3 → 1.9.13-rc.2cb620a

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.
@@ -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,33 +7919,10 @@ 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.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodObject<z.objectUtil.extendShape<Pick<{
7922
+ fields: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
7923
+ type: z.ZodLiteral<"COUNTRY">;
7745
7924
  id: z.ZodEffects<z.ZodString, string, string>;
7746
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
7747
- id: string;
7748
- description: string;
7749
- defaultMessage: string;
7750
- }>;
7751
- parent: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
7752
- $$field: z.ZodEffects<z.ZodString, string, string>;
7753
- $$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7754
- }, "strip", z.ZodTypeAny, {
7755
- $$field: string;
7756
- $$subfield: string[];
7757
- }, {
7758
- $$field: string;
7759
- $$subfield?: string[] | undefined;
7760
- }>, z.ZodArray<z.ZodObject<{
7761
- $$field: z.ZodEffects<z.ZodString, string, string>;
7762
- $$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7763
- }, "strip", z.ZodTypeAny, {
7764
- $$field: string;
7765
- $$subfield: string[];
7766
- }, {
7767
- $$field: string;
7768
- $$subfield?: string[] | undefined;
7769
- }>, "many">]>>;
7770
- 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<{
7771
7926
  message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
7772
7927
  id: string;
7773
7928
  description: string;
@@ -7781,67 +7936,47 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7781
7936
  description: string;
7782
7937
  defaultMessage: string;
7783
7938
  };
7784
- }>]>>>;
7785
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
7786
- secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7787
- 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, {
7788
7941
  id: string;
7789
7942
  description: string;
7790
7943
  defaultMessage: string;
7791
7944
  }>>;
7792
- validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
7793
- validator: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
7794
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
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, {
7795
7949
  id: string;
7796
7950
  description: string;
7797
7951
  defaultMessage: string;
7798
- }>;
7799
- }, "strip", z.ZodTypeAny, {
7800
- message: TranslationConfig;
7801
- validator: JSONSchema;
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;
7802
7963
  }, {
7803
- message: {
7804
- id: string;
7805
- description: string;
7806
- defaultMessage: string;
7807
- };
7808
- validator: JSONSchema;
7964
+ value: string;
7965
+ conditionals?: ({
7966
+ type: "SHOW";
7967
+ conditional: JSONSchema;
7968
+ } | {
7969
+ type: "ENABLE";
7970
+ conditional: JSONSchema;
7971
+ })[] | undefined;
7809
7972
  }>, "many">>>;
7810
- helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
7811
- id: string;
7812
- description: string;
7813
- defaultMessage: string;
7814
- }>>;
7815
- hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7816
- uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7817
- value: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
7818
- $$field: z.ZodEffects<z.ZodString, string, string>;
7819
- $$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7820
- }, "strip", z.ZodTypeAny, {
7821
- $$field: string;
7822
- $$subfield: string[];
7823
- }, {
7824
- $$field: string;
7825
- $$subfield?: string[] | undefined;
7826
- }>, z.ZodArray<z.ZodObject<{
7827
- $$field: z.ZodEffects<z.ZodString, string, string>;
7828
- $$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7829
- }, "strip", z.ZodTypeAny, {
7830
- $$field: string;
7831
- $$subfield: string[];
7832
- }, {
7833
- $$field: string;
7834
- $$subfield?: string[] | undefined;
7835
- }>, "many">]>>;
7836
- analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7837
- }, "id" | "required" | "conditionals">, {
7838
- type: z.ZodUnion<[z.ZodLiteral<"ADMINISTRATIVE_AREA">, z.ZodLiteral<"COUNTRY">]>;
7839
- }>, "strip", z.ZodTypeAny, {
7840
- type: "COUNTRY" | "ADMINISTRATIVE_AREA";
7973
+ }, "strip", z.ZodTypeAny, {
7974
+ type: "COUNTRY";
7841
7975
  id: string;
7842
7976
  required?: boolean | {
7843
7977
  message: TranslationConfig;
7844
7978
  } | undefined;
7979
+ label?: TranslationConfig | undefined;
7845
7980
  conditionals?: ({
7846
7981
  type: "SHOW";
7847
7982
  conditional: JSONSchema;
@@ -7852,8 +7987,18 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7852
7987
  type: "DISPLAY_ON_REVIEW";
7853
7988
  conditional: JSONSchema;
7854
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;
7855
8000
  }, {
7856
- type: "COUNTRY" | "ADMINISTRATIVE_AREA";
8001
+ type: "COUNTRY";
7857
8002
  id: string;
7858
8003
  required?: boolean | {
7859
8004
  message: {
@@ -7862,6 +8007,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7862
8007
  defaultMessage: string;
7863
8008
  };
7864
8009
  } | undefined;
8010
+ label?: {
8011
+ id: string;
8012
+ description: string;
8013
+ defaultMessage: string;
8014
+ } | undefined;
7865
8015
  conditionals?: ({
7866
8016
  type: "SHOW";
7867
8017
  conditional: JSONSchema;
@@ -7872,12 +8022,47 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7872
8022
  type: "DISPLAY_ON_REVIEW";
7873
8023
  conditional: JSONSchema;
7874
8024
  })[] | undefined;
7875
- }>]>, {
7876
- type: "COUNTRY" | "ADMINISTRATIVE_AREA";
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";
7877
8061
  id: string;
7878
8062
  required?: boolean | {
7879
8063
  message: TranslationConfig;
7880
8064
  } | undefined;
8065
+ label?: TranslationConfig | undefined;
7881
8066
  conditionals?: ({
7882
8067
  type: "SHOW";
7883
8068
  conditional: JSONSchema;
@@ -7888,8 +8073,8 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7888
8073
  type: "DISPLAY_ON_REVIEW";
7889
8074
  conditional: JSONSchema;
7890
8075
  })[] | undefined;
7891
- }, string | {
7892
- type: "COUNTRY" | "ADMINISTRATIVE_AREA";
8076
+ }, {
8077
+ type: "ADMINISTRATIVE_AREA";
7893
8078
  id: string;
7894
8079
  required?: boolean | {
7895
8080
  message: {
@@ -7898,6 +8083,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7898
8083
  defaultMessage: string;
7899
8084
  };
7900
8085
  } | undefined;
8086
+ label?: {
8087
+ id: string;
8088
+ description: string;
8089
+ defaultMessage: string;
8090
+ } | undefined;
7901
8091
  conditionals?: ({
7902
8092
  type: "SHOW";
7903
8093
  conditional: JSONSchema;
@@ -7908,7 +8098,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7908
8098
  type: "DISPLAY_ON_REVIEW";
7909
8099
  conditional: JSONSchema;
7910
8100
  })[] | undefined;
7911
- }>, "many">>;
8101
+ }>]>, "many">>;
7912
8102
  streetAddressForm: z.ZodOptional<z.ZodArray<z.ZodObject<{
7913
8103
  id: z.ZodString;
7914
8104
  required: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
@@ -7996,12 +8186,13 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7996
8186
  }>, "many">>;
7997
8187
  }, "strip", z.ZodTypeAny, {
7998
8188
  lineSeparator?: string | undefined;
7999
- fields?: {
8000
- type: "COUNTRY" | "ADMINISTRATIVE_AREA";
8189
+ fields?: ({
8190
+ type: "COUNTRY";
8001
8191
  id: string;
8002
8192
  required?: boolean | {
8003
8193
  message: TranslationConfig;
8004
8194
  } | undefined;
8195
+ label?: TranslationConfig | undefined;
8005
8196
  conditionals?: ({
8006
8197
  type: "SHOW";
8007
8198
  conditional: JSONSchema;
@@ -8012,7 +8203,34 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8012
8203
  type: "DISPLAY_ON_REVIEW";
8013
8204
  conditional: JSONSchema;
8014
8205
  })[] | undefined;
8015
- }[] | undefined;
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;
8016
8234
  streetAddressForm?: {
8017
8235
  type: "TEXT";
8018
8236
  id: string;
@@ -8037,8 +8255,43 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8037
8255
  }[] | undefined;
8038
8256
  }, {
8039
8257
  lineSeparator?: string | undefined;
8040
- fields?: (string | {
8041
- type: "COUNTRY" | "ADMINISTRATIVE_AREA";
8258
+ fields?: ({
8259
+ type: "COUNTRY";
8260
+ id: string;
8261
+ required?: boolean | {
8262
+ message: {
8263
+ id: string;
8264
+ description: string;
8265
+ defaultMessage: string;
8266
+ };
8267
+ } | undefined;
8268
+ label?: {
8269
+ id: string;
8270
+ description: string;
8271
+ defaultMessage: string;
8272
+ } | undefined;
8273
+ conditionals?: ({
8274
+ type: "SHOW";
8275
+ conditional: JSONSchema;
8276
+ } | {
8277
+ type: "ENABLE";
8278
+ conditional: JSONSchema;
8279
+ } | {
8280
+ type: "DISPLAY_ON_REVIEW";
8281
+ conditional: JSONSchema;
8282
+ })[] | undefined;
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";
8042
8295
  id: string;
8043
8296
  required?: boolean | {
8044
8297
  message: {
@@ -8047,6 +8300,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8047
8300
  defaultMessage: string;
8048
8301
  };
8049
8302
  } | undefined;
8303
+ label?: {
8304
+ id: string;
8305
+ description: string;
8306
+ defaultMessage: string;
8307
+ } | undefined;
8050
8308
  conditionals?: ({
8051
8309
  type: "SHOW";
8052
8310
  conditional: JSONSchema;
@@ -8175,12 +8433,13 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8175
8433
  } | undefined;
8176
8434
  configuration?: {
8177
8435
  lineSeparator?: string | undefined;
8178
- fields?: {
8179
- type: "COUNTRY" | "ADMINISTRATIVE_AREA";
8436
+ fields?: ({
8437
+ type: "COUNTRY";
8180
8438
  id: string;
8181
8439
  required?: boolean | {
8182
8440
  message: TranslationConfig;
8183
8441
  } | undefined;
8442
+ label?: TranslationConfig | undefined;
8184
8443
  conditionals?: ({
8185
8444
  type: "SHOW";
8186
8445
  conditional: JSONSchema;
@@ -8191,7 +8450,34 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8191
8450
  type: "DISPLAY_ON_REVIEW";
8192
8451
  conditional: JSONSchema;
8193
8452
  })[] | undefined;
8194
- }[] | undefined;
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;
8195
8481
  streetAddressForm?: {
8196
8482
  type: "TEXT";
8197
8483
  id: string;
@@ -8287,8 +8573,43 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8287
8573
  } | undefined;
8288
8574
  configuration?: {
8289
8575
  lineSeparator?: string | undefined;
8290
- fields?: (string | {
8291
- type: "COUNTRY" | "ADMINISTRATIVE_AREA";
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";
8292
8613
  id: string;
8293
8614
  required?: boolean | {
8294
8615
  message: {
@@ -8297,6 +8618,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8297
8618
  defaultMessage: string;
8298
8619
  };
8299
8620
  } | undefined;
8621
+ label?: {
8622
+ id: string;
8623
+ description: string;
8624
+ defaultMessage: string;
8625
+ } | undefined;
8300
8626
  conditionals?: ({
8301
8627
  type: "SHOW";
8302
8628
  conditional: JSONSchema;
@@ -12978,9 +13304,17 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12978
13304
  description: string;
12979
13305
  defaultMessage: string;
12980
13306
  }>]>;
13307
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
12981
13308
  }, "strip", z.ZodTypeAny, {
12982
13309
  value: string;
12983
13310
  label: string | TranslationConfig;
13311
+ conditionals?: ({
13312
+ type: "SHOW";
13313
+ conditional: JSONSchema;
13314
+ } | {
13315
+ type: "ENABLE";
13316
+ conditional: JSONSchema;
13317
+ })[] | undefined;
12984
13318
  }, {
12985
13319
  value: string;
12986
13320
  label: string | {
@@ -12988,6 +13322,13 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12988
13322
  description: string;
12989
13323
  defaultMessage: string;
12990
13324
  };
13325
+ conditionals?: ({
13326
+ type: "SHOW";
13327
+ conditional: JSONSchema;
13328
+ } | {
13329
+ type: "ENABLE";
13330
+ conditional: JSONSchema;
13331
+ })[] | undefined;
12991
13332
  }>, "many">;
12992
13333
  defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
12993
13334
  path: z.ZodEffects<z.ZodString, string, string>;
@@ -13055,6 +13396,13 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
13055
13396
  options: {
13056
13397
  value: string;
13057
13398
  label: string | TranslationConfig;
13399
+ conditionals?: ({
13400
+ type: "SHOW";
13401
+ conditional: JSONSchema;
13402
+ } | {
13403
+ type: "ENABLE";
13404
+ conditional: JSONSchema;
13405
+ })[] | undefined;
13058
13406
  }[];
13059
13407
  label: TranslationConfig;
13060
13408
  configuration: {
@@ -13120,6 +13468,13 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
13120
13468
  description: string;
13121
13469
  defaultMessage: string;
13122
13470
  };
13471
+ conditionals?: ({
13472
+ type: "SHOW";
13473
+ conditional: JSONSchema;
13474
+ } | {
13475
+ type: "ENABLE";
13476
+ conditional: JSONSchema;
13477
+ })[] | undefined;
13123
13478
  }[];
13124
13479
  label: {
13125
13480
  id: string;