@opencrvs/toolkit 1.8.0-rc.fd6feaa → 1.8.0-rc.fd8a78f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +20563 -13195
  3. package/dist/commons/conditionals/conditionals.d.ts +37 -6
  4. package/dist/commons/conditionals/validate.d.ts +18 -17
  5. package/dist/commons/events/ActionConfig.d.ts +116825 -2069
  6. package/dist/commons/events/ActionDocument.d.ts +10082 -541
  7. package/dist/commons/events/ActionInput.d.ts +4524 -727
  8. package/dist/commons/events/ActionType.d.ts +30 -11
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +1029 -22
  10. package/dist/commons/events/CompositeFieldValue.d.ts +83 -12
  11. package/dist/commons/events/Conditional.d.ts +21 -5
  12. package/dist/commons/events/Constants.d.ts +3 -0
  13. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  14. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  15. package/dist/commons/events/Draft.d.ts +276 -75
  16. package/dist/commons/events/EventConfig.d.ts +56158 -1798
  17. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  18. package/dist/commons/events/EventDocument.d.ts +2862 -672
  19. package/dist/commons/events/EventIndex.d.ts +1590 -22
  20. package/dist/commons/events/EventMetadata.d.ts +299 -40
  21. package/dist/commons/events/FieldConfig.d.ts +5816 -1011
  22. package/dist/commons/events/FieldType.d.ts +7 -3
  23. package/dist/commons/events/FieldTypeMapping.d.ts +142 -44
  24. package/dist/commons/events/FieldValue.d.ts +77 -16
  25. package/dist/commons/events/FormConfig.d.ts +49317 -90
  26. package/dist/commons/events/PageConfig.d.ts +12337 -0
  27. package/dist/commons/events/SummaryConfig.d.ts +93 -42
  28. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  29. package/dist/commons/events/User.d.ts +31 -2
  30. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  31. package/dist/commons/events/WorkqueueConfig.d.ts +4803 -20
  32. package/dist/commons/events/defineConfig.d.ts +9111 -301
  33. package/dist/commons/events/event.d.ts +54 -0
  34. package/dist/commons/events/field.d.ts +77 -0
  35. package/dist/commons/events/index.d.ts +10 -1
  36. package/dist/commons/events/scopes.d.ts +45 -0
  37. package/dist/commons/events/serializer.d.ts +2 -0
  38. package/dist/commons/events/test.utils.d.ts +167 -279
  39. package/dist/commons/events/utils.d.ts +13393 -94
  40. package/dist/commons/events/utils.test.d.ts +2 -0
  41. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  42. package/dist/conditionals/index.js +233 -108
  43. package/dist/events/index.js +4705 -1887
  44. package/dist/scopes/index.d.ts +158 -1
  45. package/dist/scopes/index.js +152 -1
  46. 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,1213 @@ 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
+ eventType: z.ZodOptional<z.ZodString>;
530
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
531
+ type: z.ZodLiteral<"anyOf">;
532
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
533
+ }, "strip", z.ZodTypeAny, {
534
+ type: "anyOf";
535
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
536
+ }, {
537
+ type: "anyOf";
538
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
539
+ }>, z.ZodObject<{
540
+ type: z.ZodLiteral<"exact">;
541
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ type: "exact";
544
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
545
+ }, {
546
+ type: "exact";
547
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
548
+ }>]>>>;
549
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
550
+ type: z.ZodLiteral<"exact">;
551
+ term: z.ZodString;
552
+ }, "strip", z.ZodTypeAny, {
553
+ type: "exact";
554
+ term: string;
555
+ }, {
556
+ type: "exact";
557
+ term: string;
558
+ }>, z.ZodObject<{
559
+ type: z.ZodLiteral<"range">;
560
+ gte: z.ZodString;
561
+ lte: z.ZodString;
562
+ }, "strip", z.ZodTypeAny, {
563
+ type: "range";
564
+ gte: string;
565
+ lte: string;
566
+ }, {
567
+ type: "range";
568
+ gte: string;
569
+ lte: string;
570
+ }>]>>>;
571
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
572
+ type: z.ZodLiteral<"exact">;
573
+ term: z.ZodString;
574
+ }, "strip", z.ZodTypeAny, {
575
+ type: "exact";
576
+ term: string;
577
+ }, {
578
+ type: "exact";
579
+ term: string;
580
+ }>, z.ZodObject<{
581
+ type: z.ZodLiteral<"range">;
582
+ gte: z.ZodString;
583
+ lte: z.ZodString;
584
+ }, "strip", z.ZodTypeAny, {
585
+ type: "range";
586
+ gte: string;
587
+ lte: string;
588
+ }, {
589
+ type: "range";
590
+ gte: string;
591
+ lte: string;
592
+ }>]>>>;
593
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
594
+ type: z.ZodLiteral<"exact">;
595
+ term: z.ZodString;
596
+ }, "strip", z.ZodTypeAny, {
597
+ type: "exact";
598
+ term: string;
599
+ }, {
600
+ type: "exact";
601
+ term: string;
602
+ }>, z.ZodObject<{
603
+ type: z.ZodLiteral<"range">;
604
+ gte: z.ZodString;
605
+ lte: z.ZodString;
606
+ }, "strip", z.ZodTypeAny, {
607
+ type: "range";
608
+ gte: string;
609
+ lte: string;
610
+ }, {
611
+ type: "range";
612
+ gte: string;
613
+ lte: string;
614
+ }>]>>>;
615
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
616
+ type: z.ZodLiteral<"within">;
617
+ location: z.ZodString;
618
+ }, "strip", z.ZodTypeAny, {
619
+ type: "within";
620
+ location: string;
621
+ }, {
622
+ type: "within";
623
+ location: string;
624
+ }>, z.ZodObject<{
625
+ type: z.ZodLiteral<"exact">;
626
+ term: z.ZodString;
627
+ }, "strip", z.ZodTypeAny, {
628
+ type: "exact";
629
+ term: string;
630
+ }, {
631
+ type: "exact";
632
+ term: string;
633
+ }>]>>>;
634
+ 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
635
+ type: z.ZodLiteral<"exact">;
636
+ term: z.ZodString;
637
+ }, "strip", z.ZodTypeAny, {
638
+ type: "exact";
639
+ term: string;
640
+ }, {
641
+ type: "exact";
642
+ term: string;
643
+ }>>>;
644
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
645
+ type: z.ZodLiteral<"within">;
646
+ location: z.ZodString;
647
+ }, "strip", z.ZodTypeAny, {
648
+ type: "within";
649
+ location: string;
650
+ }, {
651
+ type: "within";
652
+ location: string;
653
+ }>, z.ZodObject<{
654
+ type: z.ZodLiteral<"exact">;
655
+ term: z.ZodString;
656
+ }, "strip", z.ZodTypeAny, {
657
+ type: "exact";
658
+ term: string;
659
+ }, {
660
+ type: "exact";
661
+ term: string;
662
+ }>]>>>;
663
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
664
+ type: z.ZodLiteral<"within">;
665
+ location: z.ZodString;
666
+ }, "strip", z.ZodTypeAny, {
667
+ type: "within";
668
+ location: string;
669
+ }, {
670
+ type: "within";
671
+ location: string;
672
+ }>, z.ZodObject<{
673
+ type: z.ZodLiteral<"exact">;
674
+ term: z.ZodString;
675
+ }, "strip", z.ZodTypeAny, {
676
+ type: "exact";
677
+ term: string;
678
+ }, {
679
+ type: "exact";
680
+ term: string;
681
+ }>]>>>;
682
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
683
+ type: z.ZodLiteral<"exact">;
684
+ term: z.ZodString;
685
+ }, "strip", z.ZodTypeAny, {
686
+ type: "exact";
687
+ term: string;
688
+ }, {
689
+ type: "exact";
690
+ term: string;
691
+ }>>>;
692
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
693
+ type: z.ZodLiteral<"exact">;
694
+ term: z.ZodString;
695
+ }, "strip", z.ZodTypeAny, {
696
+ type: "exact";
697
+ term: string;
698
+ }, {
699
+ type: "exact";
700
+ term: string;
701
+ }>>>;
702
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
703
+ type: z.ZodLiteral<"exact">;
704
+ term: z.ZodString;
705
+ }, "strip", z.ZodTypeAny, {
706
+ type: "exact";
707
+ term: string;
708
+ }, {
709
+ type: "exact";
710
+ term: string;
711
+ }>>>;
712
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
713
+ type: z.ZodLiteral<"exact">;
714
+ term: z.ZodString;
715
+ }, "strip", z.ZodTypeAny, {
716
+ type: "exact";
717
+ term: string;
718
+ }, {
719
+ type: "exact";
720
+ term: string;
721
+ }>>>;
722
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
723
+ type: z.ZodLiteral<"anyOf">;
724
+ terms: z.ZodArray<z.ZodString, "many">;
725
+ }, "strip", z.ZodTypeAny, {
726
+ type: "anyOf";
727
+ terms: string[];
728
+ }, {
729
+ type: "anyOf";
730
+ terms: string[];
731
+ }>, z.ZodObject<{
732
+ type: z.ZodLiteral<"not">;
733
+ term: z.ZodString;
734
+ }, "strip", z.ZodTypeAny, {
735
+ type: "not";
736
+ term: string;
737
+ }, {
738
+ type: "not";
739
+ term: string;
740
+ }>]>, "many">>>;
741
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
742
+ }, "strip", z.ZodTypeAny, {
743
+ status?: {
744
+ type: "exact";
745
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
746
+ } | {
747
+ type: "anyOf";
748
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
749
+ } | undefined;
750
+ data?: any;
751
+ createdAt?: {
752
+ type: "exact";
753
+ term: string;
754
+ } | {
755
+ type: "range";
756
+ gte: string;
757
+ lte: string;
758
+ } | undefined;
759
+ createdBy?: {
760
+ type: "exact";
761
+ term: string;
762
+ } | undefined;
763
+ createdAtLocation?: {
764
+ type: "exact";
765
+ term: string;
766
+ } | {
767
+ type: "within";
768
+ location: string;
769
+ } | undefined;
770
+ assignedTo?: {
771
+ type: "exact";
772
+ term: string;
773
+ } | undefined;
774
+ updatedAt?: {
775
+ type: "exact";
776
+ term: string;
777
+ } | {
778
+ type: "range";
779
+ gte: string;
780
+ lte: string;
781
+ } | undefined;
782
+ trackingId?: {
783
+ type: "exact";
784
+ term: string;
785
+ } | undefined;
786
+ updatedAtLocation?: {
787
+ type: "exact";
788
+ term: string;
789
+ } | {
790
+ type: "within";
791
+ location: string;
792
+ } | undefined;
793
+ updatedBy?: {
794
+ type: "exact";
795
+ term: string;
796
+ } | undefined;
797
+ flags?: ({
798
+ type: "anyOf";
799
+ terms: string[];
800
+ } | {
801
+ type: "not";
802
+ term: string;
803
+ })[] | undefined;
804
+ eventType?: string | undefined;
805
+ 'legalStatus.REGISTERED.createdAt'?: {
806
+ type: "exact";
807
+ term: string;
808
+ } | {
809
+ type: "range";
810
+ gte: string;
811
+ lte: string;
812
+ } | undefined;
813
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
814
+ type: "exact";
815
+ term: string;
816
+ } | {
817
+ type: "within";
818
+ location: string;
819
+ } | undefined;
820
+ 'legalStatus.REGISTERED.registrationNumber'?: {
821
+ type: "exact";
822
+ term: string;
823
+ } | undefined;
824
+ }, {
825
+ status?: {
826
+ type: "exact";
827
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
828
+ } | {
829
+ type: "anyOf";
830
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
831
+ } | undefined;
832
+ data?: any;
833
+ createdAt?: {
834
+ type: "exact";
835
+ term: string;
836
+ } | {
837
+ type: "range";
838
+ gte: string;
839
+ lte: string;
840
+ } | undefined;
841
+ createdBy?: {
842
+ type: "exact";
843
+ term: string;
844
+ } | undefined;
845
+ createdAtLocation?: {
846
+ type: "exact";
847
+ term: string;
848
+ } | {
849
+ type: "within";
850
+ location: string;
851
+ } | undefined;
852
+ assignedTo?: {
853
+ type: "exact";
854
+ term: string;
855
+ } | undefined;
856
+ updatedAt?: {
857
+ type: "exact";
858
+ term: string;
859
+ } | {
860
+ type: "range";
861
+ gte: string;
862
+ lte: string;
863
+ } | undefined;
864
+ trackingId?: {
865
+ type: "exact";
866
+ term: string;
867
+ } | undefined;
868
+ updatedAtLocation?: {
869
+ type: "exact";
870
+ term: string;
871
+ } | {
872
+ type: "within";
873
+ location: string;
874
+ } | undefined;
875
+ updatedBy?: {
876
+ type: "exact";
877
+ term: string;
878
+ } | undefined;
879
+ flags?: ({
880
+ type: "anyOf";
881
+ terms: string[];
882
+ } | {
883
+ type: "not";
884
+ term: string;
885
+ })[] | undefined;
886
+ eventType?: string | undefined;
887
+ 'legalStatus.REGISTERED.createdAt'?: {
888
+ type: "exact";
889
+ term: string;
890
+ } | {
891
+ type: "range";
892
+ gte: string;
893
+ lte: string;
894
+ } | undefined;
895
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
896
+ type: "exact";
897
+ term: string;
898
+ } | {
899
+ type: "within";
900
+ location: string;
901
+ } | undefined;
902
+ 'legalStatus.REGISTERED.registrationNumber'?: {
903
+ type: "exact";
904
+ term: string;
905
+ } | undefined;
906
+ }>;
907
+ export declare const QueryType: z.ZodObject<{
908
+ type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
909
+ clauses: z.ZodEffects<z.ZodArray<z.ZodObject<{
910
+ eventType: z.ZodOptional<z.ZodString>;
911
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
912
+ type: z.ZodLiteral<"anyOf">;
913
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
914
+ }, "strip", z.ZodTypeAny, {
915
+ type: "anyOf";
916
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
917
+ }, {
918
+ type: "anyOf";
919
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
920
+ }>, z.ZodObject<{
921
+ type: z.ZodLiteral<"exact">;
922
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
923
+ }, "strip", z.ZodTypeAny, {
924
+ type: "exact";
925
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
926
+ }, {
927
+ type: "exact";
928
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
929
+ }>]>>>;
930
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
931
+ type: z.ZodLiteral<"exact">;
932
+ term: z.ZodString;
933
+ }, "strip", z.ZodTypeAny, {
934
+ type: "exact";
935
+ term: string;
936
+ }, {
937
+ type: "exact";
938
+ term: string;
939
+ }>, z.ZodObject<{
940
+ type: z.ZodLiteral<"range">;
941
+ gte: z.ZodString;
942
+ lte: z.ZodString;
943
+ }, "strip", z.ZodTypeAny, {
944
+ type: "range";
945
+ gte: string;
946
+ lte: string;
947
+ }, {
948
+ type: "range";
949
+ gte: string;
950
+ lte: string;
951
+ }>]>>>;
952
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
953
+ type: z.ZodLiteral<"exact">;
954
+ term: z.ZodString;
955
+ }, "strip", z.ZodTypeAny, {
956
+ type: "exact";
957
+ term: string;
958
+ }, {
959
+ type: "exact";
960
+ term: string;
961
+ }>, z.ZodObject<{
962
+ type: z.ZodLiteral<"range">;
963
+ gte: z.ZodString;
964
+ lte: z.ZodString;
965
+ }, "strip", z.ZodTypeAny, {
966
+ type: "range";
967
+ gte: string;
968
+ lte: string;
969
+ }, {
970
+ type: "range";
971
+ gte: string;
972
+ lte: string;
973
+ }>]>>>;
974
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
975
+ type: z.ZodLiteral<"exact">;
976
+ term: z.ZodString;
977
+ }, "strip", z.ZodTypeAny, {
978
+ type: "exact";
979
+ term: string;
980
+ }, {
981
+ type: "exact";
982
+ term: string;
983
+ }>, z.ZodObject<{
984
+ type: z.ZodLiteral<"range">;
985
+ gte: z.ZodString;
986
+ lte: z.ZodString;
987
+ }, "strip", z.ZodTypeAny, {
988
+ type: "range";
989
+ gte: string;
990
+ lte: string;
991
+ }, {
992
+ type: "range";
993
+ gte: string;
994
+ lte: string;
995
+ }>]>>>;
996
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
997
+ type: z.ZodLiteral<"within">;
998
+ location: z.ZodString;
999
+ }, "strip", z.ZodTypeAny, {
1000
+ type: "within";
1001
+ location: string;
1002
+ }, {
1003
+ type: "within";
1004
+ location: string;
1005
+ }>, z.ZodObject<{
1006
+ type: z.ZodLiteral<"exact">;
1007
+ term: z.ZodString;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ type: "exact";
1010
+ term: string;
1011
+ }, {
1012
+ type: "exact";
1013
+ term: string;
1014
+ }>]>>>;
1015
+ 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1016
+ type: z.ZodLiteral<"exact">;
1017
+ term: z.ZodString;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ type: "exact";
1020
+ term: string;
1021
+ }, {
1022
+ type: "exact";
1023
+ term: string;
1024
+ }>>>;
1025
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1026
+ type: z.ZodLiteral<"within">;
1027
+ location: z.ZodString;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ type: "within";
1030
+ location: string;
1031
+ }, {
1032
+ type: "within";
1033
+ location: string;
1034
+ }>, z.ZodObject<{
1035
+ type: z.ZodLiteral<"exact">;
1036
+ term: z.ZodString;
1037
+ }, "strip", z.ZodTypeAny, {
1038
+ type: "exact";
1039
+ term: string;
1040
+ }, {
1041
+ type: "exact";
1042
+ term: string;
1043
+ }>]>>>;
1044
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1045
+ type: z.ZodLiteral<"within">;
1046
+ location: z.ZodString;
1047
+ }, "strip", z.ZodTypeAny, {
1048
+ type: "within";
1049
+ location: string;
1050
+ }, {
1051
+ type: "within";
1052
+ location: string;
1053
+ }>, z.ZodObject<{
1054
+ type: z.ZodLiteral<"exact">;
1055
+ term: z.ZodString;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ type: "exact";
1058
+ term: string;
1059
+ }, {
1060
+ type: "exact";
1061
+ term: string;
1062
+ }>]>>>;
1063
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1064
+ type: z.ZodLiteral<"exact">;
1065
+ term: z.ZodString;
1066
+ }, "strip", z.ZodTypeAny, {
1067
+ type: "exact";
1068
+ term: string;
1069
+ }, {
1070
+ type: "exact";
1071
+ term: string;
1072
+ }>>>;
1073
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1074
+ type: z.ZodLiteral<"exact">;
1075
+ term: z.ZodString;
1076
+ }, "strip", z.ZodTypeAny, {
1077
+ type: "exact";
1078
+ term: string;
1079
+ }, {
1080
+ type: "exact";
1081
+ term: string;
1082
+ }>>>;
1083
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1084
+ type: z.ZodLiteral<"exact">;
1085
+ term: z.ZodString;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ type: "exact";
1088
+ term: string;
1089
+ }, {
1090
+ type: "exact";
1091
+ term: string;
1092
+ }>>>;
1093
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1094
+ type: z.ZodLiteral<"exact">;
1095
+ term: z.ZodString;
1096
+ }, "strip", z.ZodTypeAny, {
1097
+ type: "exact";
1098
+ term: string;
1099
+ }, {
1100
+ type: "exact";
1101
+ term: string;
1102
+ }>>>;
1103
+ flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1104
+ type: z.ZodLiteral<"anyOf">;
1105
+ terms: z.ZodArray<z.ZodString, "many">;
1106
+ }, "strip", z.ZodTypeAny, {
1107
+ type: "anyOf";
1108
+ terms: string[];
1109
+ }, {
1110
+ type: "anyOf";
1111
+ terms: string[];
1112
+ }>, z.ZodObject<{
1113
+ type: z.ZodLiteral<"not">;
1114
+ term: z.ZodString;
1115
+ }, "strip", z.ZodTypeAny, {
1116
+ type: "not";
1117
+ term: string;
1118
+ }, {
1119
+ type: "not";
1120
+ term: string;
1121
+ }>]>, "many">>>;
1122
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1123
+ }, "strip", z.ZodTypeAny, {
1124
+ status?: {
1125
+ type: "exact";
1126
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1127
+ } | {
1128
+ type: "anyOf";
1129
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1130
+ } | undefined;
1131
+ data?: any;
1132
+ createdAt?: {
1133
+ type: "exact";
1134
+ term: string;
1135
+ } | {
1136
+ type: "range";
1137
+ gte: string;
1138
+ lte: string;
1139
+ } | undefined;
1140
+ createdBy?: {
1141
+ type: "exact";
1142
+ term: string;
1143
+ } | undefined;
1144
+ createdAtLocation?: {
1145
+ type: "exact";
1146
+ term: string;
1147
+ } | {
1148
+ type: "within";
1149
+ location: string;
1150
+ } | undefined;
1151
+ assignedTo?: {
1152
+ type: "exact";
1153
+ term: string;
1154
+ } | undefined;
1155
+ updatedAt?: {
1156
+ type: "exact";
1157
+ term: string;
1158
+ } | {
1159
+ type: "range";
1160
+ gte: string;
1161
+ lte: string;
1162
+ } | undefined;
1163
+ trackingId?: {
1164
+ type: "exact";
1165
+ term: string;
1166
+ } | undefined;
1167
+ updatedAtLocation?: {
1168
+ type: "exact";
1169
+ term: string;
1170
+ } | {
1171
+ type: "within";
1172
+ location: string;
1173
+ } | undefined;
1174
+ updatedBy?: {
1175
+ type: "exact";
1176
+ term: string;
1177
+ } | undefined;
1178
+ flags?: ({
1179
+ type: "anyOf";
1180
+ terms: string[];
1181
+ } | {
1182
+ type: "not";
1183
+ term: string;
1184
+ })[] | undefined;
1185
+ eventType?: string | undefined;
1186
+ 'legalStatus.REGISTERED.createdAt'?: {
1187
+ type: "exact";
1188
+ term: string;
1189
+ } | {
1190
+ type: "range";
1191
+ gte: string;
1192
+ lte: string;
1193
+ } | undefined;
1194
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1195
+ type: "exact";
1196
+ term: string;
1197
+ } | {
1198
+ type: "within";
1199
+ location: string;
1200
+ } | undefined;
1201
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1202
+ type: "exact";
1203
+ term: string;
1204
+ } | undefined;
1205
+ }, {
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
+ createdAtLocation?: {
1227
+ type: "exact";
1228
+ term: string;
1229
+ } | {
1230
+ type: "within";
1231
+ location: string;
1232
+ } | undefined;
1233
+ assignedTo?: {
1234
+ type: "exact";
1235
+ term: string;
1236
+ } | undefined;
1237
+ updatedAt?: {
1238
+ type: "exact";
1239
+ term: string;
1240
+ } | {
1241
+ type: "range";
1242
+ gte: string;
1243
+ lte: string;
1244
+ } | undefined;
1245
+ trackingId?: {
1246
+ type: "exact";
1247
+ term: string;
1248
+ } | undefined;
1249
+ updatedAtLocation?: {
1250
+ type: "exact";
1251
+ term: string;
1252
+ } | {
1253
+ type: "within";
1254
+ location: string;
1255
+ } | undefined;
1256
+ updatedBy?: {
1257
+ type: "exact";
1258
+ term: string;
1259
+ } | undefined;
1260
+ flags?: ({
1261
+ type: "anyOf";
1262
+ terms: string[];
1263
+ } | {
1264
+ type: "not";
1265
+ term: string;
1266
+ })[] | undefined;
1267
+ eventType?: string | undefined;
1268
+ 'legalStatus.REGISTERED.createdAt'?: {
1269
+ type: "exact";
1270
+ term: string;
1271
+ } | {
1272
+ type: "range";
1273
+ gte: string;
1274
+ lte: string;
1275
+ } | undefined;
1276
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1277
+ type: "exact";
1278
+ term: string;
1279
+ } | {
1280
+ type: "within";
1281
+ location: string;
1282
+ } | undefined;
1283
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1284
+ type: "exact";
1285
+ term: string;
1286
+ } | undefined;
1287
+ }>, "atleastone">, [{
1288
+ status?: {
1289
+ type: "exact";
1290
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1291
+ } | {
1292
+ type: "anyOf";
1293
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1294
+ } | undefined;
1295
+ data?: any;
1296
+ createdAt?: {
1297
+ type: "exact";
1298
+ term: string;
1299
+ } | {
1300
+ type: "range";
1301
+ gte: string;
1302
+ lte: string;
1303
+ } | undefined;
1304
+ createdBy?: {
1305
+ type: "exact";
1306
+ term: string;
1307
+ } | undefined;
1308
+ createdAtLocation?: {
1309
+ type: "exact";
1310
+ term: string;
1311
+ } | {
1312
+ type: "within";
1313
+ location: string;
1314
+ } | undefined;
1315
+ assignedTo?: {
1316
+ type: "exact";
1317
+ term: string;
1318
+ } | undefined;
1319
+ updatedAt?: {
1320
+ type: "exact";
1321
+ term: string;
1322
+ } | {
1323
+ type: "range";
1324
+ gte: string;
1325
+ lte: string;
1326
+ } | undefined;
1327
+ trackingId?: {
1328
+ type: "exact";
1329
+ term: string;
1330
+ } | undefined;
1331
+ updatedAtLocation?: {
1332
+ type: "exact";
1333
+ term: string;
1334
+ } | {
1335
+ type: "within";
1336
+ location: string;
1337
+ } | undefined;
1338
+ updatedBy?: {
1339
+ type: "exact";
1340
+ term: string;
1341
+ } | undefined;
1342
+ flags?: ({
1343
+ type: "anyOf";
1344
+ terms: string[];
1345
+ } | {
1346
+ type: "not";
1347
+ term: string;
1348
+ })[] | undefined;
1349
+ eventType?: string | undefined;
1350
+ 'legalStatus.REGISTERED.createdAt'?: {
1351
+ type: "exact";
1352
+ term: string;
1353
+ } | {
1354
+ type: "range";
1355
+ gte: string;
1356
+ lte: string;
1357
+ } | undefined;
1358
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1359
+ type: "exact";
1360
+ term: string;
1361
+ } | {
1362
+ type: "within";
1363
+ location: string;
1364
+ } | undefined;
1365
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1366
+ type: "exact";
1367
+ term: string;
1368
+ } | undefined;
1369
+ }, ...{
1370
+ status?: {
1371
+ type: "exact";
1372
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1373
+ } | {
1374
+ type: "anyOf";
1375
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1376
+ } | undefined;
1377
+ data?: any;
1378
+ createdAt?: {
1379
+ type: "exact";
1380
+ term: string;
1381
+ } | {
1382
+ type: "range";
1383
+ gte: string;
1384
+ lte: string;
1385
+ } | undefined;
1386
+ createdBy?: {
1387
+ type: "exact";
1388
+ term: string;
1389
+ } | undefined;
1390
+ createdAtLocation?: {
1391
+ type: "exact";
1392
+ term: string;
1393
+ } | {
1394
+ type: "within";
1395
+ location: string;
1396
+ } | undefined;
1397
+ assignedTo?: {
1398
+ type: "exact";
1399
+ term: string;
1400
+ } | undefined;
1401
+ updatedAt?: {
1402
+ type: "exact";
1403
+ term: string;
1404
+ } | {
1405
+ type: "range";
1406
+ gte: string;
1407
+ lte: string;
1408
+ } | undefined;
1409
+ trackingId?: {
1410
+ type: "exact";
1411
+ term: string;
1412
+ } | undefined;
1413
+ updatedAtLocation?: {
1414
+ type: "exact";
1415
+ term: string;
1416
+ } | {
1417
+ type: "within";
1418
+ location: string;
1419
+ } | undefined;
1420
+ updatedBy?: {
1421
+ type: "exact";
1422
+ term: string;
1423
+ } | undefined;
1424
+ flags?: ({
1425
+ type: "anyOf";
1426
+ terms: string[];
1427
+ } | {
1428
+ type: "not";
1429
+ term: string;
1430
+ })[] | undefined;
1431
+ eventType?: string | undefined;
1432
+ 'legalStatus.REGISTERED.createdAt'?: {
1433
+ type: "exact";
1434
+ term: string;
1435
+ } | {
1436
+ type: "range";
1437
+ gte: string;
1438
+ lte: string;
1439
+ } | undefined;
1440
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1441
+ type: "exact";
1442
+ term: string;
1443
+ } | {
1444
+ type: "within";
1445
+ location: string;
1446
+ } | undefined;
1447
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1448
+ type: "exact";
1449
+ term: string;
1450
+ } | undefined;
1451
+ }[]], unknown>;
1452
+ }, "strip", z.ZodTypeAny, {
1453
+ type: "and" | "or";
1454
+ clauses: [{
1455
+ status?: {
1456
+ type: "exact";
1457
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1458
+ } | {
1459
+ type: "anyOf";
1460
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1461
+ } | undefined;
1462
+ data?: any;
1463
+ createdAt?: {
1464
+ type: "exact";
1465
+ term: string;
1466
+ } | {
1467
+ type: "range";
1468
+ gte: string;
1469
+ lte: string;
1470
+ } | undefined;
1471
+ createdBy?: {
1472
+ type: "exact";
1473
+ term: string;
1474
+ } | undefined;
1475
+ createdAtLocation?: {
1476
+ type: "exact";
1477
+ term: string;
1478
+ } | {
1479
+ type: "within";
1480
+ location: string;
1481
+ } | undefined;
1482
+ assignedTo?: {
1483
+ type: "exact";
1484
+ term: string;
1485
+ } | undefined;
1486
+ updatedAt?: {
1487
+ type: "exact";
1488
+ term: string;
1489
+ } | {
1490
+ type: "range";
1491
+ gte: string;
1492
+ lte: string;
1493
+ } | undefined;
1494
+ trackingId?: {
1495
+ type: "exact";
1496
+ term: string;
1497
+ } | undefined;
1498
+ updatedAtLocation?: {
1499
+ type: "exact";
1500
+ term: string;
1501
+ } | {
1502
+ type: "within";
1503
+ location: string;
1504
+ } | undefined;
1505
+ updatedBy?: {
1506
+ type: "exact";
1507
+ term: string;
1508
+ } | undefined;
1509
+ flags?: ({
1510
+ type: "anyOf";
1511
+ terms: string[];
1512
+ } | {
1513
+ type: "not";
1514
+ term: string;
1515
+ })[] | undefined;
1516
+ eventType?: string | undefined;
1517
+ 'legalStatus.REGISTERED.createdAt'?: {
1518
+ type: "exact";
1519
+ term: string;
1520
+ } | {
1521
+ type: "range";
1522
+ gte: string;
1523
+ lte: string;
1524
+ } | undefined;
1525
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1526
+ type: "exact";
1527
+ term: string;
1528
+ } | {
1529
+ type: "within";
1530
+ location: string;
1531
+ } | undefined;
1532
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1533
+ type: "exact";
1534
+ term: string;
1535
+ } | undefined;
1536
+ }, ...{
1537
+ status?: {
1538
+ type: "exact";
1539
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1540
+ } | {
1541
+ type: "anyOf";
1542
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1543
+ } | undefined;
1544
+ data?: any;
1545
+ createdAt?: {
1546
+ type: "exact";
1547
+ term: string;
1548
+ } | {
1549
+ type: "range";
1550
+ gte: string;
1551
+ lte: string;
1552
+ } | undefined;
1553
+ createdBy?: {
1554
+ type: "exact";
1555
+ term: string;
1556
+ } | undefined;
1557
+ createdAtLocation?: {
1558
+ type: "exact";
1559
+ term: string;
1560
+ } | {
1561
+ type: "within";
1562
+ location: string;
1563
+ } | undefined;
1564
+ assignedTo?: {
1565
+ type: "exact";
1566
+ term: string;
1567
+ } | undefined;
1568
+ updatedAt?: {
1569
+ type: "exact";
1570
+ term: string;
1571
+ } | {
1572
+ type: "range";
1573
+ gte: string;
1574
+ lte: string;
1575
+ } | undefined;
1576
+ trackingId?: {
1577
+ type: "exact";
1578
+ term: string;
1579
+ } | undefined;
1580
+ updatedAtLocation?: {
1581
+ type: "exact";
1582
+ term: string;
1583
+ } | {
1584
+ type: "within";
1585
+ location: string;
1586
+ } | undefined;
1587
+ updatedBy?: {
1588
+ type: "exact";
1589
+ term: string;
1590
+ } | undefined;
1591
+ flags?: ({
1592
+ type: "anyOf";
1593
+ terms: string[];
1594
+ } | {
1595
+ type: "not";
1596
+ term: string;
1597
+ })[] | undefined;
1598
+ eventType?: string | undefined;
1599
+ 'legalStatus.REGISTERED.createdAt'?: {
1600
+ type: "exact";
1601
+ term: string;
1602
+ } | {
1603
+ type: "range";
1604
+ gte: string;
1605
+ lte: string;
1606
+ } | undefined;
1607
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1608
+ type: "exact";
1609
+ term: string;
1610
+ } | {
1611
+ type: "within";
1612
+ location: string;
1613
+ } | undefined;
1614
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1615
+ type: "exact";
1616
+ term: string;
1617
+ } | undefined;
1618
+ }[]];
1619
+ }, {
1620
+ type: "and" | "or";
1621
+ clauses?: unknown;
1622
+ }>;
1623
+ export type QueryType = z.infer<typeof QueryType>;
1624
+ export type QueryExpression = z.infer<typeof QueryExpression>;
1625
+ export {};
58
1626
  //# sourceMappingURL=EventIndex.d.ts.map