@opencrvs/toolkit 1.8.0-rc.f7e4aad → 1.8.0-rc.f807e0d

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 (39) hide show
  1. package/dist/commons/api/router.d.ts +1822 -10136
  2. package/dist/commons/conditionals/conditionals.d.ts +1 -12
  3. package/dist/commons/conditionals/validate.d.ts +8 -0
  4. package/dist/commons/events/ActionConfig.d.ts +15960 -3820
  5. package/dist/commons/events/ActionDocument.d.ts +1951 -904
  6. package/dist/commons/events/ActionInput.d.ts +1680 -780
  7. package/dist/commons/events/ActionType.d.ts +0 -2
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +113 -68
  9. package/dist/commons/events/CompositeFieldValue.d.ts +9 -9
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +1215 -813
  11. package/dist/commons/events/Draft.d.ts +144 -72
  12. package/dist/commons/events/EventConfig.d.ts +6459 -1250
  13. package/dist/commons/events/EventDocument.d.ts +1236 -588
  14. package/dist/commons/events/EventIndex.d.ts +609 -268
  15. package/dist/commons/events/EventMetadata.d.ts +9 -7
  16. package/dist/commons/events/FieldConfig.d.ts +1635 -67
  17. package/dist/commons/events/FieldType.d.ts +7 -1
  18. package/dist/commons/events/FieldTypeMapping.d.ts +57 -25
  19. package/dist/commons/events/FieldValue.d.ts +45 -16
  20. package/dist/commons/events/FormConfig.d.ts +6488 -1370
  21. package/dist/commons/events/PageConfig.d.ts +1380 -70
  22. package/dist/commons/events/User.d.ts +9 -3
  23. package/dist/commons/events/WorkqueueColumnConfig.d.ts +7 -7
  24. package/dist/commons/events/WorkqueueConfig.d.ts +2459 -1519
  25. package/dist/commons/events/defineConfig.d.ts +971 -58
  26. package/dist/commons/events/event.d.ts +19 -19
  27. package/dist/commons/events/field.d.ts +17 -1
  28. package/dist/commons/events/test.utils.d.ts +45 -20
  29. package/dist/commons/events/utils.d.ts +3323 -267
  30. package/dist/conditionals/index.js +23 -39
  31. package/dist/events/index.js +1208 -928
  32. package/dist/scopes/index.d.ts +92 -6
  33. package/dist/scopes/index.js +38 -9
  34. package/package.json +6 -4
  35. package/tsconfig.json +1 -1
  36. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  37. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  38. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  39. package/dist/commons/events/utils.test.d.ts +0 -2
@@ -2,7 +2,7 @@ import { z, ZodType } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
3
  id: z.ZodBranded<z.ZodString, "UUID">;
4
4
  type: z.ZodString;
5
- status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
5
+ status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
6
6
  legalStatuses: z.ZodObject<{
7
7
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8
8
  createdAt: z.ZodString;
@@ -112,38 +112,47 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
112
112
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
113
  trackingId: z.ZodString;
114
114
  flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
115
- readonly PRINTED: "printed";
115
+ readonly PENDING_CERTIFICATION: "pending-certification";
116
116
  readonly INCOMPLETE: "incomplete";
117
117
  readonly REJECTED: "rejected";
118
118
  readonly CORRECTION_REQUESTED: "correction-requested";
119
119
  }>]>, "many">;
120
120
  }, {
121
- 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<{
122
- filename: z.ZodString;
121
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
122
+ start: z.ZodString;
123
+ end: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ start: string;
126
+ end: string;
127
+ }, {
128
+ start: string;
129
+ end: string;
130
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
131
+ path: z.ZodEffects<z.ZodString, string, string>;
123
132
  originalFilename: z.ZodString;
124
133
  type: z.ZodString;
125
134
  }, "strip", z.ZodTypeAny, {
126
135
  type: string;
127
- filename: string;
136
+ path: string;
128
137
  originalFilename: string;
129
138
  }, {
130
139
  type: string;
131
- filename: string;
140
+ path: string;
132
141
  originalFilename: string;
133
142
  }>, z.ZodArray<z.ZodObject<{
134
- filename: z.ZodString;
143
+ path: z.ZodEffects<z.ZodString, string, string>;
135
144
  originalFilename: z.ZodString;
136
145
  type: z.ZodString;
137
146
  option: z.ZodString;
138
147
  }, "strip", z.ZodTypeAny, {
139
148
  type: string;
140
149
  option: string;
141
- filename: string;
150
+ path: string;
142
151
  originalFilename: string;
143
152
  }, {
144
153
  type: string;
145
154
  option: string;
146
- filename: string;
155
+ path: string;
147
156
  originalFilename: string;
148
157
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
149
158
  country: z.ZodString;
@@ -259,12 +268,12 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
259
268
  }>, "strip", z.ZodTypeAny, {
260
269
  type: string;
261
270
  id: string & z.BRAND<"UUID">;
262
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
271
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
263
272
  createdAt: string;
264
273
  createdBy: string;
265
274
  declaration: Record<string, string | number | boolean | {
266
275
  type: string;
267
- filename: string;
276
+ path: string;
268
277
  originalFilename: string;
269
278
  } | {
270
279
  country: string;
@@ -305,9 +314,12 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
305
314
  } | {
306
315
  type: string;
307
316
  option: string;
308
- filename: string;
317
+ path: string;
309
318
  originalFilename: string;
310
- }[] | [string, string] | null | undefined>;
319
+ }[] | {
320
+ start: string;
321
+ end: string;
322
+ } | null | undefined>;
311
323
  updatedAt: string;
312
324
  trackingId: string;
313
325
  legalStatuses: {
@@ -343,12 +355,12 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
343
355
  }, {
344
356
  type: string;
345
357
  id: string;
346
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
358
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
347
359
  createdAt: string;
348
360
  createdBy: string;
349
361
  declaration: Record<string, string | number | boolean | {
350
362
  type: string;
351
- filename: string;
363
+ path: string;
352
364
  originalFilename: string;
353
365
  } | {
354
366
  country: string;
@@ -389,9 +401,12 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
389
401
  } | {
390
402
  type: string;
391
403
  option: string;
392
- filename: string;
404
+ path: string;
393
405
  originalFilename: string;
394
- }[] | [string, string] | null | undefined>;
406
+ }[] | {
407
+ start: string;
408
+ end: string;
409
+ } | null | undefined>;
395
410
  updatedAt: string;
396
411
  trackingId: string;
397
412
  legalStatuses: {
@@ -456,13 +471,23 @@ export declare const Exact: z.ZodObject<{
456
471
  }>;
457
472
  export declare const ExactStatus: z.ZodObject<{
458
473
  type: z.ZodLiteral<"exact">;
459
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
474
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ type: "exact";
477
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
478
+ }, {
479
+ type: "exact";
480
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
481
+ }>;
482
+ export declare const ExactUserType: z.ZodObject<{
483
+ type: z.ZodLiteral<"exact">;
484
+ term: z.ZodEnum<["user", "system"]>;
460
485
  }, "strip", z.ZodTypeAny, {
461
486
  type: "exact";
462
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
487
+ term: "system" | "user";
463
488
  }, {
464
489
  type: "exact";
465
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
490
+ term: "system" | "user";
466
491
  }>;
467
492
  export declare const AnyOf: z.ZodObject<{
468
493
  type: z.ZodLiteral<"anyOf">;
@@ -476,13 +501,13 @@ export declare const AnyOf: z.ZodObject<{
476
501
  }>;
477
502
  export declare const AnyOfStatus: z.ZodObject<{
478
503
  type: z.ZodLiteral<"anyOf">;
479
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
504
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
480
505
  }, "strip", z.ZodTypeAny, {
481
506
  type: "anyOf";
482
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
507
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
483
508
  }, {
484
509
  type: "anyOf";
485
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
510
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
486
511
  }>;
487
512
  export declare const Range: z.ZodObject<{
488
513
  type: z.ZodLiteral<"range">;
@@ -499,13 +524,13 @@ export declare const Range: z.ZodObject<{
499
524
  }>;
500
525
  export declare const ContainsFlags: z.ZodObject<{
501
526
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
502
- readonly PRINTED: "printed";
527
+ readonly PENDING_CERTIFICATION: "pending-certification";
503
528
  readonly INCOMPLETE: "incomplete";
504
529
  readonly REJECTED: "rejected";
505
530
  readonly CORRECTION_REQUESTED: "correction-requested";
506
531
  }>]>, "many">>;
507
532
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
508
- readonly PRINTED: "printed";
533
+ readonly PENDING_CERTIFICATION: "pending-certification";
509
534
  readonly INCOMPLETE: "incomplete";
510
535
  readonly REJECTED: "rejected";
511
536
  readonly CORRECTION_REQUESTED: "correction-requested";
@@ -527,22 +552,6 @@ export declare const Within: z.ZodObject<{
527
552
  type: "within";
528
553
  location: string;
529
554
  }>;
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
555
  export declare const ExactDate: z.ZodObject<z.objectUtil.extendShape<{
547
556
  type: z.ZodLiteral<"exact">;
548
557
  term: z.ZodString;
@@ -566,14 +575,11 @@ export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
566
575
  }, {
567
576
  type: "exact";
568
577
  term: string;
569
- }>, z.ZodObject<z.objectUtil.extendShape<{
578
+ }>, z.ZodObject<{
570
579
  type: z.ZodLiteral<"range">;
571
- gte: z.ZodString;
572
- lte: z.ZodString;
573
- }, {
574
580
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
575
581
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
576
- }>, "strip", z.ZodTypeAny, {
582
+ }, "strip", z.ZodTypeAny, {
577
583
  type: "range";
578
584
  gte: string;
579
585
  lte: string;
@@ -581,7 +587,17 @@ export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
581
587
  type: "range";
582
588
  gte: string;
583
589
  lte: string;
590
+ }>, z.ZodObject<{
591
+ type: z.ZodLiteral<"timePeriod">;
592
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
593
+ }, "strip", z.ZodTypeAny, {
594
+ type: "timePeriod";
595
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
596
+ }, {
597
+ type: "timePeriod";
598
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
584
599
  }>]>;
600
+ export type DateCondition = z.infer<typeof DateCondition>;
585
601
  export declare const QueryInput: ZodType;
586
602
  export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf>;
587
603
  type QueryMap = {
@@ -593,22 +609,22 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
593
609
  eventType: z.ZodOptional<z.ZodString>;
594
610
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
595
611
  type: z.ZodLiteral<"anyOf">;
596
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
612
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
597
613
  }, "strip", z.ZodTypeAny, {
598
614
  type: "anyOf";
599
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
615
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
600
616
  }, {
601
617
  type: "anyOf";
602
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
618
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
603
619
  }>, z.ZodObject<{
604
620
  type: z.ZodLiteral<"exact">;
605
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
621
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
606
622
  }, "strip", z.ZodTypeAny, {
607
623
  type: "exact";
608
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
624
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
609
625
  }, {
610
626
  type: "exact";
611
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
627
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
612
628
  }>]>>>;
613
629
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
614
630
  type: z.ZodLiteral<"exact">;
@@ -621,14 +637,11 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
621
637
  }, {
622
638
  type: "exact";
623
639
  term: string;
624
- }>, z.ZodObject<z.objectUtil.extendShape<{
640
+ }>, z.ZodObject<{
625
641
  type: z.ZodLiteral<"range">;
626
- gte: z.ZodString;
627
- lte: z.ZodString;
628
- }, {
629
642
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
630
643
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
631
- }>, "strip", z.ZodTypeAny, {
644
+ }, "strip", z.ZodTypeAny, {
632
645
  type: "range";
633
646
  gte: string;
634
647
  lte: string;
@@ -636,6 +649,15 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
636
649
  type: "range";
637
650
  gte: string;
638
651
  lte: string;
652
+ }>, z.ZodObject<{
653
+ type: z.ZodLiteral<"timePeriod">;
654
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
655
+ }, "strip", z.ZodTypeAny, {
656
+ type: "timePeriod";
657
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
658
+ }, {
659
+ type: "timePeriod";
660
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
639
661
  }>]>>>;
640
662
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
641
663
  type: z.ZodLiteral<"exact">;
@@ -648,14 +670,11 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
648
670
  }, {
649
671
  type: "exact";
650
672
  term: string;
651
- }>, z.ZodObject<z.objectUtil.extendShape<{
673
+ }>, z.ZodObject<{
652
674
  type: z.ZodLiteral<"range">;
653
- gte: z.ZodString;
654
- lte: z.ZodString;
655
- }, {
656
675
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
657
676
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
658
- }>, "strip", z.ZodTypeAny, {
677
+ }, "strip", z.ZodTypeAny, {
659
678
  type: "range";
660
679
  gte: string;
661
680
  lte: string;
@@ -663,8 +682,17 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
663
682
  type: "range";
664
683
  gte: string;
665
684
  lte: string;
685
+ }>, z.ZodObject<{
686
+ type: z.ZodLiteral<"timePeriod">;
687
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
688
+ }, "strip", z.ZodTypeAny, {
689
+ type: "timePeriod";
690
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
691
+ }, {
692
+ type: "timePeriod";
693
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
666
694
  }>]>>>;
667
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
695
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
668
696
  type: z.ZodLiteral<"exact">;
669
697
  term: z.ZodString;
670
698
  }, {
@@ -675,14 +703,11 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
675
703
  }, {
676
704
  type: "exact";
677
705
  term: string;
678
- }>, z.ZodObject<z.objectUtil.extendShape<{
706
+ }>, z.ZodObject<{
679
707
  type: z.ZodLiteral<"range">;
680
- gte: z.ZodString;
681
- lte: z.ZodString;
682
- }, {
683
708
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
684
709
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
685
- }>, "strip", z.ZodTypeAny, {
710
+ }, "strip", z.ZodTypeAny, {
686
711
  type: "range";
687
712
  gte: string;
688
713
  lte: string;
@@ -690,8 +715,36 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
690
715
  type: "range";
691
716
  gte: string;
692
717
  lte: string;
718
+ }>, z.ZodObject<{
719
+ type: z.ZodLiteral<"timePeriod">;
720
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
721
+ }, "strip", z.ZodTypeAny, {
722
+ type: "timePeriod";
723
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
724
+ }, {
725
+ type: "timePeriod";
726
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
727
+ }>]>>>;
728
+ 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
729
+ type: z.ZodLiteral<"within">;
730
+ location: z.ZodString;
731
+ }, "strip", z.ZodTypeAny, {
732
+ type: "within";
733
+ location: string;
734
+ }, {
735
+ type: "within";
736
+ location: string;
737
+ }>, z.ZodObject<{
738
+ type: z.ZodLiteral<"exact">;
739
+ term: z.ZodString;
740
+ }, "strip", z.ZodTypeAny, {
741
+ type: "exact";
742
+ term: string;
743
+ }, {
744
+ type: "exact";
745
+ term: string;
693
746
  }>]>>>;
