@opencrvs/toolkit 1.8.0-rc.fe799b0 → 1.8.0-rc.fe87a15

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