@opencrvs/toolkit 1.9.12-rc.d350fab → 1.9.12-rc.e767cdd

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.
@@ -236,6 +236,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
236
236
  options?: {
237
237
  value: string;
238
238
  label: string | import("../commons").TranslationConfig;
239
+ conditionals?: ({
240
+ type: "SHOW";
241
+ conditional: import("../commons").JSONSchema;
242
+ } | {
243
+ type: "ENABLE";
244
+ conditional: import("../commons").JSONSchema;
245
+ })[] | undefined;
239
246
  }[] | undefined;
240
247
  label?: import("../commons").TranslationConfig | undefined;
241
248
  conditionals?: ({
@@ -264,6 +271,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
264
271
  options?: {
265
272
  value: string;
266
273
  label: string | import("../commons").TranslationConfig;
274
+ conditionals?: ({
275
+ type: "SHOW";
276
+ conditional: import("../commons").JSONSchema;
277
+ } | {
278
+ type: "ENABLE";
279
+ conditional: import("../commons").JSONSchema;
280
+ })[] | undefined;
267
281
  }[] | undefined;
268
282
  label?: import("../commons").TranslationConfig | undefined;
269
283
  conditionals?: ({
@@ -76,9 +76,17 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
76
76
  description: string;
77
77
  defaultMessage: string;
78
78
  }>]>;
79
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
79
80
  }, "strip", z.ZodTypeAny, {
80
81
  value: string;
81
82
  label: string | TranslationConfig;
83
+ conditionals?: ({
84
+ type: "SHOW";
85
+ conditional: import(".").JSONSchema;
86
+ } | {
87
+ type: "ENABLE";
88
+ conditional: import(".").JSONSchema;
89
+ })[] | undefined;
82
90
  }, {
83
91
  value: string;
84
92
  label: string | {
@@ -86,6 +94,13 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
86
94
  description: string;
87
95
  defaultMessage: string;
88
96
  };
97
+ conditionals?: ({
98
+ type: "SHOW";
99
+ conditional: import(".").JSONSchema;
100
+ } | {
101
+ type: "ENABLE";
102
+ conditional: import(".").JSONSchema;
103
+ })[] | undefined;
89
104
  }>, "many">>;
90
105
  searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
91
106
  id: string;
@@ -125,6 +140,13 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
125
140
  options?: {
126
141
  value: string;
127
142
  label: string | TranslationConfig;
143
+ conditionals?: ({
144
+ type: "SHOW";
145
+ conditional: import(".").JSONSchema;
146
+ } | {
147
+ type: "ENABLE";
148
+ conditional: import(".").JSONSchema;
149
+ })[] | undefined;
128
150
  }[] | undefined;
129
151
  label?: TranslationConfig | undefined;
130
152
  conditionals?: ({
@@ -157,6 +179,13 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
157
179
  description: string;
158
180
  defaultMessage: string;
159
181
  };
182
+ conditionals?: ({
183
+ type: "SHOW";
184
+ conditional: import(".").JSONSchema;
185
+ } | {
186
+ type: "ENABLE";
187
+ conditional: import(".").JSONSchema;
188
+ })[] | undefined;
160
189
  }[] | undefined;
161
190
  label?: {
162
191
  id: string;
@@ -270,9 +299,17 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
270
299
  description: string;
271
300
  defaultMessage: string;
272
301
  }>]>;
302
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
273
303
  }, "strip", z.ZodTypeAny, {
274
304
  value: string;
275
305
  label: string | TranslationConfig;
306
+ conditionals?: ({
307
+ type: "SHOW";
308
+ conditional: import(".").JSONSchema;
309
+ } | {
310
+ type: "ENABLE";
311
+ conditional: import(".").JSONSchema;
312
+ })[] | undefined;
276
313
  }, {
277
314
  value: string;
278
315
  label: string | {
@@ -280,6 +317,13 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
280
317
  description: string;
281
318
  defaultMessage: string;
282
319
  };
320
+ conditionals?: ({
321
+ type: "SHOW";
322
+ conditional: import(".").JSONSchema;
323
+ } | {
324
+ type: "ENABLE";
325
+ conditional: import(".").JSONSchema;
326
+ })[] | undefined;
283
327
  }>, "many">>;
