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

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 (47) hide show
  1. package/dist/commons/api/router.d.ts +5951 -5078
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -13
  3. package/dist/commons/conditionals/validate.d.ts +25 -7
  4. package/dist/commons/events/ActionConfig.d.ts +120964 -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 +1300 -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 +54890 -1357
  15. package/dist/commons/events/EventDocument.d.ts +2765 -833
  16. package/dist/commons/events/EventIndex.d.ts +2350 -29
  17. package/dist/commons/events/EventMetadata.d.ts +347 -47
  18. package/dist/commons/events/FieldConfig.d.ts +6985 -1278
  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 +56556 -522
  23. package/dist/commons/events/PageConfig.d.ts +14043 -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 +8240 -20
  28. package/dist/commons/events/defineConfig.d.ts +8628 -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 +15612 -88
  37. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  38. package/dist/conditionals/index.js +69 -58
  39. package/dist/events/index.js +4840 -1798
  40. package/dist/scopes/index.d.ts +184 -7
  41. package/dist/scopes/index.js +140 -40
  42. package/package.json +4 -3
  43. package/tsconfig.json +1 -1
  44. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  45. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  46. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  47. package/dist/commons/events/utils.test.d.ts +0 -2
@@ -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", "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 PENDING_CERTIFICATION: "pending-certification";
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.ZodString;
257
+ surname: z.ZodString;
258
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ firstname: string;
261
+ surname: string;
262
+ middlename?: string | null | undefined;
263
+ }, {
264
+ firstname: string;
265
+ surname: string;
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" | "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;
302
+ surname: string;
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" | "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;
389
+ surname: string;
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,1934 @@ 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", "ARCHIVED"]>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ type: "exact";
477
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
478
+ }, {
479
+ type: "exact";
480
+ term: "ARCHIVED" | "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", "ARCHIVED"]>, "many">;
505
+ }, "strip", z.ZodTypeAny, {
506
+ type: "anyOf";
507
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
508
+ }, {
509
+ type: "anyOf";
510
+ terms: ("ARCHIVED" | "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 PENDING_CERTIFICATION: "pending-certification";
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 PENDING_CERTIFICATION: "pending-certification";
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", "ARCHIVED"]>, "many">;
613
+ }, "strip", z.ZodTypeAny, {
614
+ type: "anyOf";
615
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
616
+ }, {
617
+ type: "anyOf";
618
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
619
+ }>, z.ZodObject<{
620
+ type: z.ZodLiteral<"exact">;
621
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
622
+ }, "strip", z.ZodTypeAny, {
623
+ type: "exact";
624
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
625
+ }, {
626
+ type: "exact";
627
+ term: "ARCHIVED" | "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.DECLARED.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.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
748
+ type: z.ZodLiteral<"within">;
749
+ location: z.ZodString;
750
+ }, "strip", z.ZodTypeAny, {
751
+ type: "within";
752
+ location: string;
753
+ }, {
754
+ type: "within";
755
+ location: string;
756
+ }>, z.ZodObject<{
757
+ type: z.ZodLiteral<"exact">;
758
+ term: z.ZodString;
759
+ }, "strip", z.ZodTypeAny, {
760
+ type: "exact";
761
+ term: string;
762
+ }, {
763
+ type: "exact";
764
+ term: string;
765
+ }>]>>>;
766
+ 'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<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
+ createdAtLocation: 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
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
796
+ type: z.ZodLiteral<"within">;
797
+ location: z.ZodString;
798
+ }, "strip", z.ZodTypeAny, {
799
+ type: "within";
800
+ location: string;
801
+ }, {
802
+ type: "within";
803
+ location: string;
804
+ }>, z.ZodObject<{
805
+ type: z.ZodLiteral<"exact">;
806
+ term: z.ZodString;
807
+ }, "strip", z.ZodTypeAny, {
808
+ type: "exact";
809
+ term: string;
810
+ }, {
811
+ type: "exact";
812
+ term: string;
813
+ }>]>>>;
814
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
815
+ type: z.ZodLiteral<"exact">;
816
+ term: z.ZodString;
817
+ }, "strip", z.ZodTypeAny, {
818
+ type: "exact";
819
+ term: string;
820
+ }, {
821
+ type: "exact";
822
+ term: string;
823
+ }>>>;
824
+ createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
825
+ type: z.ZodLiteral<"exact">;
826
+ term: z.ZodEnum<["user", "system"]>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ type: "exact";
829
+ term: "system" | "user";
830
+ }, {
831
+ type: "exact";
832
+ term: "system" | "user";
833
+ }>>>;
834
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
835
+ type: z.ZodLiteral<"exact">;
836
+ term: z.ZodString;
837
+ }, "strip", z.ZodTypeAny, {
838
+ type: "exact";
839
+ term: string;
840
+ }, {
841
+ type: "exact";
842
+ term: string;
843
+ }>>>;
844
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
845
+ type: z.ZodLiteral<"exact">;
846
+ term: z.ZodString;
847
+ }, "strip", z.ZodTypeAny, {
848
+ type: "exact";
849
+ term: string;
850
+ }, {
851
+ type: "exact";
852
+ term: string;
853
+ }>>>;
854
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
855
+ type: z.ZodLiteral<"exact">;
856
+ term: z.ZodString;
857
+ }, "strip", z.ZodTypeAny, {
858
+ type: "exact";
859
+ term: string;
860
+ }, {
861
+ type: "exact";
862
+ term: string;
863
+ }>>>;
864
+ flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
865
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
866
+ readonly PENDING_CERTIFICATION: "pending-certification";
867
+ readonly INCOMPLETE: "incomplete";
868
+ readonly REJECTED: "rejected";
869
+ readonly CORRECTION_REQUESTED: "correction-requested";
870
+ }>]>, "many">>;
871
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
872
+ readonly PENDING_CERTIFICATION: "pending-certification";
873
+ readonly INCOMPLETE: "incomplete";
874
+ readonly REJECTED: "rejected";
875
+ readonly CORRECTION_REQUESTED: "correction-requested";
876
+ }>]>, "many">>;
877
+ }, "strip", z.ZodTypeAny, {
878
+ anyOf?: string[] | undefined;
879
+ noneOf?: string[] | undefined;
880
+ }, {
881
+ anyOf?: string[] | undefined;
882
+ noneOf?: string[] | undefined;
883
+ }>>>;
884
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
885
+ }, "strip", z.ZodTypeAny, {
886
+ id?: string | undefined;
887
+ status?: {
888
+ type: "exact";
889
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
890
+ } | {
891
+ type: "anyOf";
892
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
893
+ } | undefined;
894
+ data?: any;
895
+ createdByUserType?: {
896
+ type: "exact";
897
+ term: "system" | "user";
898
+ } | undefined;
899
+ createdAt?: {
900
+ type: "range";
901
+ gte: string;
902
+ lte: string;
903
+ } | {
904
+ type: "exact";
905
+ term: string;
906
+ } | {
907
+ type: "timePeriod";
908
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
909
+ } | undefined;
910
+ createdBy?: {
911
+ type: "exact";
912
+ term: string;
913
+ } | undefined;
914
+ createdAtLocation?: {
915
+ type: "exact";
916
+ term: string;
917
+ } | {
918
+ type: "within";
919
+ location: string;
920
+ } | undefined;
921
+ assignedTo?: {
922
+ type: "exact";
923
+ term: string;
924
+ } | undefined;
925
+ updatedAt?: {
926
+ type: "range";
927
+ gte: string;
928
+ lte: string;
929
+ } | {
930
+ type: "exact";
931
+ term: string;
932
+ } | {
933
+ type: "timePeriod";
934
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
935
+ } | undefined;
936
+ trackingId?: {
937
+ type: "exact";
938
+ term: string;
939
+ } | undefined;
940
+ updatedAtLocation?: {
941
+ type: "exact";
942
+ term: string;
943
+ } | {
944
+ type: "within";
945
+ location: string;
946
+ } | undefined;
947
+ updatedBy?: {
948
+ type: "exact";
949
+ term: string;
950
+ } | undefined;
951
+ flags?: {
952
+ anyOf?: string[] | undefined;
953
+ noneOf?: string[] | undefined;
954
+ } | undefined;
955
+ eventType?: string | undefined;
956
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
957
+ type: "range";
958
+ gte: string;
959
+ lte: string;
960
+ } | {
961
+ type: "exact";
962
+ term: string;
963
+ } | {
964
+ type: "timePeriod";
965
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
966
+ } | undefined;
967
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
968
+ type: "exact";
969
+ term: string;
970
+ } | {
971
+ type: "within";
972
+ location: string;
973
+ } | undefined;
974
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
975
+ type: "exact";
976
+ term: string;
977
+ } | {
978
+ type: "within";
979
+ location: string;
980
+ } | undefined;
981
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
982
+ type: "exact";
983
+ term: string;
984
+ } | undefined;
985
+ }, {
986
+ id?: string | undefined;
987
+ status?: {
988
+ type: "exact";
989
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
990
+ } | {
991
+ type: "anyOf";
992
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
993
+ } | undefined;
994
+ data?: any;
995
+ createdByUserType?: {
996
+ type: "exact";
997
+ term: "system" | "user";
998
+ } | undefined;
999
+ createdAt?: {
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
+ createdBy?: {
1011
+ type: "exact";
1012
+ term: string;
1013
+ } | undefined;
1014
+ createdAtLocation?: {
1015
+ type: "exact";
1016
+ term: string;
1017
+ } | {
1018
+ type: "within";
1019
+ location: string;
1020
+ } | undefined;
1021
+ assignedTo?: {
1022
+ type: "exact";
1023
+ term: string;
1024
+ } | undefined;
1025
+ updatedAt?: {
1026
+ type: "range";
1027
+ gte: string;
1028
+ lte: string;
1029
+ } | {
1030
+ type: "exact";
1031
+ term: string;
1032
+ } | {
1033
+ type: "timePeriod";
1034
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1035
+ } | undefined;
1036
+ trackingId?: {
1037
+ type: "exact";
1038
+ term: string;
1039
+ } | undefined;
1040
+ updatedAtLocation?: {
1041
+ type: "exact";
1042
+ term: string;
1043
+ } | {
1044
+ type: "within";
1045
+ location: string;
1046
+ } | undefined;
1047
+ updatedBy?: {
1048
+ type: "exact";
1049
+ term: string;
1050
+ } | undefined;
1051
+ flags?: {
1052
+ anyOf?: string[] | undefined;
1053
+ noneOf?: string[] | undefined;
1054
+ } | undefined;
1055
+ eventType?: string | undefined;
1056
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1057
+ type: "range";
1058
+ gte: string;
1059
+ lte: string;
1060
+ } | {
1061
+ type: "exact";
1062
+ term: string;
1063
+ } | {
1064
+ type: "timePeriod";
1065
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1066
+ } | undefined;
1067
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1068
+ type: "exact";
1069
+ term: string;
1070
+ } | {
1071
+ type: "within";
1072
+ location: string;
1073
+ } | undefined;
1074
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1075
+ type: "exact";
1076
+ term: string;
1077
+ } | {
1078
+ type: "within";
1079
+ location: string;
1080
+ } | undefined;
1081
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1082
+ type: "exact";
1083
+ term: string;
1084
+ } | undefined;
1085
+ }>, {
1086
+ id?: string | undefined;
1087
+ status?: {
1088
+ type: "exact";
1089
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1090
+ } | {
1091
+ type: "anyOf";
1092
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1093
+ } | undefined;
1094
+ data?: any;
1095
+ createdByUserType?: {
1096
+ type: "exact";
1097
+ term: "system" | "user";
1098
+ } | undefined;
1099
+ createdAt?: {
1100
+ type: "range";
1101
+ gte: string;
1102
+ lte: string;
1103
+ } | {
1104
+ type: "exact";
1105
+ term: string;
1106
+ } | {
1107
+ type: "timePeriod";
1108
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1109
+ } | undefined;
1110
+ createdBy?: {
1111
+ type: "exact";
1112
+ term: string;
1113
+ } | undefined;
1114
+ createdAtLocation?: {
1115
+ type: "exact";
1116
+ term: string;
1117
+ } | {
1118
+ type: "within";
1119
+ location: string;
1120
+ } | undefined;
1121
+ assignedTo?: {
1122
+ type: "exact";
1123
+ term: string;
1124
+ } | undefined;
1125
+ updatedAt?: {
1126
+ type: "range";
1127
+ gte: string;
1128
+ lte: string;
1129
+ } | {
1130
+ type: "exact";
1131
+ term: string;
1132
+ } | {
1133
+ type: "timePeriod";
1134
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1135
+ } | undefined;
1136
+ trackingId?: {
1137
+ type: "exact";
1138
+ term: string;
1139
+ } | undefined;
1140
+ updatedAtLocation?: {
1141
+ type: "exact";
1142
+ term: string;
1143
+ } | {
1144
+ type: "within";
1145
+ location: string;
1146
+ } | undefined;
1147
+ updatedBy?: {
1148
+ type: "exact";
1149
+ term: string;
1150
+ } | undefined;
1151
+ flags?: {
1152
+ anyOf?: string[] | undefined;
1153
+ noneOf?: string[] | undefined;
1154
+ } | undefined;
1155
+ eventType?: string | undefined;
1156
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1157
+ type: "range";
1158
+ gte: string;
1159
+ lte: string;
1160
+ } | {
1161
+ type: "exact";
1162
+ term: string;
1163
+ } | {
1164
+ type: "timePeriod";
1165
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1166
+ } | undefined;
1167
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1168
+ type: "exact";
1169
+ term: string;
1170
+ } | {
1171
+ type: "within";
1172
+ location: string;
1173
+ } | undefined;
1174
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1175
+ type: "exact";
1176
+ term: string;
1177
+ } | {
1178
+ type: "within";
1179
+ location: string;
1180
+ } | undefined;
1181
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1182
+ type: "exact";
1183
+ term: string;
1184
+ } | undefined;
1185
+ }, {
1186
+ id?: string | undefined;
1187
+ status?: {
1188
+ type: "exact";
1189
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1190
+ } | {
1191
+ type: "anyOf";
1192
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1193
+ } | undefined;
1194
+ data?: any;
1195
+ createdByUserType?: {
1196
+ type: "exact";
1197
+ term: "system" | "user";
1198
+ } | undefined;
1199
+ createdAt?: {
1200
+ type: "range";
1201
+ gte: string;
1202
+ lte: string;
1203
+ } | {
1204
+ type: "exact";
1205
+ term: string;
1206
+ } | {
1207
+ type: "timePeriod";
1208
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1209
+ } | undefined;
1210
+ createdBy?: {
1211
+ type: "exact";
1212
+ term: string;
1213
+ } | undefined;
1214
+ createdAtLocation?: {
1215
+ type: "exact";
1216
+ term: string;
1217
+ } | {
1218
+ type: "within";
1219
+ location: string;
1220
+ } | undefined;
1221
+ assignedTo?: {
1222
+ type: "exact";
1223
+ term: string;
1224
+ } | undefined;
1225
+ updatedAt?: {
1226
+ type: "range";
1227
+ gte: string;
1228
+ lte: string;
1229
+ } | {
1230
+ type: "exact";
1231
+ term: string;
1232
+ } | {
1233
+ type: "timePeriod";
1234
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1235
+ } | undefined;
1236
+ trackingId?: {
1237
+ type: "exact";
1238
+ term: string;
1239
+ } | undefined;
1240
+ updatedAtLocation?: {
1241
+ type: "exact";
1242
+ term: string;
1243
+ } | {
1244
+ type: "within";
1245
+ location: string;
1246
+ } | undefined;
1247
+ updatedBy?: {
1248
+ type: "exact";
1249
+ term: string;
1250
+ } | undefined;
1251
+ flags?: {
1252
+ anyOf?: string[] | undefined;
1253
+ noneOf?: string[] | undefined;
1254
+ } | undefined;
1255
+ eventType?: string | undefined;
1256
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1257
+ type: "range";
1258
+ gte: string;
1259
+ lte: string;
1260
+ } | {
1261
+ type: "exact";
1262
+ term: string;
1263
+ } | {
1264
+ type: "timePeriod";
1265
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1266
+ } | undefined;
1267
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1268
+ type: "exact";
1269
+ term: string;
1270
+ } | {
1271
+ type: "within";
1272
+ location: string;
1273
+ } | undefined;
1274
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1275
+ type: "exact";
1276
+ term: string;
1277
+ } | {
1278
+ type: "within";
1279
+ location: string;
1280
+ } | undefined;
1281
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1282
+ type: "exact";
1283
+ term: string;
1284
+ } | undefined;
1285
+ }>;
1286
+ export declare const QueryType: z.ZodObject<{
1287
+ type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
1288
+ clauses: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
1289
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1290
+ eventType: z.ZodOptional<z.ZodString>;
1291
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1292
+ type: z.ZodLiteral<"anyOf">;
1293
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ type: "anyOf";
1296
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1297
+ }, {
1298
+ type: "anyOf";
1299
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1300
+ }>, z.ZodObject<{
1301
+ type: z.ZodLiteral<"exact">;
1302
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
1303
+ }, "strip", z.ZodTypeAny, {
1304
+ type: "exact";
1305
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1306
+ }, {
1307
+ type: "exact";
1308
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1309
+ }>]>>>;
1310
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1311
+ type: z.ZodLiteral<"exact">;
1312
+ term: z.ZodString;
1313
+ }, {
1314
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1315
+ }>, "strip", z.ZodTypeAny, {
1316
+ type: "exact";
1317
+ term: string;
1318
+ }, {
1319
+ type: "exact";
1320
+ term: string;
1321
+ }>, z.ZodObject<{
1322
+ type: z.ZodLiteral<"range">;
1323
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1324
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ type: "range";
1327
+ gte: string;
1328
+ lte: string;
1329
+ }, {
1330
+ type: "range";
1331
+ gte: string;
1332
+ lte: string;
1333
+ }>, z.ZodObject<{
1334
+ type: z.ZodLiteral<"timePeriod">;
1335
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1336
+ }, "strip", z.ZodTypeAny, {
1337
+ type: "timePeriod";
1338
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1339
+ }, {
1340
+ type: "timePeriod";
1341
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1342
+ }>]>>>;
1343
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1344
+ type: z.ZodLiteral<"exact">;
1345
+ term: z.ZodString;
1346
+ }, {
1347
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1348
+ }>, "strip", z.ZodTypeAny, {
1349
+ type: "exact";
1350
+ term: string;
1351
+ }, {
1352
+ type: "exact";
1353
+ term: string;
1354
+ }>, z.ZodObject<{
1355
+ type: z.ZodLiteral<"range">;
1356
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1357
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1358
+ }, "strip", z.ZodTypeAny, {
1359
+ type: "range";
1360
+ gte: string;
1361
+ lte: string;
1362
+ }, {
1363
+ type: "range";
1364
+ gte: string;
1365
+ lte: string;
1366
+ }>, z.ZodObject<{
1367
+ type: z.ZodLiteral<"timePeriod">;
1368
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1369
+ }, "strip", z.ZodTypeAny, {
1370
+ type: "timePeriod";
1371
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1372
+ }, {
1373
+ type: "timePeriod";
1374
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1375
+ }>]>>>;
1376
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1377
+ type: z.ZodLiteral<"exact">;
1378
+ term: z.ZodString;
1379
+ }, {
1380
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1381
+ }>, "strip", z.ZodTypeAny, {
1382
+ type: "exact";
1383
+ term: string;
1384
+ }, {
1385
+ type: "exact";
1386
+ term: string;
1387
+ }>, z.ZodObject<{
1388
+ type: z.ZodLiteral<"range">;
1389
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1390
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1391
+ }, "strip", z.ZodTypeAny, {
1392
+ type: "range";
1393
+ gte: string;
1394
+ lte: string;
1395
+ }, {
1396
+ type: "range";
1397
+ gte: string;
1398
+ lte: string;
1399
+ }>, z.ZodObject<{
1400
+ type: z.ZodLiteral<"timePeriod">;
1401
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1402
+ }, "strip", z.ZodTypeAny, {
1403
+ type: "timePeriod";
1404
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1405
+ }, {
1406
+ type: "timePeriod";
1407
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1408
+ }>]>>>;
1409
+ 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1410
+ type: z.ZodLiteral<"within">;
1411
+ location: z.ZodString;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ type: "within";
1414
+ location: string;
1415
+ }, {
1416
+ type: "within";
1417
+ location: string;
1418
+ }>, z.ZodObject<{
1419
+ type: z.ZodLiteral<"exact">;
1420
+ term: z.ZodString;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ type: "exact";
1423
+ term: string;
1424
+ }, {
1425
+ type: "exact";
1426
+ term: string;
1427
+ }>]>>>;
1428
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1429
+ type: z.ZodLiteral<"within">;
1430
+ location: z.ZodString;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ type: "within";
1433
+ location: string;
1434
+ }, {
1435
+ type: "within";
1436
+ location: string;
1437
+ }>, z.ZodObject<{
1438
+ type: z.ZodLiteral<"exact">;
1439
+ term: z.ZodString;
1440
+ }, "strip", z.ZodTypeAny, {
1441
+ type: "exact";
1442
+ term: string;
1443
+ }, {
1444
+ type: "exact";
1445
+ term: string;
1446
+ }>]>>>;
1447
+ 'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1448
+ type: z.ZodLiteral<"exact">;
1449
+ term: z.ZodString;
1450
+ }, "strip", z.ZodTypeAny, {
1451
+ type: "exact";
1452
+ term: string;
1453
+ }, {
1454
+ type: "exact";
1455
+ term: string;
1456
+ }>>>;
1457
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1458
+ type: z.ZodLiteral<"within">;
1459
+ location: z.ZodString;
1460
+ }, "strip", z.ZodTypeAny, {
1461
+ type: "within";
1462
+ location: string;
1463
+ }, {
1464
+ type: "within";
1465
+ location: string;
1466
+ }>, z.ZodObject<{
1467
+ type: z.ZodLiteral<"exact">;
1468
+ term: z.ZodString;
1469
+ }, "strip", z.ZodTypeAny, {
1470
+ type: "exact";
1471
+ term: string;
1472
+ }, {
1473
+ type: "exact";
1474
+ term: string;
1475
+ }>]>>>;
1476
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1477
+ type: z.ZodLiteral<"within">;
1478
+ location: z.ZodString;
1479
+ }, "strip", z.ZodTypeAny, {
1480
+ type: "within";
1481
+ location: string;
1482
+ }, {
1483
+ type: "within";
1484
+ location: string;
1485
+ }>, z.ZodObject<{
1486
+ type: z.ZodLiteral<"exact">;
1487
+ term: z.ZodString;
1488
+ }, "strip", z.ZodTypeAny, {
1489
+ type: "exact";
1490
+ term: string;
1491
+ }, {
1492
+ type: "exact";
1493
+ term: string;
1494
+ }>]>>>;
1495
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1496
+ type: z.ZodLiteral<"exact">;
1497
+ term: z.ZodString;
1498
+ }, "strip", z.ZodTypeAny, {
1499
+ type: "exact";
1500
+ term: string;
1501
+ }, {
1502
+ type: "exact";
1503
+ term: string;
1504
+ }>>>;
1505
+ createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1506
+ type: z.ZodLiteral<"exact">;
1507
+ term: z.ZodEnum<["user", "system"]>;
1508
+ }, "strip", z.ZodTypeAny, {
1509
+ type: "exact";
1510
+ term: "system" | "user";
1511
+ }, {
1512
+ type: "exact";
1513
+ term: "system" | "user";
1514
+ }>>>;
1515
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1516
+ type: z.ZodLiteral<"exact">;
1517
+ term: z.ZodString;
1518
+ }, "strip", z.ZodTypeAny, {
1519
+ type: "exact";
1520
+ term: string;
1521
+ }, {
1522
+ type: "exact";
1523
+ term: string;
1524
+ }>>>;
1525
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1526
+ type: z.ZodLiteral<"exact">;
1527
+ term: z.ZodString;
1528
+ }, "strip", z.ZodTypeAny, {
1529
+ type: "exact";
1530
+ term: string;
1531
+ }, {
1532
+ type: "exact";
1533
+ term: string;
1534
+ }>>>;
1535
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1536
+ type: z.ZodLiteral<"exact">;
1537
+ term: z.ZodString;
1538
+ }, "strip", z.ZodTypeAny, {
1539
+ type: "exact";
1540
+ term: string;
1541
+ }, {
1542
+ type: "exact";
1543
+ term: string;
1544
+ }>>>;
1545
+ flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1546
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1547
+ readonly PENDING_CERTIFICATION: "pending-certification";
1548
+ readonly INCOMPLETE: "incomplete";
1549
+ readonly REJECTED: "rejected";
1550
+ readonly CORRECTION_REQUESTED: "correction-requested";
1551
+ }>]>, "many">>;
1552
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1553
+ readonly PENDING_CERTIFICATION: "pending-certification";
1554
+ readonly INCOMPLETE: "incomplete";
1555
+ readonly REJECTED: "rejected";
1556
+ readonly CORRECTION_REQUESTED: "correction-requested";
1557
+ }>]>, "many">>;
1558
+ }, "strip", z.ZodTypeAny, {
1559
+ anyOf?: string[] | undefined;
1560
+ noneOf?: string[] | undefined;
1561
+ }, {
1562
+ anyOf?: string[] | undefined;
1563
+ noneOf?: string[] | undefined;
1564
+ }>>>;
1565
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1566
+ }, "strip", z.ZodTypeAny, {
1567
+ id?: string | undefined;
1568
+ status?: {
1569
+ type: "exact";
1570
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1571
+ } | {
1572
+ type: "anyOf";
1573
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1574
+ } | undefined;
1575
+ data?: any;
1576
+ createdByUserType?: {
1577
+ type: "exact";
1578
+ term: "system" | "user";
1579
+ } | undefined;
1580
+ createdAt?: {
1581
+ type: "range";
1582
+ gte: string;
1583
+ lte: string;
1584
+ } | {
1585
+ type: "exact";
1586
+ term: string;
1587
+ } | {
1588
+ type: "timePeriod";
1589
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1590
+ } | undefined;
1591
+ createdBy?: {
1592
+ type: "exact";
1593
+ term: string;
1594
+ } | undefined;
1595
+ createdAtLocation?: {
1596
+ type: "exact";
1597
+ term: string;
1598
+ } | {
1599
+ type: "within";
1600
+ location: string;
1601
+ } | undefined;
1602
+ assignedTo?: {
1603
+ type: "exact";
1604
+ term: string;
1605
+ } | undefined;
1606
+ updatedAt?: {
1607
+ type: "range";
1608
+ gte: string;
1609
+ lte: string;
1610
+ } | {
1611
+ type: "exact";
1612
+ term: string;
1613
+ } | {
1614
+ type: "timePeriod";
1615
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1616
+ } | undefined;
1617
+ trackingId?: {
1618
+ type: "exact";
1619
+ term: string;
1620
+ } | undefined;
1621
+ updatedAtLocation?: {
1622
+ type: "exact";
1623
+ term: string;
1624
+ } | {
1625
+ type: "within";
1626
+ location: string;
1627
+ } | undefined;
1628
+ updatedBy?: {
1629
+ type: "exact";
1630
+ term: string;
1631
+ } | undefined;
1632
+ flags?: {
1633
+ anyOf?: string[] | undefined;
1634
+ noneOf?: string[] | undefined;
1635
+ } | undefined;
1636
+ eventType?: string | undefined;
1637
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1638
+ type: "range";
1639
+ gte: string;
1640
+ lte: string;
1641
+ } | {
1642
+ type: "exact";
1643
+ term: string;
1644
+ } | {
1645
+ type: "timePeriod";
1646
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1647
+ } | undefined;
1648
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1649
+ type: "exact";
1650
+ term: string;
1651
+ } | {
1652
+ type: "within";
1653
+ location: string;
1654
+ } | undefined;
1655
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1656
+ type: "exact";
1657
+ term: string;
1658
+ } | {
1659
+ type: "within";
1660
+ location: string;
1661
+ } | undefined;
1662
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1663
+ type: "exact";
1664
+ term: string;
1665
+ } | undefined;
1666
+ }, {
1667
+ id?: string | undefined;
1668
+ status?: {
1669
+ type: "exact";
1670
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1671
+ } | {
1672
+ type: "anyOf";
1673
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1674
+ } | undefined;
1675
+ data?: any;
1676
+ createdByUserType?: {
1677
+ type: "exact";
1678
+ term: "system" | "user";
1679
+ } | undefined;
1680
+ createdAt?: {
1681
+ type: "range";
1682
+ gte: string;
1683
+ lte: string;
1684
+ } | {
1685
+ type: "exact";
1686
+ term: string;
1687
+ } | {
1688
+ type: "timePeriod";
1689
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1690
+ } | undefined;
1691
+ createdBy?: {
1692
+ type: "exact";
1693
+ term: string;
1694
+ } | undefined;
1695
+ createdAtLocation?: {
1696
+ type: "exact";
1697
+ term: string;
1698
+ } | {
1699
+ type: "within";
1700
+ location: string;
1701
+ } | undefined;
1702
+ assignedTo?: {
1703
+ type: "exact";
1704
+ term: string;
1705
+ } | undefined;
1706
+ updatedAt?: {
1707
+ type: "range";
1708
+ gte: string;
1709
+ lte: string;
1710
+ } | {
1711
+ type: "exact";
1712
+ term: string;
1713
+ } | {
1714
+ type: "timePeriod";
1715
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1716
+ } | undefined;
1717
+ trackingId?: {
1718
+ type: "exact";
1719
+ term: string;
1720
+ } | undefined;
1721
+ updatedAtLocation?: {
1722
+ type: "exact";
1723
+ term: string;
1724
+ } | {
1725
+ type: "within";
1726
+ location: string;
1727
+ } | undefined;
1728
+ updatedBy?: {
1729
+ type: "exact";
1730
+ term: string;
1731
+ } | undefined;
1732
+ flags?: {
1733
+ anyOf?: string[] | undefined;
1734
+ noneOf?: string[] | undefined;
1735
+ } | undefined;
1736
+ eventType?: string | undefined;
1737
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1738
+ type: "range";
1739
+ gte: string;
1740
+ lte: string;
1741
+ } | {
1742
+ type: "exact";
1743
+ term: string;
1744
+ } | {
1745
+ type: "timePeriod";
1746
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1747
+ } | undefined;
1748
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1749
+ type: "exact";
1750
+ term: string;
1751
+ } | {
1752
+ type: "within";
1753
+ location: string;
1754
+ } | undefined;
1755
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1756
+ type: "exact";
1757
+ term: string;
1758
+ } | {
1759
+ type: "within";
1760
+ location: string;
1761
+ } | undefined;
1762
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1763
+ type: "exact";
1764
+ term: string;
1765
+ } | undefined;
1766
+ }>, {
1767
+ id?: string | undefined;
1768
+ status?: {
1769
+ type: "exact";
1770
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1771
+ } | {
1772
+ type: "anyOf";
1773
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1774
+ } | undefined;
1775
+ data?: any;
1776
+ createdByUserType?: {
1777
+ type: "exact";
1778
+ term: "system" | "user";
1779
+ } | undefined;
1780
+ createdAt?: {
1781
+ type: "range";
1782
+ gte: string;
1783
+ lte: string;
1784
+ } | {
1785
+ type: "exact";
1786
+ term: string;
1787
+ } | {
1788
+ type: "timePeriod";
1789
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1790
+ } | undefined;
1791
+ createdBy?: {
1792
+ type: "exact";
1793
+ term: string;
1794
+ } | undefined;
1795
+ createdAtLocation?: {
1796
+ type: "exact";
1797
+ term: string;
1798
+ } | {
1799
+ type: "within";
1800
+ location: string;
1801
+ } | undefined;
1802
+ assignedTo?: {
1803
+ type: "exact";
1804
+ term: string;
1805
+ } | undefined;
1806
+ updatedAt?: {
1807
+ type: "range";
1808
+ gte: string;
1809
+ lte: string;
1810
+ } | {
1811
+ type: "exact";
1812
+ term: string;
1813
+ } | {
1814
+ type: "timePeriod";
1815
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1816
+ } | undefined;
1817
+ trackingId?: {
1818
+ type: "exact";
1819
+ term: string;
1820
+ } | undefined;
1821
+ updatedAtLocation?: {
1822
+ type: "exact";
1823
+ term: string;
1824
+ } | {
1825
+ type: "within";
1826
+ location: string;
1827
+ } | undefined;
1828
+ updatedBy?: {
1829
+ type: "exact";
1830
+ term: string;
1831
+ } | undefined;
1832
+ flags?: {
1833
+ anyOf?: string[] | undefined;
1834
+ noneOf?: string[] | undefined;
1835
+ } | undefined;
1836
+ eventType?: string | undefined;
1837
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1838
+ type: "range";
1839
+ gte: string;
1840
+ lte: string;
1841
+ } | {
1842
+ type: "exact";
1843
+ term: string;
1844
+ } | {
1845
+ type: "timePeriod";
1846
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1847
+ } | undefined;
1848
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1849
+ type: "exact";
1850
+ term: string;
1851
+ } | {
1852
+ type: "within";
1853
+ location: string;
1854
+ } | undefined;
1855
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1856
+ type: "exact";
1857
+ term: string;
1858
+ } | {
1859
+ type: "within";
1860
+ location: string;
1861
+ } | undefined;
1862
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1863
+ type: "exact";
1864
+ term: string;
1865
+ } | undefined;
1866
+ }, {
1867
+ id?: string | undefined;
1868
+ status?: {
1869
+ type: "exact";
1870
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1871
+ } | {
1872
+ type: "anyOf";
1873
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1874
+ } | undefined;
1875
+ data?: any;
1876
+ createdByUserType?: {
1877
+ type: "exact";
1878
+ term: "system" | "user";
1879
+ } | undefined;
1880
+ createdAt?: {
1881
+ type: "range";
1882
+ gte: string;
1883
+ lte: string;
1884
+ } | {
1885
+ type: "exact";
1886
+ term: string;
1887
+ } | {
1888
+ type: "timePeriod";
1889
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1890
+ } | undefined;
1891
+ createdBy?: {
1892
+ type: "exact";
1893
+ term: string;
1894
+ } | undefined;
1895
+ createdAtLocation?: {
1896
+ type: "exact";
1897
+ term: string;
1898
+ } | {
1899
+ type: "within";
1900
+ location: string;
1901
+ } | undefined;
1902
+ assignedTo?: {
1903
+ type: "exact";
1904
+ term: string;
1905
+ } | undefined;
1906
+ updatedAt?: {
1907
+ type: "range";
1908
+ gte: string;
1909
+ lte: string;
1910
+ } | {
1911
+ type: "exact";
1912
+ term: string;
1913
+ } | {
1914
+ type: "timePeriod";
1915
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1916
+ } | undefined;
1917
+ trackingId?: {
1918
+ type: "exact";
1919
+ term: string;
1920
+ } | undefined;
1921
+ updatedAtLocation?: {
1922
+ type: "exact";
1923
+ term: string;
1924
+ } | {
1925
+ type: "within";
1926
+ location: string;
1927
+ } | undefined;
1928
+ updatedBy?: {
1929
+ type: "exact";
1930
+ term: string;
1931
+ } | undefined;
1932
+ flags?: {
1933
+ anyOf?: string[] | undefined;
1934
+ noneOf?: string[] | undefined;
1935
+ } | undefined;
1936
+ eventType?: string | undefined;
1937
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1938
+ type: "range";
1939
+ gte: string;
1940
+ lte: string;
1941
+ } | {
1942
+ type: "exact";
1943
+ term: string;
1944
+ } | {
1945
+ type: "timePeriod";
1946
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1947
+ } | undefined;
1948
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1949
+ type: "exact";
1950
+ term: string;
1951
+ } | {
1952
+ type: "within";
1953
+ location: string;
1954
+ } | undefined;
1955
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1956
+ type: "exact";
1957
+ term: string;
1958
+ } | {
1959
+ type: "within";
1960
+ location: string;
1961
+ } | undefined;
1962
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1963
+ type: "exact";
1964
+ term: string;
1965
+ } | undefined;
1966
+ }>, "atleastone">, [{
1967
+ id?: string | undefined;
1968
+ status?: {
1969
+ type: "exact";
1970
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1971
+ } | {
1972
+ type: "anyOf";
1973
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1974
+ } | undefined;
1975
+ data?: any;
1976
+ createdByUserType?: {
1977
+ type: "exact";
1978
+ term: "system" | "user";
1979
+ } | undefined;
1980
+ createdAt?: {
1981
+ type: "range";
1982
+ gte: string;
1983
+ lte: string;
1984
+ } | {
1985
+ type: "exact";
1986
+ term: string;
1987
+ } | {
1988
+ type: "timePeriod";
1989
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1990
+ } | undefined;
1991
+ createdBy?: {
1992
+ type: "exact";
1993
+ term: string;
1994
+ } | undefined;
1995
+ createdAtLocation?: {
1996
+ type: "exact";
1997
+ term: string;
1998
+ } | {
1999
+ type: "within";
2000
+ location: string;
2001
+ } | undefined;
2002
+ assignedTo?: {
2003
+ type: "exact";
2004
+ term: string;
2005
+ } | undefined;
2006
+ updatedAt?: {
2007
+ type: "range";
2008
+ gte: string;
2009
+ lte: string;
2010
+ } | {
2011
+ type: "exact";
2012
+ term: string;
2013
+ } | {
2014
+ type: "timePeriod";
2015
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2016
+ } | undefined;
2017
+ trackingId?: {
2018
+ type: "exact";
2019
+ term: string;
2020
+ } | undefined;
2021
+ updatedAtLocation?: {
2022
+ type: "exact";
2023
+ term: string;
2024
+ } | {
2025
+ type: "within";
2026
+ location: string;
2027
+ } | undefined;
2028
+ updatedBy?: {
2029
+ type: "exact";
2030
+ term: string;
2031
+ } | undefined;
2032
+ flags?: {
2033
+ anyOf?: string[] | undefined;
2034
+ noneOf?: string[] | undefined;
2035
+ } | undefined;
2036
+ eventType?: string | undefined;
2037
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2038
+ type: "range";
2039
+ gte: string;
2040
+ lte: string;
2041
+ } | {
2042
+ type: "exact";
2043
+ term: string;
2044
+ } | {
2045
+ type: "timePeriod";
2046
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2047
+ } | undefined;
2048
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2049
+ type: "exact";
2050
+ term: string;
2051
+ } | {
2052
+ type: "within";
2053
+ location: string;
2054
+ } | undefined;
2055
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2056
+ type: "exact";
2057
+ term: string;
2058
+ } | {
2059
+ type: "within";
2060
+ location: string;
2061
+ } | undefined;
2062
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2063
+ type: "exact";
2064
+ term: string;
2065
+ } | undefined;
2066
+ }, ...{
2067
+ id?: string | undefined;
2068
+ status?: {
2069
+ type: "exact";
2070
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2071
+ } | {
2072
+ type: "anyOf";
2073
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2074
+ } | undefined;
2075
+ data?: any;
2076
+ createdByUserType?: {
2077
+ type: "exact";
2078
+ term: "system" | "user";
2079
+ } | undefined;
2080
+ createdAt?: {
2081
+ type: "range";
2082
+ gte: string;
2083
+ lte: string;
2084
+ } | {
2085
+ type: "exact";
2086
+ term: string;
2087
+ } | {
2088
+ type: "timePeriod";
2089
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2090
+ } | undefined;
2091
+ createdBy?: {
2092
+ type: "exact";
2093
+ term: string;
2094
+ } | undefined;
2095
+ createdAtLocation?: {
2096
+ type: "exact";
2097
+ term: string;
2098
+ } | {
2099
+ type: "within";
2100
+ location: string;
2101
+ } | undefined;
2102
+ assignedTo?: {
2103
+ type: "exact";
2104
+ term: string;
2105
+ } | undefined;
2106
+ updatedAt?: {
2107
+ type: "range";
2108
+ gte: string;
2109
+ lte: string;
2110
+ } | {
2111
+ type: "exact";
2112
+ term: string;
2113
+ } | {
2114
+ type: "timePeriod";
2115
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2116
+ } | undefined;
2117
+ trackingId?: {
2118
+ type: "exact";
2119
+ term: string;
2120
+ } | undefined;
2121
+ updatedAtLocation?: {
2122
+ type: "exact";
2123
+ term: string;
2124
+ } | {
2125
+ type: "within";
2126
+ location: string;
2127
+ } | undefined;
2128
+ updatedBy?: {
2129
+ type: "exact";
2130
+ term: string;
2131
+ } | undefined;
2132
+ flags?: {
2133
+ anyOf?: string[] | undefined;
2134
+ noneOf?: string[] | undefined;
2135
+ } | undefined;
2136
+ eventType?: string | undefined;
2137
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2138
+ type: "range";
2139
+ gte: string;
2140
+ lte: string;
2141
+ } | {
2142
+ type: "exact";
2143
+ term: string;
2144
+ } | {
2145
+ type: "timePeriod";
2146
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2147
+ } | undefined;
2148
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2149
+ type: "exact";
2150
+ term: string;
2151
+ } | {
2152
+ type: "within";
2153
+ location: string;
2154
+ } | undefined;
2155
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2156
+ type: "exact";
2157
+ term: string;
2158
+ } | {
2159
+ type: "within";
2160
+ location: string;
2161
+ } | undefined;
2162
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2163
+ type: "exact";
2164
+ term: string;
2165
+ } | undefined;
2166
+ }[]], unknown>;
2167
+ }, "strip", z.ZodTypeAny, {
2168
+ type: "and" | "or";
2169
+ clauses: [{
2170
+ id?: string | undefined;
2171
+ status?: {
2172
+ type: "exact";
2173
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2174
+ } | {
2175
+ type: "anyOf";
2176
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2177
+ } | undefined;
2178
+ data?: any;
2179
+ createdByUserType?: {
2180
+ type: "exact";
2181
+ term: "system" | "user";
2182
+ } | undefined;
2183
+ createdAt?: {
2184
+ type: "range";
2185
+ gte: string;
2186
+ lte: string;
2187
+ } | {
2188
+ type: "exact";
2189
+ term: string;
2190
+ } | {
2191
+ type: "timePeriod";
2192
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2193
+ } | undefined;
2194
+ createdBy?: {
2195
+ type: "exact";
2196
+ term: string;
2197
+ } | undefined;
2198
+ createdAtLocation?: {
2199
+ type: "exact";
2200
+ term: string;
2201
+ } | {
2202
+ type: "within";
2203
+ location: string;
2204
+ } | undefined;
2205
+ assignedTo?: {
2206
+ type: "exact";
2207
+ term: string;
2208
+ } | undefined;
2209
+ updatedAt?: {
2210
+ type: "range";
2211
+ gte: string;
2212
+ lte: string;
2213
+ } | {
2214
+ type: "exact";
2215
+ term: string;
2216
+ } | {
2217
+ type: "timePeriod";
2218
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2219
+ } | undefined;
2220
+ trackingId?: {
2221
+ type: "exact";
2222
+ term: string;
2223
+ } | undefined;
2224
+ updatedAtLocation?: {
2225
+ type: "exact";
2226
+ term: string;
2227
+ } | {
2228
+ type: "within";
2229
+ location: string;
2230
+ } | undefined;
2231
+ updatedBy?: {
2232
+ type: "exact";
2233
+ term: string;
2234
+ } | undefined;
2235
+ flags?: {
2236
+ anyOf?: string[] | undefined;
2237
+ noneOf?: string[] | undefined;
2238
+ } | undefined;
2239
+ eventType?: string | undefined;
2240
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2241
+ type: "range";
2242
+ gte: string;
2243
+ lte: string;
2244
+ } | {
2245
+ type: "exact";
2246
+ term: string;
2247
+ } | {
2248
+ type: "timePeriod";
2249
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2250
+ } | undefined;
2251
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2252
+ type: "exact";
2253
+ term: string;
2254
+ } | {
2255
+ type: "within";
2256
+ location: string;
2257
+ } | undefined;
2258
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2259
+ type: "exact";
2260
+ term: string;
2261
+ } | {
2262
+ type: "within";
2263
+ location: string;
2264
+ } | undefined;
2265
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2266
+ type: "exact";
2267
+ term: string;
2268
+ } | undefined;
2269
+ }, ...{
2270
+ id?: string | undefined;
2271
+ status?: {
2272
+ type: "exact";
2273
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2274
+ } | {
2275
+ type: "anyOf";
2276
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2277
+ } | undefined;
2278
+ data?: any;
2279
+ createdByUserType?: {
2280
+ type: "exact";
2281
+ term: "system" | "user";
2282
+ } | undefined;
2283
+ createdAt?: {
2284
+ type: "range";
2285
+ gte: string;
2286
+ lte: string;
2287
+ } | {
2288
+ type: "exact";
2289
+ term: string;
2290
+ } | {
2291
+ type: "timePeriod";
2292
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2293
+ } | undefined;
2294
+ createdBy?: {
2295
+ type: "exact";
2296
+ term: string;
2297
+ } | undefined;
2298
+ createdAtLocation?: {
2299
+ type: "exact";
2300
+ term: string;
2301
+ } | {
2302
+ type: "within";
2303
+ location: string;
2304
+ } | undefined;
2305
+ assignedTo?: {
2306
+ type: "exact";
2307
+ term: string;
2308
+ } | undefined;
2309
+ updatedAt?: {
2310
+ type: "range";
2311
+ gte: string;
2312
+ lte: string;
2313
+ } | {
2314
+ type: "exact";
2315
+ term: string;
2316
+ } | {
2317
+ type: "timePeriod";
2318
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2319
+ } | undefined;
2320
+ trackingId?: {
2321
+ type: "exact";
2322
+ term: string;
2323
+ } | undefined;
2324
+ updatedAtLocation?: {
2325
+ type: "exact";
2326
+ term: string;
2327
+ } | {
2328
+ type: "within";
2329
+ location: string;
2330
+ } | undefined;
2331
+ updatedBy?: {
2332
+ type: "exact";
2333
+ term: string;
2334
+ } | undefined;
2335
+ flags?: {
2336
+ anyOf?: string[] | undefined;
2337
+ noneOf?: string[] | undefined;
2338
+ } | undefined;
2339
+ eventType?: string | undefined;
2340
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2341
+ type: "range";
2342
+ gte: string;
2343
+ lte: string;
2344
+ } | {
2345
+ type: "exact";
2346
+ term: string;
2347
+ } | {
2348
+ type: "timePeriod";
2349
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2350
+ } | undefined;
2351
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2352
+ type: "exact";
2353
+ term: string;
2354
+ } | {
2355
+ type: "within";
2356
+ location: string;
2357
+ } | undefined;
2358
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2359
+ type: "exact";
2360
+ term: string;
2361
+ } | {
2362
+ type: "within";
2363
+ location: string;
2364
+ } | undefined;
2365
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2366
+ type: "exact";
2367
+ term: string;
2368
+ } | undefined;
2369
+ }[]];
2370
+ }, {
2371
+ type: "and" | "or";
2372
+ clauses?: unknown;
2373
+ }>;
2374
+ export type QueryType = z.infer<typeof QueryType>;
2375
+ export type QueryExpression = z.infer<typeof QueryExpression>;
2376
+ export declare const SearchScopeAccessLevels: {
2377
+ readonly MY_JURISDICTION: "my-jurisdiction";
2378
+ readonly ALL: "all";
2379
+ };
2380
+ export type SearchScopeAccessLevels = (typeof SearchScopeAccessLevels)[keyof typeof SearchScopeAccessLevels];
2381
+ export {};
61
2382
  //# sourceMappingURL=EventIndex.d.ts.map