@opencrvs/toolkit 1.8.0-rc.f9d33b7 → 1.8.0-rc.f9fb039

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.
@@ -12,51 +12,350 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
12
12
  readonly REJECTED: "REJECTED";
13
13
  readonly ARCHIVED: "ARCHIVED";
14
14
  }>;
15
+ legalStatuses: z.ZodObject<{
16
+ DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
+ createdAt: z.ZodString;
18
+ createdBy: z.ZodString;
19
+ createdAtLocation: z.ZodString;
20
+ acceptedAt: z.ZodString;
21
+ createdByRole: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ createdAt: string;
24
+ createdBy: string;
25
+ createdByRole: string;
26
+ createdAtLocation: string;
27
+ acceptedAt: string;
28
+ }, {
29
+ createdAt: string;
30
+ createdBy: string;
31
+ createdByRole: string;
32
+ createdAtLocation: string;
33
+ acceptedAt: string;
34
+ }>>>;
35
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
36
+ createdAt: z.ZodString;
37
+ createdBy: z.ZodString;
38
+ createdAtLocation: z.ZodString;
39
+ acceptedAt: z.ZodString;
40
+ createdByRole: z.ZodString;
41
+ }, {
42
+ registrationNumber: z.ZodString;
43
+ }>, "strip", z.ZodTypeAny, {
44
+ createdAt: string;
45
+ createdBy: string;
46
+ createdByRole: string;
47
+ createdAtLocation: string;
48
+ registrationNumber: string;
49
+ acceptedAt: string;
50
+ }, {
51
+ createdAt: string;
52
+ createdBy: string;
53
+ createdByRole: string;
54
+ createdAtLocation: string;
55
+ registrationNumber: string;
56
+ acceptedAt: string;
57
+ }>>>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ DECLARED?: {
60
+ createdAt: string;
61
+ createdBy: string;
62
+ createdByRole: string;
63
+ createdAtLocation: string;
64
+ acceptedAt: string;
65
+ } | null | undefined;
66
+ REGISTERED?: {
67
+ createdAt: string;
68
+ createdBy: string;
69
+ createdByRole: string;
70
+ createdAtLocation: string;
71
+ registrationNumber: string;
72
+ acceptedAt: string;
73
+ } | null | undefined;
74
+ }, {
75
+ DECLARED?: {
76
+ createdAt: string;
77
+ createdBy: string;
78
+ createdByRole: string;
79
+ createdAtLocation: string;
80
+ acceptedAt: string;
81
+ } | null | undefined;
82
+ REGISTERED?: {
83
+ createdAt: string;
84
+ createdBy: string;
85
+ createdByRole: string;
86
+ createdAtLocation: string;
87
+ registrationNumber: string;
88
+ acceptedAt: string;
89
+ } | null | undefined;
90
+ }>;
15
91
  createdAt: z.ZodString;
16
92
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
93
  createdBy: z.ZodString;
18
94
  updatedByUserRole: z.ZodString;
19
95
  createdAtLocation: z.ZodString;
20
- updatedAtLocation: z.ZodString;
96
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
97
  updatedAt: z.ZodString;
22
98
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- updatedBy: z.ZodString;
99
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
100
  trackingId: z.ZodString;
25
- registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
102
+ readonly CERTIFICATE_PRINTED: "certificate-printed";
103
+ }>]>, "many">;
26
104
  }, {
27
- declaration: z.ZodRecord<z.ZodString, z.ZodAny>;
105
+ 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<{
106
+ filename: z.ZodString;
107
+ originalFilename: z.ZodString;
108
+ type: z.ZodString;
109
+ }, "strip", z.ZodTypeAny, {
110
+ type: string;
111
+ filename: string;
112
+ originalFilename: string;
113
+ }, {
114
+ type: string;
115
+ filename: string;
116
+ originalFilename: string;
117
+ }>, z.ZodArray<z.ZodObject<{
118
+ filename: z.ZodString;
119
+ originalFilename: z.ZodString;
120
+ type: z.ZodString;
121
+ option: z.ZodString;
122
+ }, "strip", z.ZodTypeAny, {
123
+ type: string;
124
+ option: string;
125
+ filename: string;
126
+ originalFilename: string;
127
+ }, {
128
+ type: string;
129
+ option: string;
130
+ filename: string;
131
+ originalFilename: string;
132
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
133
+ country: z.ZodString;
134
+ addressType: z.ZodLiteral<"DOMESTIC">;
135
+ province: z.ZodString;
136
+ district: z.ZodString;
137
+ }, {
138
+ urbanOrRural: z.ZodLiteral<"URBAN">;
139
+ town: z.ZodOptional<z.ZodString>;
140
+ residentialArea: z.ZodOptional<z.ZodString>;
141
+ street: z.ZodOptional<z.ZodString>;
142
+ number: z.ZodOptional<z.ZodString>;
143
+ zipCode: z.ZodOptional<z.ZodString>;
144
+ }>, "strip", z.ZodTypeAny, {
145
+ country: string;
146
+ district: string;
147
+ addressType: "DOMESTIC";
148
+ province: string;
149
+ urbanOrRural: "URBAN";
150
+ number?: string | undefined;
151
+ town?: string | undefined;
152
+ residentialArea?: string | undefined;
153
+ street?: string | undefined;
154
+ zipCode?: string | undefined;
155
+ }, {
156
+ country: string;
157
+ district: string;
158
+ addressType: "DOMESTIC";
159
+ province: string;
160
+ urbanOrRural: "URBAN";
161
+ number?: string | undefined;
162
+ town?: string | undefined;
163
+ residentialArea?: string | undefined;
164
+ street?: string | undefined;
165
+ zipCode?: string | undefined;
166
+ }>, z.ZodObject<z.objectUtil.extendShape<{
167
+ country: z.ZodString;
168
+ addressType: z.ZodLiteral<"DOMESTIC">;
169
+ province: z.ZodString;
170
+ district: z.ZodString;
171
+ }, {
172
+ urbanOrRural: z.ZodLiteral<"RURAL">;
173
+ village: z.ZodOptional<z.ZodString>;
174
+ }>, "strip", z.ZodTypeAny, {
175
+ country: string;
176
+ district: string;
177
+ addressType: "DOMESTIC";
178
+ province: string;
179
+ urbanOrRural: "RURAL";
180
+ village?: string | undefined;
181
+ }, {
182
+ country: string;
183
+ district: string;
184
+ addressType: "DOMESTIC";
185
+ province: string;
186
+ urbanOrRural: "RURAL";
187
+ village?: string | undefined;
188
+ }>, z.ZodUndefined, z.ZodObject<{
189
+ country: z.ZodString;
190
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
191
+ state: z.ZodString;
192
+ district2: z.ZodString;
193
+ cityOrTown: z.ZodOptional<z.ZodString>;
194
+ addressLine1: z.ZodOptional<z.ZodString>;
195
+ addressLine2: z.ZodOptional<z.ZodString>;
196
+ addressLine3: z.ZodOptional<z.ZodString>;
197
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ country: string;
200
+ state: string;
201
+ addressType: "INTERNATIONAL";
202
+ district2: string;
203
+ cityOrTown?: string | undefined;
204
+ addressLine1?: string | undefined;
205
+ addressLine2?: string | undefined;
206
+ addressLine3?: string | undefined;
207
+ postcodeOrZip?: string | undefined;
208
+ }, {
209
+ country: string;
210
+ state: string;
211
+ addressType: "INTERNATIONAL";
212
+ district2: string;
213
+ cityOrTown?: string | undefined;
214
+ addressLine1?: string | undefined;
215
+ addressLine2?: string | undefined;
216
+ addressLine3?: string | undefined;
217
+ postcodeOrZip?: string | undefined;
218
+ }>]>>;
28
219
  }>, "strip", z.ZodTypeAny, {
29
220
  type: string;
30
221
  id: string;
31
222
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
32
223
  createdAt: string;
33
224
  createdBy: string;
34
- declaration: Record<string, any>;
225
+ declaration: Record<string, string | number | boolean | {
226
+ type: string;
227
+ filename: string;
228
+ originalFilename: string;
229
+ } | {
230
+ country: string;
231
+ district: string;
232
+ addressType: "DOMESTIC";
233
+ province: string;
234
+ urbanOrRural: "URBAN";
235
+ number?: string | undefined;
236
+ town?: string | undefined;
237
+ residentialArea?: string | undefined;
238
+ street?: string | undefined;
239
+ zipCode?: string | undefined;
240
+ } | {
241
+ country: string;
242
+ district: string;
243
+ addressType: "DOMESTIC";
244
+ province: string;
245
+ urbanOrRural: "RURAL";
246
+ village?: string | undefined;
247
+ } | {
248
+ country: string;
249
+ state: string;
250
+ addressType: "INTERNATIONAL";
251
+ district2: string;
252
+ cityOrTown?: string | undefined;
253
+ addressLine1?: string | undefined;
254
+ addressLine2?: string | undefined;
255
+ addressLine3?: string | undefined;
256
+ postcodeOrZip?: string | undefined;
257
+ } | {
258
+ type: string;
259
+ option: string;
260
+ filename: string;
261
+ originalFilename: string;
262
+ }[] | [string, string] | undefined>;
35
263
  createdAtLocation: string;
36
- updatedAtLocation: string;
37
264
  updatedAt: string;
38
265
  trackingId: string;
266
+ legalStatuses: {
267
+ DECLARED?: {
268
+ createdAt: string;
269
+ createdBy: string;
270
+ createdByRole: string;
271
+ createdAtLocation: string;
272
+ acceptedAt: string;
273
+ } | null | undefined;
274
+ REGISTERED?: {
275
+ createdAt: string;
276
+ createdBy: string;
277
+ createdByRole: string;
278
+ createdAtLocation: string;
279
+ registrationNumber: string;
280
+ acceptedAt: string;
281
+ } | null | undefined;
282
+ };
39
283
  updatedByUserRole: string;
40
- updatedBy: string;
284
+ flags: string[];
41
285
  assignedTo?: string | null | undefined;
42
- registrationNumber?: string | null | undefined;
43
286
  dateOfEvent?: string | null | undefined;
287
+ updatedAtLocation?: string | null | undefined;
288
+ updatedBy?: string | null | undefined;
44
289
  }, {
45
290
  type: string;
46
291
  id: string;
47
292
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
48
293
  createdAt: string;
49
294
  createdBy: string;
50
- declaration: Record<string, any>;
295
+ declaration: Record<string, string | number | boolean | {
296
+ type: string;
297
+ filename: string;
298
+ originalFilename: string;
299
+ } | {
300
+ country: string;
301
+ district: string;
302
+ addressType: "DOMESTIC";
303
+ province: string;
304
+ urbanOrRural: "URBAN";
305
+ number?: string | undefined;
306
+ town?: string | undefined;
307
+ residentialArea?: string | undefined;
308
+ street?: string | undefined;
309
+ zipCode?: string | undefined;
310
+ } | {
311
+ country: string;
312
+ district: string;
313
+ addressType: "DOMESTIC";
314
+ province: string;
315
+ urbanOrRural: "RURAL";
316
+ village?: string | undefined;
317
+ } | {
318
+ country: string;
319
+ state: string;
320
+ addressType: "INTERNATIONAL";
321
+ district2: string;
322
+ cityOrTown?: string | undefined;
323
+ addressLine1?: string | undefined;
324
+ addressLine2?: string | undefined;
325
+ addressLine3?: string | undefined;
326
+ postcodeOrZip?: string | undefined;
327
+ } | {
328
+ type: string;
329
+ option: string;
330
+ filename: string;
331
+ originalFilename: string;
332
+ }[] | [string, string] | undefined>;
51
333
  createdAtLocation: string;
52
- updatedAtLocation: string;
53
334
  updatedAt: string;
54
335
  trackingId: string;
336
+ legalStatuses: {
337
+ DECLARED?: {
338
+ createdAt: string;
339
+ createdBy: string;
340
+ createdByRole: string;
341
+ createdAtLocation: string;
342
+ acceptedAt: string;
343
+ } | null | undefined;
344
+ REGISTERED?: {
345
+ createdAt: string;
346
+ createdBy: string;
347
+ createdByRole: string;
348
+ createdAtLocation: string;
349
+ registrationNumber: string;
350
+ acceptedAt: string;
351
+ } | null | undefined;
352
+ };
55
353
  updatedByUserRole: string;
56
- updatedBy: string;
354
+ flags: string[];
57
355
  assignedTo?: string | null | undefined;
58
- registrationNumber?: string | null | undefined;
59
356
  dateOfEvent?: string | null | undefined;
357
+ updatedAtLocation?: string | null | undefined;
358
+ updatedBy?: string | null | undefined;
60
359
  }>;
61
360
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
62
361
  type: z.ZodString;
@@ -110,6 +409,16 @@ declare const Range: z.ZodObject<{
110
409
  gte: string;
111
410
  lte: string;
112
411
  }>;
412
+ declare const Not: z.ZodObject<{
413
+ type: z.ZodLiteral<"not">;
414
+ term: z.ZodString;
415
+ }, "strip", z.ZodTypeAny, {
416
+ type: "not";
417
+ term: string;
418
+ }, {
419
+ type: "not";
420
+ term: string;
421
+ }>;
113
422
  declare const Within: z.ZodObject<{
114
423
  type: z.ZodLiteral<"within">;
115
424
  location: z.ZodString;
@@ -121,7 +430,7 @@ declare const Within: z.ZodObject<{
121
430
  location: string;
122
431
  }>;
123
432
  export declare const QueryInput: ZodType;
124
- export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf>;
433
+ export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf> | z.infer<typeof Not>;
125
434
  type QueryMap = {
126
435
  [key: string]: BaseInput | QueryMap;
127
436
  };
@@ -192,6 +501,47 @@ declare const QueryExpression: z.ZodObject<{
192
501
  gte: string;
193
502
  lte: string;
194
503
  }>]>>>;
504
+ registeredAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
505
+ type: z.ZodLiteral<"exact">;
506
+ term: z.ZodString;
507
+ }, "strip", z.ZodTypeAny, {
508
+ type: "exact";
509
+ term: string;
510
+ }, {
511
+ type: "exact";
512
+ term: string;
513
+ }>, z.ZodObject<{
514
+ type: z.ZodLiteral<"range">;
515
+ gte: z.ZodString;
516
+ lte: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ type: "range";
519
+ gte: string;
520
+ lte: string;
521
+ }, {
522
+ type: "range";
523
+ gte: string;
524
+ lte: string;
525
+ }>]>>>;
526
+ registeredAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
527
+ type: z.ZodLiteral<"within">;
528
+ location: z.ZodString;
529
+ }, "strip", z.ZodTypeAny, {
530
+ type: "within";
531
+ location: string;
532
+ }, {
533
+ type: "within";
534
+ location: string;
535
+ }>, z.ZodObject<{
536
+ type: z.ZodLiteral<"exact">;
537
+ term: z.ZodString;
538
+ }, "strip", z.ZodTypeAny, {
539
+ type: "exact";
540
+ term: string;
541
+ }, {
542
+ type: "exact";
543
+ term: string;
544
+ }>]>>>;
195
545
  createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
