@opencrvs/toolkit 1.8.0-rc.fca3e39 → 1.8.0-rc.fcb9386

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 (46) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +12639 -14167
  3. package/dist/commons/conditionals/conditionals.d.ts +32 -6
  4. package/dist/commons/conditionals/validate.d.ts +12 -17
  5. package/dist/commons/events/ActionConfig.d.ts +92869 -2005
  6. package/dist/commons/events/ActionDocument.d.ts +8019 -401
  7. package/dist/commons/events/ActionInput.d.ts +2365 -548
  8. package/dist/commons/events/ActionType.d.ts +26 -16
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  10. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  11. package/dist/commons/events/Conditional.d.ts +21 -5
  12. package/dist/commons/events/Constants.d.ts +2 -0
  13. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  14. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  15. package/dist/commons/events/Draft.d.ts +93 -60
  16. package/dist/commons/events/EventConfig.d.ts +42302 -1760
  17. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  18. package/dist/commons/events/EventDocument.d.ts +1225 -529
  19. package/dist/commons/events/EventIndex.d.ts +1328 -13
  20. package/dist/commons/events/EventMetadata.d.ts +270 -11
  21. package/dist/commons/events/FieldConfig.d.ts +4704 -786
  22. package/dist/commons/events/FieldType.d.ts +4 -3
  23. package/dist/commons/events/FieldTypeMapping.d.ts +33 -5
  24. package/dist/commons/events/FieldValue.d.ts +12 -7
  25. package/dist/commons/events/FormConfig.d.ts +43810 -73
  26. package/dist/commons/events/PageConfig.d.ts +10991 -0
  27. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  28. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  29. package/dist/commons/events/User.d.ts +31 -2
  30. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  31. package/dist/commons/events/WorkqueueConfig.d.ts +4525 -20
  32. package/dist/commons/events/defineConfig.d.ts +6560 -223
  33. package/dist/commons/events/event.d.ts +54 -0
  34. package/dist/commons/events/field.d.ts +82 -0
  35. package/dist/commons/events/index.d.ts +9 -1
  36. package/dist/commons/events/scopes.d.ts +45 -0
  37. package/dist/commons/events/serializer.d.ts +2 -0
  38. package/dist/commons/events/test.utils.d.ts +93 -327
  39. package/dist/commons/events/utils.d.ts +3701 -96
  40. package/dist/commons/events/utils.test.d.ts +2 -0
  41. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  42. package/dist/conditionals/index.js +210 -122
  43. package/dist/events/index.js +4464 -1981
  44. package/dist/scopes/index.d.ts +158 -1
  45. package/dist/scopes/index.js +152 -1
  46. 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,39 +12,353 @@ 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.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ acceptedAt: z.ZodString;
21
+ createdByRole: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ createdAt: string;
24
+ createdBy: string;
25
+ createdByRole: string;
26
+ acceptedAt: string;
27
+ createdAtLocation?: string | null | undefined;
28
+ }, {
29
+ createdAt: string;
30
+ createdBy: string;
31
+ createdByRole: string;
32
+ acceptedAt: string;
33
+ createdAtLocation?: string | null | undefined;
34
+ }>>>;
35
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
36
+ createdAt: z.ZodString;
37
+ createdBy: z.ZodString;
38
+ createdAtLocation: z.ZodOptional<z.ZodNullable<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
+ registrationNumber: string;
48
+ acceptedAt: string;
49
+ createdAtLocation?: string | null | undefined;
50
+ }, {
51
+ createdAt: string;
52
+ createdBy: string;
53
+ createdByRole: string;
54
+ registrationNumber: string;
55
+ acceptedAt: string;
56
+ createdAtLocation?: string | null | undefined;
57
+ }>>>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ DECLARED?: {
60
+ createdAt: string;
61
+ createdBy: string;
62
+ createdByRole: string;
63
+ acceptedAt: string;
64
+ createdAtLocation?: string | null | undefined;
65
+ } | null | undefined;
66
+ REGISTERED?: {
67
+ createdAt: string;
68
+ createdBy: string;
69
+ createdByRole: string;
70
+ registrationNumber: string;
71
+ acceptedAt: string;
72
+ createdAtLocation?: string | null | undefined;
73
+ } | null | undefined;
74
+ }, {
75
+ DECLARED?: {
76
+ createdAt: string;
77
+ createdBy: string;
78
+ createdByRole: string;
79
+ acceptedAt: string;
80
+ createdAtLocation?: string | null | undefined;
81
+ } | null | undefined;
82
+ REGISTERED?: {
83
+ createdAt: string;
84
+ createdBy: string;
85
+ createdByRole: string;
86
+ registrationNumber: string;
87
+ acceptedAt: string;
88
+ createdAtLocation?: string | null | undefined;
89
+ } | null | undefined;
90
+ }>;
15
91
  createdAt: z.ZodString;
