@opencrvs/toolkit 1.8.0-rc.f9c5526 → 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.
Files changed (35) hide show
  1. package/dist/commons/api/router.d.ts +7990 -4200
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/conditionals/validate.d.ts +4 -6
  4. package/dist/commons/events/ActionConfig.d.ts +97080 -1720
  5. package/dist/commons/events/ActionDocument.d.ts +544 -207
  6. package/dist/commons/events/ActionInput.d.ts +338 -240
  7. package/dist/commons/events/ActionType.d.ts +2 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +535 -25
  9. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  10. package/dist/commons/events/Draft.d.ts +36 -20
  11. package/dist/commons/events/EventConfig.d.ts +46232 -1342
  12. package/dist/commons/events/EventDocument.d.ts +345 -153
  13. package/dist/commons/events/EventIndex.d.ts +1589 -13
  14. package/dist/commons/events/EventInput.d.ts +13 -0
  15. package/dist/commons/events/EventMetadata.d.ts +273 -11
  16. package/dist/commons/events/FieldConfig.d.ts +4280 -754
  17. package/dist/commons/events/FieldType.d.ts +3 -3
  18. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  19. package/dist/commons/events/FieldValue.d.ts +7 -4
  20. package/dist/commons/events/FormConfig.d.ts +43591 -439
  21. package/dist/commons/events/PageConfig.d.ts +10860 -204
  22. package/dist/commons/events/SummaryConfig.d.ts +81 -42
  23. package/dist/commons/events/User.d.ts +5 -0
  24. package/dist/commons/events/WorkqueueConfig.d.ts +1397 -19
  25. package/dist/commons/events/defineConfig.d.ts +7220 -40
  26. package/dist/commons/events/event.d.ts +54 -0
  27. package/dist/commons/events/field.d.ts +77 -0
  28. package/dist/commons/events/index.d.ts +3 -0
  29. package/dist/commons/events/scopes.d.ts +26 -0
  30. package/dist/commons/events/test.utils.d.ts +7 -44
  31. package/dist/commons/events/utils.d.ts +3668 -68
  32. package/dist/commons/events/utils.test.d.ts +2 -0
  33. package/dist/conditionals/index.js +36 -33
  34. package/dist/events/index.js +1617 -975
  35. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z, ZodType } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
3
  id: z.ZodString;
4
4
  type: z.ZodString;
@@ -12,42 +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;
92
+ dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
93
  createdBy: z.ZodString;
94
+ updatedByUserRole: z.ZodString;
17
95
  createdAtLocation: z.ZodString;
18
- modifiedAt: z.ZodString;
96
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ updatedAt: z.ZodString;
19
98
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- updatedBy: z.ZodString;
99
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
100
  trackingId: z.ZodString;
22
- 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">;
23
104
  }, {
24
- 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
+ }>]>>;
25
219
  }>, "strip", z.ZodTypeAny, {
26
220
  type: string;
27
221
  id: string;
28
222
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
29
223
  createdAt: string;
30
224
  createdBy: string;
31
- 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>;
32
263
  createdAtLocation: string;
264
+ updatedAt: string;
33
265
  trackingId: string;
34
- modifiedAt: string;
35
- updatedBy: 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
+ };
283
+ updatedByUserRole: string;
284
+ flags: string[];
36
285
  assignedTo?: string | null | undefined;
37
- registrationNumber?: string | null | undefined;
286
+ dateOfEvent?: string | null | undefined;
287
+ updatedAtLocation?: string | null | undefined;
288
+ updatedBy?: string | null | undefined;
38
289
  }, {
39
290
  type: string;
40
291
  id: string;
41
292
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
42
293
  createdAt: string;
43
294
  createdBy: string;
44
- 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>;
45
333
  createdAtLocation: string;
334
+ updatedAt: string;
46
335
  trackingId: string;
47
- modifiedAt: string;
48
- updatedBy: 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
+ };
353
+ updatedByUserRole: string;
354
+ flags: string[];
49
355
  assignedTo?: string | null | undefined;
50
- registrationNumber?: string | null | undefined;
356
+ dateOfEvent?: string | null | undefined;
357
+ updatedAtLocation?: string | null | undefined;
358
+ updatedBy?: string | null | undefined;
51
359
  }>;
52
360
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
53
361
  type: z.ZodString;
@@ -58,4 +366,1272 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
58
366
  }>>;
59
367
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
60
368
  export type EventIndex = z.infer<typeof EventIndex>;
369
+ declare const Fuzzy: z.ZodObject<{
370
+ type: z.ZodLiteral<"fuzzy">;
371
+ term: z.ZodString;
372
+ }, "strip", z.ZodTypeAny, {
373
+ type: "fuzzy";
374
+ term: string;
375
+ }, {
376
+ type: "fuzzy";
377
+ term: string;
378
+ }>;
379
+ declare const Exact: z.ZodObject<{
380
+ type: z.ZodLiteral<"exact">;
381
+ term: z.ZodString;
382
+ }, "strip", z.ZodTypeAny, {
383
+ type: "exact";
384
+ term: string;
385
+ }, {
386
+ type: "exact";
387
+ term: string;
388
+ }>;
389
+ declare const AnyOf: z.ZodObject<{
390
+ type: z.ZodLiteral<"anyOf">;
391
+ terms: z.ZodArray<z.ZodString, "many">;
392
+ }, "strip", z.ZodTypeAny, {
393
+ type: "anyOf";
394
+ terms: string[];
395
+ }, {
396
+ type: "anyOf";
397
+ terms: string[];
398
+ }>;
399
+ declare const Range: z.ZodObject<{
400
+ type: z.ZodLiteral<"range">;
401
+ gte: z.ZodString;
402
+ lte: z.ZodString;
403
+ }, "strip", z.ZodTypeAny, {
404
+ type: "range";
405
+ gte: string;
406
+ lte: string;
407
+ }, {
408
+ type: "range";
409
+ gte: string;
410
+ lte: string;
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
+ }>;
422
+ declare const Within: z.ZodObject<{
423
+ type: z.ZodLiteral<"within">;
424
+ location: z.ZodString;
425
+ }, "strip", z.ZodTypeAny, {
426
+ type: "within";
427
+ location: string;
428
+ }, {
429
+ type: "within";
430
+ location: string;
431
+ }>;
432
+ export declare const QueryInput: ZodType;
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>;
434
+ type QueryMap = {
435
+ [key: string]: BaseInput | QueryMap;
436
+ };
437
+ export type QueryInputType = BaseInput | QueryMap;
438
+ declare const QueryExpression: z.ZodObject<{
439
+ type: z.ZodOptional<z.ZodLiteral<"and">>;
440
+ eventType: z.ZodOptional<z.ZodString>;
441
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
442
+ type: z.ZodLiteral<"anyOf">;
443
+ terms: z.ZodArray<z.ZodString, "many">;
444
+ }, "strip", z.ZodTypeAny, {
445
+ type: "anyOf";
446
+ terms: string[];
447
+ }, {
448
+ type: "anyOf";
449
+ terms: string[];
450
+ }>, z.ZodObject<{
451
+ type: z.ZodLiteral<"exact">;
452
+ term: z.ZodString;
453
+ }, "strip", z.ZodTypeAny, {
454
+ type: "exact";
455
+ term: string;
456
+ }, {
457
+ type: "exact";
458
+ term: string;
459
+ }>]>>>;
460
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
461
+ type: z.ZodLiteral<"exact">;
462
+ term: z.ZodString;
463
+ }, "strip", z.ZodTypeAny, {
464
+ type: "exact";
465
+ term: string;
466
+ }, {
467
+ type: "exact";
468
+ term: string;
469
+ }>, z.ZodObject<{
470
+ type: z.ZodLiteral<"range">;
471
+ gte: z.ZodString;
472
+ lte: z.ZodString;
473
+ }, "strip", z.ZodTypeAny, {
474
+ type: "range";
475
+ gte: string;
476
+ lte: string;
477
+ }, {
478
+ type: "range";
479
+ gte: string;
480
+ lte: string;
481
+ }>]>>>;
482
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
483
+ type: z.ZodLiteral<"exact">;
484
+ term: z.ZodString;
485
+ }, "strip", z.ZodTypeAny, {
486
+ type: "exact";
487
+ term: string;
488
+ }, {
489
+ type: "exact";
490
+ term: string;
491
+ }>, z.ZodObject<{
492
+ type: z.ZodLiteral<"range">;
493
+ gte: z.ZodString;
494
+ lte: z.ZodString;
495
+ }, "strip", z.ZodTypeAny, {
496
+ type: "range";
497
+ gte: string;
498
+ lte: string;
499
+ }, {
500
+ type: "range";
501
+ gte: string;
502
+ lte: string;
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
+ }>]>>>;
545
+ createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
546
+ type: z.ZodLiteral<"within">;
547
+ location: z.ZodString;
548
+ }, "strip", z.ZodTypeAny, {
549
+ type: "within";
550
+ location: string;
551
+ }, {
552
+ type: "within";
553
+ location: string;
554
+ }>, z.ZodObject<{
555
+ type: z.ZodLiteral<"exact">;
556
+ term: z.ZodString;
557
+ }, "strip", z.ZodTypeAny, {
558
+ type: "exact";
559
+ term: string;
560
+ }, {
561
+ type: "exact";
562
+ term: string;
563
+ }>]>>>;
564
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
565
+ type: z.ZodLiteral<"within">;
566
+ location: z.ZodString;
567
+ }, "strip", z.ZodTypeAny, {
568
+ type: "within";
569
+ location: string;
570
+ }, {
571
+ type: "within";
572
+ location: string;
573
+ }>, z.ZodObject<{
574
+ type: z.ZodLiteral<"exact">;
575
+ term: z.ZodString;
576
+ }, "strip", z.ZodTypeAny, {
577
+ type: "exact";
578
+ term: string;
579
+ }, {
580
+ type: "exact";
581
+ term: string;
582
+ }>]>>>;
583
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
584
+ type: z.ZodLiteral<"exact">;
585
+ term: z.ZodString;
586
+ }, "strip", z.ZodTypeAny, {
587
+ type: "exact";
588
+ term: string;
589
+ }, {
590
+ type: "exact";
591
+ term: string;
592
+ }>>>;
593
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
594
+ type: z.ZodLiteral<"exact">;
595
+ term: z.ZodString;
596
+ }, "strip", z.ZodTypeAny, {
597
+ type: "exact";
598
+ term: string;
599
+ }, {
600
+ type: "exact";
601
+ term: string;
602
+ }>>>;
603
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
604
+ type: z.ZodLiteral<"exact">;
605
+ term: z.ZodString;
606
+ }, "strip", z.ZodTypeAny, {
607
+ type: "exact";
608
+ term: string;
609
+ }, {
610
+ type: "exact";
611
+ term: string;
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">>>;
632
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ type?: "and" | undefined;
635
+ status?: {
636
+ type: "exact";
637
+ term: string;
638
+ } | {
639
+ type: "anyOf";
640
+ terms: string[];
641
+ } | undefined;
642
+ data?: any;
643
+ createdAt?: {
644
+ type: "exact";
645
+ term: string;
646
+ } | {
647
+ type: "range";
648
+ gte: string;
649
+ lte: string;
650
+ } | undefined;
651
+ createdBy?: {
652
+ type: "exact";
653
+ term: string;
654
+ } | undefined;
655
+ updatedAt?: {
656
+ type: "exact";
657
+ term: string;
658
+ } | {
659
+ type: "range";
660
+ gte: string;
661
+ lte: string;
662
+ } | undefined;
663
+ registeredAt?: {
664
+ type: "exact";
665
+ term: string;
666
+ } | {
667
+ type: "range";
668
+ gte: string;
669
+ lte: string;
670
+ } | undefined;
671
+ registeredAtLocation?: {
672
+ type: "exact";
673
+ term: string;
674
+ } | {
675
+ type: "within";
676
+ location: string;
677
+ } | undefined;
678
+ trackingId?: {
679
+ type: "exact";
680
+ term: string;
681
+ } | undefined;
682
+ updatedAtLocation?: {
683
+ type: "exact";
684
+ term: string;
685
+ } | {
686
+ type: "within";
687
+ location: string;
688
+ } | undefined;
689
+ updatedBy?: {
690
+ type: "exact";
691
+ term: string;
692
+ } | undefined;
693
+ flags?: ({
694
+ type: "anyOf";
695
+ terms: string[];
696
+ } | {
697
+ type: "not";
698
+ term: string;
699
+ })[] | undefined;
700
+ eventType?: string | undefined;
701
+ createAtLocation?: {
702
+ type: "exact";
703
+ term: string;
704
+ } | {
705
+ type: "within";
706
+ location: string;
707
+ } | undefined;
708
+ }, {
709
+ type?: "and" | undefined;
710
+ status?: {
711
+ type: "exact";
712
+ term: string;
713
+ } | {
714
+ type: "anyOf";
715
+ terms: string[];
716
+ } | undefined;
717
+ data?: any;
718
+ createdAt?: {
719
+ type: "exact";
720
+ term: string;
721
+ } | {
722
+ type: "range";
723
+ gte: string;
724
+ lte: string;
725
+ } | undefined;
726
+ createdBy?: {
727
+ type: "exact";
728
+ term: string;
729
+ } | undefined;
730
+ updatedAt?: {
731
+ type: "exact";
732
+ term: string;
733
+ } | {
734
+ type: "range";
735
+ gte: string;
736
+ lte: string;
737
+ } | undefined;
738
+ registeredAt?: {
739
+ type: "exact";
740
+ term: string;
741
+ } | {
742
+ type: "range";
743
+ gte: string;
744
+ lte: string;
745
+ } | undefined;
746
+ registeredAtLocation?: {
747
+ type: "exact";
748
+ term: string;
749
+ } | {
750
+ type: "within";
751
+ location: string;
752
+ } | undefined;
753
+ trackingId?: {
754
+ type: "exact";
755
+ term: string;
756
+ } | undefined;
757
+ updatedAtLocation?: {
758
+ type: "exact";
759
+ term: string;
760
+ } | {
761
+ type: "within";
762
+ location: string;
763
+ } | undefined;
764
+ updatedBy?: {
765
+ type: "exact";
766
+ term: string;
767
+ } | undefined;
768
+ flags?: ({
769
+ type: "anyOf";
770
+ terms: string[];
771
+ } | {
772
+ type: "not";
773
+ term: string;
774
+ })[] | undefined;
775
+ eventType?: string | undefined;
776
+ createAtLocation?: {
777
+ type: "exact";
778
+ term: string;
779
+ } | {
780
+ type: "within";
781
+ location: string;
782
+ } | undefined;
783
+ }>;
784
+ export type QueryExpression = z.infer<typeof QueryExpression>;
785
+ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
786
+ type: z.ZodOptional<z.ZodLiteral<"and">>;
787
+ eventType: z.ZodOptional<z.ZodString>;
788
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
789
+ type: z.ZodLiteral<"anyOf">;
790
+ terms: z.ZodArray<z.ZodString, "many">;
791
+ }, "strip", z.ZodTypeAny, {
792
+ type: "anyOf";
793
+ terms: string[];
794
+ }, {
795
+ type: "anyOf";
796
+ terms: string[];
797
+ }>, z.ZodObject<{
798
+ type: z.ZodLiteral<"exact">;
799
+ term: z.ZodString;
800
+ }, "strip", z.ZodTypeAny, {
801
+ type: "exact";
802
+ term: string;
803
+ }, {
804
+ type: "exact";
805
+ term: string;
806
+ }>]>>>;
807
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
808
+ type: z.ZodLiteral<"exact">;
809
+ term: z.ZodString;
810
+ }, "strip", z.ZodTypeAny, {
811
+ type: "exact";
812
+ term: string;
813
+ }, {
814
+ type: "exact";
815
+ term: string;
816
+ }>, z.ZodObject<{
817
+ type: z.ZodLiteral<"range">;
818
+ gte: z.ZodString;
819
+ lte: z.ZodString;
820
+ }, "strip", z.ZodTypeAny, {
821
+ type: "range";
822
+ gte: string;
823
+ lte: string;
824
+ }, {
825
+ type: "range";
826
+ gte: string;
827
+ lte: string;
828
+ }>]>>>;
829
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
830
+ type: z.ZodLiteral<"exact">;
831
+ term: z.ZodString;
832
+ }, "strip", z.ZodTypeAny, {
833
+ type: "exact";
834
+ term: string;
835
+ }, {
836
+ type: "exact";
837
+ term: string;
838
+ }>, z.ZodObject<{
839
+ type: z.ZodLiteral<"range">;
840
+ gte: z.ZodString;
841
+ lte: z.ZodString;
842
+ }, "strip", z.ZodTypeAny, {
843
+ type: "range";
844
+ gte: string;
845
+ lte: string;
846
+ }, {
847
+ type: "range";
848
+ gte: string;
849
+ lte: string;
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
+ }>]>>>;
892
+ createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
893
+ type: z.ZodLiteral<"within">;
894
+ location: z.ZodString;
895
+ }, "strip", z.ZodTypeAny, {
896
+ type: "within";
897
+ location: string;
898
+ }, {
899
+ type: "within";
900
+ location: string;
901
+ }>, z.ZodObject<{
902
+ type: z.ZodLiteral<"exact">;
903
+ term: z.ZodString;
904
+ }, "strip", z.ZodTypeAny, {
905
+ type: "exact";
906
+ term: string;
907
+ }, {
908
+ type: "exact";
909
+ term: string;
910
+ }>]>>>;
911
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
912
+ type: z.ZodLiteral<"within">;
913
+ location: z.ZodString;
914
+ }, "strip", z.ZodTypeAny, {
915
+ type: "within";
916
+ location: string;
917
+ }, {
918
+ type: "within";
919
+ location: string;
920
+ }>, z.ZodObject<{
921
+ type: z.ZodLiteral<"exact">;
922
+ term: z.ZodString;
923
+ }, "strip", z.ZodTypeAny, {
924
+ type: "exact";
925
+ term: string;
926
+ }, {
927
+ type: "exact";
928
+ term: string;
929
+ }>]>>>;
930
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
931
+ type: z.ZodLiteral<"exact">;
932
+ term: z.ZodString;
933
+ }, "strip", z.ZodTypeAny, {
934
+ type: "exact";
935
+ term: string;
936
+ }, {
937
+ type: "exact";
938
+ term: string;
939
+ }>>>;
940
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
941
+ type: z.ZodLiteral<"exact">;
942
+ term: z.ZodString;
943
+ }, "strip", z.ZodTypeAny, {
944
+ type: "exact";
945
+ term: string;
946
+ }, {
947
+ type: "exact";
948
+ term: string;
949
+ }>>>;
950
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
951
+ type: z.ZodLiteral<"exact">;
952
+ term: z.ZodString;
953
+ }, "strip", z.ZodTypeAny, {
954
+ type: "exact";
955
+ term: string;
956
+ }, {
957
+ type: "exact";
958
+ term: string;
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">>>;
979
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
980
+ }, "strip", z.ZodTypeAny, {
981
+ type?: "and" | undefined;
982
+ status?: {
983
+ type: "exact";
984
+ term: string;
985
+ } | {
986
+ type: "anyOf";
987
+ terms: string[];
988
+ } | undefined;
989
+ data?: any;
990
+ createdAt?: {
991
+ type: "exact";
992
+ term: string;
993
+ } | {
994
+ type: "range";
995
+ gte: string;
996
+ lte: string;
997
+ } | undefined;
998
+ createdBy?: {
999
+ type: "exact";
1000
+ term: string;
1001
+ } | undefined;
1002
+ updatedAt?: {
1003
+ type: "exact";
1004
+ term: string;
1005
+ } | {
1006
+ type: "range";
1007
+ gte: string;
1008
+ lte: string;
1009
+ } | undefined;
1010
+ registeredAt?: {
1011
+ type: "exact";
1012
+ term: string;
1013
+ } | {
1014
+ type: "range";
1015
+ gte: string;
1016
+ lte: string;
1017
+ } | undefined;
1018
+ registeredAtLocation?: {
1019
+ type: "exact";
1020
+ term: string;
1021
+ } | {
1022
+ type: "within";
1023
+ location: string;
1024
+ } | undefined;
1025
+ trackingId?: {
1026
+ type: "exact";
1027
+ term: string;
1028
+ } | undefined;
1029
+ updatedAtLocation?: {
1030
+ type: "exact";
1031
+ term: string;
1032
+ } | {
1033
+ type: "within";
1034
+ location: string;
1035
+ } | undefined;
1036
+ updatedBy?: {
1037
+ type: "exact";
1038
+ term: string;
1039
+ } | undefined;
1040
+ flags?: ({
1041
+ type: "anyOf";
1042
+ terms: string[];
1043
+ } | {
1044
+ type: "not";
1045
+ term: string;
1046
+ })[] | undefined;
1047
+ eventType?: string | undefined;
1048
+ createAtLocation?: {
1049
+ type: "exact";
1050
+ term: string;
1051
+ } | {
1052
+ type: "within";
1053
+ location: string;
1054
+ } | undefined;
1055
+ }, {
1056
+ type?: "and" | undefined;
1057
+ status?: {
1058
+ type: "exact";
1059
+ term: string;
1060
+ } | {
1061
+ type: "anyOf";
1062
+ terms: string[];
1063
+ } | undefined;
1064
+ data?: any;
1065
+ createdAt?: {
1066
+ type: "exact";
1067
+ term: string;
1068
+ } | {
1069
+ type: "range";
1070
+ gte: string;
1071
+ lte: string;
1072
+ } | undefined;
1073
+ createdBy?: {
1074
+ type: "exact";
1075
+ term: string;
1076
+ } | undefined;
1077
+ updatedAt?: {
1078
+ type: "exact";
1079
+ term: string;
1080
+ } | {
1081
+ type: "range";
1082
+ gte: string;
1083
+ lte: string;
1084
+ } | undefined;
1085
+ registeredAt?: {
1086
+ type: "exact";
1087
+ term: string;
1088
+ } | {
1089
+ type: "range";
1090
+ gte: string;
1091
+ lte: string;
1092
+ } | undefined;
1093
+ registeredAtLocation?: {
1094
+ type: "exact";
1095
+ term: string;
1096
+ } | {
1097
+ type: "within";
1098
+ location: string;
1099
+ } | undefined;
1100
+ trackingId?: {
1101
+ type: "exact";
1102
+ term: string;
1103
+ } | undefined;
1104
+ updatedAtLocation?: {
1105
+ type: "exact";
1106
+ term: string;
1107
+ } | {
1108
+ type: "within";
1109
+ location: string;
1110
+ } | undefined;
1111
+ updatedBy?: {
1112
+ type: "exact";
1113
+ term: string;
1114
+ } | undefined;
1115
+ flags?: ({
1116
+ type: "anyOf";
1117
+ terms: string[];
1118
+ } | {
1119
+ type: "not";
1120
+ term: string;
1121
+ })[] | undefined;
1122
+ eventType?: string | undefined;
1123
+ createAtLocation?: {
1124
+ type: "exact";
1125
+ term: string;
1126
+ } | {
1127
+ type: "within";
1128
+ location: string;
1129
+ } | undefined;
1130
+ }>, z.ZodObject<{
1131
+ type: z.ZodLiteral<"or">;
1132
+ clauses: z.ZodArray<z.ZodObject<{
1133
+ type: z.ZodOptional<z.ZodLiteral<"and">>;
1134
+ eventType: z.ZodOptional<z.ZodString>;
1135
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1136
+ type: z.ZodLiteral<"anyOf">;
1137
+ terms: z.ZodArray<z.ZodString, "many">;
1138
+ }, "strip", z.ZodTypeAny, {
1139
+ type: "anyOf";
1140
+ terms: string[];
1141
+ }, {
1142
+ type: "anyOf";
1143
+ terms: string[];
1144
+ }>, z.ZodObject<{
1145
+ type: z.ZodLiteral<"exact">;
1146
+ term: z.ZodString;
1147
+ }, "strip", z.ZodTypeAny, {
1148
+ type: "exact";
1149
+ term: string;
1150
+ }, {
1151
+ type: "exact";
1152
+ term: string;
1153
+ }>]>>>;
1154
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1155
+ type: z.ZodLiteral<"exact">;
1156
+ term: z.ZodString;
1157
+ }, "strip", z.ZodTypeAny, {
1158
+ type: "exact";
1159
+ term: string;
1160
+ }, {
1161
+ type: "exact";
1162
+ term: string;
1163
+ }>, z.ZodObject<{
1164
+ type: z.ZodLiteral<"range">;
1165
+ gte: z.ZodString;
1166
+ lte: z.ZodString;
1167
+ }, "strip", z.ZodTypeAny, {
1168
+ type: "range";
1169
+ gte: string;
1170
+ lte: string;
1171
+ }, {
1172
+ type: "range";
1173
+ gte: string;
1174
+ lte: string;
1175
+ }>]>>>;
1176
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1177
+ type: z.ZodLiteral<"exact">;
1178
+ term: z.ZodString;
1179
+ }, "strip", z.ZodTypeAny, {
1180
+ type: "exact";
1181
+ term: string;
1182
+ }, {
1183
+ type: "exact";
1184
+ term: string;
1185
+ }>, z.ZodObject<{
1186
+ type: z.ZodLiteral<"range">;
1187
+ gte: z.ZodString;
1188
+ lte: z.ZodString;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ type: "range";
1191
+ gte: string;
1192
+ lte: string;
1193
+ }, {
1194
+ type: "range";
1195
+ gte: string;
1196
+ lte: string;
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
+ }>]>>>;
1239
+ createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1240
+ type: z.ZodLiteral<"within">;
1241
+ location: z.ZodString;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ type: "within";
1244
+ location: string;
1245
+ }, {
1246
+ type: "within";
1247
+ location: string;
1248
+ }>, z.ZodObject<{
1249
+ type: z.ZodLiteral<"exact">;
1250
+ term: z.ZodString;
1251
+ }, "strip", z.ZodTypeAny, {
1252
+ type: "exact";
1253
+ term: string;
1254
+ }, {
1255
+ type: "exact";
1256
+ term: string;
1257
+ }>]>>>;
1258
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1259
+ type: z.ZodLiteral<"within">;
1260
+ location: z.ZodString;
1261
+ }, "strip", z.ZodTypeAny, {
1262
+ type: "within";
1263
+ location: string;
1264
+ }, {
1265
+ type: "within";
1266
+ location: string;
1267
+ }>, z.ZodObject<{
1268
+ type: z.ZodLiteral<"exact">;
1269
+ term: z.ZodString;
1270
+ }, "strip", z.ZodTypeAny, {
1271
+ type: "exact";
1272
+ term: string;
1273
+ }, {
1274
+ type: "exact";
1275
+ term: string;
1276
+ }>]>>>;
1277
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1278
+ type: z.ZodLiteral<"exact">;
1279
+ term: z.ZodString;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ type: "exact";
1282
+ term: string;
1283
+ }, {
1284
+ type: "exact";
1285
+ term: string;
1286
+ }>>>;
1287
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1288
+ type: z.ZodLiteral<"exact">;
1289
+ term: z.ZodString;
1290
+ }, "strip", z.ZodTypeAny, {
1291
+ type: "exact";
1292
+ term: string;
1293
+ }, {
1294
+ type: "exact";
1295
+ term: string;
1296
+ }>>>;
1297
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1298
+ type: z.ZodLiteral<"exact">;
1299
+ term: z.ZodString;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ type: "exact";
1302
+ term: string;
1303
+ }, {
1304
+ type: "exact";
1305
+ term: string;
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">>>;
1326
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ type?: "and" | undefined;
1329
+ status?: {
1330
+ type: "exact";
1331
+ term: string;
1332
+ } | {
1333
+ type: "anyOf";
1334
+ terms: string[];
1335
+ } | undefined;
1336
+ data?: any;
1337
+ createdAt?: {
1338
+ type: "exact";
1339
+ term: string;
1340
+ } | {
1341
+ type: "range";
1342
+ gte: string;
1343
+ lte: string;
1344
+ } | undefined;
1345
+ createdBy?: {
1346
+ type: "exact";
1347
+ term: string;
1348
+ } | undefined;
1349
+ updatedAt?: {
1350
+ type: "exact";
1351
+ term: string;
1352
+ } | {
1353
+ type: "range";
1354
+ gte: string;
1355
+ lte: string;
1356
+ } | undefined;
1357
+ registeredAt?: {
1358
+ type: "exact";
1359
+ term: string;
1360
+ } | {
1361
+ type: "range";
1362
+ gte: string;
1363
+ lte: string;
1364
+ } | undefined;
1365
+ registeredAtLocation?: {
1366
+ type: "exact";
1367
+ term: string;
1368
+ } | {
1369
+ type: "within";
1370
+ location: string;
1371
+ } | undefined;
1372
+ trackingId?: {
1373
+ type: "exact";
1374
+ term: string;
1375
+ } | undefined;
1376
+ updatedAtLocation?: {
1377
+ type: "exact";
1378
+ term: string;
1379
+ } | {
1380
+ type: "within";
1381
+ location: string;
1382
+ } | undefined;
1383
+ updatedBy?: {
1384
+ type: "exact";
1385
+ term: string;
1386
+ } | undefined;
1387
+ flags?: ({
1388
+ type: "anyOf";
1389
+ terms: string[];
1390
+ } | {
1391
+ type: "not";
1392
+ term: string;
1393
+ })[] | undefined;
1394
+ eventType?: string | undefined;
1395
+ createAtLocation?: {
1396
+ type: "exact";
1397
+ term: string;
1398
+ } | {
1399
+ type: "within";
1400
+ location: string;
1401
+ } | undefined;
1402
+ }, {
1403
+ type?: "and" | undefined;
1404
+ status?: {
1405
+ type: "exact";
1406
+ term: string;
1407
+ } | {
1408
+ type: "anyOf";
1409
+ terms: string[];
1410
+ } | undefined;
1411
+ data?: any;
1412
+ createdAt?: {
1413
+ type: "exact";
1414
+ term: string;
1415
+ } | {
1416
+ type: "range";
1417
+ gte: string;
1418
+ lte: string;
1419
+ } | undefined;
1420
+ createdBy?: {
1421
+ type: "exact";
1422
+ term: string;
1423
+ } | undefined;
1424
+ updatedAt?: {
1425
+ type: "exact";
1426
+ term: string;
1427
+ } | {
1428
+ type: "range";
1429
+ gte: string;
1430
+ lte: string;
1431
+ } | undefined;
1432
+ registeredAt?: {
1433
+ type: "exact";
1434
+ term: string;
1435
+ } | {
1436
+ type: "range";
1437
+ gte: string;
1438
+ lte: string;
1439
+ } | undefined;
1440
+ registeredAtLocation?: {
1441
+ type: "exact";
1442
+ term: string;
1443
+ } | {
1444
+ type: "within";
1445
+ location: string;
1446
+ } | undefined;
1447
+ trackingId?: {
1448
+ type: "exact";
1449
+ term: string;
1450
+ } | undefined;
1451
+ updatedAtLocation?: {
1452
+ type: "exact";
1453
+ term: string;
1454
+ } | {
1455
+ type: "within";
1456
+ location: string;
1457
+ } | undefined;
1458
+ updatedBy?: {
1459
+ type: "exact";
1460
+ term: string;
1461
+ } | undefined;
1462
+ flags?: ({
1463
+ type: "anyOf";
1464
+ terms: string[];
1465
+ } | {
1466
+ type: "not";
1467
+ term: string;
1468
+ })[] | undefined;
1469
+ eventType?: string | undefined;
1470
+ createAtLocation?: {
1471
+ type: "exact";
1472
+ term: string;
1473
+ } | {
1474
+ type: "within";
1475
+ location: string;
1476
+ } | undefined;
1477
+ }>, "many">;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ type: "or";
1480
+ clauses: {
1481
+ type?: "and" | undefined;
1482
+ status?: {
1483
+ type: "exact";
1484
+ term: string;
1485
+ } | {
1486
+ type: "anyOf";
1487
+ terms: string[];
1488
+ } | undefined;
1489
+ data?: any;
1490
+ createdAt?: {
1491
+ type: "exact";
1492
+ term: string;
1493
+ } | {
1494
+ type: "range";
1495
+ gte: string;
1496
+ lte: string;
1497
+ } | undefined;
1498
+ createdBy?: {
1499
+ type: "exact";
1500
+ term: string;
1501
+ } | undefined;
1502
+ updatedAt?: {
1503
+ type: "exact";
1504
+ term: string;
1505
+ } | {
1506
+ type: "range";
1507
+ gte: string;
1508
+ lte: string;
1509
+ } | undefined;
1510
+ registeredAt?: {
1511
+ type: "exact";
1512
+ term: string;
1513
+ } | {
1514
+ type: "range";
1515
+ gte: string;
1516
+ lte: string;
1517
+ } | undefined;
1518
+ registeredAtLocation?: {
1519
+ type: "exact";
1520
+ term: string;
1521
+ } | {
1522
+ type: "within";
1523
+ location: string;
1524
+ } | undefined;
1525
+ trackingId?: {
1526
+ type: "exact";
1527
+ term: string;
1528
+ } | undefined;
1529
+ updatedAtLocation?: {
1530
+ type: "exact";
1531
+ term: string;
1532
+ } | {
1533
+ type: "within";
1534
+ location: string;
1535
+ } | undefined;
1536
+ updatedBy?: {
1537
+ type: "exact";
1538
+ term: string;
1539
+ } | undefined;
1540
+ flags?: ({
1541
+ type: "anyOf";
1542
+ terms: string[];
1543
+ } | {
1544
+ type: "not";
1545
+ term: string;
1546
+ })[] | undefined;
1547
+ eventType?: string | undefined;
1548
+ createAtLocation?: {
1549
+ type: "exact";
1550
+ term: string;
1551
+ } | {
1552
+ type: "within";
1553
+ location: string;
1554
+ } | undefined;
1555
+ }[];
1556
+ }, {
1557
+ type: "or";
1558
+ clauses: {
1559
+ type?: "and" | undefined;
1560
+ status?: {
1561
+ type: "exact";
1562
+ term: string;
1563
+ } | {
1564
+ type: "anyOf";
1565
+ terms: string[];
1566
+ } | undefined;
1567
+ data?: any;
1568
+ createdAt?: {
1569
+ type: "exact";
1570
+ term: string;
1571
+ } | {
1572
+ type: "range";
1573
+ gte: string;
1574
+ lte: string;
1575
+ } | undefined;
1576
+ createdBy?: {
1577
+ type: "exact";
1578
+ term: string;
1579
+ } | undefined;
1580
+ updatedAt?: {
1581
+ type: "exact";
1582
+ term: string;
1583
+ } | {
1584
+ type: "range";
1585
+ gte: string;
1586
+ lte: string;
1587
+ } | undefined;
1588
+ registeredAt?: {
1589
+ type: "exact";
1590
+ term: string;
1591
+ } | {
1592
+ type: "range";
1593
+ gte: string;
1594
+ lte: string;
1595
+ } | undefined;
1596
+ registeredAtLocation?: {
1597
+ type: "exact";
1598
+ term: string;
1599
+ } | {
1600
+ type: "within";
1601
+ location: string;
1602
+ } | undefined;
1603
+ trackingId?: {
1604
+ type: "exact";
1605
+ term: string;
1606
+ } | undefined;
1607
+ updatedAtLocation?: {
1608
+ type: "exact";
1609
+ term: string;
1610
+ } | {
1611
+ type: "within";
1612
+ location: string;
1613
+ } | undefined;
1614
+ updatedBy?: {
1615
+ type: "exact";
1616
+ term: string;
1617
+ } | undefined;
1618
+ flags?: ({
1619
+ type: "anyOf";
1620
+ terms: string[];
1621
+ } | {
1622
+ type: "not";
1623
+ term: string;
1624
+ })[] | undefined;
1625
+ eventType?: string | undefined;
1626
+ createAtLocation?: {
1627
+ type: "exact";
1628
+ term: string;
1629
+ } | {
1630
+ type: "within";
1631
+ location: string;
1632
+ } | undefined;
1633
+ }[];
1634
+ }>]>;
1635
+ export type QueryType = z.infer<typeof QueryType>;
1636
+ export {};
61
1637
  //# sourceMappingURL=EventIndex.d.ts.map