@opencrvs/toolkit 1.8.0-rc.fb96ec1 → 1.8.0-rc.fbababd

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 (30) hide show
  1. package/dist/commons/api/router.d.ts +5865 -12088
  2. package/dist/commons/events/ActionConfig.d.ts +18584 -30632
  3. package/dist/commons/events/ActionDocument.d.ts +387 -486
  4. package/dist/commons/events/ActionInput.d.ts +126 -126
  5. package/dist/commons/events/ActionType.d.ts +0 -2
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +0 -204
  7. package/dist/commons/events/CountryConfigQueryInput.d.ts +412 -1160
  8. package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
  9. package/dist/commons/events/Draft.d.ts +23 -28
  10. package/dist/commons/events/EventConfig.d.ts +17504 -26141
  11. package/dist/commons/events/EventDocument.d.ts +275 -350
  12. package/dist/commons/events/EventIndex.d.ts +214 -629
  13. package/dist/commons/events/EventMetadata.d.ts +31 -73
  14. package/dist/commons/events/FieldConfig.d.ts +37 -19
  15. package/dist/commons/events/FormConfig.d.ts +66 -0
  16. package/dist/commons/events/PageConfig.d.ts +18 -0
  17. package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
  18. package/dist/commons/events/WorkqueueConfig.d.ts +740 -3237
  19. package/dist/commons/events/defineConfig.d.ts +1589 -3224
  20. package/dist/commons/events/field.d.ts +0 -5
  21. package/dist/commons/events/index.d.ts +0 -1
  22. package/dist/commons/events/scopes.d.ts +3 -2
  23. package/dist/commons/events/test.utils.d.ts +5 -28
  24. package/dist/commons/events/transactions.d.ts +1 -1
  25. package/dist/commons/events/utils.d.ts +1600 -3232
  26. package/dist/conditionals/index.js +17 -20
  27. package/dist/events/index.js +1312 -1681
  28. package/dist/scopes/index.d.ts +1 -4
  29. package/dist/scopes/index.js +17 -67
  30. package/package.json +3 -3
@@ -1,14 +1,13 @@
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
5
  status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
6
6
  legalStatuses: z.ZodObject<{
7
7
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8
8
  createdAt: z.ZodString;
9
9
  createdBy: z.ZodString;
10
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
11
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
10
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
11
  acceptedAt: z.ZodString;
13
12
  createdByRole: z.ZodString;
14
13
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17,23 +16,20 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
17
16
  createdBy: string;
18
17
  createdByRole: string;
19
18
  acceptedAt: string;
20
- createdByUserType?: "system" | "user" | null | undefined;
21
19
  createdBySignature?: string | null | undefined;
22
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
20
+ createdAtLocation?: string | null | undefined;
23
21
  }, {
24
22
  createdAt: string;
25
23
  createdBy: string;
26
24
  createdByRole: string;
27
25
  acceptedAt: string;
28
- createdByUserType?: "system" | "user" | null | undefined;
29
26
  createdBySignature?: string | null | undefined;
30
27
  createdAtLocation?: string | null | undefined;
31
28
  }>>>;
32
29
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
33
30
  createdAt: z.ZodString;
34
31
  createdBy: z.ZodString;
35
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
36
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
32
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
33
  acceptedAt: z.ZodString;
38
34
  createdByRole: z.ZodString;
39
35
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -45,16 +41,14 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
45
41
  createdByRole: string;
46
42
  registrationNumber: string;
47
43
  acceptedAt: string;
48
- createdByUserType?: "system" | "user" | null | undefined;
49
44
  createdBySignature?: string | null | undefined;
50
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
45
+ createdAtLocation?: string | null | undefined;
51
46
  }, {
52
47
  createdAt: string;
53
48
  createdBy: string;
54
49
  createdByRole: string;
55
50
  registrationNumber: string;
56
51
  acceptedAt: string;
57
- createdByUserType?: "system" | "user" | null | undefined;
58
52
  createdBySignature?: string | null | undefined;
59
53
  createdAtLocation?: string | null | undefined;
60
54
  }>>>;
@@ -64,9 +58,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
64
58
  createdBy: string;
65
59
  createdByRole: string;
66
60
  acceptedAt: string;
67
- createdByUserType?: "system" | "user" | null | undefined;
68
61
  createdBySignature?: string | null | undefined;
69
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
62
+ createdAtLocation?: string | null | undefined;
70
63
  } | null | undefined;
71
64
  REGISTERED?: {
72
65
  createdAt: string;
@@ -74,9 +67,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
74
67
  createdByRole: string;
75
68
  registrationNumber: string;
76
69
  acceptedAt: string;
77
- createdByUserType?: "system" | "user" | null | undefined;
78
70
  createdBySignature?: string | null | undefined;
79
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
71
+ createdAtLocation?: string | null | undefined;
80
72
  } | null | undefined;
81
73
  }, {
82
74
  DECLARED?: {
@@ -84,7 +76,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
84
76
  createdBy: string;
85
77
  createdByRole: string;
86
78
  acceptedAt: string;
87
- createdByUserType?: "system" | "user" | null | undefined;
88
79
  createdBySignature?: string | null | undefined;
89
80
  createdAtLocation?: string | null | undefined;
90
81
  } | null | undefined;
@@ -94,7 +85,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
94
85
  createdByRole: string;
95
86
  registrationNumber: string;
96
87
  acceptedAt: string;
97
- createdByUserType?: "system" | "user" | null | undefined;
98
88
  createdBySignature?: string | null | undefined;
99
89
  createdAtLocation?: string | null | undefined;
100
90
  } | null | undefined;