196
546
  type: z.ZodLiteral<"within">;
197
547
  location: z.ZodString;
@@ -260,6 +610,25 @@ declare const QueryExpression: z.ZodObject<{
260
610
  type: "exact";
261
611
  term: string;
262
612
  }>>>;
613
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
614
+ type: z.ZodLiteral<"anyOf">;
615
+ terms: z.ZodArray<z.ZodString, "many">;
616
+ }, "strip", z.ZodTypeAny, {
617
+ type: "anyOf";
618
+ terms: string[];
619
+ }, {
620
+ type: "anyOf";
621
+ terms: string[];
622
+ }>, z.ZodObject<{
623
+ type: z.ZodLiteral<"not">;
624
+ term: z.ZodString;
625
+ }, "strip", z.ZodTypeAny, {
626
+ type: "not";
627
+ term: string;
628
+ }, {
629
+ type: "not";
630
+ term: string;
631
+ }>]>, "many">>>;
263
632
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
264
633
  }, "strip", z.ZodTypeAny, {
265
634
  type?: "and" | undefined;
@@ -283,14 +652,15 @@ declare const QueryExpression: z.ZodObject<{
283
652
  type: "exact";
284
653
  term: string;
285
654
  } | undefined;
286
- updatedAtLocation?: {
655
+ updatedAt?: {
287
656
  type: "exact";
288
657
  term: string;
289
658
  } | {
290
- type: "within";
291
- location: string;
659
+ type: "range";
660
+ gte: string;
661
+ lte: string;
292
662
  } | undefined;
293
- updatedAt?: {
663
+ registeredAt?: {
294
664
  type: "exact";
295
665
  term: string;
296
666
  } | {
@@ -298,14 +668,35 @@ declare const QueryExpression: z.ZodObject<{
298
668
  gte: string;
299
669
  lte: string;
300
670
  } | undefined;
671
+ registeredAtLocation?: {
672
+ type: "exact";
673
+ term: string;
674
+ } | {
675
+ type: "within";
676
+ location: string;
677
+ } | undefined;
301
678
  trackingId?: {
302
679
  type: "exact";
303
680
  term: string;
304
681
  } | undefined;
682
+ updatedAtLocation?: {
683
+ type: "exact";
684
+ term: string;
685
+ } | {
686
+ type: "within";
687
+ location: string;
688
+ } | undefined;
305
689
  updatedBy?: {
306
690
  type: "exact";
307
691
  term: string;
308
692
  } | undefined;
693
+ flags?: ({
694
+ type: "anyOf";
695
+ terms: string[];
696
+ } | {
697
+ type: "not";
698
+ term: string;
699
+ })[] | undefined;
309
700
  eventType?: string | undefined;
310
701
  createAtLocation?: {
311
702
  type: "exact";
@@ -336,14 +727,15 @@ declare const QueryExpression: z.ZodObject<{
336
727
  type: "exact";
337
728
  term: string;
338
729
  } | undefined;
339
- updatedAtLocation?: {
730
+ updatedAt?: {
340
731
  type: "exact";
341
732
  term: string;
342
733
  } | {
343
- type: "within";
344
- location: string;
734
+ type: "range";
735
+ gte: string;
736
+ lte: string;
345
737
  } | undefined;
346
- updatedAt?: {
738
+ registeredAt?: {
347
739
  type: "exact";
348
740
  term: string;
349
741
  } | {
@@ -351,14 +743,35 @@ declare const QueryExpression: z.ZodObject<{
351
743
  gte: string;
352
744
  lte: string;
353
745
  } | undefined;
746
+ registeredAtLocation?: {
747
+ type: "exact";
748
+ term: string;
749
+ } | {
750
+ type: "within";
751
+ location: string;
752
+ } | undefined;
354
753
  trackingId?: {
355
754
  type: "exact";
356
755
  term: string;
357
756
  } | undefined;
757
+ updatedAtLocation?: {
758
+ type: "exact";
759
+ term: string;
760
+ } | {
761
+ type: "within";
762
+ location: string;
763
+ } | undefined;
358
764
  updatedBy?: {
359
765
  type: "exact";
360
766
  term: string;
361
767
  } | undefined;
768
+ flags?: ({
769
+ type: "anyOf";
770
+ terms: string[];
771
+ } | {
772
+ type: "not";
773
+ term: string;
774
+ })[] | undefined;
362
775
  eventType?: string | undefined;
363
776
  createAtLocation?: {
364
777
  type: "exact";
@@ -435,6 +848,47 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
435
848
  gte: string;
436
849
  lte: string;
437
850
  }>]>>>;
851
+ registeredAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
852
+ type: z.ZodLiteral<"exact">;
853
+ term: z.ZodString;
854
+ }, "strip", z.ZodTypeAny, {
855
+ type: "exact";
856
+ term: string;
857
+ }, {
858
+ type: "exact";
859
+ term: string;
860
+ }>, z.ZodObject<{
861
+ type: z.ZodLiteral<"range">;
862
+ gte: z.ZodString;
863
+ lte: z.ZodString;
864
+ }, "strip", z.ZodTypeAny, {
865
+ type: "range";
866
+ gte: string;
867
+ lte: string;
868
+ }, {
869
+ type: "range";
870
+ gte: string;
871
+ lte: string;
872
+ }>]>>>;
873
+ registeredAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
874
+ type: z.ZodLiteral<"within">;
875
+ location: z.ZodString;
876
+ }, "strip", z.ZodTypeAny, {
877
+ type: "within";
878
+ location: string;
879
+ }, {
880
+ type: "within";
881
+ location: string;
882
+ }>, z.ZodObject<{
883
+ type: z.ZodLiteral<"exact">;
884
+ term: z.ZodString;
885
+ }, "strip", z.ZodTypeAny, {
886
+ type: "exact";
887
+ term: string;
888
+ }, {
889
+ type: "exact";
890
+ term: string;
891
+ }>]>>>;
438
892
  createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
439
893
  type: z.ZodLiteral<"within">;
440
894
  location: z.ZodString;
@@ -503,6 +957,25 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
503
957
  type: "exact";
504
958
  term: string;
505
959
  }>>>;
960
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
961
+ type: z.ZodLiteral<"anyOf">;
962
+ terms: z.ZodArray<z.ZodString, "many">;
963
+ }, "strip", z.ZodTypeAny, {
964
+ type: "anyOf";
965
+ terms: string[];
966
+ }, {
967
+ type: "anyOf";
968
+ terms: string[];
969
+ }>, z.ZodObject<{
970
+ type: z.ZodLiteral<"not">;
971
+ term: z.ZodString;
972
+ }, "strip", z.ZodTypeAny, {
973
+ type: "not";
974
+ term: string;
975
+ }, {
976
+ type: "not";
977
+ term: string;
978
+ }>]>, "many">>>;
506
979
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
507
980
  }, "strip", z.ZodTypeAny, {
508
981
  type?: "and" | undefined;
@@ -526,14 +999,15 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
526
999
  type: "exact";
527
1000
  term: string;
528
1001
  } | undefined;
