@opencrvs/toolkit 1.8.0-rc.f8aa0c5 → 1.8.0-rc.f8e0ee5

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 (38) hide show
  1. package/dist/commons/api/router.d.ts +7549 -6145
  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 +20914 -46894
  5. package/dist/commons/events/ActionDocument.d.ts +494 -1997
  6. package/dist/commons/events/ActionInput.d.ts +306 -1506
  7. package/dist/commons/events/ActionType.d.ts +0 -4
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +3 -279
  9. package/dist/commons/events/CompositeFieldValue.d.ts +0 -28
  10. package/dist/commons/events/Constants.d.ts +0 -1
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +412 -1160
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
  13. package/dist/commons/events/Draft.d.ts +40 -141
  14. package/dist/commons/events/EventConfig.d.ts +14286 -29320
  15. package/dist/commons/events/EventDocument.d.ts +355 -1294
  16. package/dist/commons/events/EventIndex.d.ts +191 -849
  17. package/dist/commons/events/EventMetadata.d.ts +64 -73
  18. package/dist/commons/events/FieldConfig.d.ts +888 -1875
  19. package/dist/commons/events/FieldType.d.ts +1 -4
  20. package/dist/commons/events/FieldTypeMapping.d.ts +50 -89
  21. package/dist/commons/events/FieldValue.d.ts +5 -41
  22. package/dist/commons/events/FormConfig.d.ts +2510 -8840
  23. package/dist/commons/events/PageConfig.d.ts +1638 -3184
  24. package/dist/commons/events/SummaryConfig.d.ts +5 -0
  25. package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
  26. package/dist/commons/events/WorkqueueConfig.d.ts +1778 -4553
  27. package/dist/commons/events/defineConfig.d.ts +1440 -4157
  28. package/dist/commons/events/field.d.ts +0 -9
  29. package/dist/commons/events/index.d.ts +0 -1
  30. package/dist/commons/events/scopes.d.ts +3 -2
  31. package/dist/commons/events/test.utils.d.ts +39 -148
  32. package/dist/commons/events/transactions.d.ts +1 -1
  33. package/dist/commons/events/utils.d.ts +19 -10122
  34. package/dist/conditionals/index.js +18 -38
  35. package/dist/events/index.js +1681 -2347
  36. package/dist/scopes/index.d.ts +7 -96
  37. package/dist/scopes/index.js +26 -105
  38. package/package.json +3 -3
@@ -1,14 +1,22 @@
1
1
  import { z, ZodType } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
- id: z.ZodBranded<z.ZodString, "UUID">;
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
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
11
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
19
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
20
  acceptedAt: z.ZodString;
13
21
  createdByRole: z.ZodString;
14
22
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17,23 +25,20 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
17
25
  createdBy: string;
18
26
  createdByRole: string;
19
27
  acceptedAt: string;
20
- createdByUserType?: "system" | "user" | null | undefined;
21
28
  createdBySignature?: string | null | undefined;
22
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
29
+ createdAtLocation?: string | null | undefined;
23
30
  }, {
24
31
  createdAt: string;
25
32
  createdBy: string;
26
33
  createdByRole: string;
27
34
  acceptedAt: string;
28
- createdByUserType?: "system" | "user" | null | undefined;
29
35
  createdBySignature?: string | null | undefined;
30
36
  createdAtLocation?: string | null | undefined;
31
37
  }>>>;
32
38
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
33
39
  createdAt: z.ZodString;
34
40
  createdBy: z.ZodString;
35
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
36
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
41
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
42
  acceptedAt: z.ZodString;
38
43
  createdByRole: z.ZodString;
39
44
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -45,16 +50,14 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
45
50
  createdByRole: string;
46
51
  registrationNumber: string;
47
52
  acceptedAt: string;
48
- createdByUserType?: "system" | "user" | null | undefined;
49
53
  createdBySignature?: string | null | undefined;
50
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
54
+ createdAtLocation?: string | null | undefined;
51
55
  }, {
52
56
  createdAt: string;
53
57
  createdBy: string;
54
58
  createdByRole: string;
55
59
  registrationNumber: string;
56
60
  acceptedAt: string;
57
- createdByUserType?: "system" | "user" | null | undefined;
58
61
  createdBySignature?: string | null | undefined;
59
62
  createdAtLocation?: string | null | undefined;
60
63
  }>>>;
@@ -64,9 +67,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
64
67
  createdBy: string;
65
68
  createdByRole: string;
66
69
  acceptedAt: string;
67
- createdByUserType?: "system" | "user" | null | undefined;
68
70
  createdBySignature?: string | null | undefined;
69
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
71
+ createdAtLocation?: string | null | undefined;
70
72
  } | null | undefined;
71
73
  REGISTERED?: {
72
74
  createdAt: string;
@@ -74,9 +76,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
74
76
  createdByRole: string;
75
77
  registrationNumber: string;
76
78
  acceptedAt: string;
77
- createdByUserType?: "system" | "user" | null | undefined;
78
79
  createdBySignature?: string | null | undefined;
79
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
80
+ createdAtLocation?: string | null | undefined;
80
81
  } | null | undefined;
81
82
  }, {
82
83
  DECLARED?: {
@@ -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
- createdByUserType?: "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
- createdByUserType?: "system" | "user" | null | undefined;
98
97
  createdBySignature?: string | null | undefined;
99
98
  createdAtLocation?: string | null | undefined;
100
99
  } | null | undefined;
@@ -102,19 +101,16 @@ 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
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
106
104
  updatedByUserRole: z.ZodString;
107
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
105
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
106
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
107
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
108
  updatedAt: z.ZodString;
111
109
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
110
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
111
  trackingId: z.ZodString;
114
112
  flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
115
- readonly PRINTED: "printed";
116
- readonly INCOMPLETE: "incomplete";
117
- readonly REJECTED: "rejected";
113
+ readonly CERTIFICATE_PRINTED: "certificate-printed";
118
114
  readonly CORRECTION_REQUESTED: "correction-requested";
119
115
  }>]>, "many">;
120
116
  }, {
@@ -231,34 +227,10 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
231
227
  addressLine2?: string | undefined;
232
228
  addressLine3?: string | undefined;
233
229
  postcodeOrZip?: string | undefined;
234
- }>, z.ZodObject<{
235
- firstname: z.ZodString;
236
- surname: z.ZodString;
237
- middlename: z.ZodOptional<z.ZodString>;
238
- }, "strip", z.ZodTypeAny, {
239
- firstname: string;
240
- surname: string;
241
- middlename?: string | undefined;
242
- }, {
243
- firstname: string;
244
- surname: string;
245
- middlename?: string | undefined;
246
- }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
247
- firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
- middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
- }, "strip", z.ZodTypeAny, {
251
- firstname?: string | null | undefined;
252
- surname?: string | null | undefined;
253
- middlename?: string | null | undefined;
254
- }, {
255
- firstname?: string | null | undefined;
256
- surname?: string | null | undefined;
257
- middlename?: string | null | undefined;
258
- }>, z.ZodNull]>, z.ZodUndefined]>]>>;
230
+ }>]>>;
259
231
  }>, "strip", z.ZodTypeAny, {
260
232
  type: string;
261
- id: string & z.BRAND<"UUID">;
233
+ id: string;
262
234
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
263
235
  createdAt: string;
264
236
  createdBy: string;
@@ -284,14 +256,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
284
256
  province: string;
285
257
  urbanOrRural: "RURAL";
286
258
  village?: string | undefined;
287
- } | {
288
- firstname: string;
289
- surname: string;
290
- middlename?: string | undefined;
291
- } | {
292
- firstname?: string | null | undefined;
293
- surname?: string | null | undefined;
294
- middlename?: string | null | undefined;
295
259
  } | {
296
260
  country: string;
297
261
  state: string;
@@ -307,7 +271,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
307
271
  option: string;
308
272
  filename: string;
309
273
  originalFilename: string;
310
- }[] | [string, string] | null | undefined>;
274
+ }[] | [string, string] | undefined>;
311
275
  updatedAt: string;
312
276
  trackingId: string;
313
277
  legalStatuses: {
@@ -316,9 +280,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
316
280
  createdBy: string;
317
281
  createdByRole: string;
318
282
  acceptedAt: string;
319
- createdByUserType?: "system" | "user" | null | undefined;
320
283
  createdBySignature?: string | null | undefined;
321
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
284
+ createdAtLocation?: string | null | undefined;
322
285
  } | null | undefined;
323
286
  REGISTERED?: {
324
287
  createdAt: string;
@@ -326,19 +289,17 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
326
289
  createdByRole: string;
327
290
  registrationNumber: string;
328
291
  acceptedAt: string;
329
- createdByUserType?: "system" | "user" | null | undefined;
330
292
  createdBySignature?: string | null | undefined;
331
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
293
+ createdAtLocation?: string | null | undefined;
332
294
  } | null | undefined;
333
295
  };
334
296
  updatedByUserRole: string;
335
297
  flags: string[];
336
- createdByUserType?: "system" | "user" | null | undefined;
337
298
  createdBySignature?: string | null | undefined;
338
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
299
+ createdAtLocation?: string | null | undefined;
339
300
  assignedTo?: string | null | undefined;
340
301
  dateOfEvent?: string | null | undefined;
341
- updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
302
+ updatedAtLocation?: string | null | undefined;
342
303
  updatedBy?: string | null | undefined;
343
304
  }, {
344
305
  type: string;
@@ -368,14 +329,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
368
329
  province: string;
369
330
  urbanOrRural: "RURAL";
370
331
  village?: string | undefined;
371
- } | {
372
- firstname: string;
373
- surname: string;
374
- middlename?: string | undefined;
375
- } | {
376
- firstname?: string | null | undefined;
377
- surname?: string | null | undefined;
378
- middlename?: string | null | undefined;
379
332
  } | {
380
333
  country: string;
381
334
  state: string;
@@ -391,7 +344,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
391
344
  option: string;
392
345
  filename: string;
393
346
  originalFilename: string;
394
- }[] | [string, string] | null | undefined>;
347
+ }[] | [string, string] | undefined>;
395
348
  updatedAt: string;
396
349
  trackingId: string;
397
350
  legalStatuses: {
@@ -400,7 +353,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
400
353
  createdBy: string;
401
354
  createdByRole: string;
402
355
  acceptedAt: string;
403
- createdByUserType?: "system" | "user" | null | undefined;
404
356
  createdBySignature?: string | null | undefined;
405
357
  createdAtLocation?: string | null | undefined;
406
358
  } | null | undefined;
@@ -410,14 +362,12 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
410
362
  createdByRole: string;
411
363
  registrationNumber: string;
412
364
  acceptedAt: string;
413
- createdByUserType?: "system" | "user" | null | undefined;
414
365
  createdBySignature?: string | null | undefined;
415
366
  createdAtLocation?: string | null | undefined;
416
367
  } | null | undefined;
417
368
  };
418
369
  updatedByUserRole: string;
419
370
  flags: string[];
420
- createdByUserType?: "system" | "user" | null | undefined;
421
371
  createdBySignature?: string | null | undefined;
422
372
  createdAtLocation?: string | null | undefined;
423
373
  assignedTo?: string | null | undefined;
@@ -454,16 +404,6 @@ export declare const Exact: z.ZodObject<{
454
404
  type: "exact";
455
405
  term: string;
456
406
  }>;
457
- export declare const ExactStatus: z.ZodObject<{
458
- type: z.ZodLiteral<"exact">;
459
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
460
- }, "strip", z.ZodTypeAny, {
461
- type: "exact";
462
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
463
- }, {
464
- type: "exact";
465
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
466
- }>;
467
407
  export declare const AnyOf: z.ZodObject<{
468
408
  type: z.ZodLiteral<"anyOf">;
469
409
  terms: z.ZodArray<z.ZodString, "many">;
@@ -474,6 +414,16 @@ export declare const AnyOf: z.ZodObject<{
474
414
  type: "anyOf";
475
415
  terms: string[];
476
416
  }>;
417
+ export declare const ExactStatus: z.ZodObject<{
418
+ type: z.ZodLiteral<"exact">;
419
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ type: "exact";
422
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
423
+ }, {
424
+ type: "exact";
425
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
426
+ }>;
477
427
  export declare const AnyOfStatus: z.ZodObject<{
478
428
  type: z.ZodLiteral<"anyOf">;
479
429
  terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
@@ -497,25 +447,15 @@ export declare const Range: z.ZodObject<{
497
447
  gte: string;
498
448
  lte: string;
499
449
  }>;
500
- export declare const ContainsFlags: z.ZodObject<{
501
- anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
502
- readonly PRINTED: "printed";
503
- readonly INCOMPLETE: "incomplete";
504
- readonly REJECTED: "rejected";
505
- readonly CORRECTION_REQUESTED: "correction-requested";
506
- }>]>, "many">>;
507
- noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
508
- readonly PRINTED: "printed";
509
- readonly INCOMPLETE: "incomplete";
510
- readonly REJECTED: "rejected";
511
- readonly CORRECTION_REQUESTED: "correction-requested";
512
- }>]>, "many">>;
450
+ export declare const Not: z.ZodObject<{
451
+ type: z.ZodLiteral<"not">;
452
+ term: z.ZodString;
513
453
  }, "strip", z.ZodTypeAny, {
514
- anyOf?: string[] | undefined;
515
- noneOf?: string[] | undefined;
454
+ type: "not";
455
+ term: string;
516
456
  }, {
517
- anyOf?: string[] | undefined;
518
- noneOf?: string[] | undefined;
457
+ type: "not";
458
+ term: string;
519
459
  }>;
520
460
  export declare const Within: z.ZodObject<{
521
461
  type: z.ZodLiteral<"within">;
@@ -527,53 +467,20 @@ export declare const Within: z.ZodObject<{
527
467
  type: "within";
528
468
  location: string;
529
469
  }>;
530
- export declare const RangeDate: z.ZodObject<z.objectUtil.extendShape<{
531
- type: z.ZodLiteral<"range">;
532
- gte: z.ZodString;
533
- lte: z.ZodString;
534
- }, {
535
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
536
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
537
- }>, "strip", z.ZodTypeAny, {
538
- type: "range";
539
- gte: string;
540
- lte: string;
541
- }, {
542
- type: "range";
543
- gte: string;
544
- lte: string;
545
- }>;
546
- export declare const ExactDate: z.ZodObject<z.objectUtil.extendShape<{
547
- type: z.ZodLiteral<"exact">;
548
- term: z.ZodString;
549
- }, {
550
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
551
- }>, "strip", z.ZodTypeAny, {
552
- type: "exact";
553
- term: string;
554
- }, {
555
- type: "exact";
556
- term: string;
557
- }>;
558
- export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
470
+ export declare const DateCondition: z.ZodUnion<[z.ZodObject<{
559
471
  type: z.ZodLiteral<"exact">;
560
472
  term: z.ZodString;
561
- }, {
562
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
563
- }>, "strip", z.ZodTypeAny, {
473
+ }, "strip", z.ZodTypeAny, {
564
474
  type: "exact";
565
475
  term: string;
566
476
  }, {
567
477
  type: "exact";
568
478
  term: string;
569
- }>, z.ZodObject<z.objectUtil.extendShape<{
479
+ }>, z.ZodObject<{
570
480
  type: z.ZodLiteral<"range">;
571
481
  gte: z.ZodString;
572
482
  lte: z.ZodString;
573
- }, {
574
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
575
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
576
- }>, "strip", z.ZodTypeAny, {
483
+ }, "strip", z.ZodTypeAny, {
577
484
  type: "range";
578
485
  gte: string;
579
486
  lte: string;
@@ -583,13 +490,12 @@ export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
583
490
  lte: string;
584
491
  }>]>;
585
492
  export declare const QueryInput: ZodType;
586
- export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf>;
493
+ export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf> | z.infer<typeof Not>;
587
494
  type QueryMap = {
588
495
  [key: string]: BaseInput | QueryMap;
589
496
  };
590
497
  export type QueryInputType = BaseInput | QueryMap;
591
- export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
592
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
498
+ export declare const QueryExpression: z.ZodObject<{
593
499
  eventType: z.ZodOptional<z.ZodString>;
594
500
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
595
501
  type: z.ZodLiteral<"anyOf">;
@@ -610,25 +516,20 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
610
516
  type: "exact";
611
517
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
612
518
  }>]>>>;
613
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
519
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
614
520
  type: z.ZodLiteral<"exact">;
615
521
  term: z.ZodString;
616
- }, {
617
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
618
- }>, "strip", z.ZodTypeAny, {
522
+ }, "strip", z.ZodTypeAny, {
619
523
  type: "exact";
620
524
  term: string;
621
525
  }, {
622
526
  type: "exact";
623
527
  term: string;
624
- }>, z.ZodObject<z.objectUtil.extendShape<{
528
+ }>, z.ZodObject<{
625
529
  type: z.ZodLiteral<"range">;
626
530
  gte: z.ZodString;
627
531
  lte: z.ZodString;
628
- }, {
629
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
630
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
631
- }>, "strip", z.ZodTypeAny, {
532
+ }, "strip", z.ZodTypeAny, {
632
533
  type: "range";
633
534
  gte: string;
634
535
  lte: string;
@@ -637,25 +538,20 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
637
538
  gte: string;
638
539
  lte: string;
639
540
  }>]>>>;
640
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
541
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
641
542
  type: z.ZodLiteral<"exact">;
642
543
  term: z.ZodString;
643
- }, {
644
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
645
- }>, "strip", z.ZodTypeAny, {
544
+ }, "strip", z.ZodTypeAny, {
646
545
  type: "exact";
647
546
  term: string;
648
547
  }, {
649
548
  type: "exact";
650
549
  term: string;
651
- }>, z.ZodObject<z.objectUtil.extendShape<{
550
+ }>, z.ZodObject<{
652
551
  type: z.ZodLiteral<"range">;
653
552
  gte: z.ZodString;
654
553
  lte: z.ZodString;
655
- }, {
656
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
657
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
658
- }>, "strip", z.ZodTypeAny, {
554
+ }, "strip", z.ZodTypeAny, {
659
555
  type: "range";
660
556
  gte: string;
661
557
  lte: string;
@@ -664,25 +560,20 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
664
560
  gte: string;
665
561
  lte: string;
666
562
  }>]>>>;
667
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
563
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
668
564
  type: z.ZodLiteral<"exact">;
669
565
  term: z.ZodString;
670
- }, {
671
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
672
- }>, "strip", z.ZodTypeAny, {
566
+ }, "strip", z.ZodTypeAny, {
673
567
  type: "exact";
674
568
  term: string;
675
569
  }, {
676
570
  type: "exact";
677
571
  term: string;
678
- }>, z.ZodObject<z.objectUtil.extendShape<{
572
+ }>, z.ZodObject<{
679
573
  type: z.ZodLiteral<"range">;
680
574
  gte: z.ZodString;
681
575
  lte: z.ZodString;
682
- }, {
683
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
684
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
685
- }>, "strip", z.ZodTypeAny, {
576
+ }, "strip", z.ZodTypeAny, {
686
577
  type: "range";
687
578
  gte: string;
688
579
  lte: string;
@@ -710,16 +601,6 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
710
601
  type: "exact";
711
602
  term: string;
712
603
  }>]>>>;
713
- 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
714
- type: z.ZodLiteral<"exact">;
715
- term: z.ZodString;
716
- }, "strip", z.ZodTypeAny, {
717
- type: "exact";
718
- term: string;
719
- }, {
720
- type: "exact";
721
- term: string;
722
- }>>>;
723
604
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
724
605
  type: z.ZodLiteral<"within">;
725
606
  location: z.ZodString;
@@ -768,7 +649,6 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
768
649
  type: "exact";
769
650
  term: string;
770
651
  }>>>;
771
- createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
772
652
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
773
653
  type: z.ZodLiteral<"exact">;
774
654
  term: z.ZodString;
@@ -799,29 +679,27 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
799
679
  type: "exact";
800
680
  term: string;
801
681
  }>>>;
802
- flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
803
- anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
804
- readonly PRINTED: "printed";
805
- readonly INCOMPLETE: "incomplete";
806
- readonly REJECTED: "rejected";
807
- readonly CORRECTION_REQUESTED: "correction-requested";
808
- }>]>, "many">>;
809
- noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
810
- readonly PRINTED: "printed";
811
- readonly INCOMPLETE: "incomplete";
812
- readonly REJECTED: "rejected";
813
- readonly CORRECTION_REQUESTED: "correction-requested";
814
- }>]>, "many">>;
682
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
683
+ type: z.ZodLiteral<"anyOf">;
684
+ terms: z.ZodArray<z.ZodString, "many">;
815
685
  }, "strip", z.ZodTypeAny, {
816
- anyOf?: string[] | undefined;
817
- noneOf?: string[] | undefined;
686
+ type: "anyOf";
687
+ terms: string[];
818
688
  }, {
819
- anyOf?: string[] | undefined;
820
- noneOf?: string[] | undefined;
821
- }>>>;
689
+ type: "anyOf";
690
+ terms: string[];
691
+ }>, z.ZodObject<{
692
+ type: z.ZodLiteral<"not">;
693
+ term: z.ZodString;
694
+ }, "strip", z.ZodTypeAny, {
695
+ type: "not";
696
+ term: string;
697
+ }, {
698
+ type: "not";
699
+ term: string;
700
+ }>]>, "many">>>;
822
701
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
823
702
  }, "strip", z.ZodTypeAny, {
824
- id?: string | undefined;
825
703
  status?: {
826
704
  type: "exact";
827
705
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -830,14 +708,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
830
708
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
831
709
  } | undefined;
832
710
  data?: any;
833
- createdByUserType?: "system" | "user" | undefined;
834
711
  createdAt?: {
712
+ type: "exact";
713
+ term: string;
714
+ } | {
835
715
  type: "range";
836
716
  gte: string;
837
717
  lte: string;
838
- } | {
839
- type: "exact";
840
- term: string;
841
718
  } | undefined;
842
719
  createdBy?: {
843
720
  type: "exact";
@@ -855,12 +732,12 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
855
732
  term: string;
856
733
  } | undefined;
857
734
  updatedAt?: {
735
+ type: "exact";
736
+ term: string;
737
+ } | {
858
738
  type: "range";
859
739
  gte: string;
860
740
  lte: string;
861
- } | {
862
- type: "exact";
863
- term: string;
864
741
  } | undefined;
865
742
  trackingId?: {
866
743
  type: "exact";
@@ -877,18 +754,21 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
877
754
  type: "exact";
878
755
  term: string;
879
756
  } | undefined;
880
- flags?: {
881
- anyOf?: string[] | undefined;
882
- noneOf?: string[] | undefined;
883
- } | undefined;
757
+ flags?: ({
758
+ type: "anyOf";
759
+ terms: string[];
760
+ } | {
761
+ type: "not";
762
+ term: string;
763
+ })[] | undefined;
884
764
  eventType?: string | undefined;
885
765
  'legalStatus.REGISTERED.createdAt'?: {
766
+ type: "exact";
767
+ term: string;
768
+ } | {
886
769
  type: "range";
887
770
  gte: string;
888
771
  lte: string;
889
- } | {
890
- type: "exact";
891
- term: string;
892
772
  } | undefined;
893
773
  'legalStatus.REGISTERED.createdAtLocation'?: {
894
774
  type: "exact";
@@ -897,12 +777,7 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
897
777
  type: "within";
898
778
  location: string;
899
779
  } | undefined;
900
- 'legalStatus.REGISTERED.registrationNumber'?: {
901
- type: "exact";
902
- term: string;
903
- } | undefined;
904
780
  }, {
905
- id?: string | undefined;
906
781
  status?: {
907
782
  type: "exact";
908
783
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -911,14 +786,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
911
786
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
912
787
  } | undefined;
913
788
  data?: any;
914
- createdByUserType?: "system" | "user" | undefined;
915
789
  createdAt?: {
790
+ type: "exact";
791
+ term: string;
792
+ } | {
916
793
  type: "range";
917
794
  gte: string;
918
795
  lte: string;
919
- } | {
920
- type: "exact";
921
- term: string;
922
796
  } | undefined;
923
797
  createdBy?: {
924
798
  type: "exact";
@@ -936,12 +810,12 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
936
810
  term: string;
937
811
  } | undefined;
938
812
  updatedAt?: {
813
+ type: "exact";
814
+ term: string;
815
+ } | {
939
816
  type: "range";
940
817
  gte: string;
941
818
  lte: string;
942
- } | {
943
- type: "exact";
944
- term: string;
945
819
  } | undefined;
946
820
  trackingId?: {
947
821
  type: "exact";
@@ -958,99 +832,21 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
958
832
  type: "exact";
959
833
  term: string;
960
834
  } | undefined;
961
- flags?: {
962
- anyOf?: string[] | undefined;
963
- noneOf?: string[] | undefined;
964
- } | undefined;
965
- eventType?: string | undefined;
966
- 'legalStatus.REGISTERED.createdAt'?: {
967
- type: "range";
968
- gte: string;
969
- lte: string;
970
- } | {
971
- type: "exact";
972
- term: string;
973
- } | undefined;
974
- 'legalStatus.REGISTERED.createdAtLocation'?: {
975
- type: "exact";
976
- term: string;
977
- } | {
978
- type: "within";
979
- location: string;
980
- } | undefined;
981
- 'legalStatus.REGISTERED.registrationNumber'?: {
982
- type: "exact";
983
- term: string;
984
- } | undefined;
985
- }>, {
986
- id?: string | undefined;
987
- status?: {
988
- type: "exact";
989
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
990
- } | {
835
+ flags?: ({
991
836
  type: "anyOf";
992
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
993
- } | undefined;
994
- data?: any;
995
- createdByUserType?: "system" | "user" | undefined;
996
- createdAt?: {
997
- type: "range";
998
- gte: string;
999
- lte: string;
1000
- } | {
1001
- type: "exact";
1002
- term: string;
1003
- } | undefined;
1004
- createdBy?: {
1005
- type: "exact";
1006
- term: string;
1007
- } | undefined;
1008
- createdAtLocation?: {
1009
- type: "exact";
1010
- term: string;
1011
- } | {
1012
- type: "within";
1013
- location: string;
1014
- } | undefined;
1015
- assignedTo?: {
1016
- type: "exact";
1017
- term: string;
1018
- } | undefined;
1019
- updatedAt?: {
1020
- type: "range";
1021
- gte: string;
1022
- lte: string;
837
+ terms: string[];
1023
838
  } | {
1024
- type: "exact";
839
+ type: "not";
1025
840
  term: string;
1026
- } | undefined;
1027
- trackingId?: {
1028
- type: "exact";
1029
- term: string;
1030
- } | undefined;
1031
- updatedAtLocation?: {
841
+ })[] | undefined;
842
+ eventType?: string | undefined;
843
+ 'legalStatus.REGISTERED.createdAt'?: {
1032
844
  type: "exact";
1033
845
  term: string;
1034
846
  } | {
1035
- type: "within";
1036
- location: string;
1037
- } | undefined;
1038
- updatedBy?: {
1039
- type: "exact";
1040
- term: string;
1041
- } | undefined;
1042
- flags?: {
1043
- anyOf?: string[] | undefined;
1044
- noneOf?: string[] | undefined;
1045
- } | undefined;
1046
- eventType?: string | undefined;
1047
- 'legalStatus.REGISTERED.createdAt'?: {
1048
847
  type: "range";
1049
848
  gte: string;
1050
849
  lte: string;
1051
- } | {
1052
- type: "exact";
1053
- term: string;
1054
850
  } | undefined;
1055
851
  'legalStatus.REGISTERED.createdAtLocation'?: {
1056
852
  type: "exact";
@@ -1059,96 +855,10 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1059
855
  type: "within";
1060
856
  location: string;
1061
857
  } | undefined;
1062
- 'legalStatus.REGISTERED.registrationNumber'?: {
1063
- type: "exact";
1064
- term: string;
1065
- } | undefined;
1066
- }, {
1067
- id?: string | undefined;
1068
- status?: {
1069
- type: "exact";
1070
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1071
- } | {
1072
- type: "anyOf";
1073
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1074
- } | undefined;
1075
- data?: any;
1076
- createdByUserType?: "system" | "user" | undefined;
1077
- createdAt?: {
1078
- type: "range";
1079
- gte: string;
1080
- lte: string;
1081
- } | {
1082
- type: "exact";
1083
- term: string;
1084
- } | undefined;
1085
- createdBy?: {
1086
- type: "exact";
1087
- term: string;
1088
- } | undefined;
1089
- createdAtLocation?: {
1090
- type: "exact";
1091
- term: string;
1092
- } | {
1093
- type: "within";
1094
- location: string;
1095
- } | undefined;
1096
- assignedTo?: {
1097
- type: "exact";
1098
- term: string;
1099
- } | undefined;
1100
- updatedAt?: {
1101
- type: "range";
1102
- gte: string;
1103
- lte: string;
1104
- } | {
1105
- type: "exact";
1106
- term: string;
1107
- } | undefined;
1108
- trackingId?: {
1109
- type: "exact";
1110
- term: string;
1111
- } | undefined;
1112
- updatedAtLocation?: {
1113
- type: "exact";
1114
- term: string;
1115
- } | {
1116
- type: "within";
1117
- location: string;
1118
- } | undefined;
1119
- updatedBy?: {
1120
- type: "exact";
1121
- term: string;
1122
- } | undefined;
1123
- flags?: {
1124
- anyOf?: string[] | undefined;
1125
- noneOf?: string[] | undefined;
1126
- } | undefined;
1127
- eventType?: string | undefined;
1128
- 'legalStatus.REGISTERED.createdAt'?: {
1129
- type: "range";
1130
- gte: string;
1131
- lte: string;
1132
- } | {
1133
- type: "exact";
1134
- term: string;
1135
- } | undefined;
1136
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1137
- type: "exact";
1138
- term: string;
1139
- } | {
1140
- type: "within";
1141
- location: string;
1142
- } | undefined;
1143
- 'legalStatus.REGISTERED.registrationNumber'?: {
1144
- type: "exact";
1145
- term: string;
1146
- } | undefined;
1147
858
  }>;
1148
859
  export declare const QueryType: z.ZodObject<{
1149
860
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
1150
- clauses: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
1151
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
861
+ clauses: z.ZodEffects<z.ZodArray<z.ZodObject<{
1152
862
  eventType: z.ZodOptional<z.ZodString>;
1153
863
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1154
864
  type: z.ZodLiteral<"anyOf">;
@@ -1169,25 +879,20 @@ export declare const QueryType: z.ZodObject<{
1169
879
  type: "exact";
1170
880
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1171
881
  }>]>>>;
1172
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
882
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1173
883
  type: z.ZodLiteral<"exact">;
1174
884
  term: z.ZodString;
1175
- }, {
1176
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1177
- }>, "strip", z.ZodTypeAny, {
885
+ }, "strip", z.ZodTypeAny, {
1178
886
  type: "exact";
1179
887
  term: string;
1180
888
  }, {
1181
889
  type: "exact";
1182
890
  term: string;
1183
- }>, z.ZodObject<z.objectUtil.extendShape<{
891
+ }>, z.ZodObject<{
1184
892
  type: z.ZodLiteral<"range">;
1185
893
  gte: z.ZodString;
1186
894
  lte: z.ZodString;
1187
- }, {
1188
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1189
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1190
- }>, "strip", z.ZodTypeAny, {
895
+ }, "strip", z.ZodTypeAny, {
1191
896
  type: "range";
1192
897
  gte: string;
1193
898
  lte: string;
@@ -1196,25 +901,20 @@ export declare const QueryType: z.ZodObject<{
1196
901
  gte: string;
1197
902
  lte: string;
1198
903
  }>]>>>;
1199
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
904
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1200
905
  type: z.ZodLiteral<"exact">;
1201
906
  term: z.ZodString;
1202
- }, {
1203
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1204
- }>, "strip", z.ZodTypeAny, {
907
+ }, "strip", z.ZodTypeAny, {
1205
908
  type: "exact";
1206
909
  term: string;
1207
910
  }, {
1208
911
  type: "exact";
1209
912
  term: string;
1210
- }>, z.ZodObject<z.objectUtil.extendShape<{
913
+ }>, z.ZodObject<{
1211
914
  type: z.ZodLiteral<"range">;
1212
915
  gte: z.ZodString;
1213
916
  lte: z.ZodString;
1214
- }, {
1215
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1216
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1217
- }>, "strip", z.ZodTypeAny, {
917
+ }, "strip", z.ZodTypeAny, {
1218
918
  type: "range";
1219
919
  gte: string;
1220
920
  lte: string;
@@ -1223,25 +923,20 @@ export declare const QueryType: z.ZodObject<{
1223
923
  gte: string;
1224
924
  lte: string;
1225
925
  }>]>>>;
1226
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
926
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1227
927
  type: z.ZodLiteral<"exact">;
1228
928
  term: z.ZodString;
1229
- }, {
1230
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1231
- }>, "strip", z.ZodTypeAny, {
929
+ }, "strip", z.ZodTypeAny, {
1232
930
  type: "exact";
1233
931
  term: string;
1234
932
  }, {
1235
933
  type: "exact";
1236
934
  term: string;
1237
- }>, z.ZodObject<z.objectUtil.extendShape<{
935
+ }>, z.ZodObject<{
1238
936
  type: z.ZodLiteral<"range">;
1239
937
  gte: z.ZodString;
1240
938
  lte: z.ZodString;
1241
- }, {
1242
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1243
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1244
- }>, "strip", z.ZodTypeAny, {
939
+ }, "strip", z.ZodTypeAny, {
1245
940
  type: "range";
1246
941
  gte: string;
1247
942
  lte: string;
@@ -1269,16 +964,6 @@ export declare const QueryType: z.ZodObject<{
1269
964
  type: "exact";
1270
965
  term: string;
1271
966
  }>]>>>;
1272
- 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1273
- type: z.ZodLiteral<"exact">;
1274
- term: z.ZodString;
1275
- }, "strip", z.ZodTypeAny, {
1276
- type: "exact";
1277
- term: string;
1278
- }, {
1279
- type: "exact";
1280
- term: string;
1281
- }>>>;
1282
967
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1283
968
  type: z.ZodLiteral<"within">;
1284
969
  location: z.ZodString;
@@ -1327,7 +1012,6 @@ export declare const QueryType: z.ZodObject<{
1327
1012
  type: "exact";
1328
1013
  term: string;
1329
1014
  }>>>;
1330
- createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
1331
1015
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1332
1016
  type: z.ZodLiteral<"exact">;
1333
1017
  term: z.ZodString;
@@ -1358,29 +1042,27 @@ export declare const QueryType: z.ZodObject<{
1358
1042
  type: "exact";
1359
1043
  term: string;
1360
1044
  }>>>;
1361
- flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1362
- anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1363
- readonly PRINTED: "printed";
1364
- readonly INCOMPLETE: "incomplete";
1365
- readonly REJECTED: "rejected";
1366
- readonly CORRECTION_REQUESTED: "correction-requested";
1367
- }>]>, "many">>;
1368
- noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1369
- readonly PRINTED: "printed";
1370
- readonly INCOMPLETE: "incomplete";
1371
- readonly REJECTED: "rejected";
1372
- readonly CORRECTION_REQUESTED: "correction-requested";
1373
- }>]>, "many">>;
1045
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1046
+ type: z.ZodLiteral<"anyOf">;
1047
+ terms: z.ZodArray<z.ZodString, "many">;
1374
1048
  }, "strip", z.ZodTypeAny, {
1375
- anyOf?: string[] | undefined;
1376
- noneOf?: string[] | undefined;
1049
+ type: "anyOf";
1050
+ terms: string[];
1377
1051
  }, {
1378
- anyOf?: string[] | undefined;
1379
- noneOf?: string[] | undefined;
1380
- }>>>;
1052
+ type: "anyOf";
1053
+ terms: string[];
1054
+ }>, z.ZodObject<{
1055
+ type: z.ZodLiteral<"not">;
1056
+ term: z.ZodString;
1057
+ }, "strip", z.ZodTypeAny, {
1058
+ type: "not";
1059
+ term: string;
1060
+ }, {
1061
+ type: "not";
1062
+ term: string;
1063
+ }>]>, "many">>>;
1381
1064
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1382
1065
  }, "strip", z.ZodTypeAny, {
1383
- id?: string | undefined;
1384
1066
  status?: {
1385
1067
  type: "exact";
1386
1068
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1389,95 +1071,13 @@ export declare const QueryType: z.ZodObject<{
1389
1071
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1390
1072
  } | undefined;
1391
1073
  data?: any;
1392
- createdByUserType?: "system" | "user" | undefined;
1393
1074
  createdAt?: {
1394
- type: "range";
1395
- gte: string;
1396
- lte: string;
1397
- } | {
1398
- type: "exact";
1399
- term: string;
1400
- } | undefined;
1401
- createdBy?: {
1402
- type: "exact";
1403
- term: string;
1404
- } | undefined;
1405
- createdAtLocation?: {
1406
- type: "exact";
1407
- term: string;
1408
- } | {
1409
- type: "within";
1410
- location: string;
1411
- } | undefined;
1412
- assignedTo?: {
1413
- type: "exact";
1414
- term: string;
1415
- } | undefined;
1416
- updatedAt?: {
1417
- type: "range";
1418
- gte: string;
1419
- lte: string;
1420
- } | {
1421
- type: "exact";
1422
- term: string;
1423
- } | undefined;
1424
- trackingId?: {
1425
- type: "exact";
1426
- term: string;
1427
- } | undefined;
1428
- updatedAtLocation?: {
1429
- type: "exact";
1430
- term: string;
1431
- } | {
1432
- type: "within";
1433
- location: string;
1434
- } | undefined;
1435
- updatedBy?: {
1436
- type: "exact";
1437
- term: string;
1438
- } | undefined;
1439
- flags?: {
1440
- anyOf?: string[] | undefined;
1441
- noneOf?: string[] | undefined;
1442
- } | undefined;
1443
- eventType?: string | undefined;
1444
- 'legalStatus.REGISTERED.createdAt'?: {
1445
- type: "range";
1446
- gte: string;
1447
- lte: string;
1448
- } | {
1449
- type: "exact";
1450
- term: string;
1451
- } | undefined;
1452
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1453
1075
  type: "exact";
1454
1076
  term: string;
1455
1077
  } | {
1456
- type: "within";
1457
- location: string;
1458
- } | undefined;
1459
- 'legalStatus.REGISTERED.registrationNumber'?: {
1460
- type: "exact";
1461
- term: string;
1462
- } | undefined;
1463
- }, {
1464
- id?: string | undefined;
1465
- status?: {
1466
- type: "exact";
1467
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1468
- } | {
1469
- type: "anyOf";
1470
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1471
- } | undefined;
1472
- data?: any;
1473
- createdByUserType?: "system" | "user" | undefined;
1474
- createdAt?: {
1475
1078
  type: "range";
1476
1079
  gte: string;
1477
1080
  lte: string;
1478
- } | {
1479
- type: "exact";
1480
- term: string;
1481
1081
  } | undefined;
1482
1082
  createdBy?: {
1483
1083
  type: "exact";
@@ -1495,12 +1095,12 @@ export declare const QueryType: z.ZodObject<{
1495
1095
  term: string;
1496
1096
  } | undefined;
1497
1097
  updatedAt?: {
1098
+ type: "exact";
1099
+ term: string;
1100
+ } | {
1498
1101
  type: "range";
1499
1102
  gte: string;
1500
1103
  lte: string;
1501
- } | {
1502
- type: "exact";
1503
- term: string;
1504
1104
  } | undefined;
1505
1105
  trackingId?: {
1506
1106
  type: "exact";
@@ -1517,99 +1117,21 @@ export declare const QueryType: z.ZodObject<{
1517
1117
  type: "exact";
1518
1118
  term: string;
1519
1119
  } | undefined;
1520
- flags?: {
1521
- anyOf?: string[] | undefined;
1522
- noneOf?: string[] | undefined;
1523
- } | undefined;
1524
- eventType?: string | undefined;
1525
- 'legalStatus.REGISTERED.createdAt'?: {
1526
- type: "range";
1527
- gte: string;
1528
- lte: string;
1529
- } | {
1530
- type: "exact";
1531
- term: string;
1532
- } | undefined;
1533
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1534
- type: "exact";
1535
- term: string;
1536
- } | {
1537
- type: "within";
1538
- location: string;
1539
- } | undefined;
1540
- 'legalStatus.REGISTERED.registrationNumber'?: {
1541
- type: "exact";
1542
- term: string;
1543
- } | undefined;
1544
- }>, {
1545
- id?: string | undefined;
1546
- status?: {
1547
- type: "exact";
1548
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1549
- } | {
1120
+ flags?: ({
1550
1121
  type: "anyOf";
1551
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1552
- } | undefined;
1553
- data?: any;
1554
- createdByUserType?: "system" | "user" | undefined;
1555
- createdAt?: {
1556
- type: "range";
1557
- gte: string;
1558
- lte: string;
1559
- } | {
1560
- type: "exact";
1561
- term: string;
1562
- } | undefined;
1563
- createdBy?: {
1564
- type: "exact";
1565
- term: string;
1566
- } | undefined;
1567
- createdAtLocation?: {
1568
- type: "exact";
1569
- term: string;
1570
- } | {
1571
- type: "within";
1572
- location: string;
1573
- } | undefined;
1574
- assignedTo?: {
1575
- type: "exact";
1576
- term: string;
1577
- } | undefined;
1578
- updatedAt?: {
1579
- type: "range";
1580
- gte: string;
1581
- lte: string;
1122
+ terms: string[];
1582
1123
  } | {
1583
- type: "exact";
1124
+ type: "not";
1584
1125
  term: string;
1585
- } | undefined;
1586
- trackingId?: {
1587
- type: "exact";
1588
- term: string;
1589
- } | undefined;
1590
- updatedAtLocation?: {
1126
+ })[] | undefined;
1127
+ eventType?: string | undefined;
1128
+ 'legalStatus.REGISTERED.createdAt'?: {
1591
1129
  type: "exact";
1592
1130
  term: string;
1593
1131
  } | {
1594
- type: "within";
1595
- location: string;
1596
- } | undefined;
1597
- updatedBy?: {
1598
- type: "exact";
1599
- term: string;
1600
- } | undefined;
1601
- flags?: {
1602
- anyOf?: string[] | undefined;
1603
- noneOf?: string[] | undefined;
1604
- } | undefined;
1605
- eventType?: string | undefined;
1606
- 'legalStatus.REGISTERED.createdAt'?: {
1607
1132
  type: "range";
1608
1133
  gte: string;
1609
1134
  lte: string;
1610
- } | {
1611
- type: "exact";
1612
- term: string;
1613
1135
  } | undefined;
1614
1136
  'legalStatus.REGISTERED.createdAtLocation'?: {
1615
1137
  type: "exact";
@@ -1618,12 +1140,7 @@ export declare const QueryType: z.ZodObject<{
1618
1140
  type: "within";
1619
1141
  location: string;
1620
1142
  } | undefined;
1621
- 'legalStatus.REGISTERED.registrationNumber'?: {
1622
- type: "exact";
1623
- term: string;
1624
- } | undefined;
1625
1143
  }, {
1626
- id?: string | undefined;
1627
1144
  status?: {
1628
1145
  type: "exact";
1629
1146
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1632,14 +1149,13 @@ export declare const QueryType: z.ZodObject<{
1632
1149
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1633
1150
  } | undefined;
1634
1151
  data?: any;
1635
- createdByUserType?: "system" | "user" | undefined;
1636
1152
  createdAt?: {
1153
+ type: "exact";
1154
+ term: string;
1155
+ } | {
1637
1156
  type: "range";
1638
1157
  gte: string;
1639
1158
  lte: string;
1640
- } | {
1641
- type: "exact";
1642
- term: string;
1643
1159
  } | undefined;
1644
1160
  createdBy?: {
1645
1161
  type: "exact";
@@ -1657,12 +1173,12 @@ export declare const QueryType: z.ZodObject<{
1657
1173
  term: string;
1658
1174
  } | undefined;
1659
1175
  updatedAt?: {
1176
+ type: "exact";
1177
+ term: string;
1178
+ } | {
1660
1179
  type: "range";
1661
1180
  gte: string;
1662
1181
  lte: string;
1663
- } | {
1664
- type: "exact";
1665
- term: string;
1666
1182
  } | undefined;
1667
1183
  trackingId?: {
1668
1184
  type: "exact";
@@ -1679,99 +1195,21 @@ export declare const QueryType: z.ZodObject<{
1679
1195
  type: "exact";
1680
1196
  term: string;
1681
1197
  } | undefined;
1682
- flags?: {
1683
- anyOf?: string[] | undefined;
1684
- noneOf?: string[] | undefined;
1685
- } | undefined;
1686
- eventType?: string | undefined;
1687
- 'legalStatus.REGISTERED.createdAt'?: {
1688
- type: "range";
1689
- gte: string;
1690
- lte: string;
1691
- } | {
1692
- type: "exact";
1693
- term: string;
1694
- } | undefined;
1695
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1696
- type: "exact";
1697
- term: string;
1698
- } | {
1699
- type: "within";
1700
- location: string;
1701
- } | undefined;
1702
- 'legalStatus.REGISTERED.registrationNumber'?: {
1703
- type: "exact";
1704
- term: string;
1705
- } | undefined;
1706
- }>, "atleastone">, [{
1707
- id?: string | undefined;
1708
- status?: {
1709
- type: "exact";
1710
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1711
- } | {
1198
+ flags?: ({
1712
1199
  type: "anyOf";
1713
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1714
- } | undefined;
1715
- data?: any;
1716
- createdByUserType?: "system" | "user" | undefined;
1717
- createdAt?: {
1718
- type: "range";
1719
- gte: string;
1720
- lte: string;
1200
+ terms: string[];
1721
1201
  } | {
1722
- type: "exact";
1723
- term: string;
1724
- } | undefined;
1725
- createdBy?: {
1726
- type: "exact";
1727
- term: string;
1728
- } | undefined;
1729
- createdAtLocation?: {
1730
- type: "exact";
1202
+ type: "not";
1731
1203
  term: string;
1732
- } | {
1733
- type: "within";
1734
- location: string;
1735
- } | undefined;
1736
- assignedTo?: {
1737
- type: "exact";
1738
- term: string;
1739
- } | undefined;
1740
- updatedAt?: {
1741
- type: "range";
1742
- gte: string;
1743
- lte: string;
1744
- } | {
1745
- type: "exact";
1746
- term: string;
1747
- } | undefined;
1748
- trackingId?: {
1749
- type: "exact";
1750
- term: string;
1751
- } | undefined;
1752
- updatedAtLocation?: {
1204
+ })[] | undefined;
1205
+ eventType?: string | undefined;
1206
+ 'legalStatus.REGISTERED.createdAt'?: {
1753
1207
  type: "exact";
1754
1208
  term: string;
1755
1209
  } | {
1756
- type: "within";
1757
- location: string;
1758
- } | undefined;
1759
- updatedBy?: {
1760
- type: "exact";
1761
- term: string;
1762
- } | undefined;
1763
- flags?: {
1764
- anyOf?: string[] | undefined;
1765
- noneOf?: string[] | undefined;
1766
- } | undefined;
1767
- eventType?: string | undefined;
1768
- 'legalStatus.REGISTERED.createdAt'?: {
1769
1210
  type: "range";
1770
1211
  gte: string;
1771
1212
  lte: string;
1772
- } | {
1773
- type: "exact";
1774
- term: string;
1775
1213
  } | undefined;
1776
1214
  'legalStatus.REGISTERED.createdAtLocation'?: {
1777
1215
  type: "exact";
@@ -1780,12 +1218,7 @@ export declare const QueryType: z.ZodObject<{
1780
1218
  type: "within";
1781
1219
  location: string;
1782
1220
  } | undefined;
1783
- 'legalStatus.REGISTERED.registrationNumber'?: {
1784
- type: "exact";
1785
- term: string;
1786
- } | undefined;
1787
- }, ...{
1788
- id?: string | undefined;
1221
+ }>, "many">, {
1789
1222
  status?: {
1790
1223
  type: "exact";
1791
1224
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1794,14 +1227,13 @@ export declare const QueryType: z.ZodObject<{
1794
1227
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1795
1228
  } | undefined;
1796
1229
  data?: any;
1797
- createdByUserType?: "system" | "user" | undefined;
1798
1230
  createdAt?: {
1231
+ type: "exact";
1232
+ term: string;
1233
+ } | {
1799
1234
  type: "range";
1800
1235
  gte: string;
1801
1236
  lte: string;
1802
- } | {
1803
- type: "exact";
1804
- term: string;
1805
1237
  } | undefined;
1806
1238
  createdBy?: {
1807
1239
  type: "exact";
@@ -1819,12 +1251,12 @@ export declare const QueryType: z.ZodObject<{
1819
1251
  term: string;
1820
1252
  } | undefined;
1821
1253
  updatedAt?: {
1254
+ type: "exact";
1255
+ term: string;
1256
+ } | {
1822
1257
  type: "range";
1823
1258
  gte: string;
1824
1259
  lte: string;
1825
- } | {
1826
- type: "exact";
1827
- term: string;
1828
1260
  } | undefined;
1829
1261
  trackingId?: {
1830
1262
  type: "exact";
@@ -1841,18 +1273,21 @@ export declare const QueryType: z.ZodObject<{
1841
1273
  type: "exact";
1842
1274
  term: string;
1843
1275
  } | undefined;
1844
- flags?: {
1845
- anyOf?: string[] | undefined;
1846
- noneOf?: string[] | undefined;
1847
- } | undefined;
1276
+ flags?: ({
1277
+ type: "anyOf";
1278
+ terms: string[];
1279
+ } | {
1280
+ type: "not";
1281
+ term: string;
1282
+ })[] | undefined;
1848
1283
  eventType?: string | undefined;
1849
1284
  'legalStatus.REGISTERED.createdAt'?: {
1285
+ type: "exact";
1286
+ term: string;
1287
+ } | {
1850
1288
  type: "range";
1851
1289
  gte: string;
1852
1290
  lte: string;
1853
- } | {
1854
- type: "exact";
1855
- term: string;
1856
1291
  } | undefined;
1857
1292
  'legalStatus.REGISTERED.createdAtLocation'?: {
1858
1293
  type: "exact";
@@ -1861,15 +1296,10 @@ export declare const QueryType: z.ZodObject<{
1861
1296
  type: "within";
1862
1297
  location: string;
1863
1298
  } | undefined;
1864
- 'legalStatus.REGISTERED.registrationNumber'?: {
1865
- type: "exact";
1866
- term: string;
1867
- } | undefined;
1868
- }[]], unknown>;
1299
+ }[], unknown>;
1869
1300
  }, "strip", z.ZodTypeAny, {
1870
1301
  type: "and" | "or";
1871
- clauses: [{
1872
- id?: string | undefined;
1302
+ clauses: {
1873
1303
  status?: {
1874
1304
  type: "exact";
1875
1305
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1878,14 +1308,13 @@ export declare const QueryType: z.ZodObject<{
1878
1308
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1879
1309
  } | undefined;
1880
1310
  data?: any;
1881
- createdByUserType?: "system" | "user" | undefined;
1882
1311
  createdAt?: {
1312
+ type: "exact";
1313
+ term: string;
1314
+ } | {
1883
1315
  type: "range";
1884
1316
  gte: string;
1885
1317
  lte: string;
1886
- } | {
1887
- type: "exact";
1888
- term: string;
1889
1318
  } | undefined;
1890
1319
  createdBy?: {
1891
1320
  type: "exact";
@@ -1903,12 +1332,12 @@ export declare const QueryType: z.ZodObject<{
1903
1332
  term: string;
1904
1333
  } | undefined;
1905
1334
  updatedAt?: {
1335
+ type: "exact";
1336
+ term: string;
1337
+ } | {
1906
1338
  type: "range";
1907
1339
  gte: string;
1908
1340
  lte: string;
1909
- } | {
1910
- type: "exact";
1911
- term: string;
1912
1341
  } | undefined;
1913
1342
  trackingId?: {
1914
1343
  type: "exact";
@@ -1925,99 +1354,21 @@ export declare const QueryType: z.ZodObject<{
1925
1354
  type: "exact";
1926
1355
  term: string;
1927
1356
  } | undefined;
1928
- flags?: {
1929
- anyOf?: string[] | undefined;
1930
- noneOf?: string[] | undefined;
1931
- } | undefined;
1932
- eventType?: string | undefined;
1933
- 'legalStatus.REGISTERED.createdAt'?: {
1934
- type: "range";
1935
- gte: string;
1936
- lte: string;
1937
- } | {
1938
- type: "exact";
1939
- term: string;
1940
- } | undefined;
1941
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1942
- type: "exact";
1943
- term: string;
1944
- } | {
1945
- type: "within";
1946
- location: string;
1947
- } | undefined;
1948
- 'legalStatus.REGISTERED.registrationNumber'?: {
1949
- type: "exact";
1950
- term: string;
1951
- } | undefined;
1952
- }, ...{
1953
- id?: string | undefined;
1954
- status?: {
1955
- type: "exact";
1956
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1957
- } | {
1357
+ flags?: ({
1958
1358
  type: "anyOf";
1959
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1960
- } | undefined;
1961
- data?: any;
1962
- createdByUserType?: "system" | "user" | undefined;
1963
- createdAt?: {
1964
- type: "range";
1965
- gte: string;
1966
- lte: string;
1359
+ terms: string[];
1967
1360
  } | {
1968
- type: "exact";
1361
+ type: "not";
1969
1362
  term: string;
1970
- } | undefined;
1971
- createdBy?: {
1972
- type: "exact";
1973
- term: string;
1974
- } | undefined;
1975
- createdAtLocation?: {
1976
- type: "exact";
1977
- term: string;
1978
- } | {
1979
- type: "within";
1980
- location: string;
1981
- } | undefined;
1982
- assignedTo?: {
1983
- type: "exact";
1984
- term: string;
1985
- } | undefined;
1986
- updatedAt?: {
1987
- type: "range";
1988
- gte: string;
1989
- lte: string;
1990
- } | {
1991
- type: "exact";
1992
- term: string;
1993
- } | undefined;
1994
- trackingId?: {
1995
- type: "exact";
1996
- term: string;
1997
- } | undefined;
1998
- updatedAtLocation?: {
1363
+ })[] | undefined;
1364
+ eventType?: string | undefined;
1365
+ 'legalStatus.REGISTERED.createdAt'?: {
1999
1366
  type: "exact";
2000
1367
  term: string;
2001
1368
  } | {
2002
- type: "within";
2003
- location: string;
2004
- } | undefined;
2005
- updatedBy?: {
2006
- type: "exact";
2007
- term: string;
2008
- } | undefined;
2009
- flags?: {
2010
- anyOf?: string[] | undefined;
2011
- noneOf?: string[] | undefined;
2012
- } | undefined;
2013
- eventType?: string | undefined;
2014
- 'legalStatus.REGISTERED.createdAt'?: {
2015
1369
  type: "range";
2016
1370
  gte: string;
2017
1371
  lte: string;
2018
- } | {
2019
- type: "exact";
2020
- term: string;
2021
1372
  } | undefined;
2022
1373
  'legalStatus.REGISTERED.createdAtLocation'?: {
2023
1374
  type: "exact";
@@ -2026,21 +1377,12 @@ export declare const QueryType: z.ZodObject<{
2026
1377
  type: "within";
2027
1378
  location: string;
2028
1379
  } | undefined;
2029
- 'legalStatus.REGISTERED.registrationNumber'?: {
2030
- type: "exact";
2031
- term: string;
2032
- } | undefined;
2033
- }[]];
1380
+ }[];
2034
1381
  }, {
2035
1382
  type: "and" | "or";
2036
1383
  clauses?: unknown;
2037
1384
  }>;
2038
1385
  export type QueryType = z.infer<typeof QueryType>;
2039
1386
  export type QueryExpression = z.infer<typeof QueryExpression>;
2040
- export declare const SearchScopeAccessLevels: {
2041
- readonly MY_JURISDICTION: "my-jurisdiction";
2042
- readonly ALL: "all";
2043
- };
2044
- export type SearchScopeAccessLevels = (typeof SearchScopeAccessLevels)[keyof typeof SearchScopeAccessLevels];
2045
1387
  export {};
2046
1388
  //# sourceMappingURL=EventIndex.d.ts.map