284
328
  searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
285
329
  id: string;
@@ -319,6 +363,13 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
319
363
  options?: {
320
364
  value: string;
321
365
  label: string | TranslationConfig;
366
+ conditionals?: ({
367
+ type: "SHOW";
368
+ conditional: import(".").JSONSchema;
369
+ } | {
370
+ type: "ENABLE";
371
+ conditional: import(".").JSONSchema;
372
+ })[] | undefined;
322
373
  }[] | undefined;
323
374
  label?: TranslationConfig | undefined;
324
375
  conditionals?: ({
@@ -351,6 +402,13 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
351
402
  description: string;
352
403
  defaultMessage: string;
353
404
  };
405
+ conditionals?: ({
406
+ type: "SHOW";
407
+ conditional: import(".").JSONSchema;
408
+ } | {
409
+ type: "ENABLE";
410
+ conditional: import(".").JSONSchema;
411
+ })[] | undefined;
354
412
  }[] | undefined;
355
413
  label?: {
356
414
  id: string;
@@ -447,9 +505,17 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
447
505
  description: string;
448
506
  defaultMessage: string;
449
507
  }>]>;
508
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
450
509
  }, "strip", z.ZodTypeAny, {
451
510
  value: string;
452
511
  label: string | TranslationConfig;
512
+ conditionals?: ({
513
+ type: "SHOW";
514
+ conditional: import(".").JSONSchema;
515
+ } | {
516
+ type: "ENABLE";
517
+ conditional: import(".").JSONSchema;
518
+ })[] | undefined;
453
519
  }, {
454
520
  value: string;
455
521
  label: string | {
@@ -457,6 +523,13 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
457
523
  description: string;
458
524
  defaultMessage: string;
459
525
  };
526
+ conditionals?: ({
527
+ type: "SHOW";
528
+ conditional: import(".").JSONSchema;
529
+ } | {
530
+ type: "ENABLE";
531
+ conditional: import(".").JSONSchema;
532
+ })[] | undefined;
460
533
  }>, "many">>;
461
534
  searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
462
535
  id: string;
@@ -496,6 +569,13 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
496
569
  options?: {
497
570
  value: string;
498
571
  label: string | TranslationConfig;
572
+ conditionals?: ({
573
+ type: "SHOW";
574
+ conditional: import(".").JSONSchema;
575
+ } | {
576
+ type: "ENABLE";
577
+ conditional: import(".").JSONSchema;
578
+ })[] | undefined;
499
579
  }[] | undefined;
500
580
  label?: TranslationConfig | undefined;
501
581
  conditionals?: ({
@@ -528,6 +608,13 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
528
608
  description: string;
529
609
  defaultMessage: string;
530
610
  };
611
+ conditionals?: ({
612
+ type: "SHOW";
613
+ conditional: import(".").JSONSchema;
614
+ } | {
615
+ type: "ENABLE";
616
+ conditional: import(".").JSONSchema;
617
+ })[] | undefined;
531
618
  }[] | undefined;
532
619
  label?: {
533
620
  id: string;
@@ -623,9 +710,17 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
623
710
  description: string;
624
711
  defaultMessage: string;
625
712
  }>]>;