92
+ dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
93
  createdBy: z.ZodString;
17
- createdAtLocation: z.ZodString;
18
- modifiedAt: z.ZodString;
94
+ updatedByUserRole: z.ZodString;
95
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ createdBySignature: z.ZodOptional<z.ZodNullable<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>;
29
224
  createdAt: string;
30
225
  createdBy: string;
31
- createdAtLocation: string;
226
+ declaration: Record<string, string | number | boolean | {
227
+ type: string;
228
+ filename: string;
229
+ originalFilename: string;
230
+ } | {
231
+ country: string;
232
+ district: string;
233
+ addressType: "DOMESTIC";
234
+ province: string;
235
+ urbanOrRural: "URBAN";
236
+ number?: string | undefined;
237
+ town?: string | undefined;
238
+ residentialArea?: string | undefined;
239
+ street?: string | undefined;
240
+ zipCode?: string | undefined;
241
+ } | {
242
+ country: string;
243
+ district: string;
244
+ addressType: "DOMESTIC";
245
+ province: string;
246
+ urbanOrRural: "RURAL";
247
+ village?: string | undefined;
248
+ } | {
249
+ country: string;
250
+ state: string;
251
+ addressType: "INTERNATIONAL";
252
+ district2: string;
253
+ cityOrTown?: string | undefined;
254
+ addressLine1?: string | undefined;
255
+ addressLine2?: string | undefined;
256
+ addressLine3?: string | undefined;
257
+ postcodeOrZip?: string | undefined;
258
+ } | {
259
+ type: string;
260
+ option: string;
261
+ filename: string;
262
+ originalFilename: string;
263
+ }[] | [string, string] | undefined>;
264
+ updatedAt: string;
32
265
  trackingId: string;
33
- modifiedAt: string;
34
- updatedBy: string;
266
+ legalStatuses: {
267
+ DECLARED?: {
268
+ createdAt: string;
269
+ createdBy: string;
270
+ createdByRole: string;
271
+ acceptedAt: string;
272
+ createdAtLocation?: string | null | undefined;
273
+ } | null | undefined;
274
+ REGISTERED?: {
275
+ createdAt: string;
276
+ createdBy: string;
277
+ createdByRole: string;
278
+ registrationNumber: string;
279
+ acceptedAt: string;
280
+ createdAtLocation?: string | null | undefined;
281
+ } | null | undefined;
282
+ };
283
+ updatedByUserRole: string;
284
+ flags: string[];
285
+ createdBySignature?: string | null | undefined;
286
+ createdAtLocation?: string | null | undefined;
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>;
41
295
  createdAt: string;
42
296
  createdBy: string;
43
- createdAtLocation: string;
297
+ declaration: Record<string, string | number | boolean | {
298
+ type: string;
299
+ filename: string;
300
+ originalFilename: string;
301
+ } | {
302
+ country: string;
303
+ district: string;
304
+ addressType: "DOMESTIC";
305
+ province: string;
306
+ urbanOrRural: "URBAN";
307
+ number?: string | undefined;
308
+ town?: string | undefined;
309
+ residentialArea?: string | undefined;
310
+ street?: string | undefined;
311
+ zipCode?: string | undefined;
312
+ } | {
313
+ country: string;
314
+ district: string;
315
+ addressType: "DOMESTIC";
316
+ province: string;
317
+ urbanOrRural: "RURAL";
318
+ village?: string | undefined;
319
+ } | {
320
+ country: string;
321
+ state: string;
322
+ addressType: "INTERNATIONAL";
323
+ district2: string;
324
+ cityOrTown?: string | undefined;
325
+ addressLine1?: string | undefined;
326
+ addressLine2?: string | undefined;
327
+ addressLine3?: string | undefined;
328
+ postcodeOrZip?: string | undefined;
329
+ } | {
330
+ type: string;
331
+ option: string;
332
+ filename: string;
333
+ originalFilename: string;
334
+ }[] | [string, string] | undefined>;
335
+ updatedAt: string;
44
336
  trackingId: string;