@@ -102,20 +92,16 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
102
92
  createdAt: z.ZodString;
103
93
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
94
  createdBy: z.ZodString;
105
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
106
95
  updatedByUserRole: z.ZodString;
107
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
96
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
97
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
98
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
99
  updatedAt: z.ZodString;
111
100
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
101
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
102
  trackingId: z.ZodString;
114
103
  flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
115
- readonly PRINTED: "printed";
116
- readonly INCOMPLETE: "incomplete";
117
- readonly REJECTED: "rejected";
118
- readonly CORRECTION_REQUESTED: "correction-requested";
104
+ readonly CERTIFICATE_PRINTED: "certificate-printed";
119
105
  }>]>, "many">;
120
106
  }, {
121
107
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
@@ -258,7 +244,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
258
244
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
259
245
  }>, "strip", z.ZodTypeAny, {
260
246
  type: string;
261
- id: string & z.BRAND<"UUID">;
247
+ id: string;
262
248
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
263
249
  createdAt: string;
264
250
  createdBy: string;
@@ -316,9 +302,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
316
302
  createdBy: string;
317
303
  createdByRole: string;
318
304
  acceptedAt: string;
319
- createdByUserType?: "system" | "user" | null | undefined;
320
305
  createdBySignature?: string | null | undefined;
321
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
306
+ createdAtLocation?: string | null | undefined;
322
307
  } | null | undefined;
323
308
  REGISTERED?: {
324
309
  createdAt: string;
@@ -326,19 +311,17 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
326
311
  createdByRole: string;
327
312
  registrationNumber: string;
328
313
  acceptedAt: string;
329
- createdByUserType?: "system" | "user" | null | undefined;
330
314
  createdBySignature?: string | null | undefined;
331
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
315
+ createdAtLocation?: string | null | undefined;
332
316
  } | null | undefined;
333
317
  };
334
318
  updatedByUserRole: string;
335
319
  flags: string[];
336
- createdByUserType?: "system" | "user" | null | undefined;
337
320
  createdBySignature?: string | null | undefined;
338
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
321
+ createdAtLocation?: string | null | undefined;
339
322
  assignedTo?: string | null | undefined;
340
323
  dateOfEvent?: string | null | undefined;
341
- updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
324
+ updatedAtLocation?: string | null | undefined;
342
325
  updatedBy?: string | null | undefined;
343
326
  }, {
344
327
  type: string;
@@ -400,7 +383,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
400
383
  createdBy: string;
401
384
  createdByRole: string;
402
385
  acceptedAt: string;
403
- createdByUserType?: "system" | "user" | null | undefined;
404
386
  createdBySignature?: string | null | undefined;
405
387
  createdAtLocation?: string | null | undefined;
406
388
  } | null | undefined;
@@ -410,14 +392,12 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
410
392
  createdByRole: string;
411
393
  registrationNumber: string;
412
394
  acceptedAt: string;
413
- createdByUserType?: "system" | "user" | null | undefined;
414
395
  createdBySignature?: string | null | undefined;
415
396
  createdAtLocation?: string | null | undefined;
416
397
  } | null | undefined;
417
398
  };
418
399
  updatedByUserRole: string;
419
400
  flags: string[];
420
- createdByUserType?: "system" | "user" | null | undefined;
421
401
  createdBySignature?: string | null | undefined;
422
402
  createdAtLocation?: string | null | undefined;
423
403
  assignedTo?: string | null | undefined;
@@ -454,16 +434,6 @@ export declare const Exact: z.ZodObject<{
454
434
  type: "exact";
455
435
  term: string;
456
436
  }>;
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
437
  export declare const AnyOf: z.ZodObject<{
468
438
  type: z.ZodLiteral<"anyOf">;
469
439
  terms: z.ZodArray<z.ZodString, "many">;
@@ -474,6 +444,16 @@ export declare const AnyOf: z.ZodObject<{
474
444
  type: "anyOf";
475
445
  terms: string[];
476
446
  }>;
447
+ export declare const ExactStatus: z.ZodObject<{
448
+ type: z.ZodLiteral<"exact">;
449
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ type: "exact";
452
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
453
+ }, {
454
+ type: "exact";
455
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
456
+ }>;
477
457
  export declare const AnyOfStatus: z.ZodObject<{
478
458
  type: z.ZodLiteral<"anyOf">;
479
459
  terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
@@ -497,25 +477,15 @@ export declare const Range: z.ZodObject<{
497
477
  gte: string;
498
478
  lte: string;
499
479
  }>;
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">>;
480
+ export declare const Not: z.ZodObject<{
481
+ type: z.ZodLiteral<"not">;
482
+ term: z.ZodString;
513
483
  }, "strip", z.ZodTypeAny, {
514
- anyOf?: string[] | undefined;
515
- noneOf?: string[] | undefined;
484
+ type: "not";
485
+ term: string;
516
486
  }, {
517
- anyOf?: string[] | undefined;
518
- noneOf?: string[] | undefined;
487
+ type: "not";
488
+ term: string;
519
489
  }>;
520
490
  export declare const Within: z.ZodObject<{
521
491
  type: z.ZodLiteral<"within">;
@@ -527,53 +497,20 @@ export declare const Within: z.ZodObject<{
527
497
  type: "within";
528
498
  location: string;
529
499
  }>;
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<{
500
+ export declare const DateCondition: z.ZodUnion<[z.ZodObject<{
559
501
  type: z.ZodLiteral<"exact">;
560
502
  term: z.ZodString;
561
- }, {
562
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
563
- }>, "strip", z.ZodTypeAny, {
503
+ }, "strip", z.ZodTypeAny, {
564
504
  type: "exact";
565
505
  term: string;
566
506
  }, {
567
507
  type: "exact";
568
508
  term: string;
569
- }>, z.ZodObject<z.objectUtil.extendShape<{
509
+ }>, z.ZodObject<{
570
510
  type: z.ZodLiteral<"range">;
571
511
  gte: z.ZodString;
572
512
  lte: z.ZodString;
573
- }, {
574
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
575
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
576
- }>, "strip", z.ZodTypeAny, {
513
+ }, "strip", z.ZodTypeAny, {
577
514
  type: "range";
578
515
  gte: string;
579
516
  lte: string;
@@ -583,13 +520,12 @@ export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
583
520
  lte: string;
584
521
  }>]>;
585
522
  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>;
523
+ 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
524
  type QueryMap = {
588
525
  [key: string]: BaseInput | QueryMap;
589
526
  };
590
527
  export type QueryInputType = BaseInput | QueryMap;
591
- export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
592
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
528
+ export declare const QueryExpression: z.ZodObject<{
593
529
  eventType: z.ZodOptional<z.ZodString>;
594
530
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
595
531
  type: z.ZodLiteral<"anyOf">;
@@ -610,25 +546,20 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
610
546
  type: "exact";
611
547
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
612
548
  }>]>>>;
613
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
549
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
614
550
  type: z.ZodLiteral<"exact">;
615
551
  term: z.ZodString;
616
- }, {
617
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
618
- }>, "strip", z.ZodTypeAny, {
552
+ }, "strip", z.ZodTypeAny, {
619
553
  type: "exact";
620
554
  term: string;
621
555
  }, {
622
556
  type: "exact";
623
557
  term: string;
624
- }>, z.ZodObject<z.objectUtil.extendShape<{
558
+ }>, z.ZodObject<{
625
559
  type: z.ZodLiteral<"range">;
626
560
  gte: z.ZodString;
627
561
  lte: z.ZodString;
628
- }, {
629
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
630
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
631
- }>, "strip", z.ZodTypeAny, {
562
+ }, "strip", z.ZodTypeAny, {
632
563
  type: "range";
633
564
  gte: string;
634
565
  lte: string;
@@ -637,25 +568,20 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
637
568
  gte: string;
638
569
  lte: string;
639
570
  }>]>>>;
640
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
571
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
641
572
  type: z.ZodLiteral<"exact">;
642
573
  term: z.ZodString;
643
- }, {
644
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
645
- }>, "strip", z.ZodTypeAny, {
574
+ }, "strip", z.ZodTypeAny, {
646
575
  type: "exact";
647
576
  term: string;
648
577
  }, {
649
578
  type: "exact";
650
579
  term: string;
651
- }>, z.ZodObject<z.objectUtil.extendShape<{
580
+ }>, z.ZodObject<{
652
581
  type: z.ZodLiteral<"range">;
653
582
  gte: z.ZodString;
654
583
  lte: z.ZodString;
655
- }, {
656
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
657
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
658
- }>, "strip", z.ZodTypeAny, {
584
+ }, "strip", z.ZodTypeAny, {
659
585
  type: "range";
660
586
  gte: string;
661
587
  lte: string;
@@ -664,25 +590,20 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
664
590
  gte: string;
665
591
  lte: string;
666
592
  }>]>>>;
667
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
593
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
668
594
  type: z.ZodLiteral<"exact">;
669
595
  term: z.ZodString;
670
- }, {
671
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
672
- }>, "strip", z.ZodTypeAny, {
596
+ }, "strip", z.ZodTypeAny, {
673
597
  type: "exact";
674
598
  term: string;
675
599
  }, {
676
600
  type: "exact";
677
601
  term: string;
678
- }>, z.ZodObject<z.objectUtil.extendShape<{
602
+ }>, z.ZodObject<{
679
603
  type: z.ZodLiteral<"range">;
680
604
  gte: z.ZodString;
681
605
  lte: z.ZodString;
682
- }, {
683
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
684
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
685
- }>, "strip", z.ZodTypeAny, {
606
+ }, "strip", z.ZodTypeAny, {
686
607
  type: "range";
687
608
  gte: string;
688
609
  lte: string;
@@ -768,7 +689,6 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
768
689
  type: "exact";
769
690
  term: string;
770
691
  }>>>;
771
- createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
772
692
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
773
693
  type: z.ZodLiteral<"exact">;
774
694
  term: z.ZodString;
@@ -799,29 +719,27 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
799
719
  type: "exact";
800
720
  term: string;