713
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
626
714
  }, "strip", z.ZodTypeAny, {
627
715
  value: string;
628
716
  label: string | TranslationConfig;
717
+ conditionals?: ({
718
+ type: "SHOW";
719
+ conditional: import(".").JSONSchema;
720
+ } | {
721
+ type: "ENABLE";
722
+ conditional: import(".").JSONSchema;
723
+ })[] | undefined;
629
724
  }, {
630
725
  value: string;
631
726
  label: string | {
@@ -633,6 +728,13 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
633
728
  description: string;
634
729
  defaultMessage: string;
635
730
  };
731
+ conditionals?: ({
732
+ type: "SHOW";
733
+ conditional: import(".").JSONSchema;
734
+ } | {
735
+ type: "ENABLE";
736
+ conditional: import(".").JSONSchema;
737
+ })[] | undefined;
636
738
  }>, "many">>;
637
739
  searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
638
740
  id: string;
@@ -672,6 +774,13 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
672
774
  options?: {
673
775
  value: string;
674
776
  label: string | TranslationConfig;
777
+ conditionals?: ({
778
+ type: "SHOW";
779
+ conditional: import(".").JSONSchema;
780
+ } | {
781
+ type: "ENABLE";
782
+ conditional: import(".").JSONSchema;
783
+ })[] | undefined;
675
784
  }[] | undefined;
676
785
  label?: TranslationConfig | undefined;
677
786
  conditionals?: ({
@@ -704,6 +813,13 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
704
813
  description: string;
705
814
  defaultMessage: string;
706
815
  };
816
+ conditionals?: ({
817
+ type: "SHOW";
818
+ conditional: import(".").JSONSchema;
819
+ } | {
820
+ type: "ENABLE";
821
+ conditional: import(".").JSONSchema;
822
+ })[] | undefined;
707
823
  }[] | undefined;
708
824
  label?: {
709
825
  id: string;
@@ -744,6 +860,13 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
744
860
  options?: {
745
861
  value: string;
746
862
  label: string | TranslationConfig;
863
+ conditionals?: ({
864
+ type: "SHOW";
865
+ conditional: import(".").JSONSchema;
866
+ } | {
867
+ type: "ENABLE";
868
+ conditional: import(".").JSONSchema;
869
+ })[] | undefined;
747
870
  }[] | undefined;
748
871
  label?: TranslationConfig | undefined;
749
872
  conditionals?: ({
@@ -772,6 +895,13 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
772
895
  options?: {
773
896
  value: string;
774
897
  label: string | TranslationConfig;
898
+ conditionals?: ({
899
+ type: "SHOW";
900
+ conditional: import(".").JSONSchema;
901
+ } | {
902
+ type: "ENABLE";
903
+ conditional: import(".").JSONSchema;
904
+ })[] | undefined;
775
905
  }[] | undefined;
776
906
  label?: TranslationConfig | undefined;
777
907
  conditionals?: ({
@@ -804,6 +934,13 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
804
934
  description: string;
805
935
  defaultMessage: string;
806
936
  };
937
+ conditionals?: ({
938
+ type: "SHOW";
939
+ conditional: import(".").JSONSchema;
940
+ } | {
941
+ type: "ENABLE";
942
+ conditional: import(".").JSONSchema;
943
+ })[] | undefined;
807
944
  }[] | undefined;
808
945
  label?: {
809
946
  id: string;
@@ -848,6 +985,13 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
848
985
  description: string;
849
986
  defaultMessage: string;
850
987
  };
988
+ conditionals?: ({
989
+ type: "SHOW";
990
+ conditional: import(".").JSONSchema;
991
+ } | {
992
+ type: "ENABLE";
993
+ conditional: import(".").JSONSchema;
994
+ })[] | undefined;
851
995
  }[] | undefined;
852
996
  label?: {
853
997
  id: string;
@@ -951,9 +1095,17 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
951
1095
  description: string;
952
1096
  defaultMessage: string;
953
1097
  }>]>;
1098
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
954
1099
  }, "strip", z.ZodTypeAny, {
955
1100
  value: string;
956
1101
  label: string | TranslationConfig;
1102
+ conditionals?: ({
1103
+ type: "SHOW";
1104
+ conditional: import(".").JSONSchema;
1105
+ } | {
1106
+ type: "ENABLE";
1107
+ conditional: import(".").JSONSchema;
1108
+ })[] | undefined;
957
1109
  }, {
958
1110
  value: string;
959
1111
  label: string | {
@@ -961,6 +1113,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
961
1113
  description: string;
962
1114
  defaultMessage: string;
963
1115
  };
1116
+ conditionals?: ({
1117
+ type: "SHOW";
1118
+ conditional: import(".").JSONSchema;
1119
+ } | {
1120
+ type: "ENABLE";
1121
+ conditional: import(".").JSONSchema;
1122
+ })[] | undefined;
964
1123
  }>, "many">>;
965
1124
  searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
966
1125
  id: string;
@@ -1000,6 +1159,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1000
1159
  options?: {
1001
1160
  value: string;
1002
1161
  label: string | TranslationConfig;
1162
+ conditionals?: ({
1163
+ type: "SHOW";
1164
+ conditional: import(".").JSONSchema;
1165
+ } | {
1166
+ type: "ENABLE";
1167
+ conditional: import(".").JSONSchema;
1168
+ })[] | undefined;
1003
1169
  }[] | undefined;
1004
1170
  label?: TranslationConfig | undefined;
1005
1171
  conditionals?: ({
@@ -1032,6 +1198,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1032
1198
  description: string;
1033
1199
  defaultMessage: string;
1034
1200
  };
1201
+ conditionals?: ({
1202
+ type: "SHOW";
1203
+ conditional: import(".").JSONSchema;
1204
+ } | {
1205
+ type: "ENABLE";
1206
+ conditional: import(".").JSONSchema;
1207
+ })[] | undefined;
1035
1208
  }[] | undefined;
1036
1209
  label?: {
1037
1210
  id: string;
@@ -1127,9 +1300,17 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1127
1300
  description: string;
1128
1301
  defaultMessage: string;
1129
1302
  }>]>;
1303
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
1130
1304
  }, "strip", z.ZodTypeAny, {
1131
1305
  value: string;
1132
1306
  label: string | TranslationConfig;
1307
+ conditionals?: ({
1308
+ type: "SHOW";
1309
+ conditional: import(".").JSONSchema;
1310
+ } | {
1311
+ type: "ENABLE";
1312
+ conditional: import(".").JSONSchema;
1313
+ })[] | undefined;
1133
1314
  }, {
1134
1315
  value: string;
1135
1316
  label: string | {
@@ -1137,6 +1318,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1137
1318
  description: string;
1138
1319
  defaultMessage: string;
1139
1320
  };
1321
+ conditionals?: ({
1322
+ type: "SHOW";
1323
+ conditional: import(".").JSONSchema;
1324
+ } | {
1325
+ type: "ENABLE";
1326
+ conditional: import(".").JSONSchema;
1327
+ })[] | undefined;
1140
1328
  }>, "many">>;
1141
1329
  searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1142
1330
  id: string;
@@ -1176,6 +1364,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1176
1364
  options?: {
1177
1365
  value: string;
1178
1366
  label: string | TranslationConfig;
1367
+ conditionals?: ({
1368
+ type: "SHOW";
1369
+ conditional: import(".").JSONSchema;
1370
+ } | {
1371
+ type: "ENABLE";
1372
+ conditional: import(".").JSONSchema;
1373
+ })[] | undefined;
1179
1374
  }[] | undefined;
1180
1375
  label?: TranslationConfig | undefined;
1181
1376
  conditionals?: ({
@@ -1208,6 +1403,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1208
1403
  description: string;
1209
1404
  defaultMessage: string;
1210
1405
  };
1406
+ conditionals?: ({
1407
+ type: "SHOW";
1408
+ conditional: import(".").JSONSchema;
1409
+ } | {
1410
+ type: "ENABLE";
1411
+ conditional: import(".").JSONSchema;
1412
+ })[] | undefined;
1211
1413
  }[] | undefined;
