@opencrvs/toolkit 1.8.0-rc.fde984c → 1.8.0-rc.fe4d9d5

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.
@@ -8,6 +8,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
8
8
  createdAt: z.ZodString;
9
9
  createdBy: z.ZodString;
10
10
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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,6 +17,7 @@ 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
22
  createdAtLocation?: string | null | undefined;
21
23
  }, {
@@ -23,6 +25,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
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
  }>>>;
@@ -30,6 +33,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
30
33
  createdAt: z.ZodString;
31
34
  createdBy: z.ZodString;
32
35
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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,6 +45,7 @@ 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
50
  createdAtLocation?: string | null | undefined;
46
51
  }, {
@@ -49,6 +54,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
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,6 +64,7 @@ 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
69
  createdAtLocation?: string | null | undefined;
63
70
  } | null | undefined;
@@ -67,6 +74,7 @@ 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
79
  createdAtLocation?: string | null | undefined;
72
80
  } | null | undefined;
@@ -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,6 +102,7 @@ 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
107
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
108
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -302,6 +313,7 @@ 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
318
  createdAtLocation?: string | null | undefined;
307
319
  } | null | undefined;
@@ -311,12 +323,14 @@ 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
328
  createdAtLocation?: string | 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
335
  createdAtLocation?: string | null | undefined;
322
336
  assignedTo?: string | null | undefined;
@@ -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, {
504
539
  type: "exact";
505
540
  term: string;
506
541
  }, {
507
542
  type: "exact";
508
543
  term: string;
509
- }>, z.ZodObject<{
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, {
551
+ type: "exact";
552
+ term: string;
553
+ }, {
554
+ type: "exact";
555
+ term: string;
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,8 @@ 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<{
579
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
529
580
  eventType: z.ZodOptional<z.ZodString>;
530
581
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
531
582
  type: z.ZodLiteral<"anyOf">;
@@ -546,20 +597,25 @@ export declare const QueryExpression: z.ZodObject<{
546
597
  type: "exact";
547
598
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
548
599
  }>]>>>;
549
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
600
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
550
601
  type: z.ZodLiteral<"exact">;
551
602
  term: z.ZodString;
552
- }, "strip", z.ZodTypeAny, {
603
+ }, {
604
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
605
+ }>, "strip", z.ZodTypeAny, {
553
606
  type: "exact";
554
607
  term: string;
555
608
  }, {
556
609
  type: "exact";
557
610
  term: string;
558
- }>, z.ZodObject<{
611
+ }>, z.ZodObject<z.objectUtil.extendShape<{
559
612
  type: z.ZodLiteral<"range">;
560
613
  gte: z.ZodString;
561
614
  lte: z.ZodString;
562
- }, "strip", z.ZodTypeAny, {
615
+ }, {
616
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
617
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
618
+ }>, "strip", z.ZodTypeAny, {
563
619
  type: "range";
564
620
  gte: string;
565
621
  lte: string;
@@ -568,20 +624,25 @@ export declare const QueryExpression: z.ZodObject<{
568
624
  gte: string;
569
625
  lte: string;
570
626
  }>]>>>;
571
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
627
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
572
628
  type: z.ZodLiteral<"exact">;
573
629
  term: z.ZodString;
574
- }, "strip", z.ZodTypeAny, {
630
+ }, {
631
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
632
+ }>, "strip", z.ZodTypeAny, {
575
633
  type: "exact";
576
634
  term: string;
577
635
  }, {
578
636
  type: "exact";
579
637
  term: string;
580
- }>, z.ZodObject<{
638
+ }>, z.ZodObject<z.objectUtil.extendShape<{
581
639
  type: z.ZodLiteral<"range">;
582
640
  gte: z.ZodString;
583
641
  lte: z.ZodString;
584
- }, "strip", z.ZodTypeAny, {
642
+ }, {
643
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
644
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
645
+ }>, "strip", z.ZodTypeAny, {
585
646
  type: "range";
586
647
  gte: string;
587
648
  lte: string;
@@ -590,20 +651,25 @@ export declare const QueryExpression: z.ZodObject<{
590
651
  gte: string;
591
652
  lte: string;
592
653
  }>]>>>;
593
- '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<{
594
655
  type: z.ZodLiteral<"exact">;
595
656
  term: z.ZodString;
