@opencrvs/toolkit 1.9.12-rc.8638b48 → 1.9.12-rc.941e086

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.
@@ -350,9 +350,17 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
350
350
  description: string;
351
351
  defaultMessage: string;
352
352
  }>]>;
353
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
353
354
  }, "strip", z.ZodTypeAny, {
354
355
  value: string;
355
356
  label: string | TranslationConfig;
357
+ conditionals?: ({
358
+ type: "SHOW";
359
+ conditional: import("../conditionals/conditionals").JSONSchema;
360
+ } | {
361
+ type: "ENABLE";
362
+ conditional: import("../conditionals/conditionals").JSONSchema;
363
+ })[] | undefined;
356
364
  }, {
357
365
  value: string;
358
366
  label: string | {
@@ -360,6 +368,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
360
368
  description: string;
361
369
  defaultMessage: string;
362
370
  };
371
+ conditionals?: ({
372
+ type: "SHOW";
373
+ conditional: import("../conditionals/conditionals").JSONSchema;
374
+ } | {
375
+ type: "ENABLE";
376
+ conditional: import("../conditionals/conditionals").JSONSchema;
377
+ })[] | undefined;
363
378
  }>, "many">>;
364
379
  searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
365
380
  id: string;
@@ -399,6 +414,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
399
414
  options?: {
400
415
  value: string;
401
416
  label: string | TranslationConfig;
417
+ conditionals?: ({
418
+ type: "SHOW";
419
+ conditional: import("../conditionals/conditionals").JSONSchema;
420
+ } | {
421
+ type: "ENABLE";
422
+ conditional: import("../conditionals/conditionals").JSONSchema;
423
+ })[] | undefined;
402
424
  }[] | undefined;
403
425
  label?: TranslationConfig | undefined;
404
426
  conditionals?: ({
@@ -431,6 +453,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
431
453
  description: string;
432
454
  defaultMessage: string;
433
455
  };
456
+ conditionals?: ({
457
+ type: "SHOW";
458
+ conditional: import("../conditionals/conditionals").JSONSchema;
459
+ } | {
460
+ type: "ENABLE";
461
+ conditional: import("../conditionals/conditionals").JSONSchema;
462
+ })[] | undefined;
434
463
  }[] | undefined;
435
464
  label?: {
436
465
  id: string;
@@ -526,9 +555,17 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
526
555
  description: string;
527
556
  defaultMessage: string;
528
557
  }>]>;
558
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
529
559
  }, "strip", z.ZodTypeAny, {
530
560
  value: string;
531
561
  label: string | TranslationConfig;
562
+ conditionals?: ({
563
+ type: "SHOW";
564
+ conditional: import("../conditionals/conditionals").JSONSchema;
565
+ } | {
566
+ type: "ENABLE";
567
+ conditional: import("../conditionals/conditionals").JSONSchema;
568
+ })[] | undefined;
532
569
  }, {
533
570
  value: string;
534
571
  label: string | {
@@ -536,6 +573,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
536
573
  description: string;
537
574
  defaultMessage: string;
538
575
  };
576
+ conditionals?: ({
577
+ type: "SHOW";
578
+ conditional: import("../conditionals/conditionals").JSONSchema;
579
+ } | {
580
+ type: "ENABLE";
581
+ conditional: import("../conditionals/conditionals").JSONSchema;
582
+ })[] | undefined;
539
583
  }>, "many">>;
540
584
  searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
541
585
  id: string;
@@ -575,6 +619,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
575
619
  options?: {
576
620
  value: string;
577
621
  label: string | TranslationConfig;
622
+ conditionals?: ({
623
+ type: "SHOW";
624
+ conditional: import("../conditionals/conditionals").JSONSchema;
625
+ } | {
626
+ type: "ENABLE";
627
+ conditional: import("../conditionals/conditionals").JSONSchema;
628
+ })[] | undefined;
578
629
  }[] | undefined;
579
630
  label?: TranslationConfig | undefined;
580
631
  conditionals?: ({
@@ -607,6 +658,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
607
658
  description: string;
608
659
  defaultMessage: string;
609
660
  };
661
+ conditionals?: ({
662
+ type: "SHOW";
663
+ conditional: import("../conditionals/conditionals").JSONSchema;
664
+ } | {
665
+ type: "ENABLE";
666
+ conditional: import("../conditionals/conditionals").JSONSchema;
667
+ })[] | undefined;
610
668
  }[] | undefined;
