@opencrvs/toolkit 1.9.12-rc.8753d72 → 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.
@@ -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;