694
- 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
747
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
695
748
  type: z.ZodLiteral<"within">;
696
749
  location: z.ZodString;
697
750
  }, "strip", z.ZodTypeAny, {
@@ -710,7 +763,7 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
710
763
  type: "exact";
711
764
  term: string;
712
765
  }>]>>>;
713
- 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
766
+ 'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
714
767
  type: z.ZodLiteral<"exact">;
715
768
  term: z.ZodString;
716
769
  }, "strip", z.ZodTypeAny, {
@@ -768,7 +821,16 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
768
821
  type: "exact";
769
822
  term: string;
770
823
  }>>>;
771
- createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
824
+ createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
825
+ type: z.ZodLiteral<"exact">;
826
+ term: z.ZodEnum<["user", "system"]>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ type: "exact";
829
+ term: "system" | "user";
830
+ }, {
831
+ type: "exact";
832
+ term: "system" | "user";
833
+ }>>>;
772
834
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
773
835
  type: z.ZodLiteral<"exact">;
774
836
  term: z.ZodString;
@@ -801,13 +863,13 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
801
863
  }>>>;
802
864
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
803
865
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
804
- readonly PRINTED: "printed";
866
+ readonly PENDING_CERTIFICATION: "pending-certification";
805
867
  readonly INCOMPLETE: "incomplete";
806
868
  readonly REJECTED: "rejected";
807
869
  readonly CORRECTION_REQUESTED: "correction-requested";
808
870
  }>]>, "many">>;
809
871
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
810
- readonly PRINTED: "printed";
872
+ readonly PENDING_CERTIFICATION: "pending-certification";
811
873
  readonly INCOMPLETE: "incomplete";
812
874
  readonly REJECTED: "rejected";
813
875
  readonly CORRECTION_REQUESTED: "correction-requested";
@@ -824,13 +886,16 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
824
886
  id?: string | undefined;
825
887
  status?: {
826
888
  type: "exact";
827
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
889
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
828
890
  } | {
829
891
  type: "anyOf";
830
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
892
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
831
893
  } | undefined;
832
894
  data?: any;
833
- createdByUserType?: "system" | "user" | undefined;
895
+ createdByUserType?: {
896
+ type: "exact";
897
+ term: "system" | "user";
898
+ } | undefined;
834
899
  createdAt?: {
835
900
  type: "range";
836
901
  gte: string;
@@ -838,6 +903,9 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
838
903
  } | {
839
904
  type: "exact";
840
905
  term: string;
906
+ } | {
907
+ type: "timePeriod";
908
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
841
909
  } | undefined;
842
910
  createdBy?: {
843
911
  type: "exact";
@@ -861,11 +929,33 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
861
929
  } | {
862
930
  type: "exact";
863
931
  term: string;
932
+ } | {
933
+ type: "timePeriod";
934
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
864
935
  } | undefined;
865
936
  trackingId?: {
866
937
  type: "exact";
867
938
  term: string;
868
939
  } | undefined;
940
+ eventType?: string | undefined;
941
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
942
+ type: "range";
943
+ gte: string;
944
+ lte: string;
945
+ } | {
946
+ type: "exact";
947
+ term: string;
948
+ } | {
949
+ type: "timePeriod";
950
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
951
+ } | undefined;
952
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
953
+ type: "exact";
954
+ term: string;
955
+ } | {
956
+ type: "within";
957
+ location: string;
958
+ } | undefined;
869
959
  updatedAtLocation?: {
870
960
  type: "exact";
871
961
  term: string;
@@ -881,23 +971,14 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
881
971
  anyOf?: string[] | undefined;
882
972
  noneOf?: string[] | undefined;
883
973
  } | 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'?: {
974
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
894
975
  type: "exact";
895
976
  term: string;
896
977
  } | {
897
978
  type: "within";
898
979
  location: string;
899
980
  } | undefined;
900
- 'legalStatus.REGISTERED.registrationNumber'?: {
981
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
901
982
  type: "exact";
902
983
  term: string;
903
984
  } | undefined;
@@ -905,13 +986,16 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
905
986
  id?: string | undefined;
906
987
  status?: {
907
988
  type: "exact";
908
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
989
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
909
990
  } | {
910
991
  type: "anyOf";
911
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
992
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
912
993
  } | undefined;
913
994
  data?: any;
914
- createdByUserType?: "system" | "user" | undefined;
995
+ createdByUserType?: {
996
+ type: "exact";
997
+ term: "system" | "user";
998
+ } | undefined;
915
999
  createdAt?: {
916
1000
  type: "range";
917
1001
  gte: string;
@@ -919,6 +1003,9 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
919
1003
  } | {
920
1004
  type: "exact";
921
1005
  term: string;
1006
+ } | {
1007
+ type: "timePeriod";
1008
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
922
1009
  } | undefined;
923
1010
  createdBy?: {
924
1011
  type: "exact";
@@ -942,11 +1029,33 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
942
1029
  } | {
943
1030
  type: "exact";
944
1031
  term: string;
1032
+ } | {
1033
+ type: "timePeriod";
1034
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
945
1035
  } | undefined;
946
1036
  trackingId?: {
947
1037
  type: "exact";
948
1038
  term: string;
949
1039
  } | undefined;
1040
+ eventType?: string | undefined;
1041
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1042
+ type: "range";
1043
+ gte: string;
1044
+ lte: string;
1045
+ } | {
1046
+ type: "exact";
1047
+ term: string;
1048
+ } | {
1049
+ type: "timePeriod";
1050
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1051
+ } | undefined;
1052
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1053
+ type: "exact";
1054
+ term: string;
1055
+ } | {
1056
+ type: "within";
1057
+ location: string;
1058
+ } | undefined;
950
1059
  updatedAtLocation?: {
951
1060
  type: "exact";
952
1061
  term: string;
@@ -962,23 +1071,14 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
962
1071
  anyOf?: string[] | undefined;
963
1072
  noneOf?: string[] | undefined;
964
1073
  } | 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'?: {
1074
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
975
1075
  type: "exact";
976
1076
  term: string;
977
1077
  } | {
978
1078
  type: "within";
979
1079
  location: string;
980
1080
  } | undefined;
981
- 'legalStatus.REGISTERED.registrationNumber'?: {
1081
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
982
1082
  type: "exact";
983
1083
  term: string;
984
1084
  } | undefined;
@@ -986,13 +1086,16 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
986
1086
  id?: string | undefined;
987
1087
  status?: {
988
1088
  type: "exact";
989
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1089
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
990
1090
  } | {
991
1091
  type: "anyOf";
992
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1092
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
993
1093
  } | undefined;
994
1094
  data?: any;
995
- createdByUserType?: "system" | "user" | undefined;
1095
+ createdByUserType?: {
1096
+ type: "exact";
1097
+ term: "system" | "user";
1098
+ } | undefined;
996
1099
  createdAt?: {
997
1100
  type: "range";
998
1101
  gte: string;
@@ -1000,6 +1103,9 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1000
1103
  } | {
1001
1104
  type: "exact";
1002
1105
  term: string;
1106
+ } | {
1107
+ type: "timePeriod";
1108
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1003
1109
  } | undefined;
1004
1110
  createdBy?: {
1005
1111
  type: "exact";
@@ -1023,11 +1129,33 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1023
1129
  } | {
1024
1130
  type: "exact";
1025
1131
  term: string;
1132
+ } | {
1133
+ type: "timePeriod";
1134
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1026
1135
  } | undefined;
1027
1136
  trackingId?: {
1028
1137
  type: "exact";
1029
1138
  term: string;
1030
1139
  } | undefined;
1140
+ eventType?: string | undefined;
1141
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1142
+ type: "range";
1143
+ gte: string;
1144
+ lte: string;
1145
+ } | {
1146
+ type: "exact";
1147
+ term: string;
1148
+ } | {
1149
+ type: "timePeriod";
1150
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1151
+ } | undefined;
1152
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1153
+ type: "exact";
1154
+ term: string;
1155
+ } | {
1156
+ type: "within";
1157
+ location: string;
1158
+ } | undefined;
1031
1159
  updatedAtLocation?: {
1032
1160
  type: "exact";
1033
1161
  term: string;
@@ -1043,23 +1171,14 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1043
1171
  anyOf?: string[] | undefined;
1044
1172
  noneOf?: string[] | undefined;
1045
1173
  } | undefined;
1046
- eventType?: string | undefined;
1047
- 'legalStatus.REGISTERED.createdAt'?: {
1048
- type: "range";
1049
- gte: string;
1050
- lte: string;
1051
- } | {
1052
- type: "exact";
1053
- term: string;
1054
- } | undefined;
1055
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1174
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1056
1175
  type: "exact";
1057
1176
  term: string;
1058
1177
  } | {
1059
1178
  type: "within";
1060
1179
  location: string;
1061
1180
  } | undefined;
1062
- 'legalStatus.REGISTERED.registrationNumber'?: {
1181
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1063
1182
  type: "exact";
1064
1183
  term: string;
1065
1184
  } | undefined;
@@ -1067,13 +1186,16 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1067
1186
  id?: string | undefined;
1068
1187
  status?: {
1069
1188
  type: "exact";
1070
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1189
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1071
1190
  } | {
1072
1191
  type: "anyOf";
1073
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1192
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1074
1193
  } | undefined;
1075
1194
  data?: any;
1076
- createdByUserType?: "system" | "user" | undefined;
1195
+ createdByUserType?: {
1196
+ type: "exact";
1197
+ term: "system" | "user";
1198
+ } | undefined;
1077
1199
  createdAt?: {
1078
1200
  type: "range";
1079
1201
  gte: string;
@@ -1081,6 +1203,9 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1081
1203
  } | {
1082
1204
  type: "exact";
1083
1205
  term: string;
1206
+ } | {
1207
+ type: "timePeriod";
1208
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1084
1209
  } | undefined;
1085
1210
  createdBy?: {
1086
1211
  type: "exact";
@@ -1104,11 +1229,33 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1104
1229
  } | {
1105
1230
  type: "exact";
1106
1231
  term: string;
1232
+ } | {
1233
+ type: "timePeriod";
1234
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1107
1235
  } | undefined;
1108
1236
  trackingId?: {
1109
1237
  type: "exact";
1110
1238
  term: string;
1111
1239
  } | undefined;
1240
+ eventType?: string | undefined;
1241
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1242
+ type: "range";
1243
+ gte: string;
1244
+ lte: string;
1245
+ } | {
1246
+ type: "exact";
1247
+ term: string;
1248
+ } | {
1249
+ type: "timePeriod";
1250
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1251
+ } | undefined;
1252
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1253
+ type: "exact";
1254
+ term: string;
1255
+ } | {
1256
+ type: "within";
1257
+ location: string;
1258
+ } | undefined;
1112
1259
  updatedAtLocation?: {
1113
1260
  type: "exact";
1114
1261
  term: string;
@@ -1124,23 +1271,14 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1124
1271
  anyOf?: string[] | undefined;
1125
1272
  noneOf?: string[] | undefined;
1126
1273
  } | 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'?: {
1274
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1137
1275
  type: "exact";
1138
1276
  term: string;
1139
1277
  } | {
1140
1278
  type: "within";
1141
1279
  location: string;
1142
1280
  } | undefined;
1143
- 'legalStatus.REGISTERED.registrationNumber'?: {
1281
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1144
1282
  type: "exact";
1145
1283
  term: string;
1146
1284
  } | undefined;
@@ -1152,22 +1290,22 @@ export declare const QueryType: z.ZodObject<{
1152
1290
  eventType: z.ZodOptional<z.ZodString>;
1153
1291
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1154
1292
  type: z.ZodLiteral<"anyOf">;
1155
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1293
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
1156
1294
  }, "strip", z.ZodTypeAny, {
1157
1295
  type: "anyOf";
1158
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1296
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1159
1297
  }, {
1160
1298
  type: "anyOf";
1161
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1299
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1162
1300
  }>, z.ZodObject<{
1163
1301
  type: z.ZodLiteral<"exact">;
1164
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1302
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
1165
1303
  }, "strip", z.ZodTypeAny, {
1166
1304
  type: "exact";
1167
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1305
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1168
1306
  }, {
1169
1307
  type: "exact";
1170
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1308
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1171
1309
  }>]>>>;
1172
1310
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1173
1311
  type: z.ZodLiteral<"exact">;
@@ -1180,14 +1318,11 @@ export declare const QueryType: z.ZodObject<{
1180
1318
  }, {
1181
1319
  type: "exact";
1182
1320
  term: string;
1183
- }>, z.ZodObject<z.objectUtil.extendShape<{
1321
+ }>, z.ZodObject<{
1184
1322
  type: z.ZodLiteral<"range">;
1185
- gte: z.ZodString;
1186
- lte: z.ZodString;
1187
- }, {
1188
1323
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1189
1324
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1190
- }>, "strip", z.ZodTypeAny, {
1325
+ }, "strip", z.ZodTypeAny, {
1191
1326
  type: "range";
1192
1327
  gte: string;
1193
1328
  lte: string;
@@ -1195,6 +1330,15 @@ export declare const QueryType: z.ZodObject<{
1195
1330
  type: "range";
1196
1331
  gte: string;
1197
1332
  lte: string;
1333
+ }>, z.ZodObject<{
1334
+ type: z.ZodLiteral<"timePeriod">;
1335
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1336
+ }, "strip", z.ZodTypeAny, {
1337
+ type: "timePeriod";
1338
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1339
+ }, {
1340
+ type: "timePeriod";
1341
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1198
1342
  }>]>>>;