1212
1414
  label?: {
1213
1415
  id: string;
@@ -1248,6 +1450,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1248
1450
  options?: {
1249
1451
  value: string;
1250
1452
  label: string | TranslationConfig;
1453
+ conditionals?: ({
1454
+ type: "SHOW";
1455
+ conditional: import(".").JSONSchema;
1456
+ } | {
1457
+ type: "ENABLE";
1458
+ conditional: import(".").JSONSchema;
1459
+ })[] | undefined;
1251
1460
  }[] | undefined;
1252
1461
  label?: TranslationConfig | undefined;
1253
1462
  conditionals?: ({
@@ -1276,6 +1485,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1276
1485
  options?: {
1277
1486
  value: string;
1278
1487
  label: string | TranslationConfig;
1488
+ conditionals?: ({
1489
+ type: "SHOW";
1490
+ conditional: import(".").JSONSchema;
1491
+ } | {
1492
+ type: "ENABLE";
1493
+ conditional: import(".").JSONSchema;
1494
+ })[] | undefined;
1279
1495
  }[] | undefined;
1280
1496
  label?: TranslationConfig | undefined;
1281
1497
  conditionals?: ({
@@ -1308,6 +1524,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1308
1524
  description: string;
1309
1525
  defaultMessage: string;
1310
1526
  };
1527
+ conditionals?: ({
1528
+ type: "SHOW";
1529
+ conditional: import(".").JSONSchema;
1530
+ } | {
1531
+ type: "ENABLE";
1532
+ conditional: import(".").JSONSchema;
1533
+ })[] | undefined;
1311
1534
  }[] | undefined;
1312
1535
  label?: {
1313
1536
  id: string;
@@ -1352,6 +1575,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1352
1575
  description: string;
1353
1576
  defaultMessage: string;
1354
1577
  };
1578
+ conditionals?: ({
1579
+ type: "SHOW";
1580
+ conditional: import(".").JSONSchema;
1581
+ } | {
1582
+ type: "ENABLE";
1583
+ conditional: import(".").JSONSchema;
1584
+ })[] | undefined;
1355
1585
  }[] | undefined;
1356
1586
  label?: {
1357
1587
  id: string;
@@ -1395,6 +1625,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1395
1625
  options?: {
1396
1626
  value: string;
1397
1627
  label: string | TranslationConfig;
1628
+ conditionals?: ({
1629
+ type: "SHOW";
1630
+ conditional: import(".").JSONSchema;
1631
+ } | {
1632
+ type: "ENABLE";
1633
+ conditional: import(".").JSONSchema;
1634
+ })[] | undefined;
1398
1635
  }[] | undefined;
1399
1636
  label?: TranslationConfig | undefined;
1400
1637
  conditionals?: ({
@@ -1423,6 +1660,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1423
1660
  options?: {
1424
1661
  value: string;
1425
1662
  label: string | TranslationConfig;
1663
+ conditionals?: ({
1664
+ type: "SHOW";
1665
+ conditional: import(".").JSONSchema;
1666
+ } | {
1667
+ type: "ENABLE";
1668
+ conditional: import(".").JSONSchema;
1669
+ })[] | undefined;
1426
1670
  }[] | undefined;
1427
1671
  label?: TranslationConfig | undefined;
1428
1672
  conditionals?: ({
@@ -1462,6 +1706,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1462
1706
  description: string;
1463
1707
  defaultMessage: string;
1464
1708
  };
1709
+ conditionals?: ({
1710
+ type: "SHOW";
1711
+ conditional: import(".").JSONSchema;
1712
+ } | {
1713
+ type: "ENABLE";
1714
+ conditional: import(".").JSONSchema;
1715
+ })[] | undefined;
1465
1716
  }[] | undefined;
1466
1717
  label?: {
1467
1718
  id: string;
@@ -1506,6 +1757,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1506
1757
  description: string;
1507
1758
  defaultMessage: string;
1508
1759
  };
1760
+ conditionals?: ({
1761
+ type: "SHOW";
1762
+ conditional: import(".").JSONSchema;
1763
+ } | {
1764
+ type: "ENABLE";
1765
+ conditional: import(".").JSONSchema;
1766
+ })[] | undefined;
1509
1767
  }[] | undefined;
1510
1768
  label?: {
1511
1769
  id: string;
@@ -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;
@@ -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;
@@ -6986,9 +7088,17 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
6986
7088
  description: string;
6987
7089
  defaultMessage: string;
6988
7090
  }>]>;
7091
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
6989
7092
  }, "strip", z.ZodTypeAny, {
6990
7093
  value: string;
6991
7094
  label: string | TranslationConfig;
7095
+ conditionals?: ({
7096
+ type: "SHOW";
7097
+ conditional: JSONSchema;
7098
+ } | {
7099
+ type: "ENABLE";
7100
+ conditional: JSONSchema;
7101
+ })[] | undefined;
6992
7102
  }, {
6993
7103
  value: string;
6994
7104
  label: string | {
@@ -6996,6 +7106,13 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
6996
7106
  description: string;
6997
7107
  defaultMessage: string;
6998
7108
  };
7109
+ conditionals?: ({
7110
+ type: "SHOW";
7111
+ conditional: JSONSchema;
7112
+ } | {
7113
+ type: "ENABLE";
7114
+ conditional: JSONSchema;
7115
+ })[] | undefined;
6999
7116
  }>, "many">;
7000
7117
  defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
7001
7118
  path: z.ZodEffects<z.ZodString, string, string>;
@@ -7063,6 +7180,13 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
7063
7180
  options: {
7064
7181
  value: string;
7065
7182
  label: string | TranslationConfig;
7183
+ conditionals?: ({
7184
+ type: "SHOW";
7185
+ conditional: JSONSchema;
7186
+ } | {
7187
+ type: "ENABLE";
7188
+ conditional: JSONSchema;
7189
+ })[] | undefined;
7066
7190
  }[];
7067
7191
  label: TranslationConfig;
7068
7192
  configuration: {
@@ -7128,6 +7252,13 @@ declare const FileUploadWithOptions: z.ZodObject<z.objectUtil.extendShape<{
7128
7252
  description: string;
7129
7253
  defaultMessage: string;
7130
7254
  };
7255
+ conditionals?: ({
7256
+ type: "SHOW";
7257
+ conditional: JSONSchema;
7258
+ } | {
7259
+ type: "ENABLE";
7260
+ conditional: JSONSchema;
7261
+ })[] | undefined;
7131
7262
  }[];
7132
7263
  label: {
7133
7264
  id: string;
@@ -12744,9 +12875,17 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12744
12875
  description: string;
12745
12876
  defaultMessage: string;
12746
12877
  }>]>;
12878
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
12747
12879
  }, "strip", z.ZodTypeAny, {
12748
12880
  value: string;
12749
12881
  label: string | TranslationConfig;
12882
+ conditionals?: ({
12883
+ type: "SHOW";
12884
+ conditional: JSONSchema;
12885
+ } | {
12886
+ type: "ENABLE";
12887
+ conditional: JSONSchema;
12888
+ })[] | undefined;
12750
12889
  }, {
12751
12890
  value: string;
12752
12891
  label: string | {
@@ -12754,6 +12893,13 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12754
12893
  description: string;
12755
12894
  defaultMessage: string;
12756
12895
  };
12896
+ conditionals?: ({
12897
+ type: "SHOW";
12898
+ conditional: JSONSchema;
12899
+ } | {
12900
+ type: "ENABLE";
12901
+ conditional: JSONSchema;
12902
+ })[] | undefined;
12757
12903
  }>, "many">;
