@opencrvs/toolkit 1.9.12-rc.94eeba2 → 1.9.12-rc.990e21c

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.
@@ -6383,6 +6383,33 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
6383
6383
  }, {
6384
6384
  type: z.ZodLiteral<"COUNTRY">;
6385
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">>;
6386
6413
  }>, "strip", z.ZodTypeAny, {
6387
6414
  type: "COUNTRY";
6388
6415
  id: string;
@@ -6425,6 +6452,16 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
6425
6452
  uncorrectable?: boolean | undefined;
6426
6453
  analytics?: boolean | undefined;
6427
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;
6428
6465
  }, {
6429
6466
  type: "COUNTRY";
6430
6467
  id: string;
@@ -6487,6 +6524,16 @@ declare const Country: z.ZodObject<z.objectUtil.extendShape<{
6487
6524
  uncorrectable?: boolean | undefined;
6488
6525
  analytics?: boolean | undefined;
6489
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;
6490
6537
  }>;
6491
6538
  export type Country = z.infer<typeof Country>;
6492
6539
  export declare const AdministrativeAreas: z.ZodEnum<["ADMIN_STRUCTURE", "HEALTH_FACILITY", "CRVS_OFFICE"]>;
@@ -2286,7 +2286,10 @@ var Checkbox = BaseField.extend({
2286
2286
  }).describe("Boolean checkbox field");
2287
2287
  var Country = BaseField.extend({
2288
2288
  type: import_zod17.z.literal(FieldType.COUNTRY),
2289
- defaultValue: NonEmptyTextValue.optional()
2289
+ defaultValue: NonEmptyTextValue.optional(),
2290
+ optionOverrides: import_zod17.z.array(SelectOption.omit({ label: true })).optional().describe(
2291
+ "Conditionals for specific countries. Countries not listed are always shown and enabled."
2292
+ )
2290
2293
  }).describe("Country select field");
2291
2294
  var AdministrativeAreas = import_zod17.z.enum([
2292
2295
  "ADMIN_STRUCTURE",
@@ -1792,7 +1792,10 @@ var Checkbox = BaseField.extend({
1792
1792
  }).describe("Boolean checkbox field");
1793
1793
  var Country = BaseField.extend({
1794
1794
  type: import_zod17.z.literal(FieldType.COUNTRY),
1795
- defaultValue: NonEmptyTextValue.optional()
1795
+ defaultValue: NonEmptyTextValue.optional(),
1796
+ optionOverrides: import_zod17.z.array(SelectOption.omit({ label: true })).optional().describe(
1797
+ "Conditionals for specific countries. Countries not listed are always shown and enabled."
1798
+ )
1796
1799
  }).describe("Country select field");
1797
1800
  var AdministrativeAreas = import_zod17.z.enum([
1798
1801
  "ADMIN_STRUCTURE",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.12-rc.94eeba2",
3
+ "version": "1.9.12-rc.990e21c",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {