@opencrvs/toolkit 1.8.0-rc.fec1d5d → 1.8.0-rc.fef0fdd

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.
@@ -1,13 +1,14 @@
1
1
  import { z, ZodType } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
- id: z.ZodString;
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
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.ZodString>>;
10
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
11
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
11
12
  acceptedAt: z.ZodString;
12
13
  createdByRole: z.ZodString;
13
14
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -16,20 +17,23 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
16
17
  createdBy: string;
17
18
  createdByRole: string;
18
19
  acceptedAt: string;
20
+ createdByUserType?: "system" | "user" | null | undefined;
19
21
  createdBySignature?: string | null | undefined;
20
- createdAtLocation?: string | null | undefined;
22
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
21
23
  }, {
22
24
  createdAt: string;
23
25
  createdBy: string;
24
26
  createdByRole: string;
25
27
  acceptedAt: string;
28
+ createdByUserType?: "system" | "user" | null | undefined;
26
29
  createdBySignature?: string | null | undefined;
27
30
  createdAtLocation?: string | null | undefined;
28
31
  }>>>;
29
32
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
30
33
  createdAt: z.ZodString;
31
34
  createdBy: z.ZodString;
32
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
36
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
33
37
  acceptedAt: z.ZodString;
34
38
  createdByRole: z.ZodString;
35
39
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41,14 +45,16 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
41
45
  createdByRole: string;
42
46
  registrationNumber: string;
43
47
  acceptedAt: string;
48
+ createdByUserType?: "system" | "user" | null | undefined;
44
49
  createdBySignature?: string | null | undefined;
45
- createdAtLocation?: string | null | undefined;
50
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
46
51
  }, {
47
52
  createdAt: string;
48
53
  createdBy: string;
49
54
  createdByRole: string;
50
55
  registrationNumber: string;
51
56
  acceptedAt: string;
57
+ createdByUserType?: "system" | "user" | null | undefined;
52
58
  createdBySignature?: string | null | undefined;
53
59
  createdAtLocation?: string | null | undefined;
54
60
  }>>>;
@@ -58,8 +64,9 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
58
64
  createdBy: string;
59
65
  createdByRole: string;
60
66
  acceptedAt: string;
67
+ createdByUserType?: "system" | "user" | null | undefined;
61
68
  createdBySignature?: string | null | undefined;
62
- createdAtLocation?: string | null | undefined;
69
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
63
70
  } | null | undefined;
64
71
  REGISTERED?: {
65
72
  createdAt: string;
@@ -67,8 +74,9 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
67
74
  createdByRole: string;
68
75
  registrationNumber: string;
69
76
  acceptedAt: string;
77
+ createdByUserType?: "system" | "user" | null | undefined;
70
78
  createdBySignature?: string | null | undefined;
71
- createdAtLocation?: string | null | undefined;
79
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
72
80
  } | null | undefined;
73
81
  }, {
74
82
  DECLARED?: {
@@ -76,6 +84,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
76
84
  createdBy: string;
77
85
  createdByRole: string;
78
86
  acceptedAt: string;
87
+ createdByUserType?: "system" | "user" | null | undefined;
79
88
  createdBySignature?: string | null | undefined;
80
89
  createdAtLocation?: string | null | undefined;
81
90
  } | null | undefined;
@@ -85,6 +94,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
85
94
  createdByRole: string;
86
95
  registrationNumber: string;
87
96
  acceptedAt: string;
97
+ createdByUserType?: "system" | "user" | null | undefined;
88
98
  createdBySignature?: string | null | undefined;
89
99
  createdAtLocation?: string | null | undefined;
90
100
  } | null | undefined;
@@ -92,10 +102,11 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
92
102
  createdAt: z.ZodString;
93
103
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
104
  createdBy: z.ZodString;
105
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
95
106
  updatedByUserRole: z.ZodString;
96
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
97
108
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
99
110
  updatedAt: z.ZodString;
100
111
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
112
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -244,7 +255,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
244
255
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
245
256
  }>, "strip", z.ZodTypeAny, {
246
257
  type: string;
247
- id: string;
258
+ id: string & z.BRAND<"UUID">;
248
259
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
249
260
  createdAt: string;
250
261
  createdBy: string;
@@ -302,8 +313,9 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
302
313
  createdBy: string;
303
314
  createdByRole: string;
304
315
  acceptedAt: string;
316
+ createdByUserType?: "system" | "user" | null | undefined;
305
317
  createdBySignature?: string | null | undefined;
306
- createdAtLocation?: string | null | undefined;
318
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
307
319
  } | null | undefined;
308
320
  REGISTERED?: {
309
321
  createdAt: string;
@@ -311,17 +323,19 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
311
323
  createdByRole: string;
312
324
  registrationNumber: string;
313
325
  acceptedAt: string;
326
+ createdByUserType?: "system" | "user" | null | undefined;
314
327
  createdBySignature?: string | null | undefined;
315
- createdAtLocation?: string | null | undefined;
328
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
316
329
  } | null | undefined;
317
330
  };
318
331
  updatedByUserRole: string;
319
332
  flags: string[];
333
+ createdByUserType?: "system" | "user" | null | undefined;
320
334
  createdBySignature?: string | null | undefined;
321
- createdAtLocation?: string | null | undefined;
335
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
322
336
  assignedTo?: string | null | undefined;
323
337
  dateOfEvent?: string | null | undefined;