12758
12904
  defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
12759
12905
  path: z.ZodEffects<z.ZodString, string, string>;
@@ -12821,6 +12967,13 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12821
12967
  options: {
12822
12968
  value: string;
12823
12969
  label: string | TranslationConfig;
12970
+ conditionals?: ({
12971
+ type: "SHOW";
12972
+ conditional: JSONSchema;
12973
+ } | {
12974
+ type: "ENABLE";
12975
+ conditional: JSONSchema;
12976
+ })[] | undefined;
12824
12977
  }[];
12825
12978
  label: TranslationConfig;
12826
12979
  configuration: {
@@ -12886,6 +13039,13 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
12886
13039
  description: string;
12887
13040
  defaultMessage: string;
12888
13041
  };
13042
+ conditionals?: ({
13043
+ type: "SHOW";
13044
+ conditional: JSONSchema;
13045
+ } | {
13046
+ type: "ENABLE";
13047
+ conditional: JSONSchema;
13048
+ })[] | undefined;
12889
13049
  }[];
12890
13050
  label: {
12891
13051
  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?: ({
@@ -554,6 +554,13 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
554
554
  options?: {
555
555
  value: string;
556
556
  label: string | import("./TranslationConfig").TranslationConfig;
557
+ conditionals?: ({
558
+ type: "SHOW";
559
+ conditional: import(".").JSONSchema;
560
+ } | {
561
+ type: "ENABLE";
562
+ conditional: import(".").JSONSchema;
563
+ })[] | undefined;
557
564
  }[] | undefined;
558
565
  label?: import("./TranslationConfig").TranslationConfig | undefined;
559
566
  conditionals?: ({
@@ -582,6 +589,13 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
582
589
  options?: {
583
590
  value: string;
584
591
  label: string | import("./TranslationConfig").TranslationConfig;
592
+ conditionals?: ({
593
+ type: "SHOW";
594
+ conditional: import(".").JSONSchema;
595
+ } | {
596
+ type: "ENABLE";
597
+ conditional: import(".").JSONSchema;
598
+ })[] | undefined;
585
599
  }[] | undefined;
586
600
  label?: import("./TranslationConfig").TranslationConfig | undefined;
587
601
  conditionals?: ({
@@ -2182,7 +2182,8 @@ var File = BaseField.extend({
2182
2182
  }).describe("File upload");
2183
2183
  var SelectOption = import_zod17.z.object({
2184
2184
  value: import_zod17.z.string().describe("The value of the option"),
2185
- label: import_zod17.z.union([import_zod17.z.string(), TranslationConfig]).describe("The label of the option")
2185
+ label: import_zod17.z.union([import_zod17.z.string(), TranslationConfig]).describe("The label of the option"),
2186
+ conditionals: import_zod17.z.array(ActionConditional).default([]).optional()
2186
2187
  });
2187
2188
  var NumberWithUnitField = BaseField.extend({
2188
2189
  type: import_zod17.z.literal(FieldType.NUMBER_WITH_UNIT),
@@ -1688,7 +1688,8 @@ var File = BaseField.extend({
1688
1688
  }).describe("File upload");
1689
1689
  var SelectOption = import_zod17.z.object({
1690
1690
  value: import_zod17.z.string().describe("The value of the option"),
1691
- label: import_zod17.z.union([import_zod17.z.string(), TranslationConfig]).describe("The label of the option")
1691
+ label: import_zod17.z.union([import_zod17.z.string(), TranslationConfig]).describe("The label of the option"),
1692
+ conditionals: import_zod17.z.array(ActionConditional).default([]).optional()
1692
1693
  });
1693
1694
  var NumberWithUnitField = BaseField.extend({
1694
1695
  type: import_zod17.z.literal(FieldType.NUMBER_WITH_UNIT),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.12-rc.d350fab",
3
+ "version": "1.9.12-rc.e767cdd",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {