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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/commons/api/router.d.ts +10585 -4200
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/events/ActionConfig.d.ts +97080 -1720
  4. package/dist/commons/events/ActionDocument.d.ts +542 -211
  5. package/dist/commons/events/ActionInput.d.ts +248 -240
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  7. package/dist/commons/events/Draft.d.ts +33 -20
  8. package/dist/commons/events/EventConfig.d.ts +46237 -1398
  9. package/dist/commons/events/EventDocument.d.ts +337 -159
  10. package/dist/commons/events/EventIndex.d.ts +1735 -16
  11. package/dist/commons/events/EventInput.d.ts +13 -0
  12. package/dist/commons/events/EventMetadata.d.ts +274 -14
  13. package/dist/commons/events/FieldConfig.d.ts +4229 -744
  14. package/dist/commons/events/FieldType.d.ts +3 -3
  15. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  16. package/dist/commons/events/FieldValue.d.ts +7 -4
  17. package/dist/commons/events/FormConfig.d.ts +43591 -439
  18. package/dist/commons/events/PageConfig.d.ts +10860 -204
  19. package/dist/commons/events/SummaryConfig.d.ts +17 -47
  20. package/dist/commons/events/WorkqueueConfig.d.ts +1549 -19
  21. package/dist/commons/events/defineConfig.d.ts +7199 -27
  22. package/dist/commons/events/event.d.ts +54 -0
  23. package/dist/commons/events/field.d.ts +82 -0
  24. package/dist/commons/events/index.d.ts +2 -0
  25. package/dist/commons/events/scopes.d.ts +21 -1
  26. package/dist/commons/events/test.utils.d.ts +10 -47
  27. package/dist/commons/events/utils.d.ts +3665 -67
  28. package/dist/conditionals/index.js +36 -33
  29. package/dist/events/index.js +1771 -966
  30. package/dist/scopes/index.d.ts +158 -1
  31. package/dist/scopes/index.js +152 -1
  32. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z, ZodType } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
3
  id: z.ZodString;
4
4
  type: z.ZodString;
@@ -12,45 +12,350 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
12
12
  readonly REJECTED: "REJECTED";
13
13
  readonly ARCHIVED: "ARCHIVED";
14
14
  }>;
15
+ legalStatuses: z.ZodObject<{
16
+ DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
+ createdAt: z.ZodString;
18
+ createdBy: z.ZodString;
19
+ createdAtLocation: z.ZodString;
20
+ acceptedAt: z.ZodString;
21
+ createdByRole: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ createdAt: string;
24
+ createdBy: string;
25
+ createdByRole: string;
26
+ createdAtLocation: string;
27
+ acceptedAt: string;
28
+ }, {
29
+ createdAt: string;
30
+ createdBy: string;
31
+ createdByRole: string;
32
+ createdAtLocation: string;
33
+ acceptedAt: string;
34
+ }>>>;
35
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
36
+ createdAt: z.ZodString;
37
+ createdBy: z.ZodString;
38
+ createdAtLocation: z.ZodString;
39
+ acceptedAt: z.ZodString;
40
+ createdByRole: z.ZodString;
41
+ }, {
42
+ registrationNumber: z.ZodString;
43
+ }>, "strip", z.ZodTypeAny, {
44
+ createdAt: string;
45
+ createdBy: string;
46
+ createdByRole: string;
47
+ createdAtLocation: string;
48
+ registrationNumber: string;
49
+ acceptedAt: string;
50
+ }, {
51
+ createdAt: string;
52
+ createdBy: string;
53
+ createdByRole: string;
54
+ createdAtLocation: string;
55
+ registrationNumber: string;
56
+ acceptedAt: string;
57
+ }>>>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ DECLARED?: {
60
+ createdAt: string;
61
+ createdBy: string;
62
+ createdByRole: string;
63
+ createdAtLocation: string;
64
+ acceptedAt: string;
65
+ } | null | undefined;
66
+ REGISTERED?: {
67
+ createdAt: string;
68
+ createdBy: string;
69
+ createdByRole: string;
70
+ createdAtLocation: string;
71
+ registrationNumber: string;
72
+ acceptedAt: string;
73
+ } | null | undefined;
74
+ }, {
75
+ DECLARED?: {
76
+ createdAt: string;
77
+ createdBy: string;
78
+ createdByRole: string;
79
+ createdAtLocation: string;
80
+ acceptedAt: string;
81
+ } | null | undefined;
82
+ REGISTERED?: {
83
+ createdAt: string;
84
+ createdBy: string;
85
+ createdByRole: string;
86
+ createdAtLocation: string;
87
+ registrationNumber: string;
88
+ acceptedAt: string;
89
+ } | null | undefined;
90
+ }>;
15
91
  createdAt: z.ZodString;