801
721
  }>>>;
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">>;
722
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
723
+ type: z.ZodLiteral<"anyOf">;
724
+ terms: z.ZodArray<z.ZodString, "many">;
815
725
  }, "strip", z.ZodTypeAny, {
816
- anyOf?: string[] | undefined;
817
- noneOf?: string[] | undefined;
726
+ type: "anyOf";
727
+ terms: string[];
818
728
  }, {
819
- anyOf?: string[] | undefined;
820
- noneOf?: string[] | undefined;
821
- }>>>;
729
+ type: "anyOf";
730
+ terms: string[];
731
+ }>, z.ZodObject<{
732
+ type: z.ZodLiteral<"not">;
733
+ term: z.ZodString;
734
+ }, "strip", z.ZodTypeAny, {
735
+ type: "not";
736
+ term: string;
737
+ }, {
738
+ type: "not";
739
+ term: string;
740
+ }>]>, "many">>>;
822
741
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
823
742
  }, "strip", z.ZodTypeAny, {
824
- id?: string | undefined;
825
743
  status?: {
826
744
  type: "exact";
827
745
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -830,14 +748,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
830
748
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
831
749
  } | undefined;
832
750
  data?: any;
833
- createdByUserType?: "system" | "user" | undefined;
834
751
  createdAt?: {
752
+ type: "exact";
753
+ term: string;
754
+ } | {
835
755
  type: "range";
836
756
  gte: string;
837
757
  lte: string;
838
- } | {
839
- type: "exact";
840
- term: string;
841
758
  } | undefined;
842
759
  createdBy?: {
843
760
  type: "exact";
@@ -855,12 +772,12 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
855
772
  term: string;
856
773
  } | undefined;
857
774
  updatedAt?: {
775
+ type: "exact";
776
+ term: string;
777
+ } | {
858
778
  type: "range";
859
779
  gte: string;
860
780
  lte: string;
861
- } | {
862
- type: "exact";
863
- term: string;
864
781
  } | undefined;
865
782
  trackingId?: {
866
783
  type: "exact";
@@ -877,99 +794,21 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
877
794
  type: "exact";
878
795
  term: string;
879
796
  } | undefined;
880
- flags?: {
881
- anyOf?: string[] | undefined;
882
- noneOf?: string[] | undefined;
883
- } | undefined;
884
- eventType?: string | undefined;
885
- 'legalStatus.REGISTERED.createdAt'?: {
886
- type: "range";
887
- gte: string;
888
- lte: string;
889
- } | {
890
- type: "exact";
891
- term: string;
892
- } | undefined;
893
- 'legalStatus.REGISTERED.createdAtLocation'?: {
894
- type: "exact";
895
- term: string;
896
- } | {
897
- type: "within";
898
- location: string;
899
- } | undefined;
900
- 'legalStatus.REGISTERED.registrationNumber'?: {
901
- type: "exact";
902
- term: string;
903
- } | undefined;
904
- }, {
905
- id?: string | undefined;
906
- status?: {
907
- type: "exact";
908
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
909
- } | {
797
+ flags?: ({
910
798
  type: "anyOf";
911
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
912
- } | undefined;
913
- data?: any;
914
- createdByUserType?: "system" | "user" | undefined;
915
- createdAt?: {
916
- type: "range";
917
- gte: string;
918
- lte: string;
919
- } | {
920
- type: "exact";
921
- term: string;
922
- } | undefined;
923
- createdBy?: {
924
- type: "exact";
925
- term: string;
926
- } | undefined;
927
- createdAtLocation?: {
928
- type: "exact";
929
- term: string;
930
- } | {
931
- type: "within";
932
- location: string;
933
- } | undefined;
934
- assignedTo?: {
935
- type: "exact";
936
- term: string;
937
- } | undefined;
938
- updatedAt?: {
939
- type: "range";
940
- gte: string;
941
- lte: string;
799
+ terms: string[];
942
800
  } | {
943
- type: "exact";
944
- term: string;
945
- } | undefined;
946
- trackingId?: {
947
- type: "exact";
801
+ type: "not";
948
802
  term: string;
949
- } | undefined;
950
- updatedAtLocation?: {
803
+ })[] | undefined;
804
+ eventType?: string | undefined;
805
+ 'legalStatus.REGISTERED.createdAt'?: {
951
806
  type: "exact";
952
807
  term: string;
953
808
  } | {
954
- type: "within";
955
- location: string;
956
- } | undefined;
957
- updatedBy?: {
958
- type: "exact";
959
- term: string;
960
- } | undefined;
961
- flags?: {
962
- anyOf?: string[] | undefined;
963
- noneOf?: string[] | undefined;
964
- } | undefined;
965
- eventType?: string | undefined;
966
- 'legalStatus.REGISTERED.createdAt'?: {
967
809
  type: "range";
968
810
  gte: string;
969
811
  lte: string;
970
- } | {
971
- type: "exact";
972
- term: string;
973
812
  } | undefined;
974
813
  'legalStatus.REGISTERED.createdAtLocation'?: {
975
814
  type: "exact";
@@ -982,8 +821,7 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
982
821
  type: "exact";
983
822
  term: string;
984
823
  } | undefined;
985
- }>, {
986
- id?: string | undefined;
824
+ }, {
987
825
  status?: {
988
826
  type: "exact";
989
827
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -992,14 +830,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
992
830
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
993
831
  } | undefined;
994
832
  data?: any;
995
- createdByUserType?: "system" | "user" | undefined;
996
833
  createdAt?: {
834
+ type: "exact";
835
+ term: string;
836
+ } | {
997
837
  type: "range";
998
838
  gte: string;
999
839
  lte: string;
1000
- } | {
1001
- type: "exact";
1002
- term: string;
1003
840
  } | undefined;
1004
841
  createdBy?: {
1005
842
  type: "exact";
@@ -1017,12 +854,12 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1017
854
  term: string;
1018
855
  } | undefined;
1019
856
  updatedAt?: {
857
+ type: "exact";
858
+ term: string;
859
+ } | {
1020
860
  type: "range";
1021
861
  gte: string;
1022
862
  lte: string;
1023
- } | {
1024
- type: "exact";
1025
- term: string;
1026
863
  } | undefined;
1027
864
  trackingId?: {
1028
865
  type: "exact";
@@ -1039,116 +876,37 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1039
876
  type: "exact";
1040
877
  term: string;
1041
878
  } | undefined;
1042
- flags?: {
1043
- anyOf?: string[] | undefined;
1044
- noneOf?: string[] | undefined;
1045
- } | undefined;
1046
- eventType?: string | undefined;
1047
- 'legalStatus.REGISTERED.createdAt'?: {
1048
- type: "range";
1049
- gte: string;
1050
- lte: string;
879
+ flags?: ({
880
+ type: "anyOf";
881
+ terms: string[];
1051
882
  } | {
1052
- type: "exact";
1053
- term: string;
1054
- } | undefined;
1055
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1056
- type: "exact";
883
+ type: "not";
1057
884
  term: string;
1058
- } | {
1059
- type: "within";
1060
- location: string;
1061
- } | undefined;
1062
- 'legalStatus.REGISTERED.registrationNumber'?: {
885
+ })[] | undefined;
886
+ eventType?: string | undefined;
887
+ 'legalStatus.REGISTERED.createdAt'?: {
1063
888
  type: "exact";
1064
889
  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
890
  } | {
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
891
  type: "range";
1079
892
  gte: string;
1080
893
  lte: string;
1081
- } | {
1082
- type: "exact";
1083
- term: string;
1084
- } | undefined;
1085
- createdBy?: {
1086
- type: "exact";
1087
- term: string;
1088
894
  } | undefined;
1089
- createdAtLocation?: {
895
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1090
896
  type: "exact";
1091
897
  term: string;
1092
898
  } | {
1093
899
  type: "within";
1094
900
  location: string;
1095
901
  } | 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'?: {
902
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1144
903
  type: "exact";
1145
904
  term: string;
1146
905
  } | undefined;
1147
906
  }>;
