@opencrvs/toolkit 1.8.0-rc.feaeeb7 → 1.8.0-rc.fec1d5d

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