1199
1343
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1200
1344
  type: z.ZodLiteral<"exact">;
@@ -1207,14 +1351,11 @@ export declare const QueryType: z.ZodObject<{
1207
1351
  }, {
1208
1352
  type: "exact";
1209
1353
  term: string;
1210
- }>, z.ZodObject<z.objectUtil.extendShape<{
1354
+ }>, z.ZodObject<{
1211
1355
  type: z.ZodLiteral<"range">;
1212
- gte: z.ZodString;
1213
- lte: z.ZodString;
1214
- }, {
1215
1356
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1216
1357
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1217
- }>, "strip", z.ZodTypeAny, {
1358
+ }, "strip", z.ZodTypeAny, {
1218
1359
  type: "range";
1219
1360
  gte: string;
1220
1361
  lte: string;
@@ -1222,8 +1363,17 @@ export declare const QueryType: z.ZodObject<{
1222
1363
  type: "range";
1223
1364
  gte: string;
1224
1365
  lte: string;
1366
+ }>, z.ZodObject<{
1367
+ type: z.ZodLiteral<"timePeriod">;
1368
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1369
+ }, "strip", z.ZodTypeAny, {
1370
+ type: "timePeriod";
1371
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1372
+ }, {
1373
+ type: "timePeriod";
1374
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1225
1375
  }>]>>>;
1226
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1376
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1227
1377
  type: z.ZodLiteral<"exact">;
1228
1378
  term: z.ZodString;
1229
1379
  }, {
@@ -1234,14 +1384,11 @@ export declare const QueryType: z.ZodObject<{
1234
1384
  }, {
1235
1385
  type: "exact";
1236
1386
  term: string;
1237
- }>, z.ZodObject<z.objectUtil.extendShape<{
1387
+ }>, z.ZodObject<{
1238
1388
  type: z.ZodLiteral<"range">;
1239
- gte: z.ZodString;
1240
- lte: z.ZodString;
1241
- }, {
1242
1389
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1243
1390
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1244
- }>, "strip", z.ZodTypeAny, {
1391
+ }, "strip", z.ZodTypeAny, {
1245
1392
  type: "range";
1246
1393
  gte: string;
1247
1394
  lte: string;
@@ -1249,8 +1396,36 @@ export declare const QueryType: z.ZodObject<{
1249
1396
  type: "range";
1250
1397
  gte: string;
1251
1398
  lte: string;
1399
+ }>, z.ZodObject<{
1400
+ type: z.ZodLiteral<"timePeriod">;
1401
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1402
+ }, "strip", z.ZodTypeAny, {
1403
+ type: "timePeriod";
1404
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1405
+ }, {
1406
+ type: "timePeriod";
1407
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1408
+ }>]>>>;
1409
+ 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1410
+ type: z.ZodLiteral<"within">;
1411
+ location: z.ZodString;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ type: "within";
1414
+ location: string;
1415
+ }, {
1416
+ type: "within";
1417
+ location: string;
1418
+ }>, z.ZodObject<{
1419
+ type: z.ZodLiteral<"exact">;
1420
+ term: z.ZodString;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ type: "exact";
1423
+ term: string;
1424
+ }, {
1425
+ type: "exact";
1426
+ term: string;
1252
1427
  }>]>>>;
1253
- 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1428
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1254
1429
  type: z.ZodLiteral<"within">;
1255
1430
  location: z.ZodString;
1256
1431
  }, "strip", z.ZodTypeAny, {
@@ -1269,7 +1444,7 @@ export declare const QueryType: z.ZodObject<{
1269
1444
  type: "exact";
1270
1445
  term: string;
1271
1446
  }>]>>>;
1272
- 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1447
+ 'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1273
1448
  type: z.ZodLiteral<"exact">;
1274
1449
  term: z.ZodString;
1275
1450
  }, "strip", z.ZodTypeAny, {
@@ -1327,7 +1502,16 @@ export declare const QueryType: z.ZodObject<{
1327
1502
  type: "exact";
1328
1503
  term: string;
1329
1504
  }>>>;
1330
- createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
1505
+ createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1506
+ type: z.ZodLiteral<"exact">;
1507
+ term: z.ZodEnum<["user", "system"]>;
1508
+ }, "strip", z.ZodTypeAny, {
1509
+ type: "exact";
1510
+ term: "system" | "user";
1511
+ }, {
1512
+ type: "exact";
1513
+ term: "system" | "user";
1514
+ }>>>;
1331
1515
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1332
1516
  type: z.ZodLiteral<"exact">;
1333
1517
  term: z.ZodString;
@@ -1360,13 +1544,13 @@ export declare const QueryType: z.ZodObject<{
1360
1544
  }>>>;
1361
1545
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1362
1546
  anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1363
- readonly PRINTED: "printed";
1547
+ readonly PENDING_CERTIFICATION: "pending-certification";
1364
1548
  readonly INCOMPLETE: "incomplete";
1365
1549
  readonly REJECTED: "rejected";
1366
1550
  readonly CORRECTION_REQUESTED: "correction-requested";
1367
1551
  }>]>, "many">>;
1368
1552
  noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1369
- readonly PRINTED: "printed";
1553
+ readonly PENDING_CERTIFICATION: "pending-certification";
1370
1554
  readonly INCOMPLETE: "incomplete";
1371
1555
  readonly REJECTED: "rejected";
1372
1556
  readonly CORRECTION_REQUESTED: "correction-requested";
