@opencrvs/toolkit 1.8.0-rc.fa49ae3 → 1.8.0-rc.fa564ca

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.
Files changed (31) hide show
  1. package/dist/commons/api/router.d.ts +381 -6649
  2. package/dist/commons/conditionals/conditionals.d.ts +0 -4
  3. package/dist/commons/conditionals/validate.d.ts +0 -6
  4. package/dist/commons/events/ActionConfig.d.ts +6326 -18678
  5. package/dist/commons/events/ActionDocument.d.ts +204 -1713
  6. package/dist/commons/events/ActionInput.d.ts +180 -1380
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +3 -75
  8. package/dist/commons/events/CompositeFieldValue.d.ts +0 -28
  9. package/dist/commons/events/Constants.d.ts +0 -1
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +0 -26
  11. package/dist/commons/events/Draft.d.ts +16 -117
  12. package/dist/commons/events/EventConfig.d.ts +2487 -8364
  13. package/dist/commons/events/EventDocument.d.ts +152 -1096
  14. package/dist/commons/events/EventIndex.d.ts +17 -283
  15. package/dist/commons/events/EventMetadata.d.ts +35 -38
  16. package/dist/commons/events/FieldConfig.d.ts +771 -1597
  17. package/dist/commons/events/FieldType.d.ts +1 -4
  18. package/dist/commons/events/FieldTypeMapping.d.ts +50 -89
  19. package/dist/commons/events/FieldValue.d.ts +5 -41
  20. package/dist/commons/events/FormConfig.d.ts +2444 -7640
  21. package/dist/commons/events/PageConfig.d.ts +1620 -2896
  22. package/dist/commons/events/SummaryConfig.d.ts +5 -0
  23. package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
  24. package/dist/commons/events/WorkqueueConfig.d.ts +24 -346
  25. package/dist/commons/events/defineConfig.d.ts +14 -960
  26. package/dist/commons/events/field.d.ts +0 -4
  27. package/dist/commons/events/test.utils.d.ts +38 -124
  28. package/dist/commons/events/utils.d.ts +8 -9659
  29. package/dist/conditionals/index.js +1 -18
  30. package/dist/events/index.js +413 -691
  31. package/package.json +1 -1
@@ -2,13 +2,21 @@ import { z, ZodType } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
3
  id: z.ZodString;
4
4
  type: z.ZodString;
5
- status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
5
+ status: z.ZodNativeEnum<{
6
+ readonly CREATED: "CREATED";
7
+ readonly NOTIFIED: "NOTIFIED";
8
+ readonly DECLARED: "DECLARED";
9
+ readonly VALIDATED: "VALIDATED";
10
+ readonly REGISTERED: "REGISTERED";
11
+ readonly CERTIFIED: "CERTIFIED";
12
+ readonly REJECTED: "REJECTED";
13
+ readonly ARCHIVED: "ARCHIVED";
14
+ }>;
6
15
  legalStatuses: z.ZodObject<{
7
16
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8
17
  createdAt: z.ZodString;
9
18
  createdBy: z.ZodString;
10
19
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- creator: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
12
20
  acceptedAt: z.ZodString;
13
21
  createdByRole: z.ZodString;
14
22
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17,7 +25,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
17
25
  createdBy: string;
18
26
  createdByRole: string;
19
27
  acceptedAt: string;
20
- creator?: "system" | "user" | null | undefined;
21
28
  createdBySignature?: string | null | undefined;
22
29
  createdAtLocation?: string | null | undefined;
23
30
  }, {
@@ -25,7 +32,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
25
32
  createdBy: string;
26
33
  createdByRole: string;
27
34
  acceptedAt: string;
28
- creator?: "system" | "user" | null | undefined;
29
35
  createdBySignature?: string | null | undefined;
30
36
  createdAtLocation?: string | null | undefined;
31
37
  }>>>;
@@ -33,7 +39,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
33
39
  createdAt: z.ZodString;
34
40
  createdBy: z.ZodString;
35
41
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
- creator: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
37
42
  acceptedAt: z.ZodString;
38
43
  createdByRole: z.ZodString;
39
44
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -45,7 +50,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
45
50
  createdByRole: string;
46
51
  registrationNumber: string;
47
52
  acceptedAt: string;
48
- creator?: "system" | "user" | null | undefined;
49
53
  createdBySignature?: string | null | undefined;
50
54
  createdAtLocation?: string | null | undefined;
51
55
  }, {
@@ -54,7 +58,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
54
58
  createdByRole: string;
55
59
  registrationNumber: string;
56
60
  acceptedAt: string;
57
- creator?: "system" | "user" | null | undefined;
58
61
  createdBySignature?: string | null | undefined;
59
62
  createdAtLocation?: string | null | undefined;
60
63
  }>>>;
@@ -64,7 +67,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
64
67
  createdBy: string;
65
68
  createdByRole: string;
66
69
  acceptedAt: string;
67
- creator?: "system" | "user" | null | undefined;
68
70
  createdBySignature?: string | null | undefined;
69
71
  createdAtLocation?: string | null | undefined;
70
72
  } | null | undefined;
@@ -74,7 +76,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
74
76
  createdByRole: string;
75
77
  registrationNumber: string;
76
78
  acceptedAt: string;
77
- creator?: "system" | "user" | null | undefined;
78
79
  createdBySignature?: string | null | undefined;
79
80
  createdAtLocation?: string | null | undefined;
80
81
  } | null | undefined;
@@ -84,7 +85,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
84
85
  createdBy: string;
85
86
  createdByRole: string;
86
87
  acceptedAt: string;
87
- creator?: "system" | "user" | null | undefined;
88
88
  createdBySignature?: string | null | undefined;
89
89
  createdAtLocation?: string | null | undefined;
90
90
  } | null | undefined;
@@ -94,7 +94,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
94
94
  createdByRole: string;
95
95
  registrationNumber: string;
96
96
  acceptedAt: string;
97
- creator?: "system" | "user" | null | undefined;
98
97
  createdBySignature?: string | null | undefined;
99
98
  createdAtLocation?: string | null | undefined;
100
99
  } | null | undefined;
@@ -102,7 +101,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
102
101
  createdAt: z.ZodString;
103
102
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
103
  createdBy: z.ZodString;
105
- creator: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
106
104
  updatedByUserRole: z.ZodString;
107
105
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
106
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -228,31 +226,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
228
226
  addressLine2?: string | undefined;
229
227
  addressLine3?: string | undefined;
230
228
  postcodeOrZip?: string | undefined;
231
- }>, z.ZodObject<{
232
- firstname: z.ZodString;
233
- surname: z.ZodString;
234
- middlename: z.ZodOptional<z.ZodString>;
235
- }, "strip", z.ZodTypeAny, {
236
- firstname: string;
237
- surname: string;
238
- middlename?: string | undefined;
239
- }, {
240
- firstname: string;
241
- surname: string;
242
- middlename?: string | undefined;
243
- }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
244
- firstname: z.ZodString;
245
- surname: z.ZodString;
246
- middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
- }, "strip", z.ZodTypeAny, {
248
- firstname: string;
249
- surname: string;
250
- middlename?: string | null | undefined;
251
- }, {
252
- firstname: string;
253
- surname: string;
254
- middlename?: string | null | undefined;
255
- }>, z.ZodNull]>, z.ZodUndefined]>]>>;
229
+ }>]>>;
256
230
  }>, "strip", z.ZodTypeAny, {
257
231
  type: string;
258
232
  id: string;
@@ -281,14 +255,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
281
255
  province: string;
282
256
  urbanOrRural: "RURAL";
283
257
  village?: string | undefined;
284
- } | {
285
- firstname: string;
286
- surname: string;
287
- middlename?: string | undefined;
288
- } | {
289
- firstname: string;
290
- surname: string;
291
- middlename?: string | null | undefined;
292
258
  } | {
293
259
  country: string;
294
260
  state: string;
@@ -304,7 +270,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
304
270
  option: string;
305
271
  filename: string;
306
272
  originalFilename: string;
307
- }[] | [string, string] | null | undefined>;
273
+ }[] | [string, string] | undefined>;
308
274
  updatedAt: string;
309
275
  trackingId: string;
310
276
  legalStatuses: {
@@ -313,7 +279,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
313
279
  createdBy: string;
314
280
  createdByRole: string;
315
281
  acceptedAt: string;
316
- creator?: "system" | "user" | null | undefined;
317
282
  createdBySignature?: string | null | undefined;
318
283
  createdAtLocation?: string | null | undefined;
319
284
  } | null | undefined;
@@ -323,14 +288,12 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
323
288
  createdByRole: string;
324
289
  registrationNumber: string;
325
290
  acceptedAt: string;
326
- creator?: "system" | "user" | null | undefined;
327
291
  createdBySignature?: string | null | undefined;
328
292
  createdAtLocation?: string | null | undefined;
329
293
  } | null | undefined;
330
294
  };
331
295
  updatedByUserRole: string;
332
296
  flags: string[];
333
- creator?: "system" | "user" | null | undefined;
334
297
  createdBySignature?: string | null | undefined;
335
298
  createdAtLocation?: string | null | undefined;
336
299
  assignedTo?: string | null | undefined;
@@ -365,14 +328,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
365
328
  province: string;
366
329
  urbanOrRural: "RURAL";
367
330
  village?: string | undefined;
368
- } | {
369
- firstname: string;
370
- surname: string;
371
- middlename?: string | undefined;
372
- } | {
373
- firstname: string;
374
- surname: string;
375
- middlename?: string | null | undefined;
376
331
  } | {
377
332
  country: string;
378
333
  state: string;
@@ -388,7 +343,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
388
343
  option: string;
389
344
  filename: string;
390
345
  originalFilename: string;
391
- }[] | [string, string] | null | undefined>;
346
+ }[] | [string, string] | undefined>;
392
347
  updatedAt: string;
393
348
  trackingId: string;
394
349
  legalStatuses: {
@@ -397,7 +352,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
397
352
  createdBy: string;
398
353
  createdByRole: string;
399
354
  acceptedAt: string;
400
- creator?: "system" | "user" | null | undefined;
401
355
  createdBySignature?: string | null | undefined;
402
356
  createdAtLocation?: string | null | undefined;
403
357
  } | null | undefined;
@@ -407,14 +361,12 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
407
361
  createdByRole: string;
408
362
  registrationNumber: string;
409
363
  acceptedAt: string;
410
- creator?: "system" | "user" | null | undefined;
411
364
  createdBySignature?: string | null | undefined;
412
365
  createdAtLocation?: string | null | undefined;
413
366
  } | null | undefined;
414
367
  };
415
368
  updatedByUserRole: string;
416
369
  flags: string[];
417
- creator?: "system" | "user" | null | undefined;
418
370
  createdBySignature?: string | null | undefined;
419
371
  createdAtLocation?: string | null | undefined;
420
372
  assignedTo?: string | null | undefined;
@@ -648,16 +600,6 @@ export declare const QueryExpression: z.ZodObject<{
648
600
  type: "exact";
649
601
  term: string;
650
602
  }>]>>>;
651
- 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
652
- type: z.ZodLiteral<"exact">;
653
- term: z.ZodString;
654
- }, "strip", z.ZodTypeAny, {
655
- type: "exact";
656
- term: string;
657
- }, {
658
- type: "exact";
659
- term: string;
660
- }>>>;
661
603
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
662
604
  type: z.ZodLiteral<"within">;
663
605
  location: z.ZodString;
@@ -706,7 +648,6 @@ export declare const QueryExpression: z.ZodObject<{
706
648
  type: "exact";
707
649
  term: string;
708
650
  }>>>;
709
- creator: z.ZodOptional<z.ZodOptional<z.ZodEnum<["user", "system"]>>>;
710
651
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
711
652
  type: z.ZodLiteral<"exact">;
712
653
  term: z.ZodString;
@@ -766,7 +707,6 @@ export declare const QueryExpression: z.ZodObject<{
766
707
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
767
708
  } | undefined;
768
709
  data?: any;
769
- creator?: "system" | "user" | undefined;
770
710
  createdAt?: {
771
711
  type: "exact";
772
712
  term: string;
@@ -836,10 +776,6 @@ export declare const QueryExpression: z.ZodObject<{
836
776
  type: "within";
837
777
  location: string;
838
778
  } | undefined;
839
- 'legalStatus.REGISTERED.registrationNumber'?: {
840
- type: "exact";
841
- term: string;
842
- } | undefined;
843
779
  }, {
844
780
  status?: {
845
781
  type: "exact";
@@ -849,7 +785,6 @@ export declare const QueryExpression: z.ZodObject<{
849
785
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
850
786
  } | undefined;
851
787
  data?: any;
852
- creator?: "system" | "user" | undefined;
853
788
  createdAt?: {
854
789
  type: "exact";
855
790
  term: string;
@@ -919,10 +854,6 @@ export declare const QueryExpression: z.ZodObject<{
919
854
  type: "within";
920
855
  location: string;
921
856
  } | undefined;
922
- 'legalStatus.REGISTERED.registrationNumber'?: {
923
- type: "exact";
924
- term: string;
925
- } | undefined;
926
857
  }>;
927
858
  export declare const QueryType: z.ZodObject<{
928
859
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
@@ -1032,16 +963,6 @@ export declare const QueryType: z.ZodObject<{
1032
963
  type: "exact";
1033
964
  term: string;
1034
965
  }>]>>>;
1035
- 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1036
- type: z.ZodLiteral<"exact">;
1037
- term: z.ZodString;
1038
- }, "strip", z.ZodTypeAny, {
1039
- type: "exact";
1040
- term: string;
1041
- }, {
1042
- type: "exact";
1043
- term: string;
1044
- }>>>;
1045
966
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1046
967
  type: z.ZodLiteral<"within">;
1047
968
  location: z.ZodString;
@@ -1090,7 +1011,6 @@ export declare const QueryType: z.ZodObject<{
1090
1011
  type: "exact";
1091
1012
  term: string;
1092
1013
  }>>>;
1093
- creator: z.ZodOptional<z.ZodOptional<z.ZodEnum<["user", "system"]>>>;
1094
1014
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1095
1015
  type: z.ZodLiteral<"exact">;
1096
1016
  term: z.ZodString;
@@ -1150,7 +1070,6 @@ export declare const QueryType: z.ZodObject<{
1150
1070
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1151
1071
  } | undefined;
1152
1072
  data?: any;
1153
- creator?: "system" | "user" | undefined;
1154
1073
  createdAt?: {
1155
1074
  type: "exact";
1156
1075
  term: string;
@@ -1220,10 +1139,6 @@ export declare const QueryType: z.ZodObject<{
1220
1139
  type: "within";
1221
1140
  location: string;
1222
1141
  } | undefined;
1223
- 'legalStatus.REGISTERED.registrationNumber'?: {
1224
- type: "exact";
1225
- term: string;
1226
- } | undefined;
1227
1142
  }, {
1228
1143
  status?: {
1229
1144
  type: "exact";
@@ -1233,90 +1148,6 @@ export declare const QueryType: z.ZodObject<{
1233
1148
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1234
1149
  } | undefined;
1235
1150
  data?: any;
1236
- creator?: "system" | "user" | undefined;
1237
- createdAt?: {
1238
- type: "exact";
1239
- term: string;
1240
- } | {
1241
- type: "range";
1242
- gte: string;
1243
- lte: string;
1244
- } | undefined;
1245
- createdBy?: {
1246
- type: "exact";
1247
- term: string;
1248
- } | undefined;
1249
- createdAtLocation?: {
1250
- type: "exact";
1251
- term: string;
1252
- } | {
1253
- type: "within";
1254
- location: string;
1255
- } | undefined;
1256
- assignedTo?: {
1257
- type: "exact";
1258
- term: string;
1259
- } | undefined;
1260
- updatedAt?: {
1261
- type: "exact";
1262
- term: string;
1263
- } | {
1264
- type: "range";
1265
- gte: string;
1266
- lte: string;
1267
- } | undefined;
1268
- trackingId?: {
1269
- type: "exact";
1270
- term: string;
1271
- } | undefined;
1272
- updatedAtLocation?: {
1273
- type: "exact";
1274
- term: string;
1275
- } | {
1276
- type: "within";
1277
- location: string;
1278
- } | undefined;
1279
- updatedBy?: {
1280
- type: "exact";
1281
- term: string;
1282
- } | undefined;
1283
- flags?: ({
1284
- type: "anyOf";
1285
- terms: string[];
1286
- } | {
1287
- type: "not";
1288
- term: string;
1289
- })[] | undefined;
1290
- eventType?: string | undefined;
1291
- 'legalStatus.REGISTERED.createdAt'?: {
1292
- type: "exact";
1293
- term: string;
1294
- } | {
1295
- type: "range";
1296
- gte: string;
1297
- lte: string;
1298
- } | undefined;
1299
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1300
- type: "exact";
1301
- term: string;
1302
- } | {
1303
- type: "within";
1304
- location: string;
1305
- } | undefined;
1306
- 'legalStatus.REGISTERED.registrationNumber'?: {
1307
- type: "exact";
1308
- term: string;
1309
- } | undefined;
1310
- }>, "atleastone">, [{
1311
- status?: {
1312
- type: "exact";
1313
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1314
- } | {
1315
- type: "anyOf";
1316
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1317
- } | undefined;
1318
- data?: any;
1319
- creator?: "system" | "user" | undefined;
1320
1151
  createdAt?: {
1321
1152
  type: "exact";
1322
1153
  term: string;
@@ -1386,11 +1217,7 @@ export declare const QueryType: z.ZodObject<{
1386
1217
  type: "within";
1387
1218
  location: string;
1388
1219
  } | undefined;
1389
- 'legalStatus.REGISTERED.registrationNumber'?: {
1390
- type: "exact";
1391
- term: string;
1392
- } | undefined;
1393
- }, ...{
1220
+ }>, "many">, {
1394
1221
  status?: {
1395
1222
  type: "exact";
1396
1223
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1399,7 +1226,6 @@ export declare const QueryType: z.ZodObject<{
1399
1226
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1400
1227
  } | undefined;
1401
1228
  data?: any;
1402
- creator?: "system" | "user" | undefined;
1403
1229
  createdAt?: {
1404
1230
  type: "exact";
1405
1231
  term: string;
@@ -1469,14 +1295,10 @@ export declare const QueryType: z.ZodObject<{
1469
1295
  type: "within";
1470
1296
  location: string;
1471
1297
  } | undefined;
1472
- 'legalStatus.REGISTERED.registrationNumber'?: {
1473
- type: "exact";
1474
- term: string;
1475
- } | undefined;
1476
- }[]], unknown>;
1298
+ }[], unknown>;
1477
1299
  }, "strip", z.ZodTypeAny, {
1478
1300
  type: "and" | "or";
1479
- clauses: [{
1301
+ clauses: {
1480
1302
  status?: {
1481
1303
  type: "exact";
1482
1304
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1485,7 +1307,6 @@ export declare const QueryType: z.ZodObject<{
1485
1307
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1486
1308
  } | undefined;
1487
1309
  data?: any;
1488
- creator?: "system" | "user" | undefined;
1489
1310
  createdAt?: {
1490
1311
  type: "exact";
1491
1312
  term: string;
@@ -1555,94 +1376,7 @@ export declare const QueryType: z.ZodObject<{
1555
1376
  type: "within";
1556
1377
  location: string;
1557
1378
  } | undefined;
1558
- 'legalStatus.REGISTERED.registrationNumber'?: {
1559
- type: "exact";
1560
- term: string;
1561
- } | undefined;
1562
- }, ...{
1563
- status?: {
1564
- type: "exact";
1565
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1566
- } | {
1567
- type: "anyOf";
1568
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1569
- } | undefined;
1570
- data?: any;
1571
- creator?: "system" | "user" | undefined;
1572
- createdAt?: {
1573
- type: "exact";
1574
- term: string;
1575
- } | {
1576
- type: "range";
1577
- gte: string;
1578
- lte: string;
1579
- } | undefined;
1580
- createdBy?: {
1581
- type: "exact";
1582
- term: string;
1583
- } | undefined;
1584
- createdAtLocation?: {
1585
- type: "exact";
1586
- term: string;
1587
- } | {
1588
- type: "within";
1589
- location: string;
1590
- } | undefined;
1591
- assignedTo?: {
1592
- type: "exact";
1593
- term: string;
1594
- } | undefined;
1595
- updatedAt?: {
1596
- type: "exact";
1597
- term: string;
1598
- } | {
1599
- type: "range";
1600
- gte: string;
1601
- lte: string;
1602
- } | undefined;
1603
- trackingId?: {
1604
- type: "exact";
1605
- term: string;
1606
- } | undefined;
1607
- updatedAtLocation?: {
1608
- type: "exact";
1609
- term: string;
1610
- } | {
1611
- type: "within";
1612
- location: string;
1613
- } | undefined;
1614
- updatedBy?: {
1615
- type: "exact";
1616
- term: string;
1617
- } | undefined;
1618
- flags?: ({
1619
- type: "anyOf";
1620
- terms: string[];
1621
- } | {
1622
- type: "not";
1623
- term: string;
1624
- })[] | undefined;
1625
- eventType?: string | undefined;
1626
- 'legalStatus.REGISTERED.createdAt'?: {
1627
- type: "exact";
1628
- term: string;
1629
- } | {
1630
- type: "range";
1631
- gte: string;
1632
- lte: string;
1633
- } | undefined;
1634
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1635
- type: "exact";
1636
- term: string;
1637
- } | {
1638
- type: "within";
1639
- location: string;
1640
- } | undefined;
1641
- 'legalStatus.REGISTERED.registrationNumber'?: {
1642
- type: "exact";
1643
- term: string;
1644
- } | undefined;
1645
- }[]];
1379
+ }[];
1646
1380
  }, {
1647
1381
  type: "and" | "or";
1648
1382
  clauses?: unknown;