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

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