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

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