@opencrvs/toolkit 2.2.0-rc.9042a13 → 2.2.0-rc.90ed9cd

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.
@@ -1352,6 +1352,12 @@ var AnyOfStatus = import_v4.z.object({
1352
1352
  }).meta({
1353
1353
  id: "AnyOfStatus"
1354
1354
  });
1355
+ var NoneOfStatus = import_v4.z.object({
1356
+ type: import_v4.z.literal("noneOf"),
1357
+ terms: import_v4.z.array(EventStatus)
1358
+ }).meta({
1359
+ id: "NoneOfStatus"
1360
+ });
1355
1361
  var Range = import_v4.z.object({
1356
1362
  type: import_v4.z.literal("range"),
1357
1363
  gte: import_v4.z.string(),
@@ -1392,7 +1398,7 @@ var QueryInput = import_v4.z.lazy(
1392
1398
  var QueryExpression = import_v4.z.object({
1393
1399
  id: import_v4.z.optional(import_v4.z.string()),
1394
1400
  eventType: import_v4.z.string(),
1395
- status: import_v4.z.optional(import_v4.z.union([AnyOfStatus, ExactStatus])),
1401
+ status: import_v4.z.optional(import_v4.z.union([AnyOfStatus, NoneOfStatus, ExactStatus])),
1396
1402
  createdAt: import_v4.z.optional(DateCondition),
1397
1403
  updatedAt: import_v4.z.optional(DateCondition),
1398
1404
  "legalStatuses.DECLARED.createdAtLocation": import_v4.z.optional(Within).nullable(),
@@ -9897,6 +9897,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9897
9897
  status?: {
9898
9898
  type: "anyOf";
9899
9899
  terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
9900
+ } | {
9901
+ type: "noneOf";
9902
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
9900
9903
  } | {
9901
9904
  type: "exact";
9902
9905
  term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
@@ -10043,6 +10046,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10043
10046
  status?: {
10044
10047
  type: "anyOf";
10045
10048
  terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
10049
+ } | {
10050
+ type: "noneOf";
10051
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
10046
10052
  } | {
10047
10053
  type: "exact";
10048
10054
  term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
@@ -53,6 +53,16 @@ export declare const SerializedQueryExpression: z.ZodObject<{
53
53
  REGISTERED: "REGISTERED";
54
54
  REVOKED: "REVOKED";
55
55
  }>>;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ type: z.ZodLiteral<"noneOf">;
58
+ terms: z.ZodArray<z.ZodEnum<{
59
+ ARCHIVED: "ARCHIVED";
60
+ CREATED: "CREATED";
61
+ DECLARED: "DECLARED";
62
+ NOTIFIED: "NOTIFIED";
63
+ REGISTERED: "REGISTERED";
64
+ REVOKED: "REVOKED";
65
+ }>>;
56
66
  }, z.core.$strip>, z.ZodObject<{
57
67
  type: z.ZodLiteral<"exact">;
58
68
  term: z.ZodEnum<{
@@ -393,6 +403,16 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
393
403
  REGISTERED: "REGISTERED";
394
404
  REVOKED: "REVOKED";
395
405
  }>>;
406
+ }, z.core.$strip>, z.ZodObject<{
407
+ type: z.ZodLiteral<"noneOf">;
408
+ terms: z.ZodArray<z.ZodEnum<{
409
+ ARCHIVED: "ARCHIVED";
410
+ CREATED: "CREATED";
411
+ DECLARED: "DECLARED";
412
+ NOTIFIED: "NOTIFIED";
413
+ REGISTERED: "REGISTERED";
414
+ REVOKED: "REVOKED";
415
+ }>>;
396
416
  }, z.core.$strip>, z.ZodObject<{
397
417
  type: z.ZodLiteral<"exact">;
398
418
  term: z.ZodEnum<{
@@ -732,6 +752,16 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
732
752
  REGISTERED: "REGISTERED";
733
753
  REVOKED: "REVOKED";
734
754
  }>>;
755
+ }, z.core.$strip>, z.ZodObject<{
756
+ type: z.ZodLiteral<"noneOf">;
757
+ terms: z.ZodArray<z.ZodEnum<{
758
+ ARCHIVED: "ARCHIVED";
759
+ CREATED: "CREATED";
760
+ DECLARED: "DECLARED";
761
+ NOTIFIED: "NOTIFIED";
762
+ REGISTERED: "REGISTERED";
763
+ REVOKED: "REVOKED";
764
+ }>>;
735
765
  }, z.core.$strip>, z.ZodObject<{
736
766
  type: z.ZodLiteral<"exact">;
737
767
  term: z.ZodEnum<{
@@ -1071,6 +1101,16 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1071
1101
  REGISTERED: "REGISTERED";
1072
1102
  REVOKED: "REVOKED";
1073
1103
  }>>;
1104
+ }, z.core.$strip>, z.ZodObject<{
1105
+ type: z.ZodLiteral<"noneOf">;
1106
+ terms: z.ZodArray<z.ZodEnum<{
1107
+ ARCHIVED: "ARCHIVED";
1108
+ CREATED: "CREATED";
1109
+ DECLARED: "DECLARED";
1110
+ NOTIFIED: "NOTIFIED";
1111
+ REGISTERED: "REGISTERED";
1112
+ REVOKED: "REVOKED";
1113
+ }>>;
1074
1114
  }, z.core.$strip>, z.ZodObject<{
1075
1115
  type: z.ZodLiteral<"exact">;
1076
1116
  term: z.ZodEnum<{
@@ -1409,6 +1449,16 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1409
1449
  REGISTERED: "REGISTERED";
1410
1450
  REVOKED: "REVOKED";
1411
1451
  }>>;
1452
+ }, z.core.$strip>, z.ZodObject<{
1453
+ type: z.ZodLiteral<"noneOf">;
1454
+ terms: z.ZodArray<z.ZodEnum<{
1455
+ ARCHIVED: "ARCHIVED";
1456
+ CREATED: "CREATED";
1457
+ DECLARED: "DECLARED";
1458
+ NOTIFIED: "NOTIFIED";
1459
+ REGISTERED: "REGISTERED";
1460
+ REVOKED: "REVOKED";
1461
+ }>>;
1412
1462
  }, z.core.$strip>, z.ZodObject<{
1413
1463
  type: z.ZodLiteral<"exact">;
1414
1464
  term: z.ZodEnum<{
@@ -1748,6 +1798,16 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
1748
1798
  REGISTERED: "REGISTERED";
1749
1799
  REVOKED: "REVOKED";
1750
1800
  }>>;
1801
+ }, z.core.$strip>, z.ZodObject<{
1802
+ type: z.ZodLiteral<"noneOf">;
1803
+ terms: z.ZodArray<z.ZodEnum<{
1804
+ ARCHIVED: "ARCHIVED";
1805
+ CREATED: "CREATED";
1806
+ DECLARED: "DECLARED";
1807
+ NOTIFIED: "NOTIFIED";
1808
+ REGISTERED: "REGISTERED";
1809
+ REVOKED: "REVOKED";
1810
+ }>>;
1751
1811
  }, z.core.$strip>, z.ZodObject<{
1752
1812
  type: z.ZodLiteral<"exact">;
1753
1813
  term: z.ZodEnum<{
@@ -133,6 +133,17 @@ export declare const AnyOfStatus: z.ZodObject<{
133
133
  REVOKED: "REVOKED";
134
134
  }>>;
135
135
  }, z.core.$strip>;
136
+ export declare const NoneOfStatus: z.ZodObject<{
137
+ type: z.ZodLiteral<"noneOf">;
138
+ terms: z.ZodArray<z.ZodEnum<{
139
+ ARCHIVED: "ARCHIVED";
140
+ CREATED: "CREATED";
141
+ DECLARED: "DECLARED";
142
+ NOTIFIED: "NOTIFIED";
143
+ REGISTERED: "REGISTERED";
144
+ REVOKED: "REVOKED";
145
+ }>>;
146
+ }, z.core.$strip>;
136
147
  export declare const Range: z.ZodObject<{
137
148
  type: z.ZodLiteral<"range">;
138
149
  gte: z.ZodString;
@@ -183,6 +194,16 @@ export declare const QueryExpression: z.ZodObject<{
183
194
  REGISTERED: "REGISTERED";
184
195
  REVOKED: "REVOKED";
185
196
  }>>;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ type: z.ZodLiteral<"noneOf">;
199
+ terms: z.ZodArray<z.ZodEnum<{
200
+ ARCHIVED: "ARCHIVED";
201
+ CREATED: "CREATED";
202
+ DECLARED: "DECLARED";
203
+ NOTIFIED: "NOTIFIED";
204
+ REGISTERED: "REGISTERED";
205
+ REVOKED: "REVOKED";
206
+ }>>;
186
207
  }, z.core.$strip>, z.ZodObject<{
187
208
  type: z.ZodLiteral<"exact">;
188
209
  term: z.ZodEnum<{
@@ -29,6 +29,16 @@ export declare const WorkqueueConfig: z.ZodObject<{
29
29
  REGISTERED: "REGISTERED";
30
30
  REVOKED: "REVOKED";
31
31
  }>>;
32
+ }, z.core.$strip>, z.ZodObject<{
33
+ type: z.ZodLiteral<"noneOf">;
34
+ terms: z.ZodArray<z.ZodEnum<{
35
+ ARCHIVED: "ARCHIVED";
36
+ CREATED: "CREATED";
37
+ DECLARED: "DECLARED";
38
+ NOTIFIED: "NOTIFIED";
39
+ REGISTERED: "REGISTERED";
40
+ REVOKED: "REVOKED";
41
+ }>>;
32
42
  }, z.core.$strip>, z.ZodObject<{
33
43
  type: z.ZodLiteral<"exact">;
34
44
  term: z.ZodEnum<{
@@ -368,6 +378,16 @@ export declare const WorkqueueConfig: z.ZodObject<{
368
378
  REGISTERED: "REGISTERED";
369
379
  REVOKED: "REVOKED";
370
380
  }>>;
381
+ }, z.core.$strip>, z.ZodObject<{
382
+ type: z.ZodLiteral<"noneOf">;
383
+ terms: z.ZodArray<z.ZodEnum<{
384
+ ARCHIVED: "ARCHIVED";
385
+ CREATED: "CREATED";
386
+ DECLARED: "DECLARED";
387
+ NOTIFIED: "NOTIFIED";
388
+ REGISTERED: "REGISTERED";
389
+ REVOKED: "REVOKED";
390
+ }>>;
371
391
  }, z.core.$strip>, z.ZodObject<{
372
392
  type: z.ZodLiteral<"exact">;
373
393
  term: z.ZodEnum<{
@@ -1138,6 +1158,16 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1138
1158
  REGISTERED: "REGISTERED";
1139
1159
  REVOKED: "REVOKED";
1140
1160
  }>>;
1161
+ }, z.core.$strip>, z.ZodObject<{
1162
+ type: z.ZodLiteral<"noneOf">;
1163
+ terms: z.ZodArray<z.ZodEnum<{
1164
+ ARCHIVED: "ARCHIVED";
1165
+ CREATED: "CREATED";
1166
+ DECLARED: "DECLARED";
1167
+ NOTIFIED: "NOTIFIED";
1168
+ REGISTERED: "REGISTERED";
1169
+ REVOKED: "REVOKED";
1170
+ }>>;
1141
1171
  }, z.core.$strip>, z.ZodObject<{
1142
1172
  type: z.ZodLiteral<"exact">;
1143
1173
  term: z.ZodEnum<{
@@ -1476,6 +1506,16 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1476
1506
  REGISTERED: "REGISTERED";
1477
1507
  REVOKED: "REVOKED";
1478
1508
  }>>;
1509
+ }, z.core.$strip>, z.ZodObject<{
1510
+ type: z.ZodLiteral<"noneOf">;
1511
+ terms: z.ZodArray<z.ZodEnum<{
1512
+ ARCHIVED: "ARCHIVED";
1513
+ CREATED: "CREATED";
1514
+ DECLARED: "DECLARED";
1515
+ NOTIFIED: "NOTIFIED";
1516
+ REGISTERED: "REGISTERED";
1517
+ REVOKED: "REVOKED";
1518
+ }>>;
1479
1519
  }, z.core.$strip>, z.ZodObject<{
1480
1520
  type: z.ZodLiteral<"exact">;
1481
1521
  term: z.ZodEnum<{
@@ -1815,6 +1855,16 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1815
1855
  REGISTERED: "REGISTERED";
1816
1856
  REVOKED: "REVOKED";
1817
1857
  }>>;
1858
+ }, z.core.$strip>, z.ZodObject<{
1859
+ type: z.ZodLiteral<"noneOf">;
1860
+ terms: z.ZodArray<z.ZodEnum<{
1861
+ ARCHIVED: "ARCHIVED";
1862
+ CREATED: "CREATED";
1863
+ DECLARED: "DECLARED";
1864
+ NOTIFIED: "NOTIFIED";
1865
+ REGISTERED: "REGISTERED";
1866
+ REVOKED: "REVOKED";
1867
+ }>>;
1818
1868
  }, z.core.$strip>, z.ZodObject<{
1819
1869
  type: z.ZodLiteral<"exact">;
1820
1870
  term: z.ZodEnum<{
@@ -2162,6 +2212,9 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2162
2212
  } | {
2163
2213
  type: "anyOf";
2164
2214
  terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2215
+ } | {
2216
+ type: "noneOf";
2217
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2165
2218
  } | undefined;
2166
2219
  createdAt?: {
2167
2220
  type: "range";
@@ -2308,6 +2361,9 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
2308
2361
  } | {
2309
2362
  type: "anyOf";
2310
2363
  terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2364
+ } | {
2365
+ type: "noneOf";
2366
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2311
2367
  } | undefined;
2312
2368
  createdAt?: {
2313
2369
  type: "range";
@@ -2487,6 +2543,9 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2487
2543
  } | {
2488
2544
  type: "anyOf";
2489
2545
  terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2546
+ } | {
2547
+ type: "noneOf";
2548
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2490
2549
  } | undefined;
2491
2550
  createdAt?: {
2492
2551
  type: "range";
@@ -2633,6 +2692,9 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
2633
2692
  } | {
2634
2693
  type: "anyOf";
2635
2694
  terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2695
+ } | {
2696
+ type: "noneOf";
2697
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
2636
2698
  } | undefined;
2637
2699
  createdAt?: {
2638
2700
  type: "range";
@@ -180,6 +180,7 @@ __export(events_exports, {
180
180
  NameFieldUpdateValue: () => NameFieldUpdateValue,
181
181
  NameFieldValue: () => NameFieldValue,
182
182
  NonEmptyTextValue: () => NonEmptyTextValue,
183
+ NoneOfStatus: () => NoneOfStatus,
183
184
  NotifyActionInput: () => NotifyActionInput,
184
185
  NumberFieldValue: () => NumberFieldValue,
185
186
  NumberWithUnitFieldUpdateValue: () => NumberWithUnitFieldUpdateValue,
@@ -2259,6 +2260,12 @@ var AnyOfStatus = import_v4.z.object({
2259
2260
  }).meta({
2260
2261
  id: "AnyOfStatus"
2261
2262
  });
2263
+ var NoneOfStatus = import_v4.z.object({
2264
+ type: import_v4.z.literal("noneOf"),
2265
+ terms: import_v4.z.array(EventStatus)
2266
+ }).meta({
2267
+ id: "NoneOfStatus"
2268
+ });
2262
2269
  var Range = import_v4.z.object({
2263
2270
  type: import_v4.z.literal("range"),
2264
2271
  gte: import_v4.z.string(),
@@ -2299,7 +2306,7 @@ var QueryInput = import_v4.z.lazy(
2299
2306
  var QueryExpression = import_v4.z.object({
2300
2307
  id: import_v4.z.optional(import_v4.z.string()),
2301
2308
  eventType: import_v4.z.string(),
2302
- status: import_v4.z.optional(import_v4.z.union([AnyOfStatus, ExactStatus])),
2309
+ status: import_v4.z.optional(import_v4.z.union([AnyOfStatus, NoneOfStatus, ExactStatus])),
2303
2310
  createdAt: import_v4.z.optional(DateCondition),
2304
2311
  updatedAt: import_v4.z.optional(DateCondition),
2305
2312
  "legalStatuses.DECLARED.createdAtLocation": import_v4.z.optional(Within).nullable(),
@@ -7261,7 +7268,7 @@ var SerializableWithin = z37.object({
7261
7268
  });
7262
7269
  var SerializedQueryExpression = z37.object({
7263
7270
  eventType: z37.string(),
7264
- status: z37.optional(z37.union([AnyOfStatus, ExactStatus])),
7271
+ status: z37.optional(z37.union([AnyOfStatus, NoneOfStatus, ExactStatus])),
7265
7272
  createdAt: z37.optional(DateCondition),
7266
7273
  updatedAt: z37.optional(DateCondition),
7267
7274
  "legalStatuses.DECLARED.createdAtLocation": z37.optional(SerializableWithin),
@@ -1655,6 +1655,12 @@ var AnyOfStatus = import_v4.z.object({
1655
1655
  }).meta({
1656
1656
  id: "AnyOfStatus"
1657
1657
  });
1658
+ var NoneOfStatus = import_v4.z.object({
1659
+ type: import_v4.z.literal("noneOf"),
1660
+ terms: import_v4.z.array(EventStatus)
1661
+ }).meta({
1662
+ id: "NoneOfStatus"
1663
+ });
1658
1664
  var Range = import_v4.z.object({
1659
1665
  type: import_v4.z.literal("range"),
1660
1666
  gte: import_v4.z.string(),
@@ -1695,7 +1701,7 @@ var QueryInput = import_v4.z.lazy(
1695
1701
  var QueryExpression = import_v4.z.object({
1696
1702
  id: import_v4.z.optional(import_v4.z.string()),
1697
1703
  eventType: import_v4.z.string(),
1698
- status: import_v4.z.optional(import_v4.z.union([AnyOfStatus, ExactStatus])),
1704
+ status: import_v4.z.optional(import_v4.z.union([AnyOfStatus, NoneOfStatus, ExactStatus])),
1699
1705
  createdAt: import_v4.z.optional(DateCondition),
1700
1706
  updatedAt: import_v4.z.optional(DateCondition),
1701
1707
  "legalStatuses.DECLARED.createdAtLocation": import_v4.z.optional(Within).nullable(),
@@ -4886,7 +4892,7 @@ var SerializableWithin = z37.object({
4886
4892
  });
4887
4893
  var SerializedQueryExpression = z37.object({
4888
4894
  eventType: z37.string(),
4889
- status: z37.optional(z37.union([AnyOfStatus, ExactStatus])),
4895
+ status: z37.optional(z37.union([AnyOfStatus, NoneOfStatus, ExactStatus])),
4890
4896
  createdAt: z37.optional(DateCondition),
4891
4897
  updatedAt: z37.optional(DateCondition),
4892
4898
  "legalStatuses.DECLARED.createdAtLocation": z37.optional(SerializableWithin),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.2.0-rc.9042a13",
3
+ "version": "2.2.0-rc.90ed9cd",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {