@opencrvs/toolkit 1.9.12-rc.dcd12a4 → 1.9.12-rc.ea32f28

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.
@@ -7919,33 +7919,10 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7919
7919
  type: z.ZodLiteral<"ADDRESS">;
7920
7920
  configuration: z.ZodOptional<z.ZodObject<{
7921
7921
  lineSeparator: z.ZodOptional<z.ZodString>;
7922
- fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<Pick<{
7922
+ fields: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
7923
+ type: z.ZodLiteral<"COUNTRY">;
7923
7924
  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<{
7925
+ required: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
7949
7926
  message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
7950
7927
  id: string;
7951
7928
  description: string;
@@ -7959,64 +7936,47 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
7959
7936
  description: string;
7960
7937
  defaultMessage: string;
7961
7938
  };
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, {
7939
+ }>]>>>>;
7940
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
7966
7941
  id: string;
7967
7942
  description: string;
7968
7943
  defaultMessage: string;
7969
7944
  }>>;
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, {
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, {
7973
7949
  id: string;
7974
7950
  description: string;
7975
7951
  defaultMessage: string;
7976
- }>;
7977
- }, "strip", z.ZodTypeAny, {
7978
- message: TranslationConfig;
7979
- 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;
7980
7963
  }, {
7981
- message: {
7982
- id: string;
7983
- description: string;
7984
- defaultMessage: string;
7985
- };
7986
- validator: JSONSchema;
7964
+ value: string;
7965
+ conditionals?: ({
7966
+ type: "SHOW";
7967
+ conditional: JSONSchema;
7968
+ } | {
7969
+ type: "ENABLE";
7970
+ conditional: JSONSchema;
7971
+ })[] | undefined;
7987
7972
  }>, "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, {
7973
+ }, "strip", z.ZodTypeAny, {
7974
+ type: "COUNTRY";
8016
7975
  id: string;
8017
7976
  required?: boolean | {
8018
7977
  message: TranslationConfig;
8019
7978
  } | undefined;
7979
+ label?: TranslationConfig | undefined;
8020
7980
  conditionals?: ({
8021
7981
  type: "SHOW";
8022
7982
  conditional: JSONSchema;
@@ -8027,7 +7987,18 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8027
7987
  type: "DISPLAY_ON_REVIEW";
8028
7988
  conditional: JSONSchema;
8029
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;
8030
8000
  }, {
8001
+ type: "COUNTRY";
8031
8002
  id: string;
8032
8003
  required?: boolean | {
8033
8004
  message: {
@@ -8036,6 +8007,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8036
8007
  defaultMessage: string;
8037
8008
  };
8038
8009
  } | undefined;
8010
+ label?: {
8011
+ id: string;
8012
+ description: string;
8013
+ defaultMessage: string;
8014
+ } | undefined;
8039
8015
  conditionals?: ({
8040
8016
  type: "SHOW";
8041
8017
  conditional: JSONSchema;
@@ -8046,12 +8022,47 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8046
8022
  type: "DISPLAY_ON_REVIEW";
8047
8023
  conditional: JSONSchema;
8048
8024
  })[] | undefined;
8049
- }>, {
8050
- 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";
8051
8061
  id: string;
8052
8062
  required?: boolean | {
8053
8063
  message: TranslationConfig;
8054
8064
  } | undefined;
8065
+ label?: TranslationConfig | undefined;
8055
8066
  conditionals?: ({
8056
8067
  type: "SHOW";
8057
8068
  conditional: JSONSchema;
@@ -8063,6 +8074,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8063
8074
  conditional: JSONSchema;
8064
8075
  })[] | undefined;
8065
8076
  }, {
8077
+ type: "ADMINISTRATIVE_AREA";
8066
8078
  id: string;
8067
8079
  required?: boolean | {
8068
8080
  message: {
@@ -8071,6 +8083,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8071
8083
  defaultMessage: string;
8072
8084
  };
8073
8085
  } | undefined;
8086
+ label?: {
8087
+ id: string;
8088
+ description: string;
8089
+ defaultMessage: string;
8090
+ } | undefined;
8074
8091
  conditionals?: ({
8075
8092
  type: "SHOW";
8076
8093
  conditional: JSONSchema;
@@ -8081,7 +8098,7 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8081
8098
  type: "DISPLAY_ON_REVIEW";
8082
8099
  conditional: JSONSchema;
8083
8100
  })[] | undefined;
8084
- }>, "many">>;
8101
+ }>]>, "many">>;
8085
8102
  streetAddressForm: z.ZodOptional<z.ZodArray<z.ZodObject<{
8086
8103
  id: z.ZodString;
8087
8104
  required: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
@@ -8169,12 +8186,13 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8169
8186
  }>, "many">>;
