@opencrvs/toolkit 1.8.0-rc.fef85f2 → 1.8.0-rc.ff0a1b5

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 (32) hide show
  1. package/dist/commons/api/router.d.ts +7684 -4215
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/events/ActionConfig.d.ts +90025 -1680
  4. package/dist/commons/events/ActionDocument.d.ts +542 -211
  5. package/dist/commons/events/ActionInput.d.ts +248 -240
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +369 -25
  7. package/dist/commons/events/Draft.d.ts +33 -20
  8. package/dist/commons/events/EventConfig.d.ts +42730 -1400
  9. package/dist/commons/events/EventDocument.d.ts +337 -159
  10. package/dist/commons/events/EventIndex.d.ts +1462 -16
  11. package/dist/commons/events/EventInput.d.ts +13 -0
  12. package/dist/commons/events/EventMetadata.d.ts +273 -14
  13. package/dist/commons/events/FieldConfig.d.ts +3682 -714
  14. package/dist/commons/events/FieldType.d.ts +3 -3
  15. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  16. package/dist/commons/events/FieldValue.d.ts +7 -4
  17. package/dist/commons/events/FormConfig.d.ts +40417 -439
  18. package/dist/commons/events/PageConfig.d.ts +10077 -203
  19. package/dist/commons/events/SummaryConfig.d.ts +17 -47
  20. package/dist/commons/events/WorkqueueConfig.d.ts +1257 -19
  21. package/dist/commons/events/defineConfig.d.ts +6952 -32
  22. package/dist/commons/events/event.d.ts +27 -0
  23. package/dist/commons/events/field.d.ts +68 -0
  24. package/dist/commons/events/index.d.ts +2 -0
  25. package/dist/commons/events/scopes.d.ts +1 -0
  26. package/dist/commons/events/test.utils.d.ts +7 -44
  27. package/dist/commons/events/utils.d.ts +3550 -67
  28. package/dist/conditionals/index.js +36 -33
  29. package/dist/events/index.js +1446 -949
  30. package/dist/scopes/index.d.ts +70 -1
  31. package/dist/scopes/index.js +130 -0
  32. 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,45 +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
- updatedAtLocation: z.ZodString;
19
- modifiedAt: z.ZodString;
96
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ updatedAt: z.ZodString;
20
98
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- updatedBy: z.ZodString;
99
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
100
  trackingId: z.ZodString;
23
- 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">;
24
104
  }, {
25
- 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
+ }>]>>;
26
219
  }>, "strip", z.ZodTypeAny, {
27
220
  type: string;
28
221
  id: string;
29
222
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
30
223
  createdAt: string;
31
224
  createdBy: string;
32
- 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>;
33
263
  createdAtLocation: string;
34
- updatedAtLocation: string;
264
+ updatedAt: string;
35
265
  trackingId: string;
36
- modifiedAt: string;
37
- 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[];
38
285
  assignedTo?: string | null | undefined;
39
- registrationNumber?: string | null | undefined;
286
+ dateOfEvent?: string | null | undefined;
287
+ updatedAtLocation?: string | null | undefined;
288
+ updatedBy?: string | null | undefined;
40
289
  }, {
41
290
  type: string;
42
291
  id: string;
43
292
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
44
293
  createdAt: string;
45
294
  createdBy: string;
46
- 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>;
47
333
  createdAtLocation: string;
48
- updatedAtLocation: string;
334
+ updatedAt: string;
49
335
  trackingId: string;
50
- modifiedAt: string;
51
- 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[];
52
355
  assignedTo?: string | null | undefined;
53
- registrationNumber?: string | null | undefined;
356
+ dateOfEvent?: string | null | undefined;
357
+ updatedAtLocation?: string | null | undefined;
358
+ updatedBy?: string | null | undefined;
54
359
  }>;
55
360
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
56
361
  type: z.ZodString;
@@ -61,4 +366,1145 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
61
366
  }>>;
