@opencrvs/toolkit 1.8.0-rc.f8f3eb3 → 1.8.0-rc.f97f8f2

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 (47) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +11637 -10482
  3. package/dist/commons/conditionals/conditionals.d.ts +33 -6
  4. package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
  5. package/dist/commons/conditionals/validate.d.ts +39 -17
  6. package/dist/commons/conditionals/validate.test.d.ts +2 -0
  7. package/dist/commons/events/ActionConfig.d.ts +89415 -2021
  8. package/dist/commons/events/ActionDocument.d.ts +9820 -313
  9. package/dist/commons/events/ActionInput.d.ts +5365 -584
  10. package/dist/commons/events/ActionType.d.ts +27 -12
  11. package/dist/commons/events/AdvancedSearchConfig.d.ts +369 -25
  12. package/dist/commons/events/CompositeFieldValue.d.ts +155 -2
  13. package/dist/commons/events/Conditional.d.ts +21 -5
  14. package/dist/commons/events/CountryConfigQueryInput.d.ts +1506 -0
  15. package/dist/commons/events/Draft.d.ts +367 -54
  16. package/dist/commons/events/EventConfig.d.ts +42573 -1784
  17. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  18. package/dist/commons/events/EventDocument.d.ts +3526 -429
  19. package/dist/commons/events/EventIndex.d.ts +1548 -10
  20. package/dist/commons/events/EventInput.d.ts +13 -0
  21. package/dist/commons/events/EventMetadata.d.ts +277 -8
  22. package/dist/commons/events/FieldConfig.d.ts +4262 -800
  23. package/dist/commons/events/FieldType.d.ts +7 -2
  24. package/dist/commons/events/FieldTypeMapping.d.ts +164 -6
  25. package/dist/commons/events/FieldValue.d.ts +82 -5
  26. package/dist/commons/events/FormConfig.d.ts +40636 -73
  27. package/dist/commons/events/PageConfig.d.ts +10209 -0
  28. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  29. package/dist/commons/events/TemplateConfig.d.ts +38 -0
  30. package/dist/commons/events/User.d.ts +31 -2
  31. package/dist/commons/events/WorkqueueColumnConfig.d.ts +42 -0
  32. package/dist/commons/events/WorkqueueConfig.d.ts +2834 -19
  33. package/dist/commons/events/defineConfig.d.ts +7030 -230
  34. package/dist/commons/events/event.d.ts +27 -0
  35. package/dist/commons/events/field.d.ts +68 -0
  36. package/dist/commons/events/index.d.ts +9 -1
  37. package/dist/commons/events/scopes.d.ts +26 -0
  38. package/dist/commons/events/serializer.d.ts +2 -0
  39. package/dist/commons/events/test.utils.d.ts +128 -238
  40. package/dist/commons/events/utils.d.ts +3679 -69
  41. package/dist/commons/events/utils.test.d.ts +2 -0
  42. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  43. package/dist/conditionals/index.js +215 -110
  44. package/dist/events/index.js +3157 -1372
  45. package/dist/scopes/index.d.ts +105 -1
  46. package/dist/scopes/index.js +140 -0
  47. package/package.json +3 -2
@@ -1,6 +1,7 @@
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
+ title: z.ZodString;
4
5
  type: z.ZodString;
5
6
  status: z.ZodNativeEnum<{
6
7
  readonly CREATED: "CREATED";
@@ -12,39 +13,352 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
12
13
  readonly REJECTED: "REJECTED";
13
14
  readonly ARCHIVED: "ARCHIVED";
14
15
  }>;
16
+ legalStatuses: z.ZodObject<{
17
+ DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
+ createdAt: z.ZodString;
19
+ createdBy: z.ZodString;
20
+ createdAtLocation: z.ZodString;
21
+ acceptedAt: z.ZodString;
22
+ createdByRole: z.ZodString;
23
+ }, "strip", z.ZodTypeAny, {
24
+ createdAt: string;
25
+ createdBy: string;
26
+ createdByRole: string;
27
+ createdAtLocation: string;
28
+ acceptedAt: string;
29
+ }, {
30
+ createdAt: string;
31
+ createdBy: string;
32
+ createdByRole: string;
33
+ createdAtLocation: string;
34
+ acceptedAt: string;
35
+ }>>>;
36
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
37
+ createdAt: z.ZodString;
38
+ createdBy: z.ZodString;
39
+ createdAtLocation: z.ZodString;
40
+ acceptedAt: z.ZodString;
41
+ createdByRole: z.ZodString;
42
+ }, {
43
+ registrationNumber: z.ZodString;
44
+ }>, "strip", z.ZodTypeAny, {
45
+ createdAt: string;
46
+ createdBy: string;
47
+ createdByRole: string;
48
+ createdAtLocation: string;
49
+ registrationNumber: string;
50
+ acceptedAt: string;
51
+ }, {
52
+ createdAt: string;
53
+ createdBy: string;
54
+ createdByRole: string;
55
+ createdAtLocation: string;
56
+ registrationNumber: string;
57
+ acceptedAt: string;
58
+ }>>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ DECLARED?: {
61
+ createdAt: string;
62
+ createdBy: string;
63
+ createdByRole: string;
64
+ createdAtLocation: string;
65
+ acceptedAt: string;
66
+ } | null | undefined;
67
+ REGISTERED?: {
68
+ createdAt: string;
69
+ createdBy: string;
70
+ createdByRole: string;
71
+ createdAtLocation: string;
72
+ registrationNumber: string;
73
+ acceptedAt: string;
74
+ } | null | undefined;
75
+ }, {
76
+ DECLARED?: {
77
+ createdAt: string;
78
+ createdBy: string;
79
+ createdByRole: string;
80
+ createdAtLocation: string;
81
+ acceptedAt: string;
82
+ } | null | undefined;
83
+ REGISTERED?: {
84
+ createdAt: string;
85
+ createdBy: string;
86
+ createdByRole: string;
87
+ createdAtLocation: string;
88
+ registrationNumber: string;
89
+ acceptedAt: string;
90
+ } | null | undefined;
91
+ }>;
15
92
  createdAt: z.ZodString;
93
+ dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
94
  createdBy: z.ZodString;
95
+ updatedByUserRole: z.ZodString;
17
96
  createdAtLocation: z.ZodString;
18
- modifiedAt: z.ZodString;
97
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ updatedAt: z.ZodString;
19
99
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- updatedBy: z.ZodString;
100
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
101
  trackingId: z.ZodString;