596
- }, "strip", z.ZodTypeAny, {
657
+ }, {
658
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
659
+ }>, "strip", z.ZodTypeAny, {
597
660
  type: "exact";
598
661
  term: string;
599
662
  }, {
600
663
  type: "exact";
601
664
  term: string;
602
- }>, z.ZodObject<{
665
+ }>, z.ZodObject<z.objectUtil.extendShape<{
603
666
  type: z.ZodLiteral<"range">;
604
667
  gte: z.ZodString;
605
668
  lte: z.ZodString;
606
- }, "strip", z.ZodTypeAny, {
669
+ }, {
670
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
671
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
672
+ }>, "strip", z.ZodTypeAny, {
607
673
  type: "range";
608
674
  gte: string;
609
675
  lte: string;
@@ -689,6 +755,7 @@ export declare const QueryExpression: z.ZodObject<{
689
755
  type: "exact";
690
756
  term: string;
691
757
  }>>>;
758
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
692
759
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
693
760
  type: z.ZodLiteral<"exact">;
694
761
  term: z.ZodString;
@@ -740,6 +807,7 @@ export declare const QueryExpression: z.ZodObject<{
740
807
  }>]>, "many">>>;
741
808
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
742
809
  }, "strip", z.ZodTypeAny, {
810
+ id?: string | undefined;
743
811
  status?: {
744
812
  type: "exact";
745
813
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -748,13 +816,14 @@ export declare const QueryExpression: z.ZodObject<{
748
816
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
749
817
  } | undefined;
750
818
  data?: any;
819
+ createdByUserType?: "system" | "user" | undefined;
751
820
  createdAt?: {
752
- type: "exact";
753
- term: string;
754
- } | {
755
821
  type: "range";
756
822
  gte: string;
757
823
  lte: string;
824
+ } | {
825
+ type: "exact";
826
+ term: string;
758
827
  } | undefined;
759
828
  createdBy?: {
760
829
  type: "exact";
@@ -772,12 +841,12 @@ export declare const QueryExpression: z.ZodObject<{
772
841
  term: string;
773
842
  } | undefined;
774
843
  updatedAt?: {
775
- type: "exact";
776
- term: string;
777
- } | {
778
844
  type: "range";
779
845
  gte: string;
780
846
  lte: string;
847
+ } | {
848
+ type: "exact";
849
+ term: string;
781
850
  } | undefined;
782
851
  trackingId?: {
783
852
  type: "exact";
@@ -803,12 +872,12 @@ export declare const QueryExpression: z.ZodObject<{
803
872
  })[] | undefined;
804
873
  eventType?: string | undefined;
805
874
  'legalStatus.REGISTERED.createdAt'?: {
806
- type: "exact";
807
- term: string;
808
- } | {
809
875
  type: "range";
810
876
  gte: string;
811
877
  lte: string;
878
+ } | {
879
+ type: "exact";
880
+ term: string;
812
881
  } | undefined;
813
882
  'legalStatus.REGISTERED.createdAtLocation'?: {
814
883
  type: "exact";
@@ -822,6 +891,7 @@ export declare const QueryExpression: z.ZodObject<{
822
891
  term: string;
823
892
  } | undefined;
824
893
  }, {
894
+ id?: string | undefined;
825
895
  status?: {
826
896
  type: "exact";
827
897
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -830,13 +900,14 @@ export declare const QueryExpression: z.ZodObject<{
830
900
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
831
901
  } | undefined;
832
902
  data?: any;
903
+ createdByUserType?: "system" | "user" | undefined;
833
904
  createdAt?: {
834
- type: "exact";
835
- term: string;
836
- } | {
837
905
  type: "range";
838
906
  gte: string;
839
907
  lte: string;
908
+ } | {
909
+ type: "exact";
910
+ term: string;
840
911
  } | undefined;
841
912
  createdBy?: {
842
913
  type: "exact";
@@ -854,12 +925,96 @@ export declare const QueryExpression: z.ZodObject<{
854
925
  term: string;
855
926
  } | undefined;
856
927
  updatedAt?: {
928
+ type: "range";
929
+ gte: string;
930
+ lte: string;
931
+ } | {
857
932
  type: "exact";
858
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[];
859
953
  } | {
954
+ type: "not";
955
+ term: string;
956
+ })[] | undefined;
957
+ eventType?: string | undefined;
958
+ 'legalStatus.REGISTERED.createdAt'?: {
860
959
  type: "range";
861
960
  gte: string;
862
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?: {
1001
+ type: "exact";
1002
+ term: string;
1003
+ } | {
1004
+ type: "within";
1005
+ location: string;
1006
+ } | undefined;
1007
+ assignedTo?: {
1008
+ type: "exact";
1009
+ term: string;
1010
+ } | undefined;
1011
+ updatedAt?: {
1012
+ type: "range";
1013
+ gte: string;
1014
+ lte: string;
1015
+ } | {
1016
+ type: "exact";
1017
+ term: string;
863
1018
  } | undefined;
864
1019
  trackingId?: {
865
1020
  type: "exact";
@@ -885,12 +1040,96 @@ export declare const QueryExpression: z.ZodObject<{
885
1040
  })[] | undefined;
886
1041
  eventType?: string | undefined;
887
1042
  'legalStatus.REGISTERED.createdAt'?: {
1043
+ type: "range";
1044
+ gte: string;
1045
+ lte: string;
1046
+ } | {
1047
+ type: "exact";
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";
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?: {
1073
+ type: "range";
1074
+ gte: string;
1075
+ lte: string;
1076
+ } | {
1077
+ type: "exact";
1078
+ term: string;
1079
+ } | undefined;
1080
+ createdBy?: {
1081
+ type: "exact";
1082
+ term: string;
1083
+ } | undefined;
1084
+ createdAtLocation?: {
888
1085
  type: "exact";
889
1086
  term: string;
890
1087
  } | {
1088
+ type: "within";
1089
+ location: string;
1090
+ } | undefined;
1091
+ assignedTo?: {
1092
+ type: "exact";
1093
+ term: string;
1094
+ } | undefined;
1095
+ updatedAt?: {
891
1096
  type: "range";
892
1097
  gte: string;
893
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;
894
1133
  } | undefined;
895
1134
  'legalStatus.REGISTERED.createdAtLocation'?: {
896
1135
  type: "exact";
@@ -906,7 +1145,8 @@ export declare const QueryExpression: z.ZodObject<{
906
1145
  }>;
907
1146
  export declare const QueryType: z.ZodObject<{
908
1147
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
909
- clauses: z.ZodEffects<z.ZodArray<z.ZodObject<{
1148
+ clauses: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
1149
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
910
1150
  eventType: z.ZodOptional<z.ZodString>;
911
1151
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
912
1152
  type: z.ZodLiteral<"anyOf">;
@@ -927,20 +1167,25 @@ export declare const QueryType: z.ZodObject<{
927
1167
  type: "exact";
928
1168
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
929
1169
  }>]>>>;
930
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1170
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
931
1171
  type: z.ZodLiteral<"exact">;
932
1172
  term: z.ZodString;
933
- }, "strip", z.ZodTypeAny, {
1173
+ }, {
1174
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1175
+ }>, "strip", z.ZodTypeAny, {
934
1176
  type: "exact";
935
1177
  term: string;
936
1178
  }, {
937
1179
  type: "exact";
938
1180
  term: string;
939
- }>, z.ZodObject<{
1181
+ }>, z.ZodObject<z.objectUtil.extendShape<{
940
1182
  type: z.ZodLiteral<"range">;
941
1183
  gte: z.ZodString;
942
1184
  lte: z.ZodString;
943
- }, "strip", z.ZodTypeAny, {
1185
+ }, {
1186
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1187
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1188
+ }>, "strip", z.ZodTypeAny, {
944
1189
  type: "range";
945
1190
  gte: string;
946
1191
  lte: string;
@@ -949,20 +1194,25 @@ export declare const QueryType: z.ZodObject<{
949
1194
  gte: string;
950
1195
  lte: string;
951
1196
  }>]>>>;
952
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1197
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
953
1198
  type: z.ZodLiteral<"exact">;
954
1199
  term: z.ZodString;
955
- }, "strip", z.ZodTypeAny, {
1200
+ }, {
1201
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1202
+ }>, "strip", z.ZodTypeAny, {
956
1203
  type: "exact";
957
1204
  term: string;
958
1205
  }, {
959
1206
  type: "exact";
960
1207
  term: string;
961
- }>, z.ZodObject<{
1208
+ }>, z.ZodObject<z.objectUtil.extendShape<{
962
1209
  type: z.ZodLiteral<"range">;
963
1210
  gte: z.ZodString;
964
1211
  lte: z.ZodString;
965
- }, "strip", z.ZodTypeAny, {
1212
+ }, {
1213
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1214
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1215
+ }>, "strip", z.ZodTypeAny, {
966
1216
  type: "range";
967
1217
  gte: string;
968
1218
  lte: string;
@@ -971,20 +1221,25 @@ export declare const QueryType: z.ZodObject<{
971
1221
  gte: string;
972
1222
  lte: string;
973
1223
  }>]>>>;
974
- '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<{
975
1225
  type: z.ZodLiteral<"exact">;
976
1226
  term: z.ZodString;
977
- }, "strip", z.ZodTypeAny, {
1227
+ }, {
1228
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1229
+ }>, "strip", z.ZodTypeAny, {
978
1230
  type: "exact";
979
1231
  term: string;
980
1232
  }, {
981
1233
  type: "exact";
982
1234
  term: string;
983
- }>, z.ZodObject<{
1235
+ }>, z.ZodObject<z.objectUtil.extendShape<{
984
1236
  type: z.ZodLiteral<"range">;
985
1237
  gte: z.ZodString;
986
1238
  lte: z.ZodString;
987
- }, "strip", z.ZodTypeAny, {
1239
+ }, {
1240
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1241
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1242
+ }>, "strip", z.ZodTypeAny, {
988
1243
  type: "range";
989
1244
  gte: string;
990
1245
  lte: string;
@@ -1037,90 +1292,260 @@ export declare const QueryType: z.ZodObject<{
1037
1292
  }, "strip", z.ZodTypeAny, {
1038
1293
  type: "exact";
1039
1294
  term: string;
1040
- }, {
1295
+ }, {
1296
+ type: "exact";
1297
+ term: string;
1298
+ }>]>>>;
1299
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1300
+ type: z.ZodLiteral<"within">;
1301
+ location: z.ZodString;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ type: "within";
1304
+ location: string;
1305
+ }, {
1306
+ type: "within";
1307
+ location: string;
1308
+ }>, z.ZodObject<{
1309
+ type: z.ZodLiteral<"exact">;
1310
+ term: z.ZodString;
1311
+ }, "strip", z.ZodTypeAny, {
1312
+ type: "exact";
1313
+ term: string;
1314
+ }, {
1315
+ type: "exact";
1316
+ term: string;
1317
+ }>]>>>;
1318
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1319
+ type: z.ZodLiteral<"exact">;
1320
+ term: z.ZodString;
1321
+ }, "strip", z.ZodTypeAny, {
1322
+ type: "exact";
1323
+ term: string;
1324
+ }, {
1325
+ type: "exact";
1326
+ term: string;
1327
+ }>>>;
1328
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
1329
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1330
+ type: z.ZodLiteral<"exact">;
1331
+ term: z.ZodString;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ type: "exact";
1334
+ term: string;
1335
+ }, {
1336
+ type: "exact";
1337
+ term: string;
1338
+ }>>>;
1339
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1340
+ type: z.ZodLiteral<"exact">;
1341
+ term: z.ZodString;
1342
+ }, "strip", z.ZodTypeAny, {
1343
+ type: "exact";
1344
+ term: string;
1345
+ }, {
1346
+ type: "exact";
1347
+ term: string;
1348
+ }>>>;
1349
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1350
+ type: z.ZodLiteral<"exact">;
1351
+ term: z.ZodString;
1352
+ }, "strip", z.ZodTypeAny, {
1353
+ type: "exact";
1354
+ term: string;
1355
+ }, {
1356
+ type: "exact";
1357
+ term: string;
1358
+ }>>>;
1359
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1360
+ type: z.ZodLiteral<"anyOf">;
1361
+ terms: z.ZodArray<z.ZodString, "many">;
1362
+ }, "strip", z.ZodTypeAny, {
1363
+ type: "anyOf";
1364
+ terms: string[];
1365
+ }, {
1366
+ type: "anyOf";
1367
+ terms: string[];
1368
+ }>, z.ZodObject<{
1369
+ type: z.ZodLiteral<"not">;
1370
+ term: z.ZodString;
1371
+ }, "strip", z.ZodTypeAny, {
1372
+ type: "not";
1373
+ term: string;
1374
+ }, {
1375
+ type: "not";
1376
+ term: string;
1377
+ }>]>, "many">>>;
1378
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1379
+ }, "strip", z.ZodTypeAny, {
1380
+ id?: string | undefined;
1381
+ status?: {
1382
+ type: "exact";
1383
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1384
+ } | {
1385
+ type: "anyOf";
1386
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1387
+ } | undefined;
1388
+ data?: any;
1389
+ createdByUserType?: "system" | "user" | undefined;
1390
+ createdAt?: {
1391
+ type: "range";
1392
+ gte: string;
1393
+ lte: string;
1394
+ } | {
1395
+ type: "exact";
1396
+ term: string;
1397
+ } | undefined;
1398
+ createdBy?: {
1399
+ type: "exact";
1400
+ term: string;
1401
+ } | undefined;
1402
+ createdAtLocation?: {
1403
+ type: "exact";
1404
+ term: string;
1405
+ } | {
1406
+ type: "within";
1407
+ location: string;
1408
+ } | undefined;
1409
+ assignedTo?: {
1410
+ type: "exact";
1411
+ term: string;
1412
+ } | undefined;
1413
+ updatedAt?: {
1414
+ type: "range";
1415
+ gte: string;
1416
+ lte: string;
1417
+ } | {
1418
+ type: "exact";
1419
+ term: string;
1420
+ } | undefined;
1421
+ trackingId?: {
1422
+ type: "exact";
1423
+ term: string;
1424
+ } | undefined;
1425
+ updatedAtLocation?: {
1041
1426
  type: "exact";
1042
1427
  term: string;
1043
- }>]>>>;
1044
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1045
- type: z.ZodLiteral<"within">;
1046
- location: z.ZodString;
1047
- }, "strip", z.ZodTypeAny, {
1428
+ } | {
1048
1429
  type: "within";
1049
1430
  location: string;
1050
- }, {
1431
+ } | undefined;
1432
+ updatedBy?: {
1433
+ type: "exact";
1434
+ term: string;
1435
+ } | undefined;
1436
+ flags?: ({
1437
+ type: "anyOf";
1438
+ terms: string[];
1439
+ } | {
1440
+ type: "not";
1441
+ term: string;
1442
+ })[] | undefined;
1443
+ eventType?: string | undefined;
1444
+ 'legalStatus.REGISTERED.createdAt'?: {
1445
+ type: "range";
1446
+ gte: string;
1447
+ lte: string;
1448
+ } | {
1449
+ type: "exact";
1450
+ term: string;
1451
+ } | undefined;
1452
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1453
+ type: "exact";
1454
+ term: string;
1455
+ } | {
1051
1456
  type: "within";
1052
1457
  location: string;
1053
- }>, z.ZodObject<{
1054
- type: z.ZodLiteral<"exact">;
1055
- term: z.ZodString;
1056
- }, "strip", z.ZodTypeAny, {
1458
+ } | undefined;
1459
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1057
1460
  type: "exact";