62
367
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
63
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
+ eventType: z.ZodOptional<z.ZodString>;
440
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
441
+ type: z.ZodLiteral<"anyOf">;
442
+ terms: z.ZodArray<z.ZodString, "many">;
443
+ }, "strip", z.ZodTypeAny, {
444
+ type: "anyOf";
445
+ terms: string[];
446
+ }, {
447
+ type: "anyOf";
448
+ terms: string[];
449
+ }>, z.ZodObject<{
450
+ type: z.ZodLiteral<"exact">;
451
+ term: z.ZodString;
452
+ }, "strip", z.ZodTypeAny, {
453
+ type: "exact";
454
+ term: string;
455
+ }, {
456
+ type: "exact";
457
+ term: string;
458
+ }>]>>>;
459
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
460
+ type: z.ZodLiteral<"exact">;
461
+ term: z.ZodString;
462
+ }, "strip", z.ZodTypeAny, {
463
+ type: "exact";
464
+ term: string;
465
+ }, {
466
+ type: "exact";
467
+ term: string;
468
+ }>, z.ZodObject<{
469
+ type: z.ZodLiteral<"range">;
470
+ gte: z.ZodString;
471
+ lte: z.ZodString;
472
+ }, "strip", z.ZodTypeAny, {
473
+ type: "range";
474
+ gte: string;
475
+ lte: string;
476
+ }, {
477
+ type: "range";
478
+ gte: string;
479
+ lte: string;
480
+ }>]>>>;
481
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
482
+ type: z.ZodLiteral<"exact">;
483
+ term: z.ZodString;
484
+ }, "strip", z.ZodTypeAny, {
485
+ type: "exact";
486
+ term: string;
487
+ }, {
488
+ type: "exact";
489
+ term: string;
490
+ }>, z.ZodObject<{
491
+ type: z.ZodLiteral<"range">;
492
+ gte: z.ZodString;
493
+ lte: z.ZodString;
494
+ }, "strip", z.ZodTypeAny, {
495
+ type: "range";
496
+ gte: string;
497
+ lte: string;
498
+ }, {
499
+ type: "range";
500
+ gte: string;
501
+ lte: string;
502
+ }>]>>>;
503
+ createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
504
+ type: z.ZodLiteral<"within">;
505
+ location: z.ZodString;
506
+ }, "strip", z.ZodTypeAny, {
507
+ type: "within";
508
+ location: string;
509
+ }, {
510
+ type: "within";
511
+ location: string;
512
+ }>, z.ZodObject<{
513
+ type: z.ZodLiteral<"exact">;
514
+ term: z.ZodString;
515
+ }, "strip", z.ZodTypeAny, {
516
+ type: "exact";
517
+ term: string;
518
+ }, {
519
+ type: "exact";
520
+ term: string;
521
+ }>]>>>;
522
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
523
+ type: z.ZodLiteral<"within">;
524
+ location: z.ZodString;
525
+ }, "strip", z.ZodTypeAny, {
526
+ type: "within";
527
+ location: string;
528
+ }, {
529
+ type: "within";
530
+ location: string;
531
+ }>, z.ZodObject<{
532
+ type: z.ZodLiteral<"exact">;
533
+ term: z.ZodString;
534
+ }, "strip", z.ZodTypeAny, {
535
+ type: "exact";
536
+ term: string;
537
+ }, {
538
+ type: "exact";
539
+ term: string;
540
+ }>]>>>;
541
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
542
+ type: z.ZodLiteral<"exact">;
543
+ term: z.ZodString;
544
+ }, "strip", z.ZodTypeAny, {
545
+ type: "exact";
546
+ term: string;
547
+ }, {
548
+ type: "exact";
549
+ term: string;
550
+ }>>>;
551
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
552
+ type: z.ZodLiteral<"exact">;
553
+ term: z.ZodString;
554
+ }, "strip", z.ZodTypeAny, {
555
+ type: "exact";
556
+ term: string;
557
+ }, {
558
+ type: "exact";
559
+ term: string;
560
+ }>>>;
561
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
562
+ type: z.ZodLiteral<"exact">;
563
+ term: z.ZodString;
564
+ }, "strip", z.ZodTypeAny, {
565
+ type: "exact";
566
+ term: string;
567
+ }, {
568
+ type: "exact";
569
+ term: string;
570
+ }>>>;
571
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
572
+ type: z.ZodLiteral<"anyOf">;
573
+ terms: z.ZodArray<z.ZodString, "many">;
574
+ }, "strip", z.ZodTypeAny, {
575
+ type: "anyOf";
576
+ terms: string[];
577
+ }, {
578
+ type: "anyOf";
579
+ terms: string[];
580
+ }>, z.ZodObject<{
581
+ type: z.ZodLiteral<"not">;
582
+ term: z.ZodString;
583
+ }, "strip", z.ZodTypeAny, {
584
+ type: "not";
585
+ term: string;
586
+ }, {
587
+ type: "not";
588
+ term: string;
589
+ }>]>, "many">>>;
590
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
591
+ }, "strip", z.ZodTypeAny, {
592
+ status?: {
593
+ type: "exact";
594
+ term: string;
595
+ } | {
596
+ type: "anyOf";
597
+ terms: string[];
598
+ } | undefined;
599
+ data?: any;
600
+ createdAt?: {
601
+ type: "exact";
602
+ term: string;
603
+ } | {
604
+ type: "range";
605
+ gte: string;
606
+ lte: string;
607
+ } | undefined;
608
+ createdBy?: {
609
+ type: "exact";
610
+ term: string;
611
+ } | undefined;
612
+ updatedAt?: {
613
+ type: "exact";
614
+ term: string;
615
+ } | {
616
+ type: "range";
617
+ gte: string;
618
+ lte: string;
619
+ } | undefined;
620
+ trackingId?: {
621
+ type: "exact";
622
+ term: string;
623
+ } | undefined;
624
+ updatedAtLocation?: {
625
+ type: "exact";
626
+ term: string;
627
+ } | {
628
+ type: "within";
629
+ location: string;
630
+ } | undefined;
631
+ updatedBy?: {
632
+ type: "exact";
633
+ term: string;
634
+ } | undefined;
635
+ flags?: ({
636
+ type: "anyOf";
637
+ terms: string[];
638
+ } | {
639
+ type: "not";
640
+ term: string;
641
+ })[] | undefined;
642
+ eventType?: string | undefined;
643
+ createAtLocation?: {
644
+ type: "exact";
645
+ term: string;
646
+ } | {
647
+ type: "within";
648
+ location: string;
649
+ } | undefined;
650
+ }, {
651
+ status?: {
652
+ type: "exact";
653
+ term: string;
654
+ } | {
655
+ type: "anyOf";
656
+ terms: string[];
657
+ } | undefined;
658
+ data?: any;
659
+ createdAt?: {
660
+ type: "exact";
661
+ term: string;
662
+ } | {
663
+ type: "range";
664
+ gte: string;
665
+ lte: string;
666
+ } | undefined;
667
+ createdBy?: {
668
+ type: "exact";
669
+ term: string;
670
+ } | undefined;
671
+ updatedAt?: {
672
+ type: "exact";
673
+ term: string;
674
+ } | {
675
+ type: "range";
676
+ gte: string;
677
+ lte: string;
678
+ } | undefined;
679
+ trackingId?: {
680
+ type: "exact";
681
+ term: string;
682
+ } | undefined;
683
+ updatedAtLocation?: {
684
+ type: "exact";
685
+ term: string;
686
+ } | {
687
+ type: "within";
688
+ location: string;
689
+ } | undefined;
690
+ updatedBy?: {
691
+ type: "exact";
692
+ term: string;
693
+ } | undefined;
694
+ flags?: ({
695
+ type: "anyOf";
696
+ terms: string[];
697
+ } | {
698
+ type: "not";
699
+ term: string;
700
+ })[] | undefined;
701
+ eventType?: string | undefined;
702
+ createAtLocation?: {
703
+ type: "exact";
704
+ term: string;
705
+ } | {
706
+ type: "within";
707
+ location: string;
708
+ } | undefined;
709
+ }>;
710
+ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
711
+ type: z.ZodLiteral<"or">;
712
+ clauses: z.ZodArray<z.ZodObject<{
713
+ eventType: z.ZodOptional<z.ZodString>;
714
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
715
+ type: z.ZodLiteral<"anyOf">;
716
+ terms: z.ZodArray<z.ZodString, "many">;
717
+ }, "strip", z.ZodTypeAny, {
718
+ type: "anyOf";
719
+ terms: string[];
720
+ }, {
721
+ type: "anyOf";
722
+ terms: string[];
723
+ }>, z.ZodObject<{
724
+ type: z.ZodLiteral<"exact">;
725
+ term: z.ZodString;
726
+ }, "strip", z.ZodTypeAny, {
727
+ type: "exact";
728
+ term: string;
729
+ }, {
730
+ type: "exact";
731
+ term: string;
732
+ }>]>>>;
733
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
734
+ type: z.ZodLiteral<"exact">;
735
+ term: z.ZodString;
736
+ }, "strip", z.ZodTypeAny, {
737
+ type: "exact";
738
+ term: string;
739
+ }, {
740
+ type: "exact";
741
+ term: string;
742
+ }>, z.ZodObject<{
743
+ type: z.ZodLiteral<"range">;
744
+ gte: z.ZodString;
745
+ lte: z.ZodString;
746
+ }, "strip", z.ZodTypeAny, {
747
+ type: "range";
748
+ gte: string;
749
+ lte: string;
750
+ }, {
751
+ type: "range";
752
+ gte: string;
753
+ lte: string;
754
+ }>]>>>;
755
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
756
+ type: z.ZodLiteral<"exact">;
757
+ term: z.ZodString;
758
+ }, "strip", z.ZodTypeAny, {
759
+ type: "exact";
760
+ term: string;
761
+ }, {
762
+ type: "exact";
763
+ term: string;
764
+ }>, z.ZodObject<{
765
+ type: z.ZodLiteral<"range">;
766
+ gte: z.ZodString;
767
+ lte: z.ZodString;
768
+ }, "strip", z.ZodTypeAny, {
769
+ type: "range";
770
+ gte: string;
771
+ lte: string;
772
+ }, {
773
+ type: "range";
774
+ gte: string;
775
+ lte: string;
776
+ }>]>>>;
777
+ createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
778
+ type: z.ZodLiteral<"within">;
779
+ location: z.ZodString;
780
+ }, "strip", z.ZodTypeAny, {
781
+ type: "within";
782
+ location: string;
783
+ }, {
784
+ type: "within";
785
+ location: string;
786
+ }>, z.ZodObject<{
787
+ type: z.ZodLiteral<"exact">;
788
+ term: z.ZodString;
789
+ }, "strip", z.ZodTypeAny, {
790
+ type: "exact";
791
+ term: string;
792
+ }, {
793
+ type: "exact";
794
+ term: string;
795
+ }>]>>>;
796
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
797
+ type: z.ZodLiteral<"within">;
798
+ location: z.ZodString;
799
+ }, "strip", z.ZodTypeAny, {
800
+ type: "within";
801
+ location: string;
802
+ }, {
803
+ type: "within";
804
+ location: string;
805
+ }>, z.ZodObject<{
806
+ type: z.ZodLiteral<"exact">;
807
+ term: z.ZodString;
808
+ }, "strip", z.ZodTypeAny, {
809
+ type: "exact";
810
+ term: string;
811
+ }, {
812
+ type: "exact";
813
+ term: string;
814
+ }>]>>>;
815
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
816
+ type: z.ZodLiteral<"exact">;
817
+ term: z.ZodString;
818
+ }, "strip", z.ZodTypeAny, {
819
+ type: "exact";
820
+ term: string;
821
+ }, {
822
+ type: "exact";
823
+ term: string;
824
+ }>>>;
825
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
826
+ type: z.ZodLiteral<"exact">;
827
+ term: z.ZodString;
828
+ }, "strip", z.ZodTypeAny, {
829
+ type: "exact";
830
+ term: string;
831
+ }, {
832
+ type: "exact";
833
+ term: string;
834
+ }>>>;
835
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
836
+ type: z.ZodLiteral<"exact">;
837
+ term: z.ZodString;
838
+ }, "strip", z.ZodTypeAny, {
839
+ type: "exact";
840
+ term: string;
841
+ }, {
842
+ type: "exact";
843
+ term: string;
844
+ }>>>;
845
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
846
+ type: z.ZodLiteral<"anyOf">;
847
+ terms: z.ZodArray<z.ZodString, "many">;
848
+ }, "strip", z.ZodTypeAny, {
849
+ type: "anyOf";
850
+ terms: string[];
851
+ }, {
852
+ type: "anyOf";
853
+ terms: string[];
854
+ }>, z.ZodObject<{
855
+ type: z.ZodLiteral<"not">;
856
+ term: z.ZodString;
857
+ }, "strip", z.ZodTypeAny, {
858
+ type: "not";
859
+ term: string;
860
+ }, {
861
+ type: "not";
862
+ term: string;
863
+ }>]>, "many">>>;
864
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
865
+ }, "strip", z.ZodTypeAny, {
866
+ status?: {
867
+ type: "exact";
868
+ term: string;
869
+ } | {
870
+ type: "anyOf";
871
+ terms: string[];
872
+ } | undefined;
873
+ data?: any;
874
+ createdAt?: {
875
+ type: "exact";
876
+ term: string;
877
+ } | {
878
+ type: "range";
879
+ gte: string;
880
+ lte: string;
881
+ } | undefined;
882
+ createdBy?: {
883
+ type: "exact";
884
+ term: string;
885
+ } | undefined;
886
+ updatedAt?: {
887
+ type: "exact";
888
+ term: string;
889
+ } | {
890
+ type: "range";
891
+ gte: string;
892
+ lte: string;
893
+ } | undefined;
894
+ trackingId?: {
895
+ type: "exact";
896
+ term: string;
897
+ } | undefined;
898
+ updatedAtLocation?: {
899
+ type: "exact";
900
+ term: string;
901
+ } | {
902
+ type: "within";
903
+ location: string;
904
+ } | undefined;
905
+ updatedBy?: {
906
+ type: "exact";
907
+ term: string;
908
+ } | undefined;
909
+ flags?: ({
910
+ type: "anyOf";
911
+ terms: string[];
912
+ } | {
913
+ type: "not";
914
+ term: string;
915
+ })[] | undefined;
916
+ eventType?: string | undefined;
917
+ createAtLocation?: {
918
+ type: "exact";
919
+ term: string;
920
+ } | {
921
+ type: "within";
922
+ location: string;
923
+ } | undefined;
924
+ }, {
925
+ status?: {
926
+ type: "exact";
927
+ term: string;
928
+ } | {
929
+ type: "anyOf";
930
+ terms: string[];
931
+ } | undefined;
932
+ data?: any;
933
+ createdAt?: {
934
+ type: "exact";
935
+ term: string;
936
+ } | {
937
+ type: "range";
938
+ gte: string;
939
+ lte: string;
940
+ } | undefined;
941
+ createdBy?: {
942
+ type: "exact";
943
+ term: string;
944
+ } | undefined;
945
+ updatedAt?: {
946
+ type: "exact";
947
+ term: string;
948
+ } | {
949
+ type: "range";
950
+ gte: string;
951
+ lte: string;
952
+ } | undefined;
953
+ trackingId?: {
954
+ type: "exact";
955
+ term: string;
956
+ } | undefined;
957
+ updatedAtLocation?: {
958
+ type: "exact";
959
+ term: string;
960
+ } | {
961
+ type: "within";
962
+ location: string;
963
+ } | undefined;
964
+ updatedBy?: {
965
+ type: "exact";
966
+ term: string;
967
+ } | undefined;
968
+ flags?: ({
969
+ type: "anyOf";
970
+ terms: string[];
971
+ } | {
972
+ type: "not";
973
+ term: string;
974
+ })[] | undefined;
975
+ eventType?: string | undefined;
976
+ createAtLocation?: {
977
+ type: "exact";
978
+ term: string;
979
+ } | {
980
+ type: "within";
981
+ location: string;
982
+ } | undefined;
983
+ }>, "many">;
984
+ }, "strip", z.ZodTypeAny, {
985
+ type: "or";
986
+ clauses: {
987
+ status?: {
988
+ type: "exact";
989
+ term: string;
990
+ } | {
991
+ type: "anyOf";
992
+ terms: string[];
993
+ } | undefined;
994
+ data?: any;
995
+ createdAt?: {
996
+ type: "exact";
997
+ term: string;
998
+ } | {
999
+ type: "range";
1000
+ gte: string;
1001
+ lte: string;
1002
+ } | undefined;
1003
+ createdBy?: {
1004
+ type: "exact";
1005
+ term: string;
1006
+ } | undefined;
1007
+ updatedAt?: {
1008
+ type: "exact";
1009
+ term: string;
1010
+ } | {
1011
+ type: "range";
1012
+ gte: string;
1013
+ lte: string;
1014
+ } | undefined;
1015
+ trackingId?: {
1016
+ type: "exact";
1017
+ term: string;
1018
+ } | undefined;
1019
+ updatedAtLocation?: {
1020
+ type: "exact";
1021
+ term: string;
1022
+ } | {
1023
+ type: "within";
1024
+ location: string;
1025
+ } | undefined;
1026
+ updatedBy?: {
1027
+ type: "exact";
1028
+ term: string;
1029
+ } | undefined;
1030
+ flags?: ({
1031
+ type: "anyOf";
1032
+ terms: string[];
1033
+ } | {
1034
+ type: "not";
1035
+ term: string;
1036
+ })[] | undefined;
1037
+ eventType?: string | undefined;
1038
+ createAtLocation?: {
1039
+ type: "exact";
1040
+ term: string;
1041
+ } | {
1042
+ type: "within";
1043
+ location: string;
1044
+ } | undefined;
1045
+ }[];
1046
+ }, {
1047
+ type: "or";
1048
+ clauses: {
1049
+ status?: {
1050
+ type: "exact";
1051
+ term: string;
1052
+ } | {
1053
+ type: "anyOf";
1054
+ terms: string[];
1055
+ } | undefined;
1056
+ data?: any;
1057
+ createdAt?: {
1058
+ type: "exact";
1059
+ term: string;
1060
+ } | {
1061
+ type: "range";
1062
+ gte: string;
1063
+ lte: string;
1064
+ } | undefined;
1065
+ createdBy?: {
1066
+ type: "exact";
1067
+ term: string;
1068
+ } | undefined;
1069
+ updatedAt?: {
1070
+ type: "exact";
1071
+ term: string;
1072
+ } | {
1073
+ type: "range";
1074
+ gte: string;
1075
+ lte: string;
1076
+ } | undefined;
1077
+ trackingId?: {
1078
+ type: "exact";
1079
+ term: string;
1080
+ } | undefined;
1081
+ updatedAtLocation?: {
1082
+ type: "exact";
1083
+ term: string;
1084
+ } | {
1085
+ type: "within";
1086
+ location: string;
1087
+ } | undefined;
1088
+ updatedBy?: {
1089
+ type: "exact";
1090
+ term: string;
1091
+ } | undefined;
1092
+ flags?: ({
1093
+ type: "anyOf";
1094
+ terms: string[];
1095
+ } | {
1096
+ type: "not";
1097
+ term: string;
1098
+ })[] | undefined;
1099
+ eventType?: string | undefined;
1100
+ createAtLocation?: {
1101
+ type: "exact";
1102
+ term: string;
1103
+ } | {
1104
+ type: "within";
1105
+ location: string;
1106
+ } | undefined;
1107
+ }[];
1108
+ }>, z.ZodObject<{
1109
+ type: z.ZodLiteral<"and">;
1110
+ clauses: z.ZodArray<z.ZodObject<{
1111
+ eventType: z.ZodOptional<z.ZodString>;
1112
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1113
+ type: z.ZodLiteral<"anyOf">;
1114
+ terms: z.ZodArray<z.ZodString, "many">;
1115
+ }, "strip", z.ZodTypeAny, {
1116
+ type: "anyOf";
1117
+ terms: string[];
1118
+ }, {
1119
+ type: "anyOf";
1120
+ terms: string[];
1121
+ }>, z.ZodObject<{
1122
+ type: z.ZodLiteral<"exact">;
1123
+ term: z.ZodString;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ type: "exact";
1126
+ term: string;
1127
+ }, {
1128
+ type: "exact";
1129
+ term: string;
1130
+ }>]>>>;
1131
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1132
+ type: z.ZodLiteral<"exact">;
1133
+ term: z.ZodString;
1134
+ }, "strip", z.ZodTypeAny, {
1135
+ type: "exact";
1136
+ term: string;
1137
+ }, {
1138
+ type: "exact";
1139
+ term: string;
1140
+ }>, z.ZodObject<{
1141
+ type: z.ZodLiteral<"range">;
1142
+ gte: z.ZodString;
1143
+ lte: z.ZodString;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ type: "range";
1146
+ gte: string;
1147
+ lte: string;
1148
+ }, {
1149
+ type: "range";
1150
+ gte: string;
1151
+ lte: string;
1152
+ }>]>>>;
1153
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1154
+ type: z.ZodLiteral<"exact">;
1155
+ term: z.ZodString;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ type: "exact";
1158
+ term: string;
1159
+ }, {
1160
+ type: "exact";
1161
+ term: string;
1162
+ }>, z.ZodObject<{
1163
+ type: z.ZodLiteral<"range">;
1164
+ gte: z.ZodString;
1165
+ lte: z.ZodString;
1166
+ }, "strip", z.ZodTypeAny, {
1167
+ type: "range";
1168
+ gte: string;
1169
+ lte: string;
1170
+ }, {
1171
+ type: "range";
1172
+ gte: string;
1173
+ lte: string;
1174
+ }>]>>>;
1175
+ createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1176
+ type: z.ZodLiteral<"within">;
1177
+ location: z.ZodString;
1178
+ }, "strip", z.ZodTypeAny, {
1179
+ type: "within";
1180
+ location: string;
1181
+ }, {
1182
+ type: "within";
1183
+ location: string;
1184
+ }>, z.ZodObject<{
1185
+ type: z.ZodLiteral<"exact">;
1186
+ term: z.ZodString;
1187
+ }, "strip", z.ZodTypeAny, {
1188
+ type: "exact";
1189
+ term: string;
1190
+ }, {
1191
+ type: "exact";
1192
+ term: string;
1193
+ }>]>>>;
1194
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1195
+ type: z.ZodLiteral<"within">;
1196
+ location: z.ZodString;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ type: "within";
1199
+ location: string;
1200
+ }, {
1201
+ type: "within";
1202
+ location: string;
1203
+ }>, z.ZodObject<{
1204
+ type: z.ZodLiteral<"exact">;
1205
+ term: z.ZodString;
1206
+ }, "strip", z.ZodTypeAny, {
1207
+ type: "exact";
1208
+ term: string;
1209
+ }, {
1210
+ type: "exact";
1211
+ term: string;
1212
+ }>]>>>;
1213
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1214
+ type: z.ZodLiteral<"exact">;
1215
+ term: z.ZodString;
1216
+ }, "strip", z.ZodTypeAny, {
1217
+ type: "exact";
1218
+ term: string;
1219
+ }, {
1220
+ type: "exact";
1221
+ term: string;
1222
+ }>>>;
1223
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1224
+ type: z.ZodLiteral<"exact">;
1225
+ term: z.ZodString;
1226
+ }, "strip", z.ZodTypeAny, {
1227
+ type: "exact";
1228
+ term: string;
1229
+ }, {
1230
+ type: "exact";
1231
+ term: string;
1232
+ }>>>;
1233
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1234
+ type: z.ZodLiteral<"exact">;
1235
+ term: z.ZodString;
1236
+ }, "strip", z.ZodTypeAny, {
1237
+ type: "exact";
1238
+ term: string;
1239
+ }, {
1240
+ type: "exact";
1241
+ term: string;
1242
+ }>>>;
1243
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1244
+ type: z.ZodLiteral<"anyOf">;
1245
+ terms: z.ZodArray<z.ZodString, "many">;
1246
+ }, "strip", z.ZodTypeAny, {
1247
+ type: "anyOf";
1248
+ terms: string[];
1249
+ }, {
1250
+ type: "anyOf";
1251
+ terms: string[];
1252
+ }>, z.ZodObject<{
1253
+ type: z.ZodLiteral<"not">;
1254
+ term: z.ZodString;
1255
+ }, "strip", z.ZodTypeAny, {
1256
+ type: "not";
1257
+ term: string;
1258
+ }, {
1259
+ type: "not";
1260
+ term: string;
1261
+ }>]>, "many">>>;
1262
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1263
+ }, "strip", z.ZodTypeAny, {
1264
+ status?: {
1265
+ type: "exact";
1266
+ term: string;
1267
+ } | {
1268
+ type: "anyOf";
1269
+ terms: string[];
1270
+ } | undefined;
1271
+ data?: any;
1272
+ createdAt?: {
1273
+ type: "exact";
1274
+ term: string;
1275
+ } | {
1276
+ type: "range";
1277
+ gte: string;
1278
+ lte: string;
1279
+ } | undefined;
1280
+ createdBy?: {
1281
+ type: "exact";
1282
+ term: string;
1283
+ } | undefined;
1284
+ updatedAt?: {
1285
+ type: "exact";
1286
+ term: string;
1287
+ } | {
1288
+ type: "range";
1289
+ gte: string;
1290
+ lte: string;
1291
+ } | undefined;
1292
+ trackingId?: {
1293
+ type: "exact";
1294
+ term: string;
1295
+ } | undefined;
1296
+ updatedAtLocation?: {
1297
+ type: "exact";
1298
+ term: string;
1299
+ } | {
1300
+ type: "within";
1301
+ location: string;
1302
+ } | undefined;
1303
+ updatedBy?: {
1304
+ type: "exact";
1305
+ term: string;
1306
+ } | undefined;
1307
+ flags?: ({
1308
+ type: "anyOf";
1309
+ terms: string[];
1310
+ } | {
1311
+ type: "not";
1312
+ term: string;
1313
+ })[] | undefined;
1314
+ eventType?: string | undefined;
1315
+ createAtLocation?: {
1316
+ type: "exact";
1317
+ term: string;
1318
+ } | {
1319
+ type: "within";
1320
+ location: string;
1321
+ } | undefined;
1322
+ }, {
1323
+ status?: {
1324
+ type: "exact";
1325
+ term: string;
1326
+ } | {
1327
+ type: "anyOf";
1328
+ terms: string[];
1329
+ } | undefined;
1330
+ data?: any;
1331
+ createdAt?: {
1332
+ type: "exact";
1333
+ term: string;
1334
+ } | {
1335
+ type: "range";
1336
+ gte: string;
1337
+ lte: string;
1338
+ } | undefined;
1339
+ createdBy?: {
1340
+ type: "exact";
1341
+ term: string;
1342
+ } | undefined;
1343
+ updatedAt?: {
1344
+ type: "exact";
1345
+ term: string;
1346
+ } | {
1347
+ type: "range";
1348
+ gte: string;
1349
+ lte: string;
1350
+ } | undefined;
1351
+ trackingId?: {
1352
+ type: "exact";
1353
+ term: string;
1354
+ } | undefined;
1355
+ updatedAtLocation?: {
1356
+ type: "exact";
1357
+ term: string;
1358
+ } | {
1359
+ type: "within";
1360
+ location: string;
1361
+ } | undefined;
1362
+ updatedBy?: {
1363
+ type: "exact";
1364
+ term: string;
1365
+ } | undefined;
1366
+ flags?: ({
1367
+ type: "anyOf";
1368
+ terms: string[];
1369
+ } | {
1370
+ type: "not";
1371
+ term: string;
1372
+ })[] | undefined;
1373
+ eventType?: string | undefined;
1374
+ createAtLocation?: {
1375
+ type: "exact";
1376
+ term: string;
1377
+ } | {
1378
+ type: "within";
1379
+ location: string;
1380
+ } | undefined;
1381
+ }>, "many">;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ type: "and";
1384
+ clauses: {
1385
+ status?: {
1386
+ type: "exact";
1387
+ term: string;
1388
+ } | {
1389
+ type: "anyOf";
1390
+ terms: string[];
1391
+ } | undefined;
1392
+ data?: any;
1393
+ createdAt?: {
1394
+ type: "exact";
1395
+ term: string;
1396
+ } | {
1397
+ type: "range";
1398
+ gte: string;
1399
+ lte: string;
1400
+ } | undefined;
1401
+ createdBy?: {
1402
+ type: "exact";
1403
+ term: string;
1404
+ } | undefined;
1405
+ updatedAt?: {
1406
+ type: "exact";
1407
+ term: string;
1408
+ } | {
1409
+ type: "range";
1410
+ gte: string;
1411
+ lte: string;
1412
+ } | undefined;
1413
+ trackingId?: {
1414
+ type: "exact";
1415
+ term: string;
1416
+ } | undefined;
1417
+ updatedAtLocation?: {
1418
+ type: "exact";
1419
+ term: string;
1420
+ } | {
1421
+ type: "within";
1422
+ location: string;
1423
+ } | undefined;
1424
+ updatedBy?: {
1425
+ type: "exact";
1426
+ term: string;
1427
+ } | undefined;
1428
+ flags?: ({
1429
+ type: "anyOf";
1430
+ terms: string[];
1431
+ } | {
1432
+ type: "not";
1433
+ term: string;
1434
+ })[] | undefined;
1435
+ eventType?: string | undefined;
1436
+ createAtLocation?: {
1437
+ type: "exact";
1438
+ term: string;
1439
+ } | {
1440
+ type: "within";
1441
+ location: string;
1442
+ } | undefined;
1443
+ }[];
1444
+ }, {
1445
+ type: "and";
1446
+ clauses: {
1447
+ status?: {
1448
+ type: "exact";
1449
+ term: string;
1450
+ } | {
1451
+ type: "anyOf";
1452
+ terms: string[];
1453
+ } | undefined;
1454
+ data?: any;
1455
+ createdAt?: {
1456
+ type: "exact";
1457
+ term: string;
1458
+ } | {
1459
+ type: "range";
1460
+ gte: string;
1461
+ lte: string;
1462
+ } | undefined;
1463
+ createdBy?: {
1464
+ type: "exact";
1465
+ term: string;
1466
+ } | undefined;
1467
+ updatedAt?: {
1468
+ type: "exact";
1469
+ term: string;
1470
+ } | {
1471
+ type: "range";
1472
+ gte: string;
1473
+ lte: string;
1474
+ } | undefined;
1475
+ trackingId?: {
1476
+ type: "exact";
1477
+ term: string;
1478
+ } | undefined;
1479
+ updatedAtLocation?: {
1480
+ type: "exact";
1481
+ term: string;
1482
+ } | {
1483
+ type: "within";
1484
+ location: string;
1485
+ } | undefined;
1486
+ updatedBy?: {
1487
+ type: "exact";
1488
+ term: string;
1489
+ } | undefined;
1490
+ flags?: ({
1491
+ type: "anyOf";
1492
+ terms: string[];
1493
+ } | {
1494
+ type: "not";
1495
+ term: string;
1496
+ })[] | undefined;
1497
+ eventType?: string | undefined;
1498
+ createAtLocation?: {
1499
+ type: "exact";
1500
+ term: string;
1501
+ } | {
1502
+ type: "within";
1503
+ location: string;
1504
+ } | undefined;
1505
+ }[];
1506
+ }>]>;
1507
+ export type QueryType = z.infer<typeof QueryType>;
1508
+ export type QueryExpression = z.infer<typeof QueryExpression>;
1509
+ export {};
64
1510
  //# sourceMappingURL=EventIndex.d.ts.map