102
+ flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
103
+ readonly CERTIFICATE_PRINTED: "certificate-printed";
104
+ }>]>, "many">;
22
105
  }, {
23
- data: z.ZodRecord<z.ZodString, z.ZodAny>;
106
+ 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<{
107
+ filename: z.ZodString;
108
+ originalFilename: z.ZodString;
109
+ type: z.ZodString;
110
+ }, "strip", z.ZodTypeAny, {
111
+ type: string;
112
+ filename: string;
113
+ originalFilename: string;
114
+ }, {
115
+ type: string;
116
+ filename: string;
117
+ originalFilename: string;
118
+ }>, z.ZodArray<z.ZodObject<{
119
+ filename: z.ZodString;
120
+ originalFilename: z.ZodString;
121
+ type: z.ZodString;
122
+ option: z.ZodString;
123
+ }, "strip", z.ZodTypeAny, {
124
+ type: string;
125
+ option: string;
126
+ filename: string;
127
+ originalFilename: string;
128
+ }, {
129
+ type: string;
130
+ option: string;
131
+ filename: string;
132
+ originalFilename: string;
133
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
134
+ country: z.ZodString;
135
+ addressType: z.ZodLiteral<"DOMESTIC">;
136
+ province: z.ZodString;
137
+ district: z.ZodString;
138
+ }, {
139
+ urbanOrRural: z.ZodLiteral<"URBAN">;
140
+ town: z.ZodOptional<z.ZodString>;
141
+ residentialArea: z.ZodOptional<z.ZodString>;
142
+ street: z.ZodOptional<z.ZodString>;
143
+ number: z.ZodOptional<z.ZodString>;
144
+ zipCode: z.ZodOptional<z.ZodString>;
145
+ }>, "strip", z.ZodTypeAny, {
146
+ country: string;
147
+ district: string;
148
+ addressType: "DOMESTIC";
149
+ province: string;
150
+ urbanOrRural: "URBAN";
151
+ number?: string | undefined;
152
+ town?: string | undefined;
153
+ residentialArea?: string | undefined;
154
+ street?: string | undefined;
155
+ zipCode?: string | undefined;
156
+ }, {
157
+ country: string;
158
+ district: string;
159
+ addressType: "DOMESTIC";
160
+ province: string;
161
+ urbanOrRural: "URBAN";
162
+ number?: string | undefined;
163
+ town?: string | undefined;
164
+ residentialArea?: string | undefined;
165
+ street?: string | undefined;
166
+ zipCode?: string | undefined;
167
+ }>, z.ZodObject<z.objectUtil.extendShape<{
168
+ country: z.ZodString;
169
+ addressType: z.ZodLiteral<"DOMESTIC">;
170
+ province: z.ZodString;
171
+ district: z.ZodString;
172
+ }, {
173
+ urbanOrRural: z.ZodLiteral<"RURAL">;
174
+ village: z.ZodOptional<z.ZodString>;
175
+ }>, "strip", z.ZodTypeAny, {
176
+ country: string;
177
+ district: string;
178
+ addressType: "DOMESTIC";
179
+ province: string;
180
+ urbanOrRural: "RURAL";
181
+ village?: string | undefined;
182
+ }, {
183
+ country: string;
184
+ district: string;
185
+ addressType: "DOMESTIC";
186
+ province: string;
187
+ urbanOrRural: "RURAL";
188
+ village?: string | undefined;
189
+ }>, z.ZodUndefined, z.ZodObject<{
190
+ country: z.ZodString;
191
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
192
+ state: z.ZodString;
193
+ district2: z.ZodString;
194
+ cityOrTown: z.ZodOptional<z.ZodString>;
195
+ addressLine1: z.ZodOptional<z.ZodString>;
196
+ addressLine2: z.ZodOptional<z.ZodString>;
197
+ addressLine3: z.ZodOptional<z.ZodString>;
198
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ country: string;
201
+ state: string;
202
+ addressType: "INTERNATIONAL";
203
+ district2: string;
204
+ cityOrTown?: string | undefined;
205
+ addressLine1?: string | undefined;
206
+ addressLine2?: string | undefined;
207
+ addressLine3?: string | undefined;
208
+ postcodeOrZip?: string | undefined;
209
+ }, {
210
+ country: string;
211
+ state: string;
212
+ addressType: "INTERNATIONAL";
213
+ district2: string;
214
+ cityOrTown?: string | undefined;
215
+ addressLine1?: string | undefined;
216
+ addressLine2?: string | undefined;
217
+ addressLine3?: string | undefined;
218
+ postcodeOrZip?: string | undefined;
219
+ }>]>>;
24
220
  }>, "strip", z.ZodTypeAny, {
25
221
  type: string;
26
222
  id: string;
27
223
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
28
- data: Record<string, any>;
224
+ title: string;
29
225
  createdAt: string;
30
226
  createdBy: string;
227
+ declaration: Record<string, string | number | boolean | {
228
+ type: string;
229
+ filename: string;
230
+ originalFilename: string;
231
+ } | {
232
+ country: string;
233
+ district: string;
234
+ addressType: "DOMESTIC";
235
+ province: string;
236
+ urbanOrRural: "URBAN";
237
+ number?: string | undefined;
238
+ town?: string | undefined;
239
+ residentialArea?: string | undefined;
240
+ street?: string | undefined;
241
+ zipCode?: string | undefined;
242
+ } | {
243
+ country: string;
244
+ district: string;
245
+ addressType: "DOMESTIC";
246
+ province: string;
247
+ urbanOrRural: "RURAL";
248
+ village?: string | undefined;
249
+ } | {
250
+ country: string;
251
+ state: string;
252
+ addressType: "INTERNATIONAL";
253
+ district2: string;
254
+ cityOrTown?: string | undefined;
255
+ addressLine1?: string | undefined;
256
+ addressLine2?: string | undefined;
257
+ addressLine3?: string | undefined;
258
+ postcodeOrZip?: string | undefined;
259
+ } | {
260
+ type: string;
261
+ option: string;
262
+ filename: string;
263
+ originalFilename: string;
264
+ }[] | [string, string] | undefined>;
31
265
  createdAtLocation: string;
266
+ updatedAt: string;
32
267
  trackingId: string;
33
- modifiedAt: string;
34
- updatedBy: string;
268
+ legalStatuses: {
269
+ DECLARED?: {
270
+ createdAt: string;
271
+ createdBy: string;
272
+ createdByRole: string;
273
+ createdAtLocation: string;
274
+ acceptedAt: string;
275
+ } | null | undefined;
276
+ REGISTERED?: {
277
+ createdAt: string;
278
+ createdBy: string;
279
+ createdByRole: string;
280
+ createdAtLocation: string;
281
+ registrationNumber: string;
282
+ acceptedAt: string;
283
+ } | null | undefined;
284
+ };
285
+ updatedByUserRole: string;
286
+ flags: string[];
35
287
  assignedTo?: string | null | undefined;
288
+ dateOfEvent?: string | null | undefined;
289
+ updatedAtLocation?: string | null | undefined;
290
+ updatedBy?: string | null | undefined;
36
291
  }, {
37
292
  type: string;
38
293
  id: string;
39
294
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
40
- data: Record<string, any>;
295
+ title: string;
41
296
  createdAt: string;
42
297
  createdBy: string;
298
+ declaration: Record<string, string | number | boolean | {
299
+ type: string;
300
+ filename: string;
301
+ originalFilename: string;
302
+ } | {
303
+ country: string;
304
+ district: string;
305
+ addressType: "DOMESTIC";
306
+ province: string;
307
+ urbanOrRural: "URBAN";
308
+ number?: string | undefined;
309
+ town?: string | undefined;
310
+ residentialArea?: string | undefined;
311
+ street?: string | undefined;
312
+ zipCode?: string | undefined;
313
+ } | {
314
+ country: string;
315
+ district: string;
316
+ addressType: "DOMESTIC";
317
+ province: string;
318
+ urbanOrRural: "RURAL";
319
+ village?: string | undefined;
320
+ } | {
321
+ country: string;
322
+ state: string;
323
+ addressType: "INTERNATIONAL";
324
+ district2: string;
325
+ cityOrTown?: string | undefined;
326
+ addressLine1?: string | undefined;
327
+ addressLine2?: string | undefined;
328
+ addressLine3?: string | undefined;
329
+ postcodeOrZip?: string | undefined;
330
+ } | {
331
+ type: string;
332
+ option: string;
333
+ filename: string;
334
+ originalFilename: string;
335
+ }[] | [string, string] | undefined>;
43
336
  createdAtLocation: string;
337
+ updatedAt: string;
44
338
  trackingId: string;
45
- modifiedAt: string;
46
- updatedBy: string;
339
+ legalStatuses: {
340
+ DECLARED?: {
341
+ createdAt: string;
342
+ createdBy: string;
343
+ createdByRole: string;
344
+ createdAtLocation: string;
345
+ acceptedAt: string;
346
+ } | null | undefined;
347
+ REGISTERED?: {
348
+ createdAt: string;
349
+ createdBy: string;
350
+ createdByRole: string;
351
+ createdAtLocation: string;
352
+ registrationNumber: string;
353
+ acceptedAt: string;
354
+ } | null | undefined;
355
+ };
356
+ updatedByUserRole: string;
357
+ flags: string[];
47
358
  assignedTo?: string | null | undefined;
359
+ dateOfEvent?: string | null | undefined;
360
+ updatedAtLocation?: string | null | undefined;
361
+ updatedBy?: string | null | undefined;
48
362
  }>;