324
- updatedAtLocation?: string | null | undefined;
338
+ updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
325
339
  updatedBy?: string | null | undefined;
326
340
  }, {
327
341
  type: string;
@@ -383,6 +397,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
383
397
  createdBy: string;
384
398
  createdByRole: string;
385
399
  acceptedAt: string;
400
+ createdByUserType?: "system" | "user" | null | undefined;
386
401
  createdBySignature?: string | null | undefined;
387
402
  createdAtLocation?: string | null | undefined;
388
403
  } | null | undefined;
@@ -392,12 +407,14 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
392
407
  createdByRole: string;
393
408
  registrationNumber: string;
394
409
  acceptedAt: string;
410
+ createdByUserType?: "system" | "user" | null | undefined;
395
411
  createdBySignature?: string | null | undefined;
396
412
  createdAtLocation?: string | null | undefined;
397
413
  } | null | undefined;
398
414
  };
399
415
  updatedByUserRole: string;
400
416
  flags: string[];
417
+ createdByUserType?: "system" | "user" | null | undefined;
401
418
  createdBySignature?: string | null | undefined;
402
419
  createdAtLocation?: string | null | undefined;
403
420
  assignedTo?: string | null | undefined;
@@ -434,16 +451,6 @@ export declare const Exact: z.ZodObject<{
434
451
  type: "exact";
435
452
  term: string;
436
453
  }>;