529
- updatedAtLocation?: {
1002
+ updatedAt?: {
530
1003
  type: "exact";
531
1004
  term: string;
532
1005
  } | {
533
- type: "within";
534
- location: string;
1006
+ type: "range";
1007
+ gte: string;
1008
+ lte: string;
535
1009
  } | undefined;
536
- updatedAt?: {
1010
+ registeredAt?: {
537
1011
  type: "exact";
538
1012
  term: string;
539
1013
  } | {
@@ -541,14 +1015,35 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
541
1015
  gte: string;
542
1016
  lte: string;
543
1017
  } | undefined;
1018
+ registeredAtLocation?: {
1019
+ type: "exact";
1020
+ term: string;
1021
+ } | {
1022
+ type: "within";
1023
+ location: string;
1024
+ } | undefined;
544
1025
  trackingId?: {
545
1026
  type: "exact";
546
1027
  term: string;
547
1028
  } | undefined;
1029
+ updatedAtLocation?: {
1030
+ type: "exact";
1031
+ term: string;
1032
+ } | {
1033
+ type: "within";
1034
+ location: string;
1035
+ } | undefined;
548
1036
  updatedBy?: {
549
1037
  type: "exact";
550
1038
  term: string;
551
1039
  } | undefined;
1040
+ flags?: ({
1041
+ type: "anyOf";
1042
+ terms: string[];
1043
+ } | {
1044
+ type: "not";
1045
+ term: string;
1046
+ })[] | undefined;
552
1047
  eventType?: string | undefined;
553
1048
  createAtLocation?: {
554
1049
  type: "exact";
@@ -579,14 +1074,15 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
579
1074
  type: "exact";
580
1075
  term: string;
581
1076
  } | undefined;
582
- updatedAtLocation?: {
1077
+ updatedAt?: {
583
1078
  type: "exact";
584
1079
  term: string;
585
1080
  } | {
586
- type: "within";
587
- location: string;
1081
+ type: "range";
1082
+ gte: string;
1083
+ lte: string;
588
1084
  } | undefined;
589
- updatedAt?: {
1085
+ registeredAt?: {
590
1086
  type: "exact";
591
1087
  term: string;
592
1088
  } | {
@@ -594,14 +1090,35 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
594
1090
  gte: string;
595
1091
  lte: string;
596
1092
  } | undefined;
1093
+ registeredAtLocation?: {
1094
+ type: "exact";
1095
+ term: string;
1096
+ } | {
1097
+ type: "within";
1098
+ location: string;
1099
+ } | undefined;
597
1100
  trackingId?: {
598
1101
  type: "exact";
599
1102
  term: string;
600
1103
  } | undefined;
1104
+ updatedAtLocation?: {
1105
+ type: "exact";
1106
+ term: string;
1107
+ } | {
1108
+ type: "within";
1109
+ location: string;
1110
+ } | undefined;
601
1111
  updatedBy?: {
602
1112
  type: "exact";
603
1113
  term: string;
604
1114
  } | undefined;
1115
+ flags?: ({
1116
+ type: "anyOf";
1117
+ terms: string[];
1118
+ } | {
1119
+ type: "not";
1120
+ term: string;
1121
+ })[] | undefined;
605
1122
  eventType?: string | undefined;
606
1123
  createAtLocation?: {
607
1124
  type: "exact";
@@ -678,6 +1195,47 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
678
1195
  gte: string;
679
1196
  lte: string;
680
1197
  }>]>>>;
1198
+ registeredAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1199
+ type: z.ZodLiteral<"exact">;
1200
+ term: z.ZodString;
1201
+ }, "strip", z.ZodTypeAny, {
1202
+ type: "exact";
1203
+ term: string;
1204
+ }, {
1205
+ type: "exact";
1206
+ term: string;
1207
+ }>, z.ZodObject<{
1208
+ type: z.ZodLiteral<"range">;
1209
+ gte: z.ZodString;
1210
+ lte: z.ZodString;
1211
+ }, "strip", z.ZodTypeAny, {
1212
+ type: "range";
1213
+ gte: string;
1214
+ lte: string;
1215
+ }, {
1216
+ type: "range";
1217
+ gte: string;
1218
+ lte: string;
1219
+ }>]>>>;
1220
+ registeredAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1221
+ type: z.ZodLiteral<"within">;
1222
+ location: z.ZodString;
1223
+ }, "strip", z.ZodTypeAny, {
1224
+ type: "within";
1225
+ location: string;
1226
+ }, {
1227
+ type: "within";
1228
+ location: string;
1229
+ }>, z.ZodObject<{
1230
+ type: z.ZodLiteral<"exact">;
1231
+ term: z.ZodString;
1232
+ }, "strip", z.ZodTypeAny, {
1233
+ type: "exact";
1234
+ term: string;
1235
+ }, {
1236
+ type: "exact";
1237
+ term: string;
1238
+ }>]>>>;
681
1239
  createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
682
1240
  type: z.ZodLiteral<"within">;
683
1241
  location: z.ZodString;
@@ -746,6 +1304,25 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
746
1304
  type: "exact";
747
1305
  term: string;
748
1306
  }>>>;
1307
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1308
+ type: z.ZodLiteral<"anyOf">;
1309
+ terms: z.ZodArray<z.ZodString, "many">;
1310
+ }, "strip", z.ZodTypeAny, {
1311
+ type: "anyOf";
1312
+ terms: string[];
1313
+ }, {
1314
+ type: "anyOf";
1315
+ terms: string[];
1316
+ }>, z.ZodObject<{
1317
+ type: z.ZodLiteral<"not">;
1318
+ term: z.ZodString;
1319
+ }, "strip", z.ZodTypeAny, {
1320
+ type: "not";
1321
+ term: string;
1322
+ }, {
1323
+ type: "not";
1324
+ term: string;
1325
+ }>]>, "many">>>;
749
1326
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
750
1327
  }, "strip", z.ZodTypeAny, {
751
1328
  type?: "and" | undefined;
@@ -769,14 +1346,15 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
769
1346
  type: "exact";
770
1347
  term: string;
771
1348
  } | undefined;
772
- updatedAtLocation?: {
1349
+ updatedAt?: {
773
1350
  type: "exact";
774
1351
  term: string;
775
1352
  } | {
776
- type: "within";
777
- location: string;
1353
+ type: "range";
1354
+ gte: string;
1355
+ lte: string;
778
1356
  } | undefined;
779
- updatedAt?: {
1357
+ registeredAt?: {
780
1358
  type: "exact";
781
1359
  term: string;
782
1360
  } | {
@@ -784,14 +1362,35 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
784
1362
  gte: string;
785
1363
  lte: string;
786
1364
  } | undefined;
1365
+ registeredAtLocation?: {
1366
+ type: "exact";
1367
+ term: string;
1368
+ } | {
1369
+ type: "within";
1370
+ location: string;
1371
+ } | undefined;
787
1372
  trackingId?: {
788
1373
  type: "exact";
789
1374
  term: string;
790
1375
  } | undefined;
1376
+ updatedAtLocation?: {
1377
+ type: "exact";
1378
+ term: string;
1379
+ } | {
1380
+ type: "within";
1381
+ location: string;
1382
+ } | undefined;
791
1383
  updatedBy?: {
792
1384
  type: "exact";
793
1385
  term: string;
794
1386
  } | undefined;
1387
+ flags?: ({
1388
+ type: "anyOf";
1389
+ terms: string[];
1390
+ } | {
1391
+ type: "not";
1392
+ term: string;
1393
+ })[] | undefined;
795
1394
  eventType?: string | undefined;
796
1395
  createAtLocation?: {
797
1396
  type: "exact";
@@ -822,14 +1421,15 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
822
1421
  type: "exact";
823
1422
  term: string;
824
1423
  } | undefined;
825
- updatedAtLocation?: {
1424
+ updatedAt?: {
826
1425
  type: "exact";
827
1426
  term: string;
828
1427
  } | {
829
- type: "within";
830
- location: string;
1428
+ type: "range";
1429
+ gte: string;
1430
+ lte: string;
831
1431
  } | undefined;
832
- updatedAt?: {
1432
+ registeredAt?: {
833
1433
  type: "exact";
834
1434
  term: string;
835
1435
  } | {
@@ -837,14 +1437,35 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
837
1437
  gte: string;
838
1438
  lte: string;
839
1439
  } | undefined;
1440
+ registeredAtLocation?: {
1441
+ type: "exact";
1442
+ term: string;
1443
+ } | {
1444
+ type: "within";
1445
+ location: string;
1446
+ } | undefined;
840
1447
  trackingId?: {
841
1448
  type: "exact";
842
1449
  term: string;
843
1450
  } | undefined;
1451
+ updatedAtLocation?: {
1452
+ type: "exact";
1453
+ term: string;
1454
+ } | {
1455
+ type: "within";
1456
+ location: string;
1457
+ } | undefined;
844
1458
  updatedBy?: {
845
1459
  type: "exact";
846
1460
  term: string;
847
1461
  } | undefined;
1462
+ flags?: ({
1463
+ type: "anyOf";
1464
+ terms: string[];
1465
+ } | {
1466
+ type: "not";
1467
+ term: string;
1468
+ })[] | undefined;
848
1469
  eventType?: string | undefined;
849
1470
  createAtLocation?: {
850
1471
  type: "exact";
@@ -878,14 +1499,15 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
878
1499
  type: "exact";
879
1500
  term: string;
880
1501
  } | undefined;
881
- updatedAtLocation?: {
1502
+ updatedAt?: {
882
1503
  type: "exact";
883
1504
  term: string;
884
1505
  } | {
885
- type: "within";
886
- location: string;
1506
+ type: "range";
1507
+ gte: string;
1508
+ lte: string;
887
1509
  } | undefined;
888
- updatedAt?: {
1510
+ registeredAt?: {
889
1511
  type: "exact";
890
1512
  term: string;
891
1513
  } | {
@@ -893,14 +1515,35 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
893
1515
  gte: string;
894
1516
  lte: string;
895
1517
  } | undefined;
1518
+ registeredAtLocation?: {
1519
+ type: "exact";
1520
+ term: string;
1521
+ } | {
1522
+ type: "within";
1523
+ location: string;
1524
+ } | undefined;
896
1525
  trackingId?: {
897
1526
  type: "exact";
898
1527
  term: string;
899
1528
  } | undefined;
1529
+ updatedAtLocation?: {
1530
+ type: "exact";
1531
+ term: string;
1532
+ } | {
1533
+ type: "within";
1534
+ location: string;
1535
+ } | undefined;
900
1536
  updatedBy?: {
901
1537
  type: "exact";
902
1538
  term: string;
903
1539
  } | undefined;
1540
+ flags?: ({
1541
+ type: "anyOf";
1542
+ terms: string[];
1543
+ } | {
1544
+ type: "not";
1545
+ term: string;
1546
+ })[] | undefined;
904
1547
  eventType?: string | undefined;
905
1548
  createAtLocation?: {
906
1549
  type: "exact";
@@ -934,14 +1577,15 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
934
1577
  type: "exact";
935
1578
  term: string;
936
1579
  } | undefined;
937
- updatedAtLocation?: {
1580
+ updatedAt?: {
938
1581
  type: "exact";
939
1582
  term: string;
940
1583
  } | {
941
- type: "within";
942
- location: string;
1584
+ type: "range";
1585
+ gte: string;
1586
+ lte: string;
943
1587
  } | undefined;
944
- updatedAt?: {
1588
+ registeredAt?: {
945
1589
  type: "exact";
946
1590
  term: string;
947
1591
  } | {
@@ -949,14 +1593,35 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
949
1593
  gte: string;
950
1594
  lte: string;
951
1595
  } | undefined;
1596
+ registeredAtLocation?: {
1597
+ type: "exact";
1598
+ term: string;
1599
+ } | {
1600
+ type: "within";
1601
+ location: string;
1602
+ } | undefined;
952
1603
  trackingId?: {
953
1604
  type: "exact";
954
1605
  term: string;
955
1606
  } | undefined;
1607
+ updatedAtLocation?: {
1608
+ type: "exact";
1609
+ term: string;
1610
+ } | {
1611
+ type: "within";
1612
+ location: string;
1613
+ } | undefined;
956
1614
  updatedBy?: {
957
1615
  type: "exact";
958
1616
  term: string;
959
1617
  } | undefined;
1618
+ flags?: ({
1619
+ type: "anyOf";
1620
+ terms: string[];
1621
+ } | {
1622
+ type: "not";
1623
+ term: string;
1624
+ })[] | undefined;
960
1625
  eventType?: string | undefined;
961
1626
  createAtLocation?: {
962
1627
  type: "exact";