49
363
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
50
364
  type: z.ZodString;
@@ -55,4 +369,1228 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
55
369
  }>>;
56
370
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
57
371
  export type EventIndex = z.infer<typeof EventIndex>;
372
+ declare const Fuzzy: z.ZodObject<{
373
+ type: z.ZodLiteral<"fuzzy">;
374
+ term: z.ZodString;
375
+ }, "strip", z.ZodTypeAny, {
376
+ type: "fuzzy";
377
+ term: string;
378
+ }, {
379
+ type: "fuzzy";
380
+ term: string;
381
+ }>;
382
+ declare const Exact: z.ZodObject<{
383
+ type: z.ZodLiteral<"exact">;
384
+ term: z.ZodString;
385
+ }, "strip", z.ZodTypeAny, {
386
+ type: "exact";
387
+ term: string;
388
+ }, {
389
+ type: "exact";
390
+ term: string;
391
+ }>;
392
+ declare const AnyOf: z.ZodObject<{
393
+ type: z.ZodLiteral<"anyOf">;
394
+ terms: z.ZodArray<z.ZodString, "many">;
395
+ }, "strip", z.ZodTypeAny, {
396
+ type: "anyOf";
397
+ terms: string[];
398
+ }, {
399
+ type: "anyOf";
400
+ terms: string[];
401
+ }>;
402
+ declare const Range: z.ZodObject<{
403
+ type: z.ZodLiteral<"range">;
404
+ gte: z.ZodString;
405
+ lte: z.ZodString;
406
+ }, "strip", z.ZodTypeAny, {
407
+ type: "range";
408
+ gte: string;
409
+ lte: string;
410
+ }, {
411
+ type: "range";
412
+ gte: string;
413
+ lte: string;
414
+ }>;
415
+ declare const Not: z.ZodObject<{
416
+ type: z.ZodLiteral<"not">;
417
+ term: z.ZodString;
418
+ }, "strip", z.ZodTypeAny, {
419
+ type: "not";
420
+ term: string;
421
+ }, {
422
+ type: "not";
423
+ term: string;
424
+ }>;
425
+ declare const Within: z.ZodObject<{
426
+ type: z.ZodLiteral<"within">;
427
+ location: z.ZodString;
428
+ }, "strip", z.ZodTypeAny, {
429
+ type: "within";
430
+ location: string;
431
+ }, {
432
+ type: "within";
433
+ location: string;
434
+ }>;
435
+ export declare const QueryInput: ZodType;
436
+ 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>;
437
+ type QueryMap = {
438
+ [key: string]: BaseInput | QueryMap;
439
+ };
440
+ export type QueryInputType = BaseInput | QueryMap;
441
+ export declare const QueryExpression: z.ZodObject<{
442
+ title: z.ZodOptional<z.ZodString>;
443
+ eventType: z.ZodOptional<z.ZodString>;
444
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
445
+ type: z.ZodLiteral<"anyOf">;
446
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
447
+ }, "strip", z.ZodTypeAny, {
448
+ type: "anyOf";
449
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
450
+ }, {
451
+ type: "anyOf";
452
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
453
+ }>, z.ZodObject<{
454
+ type: z.ZodLiteral<"exact">;
455
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ type: "exact";
458
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
459
+ }, {
460
+ type: "exact";
461
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
462
+ }>]>>>;
463
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
464
+ type: z.ZodLiteral<"exact">;
465
+ term: z.ZodString;
466
+ }, "strip", z.ZodTypeAny, {
467
+ type: "exact";
468
+ term: string;
469
+ }, {
470
+ type: "exact";
471
+ term: string;
472
+ }>, z.ZodObject<{
473
+ type: z.ZodLiteral<"range">;
474
+ gte: z.ZodString;
475
+ lte: z.ZodString;
476
+ }, "strip", z.ZodTypeAny, {
477
+ type: "range";
478
+ gte: string;
479
+ lte: string;
480
+ }, {
481
+ type: "range";
482
+ gte: string;
483
+ lte: string;
484
+ }>]>>>;
485
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
486
+ type: z.ZodLiteral<"exact">;
487
+ term: z.ZodString;
488
+ }, "strip", z.ZodTypeAny, {
489
+ type: "exact";
490
+ term: string;
491
+ }, {
492
+ type: "exact";
493
+ term: string;
494
+ }>, z.ZodObject<{
495
+ type: z.ZodLiteral<"range">;
496
+ gte: z.ZodString;
497
+ lte: z.ZodString;
498
+ }, "strip", z.ZodTypeAny, {
499
+ type: "range";
500
+ gte: string;
501
+ lte: string;
502
+ }, {
503
+ type: "range";
504
+ gte: string;
505
+ lte: string;
506
+ }>]>>>;
507
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
508
+ type: z.ZodLiteral<"within">;
509
+ location: z.ZodString;
510
+ }, "strip", z.ZodTypeAny, {
511
+ type: "within";
512
+ location: string;
513
+ }, {
514
+ type: "within";
515
+ location: string;
516
+ }>, z.ZodObject<{
517
+ type: z.ZodLiteral<"exact">;
518
+ term: z.ZodString;
519
+ }, "strip", z.ZodTypeAny, {
520
+ type: "exact";
521
+ term: string;
522
+ }, {
523
+ type: "exact";
524
+ term: string;
525
+ }>]>>>;
526
+ updatedAtLocation: 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
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
546
+ type: z.ZodLiteral<"exact">;
547
+ term: z.ZodString;
548
+ }, "strip", z.ZodTypeAny, {
549
+ type: "exact";
550
+ term: string;
551
+ }, {
552
+ type: "exact";
553
+ term: string;
554
+ }>>>;
555
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
556
+ type: z.ZodLiteral<"exact">;
557
+ term: z.ZodString;
558
+ }, "strip", z.ZodTypeAny, {
559
+ type: "exact";
560
+ term: string;
561
+ }, {
562
+ type: "exact";
563
+ term: string;
564
+ }>>>;
565
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
566
+ type: z.ZodLiteral<"exact">;
567
+ term: z.ZodString;
568
+ }, "strip", z.ZodTypeAny, {
569
+ type: "exact";
570
+ term: string;
571
+ }, {
572
+ type: "exact";
573
+ term: string;
574
+ }>>>;
575
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
576
+ type: z.ZodLiteral<"exact">;
577
+ term: z.ZodString;
578
+ }, "strip", z.ZodTypeAny, {
579
+ type: "exact";
580
+ term: string;
581
+ }, {
582
+ type: "exact";
583
+ term: string;
584
+ }>>>;
585
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
586
+ type: z.ZodLiteral<"anyOf">;
587
+ terms: z.ZodArray<z.ZodString, "many">;
588
+ }, "strip", z.ZodTypeAny, {
589
+ type: "anyOf";
590
+ terms: string[];
591
+ }, {
592
+ type: "anyOf";
593
+ terms: string[];
594
+ }>, z.ZodObject<{
595
+ type: z.ZodLiteral<"not">;
596
+ term: z.ZodString;
597
+ }, "strip", z.ZodTypeAny, {
598
+ type: "not";
599
+ term: string;
600
+ }, {
601
+ type: "not";
602
+ term: string;
603
+ }>]>, "many">>>;
604
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ status?: {
607
+ type: "anyOf";
608
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
609
+ } | {
610
+ type: "exact";
611
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
612
+ } | undefined;
613
+ title?: string | undefined;
614
+ data?: any;
615
+ createdAt?: {
616
+ type: "exact";
617
+ term: string;
618
+ } | {
619
+ type: "range";
620
+ gte: string;
621
+ lte: string;
622
+ } | undefined;
623
+ createdBy?: {
624
+ type: "exact";
625
+ term: string;
626
+ } | undefined;
627
+ createdAtLocation?: {
628
+ type: "exact";
629
+ term: string;
630
+ } | {
631
+ type: "within";
632
+ location: string;
633
+ } | undefined;
634
+ assignedTo?: {
635
+ type: "exact";
636
+ term: string;
637
+ } | undefined;
638
+ updatedAt?: {
639
+ type: "exact";
640
+ term: string;
641
+ } | {
642
+ type: "range";
643
+ gte: string;
644
+ lte: string;
645
+ } | undefined;
646
+ trackingId?: {
647
+ type: "exact";
648
+ term: string;
649
+ } | undefined;
650
+ updatedAtLocation?: {
651
+ type: "exact";
652
+ term: string;
653
+ } | {
654
+ type: "within";
655
+ location: string;
656
+ } | undefined;
657
+ updatedBy?: {
658
+ type: "exact";
659
+ term: string;
660
+ } | undefined;
661
+ flags?: ({
662
+ type: "anyOf";
663
+ terms: string[];
664
+ } | {
665
+ type: "not";
666
+ term: string;
667
+ })[] | undefined;
668
+ eventType?: string | undefined;
669
+ }, {
670
+ status?: {
671
+ type: "anyOf";
672
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
673
+ } | {
674
+ type: "exact";
675
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
676
+ } | undefined;
677
+ title?: string | undefined;
678
+ data?: any;
679
+ createdAt?: {
680
+ type: "exact";
681
+ term: string;
682
+ } | {
683
+ type: "range";
684
+ gte: string;
685
+ lte: string;
686
+ } | undefined;
687
+ createdBy?: {
688
+ type: "exact";
689
+ term: string;
690
+ } | undefined;
691
+ createdAtLocation?: {
692
+ type: "exact";
693
+ term: string;
694
+ } | {
695
+ type: "within";
696
+ location: string;
697
+ } | undefined;
698
+ assignedTo?: {
699
+ type: "exact";
700
+ term: string;
701
+ } | undefined;
702
+ updatedAt?: {
703
+ type: "exact";
704
+ term: string;
705
+ } | {
706
+ type: "range";
707
+ gte: string;
708
+ lte: string;
709
+ } | undefined;
710
+ trackingId?: {
711
+ type: "exact";
712
+ term: string;
713
+ } | undefined;
714
+ updatedAtLocation?: {
715
+ type: "exact";
716
+ term: string;
717
+ } | {
718
+ type: "within";
719
+ location: string;
720
+ } | undefined;
721
+ updatedBy?: {
722
+ type: "exact";
723
+ term: string;
724
+ } | undefined;
725
+ flags?: ({
726
+ type: "anyOf";
727
+ terms: string[];
728
+ } | {
729
+ type: "not";
730
+ term: string;
731
+ })[] | undefined;
732
+ eventType?: string | undefined;
733
+ }>;
734
+ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
735
+ type: z.ZodLiteral<"or">;
736
+ clauses: z.ZodArray<z.ZodObject<{
737
+ title: z.ZodOptional<z.ZodString>;
738
+ eventType: z.ZodOptional<z.ZodString>;
739
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
740
+ type: z.ZodLiteral<"anyOf">;
741
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
742
+ }, "strip", z.ZodTypeAny, {
743
+ type: "anyOf";
744
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
745
+ }, {
746
+ type: "anyOf";
747
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
748
+ }>, z.ZodObject<{
749
+ type: z.ZodLiteral<"exact">;
750
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
751
+ }, "strip", z.ZodTypeAny, {
752
+ type: "exact";
753
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
754
+ }, {
755
+ type: "exact";
756
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
757
+ }>]>>>;
758
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
759
+ type: z.ZodLiteral<"exact">;
760
+ term: z.ZodString;
761
+ }, "strip", z.ZodTypeAny, {
762
+ type: "exact";
763
+ term: string;
764
+ }, {
765
+ type: "exact";
766
+ term: string;
767
+ }>, z.ZodObject<{
768
+ type: z.ZodLiteral<"range">;
769
+ gte: z.ZodString;
770
+ lte: z.ZodString;
771
+ }, "strip", z.ZodTypeAny, {
772
+ type: "range";
773
+ gte: string;
774
+ lte: string;
775
+ }, {
776
+ type: "range";
777
+ gte: string;
778
+ lte: string;
779
+ }>]>>>;
780
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
781
+ type: z.ZodLiteral<"exact">;
782
+ term: z.ZodString;
783
+ }, "strip", z.ZodTypeAny, {
784
+ type: "exact";
785
+ term: string;
786
+ }, {
787
+ type: "exact";
788
+ term: string;
789
+ }>, z.ZodObject<{
790
+ type: z.ZodLiteral<"range">;
791
+ gte: z.ZodString;
792
+ lte: z.ZodString;
793
+ }, "strip", z.ZodTypeAny, {
794
+ type: "range";
795
+ gte: string;
796
+ lte: string;
797
+ }, {
798
+ type: "range";
799
+ gte: string;
800
+ lte: string;
801
+ }>]>>>;
802
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
803
+ type: z.ZodLiteral<"within">;
804
+ location: z.ZodString;
805
+ }, "strip", z.ZodTypeAny, {
806
+ type: "within";
807
+ location: string;
808
+ }, {
809
+ type: "within";
810
+ location: string;
811
+ }>, z.ZodObject<{
812
+ type: z.ZodLiteral<"exact">;
813
+ term: z.ZodString;
814
+ }, "strip", z.ZodTypeAny, {
815
+ type: "exact";
816
+ term: string;
817
+ }, {
818
+ type: "exact";
819
+ term: string;
820
+ }>]>>>;
821
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
822
+ type: z.ZodLiteral<"within">;
823
+ location: z.ZodString;
824
+ }, "strip", z.ZodTypeAny, {
825
+ type: "within";
826
+ location: string;
827
+ }, {
828
+ type: "within";
829
+ location: string;
830
+ }>, z.ZodObject<{
831
+ type: z.ZodLiteral<"exact">;
832
+ term: z.ZodString;
833
+ }, "strip", z.ZodTypeAny, {
834
+ type: "exact";
835
+ term: string;
836
+ }, {
837
+ type: "exact";
838
+ term: string;
839
+ }>]>>>;
840
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
841
+ type: z.ZodLiteral<"exact">;
842
+ term: z.ZodString;
843
+ }, "strip", z.ZodTypeAny, {
844
+ type: "exact";
845
+ term: string;
846
+ }, {
847
+ type: "exact";
848
+ term: string;
849
+ }>>>;
850
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
851
+ type: z.ZodLiteral<"exact">;
852
+ term: z.ZodString;
853
+ }, "strip", z.ZodTypeAny, {
854
+ type: "exact";
855
+ term: string;
856
+ }, {
857
+ type: "exact";
858
+ term: string;
859
+ }>>>;
860
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
861
+ type: z.ZodLiteral<"exact">;
862
+ term: z.ZodString;
863
+ }, "strip", z.ZodTypeAny, {
864
+ type: "exact";
865
+ term: string;
866
+ }, {
867
+ type: "exact";
868
+ term: string;
869
+ }>>>;
870
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
871
+ type: z.ZodLiteral<"exact">;
872
+ term: z.ZodString;
873
+ }, "strip", z.ZodTypeAny, {
874
+ type: "exact";
875
+ term: string;
876
+ }, {
877
+ type: "exact";
878
+ term: string;
879
+ }>>>;
880
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
881
+ type: z.ZodLiteral<"anyOf">;
882
+ terms: z.ZodArray<z.ZodString, "many">;
883
+ }, "strip", z.ZodTypeAny, {
884
+ type: "anyOf";
885
+ terms: string[];
886
+ }, {
887
+ type: "anyOf";
888
+ terms: string[];
889
+ }>, z.ZodObject<{
890
+ type: z.ZodLiteral<"not">;
891
+ term: z.ZodString;
892
+ }, "strip", z.ZodTypeAny, {
893
+ type: "not";
894
+ term: string;
895
+ }, {
896
+ type: "not";
897
+ term: string;
898
+ }>]>, "many">>>;
899
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
900
+ }, "strip", z.ZodTypeAny, {
901
+ status?: {
902
+ type: "anyOf";
903
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
904
+ } | {
905
+ type: "exact";
906
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
907
+ } | undefined;
908
+ title?: string | undefined;
909
+ data?: any;
910
+ createdAt?: {
911
+ type: "exact";
912
+ term: string;
913
+ } | {
914
+ type: "range";
915
+ gte: string;
916
+ lte: string;
917
+ } | undefined;
918
+ createdBy?: {
919
+ type: "exact";
920
+ term: string;
921
+ } | undefined;
922
+ createdAtLocation?: {
923
+ type: "exact";
924
+ term: string;
925
+ } | {
926
+ type: "within";
927
+ location: string;
928
+ } | undefined;
929
+ assignedTo?: {
930
+ type: "exact";
931
+ term: string;
932
+ } | undefined;
933
+ updatedAt?: {
934
+ type: "exact";
935
+ term: string;
936
+ } | {
937
+ type: "range";
938
+ gte: string;
939
+ lte: string;
940
+ } | undefined;
941
+ trackingId?: {
942
+ type: "exact";
943
+ term: string;
944
+ } | undefined;
945
+ updatedAtLocation?: {
946
+ type: "exact";
947
+ term: string;
948
+ } | {
949
+ type: "within";
950
+ location: string;
951
+ } | undefined;
952
+ updatedBy?: {
953
+ type: "exact";
954
+ term: string;
955
+ } | undefined;
956
+ flags?: ({
957
+ type: "anyOf";
958
+ terms: string[];
959
+ } | {
960
+ type: "not";
961
+ term: string;
962
+ })[] | undefined;
963
+ eventType?: string | undefined;
964
+ }, {
965
+ status?: {
966
+ type: "anyOf";
967
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
968
+ } | {
969
+ type: "exact";
970
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
971
+ } | undefined;
972
+ title?: string | undefined;
973
+ data?: any;
974
+ createdAt?: {
975
+ type: "exact";
976
+ term: string;
977
+ } | {
978
+ type: "range";
979
+ gte: string;
980
+ lte: string;
981
+ } | undefined;
982
+ createdBy?: {
983
+ type: "exact";
984
+ term: string;
985
+ } | undefined;
986
+ createdAtLocation?: {
987
+ type: "exact";
988
+ term: string;
989
+ } | {
990
+ type: "within";
991
+ location: string;
992
+ } | undefined;
993
+ assignedTo?: {
994
+ type: "exact";
995
+ term: string;
996
+ } | undefined;
997
+ updatedAt?: {
998
+ type: "exact";
999
+ term: string;
1000
+ } | {
1001
+ type: "range";
1002
+ gte: string;
1003
+ lte: string;
1004
+ } | undefined;
1005
+ trackingId?: {
1006
+ type: "exact";
1007
+ term: string;
1008
+ } | undefined;
1009
+ updatedAtLocation?: {
1010
+ type: "exact";
1011
+ term: string;
1012
+ } | {
1013
+ type: "within";
1014
+ location: string;
1015
+ } | undefined;
1016
+ updatedBy?: {
1017
+ type: "exact";
1018
+ term: string;
1019
+ } | undefined;
1020
+ flags?: ({
1021
+ type: "anyOf";
1022
+ terms: string[];
1023
+ } | {
1024
+ type: "not";
1025
+ term: string;
1026
+ })[] | undefined;
1027
+ eventType?: string | undefined;
1028
+ }>, "many">;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ type: "or";
1031
+ clauses: {
1032
+ status?: {
1033
+ type: "anyOf";
1034
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1035
+ } | {
1036
+ type: "exact";
1037
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1038
+ } | undefined;
1039
+ title?: string | undefined;
1040
+ data?: any;
1041
+ createdAt?: {
1042
+ type: "exact";
1043
+ term: string;
1044
+ } | {
1045
+ type: "range";
1046
+ gte: string;
1047
+ lte: string;
1048
+ } | undefined;
1049
+ createdBy?: {
1050
+ type: "exact";
1051
+ term: string;
1052
+ } | undefined;
1053
+ createdAtLocation?: {
1054
+ type: "exact";
1055
+ term: string;
1056
+ } | {
1057
+ type: "within";
1058
+ location: string;
1059
+ } | undefined;
1060
+ assignedTo?: {
1061
+ type: "exact";
1062
+ term: string;
1063
+ } | undefined;
1064
+ updatedAt?: {
1065
+ type: "exact";
1066
+ term: string;
1067
+ } | {
1068
+ type: "range";
1069
+ gte: string;
1070
+ lte: string;
1071
+ } | undefined;
1072
+ trackingId?: {
1073
+ type: "exact";
1074
+ term: string;
1075
+ } | undefined;
1076
+ updatedAtLocation?: {
1077
+ type: "exact";
1078
+ term: string;
1079
+ } | {
1080
+ type: "within";
1081
+ location: string;
1082
+ } | undefined;
1083
+ updatedBy?: {
1084
+ type: "exact";
1085
+ term: string;
1086
+ } | undefined;
1087
+ flags?: ({
1088
+ type: "anyOf";
1089
+ terms: string[];
1090
+ } | {
1091
+ type: "not";
1092
+ term: string;
1093
+ })[] | undefined;
1094
+ eventType?: string | undefined;
1095
+ }[];
1096
+ }, {
1097
+ type: "or";
1098
+ clauses: {
1099
+ status?: {
1100
+ type: "anyOf";
1101
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1102
+ } | {
1103
+ type: "exact";
1104
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1105
+ } | undefined;
1106
+ title?: string | undefined;
1107
+ data?: any;
1108
+ createdAt?: {
1109
+ type: "exact";
1110
+ term: string;
1111
+ } | {
1112
+ type: "range";
1113
+ gte: string;
1114
+ lte: string;
1115
+ } | undefined;
1116
+ createdBy?: {
1117
+ type: "exact";
1118
+ term: string;
1119
+ } | undefined;
1120
+ createdAtLocation?: {
1121
+ type: "exact";
1122
+ term: string;
1123
+ } | {
1124
+ type: "within";
1125
+ location: string;
1126
+ } | undefined;
1127
+ assignedTo?: {
1128
+ type: "exact";
1129
+ term: string;
1130
+ } | undefined;
1131
+ updatedAt?: {
1132
+ type: "exact";
1133
+ term: string;
1134
+ } | {
1135
+ type: "range";
1136
+ gte: string;
1137
+ lte: string;
1138
+ } | undefined;
1139
+ trackingId?: {
1140
+ type: "exact";
1141
+ term: string;
1142
+ } | undefined;
1143
+ updatedAtLocation?: {
1144
+ type: "exact";
1145
+ term: string;
1146
+ } | {
1147
+ type: "within";
1148
+ location: string;
1149
+ } | undefined;
1150
+ updatedBy?: {
1151
+ type: "exact";
1152
+ term: string;
1153
+ } | undefined;
1154
+ flags?: ({
1155
+ type: "anyOf";
1156
+ terms: string[];
1157
+ } | {
1158
+ type: "not";
1159
+ term: string;
1160
+ })[] | undefined;
1161
+ eventType?: string | undefined;
1162
+ }[];
1163
+ }>, z.ZodObject<{
1164
+ type: z.ZodLiteral<"and">;
1165
+ clauses: z.ZodArray<z.ZodObject<{
1166
+ title: z.ZodOptional<z.ZodString>;
1167
+ eventType: z.ZodOptional<z.ZodString>;
1168
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1169
+ type: z.ZodLiteral<"anyOf">;
1170
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ type: "anyOf";
1173
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1174
+ }, {
1175
+ type: "anyOf";
1176
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1177
+ }>, z.ZodObject<{
1178
+ type: z.ZodLiteral<"exact">;
1179
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ type: "exact";
1182
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1183
+ }, {
1184
+ type: "exact";
1185
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1186
+ }>]>>>;
1187
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1188
+ type: z.ZodLiteral<"exact">;
1189
+ term: z.ZodString;
1190
+ }, "strip", z.ZodTypeAny, {
1191
+ type: "exact";
1192
+ term: string;
1193
+ }, {
1194
+ type: "exact";
1195
+ term: string;
1196
+ }>, z.ZodObject<{
1197
+ type: z.ZodLiteral<"range">;
1198
+ gte: z.ZodString;
1199
+ lte: z.ZodString;
1200
+ }, "strip", z.ZodTypeAny, {
1201
+ type: "range";
1202
+ gte: string;
1203
+ lte: string;
1204
+ }, {
1205
+ type: "range";
1206
+ gte: string;
1207
+ lte: string;
1208
+ }>]>>>;
1209
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1210
+ type: z.ZodLiteral<"exact">;
1211
+ term: z.ZodString;
1212
+ }, "strip", z.ZodTypeAny, {
1213
+ type: "exact";
1214
+ term: string;
1215
+ }, {
1216
+ type: "exact";
1217
+ term: string;
1218
+ }>, z.ZodObject<{
1219
+ type: z.ZodLiteral<"range">;
1220
+ gte: z.ZodString;
1221
+ lte: z.ZodString;
1222
+ }, "strip", z.ZodTypeAny, {
1223
+ type: "range";
1224
+ gte: string;
1225
+ lte: string;
1226
+ }, {
1227
+ type: "range";
1228
+ gte: string;
1229
+ lte: string;
1230
+ }>]>>>;
1231
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1232
+ type: z.ZodLiteral<"within">;
1233
+ location: z.ZodString;
1234
+ }, "strip", z.ZodTypeAny, {
1235
+ type: "within";
1236
+ location: string;
1237
+ }, {
1238
+ type: "within";
1239
+ location: string;
1240
+ }>, z.ZodObject<{
1241
+ type: z.ZodLiteral<"exact">;
1242
+ term: z.ZodString;
1243
+ }, "strip", z.ZodTypeAny, {
1244
+ type: "exact";
1245
+ term: string;
1246
+ }, {
1247
+ type: "exact";
1248
+ term: string;
1249
+ }>]>>>;
1250
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1251
+ type: z.ZodLiteral<"within">;
1252
+ location: z.ZodString;
1253
+ }, "strip", z.ZodTypeAny, {
1254
+ type: "within";
1255
+ location: string;
1256
+ }, {
1257
+ type: "within";
1258
+ location: string;
1259
+ }>, z.ZodObject<{
1260
+ type: z.ZodLiteral<"exact">;
1261
+ term: z.ZodString;
1262
+ }, "strip", z.ZodTypeAny, {
1263
+ type: "exact";
1264
+ term: string;
1265
+ }, {
1266
+ type: "exact";
1267
+ term: string;
1268
+ }>]>>>;
1269
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1270
+ type: z.ZodLiteral<"exact">;
1271
+ term: z.ZodString;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ type: "exact";
1274
+ term: string;
1275
+ }, {
1276
+ type: "exact";
1277
+ term: string;
1278
+ }>>>;
1279
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1280
+ type: z.ZodLiteral<"exact">;
1281
+ term: z.ZodString;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ type: "exact";
1284
+ term: string;
1285
+ }, {
1286
+ type: "exact";
1287
+ term: string;
1288
+ }>>>;
1289
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1290
+ type: z.ZodLiteral<"exact">;
1291
+ term: z.ZodString;
1292
+ }, "strip", z.ZodTypeAny, {
1293
+ type: "exact";
1294
+ term: string;
1295
+ }, {
1296
+ type: "exact";
1297
+ term: string;
1298
+ }>>>;
1299
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1300
+ type: z.ZodLiteral<"exact">;
1301
+ term: z.ZodString;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ type: "exact";
1304
+ term: string;
1305
+ }, {
1306
+ type: "exact";
1307
+ term: string;
1308
+ }>>>;
1309
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1310
+ type: z.ZodLiteral<"anyOf">;
1311
+ terms: z.ZodArray<z.ZodString, "many">;
1312
+ }, "strip", z.ZodTypeAny, {
1313
+ type: "anyOf";
1314
+ terms: string[];
1315
+ }, {
1316
+ type: "anyOf";
1317
+ terms: string[];
1318
+ }>, z.ZodObject<{
1319
+ type: z.ZodLiteral<"not">;
1320
+ term: z.ZodString;
1321
+ }, "strip", z.ZodTypeAny, {
1322
+ type: "not";
1323
+ term: string;
1324
+ }, {
1325
+ type: "not";
1326
+ term: string;
1327
+ }>]>, "many">>>;
1328
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1329
+ }, "strip", z.ZodTypeAny, {
1330
+ status?: {
1331
+ type: "anyOf";
1332
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1333
+ } | {
1334
+ type: "exact";
1335
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1336
+ } | undefined;
1337
+ title?: string | undefined;
1338
+ data?: any;
1339
+ createdAt?: {
1340
+ type: "exact";
1341
+ term: string;
1342
+ } | {
1343
+ type: "range";
1344
+ gte: string;
1345
+ lte: string;
1346
+ } | undefined;
1347
+ createdBy?: {
1348
+ type: "exact";
1349
+ term: string;
1350
+ } | undefined;
1351
+ createdAtLocation?: {
1352
+ type: "exact";
1353
+ term: string;
1354
+ } | {
1355
+ type: "within";
1356
+ location: string;
1357
+ } | undefined;
1358
+ assignedTo?: {
1359
+ type: "exact";
1360
+ term: string;
1361
+ } | undefined;
1362
+ updatedAt?: {
1363
+ type: "exact";
1364
+ term: string;
1365
+ } | {
1366
+ type: "range";
1367
+ gte: string;
1368
+ lte: string;
1369
+ } | undefined;
1370
+ trackingId?: {
1371
+ type: "exact";
1372
+ term: string;
1373
+ } | undefined;
1374
+ updatedAtLocation?: {
1375
+ type: "exact";
1376
+ term: string;
1377
+ } | {
1378
+ type: "within";
1379
+ location: string;
1380
+ } | undefined;
1381
+ updatedBy?: {
1382
+ type: "exact";
1383
+ term: string;
1384
+ } | undefined;
1385
+ flags?: ({
1386
+ type: "anyOf";
1387
+ terms: string[];
1388
+ } | {
1389
+ type: "not";
1390
+ term: string;
1391
+ })[] | undefined;
1392
+ eventType?: string | undefined;
1393
+ }, {
1394
+ status?: {
1395
+ type: "anyOf";
1396
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1397
+ } | {
1398
+ type: "exact";
1399
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1400
+ } | undefined;
1401
+ title?: string | undefined;
1402
+ data?: any;
1403
+ createdAt?: {
1404
+ type: "exact";
1405
+ term: string;
1406
+ } | {
1407
+ type: "range";
1408
+ gte: string;
1409
+ lte: string;
1410
+ } | undefined;
1411
+ createdBy?: {
1412
+ type: "exact";
1413
+ term: string;
1414
+ } | undefined;
1415
+ createdAtLocation?: {
1416
+ type: "exact";
1417
+ term: string;
1418
+ } | {
1419
+ type: "within";
1420
+ location: string;
1421
+ } | undefined;
1422
+ assignedTo?: {
1423
+ type: "exact";
1424
+ term: string;
1425
+ } | undefined;
1426
+ updatedAt?: {
1427
+ type: "exact";
1428
+ term: string;
1429
+ } | {
1430
+ type: "range";
1431
+ gte: string;
1432
+ lte: string;
1433
+ } | undefined;
1434
+ trackingId?: {
1435
+ type: "exact";
1436
+ term: string;
1437
+ } | undefined;
1438
+ updatedAtLocation?: {
1439
+ type: "exact";
1440
+ term: string;
1441
+ } | {
1442
+ type: "within";
1443
+ location: string;
1444
+ } | undefined;
1445
+ updatedBy?: {
1446
+ type: "exact";
1447
+ term: string;
1448
+ } | undefined;
1449
+ flags?: ({
1450
+ type: "anyOf";
1451
+ terms: string[];
1452
+ } | {
1453
+ type: "not";
1454
+ term: string;
1455
+ })[] | undefined;
1456
+ eventType?: string | undefined;
1457
+ }>, "many">;
1458
+ }, "strip", z.ZodTypeAny, {
1459
+ type: "and";
1460
+ clauses: {
1461
+ status?: {
1462
+ type: "anyOf";
1463
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1464
+ } | {
1465
+ type: "exact";
1466
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1467
+ } | undefined;
1468
+ title?: string | undefined;
1469
+ data?: any;
1470
+ createdAt?: {
1471
+ type: "exact";
1472
+ term: string;
1473
+ } | {
1474
+ type: "range";
1475
+ gte: string;
1476
+ lte: string;
1477
+ } | undefined;
1478
+ createdBy?: {
1479
+ type: "exact";
1480
+ term: string;
1481
+ } | undefined;
1482
+ createdAtLocation?: {
1483
+ type: "exact";
1484
+ term: string;
1485
+ } | {
1486
+ type: "within";
1487
+ location: string;
1488
+ } | undefined;
1489
+ assignedTo?: {
1490
+ type: "exact";
1491
+ term: string;
1492
+ } | undefined;
1493
+ updatedAt?: {
1494
+ type: "exact";
1495
+ term: string;
1496
+ } | {
1497
+ type: "range";
1498
+ gte: string;
1499
+ lte: string;
1500
+ } | undefined;
1501
+ trackingId?: {
1502
+ type: "exact";
1503
+ term: string;
1504
+ } | undefined;
1505
+ updatedAtLocation?: {
1506
+ type: "exact";
1507
+ term: string;
1508
+ } | {
1509
+ type: "within";
1510
+ location: string;
1511
+ } | undefined;
1512
+ updatedBy?: {
1513
+ type: "exact";
1514
+ term: string;
1515
+ } | undefined;
1516
+ flags?: ({
1517
+ type: "anyOf";
1518
+ terms: string[];
1519
+ } | {
1520
+ type: "not";
1521
+ term: string;
1522
+ })[] | undefined;
1523
+ eventType?: string | undefined;
1524
+ }[];
1525
+ }, {
1526
+ type: "and";
1527
+ clauses: {
1528
+ status?: {
1529
+ type: "anyOf";
1530
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1531
+ } | {
1532
+ type: "exact";
1533
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1534
+ } | undefined;
1535
+ title?: string | undefined;
1536
+ data?: any;
1537
+ createdAt?: {
1538
+ type: "exact";
1539
+ term: string;
1540
+ } | {
1541
+ type: "range";
1542
+ gte: string;
1543
+ lte: string;
1544
+ } | undefined;
1545
+ createdBy?: {
1546
+ type: "exact";
1547
+ term: string;
1548
+ } | undefined;
1549
+ createdAtLocation?: {
1550
+ type: "exact";
1551
+ term: string;
1552
+ } | {
1553
+ type: "within";
1554
+ location: string;
1555
+ } | undefined;
1556
+ assignedTo?: {
1557
+ type: "exact";
1558
+ term: string;
1559
+ } | undefined;
1560
+ updatedAt?: {
1561
+ type: "exact";
1562
+ term: string;
1563
+ } | {
1564
+ type: "range";
1565
+ gte: string;
1566
+ lte: string;
1567
+ } | undefined;
1568
+ trackingId?: {
1569
+ type: "exact";
1570
+ term: string;
1571
+ } | undefined;
1572
+ updatedAtLocation?: {
1573
+ type: "exact";
1574
+ term: string;
1575
+ } | {
1576
+ type: "within";
1577
+ location: string;
1578
+ } | undefined;
1579
+ updatedBy?: {
1580
+ type: "exact";
1581
+ term: string;
1582
+ } | undefined;
1583
+ flags?: ({
1584
+ type: "anyOf";
1585
+ terms: string[];
1586
+ } | {
1587
+ type: "not";
1588
+ term: string;
1589
+ })[] | undefined;
1590
+ eventType?: string | undefined;
1591
+ }[];
1592
+ }>]>;
1593
+ export type QueryType = z.infer<typeof QueryType>;
1594
+ export type QueryExpression = z.infer<typeof QueryExpression>;
1595
+ export {};
58
1596
  //# sourceMappingURL=EventIndex.d.ts.map