8170
8187
  }, "strip", z.ZodTypeAny, {
8171
8188
  lineSeparator?: string | undefined;
8172
- fields?: {
8173
- type: "COUNTRY" | "ADMINISTRATIVE_AREA";
8189
+ fields?: ({
8190
+ type: "COUNTRY";
8174
8191
  id: string;
8175
8192
  required?: boolean | {
8176
8193
  message: TranslationConfig;
8177
8194
  } | undefined;
8195
+ label?: TranslationConfig | undefined;
8178
8196
  conditionals?: ({
8179
8197
  type: "SHOW";
8180
8198
  conditional: JSONSchema;
@@ -8185,7 +8203,34 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8185
8203
  type: "DISPLAY_ON_REVIEW";
8186
8204
  conditional: JSONSchema;
8187
8205
  })[] | undefined;
8188
- }[] | 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;
8189
8234
  streetAddressForm?: {
8190
8235
  type: "TEXT";
8191
8236
  id: string;
@@ -8210,7 +8255,8 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8210
8255
  }[] | undefined;
8211
8256
  }, {
8212
8257
  lineSeparator?: string | undefined;
8213
- fields?: {
8258
+ fields?: ({
8259
+ type: "COUNTRY";
8214
8260
  id: string;
8215
8261
  required?: boolean | {
8216
8262
  message: {
@@ -8219,6 +8265,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8219
8265
  defaultMessage: string;
8220
8266
  };
8221
8267
  } | undefined;
8268
+ label?: {
8269
+ id: string;
8270
+ description: string;
8271
+ defaultMessage: string;
8272
+ } | undefined;
8222
8273
  conditionals?: ({
8223
8274
  type: "SHOW";
8224
8275
  conditional: JSONSchema;
@@ -8229,7 +8280,42 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8229
8280
  type: "DISPLAY_ON_REVIEW";
8230
8281
  conditional: JSONSchema;
8231
8282
  })[] | undefined;
8232
- }[] | 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";
8295
+ id: string;
8296
+ required?: boolean | {
8297
+ message: {
8298
+ id: string;
8299
+ description: string;
8300
+ defaultMessage: string;
8301
+ };
8302
+ } | undefined;
8303
+ label?: {
8304
+ id: string;
8305
+ description: string;
8306
+ defaultMessage: string;
8307
+ } | undefined;
8308
+ conditionals?: ({
8309
+ type: "SHOW";
8310
+ conditional: JSONSchema;
8311
+ } | {
8312
+ type: "ENABLE";
8313
+ conditional: JSONSchema;
8314
+ } | {
8315
+ type: "DISPLAY_ON_REVIEW";
8316
+ conditional: JSONSchema;
8317
+ })[] | undefined;
8318
+ })[] | undefined;
8233
8319
  streetAddressForm?: {
8234
8320
  type: "TEXT";
8235
8321
  id: string;
@@ -8347,12 +8433,13 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8347
8433
  } | undefined;
8348
8434
  configuration?: {
8349
8435
  lineSeparator?: string | undefined;
8350
- fields?: {
8351
- type: "COUNTRY" | "ADMINISTRATIVE_AREA";
8436
+ fields?: ({
8437
+ type: "COUNTRY";
8352
8438
  id: string;
8353
8439
  required?: boolean | {
8354
8440
  message: TranslationConfig;
8355
8441
  } | undefined;
8442
+ label?: TranslationConfig | undefined;
8356
8443
  conditionals?: ({
8357
8444
  type: "SHOW";
8358
8445
  conditional: JSONSchema;
@@ -8363,7 +8450,34 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8363
8450
  type: "DISPLAY_ON_REVIEW";
8364
8451
  conditional: JSONSchema;
8365
8452
  })[] | undefined;
8366
- }[] | 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;
8367
8481
  streetAddressForm?: {
8368
8482
  type: "TEXT";
8369
8483
  id: string;
@@ -8459,7 +8573,8 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8459
8573
  } | undefined;
8460
8574
  configuration?: {
8461
8575
  lineSeparator?: string | undefined;
8462
- fields?: {
8576
+ fields?: ({
8577
+ type: "COUNTRY";
8463
8578
  id: string;
8464
8579
  required?: boolean | {
8465
8580
  message: {
@@ -8468,6 +8583,11 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8468
8583
  defaultMessage: string;
8469
8584
  };
8470
8585
  } | undefined;
8586
+ label?: {
8587
+ id: string;
8588
+ description: string;
8589
+ defaultMessage: string;
8590
+ } | undefined;
8471
8591
  conditionals?: ({
8472
8592
  type: "SHOW";
8473
8593
  conditional: JSONSchema;
@@ -8478,7 +8598,42 @@ declare const Address: z.ZodObject<z.objectUtil.extendShape<{
8478
8598
  type: "DISPLAY_ON_REVIEW";
8479
8599
  conditional: JSONSchema;
8480
8600
  })[] | undefined;
8481
- }[] | 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";
8613
+ id: string;
8614
+ required?: boolean | {
8615
+ message: {
8616
+ id: string;
8617
+ description: string;
8618
+ defaultMessage: string;
8619
+ };
8620
+ } | undefined;
8621
+ label?: {
8622
+ id: string;
8623
+ description: string;
8624
+ defaultMessage: string;
8625
+ } | undefined;
8626
+ conditionals?: ({
8627
+ type: "SHOW";
8628
+ conditional: JSONSchema;
8629
+ } | {
8630
+ type: "ENABLE";
8631
+ conditional: JSONSchema;
8632
+ } | {
8633
+ type: "DISPLAY_ON_REVIEW";
8634
+ conditional: JSONSchema;
8635
+ })[] | undefined;
8636
+ })[] | undefined;
8482
8637
  streetAddressForm?: {
8483
8638
  type: "TEXT";
8484
8639
  id: string;
@@ -2337,14 +2337,19 @@ var Office = BaseField.extend({
2337
2337
  var DefaultAddressFieldValue = DomesticAddressFieldValue.extend({
2338
2338
  administrativeArea: import_zod17.z.union([UUID, SerializedUserField]).optional()
2339
2339
  });
2340
- var DomesticAddressField = BaseField.pick({
2340
+ var commonDomesticFieldProps = {
2341
2341
  id: true,
2342
- required: true,
2343
- conditionals: true
2344
- }).transform((config) => ({
2345
- ...config,
2346
- type: config.id === "country" ? FieldType.COUNTRY : FieldType.ADMINISTRATIVE_AREA
2347
- })).openapi({ effectType: "input", type: "object" });
2342
+ type: true,
2343
+ label: true,
2344
+ conditionals: true,
2345
+ required: true
2346
+ };
2347
+ var DomesticAddressField = Country.partial().pick({
2348
+ ...commonDomesticFieldProps,
2349
+ optionOverrides: true
2350
+ }).required({ id: true, type: true }).or(
2351
+ AdministrativeArea.partial().pick(commonDomesticFieldProps).required({ id: true, type: true })
2352
+ );
2348
2353
  var Address = BaseField.extend({
2349
2354
  type: import_zod17.z.literal(FieldType.ADDRESS),
2350
2355
  configuration: import_zod17.z.object({
@@ -1843,14 +1843,19 @@ var Office = BaseField.extend({
1843
1843
  var DefaultAddressFieldValue = DomesticAddressFieldValue.extend({
1844
1844
  administrativeArea: import_zod17.z.union([UUID, SerializedUserField]).optional()
1845
1845
  });
1846
- var DomesticAddressField = BaseField.pick({
1846
+ var commonDomesticFieldProps = {
1847
1847
  id: true,
1848
- required: true,
1849
- conditionals: true
1850
- }).transform((config) => ({
1851
- ...config,
1852
- type: config.id === "country" ? FieldType.COUNTRY : FieldType.ADMINISTRATIVE_AREA
1853
- })).openapi({ effectType: "input", type: "object" });
1848
+ type: true,
1849
+ label: true,
1850
+ conditionals: true,
1851
+ required: true
1852
+ };
1853
+ var DomesticAddressField = Country.partial().pick({
1854
+ ...commonDomesticFieldProps,
1855
+ optionOverrides: true
1856
+ }).required({ id: true, type: true }).or(
1857
+ AdministrativeArea.partial().pick(commonDomesticFieldProps).required({ id: true, type: true })
1858
+ );
1854
1859
  var Address = BaseField.extend({
1855
1860
  type: import_zod17.z.literal(FieldType.ADDRESS),
1856
1861
  configuration: import_zod17.z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.12-rc.dcd12a4",
3
+ "version": "1.9.12-rc.ea32f28",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {