@opencrvs/toolkit 1.8.0-rc.ffb4f66 → 1.8.0-rc.ffe24c3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/commons/api/router.d.ts +14742 -734
  2. package/dist/commons/conditionals/conditionals.d.ts +14 -6
  3. package/dist/commons/conditionals/validate.d.ts +10 -6
  4. package/dist/commons/events/ActionConfig.d.ts +117418 -1729
  5. package/dist/commons/events/ActionDocument.d.ts +2581 -560
  6. package/dist/commons/events/ActionInput.d.ts +1705 -425
  7. package/dist/commons/events/ActionType.d.ts +6 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1233 -22
  9. package/dist/commons/events/CompositeFieldValue.d.ts +31 -0
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +3730 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  13. package/dist/commons/events/Draft.d.ts +162 -43
  14. package/dist/commons/events/EventConfig.d.ts +56501 -1354
  15. package/dist/commons/events/EventDocument.d.ts +1635 -396
  16. package/dist/commons/events/EventIndex.d.ts +2007 -27
  17. package/dist/commons/events/EventMetadata.d.ts +343 -45
  18. package/dist/commons/events/FieldConfig.d.ts +5450 -1033
  19. package/dist/commons/events/FieldType.d.ts +6 -3
  20. package/dist/commons/events/FieldTypeMapping.d.ts +103 -54
  21. package/dist/commons/events/FieldValue.d.ts +49 -8
  22. package/dist/commons/events/FormConfig.d.ts +49156 -514
  23. package/dist/commons/events/PageConfig.d.ts +12206 -204
  24. package/dist/commons/events/SummaryConfig.d.ts +93 -42
  25. package/dist/commons/events/User.d.ts +31 -2
  26. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  27. package/dist/commons/events/WorkqueueConfig.d.ts +7300 -20
  28. package/dist/commons/events/defineConfig.d.ts +9001 -58
  29. package/dist/commons/events/event.d.ts +54 -0
  30. package/dist/commons/events/field.d.ts +82 -0
  31. package/dist/commons/events/index.d.ts +8 -0
  32. package/dist/commons/events/scopes.d.ts +44 -0
  33. package/dist/commons/events/serializer.d.ts +2 -0
  34. package/dist/commons/events/test.utils.d.ts +171 -79
  35. package/dist/commons/events/transactions.d.ts +1 -1
  36. package/dist/commons/events/utils.d.ts +13365 -71
  37. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  38. package/dist/conditionals/index.js +76 -36
  39. package/dist/events/index.js +4114 -1495
  40. package/dist/scopes/index.d.ts +161 -1
  41. package/dist/scopes/index.js +202 -1
  42. package/package.json +4 -3
@@ -1,53 +1,429 @@
1
- import { z } from 'zod';
1
+ import { z, ZodType } from 'zod';
2
2
  export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
- id: z.ZodString;
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
4
  type: z.ZodString;
5
- 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.ZodBranded<z.ZodString, "UUID">>>;
11
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
12
+ acceptedAt: z.ZodString;
13
+ createdByRole: z.ZodString;
14
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ createdAt: string;
17
+ createdBy: string;
18
+ createdByRole: string;
19
+ acceptedAt: string;
20
+ createdByUserType?: "system" | "user" | null | undefined;
21
+ createdBySignature?: string | null | undefined;
22
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
23
+ }, {
24
+ createdAt: string;
25
+ createdBy: string;
26
+ createdByRole: string;
27
+ acceptedAt: string;
28
+ createdByUserType?: "system" | "user" | null | undefined;
29
+ createdBySignature?: string | null | undefined;
30
+ createdAtLocation?: string | null | undefined;
31
+ }>>>;
32
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
33
+ createdAt: z.ZodString;
34
+ createdBy: z.ZodString;
35
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
36
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
37
+ acceptedAt: z.ZodString;
38
+ createdByRole: z.ZodString;
39
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, {
41
+ registrationNumber: z.ZodString;
42
+ }>, "strip", z.ZodTypeAny, {
43
+ createdAt: string;
44
+ createdBy: string;
45
+ createdByRole: string;
46
+ registrationNumber: string;
47
+ acceptedAt: string;
48
+ createdByUserType?: "system" | "user" | null | undefined;
49
+ createdBySignature?: string | null | undefined;
50
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
51
+ }, {
52
+ createdAt: string;
53
+ createdBy: string;
54
+ createdByRole: string;
55
+ registrationNumber: string;
56
+ acceptedAt: string;
57
+ createdByUserType?: "system" | "user" | null | undefined;
58
+ createdBySignature?: string | null | undefined;
59
+ createdAtLocation?: string | null | undefined;
60
+ }>>>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ DECLARED?: {
63
+ createdAt: string;
64
+ createdBy: string;
65
+ createdByRole: string;
66
+ acceptedAt: string;
67
+ createdByUserType?: "system" | "user" | null | undefined;
68
+ createdBySignature?: string | null | undefined;
69
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
70
+ } | null | undefined;
71
+ REGISTERED?: {
72
+ createdAt: string;
73
+ createdBy: string;
74
+ createdByRole: string;
75
+ registrationNumber: string;
76
+ acceptedAt: string;
77
+ createdByUserType?: "system" | "user" | null | undefined;
78
+ createdBySignature?: string | null | undefined;
79
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
80
+ } | null | undefined;
81
+ }, {
82
+ DECLARED?: {
83
+ createdAt: string;
84
+ createdBy: string;
85
+ createdByRole: string;
86
+ acceptedAt: string;
87
+ createdByUserType?: "system" | "user" | null | undefined;
88
+ createdBySignature?: string | null | undefined;
89
+ createdAtLocation?: string | null | undefined;
90
+ } | null | undefined;
91
+ REGISTERED?: {
92
+ createdAt: string;
93
+ createdBy: string;
94
+ createdByRole: string;
95
+ registrationNumber: string;
96
+ acceptedAt: string;
97
+ createdByUserType?: "system" | "user" | null | undefined;
98
+ createdBySignature?: string | null | undefined;
99
+ createdAtLocation?: string | null | undefined;
100
+ } | null | undefined;
14
101
  }>;
15
102
  createdAt: z.ZodString;
103
+ dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
104
  createdBy: z.ZodString;
17
- createdAtLocation: z.ZodString;
18
- modifiedAt: z.ZodString;
105
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
106
+ updatedByUserRole: z.ZodString;
107
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
108
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
110
+ updatedAt: z.ZodString;
19
111
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- updatedBy: z.ZodString;
112
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
113
  trackingId: z.ZodString;