611
669
  label?: {
612
670
  id: string;
@@ -647,6 +705,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
647
705
  options?: {
648
706
  value: string;
649
707
  label: string | TranslationConfig;
708
+ conditionals?: ({
709
+ type: "SHOW";
710
+ conditional: import("../conditionals/conditionals").JSONSchema;
711
+ } | {
712
+ type: "ENABLE";
713
+ conditional: import("../conditionals/conditionals").JSONSchema;
714
+ })[] | undefined;
650
715
  }[] | undefined;
651
716
  label?: TranslationConfig | undefined;
652
717
  conditionals?: ({
@@ -675,6 +740,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
675
740
  options?: {
676
741
  value: string;
677
742
  label: string | TranslationConfig;
743
+ conditionals?: ({
744
+ type: "SHOW";
745
+ conditional: import("../conditionals/conditionals").JSONSchema;
746
+ } | {
747
+ type: "ENABLE";
748
+ conditional: import("../conditionals/conditionals").JSONSchema;
749
+ })[] | undefined;
678
750
  }[] | undefined;
679
751
  label?: TranslationConfig | undefined;
680
752
  conditionals?: ({
@@ -707,6 +779,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
707
779
  description: string;
708
780
  defaultMessage: string;
709
781
  };
782
+ conditionals?: ({
783
+ type: "SHOW";
784
+ conditional: import("../conditionals/conditionals").JSONSchema;
785
+ } | {
786
+ type: "ENABLE";
787
+ conditional: import("../conditionals/conditionals").JSONSchema;
788
+ })[] | undefined;
710
789
  }[] | undefined;
711
790
  label?: {
712
791
  id: string;
@@ -751,6 +830,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
751
830
  description: string;
752
831
  defaultMessage: string;
753
832
  };
833
+ conditionals?: ({
834
+ type: "SHOW";
835
+ conditional: import("../conditionals/conditionals").JSONSchema;
836
+ } | {
837
+ type: "ENABLE";
838
+ conditional: import("../conditionals/conditionals").JSONSchema;
839
+ })[] | undefined;
754
840
  }[] | undefined;
755
841
  label?: {
756
842
  id: string;
@@ -794,6 +880,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
794
880
  options?: {
795
881
  value: string;
796
882
  label: string | TranslationConfig;
883
+ conditionals?: ({
884
+ type: "SHOW";
885
+ conditional: import("../conditionals/conditionals").JSONSchema;
886
+ } | {
887
+ type: "ENABLE";
888
+ conditional: import("../conditionals/conditionals").JSONSchema;
889
+ })[] | undefined;
797
890
  }[] | undefined;
798
891
  label?: TranslationConfig | undefined;
799
892
  conditionals?: ({
@@ -822,6 +915,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
822
915
  options?: {
823
916
  value: string;
824
917
  label: string | TranslationConfig;
918
+ conditionals?: ({
919
+ type: "SHOW";
920
+ conditional: import("../conditionals/conditionals").JSONSchema;
921
+ } | {
922
+ type: "ENABLE";
923
+ conditional: import("../conditionals/conditionals").JSONSchema;
924
+ })[] | undefined;
825
925
  }[] | undefined;
826
926
  label?: TranslationConfig | undefined;
827
927
  conditionals?: ({
@@ -861,6 +961,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
861
961
  description: string;
862
962
  defaultMessage: string;
863
963
  };
964
+ conditionals?: ({
965
+ type: "SHOW";
966
+ conditional: import("../conditionals/conditionals").JSONSchema;
967
+ } | {
968
+ type: "ENABLE";
969
+ conditional: import("../conditionals/conditionals").JSONSchema;
970
+ })[] | undefined;
864
971
  }[] | undefined;
865
972
  label?: {
866
973
  id: string;
@@ -905,6 +1012,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
905
1012
  description: string;
906
1013
  defaultMessage: string;
907
1014
  };
1015
+ conditionals?: ({
1016
+ type: "SHOW";
1017
+ conditional: import("../conditionals/conditionals").JSONSchema;
1018
+ } | {
1019
+ type: "ENABLE";
1020
+ conditional: import("../conditionals/conditionals").JSONSchema;
1021
+ })[] | undefined;
908
1022
  }[] | undefined;
909
1023
  label?: {
910
1024
  id: string;
@@ -1109,6 +1223,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1109
1223
  options?: {
1110
1224
  value: string;
1111
1225
  label: string | TranslationConfig;
1226
+ conditionals?: ({
1227
+ type: "SHOW";
1228
+ conditional: import("../conditionals/conditionals").JSONSchema;
1229
+ } | {
1230
+ type: "ENABLE";
1231
+ conditional: import("../conditionals/conditionals").JSONSchema;
1232
+ })[] | undefined;
1112
1233
  }[] | undefined;
1113
1234
  label?: TranslationConfig | undefined;
1114
1235
  conditionals?: ({
@@ -1137,6 +1258,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1137
1258
  options?: {
1138
1259
  value: string;
1139
1260
  label: string | TranslationConfig;
1261
+ conditionals?: ({
1262
+ type: "SHOW";
1263
+ conditional: import("../conditionals/conditionals").JSONSchema;
1264
+ } | {
1265
+ type: "ENABLE";
1266
+ conditional: import("../conditionals/conditionals").JSONSchema;
1267
+ })[] | undefined;
1140
1268
  }[] | undefined;
1141
1269
  label?: TranslationConfig | undefined;
1142
1270
  conditionals?: ({
@@ -1519,6 +1647,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1519
1647
  description: string;
1520
1648
  defaultMessage: string;
1521
1649
  };
1650
+ conditionals?: ({
1651
+ type: "SHOW";
1652
+ conditional: import("../conditionals/conditionals").JSONSchema;
1653
+ } | {
1654
+ type: "ENABLE";
1655
+ conditional: import("../conditionals/conditionals").JSONSchema;
1656
+ })[] | undefined;
1522
1657
  }[] | undefined;
1523
1658
  label?: {
1524
1659
  id: string;
@@ -1563,6 +1698,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1563
1698
  description: string;
1564
1699
  defaultMessage: string;
1565
1700
  };
1701
+ conditionals?: ({
1702
+ type: "SHOW";
1703
+ conditional: import("../conditionals/conditionals").JSONSchema;
1704
+ } | {
1705
+ type: "ENABLE";
1706
+ conditional: import("../conditionals/conditionals").JSONSchema;
1707
+ })[] | undefined;
1566
1708
  }[] | undefined;
1567
1709
  label?: {
1568
1710
  id: string;
@@ -1767,6 +1909,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1767
1909
  options?: {
1768
1910
  value: string;
1769
1911
  label: string | TranslationConfig;
1912
+ conditionals?: ({
1913
+ type: "SHOW";
1914
+ conditional: import("../conditionals/conditionals").JSONSchema;
1915
+ } | {
1916
+ type: "ENABLE";
1917
+ conditional: import("../conditionals/conditionals").JSONSchema;
1918
+ })[] | undefined;
1770
1919
  }[] | undefined;
1771
1920
  label?: TranslationConfig | undefined;
1772
1921
  conditionals?: ({
@@ -1795,6 +1944,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1795
1944
  options?: {
1796
1945
  value: string;
1797
1946
  label: string | TranslationConfig;
1947
+ conditionals?: ({
1948
+ type: "SHOW";
1949
+ conditional: import("../conditionals/conditionals").JSONSchema;
1950
+ } | {
1951
+ type: "ENABLE";
1952
+ conditional: import("../conditionals/conditionals").JSONSchema;
1953
+ })[] | undefined;
1798
1954
  }[] | undefined;
1799
1955
  label?: TranslationConfig | undefined;
1800
1956
  conditionals?: ({
@@ -2177,6 +2333,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
2177
2333
  description: string;
2178
2334
  defaultMessage: string;
2179
2335
  };
2336
+ conditionals?: ({
2337
+ type: "SHOW";
2338
+ conditional: import("../conditionals/conditionals").JSONSchema;
2339
+ } | {
2340
+ type: "ENABLE";
2341
+ conditional: import("../conditionals/conditionals").JSONSchema;
2342
+ })[] | undefined;
2180
2343
  }[] | undefined;
2181
2344
  label?: {
2182
2345
  id: string;
@@ -2221,6 +2384,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
2221
2384
  description: string;
2222
2385
  defaultMessage: string;
2223
2386
  };
2387
+ conditionals?: ({
2388
+ type: "SHOW";
2389
+ conditional: import("../conditionals/conditionals").JSONSchema;
2390
+ } | {
2391
+ type: "ENABLE";
2392
+ conditional: import("../conditionals/conditionals").JSONSchema;
2393
+ })[] | undefined;
2224
2394
  }[] | undefined;
2225
2395
  label?: {
2226
2396
  id: string;