1148
907
  export declare const QueryType: z.ZodObject<{
1149
908
  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>>;
909
+ clauses: z.ZodEffects<z.ZodArray<z.ZodObject<{
1152
910
  eventType: z.ZodOptional<z.ZodString>;
1153
911
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1154
912
  type: z.ZodLiteral<"anyOf">;
@@ -1169,25 +927,20 @@ export declare const QueryType: z.ZodObject<{
1169
927
  type: "exact";
1170
928
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1171
929
  }>]>>>;
1172
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
930
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1173
931
  type: z.ZodLiteral<"exact">;
1174
932
  term: z.ZodString;
1175
- }, {
1176
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1177
- }>, "strip", z.ZodTypeAny, {
933
+ }, "strip", z.ZodTypeAny, {
1178
934
  type: "exact";
1179
935
  term: string;
1180
936
  }, {
1181
937
  type: "exact";
1182
938
  term: string;
1183
- }>, z.ZodObject<z.objectUtil.extendShape<{
939
+ }>, z.ZodObject<{
1184
940
  type: z.ZodLiteral<"range">;
1185
941
  gte: z.ZodString;
1186
942
  lte: z.ZodString;
1187
- }, {
1188
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1189
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1190
- }>, "strip", z.ZodTypeAny, {
943
+ }, "strip", z.ZodTypeAny, {
1191
944
  type: "range";
1192
945
  gte: string;
1193
946
  lte: string;
@@ -1196,25 +949,20 @@ export declare const QueryType: z.ZodObject<{
1196
949
  gte: string;
1197
950
  lte: string;
1198
951
  }>]>>>;
1199
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
952
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1200
953
  type: z.ZodLiteral<"exact">;
1201
954
  term: z.ZodString;
1202
- }, {
1203
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1204
- }>, "strip", z.ZodTypeAny, {
955
+ }, "strip", z.ZodTypeAny, {
1205
956
  type: "exact";
1206
957
  term: string;
1207
958
  }, {
1208
959
  type: "exact";
1209
960
  term: string;
1210
- }>, z.ZodObject<z.objectUtil.extendShape<{
961
+ }>, z.ZodObject<{
1211
962
  type: z.ZodLiteral<"range">;
1212
963
  gte: z.ZodString;
1213
964
  lte: z.ZodString;
1214
- }, {
1215
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1216
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1217
- }>, "strip", z.ZodTypeAny, {
965
+ }, "strip", z.ZodTypeAny, {
1218
966
  type: "range";
1219
967
  gte: string;
1220
968
  lte: string;
@@ -1223,25 +971,20 @@ export declare const QueryType: z.ZodObject<{
1223
971
  gte: string;
1224
972
  lte: string;
1225
973
  }>]>>>;
1226
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
974
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1227
975
  type: z.ZodLiteral<"exact">;
1228
976
  term: z.ZodString;