437
- export declare const AnyOf: z.ZodObject<{
438
- type: z.ZodLiteral<"anyOf">;
439
- terms: z.ZodArray<z.ZodString, "many">;
440
- }, "strip", z.ZodTypeAny, {
441
- type: "anyOf";
442
- terms: string[];
443
- }, {
444
- type: "anyOf";
445
- terms: string[];
446
- }>;
447
454
  export declare const ExactStatus: z.ZodObject<{
448
455
  type: z.ZodLiteral<"exact">;
449
456
  term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
@@ -454,6 +461,16 @@ export declare const ExactStatus: z.ZodObject<{
454
461
  type: "exact";
455
462
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
456
463
  }>;
464
+ export declare const AnyOf: z.ZodObject<{
465
+ type: z.ZodLiteral<"anyOf">;
466
+ terms: z.ZodArray<z.ZodString, "many">;
467
+ }, "strip", z.ZodTypeAny, {
468
+ type: "anyOf";
469
+ terms: string[];
470
+ }, {
471
+ type: "anyOf";
472
+ terms: string[];
473
+ }>;
457
474
  export declare const AnyOfStatus: z.ZodObject<{
458
475
  type: z.ZodLiteral<"anyOf">;
459
476
  terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
@@ -497,20 +514,53 @@ export declare const Within: z.ZodObject<{
497
514
  type: "within";
498
515
  location: string;
499
516
  }>;
500
- export declare const DateCondition: z.ZodUnion<[z.ZodObject<{
517
+ export declare const RangeDate: z.ZodObject<z.objectUtil.extendShape<{
518
+ type: z.ZodLiteral<"range">;
519
+ gte: z.ZodString;
520
+ lte: z.ZodString;
521
+ }, {
522
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
523
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
524
+ }>, "strip", z.ZodTypeAny, {
525
+ type: "range";
526
+ gte: string;
527
+ lte: string;
528
+ }, {
529
+ type: "range";
530
+ gte: string;
531
+ lte: string;
532
+ }>;
533
+ export declare const ExactDate: z.ZodObject<z.objectUtil.extendShape<{
501
534
  type: z.ZodLiteral<"exact">;
502
535
  term: z.ZodString;
503
- }, "strip", z.ZodTypeAny, {
536
+ }, {
537
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
538
+ }>, "strip", z.ZodTypeAny, {
539
+ type: "exact";
540
+ term: string;
541
+ }, {
542
+ type: "exact";
543
+ term: string;
544
+ }>;
545
+ export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
546
+ type: z.ZodLiteral<"exact">;
547
+ term: z.ZodString;
548
+ }, {
549
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
550
+ }>, "strip", z.ZodTypeAny, {
504
551
  type: "exact";
505
552
  term: string;
506
553
  }, {
507
554
  type: "exact";
508
555
  term: string;
509
- }>, z.ZodObject<{
556
+ }>, z.ZodObject<z.objectUtil.extendShape<{
510
557
  type: z.ZodLiteral<"range">;
511
558
  gte: z.ZodString;
512
559
  lte: z.ZodString;
513
- }, "strip", z.ZodTypeAny, {
560
+ }, {
561
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
562
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
563
+ }>, "strip", z.ZodTypeAny, {
514
564
  type: "range";
515
565
  gte: string;
516
566
  lte: string;
@@ -525,7 +575,7 @@ type QueryMap = {
525
575
  [key: string]: BaseInput | QueryMap;
526
576
  };
527
577
  export type QueryInputType = BaseInput | QueryMap;
528
- export declare const QueryExpression: z.ZodObject<{
578
+ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
529
579
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
530
580
  eventType: z.ZodOptional<z.ZodString>;
531
581
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -547,20 +597,25 @@ export declare const QueryExpression: z.ZodObject<{
547
597
  type: "exact";
548
598
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
549
599
  }>]>>>;
550
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
600
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
551
601
  type: z.ZodLiteral<"exact">;
552
602
  term: z.ZodString;
553
- }, "strip", z.ZodTypeAny, {
603
+ }, {
604
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
605
+ }>, "strip", z.ZodTypeAny, {
554
606
  type: "exact";
555
607
  term: string;
556
608
  }, {
557
609
  type: "exact";
558
610
  term: string;
559
- }>, z.ZodObject<{
611
+ }>, z.ZodObject<z.objectUtil.extendShape<{
560
612
  type: z.ZodLiteral<"range">;
561
613
  gte: z.ZodString;
562
614
  lte: z.ZodString;
563
- }, "strip", z.ZodTypeAny, {
615
+ }, {
616
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
617
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
618
+ }>, "strip", z.ZodTypeAny, {
564
619
  type: "range";
565
620
  gte: string;
566
621
  lte: string;
@@ -569,20 +624,25 @@ export declare const QueryExpression: z.ZodObject<{
569
624
  gte: string;
570
625
  lte: string;
571
626
  }>]>>>;
572
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
627
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
573
628
  type: z.ZodLiteral<"exact">;
574
629
  term: z.ZodString;
575
- }, "strip", z.ZodTypeAny, {
630
+ }, {
631
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
632
+ }>, "strip", z.ZodTypeAny, {
576
633
  type: "exact";
577
634
  term: string;
578
635
  }, {
579
636
  type: "exact";
580
637
  term: string;
581
- }>, z.ZodObject<{
638
+ }>, z.ZodObject<z.objectUtil.extendShape<{
582
639
  type: z.ZodLiteral<"range">;
583
640
  gte: z.ZodString;
584
641
  lte: z.ZodString;
585
- }, "strip", z.ZodTypeAny, {
642
+ }, {
643
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
644
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
645
+ }>, "strip", z.ZodTypeAny, {
586
646
  type: "range";
587
647
  gte: string;
588
648
  lte: string;
@@ -591,20 +651,25 @@ export declare const QueryExpression: z.ZodObject<{
591
651
  gte: string;
592
652
  lte: string;
593
653
  }>]>>>;
594
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
654
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
595
655
  type: z.ZodLiteral<"exact">;
596
656
  term: z.ZodString;
597
- }, "strip", z.ZodTypeAny, {
657
+ }, {
658
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
659
+ }>, "strip", z.ZodTypeAny, {
598
660
  type: "exact";
599
661
  term: string;
600
662
  }, {
601
663
  type: "exact";
602
664
  term: string;
603
- }>, z.ZodObject<{
665
+ }>, z.ZodObject<z.objectUtil.extendShape<{
604
666
  type: z.ZodLiteral<"range">;
605
667
  gte: z.ZodString;
606
668
  lte: z.ZodString;
607
- }, "strip", z.ZodTypeAny, {
669
+ }, {
670
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
671
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
672
+ }>, "strip", z.ZodTypeAny, {
608
673
  type: "range";
609
674
  gte: string;
610
675
  lte: string;
@@ -690,6 +755,7 @@ export declare const QueryExpression: z.ZodObject<{
690
755
  type: "exact";
691
756
  term: string;
692
757
  }>>>;
758
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
693
759
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
694
760
  type: z.ZodLiteral<"exact">;
695
761
  term: z.ZodString;
@@ -750,13 +816,14 @@ export declare const QueryExpression: z.ZodObject<{
750
816
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
751
817
  } | undefined;
752
818
  data?: any;
819
+ createdByUserType?: "system" | "user" | undefined;
753
820
  createdAt?: {
754
- type: "exact";
755
- term: string;
756
- } | {
757
821
  type: "range";
758
822
  gte: string;
759
823
  lte: string;
824
+ } | {
825
+ type: "exact";
826
+ term: string;
760
827
  } | undefined;
761
828
  createdBy?: {
762
829
  type: "exact";
@@ -774,12 +841,12 @@ export declare const QueryExpression: z.ZodObject<{
774
841
  term: string;
775
842
  } | undefined;
776
843
  updatedAt?: {
777
- type: "exact";
778
- term: string;
779
- } | {
780
844
  type: "range";
781
845
  gte: string;
782
846
  lte: string;
847
+ } | {
848
+ type: "exact";
849
+ term: string;
783
850
  } | undefined;
784
851
  trackingId?: {
785
852
  type: "exact";
@@ -805,12 +872,12 @@ export declare const QueryExpression: z.ZodObject<{
805
872
  })[] | undefined;
806
873
  eventType?: string | undefined;
807
874
  'legalStatus.REGISTERED.createdAt'?: {
808
- type: "exact";
809
- term: string;
810
- } | {
811
875
  type: "range";
812
876
  gte: string;
813
877
  lte: string;
878
+ } | {
879
+ type: "exact";
880
+ term: string;
814
881
  } | undefined;
815
882
  'legalStatus.REGISTERED.createdAtLocation'?: {
816
883
  type: "exact";
@@ -833,13 +900,14 @@ export declare const QueryExpression: z.ZodObject<{
833
900
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
834
901
  } | undefined;
835
902
  data?: any;
903
+ createdByUserType?: "system" | "user" | undefined;
836
904
  createdAt?: {
837
- type: "exact";
838
- term: string;
839
- } | {
840
905
  type: "range";
841
906
  gte: string;
842
907
  lte: string;
908
+ } | {
909
+ type: "exact";
910
+ term: string;
843
911
  } | undefined;
844
912
  createdBy?: {
845
913
  type: "exact";
@@ -857,12 +925,96 @@ export declare const QueryExpression: z.ZodObject<{
857
925
  term: string;
858
926
  } | undefined;
859
927
  updatedAt?: {
928
+ type: "range";
929
+ gte: string;
930
+ lte: string;
931
+ } | {
932
+ type: "exact";
933
+ term: string;
934
+ } | undefined;
935
+ trackingId?: {
936
+ type: "exact";
937
+ term: string;
938
+ } | undefined;
939
+ updatedAtLocation?: {
940
+ type: "exact";
941
+ term: string;
942
+ } | {
943
+ type: "within";
944
+ location: string;
945
+ } | undefined;
946
+ updatedBy?: {
947
+ type: "exact";
948
+ term: string;
949
+ } | undefined;
950
+ flags?: ({
951
+ type: "anyOf";
952
+ terms: string[];
953
+ } | {
954
+ type: "not";
955
+ term: string;
956
+ })[] | undefined;
957
+ eventType?: string | undefined;
958
+ 'legalStatus.REGISTERED.createdAt'?: {
959
+ type: "range";
960
+ gte: string;
961
+ lte: string;
962
+ } | {
963
+ type: "exact";
964
+ term: string;
965
+ } | undefined;
966
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
967
+ type: "exact";
968
+ term: string;
969
+ } | {
970
+ type: "within";
971
+ location: string;
972
+ } | undefined;
973
+ 'legalStatus.REGISTERED.registrationNumber'?: {
974
+ type: "exact";
975
+ term: string;
976
+ } | undefined;
977
+ }>, {
978
+ id?: string | undefined;
979
+ status?: {
980
+ type: "exact";
981
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
982
+ } | {
983
+ type: "anyOf";
984
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
985
+ } | undefined;
986
+ data?: any;
987
+ createdByUserType?: "system" | "user" | undefined;
988
+ createdAt?: {
989
+ type: "range";
990
+ gte: string;
991
+ lte: string;
992
+ } | {
993
+ type: "exact";
994
+ term: string;
995
+ } | undefined;
996
+ createdBy?: {
997
+ type: "exact";
998
+ term: string;
999
+ } | undefined;
1000
+ createdAtLocation?: {
860
1001
  type: "exact";
861
1002
  term: string;
862
1003
  } | {
1004
+ type: "within";
1005
+ location: string;
1006
+ } | undefined;
1007
+ assignedTo?: {
1008
+ type: "exact";
1009
+ term: string;
1010
+ } | undefined;
1011
+ updatedAt?: {
863
1012
  type: "range";
864
1013
  gte: string;
865
1014
  lte: string;
1015
+ } | {
1016
+ type: "exact";
1017
+ term: string;
866
1018
  } | undefined;
867
1019
  trackingId?: {
868
1020
  type: "exact";
@@ -888,63 +1040,152 @@ export declare const QueryExpression: z.ZodObject<{
888
1040
  })[] | undefined;
889
1041
  eventType?: string | undefined;
890
1042
  'legalStatus.REGISTERED.createdAt'?: {
1043
+ type: "range";
1044
+ gte: string;
1045
+ lte: string;
1046
+ } | {
891
1047
  type: "exact";
892
1048
  term: string;
1049
+ } | undefined;
1050
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1051
+ type: "exact";
1052
+ term: string;
1053
+ } | {
1054
+ type: "within";
1055
+ location: string;
1056
+ } | undefined;
1057
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1058
+ type: "exact";
1059
+ term: string;
1060
+ } | undefined;
1061
+ }, {
1062
+ id?: string | undefined;
1063
+ status?: {
1064
+ type: "exact";
1065
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
893
1066
  } | {
1067
+ type: "anyOf";
1068
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1069
+ } | undefined;
1070
+ data?: any;
1071
+ createdByUserType?: "system" | "user" | undefined;
1072
+ createdAt?: {
894
1073
  type: "range";
895
1074
  gte: string;
896
1075
  lte: string;
1076
+ } | {
1077
+ type: "exact";
1078
+ term: string;
897
1079
  } | undefined;
898
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1080
+ createdBy?: {
1081
+ type: "exact";
1082
+ term: string;
1083
+ } | undefined;
1084
+ createdAtLocation?: {
899
1085
  type: "exact";
900
1086
  term: string;
901
1087
  } | {
902
1088
  type: "within";
903
1089
  location: string;
904
1090
  } | undefined;
905
- 'legalStatus.REGISTERED.registrationNumber'?: {
1091
+ assignedTo?: {
906
1092
  type: "exact";
907
1093
  term: string;
908
1094
  } | undefined;
909
- }>;
910
- export declare const QueryType: z.ZodObject<{
911
- type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
912
- clauses: z.ZodEffects<z.ZodArray<z.ZodObject<{
913
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
914
- eventType: z.ZodOptional<z.ZodString>;
915
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
916
- type: z.ZodLiteral<"anyOf">;
917
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
918
- }, "strip", z.ZodTypeAny, {
919
- type: "anyOf";
920
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
921
- }, {
922
- type: "anyOf";
923
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
924
- }>, z.ZodObject<{
925
- type: z.ZodLiteral<"exact">;
926
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
927
- }, "strip", z.ZodTypeAny, {
928
- type: "exact";
929
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
930
- }, {
931
- type: "exact";
932
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
933
- }>]>>>;
934
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
935
- type: z.ZodLiteral<"exact">;
936
- term: z.ZodString;
937
- }, "strip", z.ZodTypeAny, {
938
- type: "exact";
939
- term: string;
940
- }, {
941
- type: "exact";
942
- term: string;
1095
+ updatedAt?: {
1096
+ type: "range";
1097
+ gte: string;
1098
+ lte: string;
1099
+ } | {
1100
+ type: "exact";
1101
+ term: string;
1102
+ } | undefined;
1103
+ trackingId?: {
1104
+ type: "exact";
1105
+ term: string;
1106
+ } | undefined;
1107
+ updatedAtLocation?: {
1108
+ type: "exact";
1109
+ term: string;
1110
+ } | {
1111
+ type: "within";
1112
+ location: string;
1113
+ } | undefined;
1114
+ updatedBy?: {
1115
+ type: "exact";
1116
+ term: string;
1117
+ } | undefined;
1118
+ flags?: ({
1119
+ type: "anyOf";
1120
+ terms: string[];
1121
+ } | {
1122
+ type: "not";
1123
+ term: string;
1124
+ })[] | undefined;
1125
+ eventType?: string | undefined;
1126
+ 'legalStatus.REGISTERED.createdAt'?: {
1127
+ type: "range";
1128
+ gte: string;
1129
+ lte: string;
1130
+ } | {
1131
+ type: "exact";
1132
+ term: string;
1133
+ } | undefined;
1134
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1135
+ type: "exact";
1136
+ term: string;
1137
+ } | {
1138
+ type: "within";
1139
+ location: string;
1140
+ } | undefined;
1141
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1142
+ type: "exact";
1143
+ term: string;
1144
+ } | undefined;
1145
+ }>;
1146
+ export declare const QueryType: z.ZodObject<{
1147
+ type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
1148
+ clauses: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
1149
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1150
+ eventType: z.ZodOptional<z.ZodString>;
1151
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1152
+ type: z.ZodLiteral<"anyOf">;
1153
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1154
+ }, "strip", z.ZodTypeAny, {
1155
+ type: "anyOf";
1156
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1157
+ }, {
1158
+ type: "anyOf";
1159
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
943
1160
  }>, z.ZodObject<{
1161
+ type: z.ZodLiteral<"exact">;
1162
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1163
+ }, "strip", z.ZodTypeAny, {
1164
+ type: "exact";
1165
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1166
+ }, {
1167
+ type: "exact";
1168
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1169
+ }>]>>>;
1170
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1171
+ type: z.ZodLiteral<"exact">;
1172
+ term: z.ZodString;
1173
+ }, {
1174
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1175
+ }>, "strip", z.ZodTypeAny, {
1176
+ type: "exact";
1177
+ term: string;
1178
+ }, {
1179
+ type: "exact";
1180
+ term: string;
1181
+ }>, z.ZodObject<z.objectUtil.extendShape<{
944
1182
  type: z.ZodLiteral<"range">;
945
1183
  gte: z.ZodString;
946
1184
  lte: z.ZodString;
947
- }, "strip", z.ZodTypeAny, {
1185
+ }, {
1186
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1187
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1188
+ }>, "strip", z.ZodTypeAny, {
948
1189
  type: "range";
949
1190
  gte: string;
950
1191
  lte: string;
@@ -953,20 +1194,25 @@ export declare const QueryType: z.ZodObject<{
953
1194
  gte: string;
954
1195
  lte: string;
955
1196
  }>]>>>;