22
- registrationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
+ flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
115
+ readonly PRINTED: "printed";
116
+ readonly INCOMPLETE: "incomplete";
117
+ readonly REJECTED: "rejected";
118
+ readonly CORRECTION_REQUESTED: "correction-requested";
119
+ }>]>, "many">;
23
120
  }, {
24
- declaration: z.ZodRecord<z.ZodString, z.ZodAny>;
121
+ 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<{
122
+ filename: z.ZodString;
123
+ originalFilename: z.ZodString;
124
+ type: z.ZodString;
125
+ }, "strip", z.ZodTypeAny, {
126
+ type: string;
127
+ filename: string;
128
+ originalFilename: string;
129
+ }, {
130
+ type: string;
131
+ filename: string;
132
+ originalFilename: string;
133
+ }>, z.ZodArray<z.ZodObject<{
134
+ filename: z.ZodString;
135
+ originalFilename: z.ZodString;
136
+ type: z.ZodString;
137
+ option: z.ZodString;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: string;
140
+ option: string;
141
+ filename: string;
142
+ originalFilename: string;
143
+ }, {
144
+ type: string;
145
+ option: string;
146
+ filename: string;
147
+ originalFilename: string;
148
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
149
+ country: z.ZodString;
150
+ addressType: z.ZodLiteral<"DOMESTIC">;
151
+ province: z.ZodString;
152
+ district: z.ZodString;
153
+ }, {
154
+ urbanOrRural: z.ZodLiteral<"URBAN">;
155
+ town: z.ZodOptional<z.ZodString>;
156
+ residentialArea: z.ZodOptional<z.ZodString>;
157
+ street: z.ZodOptional<z.ZodString>;
158
+ number: z.ZodOptional<z.ZodString>;
159
+ zipCode: z.ZodOptional<z.ZodString>;
160
+ }>, "strip", z.ZodTypeAny, {
161
+ country: string;
162
+ district: string;
163
+ addressType: "DOMESTIC";
164
+ province: string;
165
+ urbanOrRural: "URBAN";
166
+ number?: string | undefined;
167
+ town?: string | undefined;
168
+ residentialArea?: string | undefined;
169
+ street?: string | undefined;
170
+ zipCode?: string | undefined;
171
+ }, {
172
+ country: string;
173
+ district: string;
174
+ addressType: "DOMESTIC";
175
+ province: string;
176
+ urbanOrRural: "URBAN";
177
+ number?: string | undefined;
178
+ town?: string | undefined;
179
+ residentialArea?: string | undefined;
180
+ street?: string | undefined;
181
+ zipCode?: string | undefined;
182
+ }>, z.ZodObject<z.objectUtil.extendShape<{
183
+ country: z.ZodString;
184
+ addressType: z.ZodLiteral<"DOMESTIC">;
185
+ province: z.ZodString;
186
+ district: z.ZodString;
187
+ }, {
188
+ urbanOrRural: z.ZodLiteral<"RURAL">;
189
+ village: z.ZodOptional<z.ZodString>;
190
+ }>, "strip", z.ZodTypeAny, {
191
+ country: string;
192
+ district: string;
193
+ addressType: "DOMESTIC";
194
+ province: string;
195
+ urbanOrRural: "RURAL";
196
+ village?: string | undefined;
197
+ }, {
198
+ country: string;
199
+ district: string;
200
+ addressType: "DOMESTIC";
201
+ province: string;
202
+ urbanOrRural: "RURAL";
203
+ village?: string | undefined;
204
+ }>, z.ZodUndefined, z.ZodObject<{
205
+ country: z.ZodString;
206
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
207
+ state: z.ZodString;
208
+ district2: z.ZodString;
209
+ cityOrTown: z.ZodOptional<z.ZodString>;
210
+ addressLine1: z.ZodOptional<z.ZodString>;
211
+ addressLine2: z.ZodOptional<z.ZodString>;
212
+ addressLine3: z.ZodOptional<z.ZodString>;
213
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ country: string;
216
+ state: string;
217
+ addressType: "INTERNATIONAL";
218
+ district2: string;
219
+ cityOrTown?: string | undefined;
220
+ addressLine1?: string | undefined;
221
+ addressLine2?: string | undefined;
222
+ addressLine3?: string | undefined;
223
+ postcodeOrZip?: string | undefined;
224
+ }, {
225
+ country: string;
226
+ state: string;
227
+ addressType: "INTERNATIONAL";
228
+ district2: string;
229
+ cityOrTown?: string | undefined;
230
+ addressLine1?: string | undefined;
231
+ addressLine2?: string | undefined;
232
+ addressLine3?: string | undefined;
233
+ postcodeOrZip?: string | undefined;
234
+ }>, z.ZodObject<{
235
+ firstname: z.ZodString;
236
+ surname: z.ZodString;
237
+ middlename: z.ZodOptional<z.ZodString>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ firstname: string;
240
+ surname: string;
241
+ middlename?: string | undefined;
242
+ }, {
243
+ firstname: string;
244
+ surname: string;
245
+ middlename?: string | undefined;
246
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
247
+ firstname: z.ZodString;
248
+ surname: z.ZodString;
249
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ firstname: string;
252
+ surname: string;
253
+ middlename?: string | null | undefined;
254
+ }, {
255
+ firstname: string;
256
+ surname: string;
257
+ middlename?: string | null | undefined;
258
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
25
259
  }>, "strip", z.ZodTypeAny, {
26
260
  type: string;
27
- id: string;
261
+ id: string & z.BRAND<"UUID">;
28
262
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
29
263
  createdAt: string;
30
264
  createdBy: string;
31
- declaration: Record<string, any>;
32
- createdAtLocation: string;
265
+ declaration: Record<string, string | number | boolean | {
266
+ type: string;
267
+ filename: string;
268
+ originalFilename: string;
269
+ } | {
270
+ country: string;
271
+ district: string;
272
+ addressType: "DOMESTIC";
273
+ province: string;
274
+ urbanOrRural: "URBAN";
275
+ number?: string | undefined;
276
+ town?: string | undefined;
277
+ residentialArea?: string | undefined;
278
+ street?: string | undefined;
279
+ zipCode?: string | undefined;
280
+ } | {
281
+ country: string;
282
+ district: string;
283
+ addressType: "DOMESTIC";
284
+ province: string;
285
+ urbanOrRural: "RURAL";
286
+ village?: string | undefined;
287
+ } | {
288
+ firstname: string;
289
+ surname: string;
290
+ middlename?: string | undefined;
291
+ } | {
292
+ firstname: string;
293
+ surname: string;
294
+ middlename?: string | null | undefined;
295
+ } | {
296
+ country: string;
297
+ state: string;
298
+ addressType: "INTERNATIONAL";
299
+ district2: string;
300
+ cityOrTown?: string | undefined;
301
+ addressLine1?: string | undefined;
302
+ addressLine2?: string | undefined;
303
+ addressLine3?: string | undefined;
304
+ postcodeOrZip?: string | undefined;
305
+ } | {
306
+ type: string;
307
+ option: string;
308
+ filename: string;
309
+ originalFilename: string;
310
+ }[] | [string, string] | null | undefined>;
311
+ updatedAt: string;
33
312
  trackingId: string;
34
- modifiedAt: string;
35
- updatedBy: string;
313
+ legalStatuses: {
314
+ DECLARED?: {
315
+ createdAt: string;
316
+ createdBy: string;
317
+ createdByRole: string;
318
+ acceptedAt: string;
319
+ createdByUserType?: "system" | "user" | null | undefined;
320
+ createdBySignature?: string | null | undefined;
321
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
322
+ } | null | undefined;
323
+ REGISTERED?: {
324
+ createdAt: string;
325
+ createdBy: string;
326
+ createdByRole: string;
327
+ registrationNumber: string;
328
+ acceptedAt: string;
329
+ createdByUserType?: "system" | "user" | null | undefined;
330
+ createdBySignature?: string | null | undefined;
331
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
332
+ } | null | undefined;
333
+ };
334
+ updatedByUserRole: string;
335
+ flags: string[];
336
+ createdByUserType?: "system" | "user" | null | undefined;
337
+ createdBySignature?: string | null | undefined;
338
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
36
339
  assignedTo?: string | null | undefined;
37
- registrationNumber?: string | null | undefined;
340
+ dateOfEvent?: string | null | undefined;
341
+ updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
342
+ updatedBy?: string | null | undefined;
38
343
  }, {
39
344
  type: string;
40
345
  id: string;
41
346
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
42
347
  createdAt: string;
43
348
  createdBy: string;
44
- declaration: Record<string, any>;
45
- createdAtLocation: string;
349
+ declaration: Record<string, string | number | boolean | {
350
+ type: string;
351
+ filename: string;
352
+ originalFilename: string;
353
+ } | {
354
+ country: string;
355
+ district: string;
356
+ addressType: "DOMESTIC";
357
+ province: string;
358
+ urbanOrRural: "URBAN";
359
+ number?: string | undefined;
360
+ town?: string | undefined;
361
+ residentialArea?: string | undefined;
362
+ street?: string | undefined;
363
+ zipCode?: string | undefined;
364
+ } | {
365
+ country: string;
366
+ district: string;
367
+ addressType: "DOMESTIC";
368
+ province: string;
369
+ urbanOrRural: "RURAL";
370
+ village?: string | undefined;
371
+ } | {
372
+ firstname: string;
373
+ surname: string;
374
+ middlename?: string | undefined;
375
+ } | {
376
+ firstname: string;
377
+ surname: string;
378
+ middlename?: string | null | undefined;
379
+ } | {
380
+ country: string;
381
+ state: string;
382
+ addressType: "INTERNATIONAL";
383
+ district2: string;
384
+ cityOrTown?: string | undefined;
385
+ addressLine1?: string | undefined;
386
+ addressLine2?: string | undefined;
387
+ addressLine3?: string | undefined;
388
+ postcodeOrZip?: string | undefined;
389
+ } | {
390
+ type: string;
391
+ option: string;
392
+ filename: string;
393
+ originalFilename: string;
394
+ }[] | [string, string] | null | undefined>;
395
+ updatedAt: string;
46
396
  trackingId: string;
47
- modifiedAt: string;
48
- updatedBy: string;
397
+ legalStatuses: {
398
+ DECLARED?: {
399
+ createdAt: string;
400
+ createdBy: string;
401
+ createdByRole: string;
402
+ acceptedAt: string;
403
+ createdByUserType?: "system" | "user" | null | undefined;
404
+ createdBySignature?: string | null | undefined;
405
+ createdAtLocation?: string | null | undefined;
406
+ } | null | undefined;
407
+ REGISTERED?: {
408
+ createdAt: string;
409
+ createdBy: string;
410
+ createdByRole: string;
411
+ registrationNumber: string;
412
+ acceptedAt: string;
413
+ createdByUserType?: "system" | "user" | null | undefined;
414
+ createdBySignature?: string | null | undefined;
415
+ createdAtLocation?: string | null | undefined;
416
+ } | null | undefined;
417
+ };
418
+ updatedByUserRole: string;
419
+ flags: string[];
420
+ createdByUserType?: "system" | "user" | null | undefined;
421
+ createdBySignature?: string | null | undefined;
422
+ createdAtLocation?: string | null | undefined;
49
423
  assignedTo?: string | null | undefined;
50
- registrationNumber?: string | null | undefined;
424
+ dateOfEvent?: string | null | undefined;
425
+ updatedAtLocation?: string | null | undefined;
426
+ updatedBy?: string | null | undefined;
51
427
  }>;
52
428
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
53
429
  type: z.ZodString;
@@ -58,4 +434,1608 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
58
434
  }>>;
59
435
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
60
436
  export type EventIndex = z.infer<typeof EventIndex>;
437
+ export declare const Fuzzy: z.ZodObject<{
438
+ type: z.ZodLiteral<"fuzzy">;
439
+ term: z.ZodString;
440
+ }, "strip", z.ZodTypeAny, {
441
+ type: "fuzzy";
442
+ term: string;
443
+ }, {
444
+ type: "fuzzy";
445
+ term: string;
446
+ }>;
447
+ export declare const Exact: z.ZodObject<{
448
+ type: z.ZodLiteral<"exact">;
449
+ term: z.ZodString;
450
+ }, "strip", z.ZodTypeAny, {
451
+ type: "exact";
452
+ term: string;
453
+ }, {
454
+ type: "exact";
455
+ term: string;
456
+ }>;
457
+ export declare const ExactStatus: z.ZodObject<{
458
+ type: z.ZodLiteral<"exact">;
459
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ type: "exact";
462
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
463
+ }, {
464
+ type: "exact";
465
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
466
+ }>;
467
+ export declare const AnyOf: z.ZodObject<{
468
+ type: z.ZodLiteral<"anyOf">;
469
+ terms: z.ZodArray<z.ZodString, "many">;
470
+ }, "strip", z.ZodTypeAny, {
471
+ type: "anyOf";
472
+ terms: string[];
473
+ }, {
474
+ type: "anyOf";
475
+ terms: string[];
476
+ }>;
477
+ export declare const AnyOfStatus: z.ZodObject<{
478
+ type: z.ZodLiteral<"anyOf">;
479
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
480
+ }, "strip", z.ZodTypeAny, {
481
+ type: "anyOf";
482
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
483
+ }, {
484
+ type: "anyOf";
485
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
486
+ }>;
487
+ export declare const Range: z.ZodObject<{
488
+ type: z.ZodLiteral<"range">;
489
+ gte: z.ZodString;
490
+ lte: z.ZodString;
491
+ }, "strip", z.ZodTypeAny, {
492
+ type: "range";
493
+ gte: string;
494
+ lte: string;
495
+ }, {
496
+ type: "range";
497
+ gte: string;
498
+ lte: string;
499
+ }>;
500
+ export declare const ContainsFlags: z.ZodObject<{
501
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
502
+ readonly PRINTED: "printed";
503
+ readonly INCOMPLETE: "incomplete";
504
+ readonly REJECTED: "rejected";
505
+ readonly CORRECTION_REQUESTED: "correction-requested";
506
+ }>]>, "many">>;
507
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
508
+ readonly PRINTED: "printed";
509
+ readonly INCOMPLETE: "incomplete";
510
+ readonly REJECTED: "rejected";
511
+ readonly CORRECTION_REQUESTED: "correction-requested";
512
+ }>]>, "many">>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ anyOf?: string[] | undefined;
515
+ noneOf?: string[] | undefined;
516
+ }, {
517
+ anyOf?: string[] | undefined;
518
+ noneOf?: string[] | undefined;
519
+ }>;
520
+ export declare const Within: z.ZodObject<{
521
+ type: z.ZodLiteral<"within">;
522
+ location: z.ZodString;
523
+ }, "strip", z.ZodTypeAny, {
524
+ type: "within";
525
+ location: string;
526
+ }, {
527
+ type: "within";
528
+ location: string;
529
+ }>;
530
+ export declare const RangeDate: z.ZodObject<z.objectUtil.extendShape<{
531
+ type: z.ZodLiteral<"range">;
532
+ gte: z.ZodString;
533
+ lte: z.ZodString;
534
+ }, {
535
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
536
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
537
+ }>, "strip", z.ZodTypeAny, {
538
+ type: "range";
539
+ gte: string;
540
+ lte: string;
541
+ }, {
542
+ type: "range";
543
+ gte: string;
544
+ lte: string;
545
+ }>;
546
+ export declare const ExactDate: z.ZodObject<z.objectUtil.extendShape<{
547
+ type: z.ZodLiteral<"exact">;
548
+ term: z.ZodString;
549
+ }, {
550
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
551
+ }>, "strip", z.ZodTypeAny, {
552
+ type: "exact";
553
+ term: string;
554
+ }, {
555
+ type: "exact";
556
+ term: string;
557
+ }>;
558
+ export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
559
+ type: z.ZodLiteral<"exact">;
560
+ term: z.ZodString;
561
+ }, {
562
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
563
+ }>, "strip", z.ZodTypeAny, {
564
+ type: "exact";
565
+ term: string;
566
+ }, {
567
+ type: "exact";
568
+ term: string;
569
+ }>, z.ZodObject<z.objectUtil.extendShape<{
570
+ type: z.ZodLiteral<"range">;
571
+ gte: z.ZodString;
572
+ lte: z.ZodString;
573
+ }, {
574
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
575
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
576
+ }>, "strip", z.ZodTypeAny, {
577
+ type: "range";
578
+ gte: string;
579
+ lte: string;
580
+ }, {
581
+ type: "range";
582
+ gte: string;
583
+ lte: string;
584
+ }>]>;
585
+ export declare const QueryInput: ZodType;
586
+ export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf>;
587
+ type QueryMap = {
588
+ [key: string]: BaseInput | QueryMap;
589
+ };
590
+ export type QueryInputType = BaseInput | QueryMap;
591
+ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
592
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
593
+ eventType: z.ZodOptional<z.ZodString>;
594
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
595
+ type: z.ZodLiteral<"anyOf">;
596
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
597
+ }, "strip", z.ZodTypeAny, {
598
+ type: "anyOf";
599
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
600
+ }, {
601
+ type: "anyOf";
602
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
603
+ }>, z.ZodObject<{
604
+ type: z.ZodLiteral<"exact">;
605
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
606
+ }, "strip", z.ZodTypeAny, {
607
+ type: "exact";
608
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
609
+ }, {
610
+ type: "exact";
611
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
612
+ }>]>>>;
613
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
614
+ type: z.ZodLiteral<"exact">;
615
+ term: z.ZodString;
616
+ }, {
617
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
618
+ }>, "strip", z.ZodTypeAny, {
619
+ type: "exact";
620
+ term: string;
621
+ }, {
622
+ type: "exact";
623
+ term: string;
624
+ }>, z.ZodObject<z.objectUtil.extendShape<{
625
+ type: z.ZodLiteral<"range">;
626
+ gte: z.ZodString;
627
+ lte: z.ZodString;
628
+ }, {
629
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
630
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
631
+ }>, "strip", z.ZodTypeAny, {
632
+ type: "range";
633
+ gte: string;
634
+ lte: string;
635
+ }, {
636
+ type: "range";
637
+ gte: string;
638
+ lte: string;
639
+ }>]>>>;
640
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
641
+ type: z.ZodLiteral<"exact">;
642
+ term: z.ZodString;
643
+ }, {
644
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
645
+ }>, "strip", z.ZodTypeAny, {
646
+ type: "exact";
647
+ term: string;
648
+ }, {
649
+ type: "exact";
650
+ term: string;
651
+ }>, z.ZodObject<z.objectUtil.extendShape<{
652
+ type: z.ZodLiteral<"range">;
653
+ gte: z.ZodString;
654
+ lte: z.ZodString;
655
+ }, {
656
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
657
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
658
+ }>, "strip", z.ZodTypeAny, {
659
+ type: "range";
660
+ gte: string;
661
+ lte: string;
662
+ }, {
663
+ type: "range";
664
+ gte: string;
665
+ lte: string;
666
+ }>]>>>;
667
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
668
+ type: z.ZodLiteral<"exact">;
669
+ term: z.ZodString;
670
+ }, {
671
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
672
+ }>, "strip", z.ZodTypeAny, {
673
+ type: "exact";
674
+ term: string;
675
+ }, {
676
+ type: "exact";
677
+ term: string;
678
+ }>, z.ZodObject<z.objectUtil.extendShape<{
679
+ type: z.ZodLiteral<"range">;
680
+ gte: z.ZodString;
681
+ lte: z.ZodString;
682
+ }, {
683
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
684
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
685
+ }>, "strip", z.ZodTypeAny, {
686
+ type: "range";
687
+ gte: string;
688
+ lte: string;
689
+ }, {
690
+ type: "range";
691
+ gte: string;
692
+ lte: string;
693
+ }>]>>>;
694
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
695
+ type: z.ZodLiteral<"within">;
696
+ location: z.ZodString;
697
+ }, "strip", z.ZodTypeAny, {
698
+ type: "within";
699
+ location: string;
700
+ }, {
701
+ type: "within";
702
+ location: string;
703
+ }>, 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
+ 'legalStatus.REGISTERED.registrationNumber': 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
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
724
+ type: z.ZodLiteral<"within">;
725
+ location: z.ZodString;
726
+ }, "strip", z.ZodTypeAny, {
727
+ type: "within";
728
+ location: string;
729
+ }, {
730
+ type: "within";
731
+ location: string;
732
+ }>, z.ZodObject<{
733
+ type: z.ZodLiteral<"exact">;
734
+ term: z.ZodString;
735
+ }, "strip", z.ZodTypeAny, {
736
+ type: "exact";
737
+ term: string;
738
+ }, {
739
+ type: "exact";
740
+ term: string;
741
+ }>]>>>;
742
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
743
+ type: z.ZodLiteral<"within">;
744
+ location: z.ZodString;
745
+ }, "strip", z.ZodTypeAny, {
746
+ type: "within";
747
+ location: string;
748
+ }, {
749
+ type: "within";
750
+ location: string;
751
+ }>, z.ZodObject<{
752
+ type: z.ZodLiteral<"exact">;
753
+ term: z.ZodString;
754
+ }, "strip", z.ZodTypeAny, {
755
+ type: "exact";
756
+ term: string;
757
+ }, {
758
+ type: "exact";
759
+ term: string;
760
+ }>]>>>;
761
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
762
+ type: z.ZodLiteral<"exact">;
763
+ term: z.ZodString;
764
+ }, "strip", z.ZodTypeAny, {
765
+ type: "exact";
766
+ term: string;
767
+ }, {
768
+ type: "exact";
769
+ term: string;
770
+ }>>>;
771
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
772
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
773
+ type: z.ZodLiteral<"exact">;
774
+ term: z.ZodString;
775
+ }, "strip", z.ZodTypeAny, {
776
+ type: "exact";
777
+ term: string;
778
+ }, {
779
+ type: "exact";
780
+ term: string;
781
+ }>>>;
782
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
783
+ type: z.ZodLiteral<"exact">;
784
+ term: z.ZodString;
785
+ }, "strip", z.ZodTypeAny, {
786
+ type: "exact";
787
+ term: string;
788
+ }, {
789
+ type: "exact";
790
+ term: string;
791
+ }>>>;
792
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
793
+ type: z.ZodLiteral<"exact">;
794
+ term: z.ZodString;
795
+ }, "strip", z.ZodTypeAny, {
796
+ type: "exact";
797
+ term: string;
798
+ }, {
799
+ type: "exact";
800
+ term: string;
801
+ }>>>;
802
+ flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
803
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
804
+ readonly PRINTED: "printed";
805
+ readonly INCOMPLETE: "incomplete";
806
+ readonly REJECTED: "rejected";
807
+ readonly CORRECTION_REQUESTED: "correction-requested";
808
+ }>]>, "many">>;
809
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
810
+ readonly PRINTED: "printed";
811
+ readonly INCOMPLETE: "incomplete";
812
+ readonly REJECTED: "rejected";
813
+ readonly CORRECTION_REQUESTED: "correction-requested";
814
+ }>]>, "many">>;
815
+ }, "strip", z.ZodTypeAny, {
816
+ anyOf?: string[] | undefined;
817
+ noneOf?: string[] | undefined;
818
+ }, {
819
+ anyOf?: string[] | undefined;
820
+ noneOf?: string[] | undefined;
821
+ }>>>;
822
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
823
+ }, "strip", z.ZodTypeAny, {
824
+ id?: string | undefined;
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
+ createdByUserType?: "system" | "user" | undefined;
834
+ createdAt?: {
835
+ type: "range";
836
+ gte: string;
837
+ lte: string;
838
+ } | {
839
+ type: "exact";
840
+ term: string;
841
+ } | undefined;
842
+ createdBy?: {
843
+ type: "exact";
844
+ term: string;
845
+ } | undefined;
846
+ createdAtLocation?: {
847
+ type: "exact";
848
+ term: string;
849
+ } | {
850
+ type: "within";
851
+ location: string;
852
+ } | undefined;
853
+ assignedTo?: {
854
+ type: "exact";
855
+ term: string;
856
+ } | undefined;
857
+ updatedAt?: {
858
+ type: "range";
859
+ gte: string;
860
+ lte: string;
861
+ } | {
862
+ type: "exact";
863
+ term: string;
864
+ } | undefined;
865
+ trackingId?: {
866
+ type: "exact";
867
+ term: string;
868
+ } | undefined;
869
+ updatedAtLocation?: {
870
+ type: "exact";
871
+ term: string;
872
+ } | {
873
+ type: "within";
874
+ location: string;
875
+ } | undefined;
876
+ updatedBy?: {
877
+ type: "exact";
878
+ term: string;
879
+ } | undefined;
880
+ flags?: {
881
+ anyOf?: string[] | undefined;
882
+ noneOf?: string[] | undefined;
883
+ } | undefined;
884
+ eventType?: string | undefined;
885
+ 'legalStatus.REGISTERED.createdAt'?: {
886
+ type: "range";
887
+ gte: string;
888
+ lte: string;
889
+ } | {
890
+ type: "exact";
891
+ term: string;
892
+ } | undefined;
893
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
894
+ type: "exact";
895
+ term: string;
896
+ } | {
897
+ type: "within";
898
+ location: string;
899
+ } | undefined;
900
+ 'legalStatus.REGISTERED.registrationNumber'?: {
901
+ type: "exact";
902
+ term: string;
903
+ } | undefined;
904
+ }, {
905
+ id?: string | undefined;
906
+ status?: {
907
+ type: "exact";
908
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
909
+ } | {
910
+ type: "anyOf";
911
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
912
+ } | undefined;
913
+ data?: any;
914
+ createdByUserType?: "system" | "user" | undefined;
915
+ createdAt?: {
916
+ type: "range";
917
+ gte: string;
918
+ lte: string;
919
+ } | {
920
+ type: "exact";
921
+ term: string;
922
+ } | undefined;
923
+ createdBy?: {
924
+ type: "exact";
925
+ term: string;
926
+ } | undefined;
927
+ createdAtLocation?: {
928
+ type: "exact";
929
+ term: string;
930
+ } | {
931
+ type: "within";
932
+ location: string;
933
+ } | undefined;
934
+ assignedTo?: {
935
+ type: "exact";
936
+ term: string;
937
+ } | undefined;
938
+ updatedAt?: {
939
+ type: "range";
940
+ gte: string;
941
+ lte: string;
942
+ } | {
943
+ type: "exact";
944
+ term: string;
945
+ } | undefined;
946
+ trackingId?: {
947
+ type: "exact";
948
+ term: string;
949
+ } | undefined;
950
+ updatedAtLocation?: {
951
+ type: "exact";
952
+ term: string;
953
+ } | {
954
+ type: "within";
955
+ location: string;
956
+ } | undefined;
957
+ updatedBy?: {
958
+ type: "exact";
959
+ term: string;
960
+ } | undefined;
961
+ flags?: {
962
+ anyOf?: string[] | undefined;
963
+ noneOf?: string[] | undefined;
964
+ } | undefined;
965
+ eventType?: string | undefined;
966
+ 'legalStatus.REGISTERED.createdAt'?: {
967
+ type: "range";
968
+ gte: string;
969
+ lte: string;
970
+ } | {
971
+ type: "exact";
972
+ term: string;
973
+ } | undefined;
974
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
975
+ type: "exact";
976
+ term: string;
977
+ } | {
978
+ type: "within";
979
+ location: string;
980
+ } | undefined;
981
+ 'legalStatus.REGISTERED.registrationNumber'?: {
982
+ type: "exact";
983
+ term: string;
984
+ } | undefined;
985
+ }>, {
986
+ id?: string | undefined;
987
+ status?: {
988
+ type: "exact";
989
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
990
+ } | {
991
+ type: "anyOf";
992
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
993
+ } | undefined;
994
+ data?: any;
995
+ createdByUserType?: "system" | "user" | undefined;
996
+ createdAt?: {
997
+ type: "range";
998
+ gte: string;
999
+ lte: string;
1000
+ } | {
1001
+ type: "exact";
1002
+ term: string;
1003
+ } | undefined;
1004
+ createdBy?: {
1005
+ type: "exact";
1006
+ term: string;
1007
+ } | undefined;
1008
+ createdAtLocation?: {
1009
+ type: "exact";
1010
+ term: string;
1011
+ } | {
1012
+ type: "within";
1013
+ location: string;
1014
+ } | undefined;
1015
+ assignedTo?: {
1016
+ type: "exact";
1017
+ term: string;
1018
+ } | undefined;
1019
+ updatedAt?: {
1020
+ type: "range";
1021
+ gte: string;
1022
+ lte: string;
1023
+ } | {
1024
+ type: "exact";
1025
+ term: string;
1026
+ } | undefined;
1027
+ trackingId?: {
1028
+ type: "exact";
1029
+ term: string;
1030
+ } | undefined;
1031
+ updatedAtLocation?: {
1032
+ type: "exact";
1033
+ term: string;
1034
+ } | {
1035
+ type: "within";
1036
+ location: string;
1037
+ } | undefined;
1038
+ updatedBy?: {
1039
+ type: "exact";
1040
+ term: string;
1041
+ } | undefined;
1042
+ flags?: {
1043
+ anyOf?: string[] | undefined;
1044
+ noneOf?: string[] | undefined;
1045
+ } | undefined;
1046
+ eventType?: string | undefined;
1047
+ 'legalStatus.REGISTERED.createdAt'?: {
1048
+ type: "range";
1049
+ gte: string;
1050
+ lte: string;
1051
+ } | {
1052
+ type: "exact";
1053
+ term: string;
1054
+ } | undefined;
1055
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1056
+ type: "exact";
1057
+ term: string;
1058
+ } | {
1059
+ type: "within";
1060
+ location: string;
1061
+ } | undefined;
1062
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1063
+ type: "exact";
1064
+ term: string;
1065
+ } | undefined;
1066
+ }, {
1067
+ id?: string | undefined;
1068
+ status?: {
1069
+ type: "exact";
1070
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1071
+ } | {
1072
+ type: "anyOf";
1073
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1074
+ } | undefined;
1075
+ data?: any;
1076
+ createdByUserType?: "system" | "user" | undefined;
1077
+ createdAt?: {
1078
+ type: "range";
1079
+ gte: string;
1080
+ lte: string;
1081
+ } | {
1082
+ type: "exact";
1083
+ term: string;
1084
+ } | undefined;
1085
+ createdBy?: {
1086
+ type: "exact";
1087
+ term: string;
1088
+ } | undefined;
1089
+ createdAtLocation?: {
1090
+ type: "exact";
1091
+ term: string;
1092
+ } | {
1093
+ type: "within";
1094
+ location: string;
1095
+ } | undefined;
1096
+ assignedTo?: {
1097
+ type: "exact";
1098
+ term: string;
1099
+ } | undefined;
1100
+ updatedAt?: {
1101
+ type: "range";
1102
+ gte: string;
1103
+ lte: string;
1104
+ } | {
1105
+ type: "exact";
1106
+ term: string;
1107
+ } | undefined;
1108
+ trackingId?: {
1109
+ type: "exact";
1110
+ term: string;
1111
+ } | undefined;
1112
+ updatedAtLocation?: {
1113
+ type: "exact";
1114
+ term: string;
1115
+ } | {
1116
+ type: "within";
1117
+ location: string;
1118
+ } | undefined;
1119
+ updatedBy?: {
1120
+ type: "exact";
1121
+ term: string;
1122
+ } | undefined;
1123
+ flags?: {
1124
+ anyOf?: string[] | undefined;
1125
+ noneOf?: string[] | undefined;
1126
+ } | undefined;
1127
+ eventType?: string | undefined;
1128
+ 'legalStatus.REGISTERED.createdAt'?: {
1129
+ type: "range";
1130
+ gte: string;
1131
+ lte: string;
1132
+ } | {
1133
+ type: "exact";
1134
+ term: string;
1135
+ } | undefined;
1136
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1137
+ type: "exact";
1138
+ term: string;
1139
+ } | {
1140
+ type: "within";
1141
+ location: string;
1142
+ } | undefined;
1143
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1144
+ type: "exact";
1145
+ term: string;
1146
+ } | undefined;
1147
+ }>;
1148
+ export declare const QueryType: z.ZodObject<{
1149
+ type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
1150
+ clauses: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
1151
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1152
+ eventType: z.ZodOptional<z.ZodString>;
1153
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1154
+ type: z.ZodLiteral<"anyOf">;
1155
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ type: "anyOf";
1158
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1159
+ }, {
1160
+ type: "anyOf";
1161
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1162
+ }>, z.ZodObject<{
1163
+ type: z.ZodLiteral<"exact">;
1164
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ type: "exact";
1167
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1168
+ }, {
1169
+ type: "exact";
1170
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1171
+ }>]>>>;
1172
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1173
+ type: z.ZodLiteral<"exact">;
1174
+ term: z.ZodString;
1175
+ }, {
1176
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1177
+ }>, "strip", z.ZodTypeAny, {
1178
+ type: "exact";
1179
+ term: string;
1180
+ }, {
1181
+ type: "exact";
1182
+ term: string;
1183
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1184
+ type: z.ZodLiteral<"range">;
1185
+ gte: z.ZodString;
1186
+ lte: z.ZodString;
1187
+ }, {
1188
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1189
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1190
+ }>, "strip", z.ZodTypeAny, {
1191
+ type: "range";
1192
+ gte: string;
1193
+ lte: string;
1194
+ }, {
1195
+ type: "range";
1196
+ gte: string;
1197
+ lte: string;
1198
+ }>]>>>;
1199
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1200
+ type: z.ZodLiteral<"exact">;
1201
+ term: z.ZodString;
1202
+ }, {
1203
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1204
+ }>, "strip", z.ZodTypeAny, {
1205
+ type: "exact";
1206
+ term: string;
1207
+ }, {
1208
+ type: "exact";
1209
+ term: string;
1210
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1211
+ type: z.ZodLiteral<"range">;
1212
+ gte: z.ZodString;
1213
+ lte: z.ZodString;
1214
+ }, {
1215
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1216
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1217
+ }>, "strip", z.ZodTypeAny, {
1218
+ type: "range";
1219
+ gte: string;
1220
+ lte: string;
1221
+ }, {
1222
+ type: "range";
1223
+ gte: string;
1224
+ lte: string;
1225
+ }>]>>>;
1226
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1227
+ type: z.ZodLiteral<"exact">;
1228
+ term: z.ZodString;
1229
+ }, {
1230
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1231
+ }>, "strip", z.ZodTypeAny, {
1232
+ type: "exact";
1233
+ term: string;
1234
+ }, {
1235
+ type: "exact";
1236
+ term: string;
1237
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1238
+ type: z.ZodLiteral<"range">;
1239
+ gte: z.ZodString;
1240
+ lte: z.ZodString;
1241
+ }, {
1242
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1243
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1244
+ }>, "strip", z.ZodTypeAny, {
1245
+ type: "range";
1246
+ gte: string;
1247
+ lte: string;
1248
+ }, {
1249
+ type: "range";
1250
+ gte: string;
1251
+ lte: string;
1252
+ }>]>>>;
1253
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1254
+ type: z.ZodLiteral<"within">;
1255
+ location: z.ZodString;
1256
+ }, "strip", z.ZodTypeAny, {
1257
+ type: "within";
1258
+ location: string;
1259
+ }, {
1260
+ type: "within";
1261
+ location: string;
1262
+ }>, z.ZodObject<{
1263
+ type: z.ZodLiteral<"exact">;
1264
+ term: z.ZodString;
1265
+ }, "strip", z.ZodTypeAny, {
1266
+ type: "exact";
1267
+ term: string;
1268
+ }, {
1269
+ type: "exact";
1270
+ term: string;
1271
+ }>]>>>;
1272
+ 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1273
+ type: z.ZodLiteral<"exact">;
1274
+ term: z.ZodString;
1275
+ }, "strip", z.ZodTypeAny, {
1276
+ type: "exact";
1277
+ term: string;
1278
+ }, {
1279
+ type: "exact";
1280
+ term: string;
1281
+ }>>>;
1282
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1283
+ type: z.ZodLiteral<"within">;
1284
+ location: z.ZodString;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ type: "within";
1287
+ location: string;
1288
+ }, {
1289
+ type: "within";
1290
+ location: string;
1291
+ }>, z.ZodObject<{
1292
+ type: z.ZodLiteral<"exact">;
1293
+ term: z.ZodString;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ type: "exact";
1296
+ term: string;
1297
+ }, {
1298
+ type: "exact";
1299
+ term: string;
1300
+ }>]>>>;
1301
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1302
+ type: z.ZodLiteral<"within">;
1303
+ location: z.ZodString;
1304
+ }, "strip", z.ZodTypeAny, {
1305
+ type: "within";
1306
+ location: string;
1307
+ }, {
1308
+ type: "within";
1309
+ location: string;
1310
+ }>, z.ZodObject<{
1311
+ type: z.ZodLiteral<"exact">;
1312
+ term: z.ZodString;
1313
+ }, "strip", z.ZodTypeAny, {
1314
+ type: "exact";
1315
+ term: string;
1316
+ }, {
1317
+ type: "exact";
1318
+ term: string;
1319
+ }>]>>>;
1320
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1321
+ type: z.ZodLiteral<"exact">;
1322
+ term: z.ZodString;
1323
+ }, "strip", z.ZodTypeAny, {
1324
+ type: "exact";
1325
+ term: string;
1326
+ }, {
1327
+ type: "exact";
1328
+ term: string;
1329
+ }>>>;
1330
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
1331
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1332
+ type: z.ZodLiteral<"exact">;
1333
+ term: z.ZodString;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ type: "exact";
1336
+ term: string;
1337
+ }, {
1338
+ type: "exact";
1339
+ term: string;
1340
+ }>>>;
1341
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1342
+ type: z.ZodLiteral<"exact">;
1343
+ term: z.ZodString;
1344
+ }, "strip", z.ZodTypeAny, {
1345
+ type: "exact";
1346
+ term: string;
1347
+ }, {
1348
+ type: "exact";
1349
+ term: string;
1350
+ }>>>;
1351
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1352
+ type: z.ZodLiteral<"exact">;
1353
+ term: z.ZodString;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ type: "exact";
1356
+ term: string;
1357
+ }, {
1358
+ type: "exact";
1359
+ term: string;
1360
+ }>>>;
1361
+ flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1362
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1363
+ readonly PRINTED: "printed";
1364
+ readonly INCOMPLETE: "incomplete";
1365
+ readonly REJECTED: "rejected";
1366
+ readonly CORRECTION_REQUESTED: "correction-requested";
1367
+ }>]>, "many">>;
1368
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1369
+ readonly PRINTED: "printed";
1370
+ readonly INCOMPLETE: "incomplete";
1371
+ readonly REJECTED: "rejected";
1372
+ readonly CORRECTION_REQUESTED: "correction-requested";
1373
+ }>]>, "many">>;
1374
+ }, "strip", z.ZodTypeAny, {
1375
+ anyOf?: string[] | undefined;
1376
+ noneOf?: string[] | undefined;
1377
+ }, {
1378
+ anyOf?: string[] | undefined;
1379
+ noneOf?: string[] | undefined;
1380
+ }>>>;
1381
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ id?: string | undefined;
1384
+ status?: {
1385
+ type: "exact";
1386
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1387
+ } | {
1388
+ type: "anyOf";
1389
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1390
+ } | undefined;
1391
+ data?: any;
1392
+ createdByUserType?: "system" | "user" | undefined;
1393
+ createdAt?: {
1394
+ type: "range";
1395
+ gte: string;
1396
+ lte: string;
1397
+ } | {
1398
+ type: "exact";
1399
+ term: string;
1400
+ } | undefined;
1401
+ createdBy?: {
1402
+ type: "exact";
1403
+ term: string;
1404
+ } | undefined;
1405
+ createdAtLocation?: {
1406
+ type: "exact";
1407
+ term: string;
1408
+ } | {
1409
+ type: "within";
1410
+ location: string;
1411
+ } | undefined;
1412
+ assignedTo?: {
1413
+ type: "exact";
1414
+ term: string;
1415
+ } | undefined;
1416
+ updatedAt?: {
1417
+ type: "range";
1418
+ gte: string;
1419
+ lte: string;
1420
+ } | {
1421
+ type: "exact";
1422
+ term: string;
1423
+ } | undefined;
1424
+ trackingId?: {
1425
+ type: "exact";
1426
+ term: string;
1427
+ } | undefined;
1428
+ updatedAtLocation?: {
1429
+ type: "exact";
1430
+ term: string;
1431
+ } | {
1432
+ type: "within";
1433
+ location: string;
1434
+ } | undefined;
1435
+ updatedBy?: {
1436
+ type: "exact";
1437
+ term: string;
1438
+ } | undefined;
1439
+ flags?: {
1440
+ anyOf?: string[] | undefined;
1441
+ noneOf?: string[] | undefined;
1442
+ } | undefined;
1443
+ eventType?: string | undefined;
1444
+ 'legalStatus.REGISTERED.createdAt'?: {
1445
+ type: "range";
1446
+ gte: string;
1447
+ lte: string;
1448
+ } | {
1449
+ type: "exact";
1450
+ term: string;
1451
+ } | undefined;
1452
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1453
+ type: "exact";
1454
+ term: string;
1455
+ } | {
1456
+ type: "within";
1457
+ location: string;
1458
+ } | undefined;
1459
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1460
+ type: "exact";
1461
+ term: string;
1462
+ } | undefined;
1463
+ }, {
1464
+ id?: string | undefined;
1465
+ status?: {
1466
+ type: "exact";
1467
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1468
+ } | {
1469
+ type: "anyOf";
1470
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1471
+ } | undefined;
1472
+ data?: any;
1473
+ createdByUserType?: "system" | "user" | undefined;
1474
+ createdAt?: {
1475
+ type: "range";
1476
+ gte: string;
1477
+ lte: string;
1478
+ } | {
1479
+ type: "exact";
1480
+ term: string;
1481
+ } | undefined;
1482
+ createdBy?: {
1483
+ type: "exact";
1484
+ term: string;
1485
+ } | undefined;
1486
+ createdAtLocation?: {
1487
+ type: "exact";
1488
+ term: string;
1489
+ } | {
1490
+ type: "within";
1491
+ location: string;
1492
+ } | undefined;
1493
+ assignedTo?: {
1494
+ type: "exact";
1495
+ term: string;
1496
+ } | undefined;
1497
+ updatedAt?: {
1498
+ type: "range";
1499
+ gte: string;
1500
+ lte: string;
1501
+ } | {
1502
+ type: "exact";
1503
+ term: string;
1504
+ } | undefined;
1505
+ trackingId?: {
1506
+ type: "exact";
1507
+ term: string;
1508
+ } | undefined;
1509
+ updatedAtLocation?: {
1510
+ type: "exact";
1511
+ term: string;
1512
+ } | {
1513
+ type: "within";
1514
+ location: string;
1515
+ } | undefined;
1516
+ updatedBy?: {
1517
+ type: "exact";
1518
+ term: string;
1519
+ } | undefined;
1520
+ flags?: {
1521
+ anyOf?: string[] | undefined;
1522
+ noneOf?: string[] | undefined;
1523
+ } | undefined;
1524
+ eventType?: string | undefined;
1525
+ 'legalStatus.REGISTERED.createdAt'?: {
1526
+ type: "range";
1527
+ gte: string;
1528
+ lte: string;
1529
+ } | {
1530
+ type: "exact";
1531
+ term: string;
1532
+ } | undefined;
1533
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1534
+ type: "exact";
1535
+ term: string;
1536
+ } | {
1537
+ type: "within";
1538
+ location: string;
1539
+ } | undefined;
1540
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1541
+ type: "exact";
1542
+ term: string;
1543
+ } | undefined;
1544
+ }>, {
1545
+ id?: string | undefined;
1546
+ status?: {
1547
+ type: "exact";
1548
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1549
+ } | {
1550
+ type: "anyOf";
1551
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1552
+ } | undefined;
1553
+ data?: any;
1554
+ createdByUserType?: "system" | "user" | undefined;
1555
+ createdAt?: {
1556
+ type: "range";
1557
+ gte: string;
1558
+ lte: string;
1559
+ } | {
1560
+ type: "exact";
1561
+ term: 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: "range";
1580
+ gte: string;
1581
+ lte: string;
1582
+ } | {
1583
+ type: "exact";
1584
+ term: 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
+ anyOf?: string[] | undefined;
1603
+ noneOf?: string[] | undefined;
1604
+ } | undefined;
1605
+ eventType?: string | undefined;
1606
+ 'legalStatus.REGISTERED.createdAt'?: {
1607
+ type: "range";
1608
+ gte: string;
1609
+ lte: string;
1610
+ } | {
1611
+ type: "exact";
1612
+ term: string;
1613
+ } | undefined;
1614
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1615
+ type: "exact";
1616
+ term: string;
1617
+ } | {
1618
+ type: "within";
1619
+ location: string;
1620
+ } | undefined;
1621
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1622
+ type: "exact";
1623
+ term: string;
1624
+ } | undefined;
1625
+ }, {
1626
+ id?: string | undefined;
1627
+ status?: {
1628
+ type: "exact";
1629
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1630
+ } | {
1631
+ type: "anyOf";
1632
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1633
+ } | undefined;
1634
+ data?: any;
1635
+ createdByUserType?: "system" | "user" | undefined;
1636
+ createdAt?: {
1637
+ type: "range";
1638
+ gte: string;
1639
+ lte: string;
1640
+ } | {
1641
+ type: "exact";
1642
+ term: string;
1643
+ } | undefined;
1644
+ createdBy?: {
1645
+ type: "exact";
1646
+ term: string;
1647
+ } | undefined;
1648
+ createdAtLocation?: {
1649
+ type: "exact";
1650
+ term: string;
1651
+ } | {
1652
+ type: "within";
1653
+ location: string;
1654
+ } | undefined;
1655
+ assignedTo?: {
1656
+ type: "exact";
1657
+ term: string;
1658
+ } | undefined;
1659
+ updatedAt?: {
1660
+ type: "range";
1661
+ gte: string;
1662
+ lte: string;
1663
+ } | {
1664
+ type: "exact";
1665
+ term: string;
1666
+ } | undefined;
1667
+ trackingId?: {
1668
+ type: "exact";
1669
+ term: string;
1670
+ } | undefined;
1671
+ updatedAtLocation?: {
1672
+ type: "exact";
1673
+ term: string;
1674
+ } | {
1675
+ type: "within";
1676
+ location: string;
1677
+ } | undefined;
1678
+ updatedBy?: {
1679
+ type: "exact";
1680
+ term: string;
1681
+ } | undefined;
1682
+ flags?: {
1683
+ anyOf?: string[] | undefined;
1684
+ noneOf?: string[] | undefined;
1685
+ } | undefined;
1686
+ eventType?: string | undefined;
1687
+ 'legalStatus.REGISTERED.createdAt'?: {
1688
+ type: "range";
1689
+ gte: string;
1690
+ lte: string;
1691
+ } | {
1692
+ type: "exact";
1693
+ term: string;
1694
+ } | undefined;
1695
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1696
+ type: "exact";
1697
+ term: string;
1698
+ } | {
1699
+ type: "within";
1700
+ location: string;
1701
+ } | undefined;
1702
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1703
+ type: "exact";
1704
+ term: string;
1705
+ } | undefined;
1706
+ }>, "atleastone">, [{
1707
+ id?: string | undefined;
1708
+ status?: {
1709
+ type: "exact";
1710
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1711
+ } | {
1712
+ type: "anyOf";
1713
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1714
+ } | undefined;
1715
+ data?: any;
1716
+ createdByUserType?: "system" | "user" | undefined;
1717
+ createdAt?: {
1718
+ type: "range";
1719
+ gte: string;
1720
+ lte: string;
1721
+ } | {
1722
+ type: "exact";
1723
+ term: string;
1724
+ } | undefined;
1725
+ createdBy?: {
1726
+ type: "exact";
1727
+ term: string;
1728
+ } | undefined;
1729
+ createdAtLocation?: {
1730
+ type: "exact";
1731
+ term: string;
1732
+ } | {
1733
+ type: "within";
1734
+ location: string;
1735
+ } | undefined;
1736
+ assignedTo?: {
1737
+ type: "exact";
1738
+ term: string;
1739
+ } | undefined;
1740
+ updatedAt?: {
1741
+ type: "range";
1742
+ gte: string;
1743
+ lte: string;
1744
+ } | {
1745
+ type: "exact";
1746
+ term: string;
1747
+ } | undefined;
1748
+ trackingId?: {
1749
+ type: "exact";
1750
+ term: string;
1751
+ } | undefined;
1752
+ updatedAtLocation?: {
1753
+ type: "exact";
1754
+ term: string;
1755
+ } | {
1756
+ type: "within";
1757
+ location: string;
1758
+ } | undefined;
1759
+ updatedBy?: {
1760
+ type: "exact";
1761
+ term: string;
1762
+ } | undefined;
1763
+ flags?: {
1764
+ anyOf?: string[] | undefined;
1765
+ noneOf?: string[] | undefined;
1766
+ } | undefined;
1767
+ eventType?: string | undefined;
1768
+ 'legalStatus.REGISTERED.createdAt'?: {
1769
+ type: "range";
1770
+ gte: string;
1771
+ lte: string;
1772
+ } | {
1773
+ type: "exact";
1774
+ term: string;
1775
+ } | undefined;
1776
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1777
+ type: "exact";
1778
+ term: string;
1779
+ } | {
1780
+ type: "within";
1781
+ location: string;
1782
+ } | undefined;
1783
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1784
+ type: "exact";
1785
+ term: string;
1786
+ } | undefined;
1787
+ }, ...{
1788
+ id?: string | undefined;
1789
+ status?: {
1790
+ type: "exact";
1791
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1792
+ } | {
1793
+ type: "anyOf";
1794
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1795
+ } | undefined;
1796
+ data?: any;
1797
+ createdByUserType?: "system" | "user" | undefined;
1798
+ createdAt?: {
1799
+ type: "range";
1800
+ gte: string;
1801
+ lte: string;
1802
+ } | {
1803
+ type: "exact";
1804
+ term: string;
1805
+ } | undefined;
1806
+ createdBy?: {
1807
+ type: "exact";
1808
+ term: string;
1809
+ } | undefined;
1810
+ createdAtLocation?: {
1811
+ type: "exact";
1812
+ term: string;
1813
+ } | {
1814
+ type: "within";
1815
+ location: string;
1816
+ } | undefined;
1817
+ assignedTo?: {
1818
+ type: "exact";
1819
+ term: string;
1820
+ } | undefined;
1821
+ updatedAt?: {
1822
+ type: "range";
1823
+ gte: string;
1824
+ lte: string;
1825
+ } | {
1826
+ type: "exact";
1827
+ term: string;
1828
+ } | undefined;
1829
+ trackingId?: {
1830
+ type: "exact";
1831
+ term: string;
1832
+ } | undefined;
1833
+ updatedAtLocation?: {
1834
+ type: "exact";
1835
+ term: string;
1836
+ } | {
1837
+ type: "within";
1838
+ location: string;
1839
+ } | undefined;
1840
+ updatedBy?: {
1841
+ type: "exact";
1842
+ term: string;
1843
+ } | undefined;
1844
+ flags?: {
1845
+ anyOf?: string[] | undefined;
1846
+ noneOf?: string[] | undefined;
1847
+ } | undefined;
1848
+ eventType?: string | undefined;
1849
+ 'legalStatus.REGISTERED.createdAt'?: {
1850
+ type: "range";
1851
+ gte: string;
1852
+ lte: string;
1853
+ } | {
1854
+ type: "exact";
1855
+ term: string;
1856
+ } | undefined;
1857
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1858
+ type: "exact";
1859
+ term: string;
1860
+ } | {
1861
+ type: "within";
1862
+ location: string;
1863
+ } | undefined;
1864
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1865
+ type: "exact";
1866
+ term: string;
1867
+ } | undefined;
1868
+ }[]], unknown>;
1869
+ }, "strip", z.ZodTypeAny, {
1870
+ type: "and" | "or";
1871
+ clauses: [{
1872
+ id?: string | undefined;
1873
+ status?: {
1874
+ type: "exact";
1875
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1876
+ } | {
1877
+ type: "anyOf";
1878
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1879
+ } | undefined;
1880
+ data?: any;
1881
+ createdByUserType?: "system" | "user" | undefined;
1882
+ createdAt?: {
1883
+ type: "range";
1884
+ gte: string;
1885
+ lte: string;
1886
+ } | {
1887
+ type: "exact";
1888
+ term: string;
1889
+ } | undefined;
1890
+ createdBy?: {
1891
+ type: "exact";
1892
+ term: string;
1893
+ } | undefined;
1894
+ createdAtLocation?: {
1895
+ type: "exact";
1896
+ term: string;
1897
+ } | {
1898
+ type: "within";
1899
+ location: string;
1900
+ } | undefined;
1901
+ assignedTo?: {
1902
+ type: "exact";
1903
+ term: string;
1904
+ } | undefined;
1905
+ updatedAt?: {
1906
+ type: "range";
1907
+ gte: string;
1908
+ lte: string;
1909
+ } | {
1910
+ type: "exact";
1911
+ term: string;
1912
+ } | undefined;
1913
+ trackingId?: {
1914
+ type: "exact";
1915
+ term: string;
1916
+ } | undefined;
1917
+ updatedAtLocation?: {
1918
+ type: "exact";
1919
+ term: string;
1920
+ } | {
1921
+ type: "within";
1922
+ location: string;
1923
+ } | undefined;
1924
+ updatedBy?: {
1925
+ type: "exact";
1926
+ term: string;
1927
+ } | undefined;
1928
+ flags?: {
1929
+ anyOf?: string[] | undefined;
1930
+ noneOf?: string[] | undefined;
1931
+ } | undefined;
1932
+ eventType?: string | undefined;
1933
+ 'legalStatus.REGISTERED.createdAt'?: {
1934
+ type: "range";
1935
+ gte: string;
1936
+ lte: string;
1937
+ } | {
1938
+ type: "exact";
1939
+ term: string;
1940
+ } | undefined;
1941
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1942
+ type: "exact";
1943
+ term: string;
1944
+ } | {
1945
+ type: "within";
1946
+ location: string;
1947
+ } | undefined;
1948
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1949
+ type: "exact";
1950
+ term: string;
1951
+ } | undefined;
1952
+ }, ...{
1953
+ id?: string | undefined;
1954
+ status?: {
1955
+ type: "exact";
1956
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1957
+ } | {
1958
+ type: "anyOf";
1959
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1960
+ } | undefined;
1961
+ data?: any;
1962
+ createdByUserType?: "system" | "user" | undefined;
1963
+ createdAt?: {
1964
+ type: "range";
1965
+ gte: string;
1966
+ lte: string;
1967
+ } | {
1968
+ type: "exact";
1969
+ term: string;
1970
+ } | undefined;
1971
+ createdBy?: {
1972
+ type: "exact";
1973
+ term: string;
1974
+ } | undefined;
1975
+ createdAtLocation?: {
1976
+ type: "exact";
1977
+ term: string;
1978
+ } | {
1979
+ type: "within";
1980
+ location: string;
1981
+ } | undefined;
1982
+ assignedTo?: {
1983
+ type: "exact";
1984
+ term: string;
1985
+ } | undefined;
1986
+ updatedAt?: {
1987
+ type: "range";
1988
+ gte: string;
1989
+ lte: string;
1990
+ } | {
1991
+ type: "exact";
1992
+ term: string;
1993
+ } | undefined;
1994
+ trackingId?: {
1995
+ type: "exact";
1996
+ term: string;
1997
+ } | undefined;
1998
+ updatedAtLocation?: {
1999
+ type: "exact";
2000
+ term: string;
2001
+ } | {
2002
+ type: "within";
2003
+ location: string;
2004
+ } | undefined;
2005
+ updatedBy?: {
2006
+ type: "exact";
2007
+ term: string;
2008
+ } | undefined;
2009
+ flags?: {
2010
+ anyOf?: string[] | undefined;
2011
+ noneOf?: string[] | undefined;
2012
+ } | undefined;
2013
+ eventType?: string | undefined;
2014
+ 'legalStatus.REGISTERED.createdAt'?: {
2015
+ type: "range";
2016
+ gte: string;
2017
+ lte: string;
2018
+ } | {
2019
+ type: "exact";
2020
+ term: string;
2021
+ } | undefined;
2022
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
2023
+ type: "exact";
2024
+ term: string;
2025
+ } | {
2026
+ type: "within";
2027
+ location: string;
2028
+ } | undefined;
2029
+ 'legalStatus.REGISTERED.registrationNumber'?: {
2030
+ type: "exact";
2031
+ term: string;
2032
+ } | undefined;
2033
+ }[]];
2034
+ }, {
2035
+ type: "and" | "or";
2036
+ clauses?: unknown;
2037
+ }>;
2038
+ export type QueryType = z.infer<typeof QueryType>;
2039
+ export type QueryExpression = z.infer<typeof QueryExpression>;
2040
+ export {};
61
2041
  //# sourceMappingURL=EventIndex.d.ts.map