45
- modifiedAt: string;
46
- updatedBy: string;
337
+ legalStatuses: {
338
+ DECLARED?: {
339
+ createdAt: string;
340
+ createdBy: string;
341
+ createdByRole: string;
342
+ acceptedAt: string;
343
+ createdAtLocation?: string | null | undefined;
344
+ } | null | undefined;
345
+ REGISTERED?: {
346
+ createdAt: string;
347
+ createdBy: string;
348
+ createdByRole: string;
349
+ registrationNumber: string;
350
+ acceptedAt: string;
351
+ createdAtLocation?: string | null | undefined;
352
+ } | null | undefined;
353
+ };
354
+ updatedByUserRole: string;
355
+ flags: string[];
356
+ createdBySignature?: string | null | undefined;
357
+ createdAtLocation?: string | null | undefined;
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,1005 @@ 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
+ export 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
+ export 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
+ export 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
+ export declare const ExactStatus: z.ZodObject<{
403
+ type: z.ZodLiteral<"exact">;
404
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ type: "exact";
407
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
408
+ }, {
409
+ type: "exact";
410
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
411
+ }>;
412
+ export declare const AnyOfStatus: z.ZodObject<{
413
+ type: z.ZodLiteral<"anyOf">;
414
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
415
+ }, "strip", z.ZodTypeAny, {
416
+ type: "anyOf";
417
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
418
+ }, {
419
+ type: "anyOf";
420
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
421
+ }>;
422
+ export declare const Range: z.ZodObject<{
423
+ type: z.ZodLiteral<"range">;
424
+ gte: z.ZodString;
425
+ lte: z.ZodString;
426
+ }, "strip", z.ZodTypeAny, {
427
+ type: "range";
428
+ gte: string;
429
+ lte: string;
430
+ }, {
431
+ type: "range";
432
+ gte: string;
433
+ lte: string;
434
+ }>;
435
+ export declare const Not: z.ZodObject<{
436
+ type: z.ZodLiteral<"not">;
437
+ term: z.ZodString;
438
+ }, "strip", z.ZodTypeAny, {
439
+ type: "not";
440
+ term: string;
441
+ }, {
442
+ type: "not";
443
+ term: string;
444
+ }>;
445
+ export declare const Within: z.ZodObject<{
446
+ type: z.ZodLiteral<"within">;
447
+ location: z.ZodString;
448
+ }, "strip", z.ZodTypeAny, {
449
+ type: "within";
450
+ location: string;
451
+ }, {
452
+ type: "within";
453
+ location: string;
454
+ }>;
455
+ export declare const DateCondition: z.ZodUnion<[z.ZodObject<{
456
+ type: z.ZodLiteral<"exact">;
457
+ term: z.ZodString;
458
+ }, "strip", z.ZodTypeAny, {
459
+ type: "exact";
460
+ term: string;
461
+ }, {
462
+ type: "exact";
463
+ term: string;
464
+ }>, z.ZodObject<{
465
+ type: z.ZodLiteral<"range">;
466
+ gte: z.ZodString;
467
+ lte: z.ZodString;
468
+ }, "strip", z.ZodTypeAny, {
469
+ type: "range";
470
+ gte: string;
471
+ lte: string;
472
+ }, {
473
+ type: "range";
474
+ gte: string;
475
+ lte: string;
476
+ }>]>;
477
+ export declare const QueryInput: ZodType;
478
+ 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>;
479
+ type QueryMap = {
480
+ [key: string]: BaseInput | QueryMap;
481
+ };
482
+ export type QueryInputType = BaseInput | QueryMap;
483
+ export declare const QueryExpression: z.ZodObject<{
484
+ eventType: z.ZodOptional<z.ZodString>;
485
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
486
+ type: z.ZodLiteral<"anyOf">;
487
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
488
+ }, "strip", z.ZodTypeAny, {
489
+ type: "anyOf";
490
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
491
+ }, {
492
+ type: "anyOf";
493
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
494
+ }>, z.ZodObject<{
495
+ type: z.ZodLiteral<"exact">;
496
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ type: "exact";
499
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
500
+ }, {
501
+ type: "exact";
502
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
503
+ }>]>>>;
504
+ createdAt: 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
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
527
+ type: z.ZodLiteral<"exact">;
528
+ term: z.ZodString;
529
+ }, "strip", z.ZodTypeAny, {
530
+ type: "exact";
531
+ term: string;
532
+ }, {
533
+ type: "exact";
534
+ term: string;
535
+ }>, z.ZodObject<{
536
+ type: z.ZodLiteral<"range">;
537
+ gte: z.ZodString;
538
+ lte: z.ZodString;
539
+ }, "strip", z.ZodTypeAny, {
540
+ type: "range";
541
+ gte: string;
542
+ lte: string;
543
+ }, {
544
+ type: "range";
545
+ gte: string;
546
+ lte: string;
547
+ }>]>>>;
548
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
549
+ type: z.ZodLiteral<"exact">;
550
+ term: z.ZodString;
551
+ }, "strip", z.ZodTypeAny, {
552
+ type: "exact";
553
+ term: string;
554
+ }, {
555
+ type: "exact";
556
+ term: string;
557
+ }>, z.ZodObject<{
558
+ type: z.ZodLiteral<"range">;
559
+ gte: z.ZodString;
560
+ lte: z.ZodString;
561
+ }, "strip", z.ZodTypeAny, {
562
+ type: "range";
563
+ gte: string;
564
+ lte: string;
565
+ }, {
566
+ type: "range";
567
+ gte: string;
568
+ lte: string;
569
+ }>]>>>;
570
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
571
+ type: z.ZodLiteral<"within">;
572
+ location: z.ZodString;
573
+ }, "strip", z.ZodTypeAny, {
574
+ type: "within";
575
+ location: string;
576
+ }, {
577
+ type: "within";
578
+ location: string;
579
+ }>, z.ZodObject<{
580
+ type: z.ZodLiteral<"exact">;
581
+ term: z.ZodString;
582
+ }, "strip", z.ZodTypeAny, {
583
+ type: "exact";
584
+ term: string;
585
+ }, {
586
+ type: "exact";
587
+ term: string;
588
+ }>]>>>;
589
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
590
+ type: z.ZodLiteral<"within">;
591
+ location: z.ZodString;
592
+ }, "strip", z.ZodTypeAny, {
593
+ type: "within";
594
+ location: string;
595
+ }, {
596
+ type: "within";
597
+ location: string;
598
+ }>, z.ZodObject<{
599
+ type: z.ZodLiteral<"exact">;
600
+ term: z.ZodString;
601
+ }, "strip", z.ZodTypeAny, {
602
+ type: "exact";
603
+ term: string;
604
+ }, {
605
+ type: "exact";
606
+ term: string;
607
+ }>]>>>;
608
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
609
+ type: z.ZodLiteral<"within">;
610
+ location: z.ZodString;
611
+ }, "strip", z.ZodTypeAny, {
612
+ type: "within";
613
+ location: string;
614
+ }, {
615
+ type: "within";
616
+ location: string;
617
+ }>, z.ZodObject<{
618
+ type: z.ZodLiteral<"exact">;
619
+ term: z.ZodString;
620
+ }, "strip", z.ZodTypeAny, {
621
+ type: "exact";
622
+ term: string;
623
+ }, {
624
+ type: "exact";
625
+ term: string;
626
+ }>]>>>;
627
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
628
+ type: z.ZodLiteral<"exact">;
629
+ term: z.ZodString;
630
+ }, "strip", z.ZodTypeAny, {
631
+ type: "exact";
632
+ term: string;
633
+ }, {
634
+ type: "exact";
635
+ term: string;
636
+ }>>>;
637
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
638
+ type: z.ZodLiteral<"exact">;
639
+ term: z.ZodString;
640
+ }, "strip", z.ZodTypeAny, {
641
+ type: "exact";
642
+ term: string;
643
+ }, {
644
+ type: "exact";
645
+ term: string;
646
+ }>>>;
647
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
648
+ type: z.ZodLiteral<"exact">;
649
+ term: z.ZodString;
650
+ }, "strip", z.ZodTypeAny, {
651
+ type: "exact";
652
+ term: string;
653
+ }, {
654
+ type: "exact";
655
+ term: string;
656
+ }>>>;
657
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
658
+ type: z.ZodLiteral<"exact">;
659
+ term: z.ZodString;
660
+ }, "strip", z.ZodTypeAny, {
661
+ type: "exact";
662
+ term: string;
663
+ }, {
664
+ type: "exact";
665
+ term: string;
666
+ }>>>;
667
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
668
+ type: z.ZodLiteral<"anyOf">;
669
+ terms: z.ZodArray<z.ZodString, "many">;
670
+ }, "strip", z.ZodTypeAny, {
671
+ type: "anyOf";
672
+ terms: string[];
673
+ }, {
674
+ type: "anyOf";
675
+ terms: string[];
676
+ }>, z.ZodObject<{
677
+ type: z.ZodLiteral<"not">;
678
+ term: z.ZodString;
679
+ }, "strip", z.ZodTypeAny, {
680
+ type: "not";
681
+ term: string;
682
+ }, {
683
+ type: "not";
684
+ term: string;
685
+ }>]>, "many">>>;
686
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
687
+ }, "strip", z.ZodTypeAny, {
688
+ status?: {
689
+ type: "exact";
690
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
691
+ } | {
692
+ type: "anyOf";
693
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
694
+ } | undefined;
695
+ data?: any;
696
+ createdAt?: {
697
+ type: "exact";
698
+ term: string;
699
+ } | {
700
+ type: "range";
701
+ gte: string;
702
+ lte: string;
703
+ } | undefined;
704
+ createdBy?: {
705
+ type: "exact";
706
+ term: string;
707
+ } | undefined;
708
+ createdAtLocation?: {
709
+ type: "exact";
710
+ term: string;
711
+ } | {
712
+ type: "within";
713
+ location: string;
714
+ } | undefined;
715
+ assignedTo?: {
716
+ type: "exact";
717
+ term: string;
718
+ } | undefined;
719
+ updatedAt?: {
720
+ type: "exact";
721
+ term: string;
722
+ } | {
723
+ type: "range";
724
+ gte: string;
725
+ lte: string;
726
+ } | undefined;
727
+ trackingId?: {
728
+ type: "exact";
729
+ term: string;
730
+ } | undefined;
731
+ updatedAtLocation?: {
732
+ type: "exact";
733
+ term: string;
734
+ } | {
735
+ type: "within";
736
+ location: string;
737
+ } | undefined;
738
+ updatedBy?: {
739
+ type: "exact";
740
+ term: string;
741
+ } | undefined;
742
+ flags?: ({
743
+ type: "anyOf";
744
+ terms: string[];
745
+ } | {
746
+ type: "not";
747
+ term: string;
748
+ })[] | undefined;
749
+ eventType?: string | undefined;
750
+ 'legalStatus.REGISTERED.createdAt'?: {
751
+ type: "exact";
752
+ term: string;
753
+ } | {
754
+ type: "range";
755
+ gte: string;
756
+ lte: string;
757
+ } | undefined;
758
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
759
+ type: "exact";
760
+ term: string;
761
+ } | {
762
+ type: "within";
763
+ location: string;
764
+ } | undefined;
765
+ }, {
766
+ status?: {
767
+ type: "exact";
768
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
769
+ } | {
770
+ type: "anyOf";
771
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
772
+ } | undefined;
773
+ data?: any;
774
+ createdAt?: {
775
+ type: "exact";
776
+ term: string;
777
+ } | {
778
+ type: "range";
779
+ gte: string;
780
+ lte: string;
781
+ } | undefined;
782
+ createdBy?: {
783
+ type: "exact";
784
+ term: string;
785
+ } | undefined;
786
+ createdAtLocation?: {
787
+ type: "exact";
788
+ term: string;
789
+ } | {
790
+ type: "within";
791
+ location: string;
792
+ } | undefined;
793
+ assignedTo?: {
794
+ type: "exact";
795
+ term: string;
796
+ } | undefined;
797
+ updatedAt?: {
798
+ type: "exact";
799
+ term: string;
800
+ } | {
801
+ type: "range";
802
+ gte: string;
803
+ lte: string;
804
+ } | undefined;
805
+ trackingId?: {
806
+ type: "exact";
807
+ term: string;
808
+ } | undefined;
809
+ updatedAtLocation?: {
810
+ type: "exact";
811
+ term: string;
812
+ } | {
813
+ type: "within";
814
+ location: string;
815
+ } | undefined;
816
+ updatedBy?: {
817
+ type: "exact";
818
+ term: string;
819
+ } | undefined;
820
+ flags?: ({
821
+ type: "anyOf";
822
+ terms: string[];
823
+ } | {
824
+ type: "not";
825
+ term: string;
826
+ })[] | undefined;
827
+ eventType?: string | undefined;
828
+ 'legalStatus.REGISTERED.createdAt'?: {
829
+ type: "exact";
830
+ term: string;
831
+ } | {
832
+ type: "range";
833
+ gte: string;
834
+ lte: string;
835
+ } | undefined;
836
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
837
+ type: "exact";
838
+ term: string;
839
+ } | {
840
+ type: "within";
841
+ location: string;
842
+ } | undefined;
843
+ }>;
844
+ export declare const QueryType: z.ZodObject<{
845
+ type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
846
+ clauses: z.ZodEffects<z.ZodArray<z.ZodObject<{
847
+ eventType: z.ZodOptional<z.ZodString>;
848
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
849
+ type: z.ZodLiteral<"anyOf">;
850
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
851
+ }, "strip", z.ZodTypeAny, {
852
+ type: "anyOf";
853
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
854
+ }, {
855
+ type: "anyOf";
856
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
857
+ }>, z.ZodObject<{
858
+ type: z.ZodLiteral<"exact">;
859
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
860
+ }, "strip", z.ZodTypeAny, {
861
+ type: "exact";
862
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
863
+ }, {
864
+ type: "exact";
865
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
866
+ }>]>>>;
867
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
868
+ type: z.ZodLiteral<"exact">;
869
+ term: z.ZodString;
870
+ }, "strip", z.ZodTypeAny, {
871
+ type: "exact";
872
+ term: string;
873
+ }, {
874
+ type: "exact";
875
+ term: string;
876
+ }>, z.ZodObject<{
877
+ type: z.ZodLiteral<"range">;
878
+ gte: z.ZodString;
879
+ lte: z.ZodString;
880
+ }, "strip", z.ZodTypeAny, {
881
+ type: "range";
882
+ gte: string;
883
+ lte: string;
884
+ }, {
885
+ type: "range";
886
+ gte: string;
887
+ lte: string;
888
+ }>]>>>;
889
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
890
+ type: z.ZodLiteral<"exact">;
891
+ term: z.ZodString;
892
+ }, "strip", z.ZodTypeAny, {
893
+ type: "exact";
894
+ term: string;
895
+ }, {
896
+ type: "exact";
897
+ term: string;
898
+ }>, z.ZodObject<{
899
+ type: z.ZodLiteral<"range">;
900
+ gte: z.ZodString;
901
+ lte: z.ZodString;
902
+ }, "strip", z.ZodTypeAny, {
903
+ type: "range";
904
+ gte: string;
905
+ lte: string;
906
+ }, {
907
+ type: "range";
908
+ gte: string;
909
+ lte: string;
910
+ }>]>>>;
911
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
912
+ type: z.ZodLiteral<"exact">;
913
+ term: z.ZodString;
914
+ }, "strip", z.ZodTypeAny, {
915
+ type: "exact";
916
+ term: string;
917
+ }, {
918
+ type: "exact";
919
+ term: string;
920
+ }>, z.ZodObject<{
921
+ type: z.ZodLiteral<"range">;
922
+ gte: z.ZodString;
923
+ lte: z.ZodString;
924
+ }, "strip", z.ZodTypeAny, {
925
+ type: "range";
926
+ gte: string;
927
+ lte: string;
928
+ }, {
929
+ type: "range";
930
+ gte: string;
931
+ lte: string;
932
+ }>]>>>;
933
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
934
+ type: z.ZodLiteral<"within">;
935
+ location: z.ZodString;
936
+ }, "strip", z.ZodTypeAny, {
937
+ type: "within";
938
+ location: string;
939
+ }, {
940
+ type: "within";
941
+ location: string;
942
+ }>, z.ZodObject<{
943
+ type: z.ZodLiteral<"exact">;
944
+ term: z.ZodString;
945
+ }, "strip", z.ZodTypeAny, {
946
+ type: "exact";
947
+ term: string;
948
+ }, {
949
+ type: "exact";
950
+ term: string;
951
+ }>]>>>;
952
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
953
+ type: z.ZodLiteral<"within">;
954
+ location: z.ZodString;
955
+ }, "strip", z.ZodTypeAny, {
956
+ type: "within";
957
+ location: string;
958
+ }, {
959
+ type: "within";
960
+ location: string;
961
+ }>, z.ZodObject<{
962
+ type: z.ZodLiteral<"exact">;
963
+ term: z.ZodString;
964
+ }, "strip", z.ZodTypeAny, {
965
+ type: "exact";
966
+ term: string;
967
+ }, {
968
+ type: "exact";
969
+ term: string;
970
+ }>]>>>;
971
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
972
+ type: z.ZodLiteral<"within">;
973
+ location: z.ZodString;
974
+ }, "strip", z.ZodTypeAny, {
975
+ type: "within";
976
+ location: string;
977
+ }, {
978
+ type: "within";
979
+ location: string;
980
+ }>, z.ZodObject<{
981
+ type: z.ZodLiteral<"exact">;
982
+ term: z.ZodString;
983
+ }, "strip", z.ZodTypeAny, {
984
+ type: "exact";
985
+ term: string;
986
+ }, {
987
+ type: "exact";
988
+ term: string;
989
+ }>]>>>;
990
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
991
+ type: z.ZodLiteral<"exact">;
992
+ term: z.ZodString;
993
+ }, "strip", z.ZodTypeAny, {
994
+ type: "exact";
995
+ term: string;
996
+ }, {
997
+ type: "exact";
998
+ term: string;
999
+ }>>>;
1000
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1001
+ type: z.ZodLiteral<"exact">;
1002
+ term: z.ZodString;
1003
+ }, "strip", z.ZodTypeAny, {
1004
+ type: "exact";
1005
+ term: string;
1006
+ }, {
1007
+ type: "exact";
1008
+ term: string;
1009
+ }>>>;
1010
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1011
+ type: z.ZodLiteral<"exact">;
1012
+ term: z.ZodString;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ type: "exact";
1015
+ term: string;
1016
+ }, {
1017
+ type: "exact";
1018
+ term: string;
1019
+ }>>>;
1020
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1021
+ type: z.ZodLiteral<"exact">;
1022
+ term: z.ZodString;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ type: "exact";
1025
+ term: string;
1026
+ }, {
1027
+ type: "exact";
1028
+ term: string;
1029
+ }>>>;
1030
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1031
+ type: z.ZodLiteral<"anyOf">;
1032
+ terms: z.ZodArray<z.ZodString, "many">;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ type: "anyOf";
1035
+ terms: string[];
1036
+ }, {
1037
+ type: "anyOf";
1038
+ terms: string[];
1039
+ }>, z.ZodObject<{
1040
+ type: z.ZodLiteral<"not">;
1041
+ term: z.ZodString;
1042
+ }, "strip", z.ZodTypeAny, {
1043
+ type: "not";
1044
+ term: string;
1045
+ }, {
1046
+ type: "not";
1047
+ term: string;
1048
+ }>]>, "many">>>;
1049
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1050
+ }, "strip", z.ZodTypeAny, {
1051
+ status?: {
1052
+ type: "exact";
1053
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1054
+ } | {
1055
+ type: "anyOf";
1056
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1057
+ } | undefined;
1058
+ data?: any;
1059
+ createdAt?: {
1060
+ type: "exact";
1061
+ term: string;
1062
+ } | {
1063
+ type: "range";
1064
+ gte: string;
1065
+ lte: string;
1066
+ } | undefined;
1067
+ createdBy?: {
1068
+ type: "exact";
1069
+ term: string;
1070
+ } | undefined;
1071
+ createdAtLocation?: {
1072
+ type: "exact";
1073
+ term: string;
1074
+ } | {
1075
+ type: "within";
1076
+ location: string;
1077
+ } | undefined;
1078
+ assignedTo?: {
1079
+ type: "exact";
1080
+ term: string;
1081
+ } | undefined;
1082
+ updatedAt?: {
1083
+ type: "exact";
1084
+ term: string;
1085
+ } | {
1086
+ type: "range";
1087
+ gte: string;
1088
+ lte: string;
1089
+ } | undefined;
1090
+ trackingId?: {
1091
+ type: "exact";
1092
+ term: string;
1093
+ } | undefined;
1094
+ updatedAtLocation?: {
1095
+ type: "exact";
1096
+ term: string;
1097
+ } | {
1098
+ type: "within";
1099
+ location: string;
1100
+ } | undefined;
1101
+ updatedBy?: {
1102
+ type: "exact";
1103
+ term: string;
1104
+ } | undefined;
1105
+ flags?: ({
1106
+ type: "anyOf";
1107
+ terms: string[];
1108
+ } | {
1109
+ type: "not";
1110
+ term: string;
1111
+ })[] | undefined;
1112
+ eventType?: string | undefined;
1113
+ 'legalStatus.REGISTERED.createdAt'?: {
1114
+ type: "exact";
1115
+ term: string;
1116
+ } | {
1117
+ type: "range";
1118
+ gte: string;
1119
+ lte: string;
1120
+ } | undefined;
1121
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1122
+ type: "exact";
1123
+ term: string;
1124
+ } | {
1125
+ type: "within";
1126
+ location: string;
1127
+ } | undefined;
1128
+ }, {
1129
+ status?: {
1130
+ type: "exact";
1131
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1132
+ } | {
1133
+ type: "anyOf";
1134
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1135
+ } | undefined;
1136
+ data?: any;
1137
+ createdAt?: {
1138
+ type: "exact";
1139
+ term: string;
1140
+ } | {
1141
+ type: "range";
1142
+ gte: string;
1143
+ lte: string;
1144
+ } | undefined;
1145
+ createdBy?: {
1146
+ type: "exact";
1147
+ term: string;
1148
+ } | undefined;
1149
+ createdAtLocation?: {
1150
+ type: "exact";
1151
+ term: string;
1152
+ } | {
1153
+ type: "within";
1154
+ location: string;
1155
+ } | undefined;
1156
+ assignedTo?: {
1157
+ type: "exact";
1158
+ term: string;
1159
+ } | undefined;
1160
+ updatedAt?: {
1161
+ type: "exact";
1162
+ term: string;
1163
+ } | {
1164
+ type: "range";
1165
+ gte: string;
1166
+ lte: string;
1167
+ } | undefined;
1168
+ trackingId?: {
1169
+ type: "exact";
1170
+ term: string;
1171
+ } | undefined;
1172
+ updatedAtLocation?: {
1173
+ type: "exact";
1174
+ term: string;
1175
+ } | {
1176
+ type: "within";
1177
+ location: string;
1178
+ } | undefined;
1179
+ updatedBy?: {
1180
+ type: "exact";
1181
+ term: string;
1182
+ } | undefined;
1183
+ flags?: ({
1184
+ type: "anyOf";
1185
+ terms: string[];
1186
+ } | {
1187
+ type: "not";
1188
+ term: string;
1189
+ })[] | undefined;
1190
+ eventType?: string | undefined;
1191
+ 'legalStatus.REGISTERED.createdAt'?: {
1192
+ type: "exact";
1193
+ term: string;
1194
+ } | {
1195
+ type: "range";
1196
+ gte: string;
1197
+ lte: string;
1198
+ } | undefined;
1199
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1200
+ type: "exact";
1201
+ term: string;
1202
+ } | {
1203
+ type: "within";
1204
+ location: string;
1205
+ } | undefined;
1206
+ }>, "many">, {
1207
+ status?: {
1208
+ type: "exact";
1209
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1210
+ } | {
1211
+ type: "anyOf";
1212
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1213
+ } | undefined;
1214
+ data?: any;
1215
+ createdAt?: {
1216
+ type: "exact";
1217
+ term: string;
1218
+ } | {
1219
+ type: "range";
1220
+ gte: string;
1221
+ lte: string;
1222
+ } | undefined;
1223
+ createdBy?: {
1224
+ type: "exact";
1225
+ term: string;
1226
+ } | undefined;
1227
+ createdAtLocation?: {
1228
+ type: "exact";
1229
+ term: string;
1230
+ } | {
1231
+ type: "within";
1232
+ location: string;
1233
+ } | undefined;
1234
+ assignedTo?: {
1235
+ type: "exact";
1236
+ term: string;
1237
+ } | undefined;
1238
+ updatedAt?: {
1239
+ type: "exact";
1240
+ term: string;
1241
+ } | {
1242
+ type: "range";
1243
+ gte: string;
1244
+ lte: string;
1245
+ } | undefined;
1246
+ trackingId?: {
1247
+ type: "exact";
1248
+ term: string;
1249
+ } | undefined;
1250
+ updatedAtLocation?: {
1251
+ type: "exact";
1252
+ term: string;
1253
+ } | {
1254
+ type: "within";
1255
+ location: string;
1256
+ } | undefined;
1257
+ updatedBy?: {
1258
+ type: "exact";
1259
+ term: string;
1260
+ } | undefined;
1261
+ flags?: ({
1262
+ type: "anyOf";
1263
+ terms: string[];
1264
+ } | {
1265
+ type: "not";
1266
+ term: string;
1267
+ })[] | undefined;
1268
+ eventType?: string | undefined;
1269
+ 'legalStatus.REGISTERED.createdAt'?: {
1270
+ type: "exact";
1271
+ term: string;
1272
+ } | {
1273
+ type: "range";
1274
+ gte: string;
1275
+ lte: string;
1276
+ } | undefined;
1277
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1278
+ type: "exact";
1279
+ term: string;
1280
+ } | {
1281
+ type: "within";
1282
+ location: string;
1283
+ } | undefined;
1284
+ }[], unknown>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ type: "and" | "or";
1287
+ clauses: {
1288
+ status?: {
1289
+ type: "exact";
1290
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1291
+ } | {
1292
+ type: "anyOf";
1293
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1294
+ } | undefined;
1295
+ data?: any;
1296
+ createdAt?: {
1297
+ type: "exact";
1298
+ term: string;
1299
+ } | {
1300
+ type: "range";
1301
+ gte: string;
1302
+ lte: string;
1303
+ } | undefined;
1304
+ createdBy?: {
1305
+ type: "exact";
1306
+ term: string;
1307
+ } | undefined;
1308
+ createdAtLocation?: {
1309
+ type: "exact";
1310
+ term: string;
1311
+ } | {
1312
+ type: "within";
1313
+ location: string;
1314
+ } | undefined;
1315
+ assignedTo?: {
1316
+ type: "exact";
1317
+ term: string;
1318
+ } | undefined;
1319
+ updatedAt?: {
1320
+ type: "exact";
1321
+ term: string;
1322
+ } | {
1323
+ type: "range";
1324
+ gte: string;
1325
+ lte: string;
1326
+ } | undefined;
1327
+ trackingId?: {
1328
+ type: "exact";
1329
+ term: string;
1330
+ } | undefined;
1331
+ updatedAtLocation?: {
1332
+ type: "exact";
1333
+ term: string;
1334
+ } | {
1335
+ type: "within";
1336
+ location: string;
1337
+ } | undefined;
1338
+ updatedBy?: {
1339
+ type: "exact";
1340
+ term: string;
1341
+ } | undefined;
1342
+ flags?: ({
1343
+ type: "anyOf";
1344
+ terms: string[];
1345
+ } | {
1346
+ type: "not";
1347
+ term: string;
1348
+ })[] | undefined;
1349
+ eventType?: string | undefined;
1350
+ 'legalStatus.REGISTERED.createdAt'?: {
1351
+ type: "exact";
1352
+ term: string;
1353
+ } | {
1354
+ type: "range";
1355
+ gte: string;
1356
+ lte: string;
1357
+ } | undefined;
1358
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1359
+ type: "exact";
1360
+ term: string;
1361
+ } | {
1362
+ type: "within";
1363
+ location: string;
1364
+ } | undefined;
1365
+ }[];
1366
+ }, {
1367
+ type: "and" | "or";
1368
+ clauses?: unknown;
1369
+ }>;
1370
+ export type QueryType = z.infer<typeof QueryType>;
1371
+ export type QueryExpression = z.infer<typeof QueryExpression>;
1372
+ export {};
58
1373
  //# sourceMappingURL=EventIndex.d.ts.map