1058
1461
  term: string;
1059
- }, {
1462
+ } | undefined;
1463
+ }, {
1464
+ id?: string | undefined;
1465
+ status?: {
1060
1466
  type: "exact";
1061
- term: string;
1062
- }>]>>>;
1063
- assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1064
- type: z.ZodLiteral<"exact">;
1065
- term: z.ZodString;
1066
- }, "strip", z.ZodTypeAny, {
1467
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1468
+ } | {
1469
+ type: "anyOf";
1470
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1471
+ } | undefined;
1472
+ data?: any;
1473
+ createdByUserType?: "system" | "user" | undefined;
1474
+ createdAt?: {
1475
+ type: "range";
1476
+ gte: string;
1477
+ lte: string;
1478
+ } | {
1067
1479
  type: "exact";
1068
1480
  term: string;
1069
- }, {
1481
+ } | undefined;
1482
+ createdBy?: {
1070
1483
  type: "exact";
1071
1484
  term: string;
1072
- }>>>;
1073
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1074
- type: z.ZodLiteral<"exact">;
1075
- term: z.ZodString;
1076
- }, "strip", z.ZodTypeAny, {
1485
+ } | undefined;
1486
+ createdAtLocation?: {
1077
1487
  type: "exact";
1078
1488
  term: string;
1079
- }, {
1489
+ } | {
1490
+ type: "within";
1491
+ location: string;
1492
+ } | undefined;
1493
+ assignedTo?: {
1080
1494
  type: "exact";
1081
1495
  term: string;
1082
- }>>>;
1083
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1084
- type: z.ZodLiteral<"exact">;
1085
- term: z.ZodString;
1086
- }, "strip", z.ZodTypeAny, {
1496
+ } | undefined;
1497
+ updatedAt?: {
1498
+ type: "range";
1499
+ gte: string;
1500
+ lte: string;
1501
+ } | {
1087
1502
  type: "exact";
1088
1503
  term: string;
1089
- }, {
1504
+ } | undefined;
1505
+ trackingId?: {
1090
1506
  type: "exact";
1091
1507
  term: string;
1092
- }>>>;
1093
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1094
- type: z.ZodLiteral<"exact">;
1095
- term: z.ZodString;
1096
- }, "strip", z.ZodTypeAny, {
1508
+ } | undefined;
1509
+ updatedAtLocation?: {
1097
1510
  type: "exact";
1098
1511
  term: string;
1099
- }, {
1512
+ } | {
1513
+ type: "within";
1514
+ location: string;
1515
+ } | undefined;
1516
+ updatedBy?: {
1100
1517
  type: "exact";
1101
1518
  term: string;
1102
- }>>>;
1103
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1104
- type: z.ZodLiteral<"anyOf">;
1105
- terms: z.ZodArray<z.ZodString, "many">;
1106
- }, "strip", z.ZodTypeAny, {
1107
- type: "anyOf";
1108
- terms: string[];
1109
- }, {
1519
+ } | undefined;
1520
+ flags?: ({
1110
1521
  type: "anyOf";
1111
1522
  terms: string[];
1112
- }>, z.ZodObject<{
1113
- type: z.ZodLiteral<"not">;
1114
- term: z.ZodString;
1115
- }, "strip", z.ZodTypeAny, {
1523
+ } | {
1116
1524
  type: "not";
1117
1525
  term: string;
1118
- }, {
1119
- type: "not";
1526
+ })[] | undefined;
1527
+ eventType?: string | undefined;
1528
+ 'legalStatus.REGISTERED.createdAt'?: {
1529
+ type: "range";
1530
+ gte: string;
1531
+ lte: string;
1532
+ } | {
1533
+ type: "exact";
1120
1534
  term: string;
1121
- }>]>, "many">>>;
1122
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1123
- }, "strip", z.ZodTypeAny, {
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;
1124
1549
  status?: {
1125
1550
  type: "exact";
1126
1551
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1129,13 +1554,14 @@ export declare const QueryType: z.ZodObject<{
1129
1554
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1130
1555
  } | undefined;
1131
1556
  data?: any;
1557
+ createdByUserType?: "system" | "user" | undefined;
1132
1558
  createdAt?: {
1133
- type: "exact";
1134
- term: string;
1135
- } | {
1136
1559
  type: "range";
1137
1560
  gte: string;
1138
1561
  lte: string;
1562
+ } | {
1563
+ type: "exact";
1564
+ term: string;
1139
1565
  } | undefined;
1140
1566
  createdBy?: {
1141
1567
  type: "exact";
@@ -1153,12 +1579,12 @@ export declare const QueryType: z.ZodObject<{
1153
1579
  term: string;
1154
1580
  } | undefined;
1155
1581
  updatedAt?: {
1156
- type: "exact";
1157
- term: string;
1158
- } | {
1159
1582
  type: "range";
1160
1583
  gte: string;
1161
1584
  lte: string;
1585
+ } | {
1586
+ type: "exact";
1587
+ term: string;
1162
1588
  } | undefined;
1163
1589
  trackingId?: {
1164
1590
  type: "exact";
@@ -1184,12 +1610,12 @@ export declare const QueryType: z.ZodObject<{
1184
1610
  })[] | undefined;
1185
1611
  eventType?: string | undefined;
1186
1612
  'legalStatus.REGISTERED.createdAt'?: {
1187
- type: "exact";
1188
- term: string;
1189
- } | {
1190
1613
  type: "range";
1191
1614
  gte: string;
1192
1615
  lte: string;
1616
+ } | {
1617
+ type: "exact";
1618
+ term: string;
1193
1619
  } | undefined;
1194
1620
  'legalStatus.REGISTERED.createdAtLocation'?: {
1195
1621
  type: "exact";
@@ -1203,6 +1629,7 @@ export declare const QueryType: z.ZodObject<{
1203
1629
  term: string;
1204
1630
  } | undefined;
1205
1631
  }, {
1632
+ id?: string | undefined;
1206
1633
  status?: {
1207
1634
  type: "exact";
1208
1635
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1211,13 +1638,14 @@ export declare const QueryType: z.ZodObject<{
1211
1638
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1212
1639
  } | undefined;
1213
1640
  data?: any;
1641
+ createdByUserType?: "system" | "user" | undefined;
1214
1642
  createdAt?: {
1215
- type: "exact";
1216
- term: string;
1217
- } | {
1218
1643
  type: "range";
1219
1644
  gte: string;
1220
1645
  lte: string;
1646
+ } | {
1647
+ type: "exact";
1648
+ term: string;
1221
1649
  } | undefined;
1222
1650
  createdBy?: {
1223
1651
  type: "exact";
@@ -1235,12 +1663,12 @@ export declare const QueryType: z.ZodObject<{
1235
1663
  term: string;
1236
1664
  } | undefined;
1237
1665
  updatedAt?: {
1238
- type: "exact";
1239
- term: string;
1240
- } | {
1241
1666
  type: "range";
1242
1667
  gte: string;
1243
1668
  lte: string;
1669
+ } | {
1670
+ type: "exact";
1671
+ term: string;
1244
1672
  } | undefined;
1245
1673
  trackingId?: {
1246
1674
  type: "exact";
@@ -1266,12 +1694,12 @@ export declare const QueryType: z.ZodObject<{
1266
1694
  })[] | undefined;
1267
1695
  eventType?: string | undefined;
1268
1696
  'legalStatus.REGISTERED.createdAt'?: {
1269
- type: "exact";
1270
- term: string;
1271
- } | {
1272
1697
  type: "range";
1273
1698
  gte: string;
1274
1699
  lte: string;
1700
+ } | {
1701
+ type: "exact";
1702
+ term: string;
1275
1703
  } | undefined;
1276
1704
  'legalStatus.REGISTERED.createdAtLocation'?: {
1277
1705
  type: "exact";
@@ -1285,6 +1713,7 @@ export declare const QueryType: z.ZodObject<{
1285
1713
  term: string;
1286
1714
  } | undefined;
1287
1715
  }>, "atleastone">, [{
1716
+ id?: string | undefined;
1288
1717
  status?: {
1289
1718
  type: "exact";
1290
1719
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1293,13 +1722,14 @@ export declare const QueryType: z.ZodObject<{
1293
1722
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1294
1723
  } | undefined;
1295
1724
  data?: any;
1725
+ createdByUserType?: "system" | "user" | undefined;
1296
1726
  createdAt?: {
1297
- type: "exact";
1298
- term: string;
1299
- } | {
1300
1727
  type: "range";
1301
1728
  gte: string;
1302
1729
  lte: string;
1730
+ } | {
1731
+ type: "exact";
1732
+ term: string;
1303
1733
  } | undefined;
1304
1734
  createdBy?: {
1305
1735
  type: "exact";
@@ -1317,12 +1747,12 @@ export declare const QueryType: z.ZodObject<{
1317
1747
  term: string;
1318
1748
  } | undefined;
1319
1749
  updatedAt?: {
1320
- type: "exact";
1321
- term: string;
1322
- } | {
1323
1750
  type: "range";
1324
1751
  gte: string;
1325
1752
  lte: string;
1753
+ } | {
1754
+ type: "exact";
1755
+ term: string;
1326
1756
  } | undefined;
1327
1757
  trackingId?: {
1328
1758
  type: "exact";
@@ -1348,12 +1778,12 @@ export declare const QueryType: z.ZodObject<{
1348
1778
  })[] | undefined;
1349
1779
  eventType?: string | undefined;
1350
1780
  'legalStatus.REGISTERED.createdAt'?: {
1351
- type: "exact";
1352
- term: string;
1353
- } | {
1354
1781
  type: "range";
1355
1782
  gte: string;
1356
1783
  lte: string;
1784
+ } | {
1785
+ type: "exact";
1786
+ term: string;
1357
1787
  } | undefined;
1358
1788
  'legalStatus.REGISTERED.createdAtLocation'?: {
1359
1789
  type: "exact";
@@ -1367,6 +1797,7 @@ export declare const QueryType: z.ZodObject<{
1367
1797
  term: string;
1368
1798
  } | undefined;
1369
1799
  }, ...{
1800
+ id?: string | undefined;
1370
1801
  status?: {
1371
1802
  type: "exact";
1372
1803
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1375,13 +1806,14 @@ export declare const QueryType: z.ZodObject<{
1375
1806
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1376
1807
  } | undefined;
1377
1808
  data?: any;
1809
+ createdByUserType?: "system" | "user" | undefined;
1378
1810
  createdAt?: {
1379
- type: "exact";
1380
- term: string;
1381
- } | {
1382
1811
  type: "range";
1383
1812
  gte: string;
1384
1813
  lte: string;
1814
+ } | {
1815
+ type: "exact";
1816
+ term: string;
1385
1817
  } | undefined;
1386
1818
  createdBy?: {
1387
1819
  type: "exact";
@@ -1399,12 +1831,12 @@ export declare const QueryType: z.ZodObject<{
1399
1831
  term: string;
1400
1832
  } | undefined;
1401
1833
  updatedAt?: {
1402
- type: "exact";
1403
- term: string;
1404
- } | {
1405
1834
  type: "range";
1406
1835
  gte: string;
1407
1836
  lte: string;
1837
+ } | {
1838
+ type: "exact";
1839
+ term: string;
1408
1840
  } | undefined;
1409
1841
  trackingId?: {
1410
1842
  type: "exact";
@@ -1430,12 +1862,12 @@ export declare const QueryType: z.ZodObject<{
1430
1862
  })[] | undefined;
1431
1863
  eventType?: string | undefined;
1432
1864
  'legalStatus.REGISTERED.createdAt'?: {
1433
- type: "exact";
1434
- term: string;
1435
- } | {
1436
1865
  type: "range";
1437
1866
  gte: string;
1438
1867
  lte: string;
1868
+ } | {
1869
+ type: "exact";
1870
+ term: string;
1439
1871
  } | undefined;
1440
1872
  'legalStatus.REGISTERED.createdAtLocation'?: {
1441
1873
  type: "exact";
@@ -1452,6 +1884,7 @@ export declare const QueryType: z.ZodObject<{
1452
1884
  }, "strip", z.ZodTypeAny, {
1453
1885
  type: "and" | "or";
1454
1886
  clauses: [{
1887
+ id?: string | undefined;
1455
1888
  status?: {
1456
1889
  type: "exact";
1457
1890
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1460,13 +1893,14 @@ export declare const QueryType: z.ZodObject<{
1460
1893
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1461
1894
  } | undefined;
1462
1895
  data?: any;
1896
+ createdByUserType?: "system" | "user" | undefined;
1463
1897
  createdAt?: {
1464
- type: "exact";
1465
- term: string;
1466
- } | {
1467
1898
  type: "range";
1468
1899
  gte: string;
1469
1900
  lte: string;
1901
+ } | {
1902
+ type: "exact";
1903
+ term: string;
1470
1904
  } | undefined;
1471
1905
  createdBy?: {
1472
1906
  type: "exact";
@@ -1484,12 +1918,12 @@ export declare const QueryType: z.ZodObject<{
1484
1918
  term: string;
1485
1919
  } | undefined;
1486
1920
  updatedAt?: {
1487
- type: "exact";
1488
- term: string;
1489
- } | {
1490
1921
  type: "range";
1491
1922
  gte: string;
1492
1923
  lte: string;
1924
+ } | {
1925
+ type: "exact";
1926
+ term: string;
1493
1927
  } | undefined;
1494
1928
  trackingId?: {
1495
1929
  type: "exact";
@@ -1515,12 +1949,12 @@ export declare const QueryType: z.ZodObject<{
1515
1949
  })[] | undefined;
1516
1950
  eventType?: string | undefined;
1517
1951
  'legalStatus.REGISTERED.createdAt'?: {
1518
- type: "exact";
1519
- term: string;
1520
- } | {
1521
1952
  type: "range";
1522
1953
  gte: string;
1523
1954
  lte: string;
1955
+ } | {
1956
+ type: "exact";
1957
+ term: string;
1524
1958
  } | undefined;
1525
1959
  'legalStatus.REGISTERED.createdAtLocation'?: {
1526
1960
  type: "exact";
@@ -1534,6 +1968,7 @@ export declare const QueryType: z.ZodObject<{
1534
1968
  term: string;
1535
1969
  } | undefined;
1536
1970
  }, ...{
1971
+ id?: string | undefined;
1537
1972
  status?: {
1538
1973
  type: "exact";
1539
1974
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1542,13 +1977,14 @@ export declare const QueryType: z.ZodObject<{
1542
1977
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1543
1978
  } | undefined;
1544
1979
  data?: any;
1980
+ createdByUserType?: "system" | "user" | undefined;
1545
1981
  createdAt?: {
1546
- type: "exact";
1547
- term: string;
1548
- } | {
1549
1982
  type: "range";
1550
1983
  gte: string;
1551
1984
  lte: string;
1985
+ } | {
1986
+ type: "exact";
1987
+ term: string;
1552
1988
  } | undefined;
1553
1989
  createdBy?: {
1554
1990
  type: "exact";
@@ -1566,12 +2002,12 @@ export declare const QueryType: z.ZodObject<{
1566
2002
  term: string;
1567
2003
  } | undefined;
1568
2004
  updatedAt?: {
1569
- type: "exact";
1570
- term: string;
1571
- } | {
1572
2005
  type: "range";
1573
2006
  gte: string;
1574
2007
  lte: string;
2008
+ } | {
2009
+ type: "exact";
2010
+ term: string;
1575
2011
  } | undefined;
1576
2012
  trackingId?: {
1577
2013
  type: "exact";
@@ -1597,12 +2033,12 @@ export declare const QueryType: z.ZodObject<{
1597
2033
  })[] | undefined;
1598
2034
  eventType?: string | undefined;
1599
2035
  'legalStatus.REGISTERED.createdAt'?: {
1600
- type: "exact";
1601
- term: string;
1602
- } | {
1603
2036
  type: "range";
1604
2037
  gte: string;
1605
2038
  lte: string;
2039
+ } | {
2040
+ type: "exact";
2041
+ term: string;
1606
2042
  } | undefined;
1607
2043
  'legalStatus.REGISTERED.createdAtLocation'?: {
1608
2044
  type: "exact";