92
+ dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
93
  createdBy: z.ZodString;
94
+ updatedByUserRole: z.ZodString;
17
95
  createdAtLocation: z.ZodString;
18
- updatedAtLocation: z.ZodString;
19
- modifiedAt: z.ZodString;
96
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ updatedAt: z.ZodString;
20
98
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- updatedBy: z.ZodString;
99
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
100
  trackingId: z.ZodString;
23
- registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
102
+ readonly CERTIFICATE_PRINTED: "certificate-printed";
103
+ }>]>, "many">;
24
104
  }, {
25
- declaration: z.ZodRecord<z.ZodString, z.ZodAny>;
105
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
106
+ filename: z.ZodString;
107
+ originalFilename: z.ZodString;
108
+ type: z.ZodString;
109
+ }, "strip", z.ZodTypeAny, {
110
+ type: string;
111
+ filename: string;
112
+ originalFilename: string;
113
+ }, {
114
+ type: string;
115
+ filename: string;
116
+ originalFilename: string;
117
+ }>, z.ZodArray<z.ZodObject<{
118
+ filename: z.ZodString;
119
+ originalFilename: z.ZodString;
120
+ type: z.ZodString;
121
+ option: z.ZodString;
122
+ }, "strip", z.ZodTypeAny, {
123
+ type: string;
124
+ option: string;
125
+ filename: string;
126
+ originalFilename: string;
127
+ }, {
128
+ type: string;
129
+ option: string;
130
+ filename: string;
131
+ originalFilename: string;
132
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
133
+ country: z.ZodString;
134
+ addressType: z.ZodLiteral<"DOMESTIC">;
135
+ province: z.ZodString;
136
+ district: z.ZodString;
137
+ }, {
138
+ urbanOrRural: z.ZodLiteral<"URBAN">;
139
+ town: z.ZodOptional<z.ZodString>;
140
+ residentialArea: z.ZodOptional<z.ZodString>;
141
+ street: z.ZodOptional<z.ZodString>;
142
+ number: z.ZodOptional<z.ZodString>;
143
+ zipCode: z.ZodOptional<z.ZodString>;
144
+ }>, "strip", z.ZodTypeAny, {
145
+ country: string;
146
+ district: string;
147
+ addressType: "DOMESTIC";
148
+ province: string;
149
+ urbanOrRural: "URBAN";
150
+ number?: string | undefined;
151
+ town?: string | undefined;
152
+ residentialArea?: string | undefined;
153
+ street?: string | undefined;
154
+ zipCode?: string | undefined;
155
+ }, {
156
+ country: string;
157
+ district: string;
158
+ addressType: "DOMESTIC";
159
+ province: string;
160
+ urbanOrRural: "URBAN";
161
+ number?: string | undefined;
162
+ town?: string | undefined;
163
+ residentialArea?: string | undefined;
164
+ street?: string | undefined;
165
+ zipCode?: string | undefined;
166
+ }>, z.ZodObject<z.objectUtil.extendShape<{
167
+ country: z.ZodString;
168
+ addressType: z.ZodLiteral<"DOMESTIC">;
169
+ province: z.ZodString;
170
+ district: z.ZodString;
171
+ }, {
172
+ urbanOrRural: z.ZodLiteral<"RURAL">;
173
+ village: z.ZodOptional<z.ZodString>;
174
+ }>, "strip", z.ZodTypeAny, {
175
+ country: string;
176
+ district: string;
177
+ addressType: "DOMESTIC";
178
+ province: string;
179
+ urbanOrRural: "RURAL";
180
+ village?: string | undefined;
181
+ }, {
182
+ country: string;
183
+ district: string;
184
+ addressType: "DOMESTIC";
185
+ province: string;
186
+ urbanOrRural: "RURAL";
187
+ village?: string | undefined;
188
+ }>, z.ZodUndefined, z.ZodObject<{
189
+ country: z.ZodString;
190
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
191
+ state: z.ZodString;
192
+ district2: z.ZodString;
193
+ cityOrTown: z.ZodOptional<z.ZodString>;
194
+ addressLine1: z.ZodOptional<z.ZodString>;
195
+ addressLine2: z.ZodOptional<z.ZodString>;
196
+ addressLine3: z.ZodOptional<z.ZodString>;
197
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ country: string;
200
+ state: string;
201
+ addressType: "INTERNATIONAL";
202
+ district2: string;
203
+ cityOrTown?: string | undefined;
204
+ addressLine1?: string | undefined;
205
+ addressLine2?: string | undefined;
206
+ addressLine3?: string | undefined;
207
+ postcodeOrZip?: string | undefined;
208
+ }, {
209
+ country: string;
210
+ state: string;
211
+ addressType: "INTERNATIONAL";
212
+ district2: string;
213
+ cityOrTown?: string | undefined;
214
+ addressLine1?: string | undefined;
215
+ addressLine2?: string | undefined;
216
+ addressLine3?: string | undefined;
217
+ postcodeOrZip?: string | undefined;
218
+ }>]>>;
26
219
  }>, "strip", z.ZodTypeAny, {
27
220
  type: string;
28
221
  id: string;
29
222
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
30
223
  createdAt: string;
31
224
  createdBy: string;
32
- declaration: Record<string, any>;
225
+ declaration: Record<string, string | number | boolean | {
226
+ type: string;
227
+ filename: string;
228
+ originalFilename: string;
229
+ } | {
230
+ country: string;
231
+ district: string;
232
+ addressType: "DOMESTIC";
233
+ province: string;
234
+ urbanOrRural: "URBAN";
235
+ number?: string | undefined;
236
+ town?: string | undefined;
237
+ residentialArea?: string | undefined;
238
+ street?: string | undefined;
239
+ zipCode?: string | undefined;
240
+ } | {
241
+ country: string;
242
+ district: string;
243
+ addressType: "DOMESTIC";
244
+ province: string;
245
+ urbanOrRural: "RURAL";
246
+ village?: string | undefined;
247
+ } | {
248
+ country: string;
249
+ state: string;
250
+ addressType: "INTERNATIONAL";
251
+ district2: string;
252
+ cityOrTown?: string | undefined;
253
+ addressLine1?: string | undefined;
254
+ addressLine2?: string | undefined;
255
+ addressLine3?: string | undefined;
256
+ postcodeOrZip?: string | undefined;
257
+ } | {
258
+ type: string;
259
+ option: string;
260
+ filename: string;
261
+ originalFilename: string;
262
+ }[] | [string, string] | undefined>;
33
263
  createdAtLocation: string;
34
- updatedAtLocation: string;
264
+ updatedAt: string;
35
265
  trackingId: string;
36
- modifiedAt: string;
37
- updatedBy: string;
266
+ legalStatuses: {
267
+ DECLARED?: {
268
+ createdAt: string;
269
+ createdBy: string;
270
+ createdByRole: string;
271
+ createdAtLocation: string;
272
+ acceptedAt: string;
273
+ } | null | undefined;
274
+ REGISTERED?: {
275
+ createdAt: string;
276
+ createdBy: string;
277
+ createdByRole: string;
278
+ createdAtLocation: string;
279
+ registrationNumber: string;
280
+ acceptedAt: string;
281
+ } | null | undefined;
282
+ };
283
+ updatedByUserRole: string;
284
+ flags: string[];
38
285
  assignedTo?: string | null | undefined;
39
- registrationNumber?: string | null | undefined;
286
+ dateOfEvent?: string | null | undefined;
287
+ updatedAtLocation?: string | null | undefined;
288
+ updatedBy?: string | null | undefined;
40
289
  }, {
41
290
  type: string;
42
291
  id: string;
43
292
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
44
293
  createdAt: string;
45
294
  createdBy: string;
46
- declaration: Record<string, any>;
295
+ declaration: Record<string, string | number | boolean | {
296
+ type: string;
297
+ filename: string;
298
+ originalFilename: string;
299
+ } | {
300
+ country: string;
301
+ district: string;
302
+ addressType: "DOMESTIC";
303
+ province: string;
304
+ urbanOrRural: "URBAN";
305
+ number?: string | undefined;
306
+ town?: string | undefined;
307
+ residentialArea?: string | undefined;
308
+ street?: string | undefined;
309
+ zipCode?: string | undefined;
310
+ } | {
311
+ country: string;
312
+ district: string;
313
+ addressType: "DOMESTIC";
314
+ province: string;
315
+ urbanOrRural: "RURAL";
316
+ village?: string | undefined;
317
+ } | {
318
+ country: string;
319
+ state: string;
320
+ addressType: "INTERNATIONAL";
321
+ district2: string;
322
+ cityOrTown?: string | undefined;
323
+ addressLine1?: string | undefined;
324
+ addressLine2?: string | undefined;
325
+ addressLine3?: string | undefined;
326
+ postcodeOrZip?: string | undefined;
327
+ } | {
328
+ type: string;
329
+ option: string;
330
+ filename: string;
331
+ originalFilename: string;
332
+ }[] | [string, string] | undefined>;
47
333
  createdAtLocation: string;
48
- updatedAtLocation: string;
334
+ updatedAt: string;
49
335
  trackingId: string;
50
- modifiedAt: string;
51
- updatedBy: string;
336
+ legalStatuses: {
337
+ DECLARED?: {
338
+ createdAt: string;
339
+ createdBy: string;
340
+ createdByRole: string;
341
+ createdAtLocation: string;
342
+ acceptedAt: string;
343
+ } | null | undefined;
344
+ REGISTERED?: {
345
+ createdAt: string;
346
+ createdBy: string;
347
+ createdByRole: string;
348
+ createdAtLocation: string;
349
+ registrationNumber: string;
350
+ acceptedAt: string;
351
+ } | null | undefined;
352
+ };
353
+ updatedByUserRole: string;
354
+ flags: string[];
52
355
  assignedTo?: string | null | undefined;
53
- registrationNumber?: string | null | undefined;
356
+ dateOfEvent?: string | null | undefined;
357
+ updatedAtLocation?: string | null | undefined;
358
+ updatedBy?: string | null | undefined;
54
359
  }>;
55
360
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
56
361
  type: z.ZodString;
@@ -61,4 +366,1418 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
61
366
  }>>;
62
367
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
63
368
  export type EventIndex = z.infer<typeof EventIndex>;
369
+ declare const Fuzzy: z.ZodObject<{
370
+ type: z.ZodLiteral<"fuzzy">;
371
+ term: z.ZodString;
372
+ }, "strip", z.ZodTypeAny, {
373
+ type: "fuzzy";
374
+ term: string;
375
+ }, {
376
+ type: "fuzzy";
377
+ term: string;
378
+ }>;
379
+ declare const Exact: z.ZodObject<{
380
+ type: z.ZodLiteral<"exact">;
381
+ term: z.ZodString;
382
+ }, "strip", z.ZodTypeAny, {
383
+ type: "exact";
384
+ term: string;
385
+ }, {
386
+ type: "exact";
387
+ term: string;
388
+ }>;
389
+ declare const AnyOf: z.ZodObject<{
390
+ type: z.ZodLiteral<"anyOf">;
391
+ terms: z.ZodArray<z.ZodString, "many">;
392
+ }, "strip", z.ZodTypeAny, {
393
+ type: "anyOf";
394
+ terms: string[];
395
+ }, {
396
+ type: "anyOf";
397
+ terms: string[];
398
+ }>;
399
+ declare const Range: z.ZodObject<{
400
+ type: z.ZodLiteral<"range">;
401
+ gte: z.ZodString;
402
+ lte: z.ZodString;
403
+ }, "strip", z.ZodTypeAny, {
404
+ type: "range";
405
+ gte: string;
406
+ lte: string;
407
+ }, {
408
+ type: "range";
409
+ gte: string;
410
+ lte: string;
411
+ }>;
412
+ declare const Not: z.ZodObject<{
413
+ type: z.ZodLiteral<"not">;
414
+ term: z.ZodString;
415
+ }, "strip", z.ZodTypeAny, {
416
+ type: "not";
417
+ term: string;
418
+ }, {
419
+ type: "not";
420
+ term: string;
421
+ }>;
422
+ declare const Within: z.ZodObject<{
423
+ type: z.ZodLiteral<"within">;
424
+ location: z.ZodString;
425
+ }, "strip", z.ZodTypeAny, {
426
+ type: "within";
427
+ location: string;
428
+ }, {
429
+ type: "within";
430
+ location: string;
431
+ }>;
432
+ export declare const QueryInput: ZodType;
433
+ export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf> | z.infer<typeof Not>;
434
+ type QueryMap = {
435
+ [key: string]: BaseInput | QueryMap;
436
+ };
437
+ export type QueryInputType = BaseInput | QueryMap;
438
+ declare const QueryExpression: z.ZodObject<{
439
+ eventType: z.ZodOptional<z.ZodString>;
440
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
441
+ type: z.ZodLiteral<"anyOf">;
442
+ terms: z.ZodArray<z.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.ZodDiscriminatedUnion<"type", [z.ZodObject<{
782
+ type: z.ZodLiteral<"or">;
783
+ clauses: 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
+ }, "strip", z.ZodTypeAny, {
1127
+ type: "or";
1128
+ clauses: {
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
+ updatedAt?: {
1150
+ type: "exact";
1151
+ term: string;
1152
+ } | {
1153
+ type: "range";
1154
+ gte: string;
1155
+ lte: string;
1156
+ } | undefined;
1157
+ trackingId?: {
1158
+ type: "exact";
1159
+ term: string;
1160
+ } | undefined;
1161
+ eventType?: string | undefined;
1162
+ 'legalStatus.REGISTERED.createdAt'?: {
1163
+ type: "exact";
1164
+ term: string;
1165
+ } | {
1166
+ type: "range";
1167
+ gte: string;
1168
+ lte: string;
1169
+ } | undefined;
1170
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1171
+ type: "exact";
1172
+ term: string;
1173
+ } | {
1174
+ type: "within";
1175
+ location: string;
1176
+ } | undefined;
1177
+ updatedAtLocation?: {
1178
+ type: "exact";
1179
+ term: string;
1180
+ } | {
1181
+ type: "within";
1182
+ location: string;
1183
+ } | undefined;
1184
+ updatedBy?: {
1185
+ type: "exact";
1186
+ term: string;
1187
+ } | undefined;
1188
+ flags?: ({
1189
+ type: "anyOf";
1190
+ terms: string[];
1191
+ } | {
1192
+ type: "not";
1193
+ term: string;
1194
+ })[] | undefined;
1195
+ createAtLocation?: {
1196
+ type: "exact";
1197
+ term: string;
1198
+ } | {
1199
+ type: "within";
1200
+ location: string;
1201
+ } | undefined;
1202
+ }[];
1203
+ }, {
1204
+ type: "or";
1205
+ clauses: {
1206
+ status?: {
1207
+ type: "exact";
1208
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1209
+ } | {
1210
+ type: "anyOf";
1211
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1212
+ } | undefined;
1213
+ data?: any;
1214
+ createdAt?: {
1215
+ type: "exact";
1216
+ term: string;
1217
+ } | {
1218
+ type: "range";
1219
+ gte: string;
1220
+ lte: string;
1221
+ } | undefined;
1222
+ createdBy?: {
1223
+ type: "exact";
1224
+ term: string;
1225
+ } | undefined;
1226
+ updatedAt?: {
1227
+ type: "exact";
1228
+ term: string;
1229
+ } | {
1230
+ type: "range";
1231
+ gte: string;
1232
+ lte: string;
1233
+ } | undefined;
1234
+ trackingId?: {
1235
+ type: "exact";
1236
+ term: string;
1237
+ } | undefined;
1238
+ eventType?: string | undefined;
1239
+ 'legalStatus.REGISTERED.createdAt'?: {
1240
+ type: "exact";
1241
+ term: string;
1242
+ } | {
1243
+ type: "range";
1244
+ gte: string;
1245
+ lte: string;
1246
+ } | undefined;
1247
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1248
+ type: "exact";
1249
+ term: string;
1250
+ } | {
1251
+ type: "within";
1252
+ location: string;
1253
+ } | undefined;
1254
+ updatedAtLocation?: {
1255
+ type: "exact";
1256
+ term: string;
1257
+ } | {
1258
+ type: "within";
1259
+ location: string;
1260
+ } | undefined;
1261
+ updatedBy?: {
1262
+ type: "exact";
1263
+ term: string;
1264
+ } | undefined;
1265
+ flags?: ({
1266
+ type: "anyOf";
1267
+ terms: string[];
1268
+ } | {
1269
+ type: "not";
1270
+ term: string;
1271
+ })[] | undefined;
1272
+ createAtLocation?: {
1273
+ type: "exact";
1274
+ term: string;
1275
+ } | {
1276
+ type: "within";
1277
+ location: string;
1278
+ } | undefined;
1279
+ }[];
1280
+ }>, z.ZodObject<{
1281
+ type: z.ZodLiteral<"and">;
1282
+ clauses: z.ZodArray<z.ZodObject<{
1283
+ eventType: z.ZodOptional<z.ZodString>;
1284
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1285
+ type: z.ZodLiteral<"anyOf">;
1286
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1287
+ }, "strip", z.ZodTypeAny, {
1288
+ type: "anyOf";
1289
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1290
+ }, {
1291
+ type: "anyOf";
1292
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1293
+ }>, z.ZodObject<{
1294
+ type: z.ZodLiteral<"exact">;
1295
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1296
+ }, "strip", z.ZodTypeAny, {
1297
+ type: "exact";
1298
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1299
+ }, {
1300
+ type: "exact";
1301
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1302
+ }>]>>>;
1303
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1304
+ type: z.ZodLiteral<"exact">;
1305
+ term: z.ZodString;
1306
+ }, "strip", z.ZodTypeAny, {
1307
+ type: "exact";
1308
+ term: string;
1309
+ }, {
1310
+ type: "exact";
1311
+ term: string;
1312
+ }>, z.ZodObject<{
1313
+ type: z.ZodLiteral<"range">;
1314
+ gte: z.ZodString;
1315
+ lte: z.ZodString;
1316
+ }, "strip", z.ZodTypeAny, {
1317
+ type: "range";
1318
+ gte: string;
1319
+ lte: string;
1320
+ }, {
1321
+ type: "range";
1322
+ gte: string;
1323
+ lte: string;
1324
+ }>]>>>;
1325
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1326
+ type: z.ZodLiteral<"exact">;
1327
+ term: z.ZodString;
1328
+ }, "strip", z.ZodTypeAny, {
1329
+ type: "exact";
1330
+ term: string;
1331
+ }, {
1332
+ type: "exact";
1333
+ term: string;
1334
+ }>, z.ZodObject<{
1335
+ type: z.ZodLiteral<"range">;
1336
+ gte: z.ZodString;
1337
+ lte: z.ZodString;
1338
+ }, "strip", z.ZodTypeAny, {
1339
+ type: "range";
1340
+ gte: string;
1341
+ lte: string;
1342
+ }, {
1343
+ type: "range";
1344
+ gte: string;
1345
+ lte: string;
1346
+ }>]>>>;
1347
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1348
+ type: z.ZodLiteral<"exact">;
1349
+ term: z.ZodString;
1350
+ }, "strip", z.ZodTypeAny, {
1351
+ type: "exact";
1352
+ term: string;
1353
+ }, {
1354
+ type: "exact";
1355
+ term: string;
1356
+ }>, z.ZodObject<{
1357
+ type: z.ZodLiteral<"range">;
1358
+ gte: z.ZodString;
1359
+ lte: z.ZodString;
1360
+ }, "strip", z.ZodTypeAny, {
1361
+ type: "range";
1362
+ gte: string;
1363
+ lte: string;
1364
+ }, {
1365
+ type: "range";
1366
+ gte: string;
1367
+ lte: string;
1368
+ }>]>>>;
1369
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1370
+ type: z.ZodLiteral<"within">;
1371
+ location: z.ZodString;
1372
+ }, "strip", z.ZodTypeAny, {
1373
+ type: "within";
1374
+ location: string;
1375
+ }, {
1376
+ type: "within";
1377
+ location: string;
1378
+ }>, z.ZodObject<{
1379
+ type: z.ZodLiteral<"exact">;
1380
+ term: z.ZodString;
1381
+ }, "strip", z.ZodTypeAny, {
1382
+ type: "exact";
1383
+ term: string;
1384
+ }, {
1385
+ type: "exact";
1386
+ term: string;
1387
+ }>]>>>;
1388
+ createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1389
+ type: z.ZodLiteral<"within">;
1390
+ location: z.ZodString;
1391
+ }, "strip", z.ZodTypeAny, {
1392
+ type: "within";
1393
+ location: string;
1394
+ }, {
1395
+ type: "within";
1396
+ location: string;
1397
+ }>, z.ZodObject<{
1398
+ type: z.ZodLiteral<"exact">;
1399
+ term: z.ZodString;
1400
+ }, "strip", z.ZodTypeAny, {
1401
+ type: "exact";
1402
+ term: string;
1403
+ }, {
1404
+ type: "exact";
1405
+ term: string;
1406
+ }>]>>>;
1407
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1408
+ type: z.ZodLiteral<"within">;
1409
+ location: z.ZodString;
1410
+ }, "strip", z.ZodTypeAny, {
1411
+ type: "within";
1412
+ location: string;
1413
+ }, {
1414
+ type: "within";
1415
+ location: string;
1416
+ }>, z.ZodObject<{
1417
+ type: z.ZodLiteral<"exact">;
1418
+ term: z.ZodString;
1419
+ }, "strip", z.ZodTypeAny, {
1420
+ type: "exact";
1421
+ term: string;
1422
+ }, {
1423
+ type: "exact";
1424
+ term: string;
1425
+ }>]>>>;
1426
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1427
+ type: z.ZodLiteral<"exact">;
1428
+ term: z.ZodString;
1429
+ }, "strip", z.ZodTypeAny, {
1430
+ type: "exact";
1431
+ term: string;
1432
+ }, {
1433
+ type: "exact";
1434
+ term: string;
1435
+ }>>>;
1436
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1437
+ type: z.ZodLiteral<"exact">;
1438
+ term: z.ZodString;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ type: "exact";
1441
+ term: string;
1442
+ }, {
1443
+ type: "exact";
1444
+ term: string;
1445
+ }>>>;
1446
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1447
+ type: z.ZodLiteral<"exact">;
1448
+ term: z.ZodString;
1449
+ }, "strip", z.ZodTypeAny, {
1450
+ type: "exact";
1451
+ term: string;
1452
+ }, {
1453
+ type: "exact";
1454
+ term: string;
1455
+ }>>>;
1456
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1457
+ type: z.ZodLiteral<"anyOf">;
1458
+ terms: z.ZodArray<z.ZodString, "many">;
1459
+ }, "strip", z.ZodTypeAny, {
1460
+ type: "anyOf";
1461
+ terms: string[];
1462
+ }, {
1463
+ type: "anyOf";
1464
+ terms: string[];
1465
+ }>, z.ZodObject<{
1466
+ type: z.ZodLiteral<"not">;
1467
+ term: z.ZodString;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ type: "not";
1470
+ term: string;
1471
+ }, {
1472
+ type: "not";
1473
+ term: string;
1474
+ }>]>, "many">>>;
1475
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1476
+ }, "strip", z.ZodTypeAny, {
1477
+ status?: {
1478
+ type: "exact";
1479
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1480
+ } | {
1481
+ type: "anyOf";
1482
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1483
+ } | undefined;
1484
+ data?: any;
1485
+ createdAt?: {
1486
+ type: "exact";
1487
+ term: string;
1488
+ } | {
1489
+ type: "range";
1490
+ gte: string;
1491
+ lte: string;
1492
+ } | undefined;
1493
+ createdBy?: {
1494
+ type: "exact";
1495
+ term: string;
1496
+ } | undefined;
1497
+ updatedAt?: {
1498
+ type: "exact";
1499
+ term: string;
1500
+ } | {
1501
+ type: "range";
1502
+ gte: string;
1503
+ lte: string;
1504
+ } | undefined;
1505
+ trackingId?: {
1506
+ type: "exact";
1507
+ term: string;
1508
+ } | undefined;
1509
+ eventType?: string | undefined;
1510
+ 'legalStatus.REGISTERED.createdAt'?: {
1511
+ type: "exact";
1512
+ term: string;
1513
+ } | {
1514
+ type: "range";
1515
+ gte: string;
1516
+ lte: string;
1517
+ } | undefined;
1518
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1519
+ type: "exact";
1520
+ term: string;
1521
+ } | {
1522
+ type: "within";
1523
+ location: string;
1524
+ } | undefined;
1525
+ updatedAtLocation?: {
1526
+ type: "exact";
1527
+ term: string;
1528
+ } | {
1529
+ type: "within";
1530
+ location: string;
1531
+ } | undefined;
1532
+ updatedBy?: {
1533
+ type: "exact";
1534
+ term: string;
1535
+ } | undefined;
1536
+ flags?: ({
1537
+ type: "anyOf";
1538
+ terms: string[];
1539
+ } | {
1540
+ type: "not";
1541
+ term: string;
1542
+ })[] | undefined;
1543
+ createAtLocation?: {
1544
+ type: "exact";
1545
+ term: string;
1546
+ } | {
1547
+ type: "within";
1548
+ location: string;
1549
+ } | undefined;
1550
+ }, {
1551
+ status?: {
1552
+ type: "exact";
1553
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1554
+ } | {
1555
+ type: "anyOf";
1556
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1557
+ } | undefined;
1558
+ data?: any;
1559
+ createdAt?: {
1560
+ type: "exact";
1561
+ term: string;
1562
+ } | {
1563
+ type: "range";
1564
+ gte: string;
1565
+ lte: string;
1566
+ } | undefined;
1567
+ createdBy?: {
1568
+ type: "exact";
1569
+ term: string;
1570
+ } | undefined;
1571
+ updatedAt?: {
1572
+ type: "exact";
1573
+ term: string;
1574
+ } | {
1575
+ type: "range";
1576
+ gte: string;
1577
+ lte: string;
1578
+ } | undefined;
1579
+ trackingId?: {
1580
+ type: "exact";
1581
+ term: string;
1582
+ } | undefined;
1583
+ eventType?: string | undefined;
1584
+ 'legalStatus.REGISTERED.createdAt'?: {
1585
+ type: "exact";
1586
+ term: string;
1587
+ } | {
1588
+ type: "range";
1589
+ gte: string;
1590
+ lte: string;
1591
+ } | undefined;
1592
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1593
+ type: "exact";
1594
+ term: string;
1595
+ } | {
1596
+ type: "within";
1597
+ location: string;
1598
+ } | undefined;
1599
+ updatedAtLocation?: {
1600
+ type: "exact";
1601
+ term: string;
1602
+ } | {
1603
+ type: "within";
1604
+ location: string;
1605
+ } | undefined;
1606
+ updatedBy?: {
1607
+ type: "exact";
1608
+ term: string;
1609
+ } | undefined;
1610
+ flags?: ({
1611
+ type: "anyOf";
1612
+ terms: string[];
1613
+ } | {
1614
+ type: "not";
1615
+ term: string;
1616
+ })[] | undefined;
1617
+ createAtLocation?: {
1618
+ type: "exact";
1619
+ term: string;
1620
+ } | {
1621
+ type: "within";
1622
+ location: string;
1623
+ } | undefined;
1624
+ }>, "many">;
1625
+ }, "strip", z.ZodTypeAny, {
1626
+ type: "and";
1627
+ clauses: {
1628
+ status?: {
1629
+ type: "exact";
1630
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1631
+ } | {
1632
+ type: "anyOf";
1633
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1634
+ } | undefined;
1635
+ data?: any;
1636
+ createdAt?: {
1637
+ type: "exact";
1638
+ term: string;
1639
+ } | {
1640
+ type: "range";
1641
+ gte: string;
1642
+ lte: string;
1643
+ } | undefined;
1644
+ createdBy?: {
1645
+ type: "exact";
1646
+ term: string;
1647
+ } | undefined;
1648
+ updatedAt?: {
1649
+ type: "exact";
1650
+ term: string;
1651
+ } | {
1652
+ type: "range";
1653
+ gte: string;
1654
+ lte: string;
1655
+ } | undefined;
1656
+ trackingId?: {
1657
+ type: "exact";
1658
+ term: string;
1659
+ } | undefined;
1660
+ eventType?: string | undefined;
1661
+ 'legalStatus.REGISTERED.createdAt'?: {
1662
+ type: "exact";
1663
+ term: string;
1664
+ } | {
1665
+ type: "range";
1666
+ gte: string;
1667
+ lte: string;
1668
+ } | undefined;
1669
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1670
+ type: "exact";
1671
+ term: string;
1672
+ } | {
1673
+ type: "within";
1674
+ location: string;
1675
+ } | undefined;
1676
+ updatedAtLocation?: {
1677
+ type: "exact";
1678
+ term: string;
1679
+ } | {
1680
+ type: "within";
1681
+ location: string;
1682
+ } | undefined;
1683
+ updatedBy?: {
1684
+ type: "exact";
1685
+ term: string;
1686
+ } | undefined;
1687
+ flags?: ({
1688
+ type: "anyOf";
1689
+ terms: string[];
1690
+ } | {
1691
+ type: "not";
1692
+ term: string;
1693
+ })[] | undefined;
1694
+ createAtLocation?: {
1695
+ type: "exact";
1696
+ term: string;
1697
+ } | {
1698
+ type: "within";
1699
+ location: string;
1700
+ } | undefined;
1701
+ }[];
1702
+ }, {
1703
+ type: "and";
1704
+ clauses: {
1705
+ status?: {
1706
+ type: "exact";
1707
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1708
+ } | {
1709
+ type: "anyOf";
1710
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1711
+ } | undefined;
1712
+ data?: any;
1713
+ createdAt?: {
1714
+ type: "exact";
1715
+ term: string;
1716
+ } | {
1717
+ type: "range";
1718
+ gte: string;
1719
+ lte: string;
1720
+ } | undefined;
1721
+ createdBy?: {
1722
+ type: "exact";
1723
+ term: string;
1724
+ } | undefined;
1725
+ updatedAt?: {
1726
+ type: "exact";
1727
+ term: string;
1728
+ } | {
1729
+ type: "range";
1730
+ gte: string;
1731
+ lte: string;
1732
+ } | undefined;
1733
+ trackingId?: {
1734
+ type: "exact";
1735
+ term: string;
1736
+ } | undefined;
1737
+ eventType?: string | undefined;
1738
+ 'legalStatus.REGISTERED.createdAt'?: {
1739
+ type: "exact";
1740
+ term: string;
1741
+ } | {
1742
+ type: "range";
1743
+ gte: string;
1744
+ lte: string;
1745
+ } | undefined;
1746
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1747
+ type: "exact";
1748
+ term: string;
1749
+ } | {
1750
+ type: "within";
1751
+ location: string;
1752
+ } | undefined;
1753
+ updatedAtLocation?: {
1754
+ type: "exact";
1755
+ term: string;
1756
+ } | {
1757
+ type: "within";
1758
+ location: string;
1759
+ } | undefined;
1760
+ updatedBy?: {
1761
+ type: "exact";
1762
+ term: string;
1763
+ } | undefined;
1764
+ flags?: ({
1765
+ type: "anyOf";
1766
+ terms: string[];
1767
+ } | {
1768
+ type: "not";
1769
+ term: string;
1770
+ })[] | undefined;
1771
+ createAtLocation?: {
1772
+ type: "exact";
1773
+ term: string;
1774
+ } | {
1775
+ type: "within";
1776
+ location: string;
1777
+ } | undefined;
1778
+ }[];
1779
+ }>]>;
1780
+ export type QueryType = z.infer<typeof QueryType>;
1781
+ export type QueryExpression = z.infer<typeof QueryExpression>;
1782
+ export {};
64
1783
  //# sourceMappingURL=EventIndex.d.ts.map