1229
- }, {
1230
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1231
- }>, "strip", z.ZodTypeAny, {
977
+ }, "strip", z.ZodTypeAny, {
1232
978
  type: "exact";
1233
979
  term: string;
1234
980
  }, {
1235
981
  type: "exact";
1236
982
  term: string;
1237
- }>, z.ZodObject<z.objectUtil.extendShape<{
983
+ }>, z.ZodObject<{
1238
984
  type: z.ZodLiteral<"range">;
1239
985
  gte: z.ZodString;
1240
986
  lte: z.ZodString;
1241
- }, {
1242
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1243
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1244
- }>, "strip", z.ZodTypeAny, {
987
+ }, "strip", z.ZodTypeAny, {
1245
988
  type: "range";
1246
989
  gte: string;
1247
990
  lte: string;
@@ -1327,7 +1070,6 @@ export declare const QueryType: z.ZodObject<{
1327
1070
  type: "exact";
1328
1071
  term: string;
1329
1072
  }>>>;
1330
- createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
1331
1073
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1332
1074
  type: z.ZodLiteral<"exact">;
1333
1075
  term: z.ZodString;
@@ -1358,29 +1100,27 @@ export declare const QueryType: z.ZodObject<{
1358
1100
  type: "exact";
1359
1101
  term: string;
1360
1102
  }>>>;
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">>;
1103
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1104
+ type: z.ZodLiteral<"anyOf">;
1105
+ terms: z.ZodArray<z.ZodString, "many">;
1374
1106
  }, "strip", z.ZodTypeAny, {
1375
- anyOf?: string[] | undefined;
1376
- noneOf?: string[] | undefined;
1107
+ type: "anyOf";
1108
+ terms: string[];
1377
1109
  }, {
1378
- anyOf?: string[] | undefined;
1379
- noneOf?: string[] | undefined;
1380
- }>>>;
1110
+ type: "anyOf";
1111
+ terms: string[];
1112
+ }>, z.ZodObject<{
1113
+ type: z.ZodLiteral<"not">;
1114
+ term: z.ZodString;
1115
+ }, "strip", z.ZodTypeAny, {
1116
+ type: "not";
1117
+ term: string;
1118
+ }, {
1119
+ type: "not";
1120
+ term: string;
1121
+ }>]>, "many">>>;
1381
1122
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1382
1123
  }, "strip", z.ZodTypeAny, {
1383
- id?: string | undefined;
1384
1124
  status?: {
1385
1125
  type: "exact";
1386
1126
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1389,95 +1129,13 @@ export declare const QueryType: z.ZodObject<{
1389
1129
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1390
1130
  } | undefined;
1391
1131
  data?: any;
1392
- createdByUserType?: "system" | "user" | undefined;
1393
1132
  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
1133
  type: "exact";
1407
1134
  term: string;
1408
1135
  } | {
1409
- type: "within";
1410
- location: string;
1411
- } | undefined;
1412
- assignedTo?: {
1413
- type: "exact";
1414
- term: string;
1415
- } | undefined;
1416
- updatedAt?: {
1417
1136
  type: "range";
1418
1137
  gte: string;
1419
1138
  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
- type: "exact";
1454
- term: string;
1455
- } | {
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
- type: "range";
1476
- gte: string;
1477
- lte: string;
1478
- } | {
1479
- type: "exact";
1480
- term: string;
1481
1139
  } | undefined;
1482
1140
  createdBy?: {
1483
1141
  type: "exact";
@@ -1495,12 +1153,12 @@ export declare const QueryType: z.ZodObject<{
1495
1153
  term: string;
1496
1154
  } | undefined;
1497
1155
  updatedAt?: {
1156
+ type: "exact";
1157
+ term: string;
1158
+ } | {
1498
1159
  type: "range";
1499
1160
  gte: string;
1500
1161
  lte: string;
1501
- } | {
1502
- type: "exact";
1503
- term: string;
1504
1162
  } | undefined;
1505
1163
  trackingId?: {
1506
1164
  type: "exact";
@@ -1517,99 +1175,21 @@ export declare const QueryType: z.ZodObject<{
1517
1175
  type: "exact";
1518
1176
  term: string;
1519
1177
  } | 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
- } | {
1178
+ flags?: ({
1550
1179
  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;
1180
+ terms: string[];
1559
1181
  } | {
1560
- type: "exact";
1182
+ type: "not";
1561
1183
  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;
1582
- } | {
1583
- type: "exact";
1584
- term: string;
1585
- } | undefined;
1586
- trackingId?: {
1587
- type: "exact";
1588
- term: string;
1589
- } | undefined;
1590
- updatedAtLocation?: {
1184
+ })[] | undefined;
1185
+ eventType?: string | undefined;
1186
+ 'legalStatus.REGISTERED.createdAt'?: {
1591
1187
  type: "exact";
1592
1188
  term: string;
1593
1189
  } | {
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
1190
  type: "range";
1608
1191
  gte: string;
1609
1192
  lte: string;
1610
- } | {
1611
- type: "exact";
1612
- term: string;
1613
1193
  } | undefined;
1614
1194
  'legalStatus.REGISTERED.createdAtLocation'?: {
1615
1195
  type: "exact";
@@ -1623,7 +1203,6 @@ export declare const QueryType: z.ZodObject<{
1623
1203
  term: string;
1624
1204
  } | undefined;
1625
1205
  }, {
1626
- id?: string | undefined;
1627
1206
  status?: {
1628
1207
  type: "exact";
1629
1208
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1632,14 +1211,13 @@ export declare const QueryType: z.ZodObject<{
1632
1211
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1633
1212
  } | undefined;
1634
1213
  data?: any;
1635
- createdByUserType?: "system" | "user" | undefined;
1636
1214
  createdAt?: {
1215
+ type: "exact";
1216
+ term: string;
1217
+ } | {
1637
1218
  type: "range";
1638
1219
  gte: string;
1639
1220
  lte: string;
1640
- } | {
1641
- type: "exact";
1642
- term: string;
1643
1221
  } | undefined;
1644
1222
  createdBy?: {
1645
1223
  type: "exact";
@@ -1657,12 +1235,12 @@ export declare const QueryType: z.ZodObject<{
1657
1235
  term: string;
1658
1236
  } | undefined;
1659
1237
  updatedAt?: {
1238
+ type: "exact";
1239
+ term: string;
1240
+ } | {
1660
1241
  type: "range";
1661
1242
  gte: string;
1662
1243
  lte: string;
1663
- } | {
1664
- type: "exact";
1665
- term: string;
1666
1244
  } | undefined;
1667
1245
  trackingId?: {
1668
1246
  type: "exact";
@@ -1679,18 +1257,21 @@ export declare const QueryType: z.ZodObject<{
1679
1257
  type: "exact";
1680
1258
  term: string;
1681
1259
  } | undefined;
1682
- flags?: {
1683
- anyOf?: string[] | undefined;
1684
- noneOf?: string[] | undefined;
1685
- } | undefined;
1260
+ flags?: ({
1261
+ type: "anyOf";
1262
+ terms: string[];
1263
+ } | {
1264
+ type: "not";
1265
+ term: string;
1266
+ })[] | undefined;
1686
1267
  eventType?: string | undefined;
1687
1268
  'legalStatus.REGISTERED.createdAt'?: {
1269
+ type: "exact";
1270
+ term: string;
1271
+ } | {
1688
1272
  type: "range";
1689
1273
  gte: string;
1690
1274
  lte: string;
1691
- } | {
1692
- type: "exact";
1693
- term: string;
1694
1275
  } | undefined;
1695
1276
  'legalStatus.REGISTERED.createdAtLocation'?: {
1696
1277
  type: "exact";
@@ -1704,7 +1285,6 @@ export declare const QueryType: z.ZodObject<{
1704
1285
  term: string;
1705
1286
  } | undefined;
1706
1287
  }>, "atleastone">, [{
1707
- id?: string | undefined;
1708
1288
  status?: {
1709
1289
  type: "exact";
1710
1290
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1713,14 +1293,13 @@ export declare const QueryType: z.ZodObject<{
1713
1293
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1714
1294
  } | undefined;
1715
1295
  data?: any;
1716
- createdByUserType?: "system" | "user" | undefined;
1717
1296
  createdAt?: {
1297
+ type: "exact";
1298
+ term: string;
1299
+ } | {
1718
1300
  type: "range";
1719
1301
  gte: string;
1720
1302
  lte: string;
1721
- } | {
1722
- type: "exact";
1723
- term: string;
1724
1303
  } | undefined;
1725
1304
  createdBy?: {
1726
1305
  type: "exact";
@@ -1738,12 +1317,12 @@ export declare const QueryType: z.ZodObject<{
1738
1317
  term: string;
1739
1318
  } | undefined;
1740
1319
  updatedAt?: {
1320
+ type: "exact";
1321
+ term: string;
1322
+ } | {
1741
1323
  type: "range";
1742
1324
  gte: string;
1743
1325
  lte: string;
1744
- } | {
1745
- type: "exact";
1746
- term: string;
1747
1326
  } | undefined;
1748
1327
  trackingId?: {
1749
1328
  type: "exact";
@@ -1760,18 +1339,21 @@ export declare const QueryType: z.ZodObject<{
1760
1339
  type: "exact";
1761
1340
  term: string;
1762
1341
  } | undefined;
1763
- flags?: {
1764
- anyOf?: string[] | undefined;
1765
- noneOf?: string[] | undefined;
1766
- } | undefined;
1342
+ flags?: ({
1343
+ type: "anyOf";
1344
+ terms: string[];
1345
+ } | {
1346
+ type: "not";
1347
+ term: string;
1348
+ })[] | undefined;
1767
1349
  eventType?: string | undefined;
1768
1350
  'legalStatus.REGISTERED.createdAt'?: {
1351
+ type: "exact";
1352
+ term: string;
1353
+ } | {
1769
1354
  type: "range";
1770
1355
  gte: string;
1771
1356
  lte: string;
1772
- } | {
1773
- type: "exact";
1774
- term: string;
1775
1357
  } | undefined;
1776
1358
  'legalStatus.REGISTERED.createdAtLocation'?: {
1777
1359
  type: "exact";
@@ -1785,7 +1367,6 @@ export declare const QueryType: z.ZodObject<{
1785
1367
  term: string;
1786
1368
  } | undefined;
1787
1369
  }, ...{
1788
- id?: string | undefined;
1789
1370
  status?: {
1790
1371
  type: "exact";
1791
1372
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1794,14 +1375,13 @@ export declare const QueryType: z.ZodObject<{
1794
1375
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1795
1376
  } | undefined;
1796
1377
  data?: any;
1797
- createdByUserType?: "system" | "user" | undefined;
1798
1378
  createdAt?: {
1379
+ type: "exact";
1380
+ term: string;
1381
+ } | {
1799
1382
  type: "range";
1800
1383
  gte: string;
1801
1384
  lte: string;
1802
- } | {
1803
- type: "exact";
1804
- term: string;
1805
1385
  } | undefined;
1806
1386
  createdBy?: {
1807
1387
  type: "exact";
@@ -1819,12 +1399,12 @@ export declare const QueryType: z.ZodObject<{
1819
1399
  term: string;
1820
1400
  } | undefined;
1821
1401
  updatedAt?: {
1402
+ type: "exact";
1403
+ term: string;
1404
+ } | {
1822
1405
  type: "range";
1823
1406
  gte: string;
1824
1407
  lte: string;
1825
- } | {
1826
- type: "exact";
1827
- term: string;
1828
1408
  } | undefined;
1829
1409
  trackingId?: {
1830
1410
  type: "exact";
@@ -1841,18 +1421,21 @@ export declare const QueryType: z.ZodObject<{
1841
1421
  type: "exact";
1842
1422
  term: string;
1843
1423
  } | undefined;
1844
- flags?: {
1845
- anyOf?: string[] | undefined;
1846
- noneOf?: string[] | undefined;
1847
- } | undefined;
1424
+ flags?: ({
1425
+ type: "anyOf";
1426
+ terms: string[];
1427
+ } | {
1428
+ type: "not";
1429
+ term: string;
1430
+ })[] | undefined;
1848
1431
  eventType?: string | undefined;
1849
1432
  'legalStatus.REGISTERED.createdAt'?: {
1433
+ type: "exact";
1434
+ term: string;
1435
+ } | {
1850
1436
  type: "range";
1851
1437
  gte: string;
1852
1438
  lte: string;
1853
- } | {
1854
- type: "exact";
1855
- term: string;
1856
1439
  } | undefined;
1857
1440
  'legalStatus.REGISTERED.createdAtLocation'?: {
1858
1441
  type: "exact";
@@ -1869,7 +1452,6 @@ export declare const QueryType: z.ZodObject<{
1869
1452
  }, "strip", z.ZodTypeAny, {
1870
1453
  type: "and" | "or";
1871
1454
  clauses: [{
1872
- id?: string | undefined;
1873
1455
  status?: {
1874
1456
  type: "exact";
1875
1457
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1878,14 +1460,13 @@ export declare const QueryType: z.ZodObject<{
1878
1460
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1879
1461
  } | undefined;
1880
1462
  data?: any;
1881
- createdByUserType?: "system" | "user" | undefined;
1882
1463
  createdAt?: {
1464
+ type: "exact";
1465
+ term: string;
1466
+ } | {
1883
1467
  type: "range";
1884
1468
  gte: string;
1885
1469
  lte: string;
1886
- } | {
1887
- type: "exact";
1888
- term: string;
1889
1470
  } | undefined;
1890
1471
  createdBy?: {
1891
1472
  type: "exact";
@@ -1903,12 +1484,12 @@ export declare const QueryType: z.ZodObject<{
1903
1484
  term: string;
1904
1485
  } | undefined;
1905
1486
  updatedAt?: {
1487
+ type: "exact";
1488
+ term: string;
1489
+ } | {
1906
1490
  type: "range";
1907
1491
  gte: string;
1908
1492
  lte: string;
1909
- } | {
1910
- type: "exact";
1911
- term: string;
1912
1493
  } | undefined;
1913
1494
  trackingId?: {
1914
1495
  type: "exact";
@@ -1925,18 +1506,21 @@ export declare const QueryType: z.ZodObject<{
1925
1506
  type: "exact";
1926
1507
  term: string;
1927
1508
  } | undefined;
1928
- flags?: {
1929
- anyOf?: string[] | undefined;
1930
- noneOf?: string[] | undefined;
1931
- } | undefined;
1509
+ flags?: ({
1510
+ type: "anyOf";
1511
+ terms: string[];
1512
+ } | {
1513
+ type: "not";
1514
+ term: string;
1515
+ })[] | undefined;
1932
1516
  eventType?: string | undefined;
1933
1517
  'legalStatus.REGISTERED.createdAt'?: {
1518
+ type: "exact";
1519
+ term: string;
1520
+ } | {
1934
1521
  type: "range";
1935
1522
  gte: string;
1936
1523
  lte: string;
1937
- } | {
1938
- type: "exact";
1939
- term: string;
1940
1524
  } | undefined;
1941
1525
  'legalStatus.REGISTERED.createdAtLocation'?: {
1942
1526
  type: "exact";
@@ -1950,7 +1534,6 @@ export declare const QueryType: z.ZodObject<{
1950
1534
  term: string;
1951
1535
  } | undefined;
1952
1536
  }, ...{
1953
- id?: string | undefined;
1954
1537
  status?: {
1955
1538
  type: "exact";
1956
1539
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1959,14 +1542,13 @@ export declare const QueryType: z.ZodObject<{
1959
1542
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1960
1543
  } | undefined;
1961
1544
  data?: any;
1962
- createdByUserType?: "system" | "user" | undefined;
1963
1545
  createdAt?: {
1546
+ type: "exact";
1547
+ term: string;
1548
+ } | {
1964
1549
  type: "range";
1965
1550
  gte: string;
1966
1551
  lte: string;
1967
- } | {
1968
- type: "exact";
1969
- term: string;
1970
1552
  } | undefined;
1971
1553
  createdBy?: {
1972
1554
  type: "exact";
@@ -1984,12 +1566,12 @@ export declare const QueryType: z.ZodObject<{
1984
1566
  term: string;
1985
1567
  } | undefined;
1986
1568
  updatedAt?: {
1569
+ type: "exact";
1570
+ term: string;
1571
+ } | {
1987
1572
  type: "range";
1988
1573
  gte: string;
1989
1574
  lte: string;
1990
- } | {
1991
- type: "exact";
1992
- term: string;
1993
1575
  } | undefined;
1994
1576
  trackingId?: {
1995
1577
  type: "exact";
@@ -2006,18 +1588,21 @@ export declare const QueryType: z.ZodObject<{
2006
1588
  type: "exact";
2007
1589
  term: string;
2008
1590
  } | undefined;
2009
- flags?: {
2010
- anyOf?: string[] | undefined;
2011
- noneOf?: string[] | undefined;
2012
- } | undefined;
1591
+ flags?: ({
1592
+ type: "anyOf";
1593
+ terms: string[];
1594
+ } | {
1595
+ type: "not";
1596
+ term: string;
1597
+ })[] | undefined;
2013
1598
  eventType?: string | undefined;
2014
1599
  'legalStatus.REGISTERED.createdAt'?: {
1600
+ type: "exact";
1601
+ term: string;
1602
+ } | {
2015
1603
  type: "range";
2016
1604
  gte: string;
2017
1605
  lte: string;
2018
- } | {
2019
- type: "exact";
2020
- term: string;
2021
1606
  } | undefined;
2022
1607
  'legalStatus.REGISTERED.createdAtLocation'?: {
2023
1608
  type: "exact";