@@ -1383,13 +1567,16 @@ export declare const QueryType: z.ZodObject<{
1383
1567
  id?: string | undefined;
1384
1568
  status?: {
1385
1569
  type: "exact";
1386
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1570
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1387
1571
  } | {
1388
1572
  type: "anyOf";
1389
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1573
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1390
1574
  } | undefined;
1391
1575
  data?: any;
1392
- createdByUserType?: "system" | "user" | undefined;
1576
+ createdByUserType?: {
1577
+ type: "exact";
1578
+ term: "system" | "user";
1579
+ } | undefined;
1393
1580
  createdAt?: {
1394
1581
  type: "range";
1395
1582
  gte: string;
@@ -1397,6 +1584,9 @@ export declare const QueryType: z.ZodObject<{
1397
1584
  } | {
1398
1585
  type: "exact";
1399
1586
  term: string;
1587
+ } | {
1588
+ type: "timePeriod";
1589
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1400
1590
  } | undefined;
1401
1591
  createdBy?: {
1402
1592
  type: "exact";
@@ -1420,11 +1610,33 @@ export declare const QueryType: z.ZodObject<{
1420
1610
  } | {
1421
1611
  type: "exact";
1422
1612
  term: string;
1613
+ } | {
1614
+ type: "timePeriod";
1615
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1423
1616
  } | undefined;
1424
1617
  trackingId?: {
1425
1618
  type: "exact";
1426
1619
  term: string;
1427
1620
  } | undefined;
1621
+ eventType?: string | undefined;
1622
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1623
+ type: "range";
1624
+ gte: string;
1625
+ lte: string;
1626
+ } | {
1627
+ type: "exact";
1628
+ term: string;
1629
+ } | {
1630
+ type: "timePeriod";
1631
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1632
+ } | undefined;
1633
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1634
+ type: "exact";
1635
+ term: string;
1636
+ } | {
1637
+ type: "within";
1638
+ location: string;
1639
+ } | undefined;
1428
1640
  updatedAtLocation?: {
1429
1641
  type: "exact";
1430
1642
  term: string;
@@ -1440,23 +1652,14 @@ export declare const QueryType: z.ZodObject<{
1440
1652
  anyOf?: string[] | undefined;
1441
1653
  noneOf?: string[] | undefined;
1442
1654
  } | 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'?: {
1655
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1453
1656
  type: "exact";
1454
1657
  term: string;
1455
1658
  } | {
1456
1659
  type: "within";
1457
1660
  location: string;
1458
1661
  } | undefined;
1459
- 'legalStatus.REGISTERED.registrationNumber'?: {
1662
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1460
1663
  type: "exact";
1461
1664
  term: string;
1462
1665
  } | undefined;
@@ -1464,13 +1667,16 @@ export declare const QueryType: z.ZodObject<{
1464
1667
  id?: string | undefined;
1465
1668
  status?: {
1466
1669
  type: "exact";
1467
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1670
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1468
1671
  } | {
1469
1672
  type: "anyOf";
1470
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1673
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1471
1674
  } | undefined;
1472
1675
  data?: any;
1473
- createdByUserType?: "system" | "user" | undefined;
1676
+ createdByUserType?: {
1677
+ type: "exact";
1678
+ term: "system" | "user";
1679
+ } | undefined;
1474
1680
  createdAt?: {
1475
1681
  type: "range";
1476
1682
  gte: string;
@@ -1478,6 +1684,9 @@ export declare const QueryType: z.ZodObject<{
1478
1684
  } | {
1479
1685
  type: "exact";
1480
1686
  term: string;
1687
+ } | {
1688
+ type: "timePeriod";
1689
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1481
1690
  } | undefined;
1482
1691
  createdBy?: {
1483
1692
  type: "exact";
@@ -1501,11 +1710,33 @@ export declare const QueryType: z.ZodObject<{
1501
1710
  } | {
1502
1711
  type: "exact";
1503
1712
  term: string;
1713
+ } | {
1714
+ type: "timePeriod";
1715
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1504
1716
  } | undefined;
1505
1717
  trackingId?: {
1506
1718
  type: "exact";
1507
1719
  term: string;
1508
1720
  } | undefined;
1721
+ eventType?: string | undefined;
1722
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1723
+ type: "range";
1724
+ gte: string;
1725
+ lte: string;
1726
+ } | {
1727
+ type: "exact";
1728
+ term: string;
1729
+ } | {
1730
+ type: "timePeriod";
1731
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1732
+ } | undefined;
1733
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1734
+ type: "exact";
1735
+ term: string;
1736
+ } | {
1737
+ type: "within";
1738
+ location: string;
1739
+ } | undefined;
1509
1740
  updatedAtLocation?: {
1510
1741
  type: "exact";
1511
1742
  term: string;
@@ -1521,23 +1752,14 @@ export declare const QueryType: z.ZodObject<{
1521
1752
  anyOf?: string[] | undefined;
1522
1753
  noneOf?: string[] | undefined;
1523
1754
  } | 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'?: {
1755
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1534
1756
  type: "exact";
1535
1757
  term: string;
1536
1758
  } | {
1537
1759
  type: "within";
1538
1760
  location: string;
1539
1761
  } | undefined;
1540
- 'legalStatus.REGISTERED.registrationNumber'?: {
1762
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1541
1763
  type: "exact";
1542
1764
  term: string;
1543
1765
  } | undefined;
@@ -1545,13 +1767,16 @@ export declare const QueryType: z.ZodObject<{
1545
1767
  id?: string | undefined;
1546
1768
  status?: {
1547
1769
  type: "exact";
1548
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1770
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1549
1771
  } | {
1550
1772
  type: "anyOf";
1551
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1773
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1552
1774
  } | undefined;
1553
1775
  data?: any;
1554
- createdByUserType?: "system" | "user" | undefined;
1776
+ createdByUserType?: {
1777
+ type: "exact";
1778
+ term: "system" | "user";
1779
+ } | undefined;
1555
1780
  createdAt?: {
1556
1781
  type: "range";
1557
1782
  gte: string;
@@ -1559,6 +1784,9 @@ export declare const QueryType: z.ZodObject<{
1559
1784
  } | {
1560
1785
  type: "exact";
1561
1786
  term: string;
1787
+ } | {
1788
+ type: "timePeriod";
1789
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1562
1790
  } | undefined;
1563
1791
  createdBy?: {
1564
1792
  type: "exact";
@@ -1582,11 +1810,33 @@ export declare const QueryType: z.ZodObject<{
1582
1810
  } | {
1583
1811
  type: "exact";
1584
1812
  term: string;
1813
+ } | {
1814
+ type: "timePeriod";
1815
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1585
1816
  } | undefined;
1586
1817
  trackingId?: {
1587
1818
  type: "exact";
1588
1819
  term: string;
1589
1820
  } | undefined;
1821
+ eventType?: string | undefined;
1822
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1823
+ type: "range";
1824
+ gte: string;
1825
+ lte: string;
1826
+ } | {
1827
+ type: "exact";
1828
+ term: string;
1829
+ } | {
1830
+ type: "timePeriod";
1831
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1832
+ } | undefined;
1833
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1834
+ type: "exact";
1835
+ term: string;
1836
+ } | {
1837
+ type: "within";
1838
+ location: string;
1839
+ } | undefined;
1590
1840
  updatedAtLocation?: {
1591
1841
  type: "exact";
1592
1842
  term: string;
@@ -1602,23 +1852,14 @@ export declare const QueryType: z.ZodObject<{
1602
1852
  anyOf?: string[] | undefined;
1603
1853
  noneOf?: string[] | undefined;
1604
1854
  } | undefined;
1605
- eventType?: string | undefined;
1606
- 'legalStatus.REGISTERED.createdAt'?: {
1607
- type: "range";
1608
- gte: string;
1609
- lte: string;
1610
- } | {
1611
- type: "exact";
1612
- term: string;
1613
- } | undefined;
1614
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1855
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1615
1856
  type: "exact";
1616
1857
  term: string;
1617
1858
  } | {
1618
1859
  type: "within";
1619
1860
  location: string;
1620
1861
  } | undefined;
1621
- 'legalStatus.REGISTERED.registrationNumber'?: {
1862
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1622
1863
  type: "exact";
1623
1864
  term: string;
1624
1865
  } | undefined;
@@ -1626,13 +1867,16 @@ export declare const QueryType: z.ZodObject<{
1626
1867
  id?: string | undefined;
1627
1868
  status?: {
1628
1869
  type: "exact";
1629
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1870
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1630
1871
  } | {
1631
1872
  type: "anyOf";
1632
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1873
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1633
1874
  } | undefined;
1634
1875
  data?: any;
1635
- createdByUserType?: "system" | "user" | undefined;
1876
+ createdByUserType?: {
1877
+ type: "exact";
1878
+ term: "system" | "user";
1879
+ } | undefined;
1636
1880
  createdAt?: {
1637
1881
  type: "range";
1638
1882
  gte: string;
@@ -1640,6 +1884,9 @@ export declare const QueryType: z.ZodObject<{
1640
1884
  } | {
1641
1885
  type: "exact";
1642
1886
  term: string;
1887
+ } | {
1888
+ type: "timePeriod";
1889
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1643
1890
  } | undefined;
1644
1891
  createdBy?: {
1645
1892
  type: "exact";
@@ -1663,11 +1910,33 @@ export declare const QueryType: z.ZodObject<{
1663
1910
  } | {
1664
1911
  type: "exact";
1665
1912
  term: string;
1913
+ } | {
1914
+ type: "timePeriod";
1915
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1666
1916
  } | undefined;
1667
1917
  trackingId?: {
1668
1918
  type: "exact";
1669
1919
  term: string;
1670
1920
  } | undefined;
1921
+ eventType?: string | undefined;
1922
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1923
+ type: "range";
1924
+ gte: string;
1925
+ lte: string;
1926
+ } | {
1927
+ type: "exact";
1928
+ term: string;
1929
+ } | {
1930
+ type: "timePeriod";
1931
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1932
+ } | undefined;
1933
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1934
+ type: "exact";
1935
+ term: string;
1936
+ } | {
1937
+ type: "within";
1938
+ location: string;
1939
+ } | undefined;
1671
1940
  updatedAtLocation?: {
1672
1941
  type: "exact";
1673
1942
  term: string;
@@ -1683,23 +1952,14 @@ export declare const QueryType: z.ZodObject<{
1683
1952
  anyOf?: string[] | undefined;
1684
1953
  noneOf?: string[] | undefined;
1685
1954
  } | 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'?: {
1955
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1696
1956
  type: "exact";
1697
1957
  term: string;
1698
1958
  } | {
1699
1959
  type: "within";
1700
1960
  location: string;
1701
1961
  } | undefined;
1702
- 'legalStatus.REGISTERED.registrationNumber'?: {
1962
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1703
1963
  type: "exact";
1704
1964
  term: string;
1705
1965
  } | undefined;
@@ -1707,13 +1967,16 @@ export declare const QueryType: z.ZodObject<{
1707
1967
  id?: string | undefined;
1708
1968
  status?: {
1709
1969
  type: "exact";
1710
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1970
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1711
1971
  } | {
1712
1972
  type: "anyOf";
1713
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1973
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1714
1974
  } | undefined;
1715
1975
  data?: any;
1716
- createdByUserType?: "system" | "user" | undefined;
1976
+ createdByUserType?: {
1977
+ type: "exact";
1978
+ term: "system" | "user";
1979
+ } | undefined;
1717
1980
  createdAt?: {
1718
1981
  type: "range";
1719
1982
  gte: string;
@@ -1721,6 +1984,9 @@ export declare const QueryType: z.ZodObject<{
1721
1984
  } | {
1722
1985
  type: "exact";
1723
1986
  term: string;
1987
+ } | {
1988
+ type: "timePeriod";
1989
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1724
1990
  } | undefined;
1725
1991
  createdBy?: {
1726
1992
  type: "exact";
@@ -1744,11 +2010,33 @@ export declare const QueryType: z.ZodObject<{
1744
2010
  } | {
1745
2011
  type: "exact";
1746
2012
  term: string;
2013
+ } | {
2014
+ type: "timePeriod";
2015
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1747
2016
  } | undefined;
1748
2017
  trackingId?: {
1749
2018
  type: "exact";
1750
2019
  term: string;
1751
2020
  } | undefined;
2021
+ eventType?: string | undefined;
2022
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2023
+ type: "range";
2024
+ gte: string;
2025
+ lte: string;
2026
+ } | {
2027
+ type: "exact";
2028
+ term: string;
2029
+ } | {
2030
+ type: "timePeriod";
2031
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2032
+ } | undefined;
2033
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2034
+ type: "exact";
2035
+ term: string;
2036
+ } | {
2037
+ type: "within";
2038
+ location: string;
2039
+ } | undefined;
1752
2040
  updatedAtLocation?: {
1753
2041
  type: "exact";
1754
2042
  term: string;
@@ -1764,23 +2052,14 @@ export declare const QueryType: z.ZodObject<{
1764
2052
  anyOf?: string[] | undefined;
1765
2053
  noneOf?: string[] | undefined;
1766
2054
  } | undefined;
1767
- eventType?: string | undefined;
1768
- 'legalStatus.REGISTERED.createdAt'?: {
1769
- type: "range";
1770
- gte: string;
1771
- lte: string;
1772
- } | {
1773
- type: "exact";
1774
- term: string;
1775
- } | undefined;
1776
- 'legalStatus.REGISTERED.createdAtLocation'?: {
2055
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1777
2056
  type: "exact";
1778
2057
  term: string;
1779
2058
  } | {
1780
2059
  type: "within";
1781
2060
  location: string;
1782
2061
  } | undefined;
1783
- 'legalStatus.REGISTERED.registrationNumber'?: {
2062
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1784
2063
  type: "exact";
1785
2064
  term: string;
1786
2065
  } | undefined;
@@ -1788,13 +2067,16 @@ export declare const QueryType: z.ZodObject<{
1788
2067
  id?: string | undefined;
1789
2068
  status?: {
1790
2069
  type: "exact";
1791
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2070
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1792
2071
  } | {
1793
2072
  type: "anyOf";
1794
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2073
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1795
2074
  } | undefined;
1796
2075
  data?: any;
1797
- createdByUserType?: "system" | "user" | undefined;
2076
+ createdByUserType?: {
2077
+ type: "exact";
2078
+ term: "system" | "user";
2079
+ } | undefined;
1798
2080
  createdAt?: {
1799
2081
  type: "range";
1800
2082
  gte: string;
@@ -1802,6 +2084,9 @@ export declare const QueryType: z.ZodObject<{
1802
2084
  } | {
1803
2085
  type: "exact";
1804
2086
  term: string;
2087
+ } | {
2088
+ type: "timePeriod";
2089
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1805
2090
  } | undefined;
1806
2091
  createdBy?: {
1807
2092
  type: "exact";
@@ -1825,11 +2110,33 @@ export declare const QueryType: z.ZodObject<{
1825
2110
  } | {
1826
2111
  type: "exact";
1827
2112
  term: string;
2113
+ } | {
2114
+ type: "timePeriod";
2115
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1828
2116
  } | undefined;
1829
2117
  trackingId?: {
1830
2118
  type: "exact";
1831
2119
  term: string;
1832
2120
  } | undefined;
2121
+ eventType?: string | undefined;
2122
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2123
+ type: "range";
2124
+ gte: string;
2125
+ lte: string;
2126
+ } | {
2127
+ type: "exact";
2128
+ term: string;
2129
+ } | {
2130
+ type: "timePeriod";
2131
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2132
+ } | undefined;
2133
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2134
+ type: "exact";
2135
+ term: string;
2136
+ } | {
2137
+ type: "within";
2138
+ location: string;
2139
+ } | undefined;
1833
2140
  updatedAtLocation?: {
1834
2141
  type: "exact";
1835
2142
  term: string;
@@ -1845,23 +2152,14 @@ export declare const QueryType: z.ZodObject<{
1845
2152
  anyOf?: string[] | undefined;
1846
2153
  noneOf?: string[] | undefined;
1847
2154
  } | undefined;
1848
- eventType?: string | undefined;
1849
- 'legalStatus.REGISTERED.createdAt'?: {
1850
- type: "range";
1851
- gte: string;
1852
- lte: string;
1853
- } | {
1854
- type: "exact";
1855
- term: string;
1856
- } | undefined;
1857
- 'legalStatus.REGISTERED.createdAtLocation'?: {
2155
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1858
2156
  type: "exact";
1859
2157
  term: string;
1860
2158
  } | {
1861
2159
  type: "within";
1862
2160
  location: string;
1863
2161
  } | undefined;
1864
- 'legalStatus.REGISTERED.registrationNumber'?: {
2162
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1865
2163
  type: "exact";
1866
2164
  term: string;
1867
2165
  } | undefined;
@@ -1872,13 +2170,16 @@ export declare const QueryType: z.ZodObject<{
1872
2170
  id?: string | undefined;
1873
2171
  status?: {
1874
2172
  type: "exact";
1875
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2173
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1876
2174
  } | {
1877
2175
  type: "anyOf";
1878
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2176
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1879
2177
  } | undefined;
1880
2178
  data?: any;
1881
- createdByUserType?: "system" | "user" | undefined;
2179
+ createdByUserType?: {
2180
+ type: "exact";
2181
+ term: "system" | "user";
2182
+ } | undefined;
1882
2183
  createdAt?: {
1883
2184
  type: "range";
1884
2185
  gte: string;
@@ -1886,6 +2187,9 @@ export declare const QueryType: z.ZodObject<{
1886
2187
  } | {
1887
2188
  type: "exact";
1888
2189
  term: string;
2190
+ } | {
2191
+ type: "timePeriod";
2192
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1889
2193
  } | undefined;
1890
2194
  createdBy?: {
1891
2195
  type: "exact";
@@ -1909,11 +2213,33 @@ export declare const QueryType: z.ZodObject<{
1909
2213
  } | {
1910
2214
  type: "exact";
1911
2215
  term: string;
2216
+ } | {
2217
+ type: "timePeriod";
2218
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1912
2219
  } | undefined;
1913
2220
  trackingId?: {
1914
2221
  type: "exact";
1915
2222
  term: string;
1916
2223
  } | undefined;
2224
+ eventType?: string | undefined;
2225
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2226
+ type: "range";
2227
+ gte: string;
2228
+ lte: string;
2229
+ } | {
2230
+ type: "exact";
2231
+ term: string;
2232
+ } | {
2233
+ type: "timePeriod";
2234
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2235
+ } | undefined;
2236
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2237
+ type: "exact";
2238
+ term: string;
2239
+ } | {
2240
+ type: "within";
2241
+ location: string;
2242
+ } | undefined;
1917
2243
  updatedAtLocation?: {
1918
2244
  type: "exact";
1919
2245
  term: string;
@@ -1929,23 +2255,14 @@ export declare const QueryType: z.ZodObject<{
1929
2255
  anyOf?: string[] | undefined;
1930
2256
  noneOf?: string[] | undefined;
1931
2257
  } | 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'?: {
2258
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1942
2259
  type: "exact";
1943
2260
  term: string;
1944
2261
  } | {
1945
2262
  type: "within";
1946
2263
  location: string;
1947
2264
  } | undefined;
1948
- 'legalStatus.REGISTERED.registrationNumber'?: {
2265
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1949
2266
  type: "exact";
1950
2267
  term: string;
1951
2268
  } | undefined;
@@ -1953,13 +2270,16 @@ export declare const QueryType: z.ZodObject<{
1953
2270
  id?: string | undefined;
1954
2271
  status?: {
1955
2272
  type: "exact";
1956
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2273
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1957
2274
  } | {
1958
2275
  type: "anyOf";
1959
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2276
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1960
2277
  } | undefined;
1961
2278
  data?: any;
1962
- createdByUserType?: "system" | "user" | undefined;
2279
+ createdByUserType?: {
2280
+ type: "exact";
2281
+ term: "system" | "user";
2282
+ } | undefined;
1963
2283
  createdAt?: {
1964
2284
  type: "range";
1965
2285
  gte: string;
@@ -1967,6 +2287,9 @@ export declare const QueryType: z.ZodObject<{
1967
2287
  } | {
1968
2288
  type: "exact";
1969
2289
  term: string;
2290
+ } | {
2291
+ type: "timePeriod";
2292
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1970
2293
  } | undefined;
1971
2294
  createdBy?: {
1972
2295
  type: "exact";
@@ -1990,11 +2313,33 @@ export declare const QueryType: z.ZodObject<{
1990
2313
  } | {
1991
2314
  type: "exact";
1992
2315
  term: string;
2316
+ } | {
2317
+ type: "timePeriod";
2318
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1993
2319
  } | undefined;
1994
2320
  trackingId?: {
1995
2321
  type: "exact";
1996
2322
  term: string;
1997
2323
  } | undefined;
2324
+ eventType?: string | undefined;
2325
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2326
+ type: "range";
2327
+ gte: string;
2328
+ lte: string;
2329
+ } | {
2330
+ type: "exact";
2331
+ term: string;
2332
+ } | {
2333
+ type: "timePeriod";
2334
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2335
+ } | undefined;
2336
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2337
+ type: "exact";
2338
+ term: string;
2339
+ } | {
2340
+ type: "within";
2341
+ location: string;
2342
+ } | undefined;
1998
2343
  updatedAtLocation?: {
1999
2344
  type: "exact";
2000
2345
  term: string;
@@ -2010,23 +2355,14 @@ export declare const QueryType: z.ZodObject<{
2010
2355
  anyOf?: string[] | undefined;
2011
2356
  noneOf?: string[] | undefined;
2012
2357
  } | undefined;
2013
- eventType?: string | undefined;
2014
- 'legalStatus.REGISTERED.createdAt'?: {
2015
- type: "range";
2016
- gte: string;
2017
- lte: string;
2018
- } | {
2019
- type: "exact";
2020
- term: string;
2021
- } | undefined;
2022
- 'legalStatus.REGISTERED.createdAtLocation'?: {
2358
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2023
2359
  type: "exact";
2024
2360
  term: string;
2025
2361
  } | {
2026
2362
  type: "within";
2027
2363
  location: string;
2028
2364
  } | undefined;
2029
- 'legalStatus.REGISTERED.registrationNumber'?: {
2365
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2030
2366
  type: "exact";
2031
2367
  term: string;
2032
2368
  } | undefined;
@@ -2037,5 +2373,10 @@ export declare const QueryType: z.ZodObject<{
2037
2373
  }>;
2038
2374
  export type QueryType = z.infer<typeof QueryType>;
2039
2375
  export type QueryExpression = z.infer<typeof QueryExpression>;
2376
+ export declare const SearchScopeAccessLevels: {
2377
+ readonly MY_JURISDICTION: "my-jurisdiction";
2378
+ readonly ALL: "all";
2379
+ };
2380
+ export type SearchScopeAccessLevels = (typeof SearchScopeAccessLevels)[keyof typeof SearchScopeAccessLevels];
2040
2381
  export {};
2041
2382
  //# sourceMappingURL=EventIndex.d.ts.map