956
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1197
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
957
1198
  type: z.ZodLiteral<"exact">;
958
1199
  term: z.ZodString;
959
- }, "strip", z.ZodTypeAny, {
1200
+ }, {
1201
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1202
+ }>, "strip", z.ZodTypeAny, {
960
1203
  type: "exact";
961
1204
  term: string;
962
1205
  }, {
963
1206
  type: "exact";
964
1207
  term: string;
965
- }>, z.ZodObject<{
1208
+ }>, z.ZodObject<z.objectUtil.extendShape<{
966
1209
  type: z.ZodLiteral<"range">;
967
1210
  gte: z.ZodString;
968
1211
  lte: z.ZodString;
969
- }, "strip", z.ZodTypeAny, {
1212
+ }, {
1213
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1214
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1215
+ }>, "strip", z.ZodTypeAny, {
970
1216
  type: "range";
971
1217
  gte: string;
972
1218
  lte: string;
@@ -975,20 +1221,25 @@ export declare const QueryType: z.ZodObject<{
975
1221
  gte: string;
976
1222
  lte: string;
977
1223
  }>]>>>;
978
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1224
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
979
1225
  type: z.ZodLiteral<"exact">;
980
1226
  term: z.ZodString;
981
- }, "strip", z.ZodTypeAny, {
1227
+ }, {
1228
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1229
+ }>, "strip", z.ZodTypeAny, {
982
1230
  type: "exact";
983
1231
  term: string;
984
1232
  }, {
985
1233
  type: "exact";
986
1234
  term: string;
987
- }>, z.ZodObject<{
1235
+ }>, z.ZodObject<z.objectUtil.extendShape<{
988
1236
  type: z.ZodLiteral<"range">;
989
1237
  gte: z.ZodString;
990
1238
  lte: z.ZodString;
991
- }, "strip", z.ZodTypeAny, {
1239
+ }, {
1240
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1241
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1242
+ }>, "strip", z.ZodTypeAny, {
992
1243
  type: "range";
993
1244
  gte: string;
994
1245
  lte: string;
@@ -1074,6 +1325,7 @@ export declare const QueryType: z.ZodObject<{
1074
1325
  type: "exact";
1075
1326
  term: string;
1076
1327
  }>>>;
1328
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
1077
1329
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1078
1330
  type: z.ZodLiteral<"exact">;
1079
1331
  term: z.ZodString;
@@ -1134,13 +1386,14 @@ export declare const QueryType: z.ZodObject<{
1134
1386
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1135
1387
  } | undefined;
1136
1388
  data?: any;
1389
+ createdByUserType?: "system" | "user" | undefined;
1137
1390
  createdAt?: {
1138
- type: "exact";
1139
- term: string;
1140
- } | {
1141
1391
  type: "range";
1142
1392
  gte: string;
1143
1393
  lte: string;
1394
+ } | {
1395
+ type: "exact";
1396
+ term: string;
1144
1397
  } | undefined;
1145
1398
  createdBy?: {
1146
1399
  type: "exact";
@@ -1158,12 +1411,12 @@ export declare const QueryType: z.ZodObject<{
1158
1411
  term: string;
1159
1412
  } | undefined;
1160
1413
  updatedAt?: {
1161
- type: "exact";
1162
- term: string;
1163
- } | {
1164
1414
  type: "range";
1165
1415
  gte: string;
1166
1416
  lte: string;
1417
+ } | {
1418
+ type: "exact";
1419
+ term: string;
1167
1420
  } | undefined;
1168
1421
  trackingId?: {
1169
1422
  type: "exact";
@@ -1189,12 +1442,12 @@ export declare const QueryType: z.ZodObject<{
1189
1442
  })[] | undefined;
1190
1443
  eventType?: string | undefined;
1191
1444
  'legalStatus.REGISTERED.createdAt'?: {
1192
- type: "exact";
1193
- term: string;
1194
- } | {
1195
1445
  type: "range";
1196
1446
  gte: string;
1197
1447
  lte: string;
1448
+ } | {
1449
+ type: "exact";
1450
+ term: string;
1198
1451
  } | undefined;
1199
1452
  'legalStatus.REGISTERED.createdAtLocation'?: {
1200
1453
  type: "exact";
@@ -1217,13 +1470,14 @@ export declare const QueryType: z.ZodObject<{
1217
1470
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1218
1471
  } | undefined;
1219
1472
  data?: any;
1473
+ createdByUserType?: "system" | "user" | undefined;
1220
1474
  createdAt?: {
1221
- type: "exact";
1222
- term: string;
1223
- } | {
1224
1475
  type: "range";
1225
1476
  gte: string;
1226
1477
  lte: string;
1478
+ } | {
1479
+ type: "exact";
1480
+ term: string;
1227
1481
  } | undefined;
1228
1482
  createdBy?: {
1229
1483
  type: "exact";
@@ -1241,12 +1495,96 @@ export declare const QueryType: z.ZodObject<{
1241
1495
  term: string;
1242
1496
  } | undefined;
1243
1497
  updatedAt?: {
1498
+ type: "range";
1499
+ gte: string;
1500
+ lte: string;
1501
+ } | {
1502
+ type: "exact";
1503
+ term: string;
1504
+ } | undefined;
1505
+ trackingId?: {
1506
+ type: "exact";
1507
+ term: string;
1508
+ } | undefined;
1509
+ updatedAtLocation?: {
1244
1510
  type: "exact";
1245
1511
  term: string;
1246
1512
  } | {
1513
+ type: "within";
1514
+ location: string;
1515
+ } | undefined;
1516
+ updatedBy?: {
1517
+ type: "exact";
1518
+ term: string;
1519
+ } | undefined;
1520
+ flags?: ({
1521
+ type: "anyOf";
1522
+ terms: string[];
1523
+ } | {
1524
+ type: "not";
1525
+ term: string;
1526
+ })[] | undefined;
1527
+ eventType?: string | undefined;
1528
+ 'legalStatus.REGISTERED.createdAt'?: {
1247
1529
  type: "range";
1248
1530
  gte: string;
1249
1531
  lte: string;
1532
+ } | {
1533
+ type: "exact";
1534
+ term: string;
1535
+ } | undefined;
1536
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1537
+ type: "exact";
1538
+ term: string;
1539
+ } | {
1540
+ type: "within";
1541
+ location: string;
1542
+ } | undefined;
1543
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1544
+ type: "exact";
1545
+ term: string;
1546
+ } | undefined;
1547
+ }>, {
1548
+ id?: string | undefined;
1549
+ status?: {
1550
+ type: "exact";
1551
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1552
+ } | {
1553
+ type: "anyOf";
1554
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1555
+ } | undefined;
1556
+ data?: any;
1557
+ createdByUserType?: "system" | "user" | undefined;
1558
+ createdAt?: {
1559
+ type: "range";
1560
+ gte: string;
1561
+ lte: string;
1562
+ } | {
1563
+ type: "exact";
1564
+ term: string;
1565
+ } | undefined;
1566
+ createdBy?: {
1567
+ type: "exact";
1568
+ term: string;
1569
+ } | undefined;
1570
+ createdAtLocation?: {
1571
+ type: "exact";
1572
+ term: string;
1573
+ } | {
1574
+ type: "within";
1575
+ location: string;
1576
+ } | undefined;
1577
+ assignedTo?: {
1578
+ type: "exact";
1579
+ term: string;
1580
+ } | undefined;
1581
+ updatedAt?: {
1582
+ type: "range";
1583
+ gte: string;
1584
+ lte: string;
1585
+ } | {
1586
+ type: "exact";
1587
+ term: string;
1250
1588
  } | undefined;
1251
1589
  trackingId?: {
1252
1590
  type: "exact";
@@ -1272,12 +1610,96 @@ export declare const QueryType: z.ZodObject<{
1272
1610
  })[] | undefined;
1273
1611
  eventType?: string | undefined;
1274
1612
  'legalStatus.REGISTERED.createdAt'?: {
1613
+ type: "range";
1614
+ gte: string;
1615
+ lte: string;
1616
+ } | {
1617
+ type: "exact";
1618
+ term: string;
1619
+ } | undefined;
1620
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1621
+ type: "exact";
1622
+ term: string;
1623
+ } | {
1624
+ type: "within";
1625
+ location: string;
1626
+ } | undefined;
1627
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1628
+ type: "exact";
1629
+ term: string;
1630
+ } | undefined;
1631
+ }, {
1632
+ id?: string | undefined;
1633
+ status?: {
1634
+ type: "exact";
1635
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1636
+ } | {
1637
+ type: "anyOf";
1638
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1639
+ } | undefined;
1640
+ data?: any;
1641
+ createdByUserType?: "system" | "user" | undefined;
1642
+ createdAt?: {
1643
+ type: "range";
1644
+ gte: string;
1645
+ lte: string;
1646
+ } | {
1647
+ type: "exact";
1648
+ term: string;
1649
+ } | undefined;
1650
+ createdBy?: {
1651
+ type: "exact";
1652
+ term: string;
1653
+ } | undefined;
1654
+ createdAtLocation?: {
1655
+ type: "exact";
1656
+ term: string;
1657
+ } | {
1658
+ type: "within";
1659
+ location: string;
1660
+ } | undefined;
1661
+ assignedTo?: {
1662
+ type: "exact";
1663
+ term: string;
1664
+ } | undefined;
1665
+ updatedAt?: {
1666
+ type: "range";
1667
+ gte: string;
1668
+ lte: string;
1669
+ } | {
1670
+ type: "exact";
1671
+ term: string;
1672
+ } | undefined;
1673
+ trackingId?: {
1674
+ type: "exact";
1675
+ term: string;
1676
+ } | undefined;
1677
+ updatedAtLocation?: {
1678
+ type: "exact";
1679
+ term: string;
1680
+ } | {
1681
+ type: "within";
1682
+ location: string;
1683
+ } | undefined;
1684
+ updatedBy?: {
1275
1685
  type: "exact";
1276
1686
  term: string;
1687
+ } | undefined;
1688
+ flags?: ({
1689
+ type: "anyOf";
1690
+ terms: string[];
1277
1691
  } | {
1692
+ type: "not";
1693
+ term: string;
1694
+ })[] | undefined;
1695
+ eventType?: string | undefined;
1696
+ 'legalStatus.REGISTERED.createdAt'?: {
1278
1697
  type: "range";
1279
1698
  gte: string;
1280
1699
  lte: string;
1700
+ } | {
1701
+ type: "exact";
1702
+ term: string;
1281
1703
  } | undefined;
1282
1704
  'legalStatus.REGISTERED.createdAtLocation'?: {
1283
1705
  type: "exact";
@@ -1300,13 +1722,14 @@ export declare const QueryType: z.ZodObject<{
1300
1722
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1301
1723
  } | undefined;
1302
1724
  data?: any;
1725
+ createdByUserType?: "system" | "user" | undefined;
1303
1726
  createdAt?: {
1304
- type: "exact";
1305
- term: string;
1306
- } | {
1307
1727
  type: "range";
1308
1728
  gte: string;
1309
1729
  lte: string;
1730
+ } | {
1731
+ type: "exact";
1732
+ term: string;
1310
1733
  } | undefined;
1311
1734
  createdBy?: {
1312
1735
  type: "exact";
@@ -1324,12 +1747,12 @@ export declare const QueryType: z.ZodObject<{
1324
1747
  term: string;
1325
1748
  } | undefined;
1326
1749
  updatedAt?: {
1327
- type: "exact";
1328
- term: string;
1329
- } | {
1330
1750
  type: "range";
1331
1751
  gte: string;
1332
1752
  lte: string;
1753
+ } | {
1754
+ type: "exact";
1755
+ term: string;
1333
1756
  } | undefined;
1334
1757
  trackingId?: {
1335
1758
  type: "exact";
@@ -1355,12 +1778,12 @@ export declare const QueryType: z.ZodObject<{
1355
1778
  })[] | undefined;
1356
1779
  eventType?: string | undefined;
1357
1780
  'legalStatus.REGISTERED.createdAt'?: {
1358
- type: "exact";
1359
- term: string;
1360
- } | {
1361
1781
  type: "range";
1362
1782
  gte: string;
1363
1783
  lte: string;
1784
+ } | {
1785
+ type: "exact";
1786
+ term: string;
1364
1787
  } | undefined;
1365
1788
  'legalStatus.REGISTERED.createdAtLocation'?: {
1366
1789
  type: "exact";
@@ -1383,13 +1806,14 @@ export declare const QueryType: z.ZodObject<{
1383
1806
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1384
1807
  } | undefined;
1385
1808
  data?: any;
1809
+ createdByUserType?: "system" | "user" | undefined;
1386
1810
  createdAt?: {
1387
- type: "exact";
1388
- term: string;
1389
- } | {
1390
1811
  type: "range";
1391
1812
  gte: string;
1392
1813
  lte: string;
1814
+ } | {
1815
+ type: "exact";
1816
+ term: string;
1393
1817
  } | undefined;
1394
1818
  createdBy?: {
1395
1819
  type: "exact";
@@ -1407,12 +1831,12 @@ export declare const QueryType: z.ZodObject<{
1407
1831
  term: string;
1408
1832
  } | undefined;
1409
1833
  updatedAt?: {
1410
- type: "exact";
1411
- term: string;
1412
- } | {
1413
1834
  type: "range";
1414
1835
  gte: string;
1415
1836
  lte: string;
1837
+ } | {
1838
+ type: "exact";
1839
+ term: string;
1416
1840
  } | undefined;
1417
1841
  trackingId?: {
1418
1842
  type: "exact";
@@ -1438,12 +1862,12 @@ export declare const QueryType: z.ZodObject<{
1438
1862
  })[] | undefined;
1439
1863
  eventType?: string | undefined;
1440
1864
  'legalStatus.REGISTERED.createdAt'?: {
1441
- type: "exact";
1442
- term: string;
1443
- } | {
1444
1865
  type: "range";
1445
1866
  gte: string;
1446
1867
  lte: string;
1868
+ } | {
1869
+ type: "exact";
1870
+ term: string;
1447
1871
  } | undefined;
1448
1872
  'legalStatus.REGISTERED.createdAtLocation'?: {
1449
1873
  type: "exact";
@@ -1469,13 +1893,14 @@ export declare const QueryType: z.ZodObject<{
1469
1893
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1470
1894
  } | undefined;
1471
1895
  data?: any;
1896
+ createdByUserType?: "system" | "user" | undefined;
1472
1897
  createdAt?: {
1473
- type: "exact";
1474
- term: string;
1475
- } | {
1476
1898
  type: "range";
1477
1899
  gte: string;
1478
1900
  lte: string;
1901
+ } | {
1902
+ type: "exact";
1903
+ term: string;
1479
1904
  } | undefined;
1480
1905
  createdBy?: {
1481
1906
  type: "exact";
@@ -1493,12 +1918,12 @@ export declare const QueryType: z.ZodObject<{
1493
1918
  term: string;
1494
1919
  } | undefined;
1495
1920
  updatedAt?: {
1496
- type: "exact";
1497
- term: string;
1498
- } | {
1499
1921
  type: "range";
1500
1922
  gte: string;
1501
1923
  lte: string;
1924
+ } | {
1925
+ type: "exact";
1926
+ term: string;
1502
1927
  } | undefined;
1503
1928
  trackingId?: {
1504
1929
  type: "exact";
@@ -1524,12 +1949,12 @@ export declare const QueryType: z.ZodObject<{
1524
1949
  })[] | undefined;
1525
1950
  eventType?: string | undefined;
1526
1951
  'legalStatus.REGISTERED.createdAt'?: {
1527
- type: "exact";
1528
- term: string;
1529
- } | {
1530
1952
  type: "range";
1531
1953
  gte: string;
1532
1954
  lte: string;
1955
+ } | {
1956
+ type: "exact";
1957
+ term: string;
1533
1958
  } | undefined;
1534
1959
  'legalStatus.REGISTERED.createdAtLocation'?: {
1535
1960
  type: "exact";
@@ -1552,13 +1977,14 @@ export declare const QueryType: z.ZodObject<{
1552
1977
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1553
1978
  } | undefined;
1554
1979
  data?: any;
1980
+ createdByUserType?: "system" | "user" | undefined;
1555
1981
  createdAt?: {
1556
- type: "exact";
1557
- term: string;
1558
- } | {
1559
1982
  type: "range";
1560
1983
  gte: string;
1561
1984
  lte: string;
1985
+ } | {
1986
+ type: "exact";
1987
+ term: string;
1562
1988
  } | undefined;
1563
1989
  createdBy?: {
1564
1990
  type: "exact";
@@ -1576,12 +2002,12 @@ export declare const QueryType: z.ZodObject<{
1576
2002
  term: string;
1577
2003
  } | undefined;
1578
2004
  updatedAt?: {
1579
- type: "exact";
1580
- term: string;
1581
- } | {
1582
2005
  type: "range";
1583
2006
  gte: string;
1584
2007
  lte: string;
2008
+ } | {
2009
+ type: "exact";
2010
+ term: string;
1585
2011
  } | undefined;
1586
2012
  trackingId?: {
1587
2013
  type: "exact";
@@ -1607,12 +2033,12 @@ export declare const QueryType: z.ZodObject<{
1607
2033
  })[] | undefined;
1608
2034
  eventType?: string | undefined;
1609
2035
  'legalStatus.REGISTERED.createdAt'?: {
1610
- type: "exact";
1611
- term: string;
1612
- } | {
1613
2036
  type: "range";
1614
2037
  gte: string;
1615
2038
  lte: string;
2039
+ } | {
2040
+ type: "exact";
2041
+ term: string;
1616
2042
  } | undefined;
1617
2043
  'legalStatus.REGISTERED.createdAtLocation'?: {
1618
2044
  type: "exact";