@opencrvs/toolkit 1.8.1-rc.a372970 → 1.8.1-rc.baeb06c

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