@ecrvs/opencrvs-toolkit 1.8.1-rc.a7ee8fb

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 (76) hide show
  1. package/README.md +70 -0
  2. package/build.sh +56 -0
  3. package/dist/api/index.d.ts +11 -0
  4. package/dist/api/index.d.ts.map +1 -0
  5. package/dist/api/index.js +52 -0
  6. package/dist/commons/api/router.d.ts +14568 -0
  7. package/dist/commons/conditionals/conditionals.d.ts +194 -0
  8. package/dist/commons/conditionals/index.d.ts +2 -0
  9. package/dist/commons/conditionals/validate.d.ts +129 -0
  10. package/dist/commons/events/ActionConfig.d.ts +2034 -0
  11. package/dist/commons/events/ActionDocument.d.ts +14400 -0
  12. package/dist/commons/events/ActionInput.d.ts +11157 -0
  13. package/dist/commons/events/ActionType.d.ts +52 -0
  14. package/dist/commons/events/AdvancedSearchConfig.d.ts +1175 -0
  15. package/dist/commons/events/CompositeFieldValue.d.ts +181 -0
  16. package/dist/commons/events/Conditional.d.ts +55 -0
  17. package/dist/commons/events/Constants.d.ts +3 -0
  18. package/dist/commons/events/CountryConfigQueryInput.d.ts +4494 -0
  19. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  20. package/dist/commons/events/DeduplicationConfig.d.ts +209 -0
  21. package/dist/commons/events/Draft.d.ts +814 -0
  22. package/dist/commons/events/EventConfig.d.ts +2237 -0
  23. package/dist/commons/events/EventConfigInput.d.ts +10 -0
  24. package/dist/commons/events/EventDocument.d.ts +8505 -0
  25. package/dist/commons/events/EventIndex.d.ts +3858 -0
  26. package/dist/commons/events/EventInput.d.ts +13 -0
  27. package/dist/commons/events/EventMetadata.d.ts +408 -0
  28. package/dist/commons/events/FieldConfig.d.ts +7125 -0
  29. package/dist/commons/events/FieldType.d.ts +46 -0
  30. package/dist/commons/events/FieldTypeMapping.d.ts +537 -0
  31. package/dist/commons/events/FieldValue.d.ts +250 -0
  32. package/dist/commons/events/FileUtils.d.ts +4 -0
  33. package/dist/commons/events/FormConfig.d.ts +725 -0
  34. package/dist/commons/events/PageConfig.d.ts +336 -0
  35. package/dist/commons/events/SummaryConfig.d.ts +170 -0
  36. package/dist/commons/events/TemplateConfig.d.ts +38 -0
  37. package/dist/commons/events/TranslationConfig.d.ts +15 -0
  38. package/dist/commons/events/User.d.ts +45 -0
  39. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  40. package/dist/commons/events/WorkqueueConfig.d.ts +8997 -0
  41. package/dist/commons/events/deduplication.d.ts +32 -0
  42. package/dist/commons/events/defineConfig.d.ts +309 -0
  43. package/dist/commons/events/event.d.ts +109 -0
  44. package/dist/commons/events/field.d.ts +151 -0
  45. package/dist/commons/events/index.d.ts +46 -0
  46. package/dist/commons/events/locations.d.ts +24 -0
  47. package/dist/commons/events/scopes.d.ts +55 -0
  48. package/dist/commons/events/serializer.d.ts +2 -0
  49. package/dist/commons/events/state/availableActions.d.ts +6 -0
  50. package/dist/commons/events/state/flags.d.ts +4 -0
  51. package/dist/commons/events/state/index.d.ts +146 -0
  52. package/dist/commons/events/state/utils.d.ts +1263 -0
  53. package/dist/commons/events/test.utils.d.ts +473 -0
  54. package/dist/commons/events/transactions.d.ts +2 -0
  55. package/dist/commons/events/utils.d.ts +501 -0
  56. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  57. package/dist/commons/notification/UserNotifications.d.ts +632 -0
  58. package/dist/commons/notification/index.d.ts +2 -0
  59. package/dist/conditionals/index.d.ts +2 -0
  60. package/dist/conditionals/index.d.ts.map +1 -0
  61. package/dist/conditionals/index.js +491 -0
  62. package/dist/events/deduplication.d.ts +32 -0
  63. package/dist/events/deduplication.d.ts.map +1 -0
  64. package/dist/events/deduplication.js +67 -0
  65. package/dist/events/index.d.ts +2 -0
  66. package/dist/events/index.d.ts.map +1 -0
  67. package/dist/events/index.js +8383 -0
  68. package/dist/notification/index.d.ts +2 -0
  69. package/dist/notification/index.d.ts.map +1 -0
  70. package/dist/notification/index.js +5928 -0
  71. package/dist/scopes/index.d.ts +335 -0
  72. package/dist/scopes/index.d.ts.map +1 -0
  73. package/dist/scopes/index.js +379 -0
  74. package/package.json +40 -0
  75. package/tsconfig.json +27 -0
  76. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,3858 @@
1
+ import { z, ZodType } from 'zod';
2
+ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
+ type: z.ZodString;
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;
101
+ }>;
102
+ createdAt: z.ZodString;
103
+ dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ createdBy: 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;
111
+ assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ trackingId: z.ZodString;
114
+ potentialDuplicates: z.ZodArray<z.ZodObject<{
115
+ id: z.ZodBranded<z.ZodString, "UUID">;
116
+ trackingId: z.ZodString;
117
+ }, "strip", z.ZodTypeAny, {
118
+ id: string & z.BRAND<"UUID">;
119
+ trackingId: string;
120
+ }, {
121
+ id: string;
122
+ trackingId: string;
123
+ }>, "many">;
124
+ flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
125
+ readonly PENDING_CERTIFICATION: "pending-certification";
126
+ readonly INCOMPLETE: "incomplete";
127
+ readonly REJECTED: "rejected";
128
+ readonly CORRECTION_REQUESTED: "correction-requested";
129
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
130
+ }>]>, "many">;
131
+ }, {
132
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodString, z.ZodString, z.ZodObject<{
133
+ country: z.ZodString;
134
+ addressType: z.ZodEnum<["DOMESTIC", "INTERNATIONAL"]>;
135
+ administrativeArea: z.ZodOptional<z.ZodString>;
136
+ streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ country: string;
139
+ addressType: "DOMESTIC" | "INTERNATIONAL";
140
+ administrativeArea?: string | undefined;
141
+ streetLevelDetails?: Record<string, string> | undefined;
142
+ }, {
143
+ country: string;
144
+ addressType: "DOMESTIC" | "INTERNATIONAL";
145
+ administrativeArea?: string | undefined;
146
+ streetLevelDetails?: Record<string, string> | undefined;
147
+ }>, z.ZodUnion<[z.ZodObject<{
148
+ start: z.ZodString;
149
+ end: z.ZodString;
150
+ }, "strip", z.ZodTypeAny, {
151
+ start: string;
152
+ end: string;
153
+ }, {
154
+ start: string;
155
+ end: string;
156
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
157
+ path: z.ZodEffects<z.ZodString, string, string>;
158
+ originalFilename: z.ZodString;
159
+ type: z.ZodString;
160
+ }, "strip", z.ZodTypeAny, {
161
+ type: string;
162
+ path: string;
163
+ originalFilename: string;
164
+ }, {
165
+ type: string;
166
+ path: string;
167
+ originalFilename: string;
168
+ }>, z.ZodArray<z.ZodObject<{
169
+ path: z.ZodEffects<z.ZodString, string, string>;
170
+ originalFilename: z.ZodString;
171
+ type: z.ZodString;
172
+ option: z.ZodString;
173
+ }, "strip", z.ZodTypeAny, {
174
+ type: string;
175
+ option: string;
176
+ path: string;
177
+ originalFilename: string;
178
+ }, {
179
+ type: string;
180
+ option: string;
181
+ path: string;
182
+ originalFilename: string;
183
+ }>, "many">, z.ZodUndefined, z.ZodObject<{
184
+ firstname: z.ZodString;
185
+ surname: z.ZodString;
186
+ middlename: z.ZodOptional<z.ZodString>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ firstname: string;
189
+ surname: string;
190
+ middlename?: string | undefined;
191
+ }, {
192
+ firstname: string;
193
+ surname: string;
194
+ middlename?: string | undefined;
195
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
196
+ firstname: z.ZodString;
197
+ surname: z.ZodString;
198
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ firstname: string;
201
+ surname: string;
202
+ middlename?: string | null | undefined;
203
+ }, {
204
+ firstname: string;
205
+ surname: string;
206
+ middlename?: string | null | undefined;
207
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
208
+ loading: z.ZodBoolean;
209
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
210
+ statusCode: z.ZodNumber;
211
+ message: z.ZodString;
212
+ }, "strip", z.ZodTypeAny, {
213
+ message: string;
214
+ statusCode: number;
215
+ }, {
216
+ message: string;
217
+ statusCode: number;
218
+ }>>>;
219
+ data: z.ZodAny;
220
+ }, "strip", z.ZodTypeAny, {
221
+ loading: boolean;
222
+ data?: any;
223
+ error?: {
224
+ message: string;
225
+ statusCode: number;
226
+ } | null | undefined;
227
+ }, {
228
+ loading: boolean;
229
+ data?: any;
230
+ error?: {
231
+ message: string;
232
+ statusCode: number;
233
+ } | null | undefined;
234
+ }>]>>;
235
+ }>, "strip", z.ZodTypeAny, {
236
+ type: string;
237
+ id: string & z.BRAND<"UUID">;
238
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
239
+ createdAt: string;
240
+ createdBy: string;
241
+ declaration: Record<string, string | number | boolean | {
242
+ type: string;
243
+ path: string;
244
+ originalFilename: string;
245
+ } | {
246
+ firstname: string;
247
+ surname: string;
248
+ middlename?: string | undefined;
249
+ } | {
250
+ firstname: string;
251
+ surname: string;
252
+ middlename?: string | null | undefined;
253
+ } | Record<string, string> | {
254
+ country: string;
255
+ addressType: "DOMESTIC" | "INTERNATIONAL";
256
+ administrativeArea?: string | undefined;
257
+ streetLevelDetails?: Record<string, string> | undefined;
258
+ } | {
259
+ type: string;
260
+ option: string;
261
+ path: string;
262
+ originalFilename: string;
263
+ }[] | {
264
+ loading: boolean;
265
+ data?: any;
266
+ error?: {
267
+ message: string;
268
+ statusCode: number;
269
+ } | null | undefined;
270
+ } | {
271
+ start: string;
272
+ end: string;
273
+ } | null | undefined>;
274
+ trackingId: string;
275
+ updatedAt: string;
276
+ legalStatuses: {
277
+ DECLARED?: {
278
+ createdAt: string;
279
+ createdBy: string;
280
+ createdByRole: string;
281
+ acceptedAt: string;
282
+ createdByUserType?: "system" | "user" | null | undefined;
283
+ createdBySignature?: string | null | undefined;
284
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
285
+ } | null | undefined;
286
+ REGISTERED?: {
287
+ createdAt: string;
288
+ createdBy: string;
289
+ createdByRole: string;
290
+ registrationNumber: string;
291
+ acceptedAt: string;
292
+ createdByUserType?: "system" | "user" | null | undefined;
293
+ createdBySignature?: string | null | undefined;
294
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
295
+ } | null | undefined;
296
+ };
297
+ updatedByUserRole: string;
298
+ potentialDuplicates: {
299
+ id: string & z.BRAND<"UUID">;
300
+ trackingId: string;
301
+ }[];
302
+ flags: string[];
303
+ createdByUserType?: "system" | "user" | null | undefined;
304
+ createdBySignature?: string | null | undefined;
305
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
306
+ assignedTo?: string | null | undefined;
307
+ dateOfEvent?: string | null | undefined;
308
+ updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
309
+ updatedBy?: string | null | undefined;
310
+ }, {
311
+ type: string;
312
+ id: string;
313
+ status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
314
+ createdAt: string;
315
+ createdBy: string;
316
+ declaration: Record<string, string | number | boolean | {
317
+ type: string;
318
+ path: string;
319
+ originalFilename: string;
320
+ } | {
321
+ firstname: string;
322
+ surname: string;
323
+ middlename?: string | undefined;
324
+ } | {
325
+ firstname: string;
326
+ surname: string;
327
+ middlename?: string | null | undefined;
328
+ } | Record<string, string> | {
329
+ country: string;
330
+ addressType: "DOMESTIC" | "INTERNATIONAL";
331
+ administrativeArea?: string | undefined;
332
+ streetLevelDetails?: Record<string, string> | undefined;
333
+ } | {
334
+ type: string;
335
+ option: string;
336
+ path: string;
337
+ originalFilename: string;
338
+ }[] | {
339
+ loading: boolean;
340
+ data?: any;
341
+ error?: {
342
+ message: string;
343
+ statusCode: number;
344
+ } | null | undefined;
345
+ } | {
346
+ start: string;
347
+ end: string;
348
+ } | null | undefined>;
349
+ trackingId: string;
350
+ updatedAt: string;
351
+ legalStatuses: {
352
+ DECLARED?: {
353
+ createdAt: string;
354
+ createdBy: string;
355
+ createdByRole: string;
356
+ acceptedAt: string;
357
+ createdByUserType?: "system" | "user" | null | undefined;
358
+ createdBySignature?: string | null | undefined;
359
+ createdAtLocation?: string | null | undefined;
360
+ } | null | undefined;
361
+ REGISTERED?: {
362
+ createdAt: string;
363
+ createdBy: string;
364
+ createdByRole: string;
365
+ registrationNumber: string;
366
+ acceptedAt: string;
367
+ createdByUserType?: "system" | "user" | null | undefined;
368
+ createdBySignature?: string | null | undefined;
369
+ createdAtLocation?: string | null | undefined;
370
+ } | null | undefined;
371
+ };
372
+ updatedByUserRole: string;
373
+ potentialDuplicates: {
374
+ id: string;
375
+ trackingId: string;
376
+ }[];
377
+ flags: string[];
378
+ createdByUserType?: "system" | "user" | null | undefined;
379
+ createdBySignature?: string | null | undefined;
380
+ createdAtLocation?: string | null | undefined;
381
+ assignedTo?: string | null | undefined;
382
+ dateOfEvent?: string | null | undefined;
383
+ updatedAtLocation?: string | null | undefined;
384
+ updatedBy?: string | null | undefined;
385
+ }>;
386
+ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
387
+ type: z.ZodString;
388
+ }, "strip", z.ZodTypeAny, {
389
+ type: string;
390
+ }, {
391
+ type: string;
392
+ }>>;
393
+ export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
394
+ export type EventIndex = z.infer<typeof EventIndex>;
395
+ export declare const Fuzzy: z.ZodObject<{
396
+ type: z.ZodLiteral<"fuzzy">;
397
+ term: z.ZodString;
398
+ }, "strip", z.ZodTypeAny, {
399
+ type: "fuzzy";
400
+ term: string;
401
+ }, {
402
+ type: "fuzzy";
403
+ term: string;
404
+ }>;
405
+ export declare const Exact: z.ZodObject<{
406
+ type: z.ZodLiteral<"exact">;
407
+ term: z.ZodString;
408
+ }, "strip", z.ZodTypeAny, {
409
+ type: "exact";
410
+ term: string;
411
+ }, {
412
+ type: "exact";
413
+ term: string;
414
+ }>;
415
+ export declare const ExactStatus: z.ZodObject<{
416
+ type: z.ZodLiteral<"exact">;
417
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
418
+ }, "strip", z.ZodTypeAny, {
419
+ type: "exact";
420
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
421
+ }, {
422
+ type: "exact";
423
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
424
+ }>;
425
+ export declare const ExactUserType: z.ZodObject<{
426
+ type: z.ZodLiteral<"exact">;
427
+ term: z.ZodEnum<["user", "system"]>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ type: "exact";
430
+ term: "system" | "user";
431
+ }, {
432
+ type: "exact";
433
+ term: "system" | "user";
434
+ }>;
435
+ export declare const AnyOf: z.ZodObject<{
436
+ type: z.ZodLiteral<"anyOf">;
437
+ terms: z.ZodArray<z.ZodString, "many">;
438
+ }, "strip", z.ZodTypeAny, {
439
+ type: "anyOf";
440
+ terms: string[];
441
+ }, {
442
+ type: "anyOf";
443
+ terms: string[];
444
+ }>;
445
+ export declare const AnyOfStatus: z.ZodObject<{
446
+ type: z.ZodLiteral<"anyOf">;
447
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
448
+ }, "strip", z.ZodTypeAny, {
449
+ type: "anyOf";
450
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
451
+ }, {
452
+ type: "anyOf";
453
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
454
+ }>;
455
+ export declare const Range: z.ZodObject<{
456
+ type: z.ZodLiteral<"range">;
457
+ gte: z.ZodString;
458
+ lte: z.ZodString;
459
+ }, "strip", z.ZodTypeAny, {
460
+ type: "range";
461
+ gte: string;
462
+ lte: string;
463
+ }, {
464
+ type: "range";
465
+ gte: string;
466
+ lte: string;
467
+ }>;
468
+ export declare const ContainsFlags: z.ZodObject<{
469
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
470
+ readonly PENDING_CERTIFICATION: "pending-certification";
471
+ readonly INCOMPLETE: "incomplete";
472
+ readonly REJECTED: "rejected";
473
+ readonly CORRECTION_REQUESTED: "correction-requested";
474
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
475
+ }>]>, "many">>;
476
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
477
+ readonly PENDING_CERTIFICATION: "pending-certification";
478
+ readonly INCOMPLETE: "incomplete";
479
+ readonly REJECTED: "rejected";
480
+ readonly CORRECTION_REQUESTED: "correction-requested";
481
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
482
+ }>]>, "many">>;
483
+ }, "strip", z.ZodTypeAny, {
484
+ anyOf?: string[] | undefined;
485
+ noneOf?: string[] | undefined;
486
+ }, {
487
+ anyOf?: string[] | undefined;
488
+ noneOf?: string[] | undefined;
489
+ }>;
490
+ export declare const Within: z.ZodObject<{
491
+ type: z.ZodLiteral<"within">;
492
+ location: z.ZodString;
493
+ }, "strip", z.ZodTypeAny, {
494
+ type: "within";
495
+ location: string;
496
+ }, {
497
+ type: "within";
498
+ location: string;
499
+ }>;
500
+ export declare const ExactDate: z.ZodObject<z.objectUtil.extendShape<{
501
+ type: z.ZodLiteral<"exact">;
502
+ term: z.ZodString;
503
+ }, {
504
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
505
+ }>, "strip", z.ZodTypeAny, {
506
+ type: "exact";
507
+ term: string;
508
+ }, {
509
+ type: "exact";
510
+ term: string;
511
+ }>;
512
+ export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
513
+ type: z.ZodLiteral<"exact">;
514
+ term: z.ZodString;
515
+ }, {
516
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
517
+ }>, "strip", z.ZodTypeAny, {
518
+ type: "exact";
519
+ term: string;
520
+ }, {
521
+ type: "exact";
522
+ term: string;
523
+ }>, z.ZodObject<{
524
+ type: z.ZodLiteral<"range">;
525
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
526
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
527
+ }, "strip", z.ZodTypeAny, {
528
+ type: "range";
529
+ gte: string;
530
+ lte: string;
531
+ }, {
532
+ type: "range";
533
+ gte: string;
534
+ lte: string;
535
+ }>, z.ZodObject<{
536
+ type: z.ZodLiteral<"timePeriod">;
537
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ type: "timePeriod";
540
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
541
+ }, {
542
+ type: "timePeriod";
543
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
544
+ }>]>;
545
+ export type DateCondition = z.infer<typeof DateCondition>;
546
+ export declare const QueryInput: ZodType;
547
+ export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf>;
548
+ type QueryMap = {
549
+ [key: string]: BaseInput | QueryMap;
550
+ };
551
+ export type QueryInputType = BaseInput | QueryMap;
552
+ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
553
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
554
+ eventType: z.ZodOptional<z.ZodString>;
555
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
556
+ type: z.ZodLiteral<"anyOf">;
557
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
558
+ }, "strip", z.ZodTypeAny, {
559
+ type: "anyOf";
560
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
561
+ }, {
562
+ type: "anyOf";
563
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
564
+ }>, z.ZodObject<{
565
+ type: z.ZodLiteral<"exact">;
566
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
567
+ }, "strip", z.ZodTypeAny, {
568
+ type: "exact";
569
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
570
+ }, {
571
+ type: "exact";
572
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
573
+ }>]>>>;
574
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
575
+ type: z.ZodLiteral<"exact">;
576
+ term: z.ZodString;
577
+ }, {
578
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
579
+ }>, "strip", z.ZodTypeAny, {
580
+ type: "exact";
581
+ term: string;
582
+ }, {
583
+ type: "exact";
584
+ term: string;
585
+ }>, z.ZodObject<{
586
+ type: z.ZodLiteral<"range">;
587
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
588
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
589
+ }, "strip", z.ZodTypeAny, {
590
+ type: "range";
591
+ gte: string;
592
+ lte: string;
593
+ }, {
594
+ type: "range";
595
+ gte: string;
596
+ lte: string;
597
+ }>, z.ZodObject<{
598
+ type: z.ZodLiteral<"timePeriod">;
599
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ type: "timePeriod";
602
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
603
+ }, {
604
+ type: "timePeriod";
605
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
606
+ }>]>>>;
607
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
608
+ type: z.ZodLiteral<"exact">;
609
+ term: z.ZodString;
610
+ }, {
611
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
612
+ }>, "strip", z.ZodTypeAny, {
613
+ type: "exact";
614
+ term: string;
615
+ }, {
616
+ type: "exact";
617
+ term: string;
618
+ }>, z.ZodObject<{
619
+ type: z.ZodLiteral<"range">;
620
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
621
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
622
+ }, "strip", z.ZodTypeAny, {
623
+ type: "range";
624
+ gte: string;
625
+ lte: string;
626
+ }, {
627
+ type: "range";
628
+ gte: string;
629
+ lte: string;
630
+ }>, z.ZodObject<{
631
+ type: z.ZodLiteral<"timePeriod">;
632
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ type: "timePeriod";
635
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
636
+ }, {
637
+ type: "timePeriod";
638
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
639
+ }>]>>>;
640
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
641
+ type: z.ZodLiteral<"exact">;
642
+ term: z.ZodString;
643
+ }, {
644
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
645
+ }>, "strip", z.ZodTypeAny, {
646
+ type: "exact";
647
+ term: string;
648
+ }, {
649
+ type: "exact";
650
+ term: string;
651
+ }>, z.ZodObject<{
652
+ type: z.ZodLiteral<"range">;
653
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
654
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
655
+ }, "strip", z.ZodTypeAny, {
656
+ type: "range";
657
+ gte: string;
658
+ lte: string;
659
+ }, {
660
+ type: "range";
661
+ gte: string;
662
+ lte: string;
663
+ }>, z.ZodObject<{
664
+ type: z.ZodLiteral<"timePeriod">;
665
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
666
+ }, "strip", z.ZodTypeAny, {
667
+ type: "timePeriod";
668
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
669
+ }, {
670
+ type: "timePeriod";
671
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
672
+ }>]>>>;
673
+ 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
674
+ type: z.ZodLiteral<"within">;
675
+ location: z.ZodString;
676
+ }, "strip", z.ZodTypeAny, {
677
+ type: "within";
678
+ location: string;
679
+ }, {
680
+ type: "within";
681
+ location: string;
682
+ }>, z.ZodObject<{
683
+ type: z.ZodLiteral<"exact">;
684
+ term: z.ZodString;
685
+ }, "strip", z.ZodTypeAny, {
686
+ type: "exact";
687
+ term: string;
688
+ }, {
689
+ type: "exact";
690
+ term: string;
691
+ }>]>>>;
692
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
693
+ type: z.ZodLiteral<"within">;
694
+ location: z.ZodString;
695
+ }, "strip", z.ZodTypeAny, {
696
+ type: "within";
697
+ location: string;
698
+ }, {
699
+ type: "within";
700
+ location: string;
701
+ }>, z.ZodObject<{
702
+ type: z.ZodLiteral<"exact">;
703
+ term: z.ZodString;
704
+ }, "strip", z.ZodTypeAny, {
705
+ type: "exact";
706
+ term: string;
707
+ }, {
708
+ type: "exact";
709
+ term: string;
710
+ }>]>>>;
711
+ 'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
712
+ type: z.ZodLiteral<"exact">;
713
+ term: z.ZodString;
714
+ }, "strip", z.ZodTypeAny, {
715
+ type: "exact";
716
+ term: string;
717
+ }, {
718
+ type: "exact";
719
+ term: string;
720
+ }>>>;
721
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
722
+ type: z.ZodLiteral<"within">;
723
+ location: z.ZodString;
724
+ }, "strip", z.ZodTypeAny, {
725
+ type: "within";
726
+ location: string;
727
+ }, {
728
+ type: "within";
729
+ location: string;
730
+ }>, z.ZodObject<{
731
+ type: z.ZodLiteral<"exact">;
732
+ term: z.ZodString;
733
+ }, "strip", z.ZodTypeAny, {
734
+ type: "exact";
735
+ term: string;
736
+ }, {
737
+ type: "exact";
738
+ term: string;
739
+ }>]>>>;
740
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
741
+ type: z.ZodLiteral<"within">;
742
+ location: z.ZodString;
743
+ }, "strip", z.ZodTypeAny, {
744
+ type: "within";
745
+ location: string;
746
+ }, {
747
+ type: "within";
748
+ location: string;
749
+ }>, z.ZodObject<{
750
+ type: z.ZodLiteral<"exact">;
751
+ term: z.ZodString;
752
+ }, "strip", z.ZodTypeAny, {
753
+ type: "exact";
754
+ term: string;
755
+ }, {
756
+ type: "exact";
757
+ term: string;
758
+ }>]>>>;
759
+ assignedTo: z.ZodOptional<z.ZodOptional<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
+ createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
770
+ type: z.ZodLiteral<"exact">;
771
+ term: z.ZodEnum<["user", "system"]>;
772
+ }, "strip", z.ZodTypeAny, {
773
+ type: "exact";
774
+ term: "system" | "user";
775
+ }, {
776
+ type: "exact";
777
+ term: "system" | "user";
778
+ }>>>;
779
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
780
+ type: z.ZodLiteral<"exact">;
781
+ term: z.ZodString;
782
+ }, "strip", z.ZodTypeAny, {
783
+ type: "exact";
784
+ term: string;
785
+ }, {
786
+ type: "exact";
787
+ term: string;
788
+ }>>>;
789
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
790
+ type: z.ZodLiteral<"exact">;
791
+ term: z.ZodString;
792
+ }, "strip", z.ZodTypeAny, {
793
+ type: "exact";
794
+ term: string;
795
+ }, {
796
+ type: "exact";
797
+ term: string;
798
+ }>>>;
799
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
800
+ type: z.ZodLiteral<"exact">;
801
+ term: z.ZodString;
802
+ }, "strip", z.ZodTypeAny, {
803
+ type: "exact";
804
+ term: string;
805
+ }, {
806
+ type: "exact";
807
+ term: string;
808
+ }>>>;
809
+ flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
810
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
811
+ readonly PENDING_CERTIFICATION: "pending-certification";
812
+ readonly INCOMPLETE: "incomplete";
813
+ readonly REJECTED: "rejected";
814
+ readonly CORRECTION_REQUESTED: "correction-requested";
815
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
816
+ }>]>, "many">>;
817
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
818
+ readonly PENDING_CERTIFICATION: "pending-certification";
819
+ readonly INCOMPLETE: "incomplete";
820
+ readonly REJECTED: "rejected";
821
+ readonly CORRECTION_REQUESTED: "correction-requested";
822
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
823
+ }>]>, "many">>;
824
+ }, "strip", z.ZodTypeAny, {
825
+ anyOf?: string[] | undefined;
826
+ noneOf?: string[] | undefined;
827
+ }, {
828
+ anyOf?: string[] | undefined;
829
+ noneOf?: string[] | undefined;
830
+ }>>>;
831
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
832
+ }, "strip", z.ZodTypeAny, {
833
+ id?: string | undefined;
834
+ status?: {
835
+ type: "exact";
836
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
837
+ } | {
838
+ type: "anyOf";
839
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
840
+ } | undefined;
841
+ data?: any;
842
+ createdByUserType?: {
843
+ type: "exact";
844
+ term: "system" | "user";
845
+ } | undefined;
846
+ createdAt?: {
847
+ type: "range";
848
+ gte: string;
849
+ lte: string;
850
+ } | {
851
+ type: "exact";
852
+ term: string;
853
+ } | {
854
+ type: "timePeriod";
855
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
856
+ } | undefined;
857
+ createdBy?: {
858
+ type: "exact";
859
+ term: string;
860
+ } | undefined;
861
+ createdAtLocation?: {
862
+ type: "exact";
863
+ term: string;
864
+ } | {
865
+ type: "within";
866
+ location: string;
867
+ } | undefined;
868
+ assignedTo?: {
869
+ type: "exact";
870
+ term: string;
871
+ } | undefined;
872
+ trackingId?: {
873
+ type: "exact";
874
+ term: string;
875
+ } | undefined;
876
+ updatedAt?: {
877
+ type: "range";
878
+ gte: string;
879
+ lte: string;
880
+ } | {
881
+ type: "exact";
882
+ term: string;
883
+ } | {
884
+ type: "timePeriod";
885
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
886
+ } | undefined;
887
+ eventType?: string | undefined;
888
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
889
+ type: "range";
890
+ gte: string;
891
+ lte: string;
892
+ } | {
893
+ type: "exact";
894
+ term: string;
895
+ } | {
896
+ type: "timePeriod";
897
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
898
+ } | undefined;
899
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
900
+ type: "exact";
901
+ term: string;
902
+ } | {
903
+ type: "within";
904
+ location: string;
905
+ } | undefined;
906
+ updatedAtLocation?: {
907
+ type: "exact";
908
+ term: string;
909
+ } | {
910
+ type: "within";
911
+ location: string;
912
+ } | undefined;
913
+ updatedBy?: {
914
+ type: "exact";
915
+ term: string;
916
+ } | undefined;
917
+ flags?: {
918
+ anyOf?: string[] | undefined;
919
+ noneOf?: string[] | undefined;
920
+ } | undefined;
921
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
922
+ type: "exact";
923
+ term: string;
924
+ } | {
925
+ type: "within";
926
+ location: string;
927
+ } | undefined;
928
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
929
+ type: "exact";
930
+ term: string;
931
+ } | undefined;
932
+ }, {
933
+ id?: string | undefined;
934
+ status?: {
935
+ type: "exact";
936
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
937
+ } | {
938
+ type: "anyOf";
939
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
940
+ } | undefined;
941
+ data?: any;
942
+ createdByUserType?: {
943
+ type: "exact";
944
+ term: "system" | "user";
945
+ } | undefined;
946
+ createdAt?: {
947
+ type: "range";
948
+ gte: string;
949
+ lte: string;
950
+ } | {
951
+ type: "exact";
952
+ term: string;
953
+ } | {
954
+ type: "timePeriod";
955
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
956
+ } | undefined;
957
+ createdBy?: {
958
+ type: "exact";
959
+ term: string;
960
+ } | undefined;
961
+ createdAtLocation?: {
962
+ type: "exact";
963
+ term: string;
964
+ } | {
965
+ type: "within";
966
+ location: string;
967
+ } | undefined;
968
+ assignedTo?: {
969
+ type: "exact";
970
+ term: string;
971
+ } | undefined;
972
+ trackingId?: {
973
+ type: "exact";
974
+ term: string;
975
+ } | undefined;
976
+ updatedAt?: {
977
+ type: "range";
978
+ gte: string;
979
+ lte: string;
980
+ } | {
981
+ type: "exact";
982
+ term: string;
983
+ } | {
984
+ type: "timePeriod";
985
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
986
+ } | undefined;
987
+ eventType?: string | undefined;
988
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
989
+ type: "range";
990
+ gte: string;
991
+ lte: string;
992
+ } | {
993
+ type: "exact";
994
+ term: string;
995
+ } | {
996
+ type: "timePeriod";
997
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
998
+ } | undefined;
999
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1000
+ type: "exact";
1001
+ term: string;
1002
+ } | {
1003
+ type: "within";
1004
+ location: string;
1005
+ } | undefined;
1006
+ updatedAtLocation?: {
1007
+ type: "exact";
1008
+ term: string;
1009
+ } | {
1010
+ type: "within";
1011
+ location: string;
1012
+ } | undefined;
1013
+ updatedBy?: {
1014
+ type: "exact";
1015
+ term: string;
1016
+ } | undefined;
1017
+ flags?: {
1018
+ anyOf?: string[] | undefined;
1019
+ noneOf?: string[] | undefined;
1020
+ } | undefined;
1021
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1022
+ type: "exact";
1023
+ term: string;
1024
+ } | {
1025
+ type: "within";
1026
+ location: string;
1027
+ } | undefined;
1028
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1029
+ type: "exact";
1030
+ term: string;
1031
+ } | undefined;
1032
+ }>, {
1033
+ id?: string | undefined;
1034
+ status?: {
1035
+ type: "exact";
1036
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1037
+ } | {
1038
+ type: "anyOf";
1039
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1040
+ } | undefined;
1041
+ data?: any;
1042
+ createdByUserType?: {
1043
+ type: "exact";
1044
+ term: "system" | "user";
1045
+ } | undefined;
1046
+ createdAt?: {
1047
+ type: "range";
1048
+ gte: string;
1049
+ lte: string;
1050
+ } | {
1051
+ type: "exact";
1052
+ term: string;
1053
+ } | {
1054
+ type: "timePeriod";
1055
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1056
+ } | undefined;
1057
+ createdBy?: {
1058
+ type: "exact";
1059
+ term: string;
1060
+ } | undefined;
1061
+ createdAtLocation?: {
1062
+ type: "exact";
1063
+ term: string;
1064
+ } | {
1065
+ type: "within";
1066
+ location: string;
1067
+ } | undefined;
1068
+ assignedTo?: {
1069
+ type: "exact";
1070
+ term: string;
1071
+ } | undefined;
1072
+ trackingId?: {
1073
+ type: "exact";
1074
+ term: string;
1075
+ } | undefined;
1076
+ updatedAt?: {
1077
+ type: "range";
1078
+ gte: string;
1079
+ lte: string;
1080
+ } | {
1081
+ type: "exact";
1082
+ term: string;
1083
+ } | {
1084
+ type: "timePeriod";
1085
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1086
+ } | undefined;
1087
+ eventType?: string | undefined;
1088
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1089
+ type: "range";
1090
+ gte: string;
1091
+ lte: string;
1092
+ } | {
1093
+ type: "exact";
1094
+ term: string;
1095
+ } | {
1096
+ type: "timePeriod";
1097
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1098
+ } | undefined;
1099
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1100
+ type: "exact";
1101
+ term: string;
1102
+ } | {
1103
+ type: "within";
1104
+ location: string;
1105
+ } | undefined;
1106
+ updatedAtLocation?: {
1107
+ type: "exact";
1108
+ term: string;
1109
+ } | {
1110
+ type: "within";
1111
+ location: string;
1112
+ } | undefined;
1113
+ updatedBy?: {
1114
+ type: "exact";
1115
+ term: string;
1116
+ } | undefined;
1117
+ flags?: {
1118
+ anyOf?: string[] | undefined;
1119
+ noneOf?: string[] | undefined;
1120
+ } | undefined;
1121
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1122
+ type: "exact";
1123
+ term: string;
1124
+ } | {
1125
+ type: "within";
1126
+ location: string;
1127
+ } | undefined;
1128
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1129
+ type: "exact";
1130
+ term: string;
1131
+ } | undefined;
1132
+ }, {
1133
+ id?: string | undefined;
1134
+ status?: {
1135
+ type: "exact";
1136
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1137
+ } | {
1138
+ type: "anyOf";
1139
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1140
+ } | undefined;
1141
+ data?: any;
1142
+ createdByUserType?: {
1143
+ type: "exact";
1144
+ term: "system" | "user";
1145
+ } | undefined;
1146
+ createdAt?: {
1147
+ type: "range";
1148
+ gte: string;
1149
+ lte: string;
1150
+ } | {
1151
+ type: "exact";
1152
+ term: string;
1153
+ } | {
1154
+ type: "timePeriod";
1155
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1156
+ } | undefined;
1157
+ createdBy?: {
1158
+ type: "exact";
1159
+ term: string;
1160
+ } | undefined;
1161
+ createdAtLocation?: {
1162
+ type: "exact";
1163
+ term: string;
1164
+ } | {
1165
+ type: "within";
1166
+ location: string;
1167
+ } | undefined;
1168
+ assignedTo?: {
1169
+ type: "exact";
1170
+ term: string;
1171
+ } | undefined;
1172
+ trackingId?: {
1173
+ type: "exact";
1174
+ term: string;
1175
+ } | undefined;
1176
+ updatedAt?: {
1177
+ type: "range";
1178
+ gte: string;
1179
+ lte: string;
1180
+ } | {
1181
+ type: "exact";
1182
+ term: string;
1183
+ } | {
1184
+ type: "timePeriod";
1185
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1186
+ } | undefined;
1187
+ eventType?: string | undefined;
1188
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1189
+ type: "range";
1190
+ gte: string;
1191
+ lte: string;
1192
+ } | {
1193
+ type: "exact";
1194
+ term: string;
1195
+ } | {
1196
+ type: "timePeriod";
1197
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1198
+ } | undefined;
1199
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1200
+ type: "exact";
1201
+ term: string;
1202
+ } | {
1203
+ type: "within";
1204
+ location: string;
1205
+ } | undefined;
1206
+ updatedAtLocation?: {
1207
+ type: "exact";
1208
+ term: string;
1209
+ } | {
1210
+ type: "within";
1211
+ location: string;
1212
+ } | undefined;
1213
+ updatedBy?: {
1214
+ type: "exact";
1215
+ term: string;
1216
+ } | undefined;
1217
+ flags?: {
1218
+ anyOf?: string[] | undefined;
1219
+ noneOf?: string[] | undefined;
1220
+ } | undefined;
1221
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1222
+ type: "exact";
1223
+ term: string;
1224
+ } | {
1225
+ type: "within";
1226
+ location: string;
1227
+ } | undefined;
1228
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1229
+ type: "exact";
1230
+ term: string;
1231
+ } | undefined;
1232
+ }>;
1233
+ export declare const QueryType: z.ZodObject<{
1234
+ type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
1235
+ clauses: z.ZodArray<z.ZodEffects<z.ZodObject<{
1236
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1237
+ eventType: z.ZodOptional<z.ZodString>;
1238
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1239
+ type: z.ZodLiteral<"anyOf">;
1240
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
1241
+ }, "strip", z.ZodTypeAny, {
1242
+ type: "anyOf";
1243
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1244
+ }, {
1245
+ type: "anyOf";
1246
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1247
+ }>, z.ZodObject<{
1248
+ type: z.ZodLiteral<"exact">;
1249
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
1250
+ }, "strip", z.ZodTypeAny, {
1251
+ type: "exact";
1252
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1253
+ }, {
1254
+ type: "exact";
1255
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1256
+ }>]>>>;
1257
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1258
+ type: z.ZodLiteral<"exact">;
1259
+ term: z.ZodString;
1260
+ }, {
1261
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1262
+ }>, "strip", z.ZodTypeAny, {
1263
+ type: "exact";
1264
+ term: string;
1265
+ }, {
1266
+ type: "exact";
1267
+ term: string;
1268
+ }>, z.ZodObject<{
1269
+ type: z.ZodLiteral<"range">;
1270
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1271
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ type: "range";
1274
+ gte: string;
1275
+ lte: string;
1276
+ }, {
1277
+ type: "range";
1278
+ gte: string;
1279
+ lte: string;
1280
+ }>, z.ZodObject<{
1281
+ type: z.ZodLiteral<"timePeriod">;
1282
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1283
+ }, "strip", z.ZodTypeAny, {
1284
+ type: "timePeriod";
1285
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1286
+ }, {
1287
+ type: "timePeriod";
1288
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1289
+ }>]>>>;
1290
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1291
+ type: z.ZodLiteral<"exact">;
1292
+ term: z.ZodString;
1293
+ }, {
1294
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1295
+ }>, "strip", z.ZodTypeAny, {
1296
+ type: "exact";
1297
+ term: string;
1298
+ }, {
1299
+ type: "exact";
1300
+ term: string;
1301
+ }>, z.ZodObject<{
1302
+ type: z.ZodLiteral<"range">;
1303
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1304
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1305
+ }, "strip", z.ZodTypeAny, {
1306
+ type: "range";
1307
+ gte: string;
1308
+ lte: string;
1309
+ }, {
1310
+ type: "range";
1311
+ gte: string;
1312
+ lte: string;
1313
+ }>, z.ZodObject<{
1314
+ type: z.ZodLiteral<"timePeriod">;
1315
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1316
+ }, "strip", z.ZodTypeAny, {
1317
+ type: "timePeriod";
1318
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1319
+ }, {
1320
+ type: "timePeriod";
1321
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1322
+ }>]>>>;
1323
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1324
+ type: z.ZodLiteral<"exact">;
1325
+ term: z.ZodString;
1326
+ }, {
1327
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1328
+ }>, "strip", z.ZodTypeAny, {
1329
+ type: "exact";
1330
+ term: string;
1331
+ }, {
1332
+ type: "exact";
1333
+ term: string;
1334
+ }>, z.ZodObject<{
1335
+ type: z.ZodLiteral<"range">;
1336
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1337
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1338
+ }, "strip", z.ZodTypeAny, {
1339
+ type: "range";
1340
+ gte: string;
1341
+ lte: string;
1342
+ }, {
1343
+ type: "range";
1344
+ gte: string;
1345
+ lte: string;
1346
+ }>, z.ZodObject<{
1347
+ type: z.ZodLiteral<"timePeriod">;
1348
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ type: "timePeriod";
1351
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1352
+ }, {
1353
+ type: "timePeriod";
1354
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1355
+ }>]>>>;
1356
+ 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1357
+ type: z.ZodLiteral<"within">;
1358
+ location: z.ZodString;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ type: "within";
1361
+ location: string;
1362
+ }, {
1363
+ type: "within";
1364
+ location: string;
1365
+ }>, z.ZodObject<{
1366
+ type: z.ZodLiteral<"exact">;
1367
+ term: z.ZodString;
1368
+ }, "strip", z.ZodTypeAny, {
1369
+ type: "exact";
1370
+ term: string;
1371
+ }, {
1372
+ type: "exact";
1373
+ term: string;
1374
+ }>]>>>;
1375
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1376
+ type: z.ZodLiteral<"within">;
1377
+ location: z.ZodString;
1378
+ }, "strip", z.ZodTypeAny, {
1379
+ type: "within";
1380
+ location: string;
1381
+ }, {
1382
+ type: "within";
1383
+ location: string;
1384
+ }>, z.ZodObject<{
1385
+ type: z.ZodLiteral<"exact">;
1386
+ term: z.ZodString;
1387
+ }, "strip", z.ZodTypeAny, {
1388
+ type: "exact";
1389
+ term: string;
1390
+ }, {
1391
+ type: "exact";
1392
+ term: string;
1393
+ }>]>>>;
1394
+ 'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1395
+ type: z.ZodLiteral<"exact">;
1396
+ term: z.ZodString;
1397
+ }, "strip", z.ZodTypeAny, {
1398
+ type: "exact";
1399
+ term: string;
1400
+ }, {
1401
+ type: "exact";
1402
+ term: string;
1403
+ }>>>;
1404
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1405
+ type: z.ZodLiteral<"within">;
1406
+ location: z.ZodString;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ type: "within";
1409
+ location: string;
1410
+ }, {
1411
+ type: "within";
1412
+ location: string;
1413
+ }>, z.ZodObject<{
1414
+ type: z.ZodLiteral<"exact">;
1415
+ term: z.ZodString;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ type: "exact";
1418
+ term: string;
1419
+ }, {
1420
+ type: "exact";
1421
+ term: string;
1422
+ }>]>>>;
1423
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1424
+ type: z.ZodLiteral<"within">;
1425
+ location: z.ZodString;
1426
+ }, "strip", z.ZodTypeAny, {
1427
+ type: "within";
1428
+ location: string;
1429
+ }, {
1430
+ type: "within";
1431
+ location: string;
1432
+ }>, z.ZodObject<{
1433
+ type: z.ZodLiteral<"exact">;
1434
+ term: z.ZodString;
1435
+ }, "strip", z.ZodTypeAny, {
1436
+ type: "exact";
1437
+ term: string;
1438
+ }, {
1439
+ type: "exact";
1440
+ term: string;
1441
+ }>]>>>;
1442
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1443
+ type: z.ZodLiteral<"exact">;
1444
+ term: z.ZodString;
1445
+ }, "strip", z.ZodTypeAny, {
1446
+ type: "exact";
1447
+ term: string;
1448
+ }, {
1449
+ type: "exact";
1450
+ term: string;
1451
+ }>>>;
1452
+ createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1453
+ type: z.ZodLiteral<"exact">;
1454
+ term: z.ZodEnum<["user", "system"]>;
1455
+ }, "strip", z.ZodTypeAny, {
1456
+ type: "exact";
1457
+ term: "system" | "user";
1458
+ }, {
1459
+ type: "exact";
1460
+ term: "system" | "user";
1461
+ }>>>;
1462
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1463
+ type: z.ZodLiteral<"exact">;
1464
+ term: z.ZodString;
1465
+ }, "strip", z.ZodTypeAny, {
1466
+ type: "exact";
1467
+ term: string;
1468
+ }, {
1469
+ type: "exact";
1470
+ term: string;
1471
+ }>>>;
1472
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1473
+ type: z.ZodLiteral<"exact">;
1474
+ term: z.ZodString;
1475
+ }, "strip", z.ZodTypeAny, {
1476
+ type: "exact";
1477
+ term: string;
1478
+ }, {
1479
+ type: "exact";
1480
+ term: string;
1481
+ }>>>;
1482
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1483
+ type: z.ZodLiteral<"exact">;
1484
+ term: z.ZodString;
1485
+ }, "strip", z.ZodTypeAny, {
1486
+ type: "exact";
1487
+ term: string;
1488
+ }, {
1489
+ type: "exact";
1490
+ term: string;
1491
+ }>>>;
1492
+ flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1493
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1494
+ readonly PENDING_CERTIFICATION: "pending-certification";
1495
+ readonly INCOMPLETE: "incomplete";
1496
+ readonly REJECTED: "rejected";
1497
+ readonly CORRECTION_REQUESTED: "correction-requested";
1498
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1499
+ }>]>, "many">>;
1500
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1501
+ readonly PENDING_CERTIFICATION: "pending-certification";
1502
+ readonly INCOMPLETE: "incomplete";
1503
+ readonly REJECTED: "rejected";
1504
+ readonly CORRECTION_REQUESTED: "correction-requested";
1505
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
1506
+ }>]>, "many">>;
1507
+ }, "strip", z.ZodTypeAny, {
1508
+ anyOf?: string[] | undefined;
1509
+ noneOf?: string[] | undefined;
1510
+ }, {
1511
+ anyOf?: string[] | undefined;
1512
+ noneOf?: string[] | undefined;
1513
+ }>>>;
1514
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1515
+ }, "strip", z.ZodTypeAny, {
1516
+ id?: string | undefined;
1517
+ status?: {
1518
+ type: "exact";
1519
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1520
+ } | {
1521
+ type: "anyOf";
1522
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1523
+ } | undefined;
1524
+ data?: any;
1525
+ createdByUserType?: {
1526
+ type: "exact";
1527
+ term: "system" | "user";
1528
+ } | undefined;
1529
+ createdAt?: {
1530
+ type: "range";
1531
+ gte: string;
1532
+ lte: string;
1533
+ } | {
1534
+ type: "exact";
1535
+ term: string;
1536
+ } | {
1537
+ type: "timePeriod";
1538
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1539
+ } | undefined;
1540
+ createdBy?: {
1541
+ type: "exact";
1542
+ term: string;
1543
+ } | undefined;
1544
+ createdAtLocation?: {
1545
+ type: "exact";
1546
+ term: string;
1547
+ } | {
1548
+ type: "within";
1549
+ location: string;
1550
+ } | undefined;
1551
+ assignedTo?: {
1552
+ type: "exact";
1553
+ term: string;
1554
+ } | undefined;
1555
+ trackingId?: {
1556
+ type: "exact";
1557
+ term: string;
1558
+ } | undefined;
1559
+ updatedAt?: {
1560
+ type: "range";
1561
+ gte: string;
1562
+ lte: string;
1563
+ } | {
1564
+ type: "exact";
1565
+ term: string;
1566
+ } | {
1567
+ type: "timePeriod";
1568
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1569
+ } | undefined;
1570
+ eventType?: string | undefined;
1571
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1572
+ type: "range";
1573
+ gte: string;
1574
+ lte: string;
1575
+ } | {
1576
+ type: "exact";
1577
+ term: string;
1578
+ } | {
1579
+ type: "timePeriod";
1580
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1581
+ } | undefined;
1582
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1583
+ type: "exact";
1584
+ term: string;
1585
+ } | {
1586
+ type: "within";
1587
+ location: string;
1588
+ } | undefined;
1589
+ updatedAtLocation?: {
1590
+ type: "exact";
1591
+ term: string;
1592
+ } | {
1593
+ type: "within";
1594
+ location: string;
1595
+ } | undefined;
1596
+ updatedBy?: {
1597
+ type: "exact";
1598
+ term: string;
1599
+ } | undefined;
1600
+ flags?: {
1601
+ anyOf?: string[] | undefined;
1602
+ noneOf?: string[] | undefined;
1603
+ } | undefined;
1604
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1605
+ type: "exact";
1606
+ term: string;
1607
+ } | {
1608
+ type: "within";
1609
+ location: string;
1610
+ } | undefined;
1611
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1612
+ type: "exact";
1613
+ term: string;
1614
+ } | undefined;
1615
+ }, {
1616
+ id?: string | undefined;
1617
+ status?: {
1618
+ type: "exact";
1619
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1620
+ } | {
1621
+ type: "anyOf";
1622
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1623
+ } | undefined;
1624
+ data?: any;
1625
+ createdByUserType?: {
1626
+ type: "exact";
1627
+ term: "system" | "user";
1628
+ } | undefined;
1629
+ createdAt?: {
1630
+ type: "range";
1631
+ gte: string;
1632
+ lte: string;
1633
+ } | {
1634
+ type: "exact";
1635
+ term: string;
1636
+ } | {
1637
+ type: "timePeriod";
1638
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1639
+ } | undefined;
1640
+ createdBy?: {
1641
+ type: "exact";
1642
+ term: string;
1643
+ } | undefined;
1644
+ createdAtLocation?: {
1645
+ type: "exact";
1646
+ term: string;
1647
+ } | {
1648
+ type: "within";
1649
+ location: string;
1650
+ } | undefined;
1651
+ assignedTo?: {
1652
+ type: "exact";
1653
+ term: string;
1654
+ } | undefined;
1655
+ trackingId?: {
1656
+ type: "exact";
1657
+ term: string;
1658
+ } | undefined;
1659
+ updatedAt?: {
1660
+ type: "range";
1661
+ gte: string;
1662
+ lte: string;
1663
+ } | {
1664
+ type: "exact";
1665
+ term: string;
1666
+ } | {
1667
+ type: "timePeriod";
1668
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1669
+ } | undefined;
1670
+ eventType?: string | undefined;
1671
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1672
+ type: "range";
1673
+ gte: string;
1674
+ lte: string;
1675
+ } | {
1676
+ type: "exact";
1677
+ term: string;
1678
+ } | {
1679
+ type: "timePeriod";
1680
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1681
+ } | undefined;
1682
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1683
+ type: "exact";
1684
+ term: string;
1685
+ } | {
1686
+ type: "within";
1687
+ location: string;
1688
+ } | undefined;
1689
+ updatedAtLocation?: {
1690
+ type: "exact";
1691
+ term: string;
1692
+ } | {
1693
+ type: "within";
1694
+ location: string;
1695
+ } | undefined;
1696
+ updatedBy?: {
1697
+ type: "exact";
1698
+ term: string;
1699
+ } | undefined;
1700
+ flags?: {
1701
+ anyOf?: string[] | undefined;
1702
+ noneOf?: string[] | undefined;
1703
+ } | undefined;
1704
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1705
+ type: "exact";
1706
+ term: string;
1707
+ } | {
1708
+ type: "within";
1709
+ location: string;
1710
+ } | undefined;
1711
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1712
+ type: "exact";
1713
+ term: string;
1714
+ } | undefined;
1715
+ }>, {
1716
+ id?: string | undefined;
1717
+ status?: {
1718
+ type: "exact";
1719
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1720
+ } | {
1721
+ type: "anyOf";
1722
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1723
+ } | undefined;
1724
+ data?: any;
1725
+ createdByUserType?: {
1726
+ type: "exact";
1727
+ term: "system" | "user";
1728
+ } | undefined;
1729
+ createdAt?: {
1730
+ type: "range";
1731
+ gte: string;
1732
+ lte: string;
1733
+ } | {
1734
+ type: "exact";
1735
+ term: string;
1736
+ } | {
1737
+ type: "timePeriod";
1738
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1739
+ } | undefined;
1740
+ createdBy?: {
1741
+ type: "exact";
1742
+ term: string;
1743
+ } | undefined;
1744
+ createdAtLocation?: {
1745
+ type: "exact";
1746
+ term: string;
1747
+ } | {
1748
+ type: "within";
1749
+ location: string;
1750
+ } | undefined;
1751
+ assignedTo?: {
1752
+ type: "exact";
1753
+ term: string;
1754
+ } | undefined;
1755
+ trackingId?: {
1756
+ type: "exact";
1757
+ term: string;
1758
+ } | undefined;
1759
+ updatedAt?: {
1760
+ type: "range";
1761
+ gte: string;
1762
+ lte: string;
1763
+ } | {
1764
+ type: "exact";
1765
+ term: string;
1766
+ } | {
1767
+ type: "timePeriod";
1768
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1769
+ } | undefined;
1770
+ eventType?: string | undefined;
1771
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1772
+ type: "range";
1773
+ gte: string;
1774
+ lte: string;
1775
+ } | {
1776
+ type: "exact";
1777
+ term: string;
1778
+ } | {
1779
+ type: "timePeriod";
1780
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1781
+ } | undefined;
1782
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1783
+ type: "exact";
1784
+ term: string;
1785
+ } | {
1786
+ type: "within";
1787
+ location: string;
1788
+ } | undefined;
1789
+ updatedAtLocation?: {
1790
+ type: "exact";
1791
+ term: string;
1792
+ } | {
1793
+ type: "within";
1794
+ location: string;
1795
+ } | undefined;
1796
+ updatedBy?: {
1797
+ type: "exact";
1798
+ term: string;
1799
+ } | undefined;
1800
+ flags?: {
1801
+ anyOf?: string[] | undefined;
1802
+ noneOf?: string[] | undefined;
1803
+ } | undefined;
1804
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1805
+ type: "exact";
1806
+ term: string;
1807
+ } | {
1808
+ type: "within";
1809
+ location: string;
1810
+ } | undefined;
1811
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1812
+ type: "exact";
1813
+ term: string;
1814
+ } | undefined;
1815
+ }, {
1816
+ id?: string | undefined;
1817
+ status?: {
1818
+ type: "exact";
1819
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1820
+ } | {
1821
+ type: "anyOf";
1822
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1823
+ } | undefined;
1824
+ data?: any;
1825
+ createdByUserType?: {
1826
+ type: "exact";
1827
+ term: "system" | "user";
1828
+ } | undefined;
1829
+ createdAt?: {
1830
+ type: "range";
1831
+ gte: string;
1832
+ lte: string;
1833
+ } | {
1834
+ type: "exact";
1835
+ term: string;
1836
+ } | {
1837
+ type: "timePeriod";
1838
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1839
+ } | undefined;
1840
+ createdBy?: {
1841
+ type: "exact";
1842
+ term: string;
1843
+ } | undefined;
1844
+ createdAtLocation?: {
1845
+ type: "exact";
1846
+ term: string;
1847
+ } | {
1848
+ type: "within";
1849
+ location: string;
1850
+ } | undefined;
1851
+ assignedTo?: {
1852
+ type: "exact";
1853
+ term: string;
1854
+ } | undefined;
1855
+ trackingId?: {
1856
+ type: "exact";
1857
+ term: string;
1858
+ } | undefined;
1859
+ updatedAt?: {
1860
+ type: "range";
1861
+ gte: string;
1862
+ lte: string;
1863
+ } | {
1864
+ type: "exact";
1865
+ term: string;
1866
+ } | {
1867
+ type: "timePeriod";
1868
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1869
+ } | undefined;
1870
+ eventType?: string | undefined;
1871
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1872
+ type: "range";
1873
+ gte: string;
1874
+ lte: string;
1875
+ } | {
1876
+ type: "exact";
1877
+ term: string;
1878
+ } | {
1879
+ type: "timePeriod";
1880
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1881
+ } | undefined;
1882
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1883
+ type: "exact";
1884
+ term: string;
1885
+ } | {
1886
+ type: "within";
1887
+ location: string;
1888
+ } | undefined;
1889
+ updatedAtLocation?: {
1890
+ type: "exact";
1891
+ term: string;
1892
+ } | {
1893
+ type: "within";
1894
+ location: string;
1895
+ } | undefined;
1896
+ updatedBy?: {
1897
+ type: "exact";
1898
+ term: string;
1899
+ } | undefined;
1900
+ flags?: {
1901
+ anyOf?: string[] | undefined;
1902
+ noneOf?: string[] | undefined;
1903
+ } | undefined;
1904
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
1905
+ type: "exact";
1906
+ term: string;
1907
+ } | {
1908
+ type: "within";
1909
+ location: string;
1910
+ } | undefined;
1911
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1912
+ type: "exact";
1913
+ term: string;
1914
+ } | undefined;
1915
+ }>, "atleastone">;
1916
+ }, "strip", z.ZodTypeAny, {
1917
+ type: "and" | "or";
1918
+ clauses: [{
1919
+ id?: string | undefined;
1920
+ status?: {
1921
+ type: "exact";
1922
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1923
+ } | {
1924
+ type: "anyOf";
1925
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1926
+ } | undefined;
1927
+ data?: any;
1928
+ createdByUserType?: {
1929
+ type: "exact";
1930
+ term: "system" | "user";
1931
+ } | undefined;
1932
+ createdAt?: {
1933
+ type: "range";
1934
+ gte: string;
1935
+ lte: string;
1936
+ } | {
1937
+ type: "exact";
1938
+ term: string;
1939
+ } | {
1940
+ type: "timePeriod";
1941
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1942
+ } | undefined;
1943
+ createdBy?: {
1944
+ type: "exact";
1945
+ term: string;
1946
+ } | undefined;
1947
+ createdAtLocation?: {
1948
+ type: "exact";
1949
+ term: string;
1950
+ } | {
1951
+ type: "within";
1952
+ location: string;
1953
+ } | undefined;
1954
+ assignedTo?: {
1955
+ type: "exact";
1956
+ term: string;
1957
+ } | undefined;
1958
+ trackingId?: {
1959
+ type: "exact";
1960
+ term: string;
1961
+ } | undefined;
1962
+ updatedAt?: {
1963
+ type: "range";
1964
+ gte: string;
1965
+ lte: string;
1966
+ } | {
1967
+ type: "exact";
1968
+ term: string;
1969
+ } | {
1970
+ type: "timePeriod";
1971
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1972
+ } | undefined;
1973
+ eventType?: string | undefined;
1974
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1975
+ type: "range";
1976
+ gte: string;
1977
+ lte: string;
1978
+ } | {
1979
+ type: "exact";
1980
+ term: string;
1981
+ } | {
1982
+ type: "timePeriod";
1983
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1984
+ } | undefined;
1985
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1986
+ type: "exact";
1987
+ term: string;
1988
+ } | {
1989
+ type: "within";
1990
+ location: string;
1991
+ } | undefined;
1992
+ updatedAtLocation?: {
1993
+ type: "exact";
1994
+ term: string;
1995
+ } | {
1996
+ type: "within";
1997
+ location: string;
1998
+ } | undefined;
1999
+ updatedBy?: {
2000
+ type: "exact";
2001
+ term: string;
2002
+ } | undefined;
2003
+ flags?: {
2004
+ anyOf?: string[] | undefined;
2005
+ noneOf?: string[] | undefined;
2006
+ } | undefined;
2007
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2008
+ type: "exact";
2009
+ term: string;
2010
+ } | {
2011
+ type: "within";
2012
+ location: string;
2013
+ } | undefined;
2014
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2015
+ type: "exact";
2016
+ term: string;
2017
+ } | undefined;
2018
+ }, ...{
2019
+ id?: string | undefined;
2020
+ status?: {
2021
+ type: "exact";
2022
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2023
+ } | {
2024
+ type: "anyOf";
2025
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2026
+ } | undefined;
2027
+ data?: any;
2028
+ createdByUserType?: {
2029
+ type: "exact";
2030
+ term: "system" | "user";
2031
+ } | undefined;
2032
+ createdAt?: {
2033
+ type: "range";
2034
+ gte: string;
2035
+ lte: string;
2036
+ } | {
2037
+ type: "exact";
2038
+ term: string;
2039
+ } | {
2040
+ type: "timePeriod";
2041
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2042
+ } | undefined;
2043
+ createdBy?: {
2044
+ type: "exact";
2045
+ term: string;
2046
+ } | undefined;
2047
+ createdAtLocation?: {
2048
+ type: "exact";
2049
+ term: string;
2050
+ } | {
2051
+ type: "within";
2052
+ location: string;
2053
+ } | undefined;
2054
+ assignedTo?: {
2055
+ type: "exact";
2056
+ term: string;
2057
+ } | undefined;
2058
+ trackingId?: {
2059
+ type: "exact";
2060
+ term: string;
2061
+ } | undefined;
2062
+ updatedAt?: {
2063
+ type: "range";
2064
+ gte: string;
2065
+ lte: string;
2066
+ } | {
2067
+ type: "exact";
2068
+ term: string;
2069
+ } | {
2070
+ type: "timePeriod";
2071
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2072
+ } | undefined;
2073
+ eventType?: string | undefined;
2074
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2075
+ type: "range";
2076
+ gte: string;
2077
+ lte: string;
2078
+ } | {
2079
+ type: "exact";
2080
+ term: string;
2081
+ } | {
2082
+ type: "timePeriod";
2083
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2084
+ } | undefined;
2085
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2086
+ type: "exact";
2087
+ term: string;
2088
+ } | {
2089
+ type: "within";
2090
+ location: string;
2091
+ } | undefined;
2092
+ updatedAtLocation?: {
2093
+ type: "exact";
2094
+ term: string;
2095
+ } | {
2096
+ type: "within";
2097
+ location: string;
2098
+ } | undefined;
2099
+ updatedBy?: {
2100
+ type: "exact";
2101
+ term: string;
2102
+ } | undefined;
2103
+ flags?: {
2104
+ anyOf?: string[] | undefined;
2105
+ noneOf?: string[] | undefined;
2106
+ } | undefined;
2107
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2108
+ type: "exact";
2109
+ term: string;
2110
+ } | {
2111
+ type: "within";
2112
+ location: string;
2113
+ } | undefined;
2114
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2115
+ type: "exact";
2116
+ term: string;
2117
+ } | undefined;
2118
+ }[]];
2119
+ }, {
2120
+ type: "and" | "or";
2121
+ clauses: [{
2122
+ id?: string | undefined;
2123
+ status?: {
2124
+ type: "exact";
2125
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2126
+ } | {
2127
+ type: "anyOf";
2128
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2129
+ } | undefined;
2130
+ data?: any;
2131
+ createdByUserType?: {
2132
+ type: "exact";
2133
+ term: "system" | "user";
2134
+ } | undefined;
2135
+ createdAt?: {
2136
+ type: "range";
2137
+ gte: string;
2138
+ lte: string;
2139
+ } | {
2140
+ type: "exact";
2141
+ term: string;
2142
+ } | {
2143
+ type: "timePeriod";
2144
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2145
+ } | undefined;
2146
+ createdBy?: {
2147
+ type: "exact";
2148
+ term: string;
2149
+ } | undefined;
2150
+ createdAtLocation?: {
2151
+ type: "exact";
2152
+ term: string;
2153
+ } | {
2154
+ type: "within";
2155
+ location: string;
2156
+ } | undefined;
2157
+ assignedTo?: {
2158
+ type: "exact";
2159
+ term: string;
2160
+ } | undefined;
2161
+ trackingId?: {
2162
+ type: "exact";
2163
+ term: string;
2164
+ } | undefined;
2165
+ updatedAt?: {
2166
+ type: "range";
2167
+ gte: string;
2168
+ lte: string;
2169
+ } | {
2170
+ type: "exact";
2171
+ term: string;
2172
+ } | {
2173
+ type: "timePeriod";
2174
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2175
+ } | undefined;
2176
+ eventType?: string | undefined;
2177
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2178
+ type: "range";
2179
+ gte: string;
2180
+ lte: string;
2181
+ } | {
2182
+ type: "exact";
2183
+ term: string;
2184
+ } | {
2185
+ type: "timePeriod";
2186
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2187
+ } | undefined;
2188
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2189
+ type: "exact";
2190
+ term: string;
2191
+ } | {
2192
+ type: "within";
2193
+ location: string;
2194
+ } | undefined;
2195
+ updatedAtLocation?: {
2196
+ type: "exact";
2197
+ term: string;
2198
+ } | {
2199
+ type: "within";
2200
+ location: string;
2201
+ } | undefined;
2202
+ updatedBy?: {
2203
+ type: "exact";
2204
+ term: string;
2205
+ } | undefined;
2206
+ flags?: {
2207
+ anyOf?: string[] | undefined;
2208
+ noneOf?: string[] | undefined;
2209
+ } | undefined;
2210
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2211
+ type: "exact";
2212
+ term: string;
2213
+ } | {
2214
+ type: "within";
2215
+ location: string;
2216
+ } | undefined;
2217
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2218
+ type: "exact";
2219
+ term: string;
2220
+ } | undefined;
2221
+ }, ...{
2222
+ id?: string | undefined;
2223
+ status?: {
2224
+ type: "exact";
2225
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2226
+ } | {
2227
+ type: "anyOf";
2228
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2229
+ } | undefined;
2230
+ data?: any;
2231
+ createdByUserType?: {
2232
+ type: "exact";
2233
+ term: "system" | "user";
2234
+ } | undefined;
2235
+ createdAt?: {
2236
+ type: "range";
2237
+ gte: string;
2238
+ lte: string;
2239
+ } | {
2240
+ type: "exact";
2241
+ term: string;
2242
+ } | {
2243
+ type: "timePeriod";
2244
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2245
+ } | undefined;
2246
+ createdBy?: {
2247
+ type: "exact";
2248
+ term: string;
2249
+ } | undefined;
2250
+ createdAtLocation?: {
2251
+ type: "exact";
2252
+ term: string;
2253
+ } | {
2254
+ type: "within";
2255
+ location: string;
2256
+ } | undefined;
2257
+ assignedTo?: {
2258
+ type: "exact";
2259
+ term: string;
2260
+ } | undefined;
2261
+ trackingId?: {
2262
+ type: "exact";
2263
+ term: string;
2264
+ } | undefined;
2265
+ updatedAt?: {
2266
+ type: "range";
2267
+ gte: string;
2268
+ lte: string;
2269
+ } | {
2270
+ type: "exact";
2271
+ term: string;
2272
+ } | {
2273
+ type: "timePeriod";
2274
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2275
+ } | undefined;
2276
+ eventType?: string | undefined;
2277
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2278
+ type: "range";
2279
+ gte: string;
2280
+ lte: string;
2281
+ } | {
2282
+ type: "exact";
2283
+ term: string;
2284
+ } | {
2285
+ type: "timePeriod";
2286
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2287
+ } | undefined;
2288
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2289
+ type: "exact";
2290
+ term: string;
2291
+ } | {
2292
+ type: "within";
2293
+ location: string;
2294
+ } | undefined;
2295
+ updatedAtLocation?: {
2296
+ type: "exact";
2297
+ term: string;
2298
+ } | {
2299
+ type: "within";
2300
+ location: string;
2301
+ } | undefined;
2302
+ updatedBy?: {
2303
+ type: "exact";
2304
+ term: string;
2305
+ } | undefined;
2306
+ flags?: {
2307
+ anyOf?: string[] | undefined;
2308
+ noneOf?: string[] | undefined;
2309
+ } | undefined;
2310
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2311
+ type: "exact";
2312
+ term: string;
2313
+ } | {
2314
+ type: "within";
2315
+ location: string;
2316
+ } | undefined;
2317
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2318
+ type: "exact";
2319
+ term: string;
2320
+ } | undefined;
2321
+ }[]];
2322
+ }>;
2323
+ export declare const SearchQuery: z.ZodObject<{
2324
+ query: z.ZodEffects<z.ZodObject<{
2325
+ type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
2326
+ clauses: z.ZodArray<z.ZodEffects<z.ZodObject<{
2327
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2328
+ eventType: z.ZodOptional<z.ZodString>;
2329
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2330
+ type: z.ZodLiteral<"anyOf">;
2331
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
2332
+ }, "strip", z.ZodTypeAny, {
2333
+ type: "anyOf";
2334
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2335
+ }, {
2336
+ type: "anyOf";
2337
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2338
+ }>, z.ZodObject<{
2339
+ type: z.ZodLiteral<"exact">;
2340
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
2341
+ }, "strip", z.ZodTypeAny, {
2342
+ type: "exact";
2343
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2344
+ }, {
2345
+ type: "exact";
2346
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2347
+ }>]>>>;
2348
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2349
+ type: z.ZodLiteral<"exact">;
2350
+ term: z.ZodString;
2351
+ }, {
2352
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
2353
+ }>, "strip", z.ZodTypeAny, {
2354
+ type: "exact";
2355
+ term: string;
2356
+ }, {
2357
+ type: "exact";
2358
+ term: string;
2359
+ }>, z.ZodObject<{
2360
+ type: z.ZodLiteral<"range">;
2361
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2362
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2363
+ }, "strip", z.ZodTypeAny, {
2364
+ type: "range";
2365
+ gte: string;
2366
+ lte: string;
2367
+ }, {
2368
+ type: "range";
2369
+ gte: string;
2370
+ lte: string;
2371
+ }>, z.ZodObject<{
2372
+ type: z.ZodLiteral<"timePeriod">;
2373
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
2374
+ }, "strip", z.ZodTypeAny, {
2375
+ type: "timePeriod";
2376
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2377
+ }, {
2378
+ type: "timePeriod";
2379
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2380
+ }>]>>>;
2381
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2382
+ type: z.ZodLiteral<"exact">;
2383
+ term: z.ZodString;
2384
+ }, {
2385
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
2386
+ }>, "strip", z.ZodTypeAny, {
2387
+ type: "exact";
2388
+ term: string;
2389
+ }, {
2390
+ type: "exact";
2391
+ term: string;
2392
+ }>, z.ZodObject<{
2393
+ type: z.ZodLiteral<"range">;
2394
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2395
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2396
+ }, "strip", z.ZodTypeAny, {
2397
+ type: "range";
2398
+ gte: string;
2399
+ lte: string;
2400
+ }, {
2401
+ type: "range";
2402
+ gte: string;
2403
+ lte: string;
2404
+ }>, z.ZodObject<{
2405
+ type: z.ZodLiteral<"timePeriod">;
2406
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
2407
+ }, "strip", z.ZodTypeAny, {
2408
+ type: "timePeriod";
2409
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2410
+ }, {
2411
+ type: "timePeriod";
2412
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2413
+ }>]>>>;
2414
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2415
+ type: z.ZodLiteral<"exact">;
2416
+ term: z.ZodString;
2417
+ }, {
2418
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
2419
+ }>, "strip", z.ZodTypeAny, {
2420
+ type: "exact";
2421
+ term: string;
2422
+ }, {
2423
+ type: "exact";
2424
+ term: string;
2425
+ }>, z.ZodObject<{
2426
+ type: z.ZodLiteral<"range">;
2427
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2428
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
2429
+ }, "strip", z.ZodTypeAny, {
2430
+ type: "range";
2431
+ gte: string;
2432
+ lte: string;
2433
+ }, {
2434
+ type: "range";
2435
+ gte: string;
2436
+ lte: string;
2437
+ }>, z.ZodObject<{
2438
+ type: z.ZodLiteral<"timePeriod">;
2439
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
2440
+ }, "strip", z.ZodTypeAny, {
2441
+ type: "timePeriod";
2442
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2443
+ }, {
2444
+ type: "timePeriod";
2445
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2446
+ }>]>>>;
2447
+ 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2448
+ type: z.ZodLiteral<"within">;
2449
+ location: z.ZodString;
2450
+ }, "strip", z.ZodTypeAny, {
2451
+ type: "within";
2452
+ location: string;
2453
+ }, {
2454
+ type: "within";
2455
+ location: string;
2456
+ }>, z.ZodObject<{
2457
+ type: z.ZodLiteral<"exact">;
2458
+ term: z.ZodString;
2459
+ }, "strip", z.ZodTypeAny, {
2460
+ type: "exact";
2461
+ term: string;
2462
+ }, {
2463
+ type: "exact";
2464
+ term: string;
2465
+ }>]>>>;
2466
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2467
+ type: z.ZodLiteral<"within">;
2468
+ location: z.ZodString;
2469
+ }, "strip", z.ZodTypeAny, {
2470
+ type: "within";
2471
+ location: string;
2472
+ }, {
2473
+ type: "within";
2474
+ location: string;
2475
+ }>, z.ZodObject<{
2476
+ type: z.ZodLiteral<"exact">;
2477
+ term: z.ZodString;
2478
+ }, "strip", z.ZodTypeAny, {
2479
+ type: "exact";
2480
+ term: string;
2481
+ }, {
2482
+ type: "exact";
2483
+ term: string;
2484
+ }>]>>>;
2485
+ 'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
2486
+ type: z.ZodLiteral<"exact">;
2487
+ term: z.ZodString;
2488
+ }, "strip", z.ZodTypeAny, {
2489
+ type: "exact";
2490
+ term: string;
2491
+ }, {
2492
+ type: "exact";
2493
+ term: string;
2494
+ }>>>;
2495
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2496
+ type: z.ZodLiteral<"within">;
2497
+ location: z.ZodString;
2498
+ }, "strip", z.ZodTypeAny, {
2499
+ type: "within";
2500
+ location: string;
2501
+ }, {
2502
+ type: "within";
2503
+ location: string;
2504
+ }>, z.ZodObject<{
2505
+ type: z.ZodLiteral<"exact">;
2506
+ term: z.ZodString;
2507
+ }, "strip", z.ZodTypeAny, {
2508
+ type: "exact";
2509
+ term: string;
2510
+ }, {
2511
+ type: "exact";
2512
+ term: string;
2513
+ }>]>>>;
2514
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2515
+ type: z.ZodLiteral<"within">;
2516
+ location: z.ZodString;
2517
+ }, "strip", z.ZodTypeAny, {
2518
+ type: "within";
2519
+ location: string;
2520
+ }, {
2521
+ type: "within";
2522
+ location: string;
2523
+ }>, z.ZodObject<{
2524
+ type: z.ZodLiteral<"exact">;
2525
+ term: z.ZodString;
2526
+ }, "strip", z.ZodTypeAny, {
2527
+ type: "exact";
2528
+ term: string;
2529
+ }, {
2530
+ type: "exact";
2531
+ term: string;
2532
+ }>]>>>;
2533
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2534
+ type: z.ZodLiteral<"exact">;
2535
+ term: z.ZodString;
2536
+ }, "strip", z.ZodTypeAny, {
2537
+ type: "exact";
2538
+ term: string;
2539
+ }, {
2540
+ type: "exact";
2541
+ term: string;
2542
+ }>>>;
2543
+ createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2544
+ type: z.ZodLiteral<"exact">;
2545
+ term: z.ZodEnum<["user", "system"]>;
2546
+ }, "strip", z.ZodTypeAny, {
2547
+ type: "exact";
2548
+ term: "system" | "user";
2549
+ }, {
2550
+ type: "exact";
2551
+ term: "system" | "user";
2552
+ }>>>;
2553
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2554
+ type: z.ZodLiteral<"exact">;
2555
+ term: z.ZodString;
2556
+ }, "strip", z.ZodTypeAny, {
2557
+ type: "exact";
2558
+ term: string;
2559
+ }, {
2560
+ type: "exact";
2561
+ term: string;
2562
+ }>>>;
2563
+ updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2564
+ type: z.ZodLiteral<"exact">;
2565
+ term: z.ZodString;
2566
+ }, "strip", z.ZodTypeAny, {
2567
+ type: "exact";
2568
+ term: string;
2569
+ }, {
2570
+ type: "exact";
2571
+ term: string;
2572
+ }>>>;
2573
+ trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2574
+ type: z.ZodLiteral<"exact">;
2575
+ term: z.ZodString;
2576
+ }, "strip", z.ZodTypeAny, {
2577
+ type: "exact";
2578
+ term: string;
2579
+ }, {
2580
+ type: "exact";
2581
+ term: string;
2582
+ }>>>;
2583
+ flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2584
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
2585
+ readonly PENDING_CERTIFICATION: "pending-certification";
2586
+ readonly INCOMPLETE: "incomplete";
2587
+ readonly REJECTED: "rejected";
2588
+ readonly CORRECTION_REQUESTED: "correction-requested";
2589
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
2590
+ }>]>, "many">>;
2591
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
2592
+ readonly PENDING_CERTIFICATION: "pending-certification";
2593
+ readonly INCOMPLETE: "incomplete";
2594
+ readonly REJECTED: "rejected";
2595
+ readonly CORRECTION_REQUESTED: "correction-requested";
2596
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
2597
+ }>]>, "many">>;
2598
+ }, "strip", z.ZodTypeAny, {
2599
+ anyOf?: string[] | undefined;
2600
+ noneOf?: string[] | undefined;
2601
+ }, {
2602
+ anyOf?: string[] | undefined;
2603
+ noneOf?: string[] | undefined;
2604
+ }>>>;
2605
+ data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
2606
+ }, "strip", z.ZodTypeAny, {
2607
+ id?: string | undefined;
2608
+ status?: {
2609
+ type: "exact";
2610
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2611
+ } | {
2612
+ type: "anyOf";
2613
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2614
+ } | undefined;
2615
+ data?: any;
2616
+ createdByUserType?: {
2617
+ type: "exact";
2618
+ term: "system" | "user";
2619
+ } | undefined;
2620
+ createdAt?: {
2621
+ type: "range";
2622
+ gte: string;
2623
+ lte: string;
2624
+ } | {
2625
+ type: "exact";
2626
+ term: string;
2627
+ } | {
2628
+ type: "timePeriod";
2629
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2630
+ } | undefined;
2631
+ createdBy?: {
2632
+ type: "exact";
2633
+ term: string;
2634
+ } | undefined;
2635
+ createdAtLocation?: {
2636
+ type: "exact";
2637
+ term: string;
2638
+ } | {
2639
+ type: "within";
2640
+ location: string;
2641
+ } | undefined;
2642
+ assignedTo?: {
2643
+ type: "exact";
2644
+ term: string;
2645
+ } | undefined;
2646
+ trackingId?: {
2647
+ type: "exact";
2648
+ term: string;
2649
+ } | undefined;
2650
+ updatedAt?: {
2651
+ type: "range";
2652
+ gte: string;
2653
+ lte: string;
2654
+ } | {
2655
+ type: "exact";
2656
+ term: string;
2657
+ } | {
2658
+ type: "timePeriod";
2659
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2660
+ } | undefined;
2661
+ eventType?: string | undefined;
2662
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2663
+ type: "range";
2664
+ gte: string;
2665
+ lte: string;
2666
+ } | {
2667
+ type: "exact";
2668
+ term: string;
2669
+ } | {
2670
+ type: "timePeriod";
2671
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2672
+ } | undefined;
2673
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2674
+ type: "exact";
2675
+ term: string;
2676
+ } | {
2677
+ type: "within";
2678
+ location: string;
2679
+ } | undefined;
2680
+ updatedAtLocation?: {
2681
+ type: "exact";
2682
+ term: string;
2683
+ } | {
2684
+ type: "within";
2685
+ location: string;
2686
+ } | undefined;
2687
+ updatedBy?: {
2688
+ type: "exact";
2689
+ term: string;
2690
+ } | undefined;
2691
+ flags?: {
2692
+ anyOf?: string[] | undefined;
2693
+ noneOf?: string[] | undefined;
2694
+ } | undefined;
2695
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2696
+ type: "exact";
2697
+ term: string;
2698
+ } | {
2699
+ type: "within";
2700
+ location: string;
2701
+ } | undefined;
2702
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2703
+ type: "exact";
2704
+ term: string;
2705
+ } | undefined;
2706
+ }, {
2707
+ id?: string | undefined;
2708
+ status?: {
2709
+ type: "exact";
2710
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2711
+ } | {
2712
+ type: "anyOf";
2713
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2714
+ } | undefined;
2715
+ data?: any;
2716
+ createdByUserType?: {
2717
+ type: "exact";
2718
+ term: "system" | "user";
2719
+ } | undefined;
2720
+ createdAt?: {
2721
+ type: "range";
2722
+ gte: string;
2723
+ lte: string;
2724
+ } | {
2725
+ type: "exact";
2726
+ term: string;
2727
+ } | {
2728
+ type: "timePeriod";
2729
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2730
+ } | undefined;
2731
+ createdBy?: {
2732
+ type: "exact";
2733
+ term: string;
2734
+ } | undefined;
2735
+ createdAtLocation?: {
2736
+ type: "exact";
2737
+ term: string;
2738
+ } | {
2739
+ type: "within";
2740
+ location: string;
2741
+ } | undefined;
2742
+ assignedTo?: {
2743
+ type: "exact";
2744
+ term: string;
2745
+ } | undefined;
2746
+ trackingId?: {
2747
+ type: "exact";
2748
+ term: string;
2749
+ } | undefined;
2750
+ updatedAt?: {
2751
+ type: "range";
2752
+ gte: string;
2753
+ lte: string;
2754
+ } | {
2755
+ type: "exact";
2756
+ term: string;
2757
+ } | {
2758
+ type: "timePeriod";
2759
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2760
+ } | undefined;
2761
+ eventType?: string | undefined;
2762
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2763
+ type: "range";
2764
+ gte: string;
2765
+ lte: string;
2766
+ } | {
2767
+ type: "exact";
2768
+ term: string;
2769
+ } | {
2770
+ type: "timePeriod";
2771
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2772
+ } | undefined;
2773
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2774
+ type: "exact";
2775
+ term: string;
2776
+ } | {
2777
+ type: "within";
2778
+ location: string;
2779
+ } | undefined;
2780
+ updatedAtLocation?: {
2781
+ type: "exact";
2782
+ term: string;
2783
+ } | {
2784
+ type: "within";
2785
+ location: string;
2786
+ } | undefined;
2787
+ updatedBy?: {
2788
+ type: "exact";
2789
+ term: string;
2790
+ } | undefined;
2791
+ flags?: {
2792
+ anyOf?: string[] | undefined;
2793
+ noneOf?: string[] | undefined;
2794
+ } | undefined;
2795
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2796
+ type: "exact";
2797
+ term: string;
2798
+ } | {
2799
+ type: "within";
2800
+ location: string;
2801
+ } | undefined;
2802
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2803
+ type: "exact";
2804
+ term: string;
2805
+ } | undefined;
2806
+ }>, {
2807
+ id?: string | undefined;
2808
+ status?: {
2809
+ type: "exact";
2810
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2811
+ } | {
2812
+ type: "anyOf";
2813
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2814
+ } | undefined;
2815
+ data?: any;
2816
+ createdByUserType?: {
2817
+ type: "exact";
2818
+ term: "system" | "user";
2819
+ } | undefined;
2820
+ createdAt?: {
2821
+ type: "range";
2822
+ gte: string;
2823
+ lte: string;
2824
+ } | {
2825
+ type: "exact";
2826
+ term: string;
2827
+ } | {
2828
+ type: "timePeriod";
2829
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2830
+ } | undefined;
2831
+ createdBy?: {
2832
+ type: "exact";
2833
+ term: string;
2834
+ } | undefined;
2835
+ createdAtLocation?: {
2836
+ type: "exact";
2837
+ term: string;
2838
+ } | {
2839
+ type: "within";
2840
+ location: string;
2841
+ } | undefined;
2842
+ assignedTo?: {
2843
+ type: "exact";
2844
+ term: string;
2845
+ } | undefined;
2846
+ trackingId?: {
2847
+ type: "exact";
2848
+ term: string;
2849
+ } | undefined;
2850
+ updatedAt?: {
2851
+ type: "range";
2852
+ gte: string;
2853
+ lte: string;
2854
+ } | {
2855
+ type: "exact";
2856
+ term: string;
2857
+ } | {
2858
+ type: "timePeriod";
2859
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2860
+ } | undefined;
2861
+ eventType?: string | undefined;
2862
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2863
+ type: "range";
2864
+ gte: string;
2865
+ lte: string;
2866
+ } | {
2867
+ type: "exact";
2868
+ term: string;
2869
+ } | {
2870
+ type: "timePeriod";
2871
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2872
+ } | undefined;
2873
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2874
+ type: "exact";
2875
+ term: string;
2876
+ } | {
2877
+ type: "within";
2878
+ location: string;
2879
+ } | undefined;
2880
+ updatedAtLocation?: {
2881
+ type: "exact";
2882
+ term: string;
2883
+ } | {
2884
+ type: "within";
2885
+ location: string;
2886
+ } | undefined;
2887
+ updatedBy?: {
2888
+ type: "exact";
2889
+ term: string;
2890
+ } | undefined;
2891
+ flags?: {
2892
+ anyOf?: string[] | undefined;
2893
+ noneOf?: string[] | undefined;
2894
+ } | undefined;
2895
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2896
+ type: "exact";
2897
+ term: string;
2898
+ } | {
2899
+ type: "within";
2900
+ location: string;
2901
+ } | undefined;
2902
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2903
+ type: "exact";
2904
+ term: string;
2905
+ } | undefined;
2906
+ }, {
2907
+ id?: string | undefined;
2908
+ status?: {
2909
+ type: "exact";
2910
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2911
+ } | {
2912
+ type: "anyOf";
2913
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2914
+ } | undefined;
2915
+ data?: any;
2916
+ createdByUserType?: {
2917
+ type: "exact";
2918
+ term: "system" | "user";
2919
+ } | undefined;
2920
+ createdAt?: {
2921
+ type: "range";
2922
+ gte: string;
2923
+ lte: string;
2924
+ } | {
2925
+ type: "exact";
2926
+ term: string;
2927
+ } | {
2928
+ type: "timePeriod";
2929
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2930
+ } | undefined;
2931
+ createdBy?: {
2932
+ type: "exact";
2933
+ term: string;
2934
+ } | undefined;
2935
+ createdAtLocation?: {
2936
+ type: "exact";
2937
+ term: string;
2938
+ } | {
2939
+ type: "within";
2940
+ location: string;
2941
+ } | undefined;
2942
+ assignedTo?: {
2943
+ type: "exact";
2944
+ term: string;
2945
+ } | undefined;
2946
+ trackingId?: {
2947
+ type: "exact";
2948
+ term: string;
2949
+ } | undefined;
2950
+ updatedAt?: {
2951
+ type: "range";
2952
+ gte: string;
2953
+ lte: string;
2954
+ } | {
2955
+ type: "exact";
2956
+ term: string;
2957
+ } | {
2958
+ type: "timePeriod";
2959
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2960
+ } | undefined;
2961
+ eventType?: string | undefined;
2962
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2963
+ type: "range";
2964
+ gte: string;
2965
+ lte: string;
2966
+ } | {
2967
+ type: "exact";
2968
+ term: string;
2969
+ } | {
2970
+ type: "timePeriod";
2971
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2972
+ } | undefined;
2973
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2974
+ type: "exact";
2975
+ term: string;
2976
+ } | {
2977
+ type: "within";
2978
+ location: string;
2979
+ } | undefined;
2980
+ updatedAtLocation?: {
2981
+ type: "exact";
2982
+ term: string;
2983
+ } | {
2984
+ type: "within";
2985
+ location: string;
2986
+ } | undefined;
2987
+ updatedBy?: {
2988
+ type: "exact";
2989
+ term: string;
2990
+ } | undefined;
2991
+ flags?: {
2992
+ anyOf?: string[] | undefined;
2993
+ noneOf?: string[] | undefined;
2994
+ } | undefined;
2995
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
2996
+ type: "exact";
2997
+ term: string;
2998
+ } | {
2999
+ type: "within";
3000
+ location: string;
3001
+ } | undefined;
3002
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
3003
+ type: "exact";
3004
+ term: string;
3005
+ } | undefined;
3006
+ }>, "atleastone">;
3007
+ }, "strip", z.ZodTypeAny, {
3008
+ type: "and" | "or";
3009
+ clauses: [{
3010
+ id?: string | undefined;
3011
+ status?: {
3012
+ type: "exact";
3013
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3014
+ } | {
3015
+ type: "anyOf";
3016
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3017
+ } | undefined;
3018
+ data?: any;
3019
+ createdByUserType?: {
3020
+ type: "exact";
3021
+ term: "system" | "user";
3022
+ } | undefined;
3023
+ createdAt?: {
3024
+ type: "range";
3025
+ gte: string;
3026
+ lte: string;
3027
+ } | {
3028
+ type: "exact";
3029
+ term: string;
3030
+ } | {
3031
+ type: "timePeriod";
3032
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3033
+ } | undefined;
3034
+ createdBy?: {
3035
+ type: "exact";
3036
+ term: string;
3037
+ } | undefined;
3038
+ createdAtLocation?: {
3039
+ type: "exact";
3040
+ term: string;
3041
+ } | {
3042
+ type: "within";
3043
+ location: string;
3044
+ } | undefined;
3045
+ assignedTo?: {
3046
+ type: "exact";
3047
+ term: string;
3048
+ } | undefined;
3049
+ trackingId?: {
3050
+ type: "exact";
3051
+ term: string;
3052
+ } | undefined;
3053
+ updatedAt?: {
3054
+ type: "range";
3055
+ gte: string;
3056
+ lte: string;
3057
+ } | {
3058
+ type: "exact";
3059
+ term: string;
3060
+ } | {
3061
+ type: "timePeriod";
3062
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3063
+ } | undefined;
3064
+ eventType?: string | undefined;
3065
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
3066
+ type: "range";
3067
+ gte: string;
3068
+ lte: string;
3069
+ } | {
3070
+ type: "exact";
3071
+ term: string;
3072
+ } | {
3073
+ type: "timePeriod";
3074
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3075
+ } | undefined;
3076
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
3077
+ type: "exact";
3078
+ term: string;
3079
+ } | {
3080
+ type: "within";
3081
+ location: string;
3082
+ } | undefined;
3083
+ updatedAtLocation?: {
3084
+ type: "exact";
3085
+ term: string;
3086
+ } | {
3087
+ type: "within";
3088
+ location: string;
3089
+ } | undefined;
3090
+ updatedBy?: {
3091
+ type: "exact";
3092
+ term: string;
3093
+ } | undefined;
3094
+ flags?: {
3095
+ anyOf?: string[] | undefined;
3096
+ noneOf?: string[] | undefined;
3097
+ } | undefined;
3098
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
3099
+ type: "exact";
3100
+ term: string;
3101
+ } | {
3102
+ type: "within";
3103
+ location: string;
3104
+ } | undefined;
3105
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
3106
+ type: "exact";
3107
+ term: string;
3108
+ } | undefined;
3109
+ }, ...{
3110
+ id?: string | undefined;
3111
+ status?: {
3112
+ type: "exact";
3113
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3114
+ } | {
3115
+ type: "anyOf";
3116
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3117
+ } | undefined;
3118
+ data?: any;
3119
+ createdByUserType?: {
3120
+ type: "exact";
3121
+ term: "system" | "user";
3122
+ } | undefined;
3123
+ createdAt?: {
3124
+ type: "range";
3125
+ gte: string;
3126
+ lte: string;
3127
+ } | {
3128
+ type: "exact";
3129
+ term: string;
3130
+ } | {
3131
+ type: "timePeriod";
3132
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3133
+ } | undefined;
3134
+ createdBy?: {
3135
+ type: "exact";
3136
+ term: string;
3137
+ } | undefined;
3138
+ createdAtLocation?: {
3139
+ type: "exact";
3140
+ term: string;
3141
+ } | {
3142
+ type: "within";
3143
+ location: string;
3144
+ } | undefined;
3145
+ assignedTo?: {
3146
+ type: "exact";
3147
+ term: string;
3148
+ } | undefined;
3149
+ trackingId?: {
3150
+ type: "exact";
3151
+ term: string;
3152
+ } | undefined;
3153
+ updatedAt?: {
3154
+ type: "range";
3155
+ gte: string;
3156
+ lte: string;
3157
+ } | {
3158
+ type: "exact";
3159
+ term: string;
3160
+ } | {
3161
+ type: "timePeriod";
3162
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3163
+ } | undefined;
3164
+ eventType?: string | undefined;
3165
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
3166
+ type: "range";
3167
+ gte: string;
3168
+ lte: string;
3169
+ } | {
3170
+ type: "exact";
3171
+ term: string;
3172
+ } | {
3173
+ type: "timePeriod";
3174
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3175
+ } | undefined;
3176
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
3177
+ type: "exact";
3178
+ term: string;
3179
+ } | {
3180
+ type: "within";
3181
+ location: string;
3182
+ } | undefined;
3183
+ updatedAtLocation?: {
3184
+ type: "exact";
3185
+ term: string;
3186
+ } | {
3187
+ type: "within";
3188
+ location: string;
3189
+ } | undefined;
3190
+ updatedBy?: {
3191
+ type: "exact";
3192
+ term: string;
3193
+ } | undefined;
3194
+ flags?: {
3195
+ anyOf?: string[] | undefined;
3196
+ noneOf?: string[] | undefined;
3197
+ } | undefined;
3198
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
3199
+ type: "exact";
3200
+ term: string;
3201
+ } | {
3202
+ type: "within";
3203
+ location: string;
3204
+ } | undefined;
3205
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
3206
+ type: "exact";
3207
+ term: string;
3208
+ } | undefined;
3209
+ }[]];
3210
+ }, {
3211
+ type: "and" | "or";
3212
+ clauses: [{
3213
+ id?: string | undefined;
3214
+ status?: {
3215
+ type: "exact";
3216
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3217
+ } | {
3218
+ type: "anyOf";
3219
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3220
+ } | undefined;
3221
+ data?: any;
3222
+ createdByUserType?: {
3223
+ type: "exact";
3224
+ term: "system" | "user";
3225
+ } | undefined;
3226
+ createdAt?: {
3227
+ type: "range";
3228
+ gte: string;
3229
+ lte: string;
3230
+ } | {
3231
+ type: "exact";
3232
+ term: string;
3233
+ } | {
3234
+ type: "timePeriod";
3235
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3236
+ } | undefined;
3237
+ createdBy?: {
3238
+ type: "exact";
3239
+ term: string;
3240
+ } | undefined;
3241
+ createdAtLocation?: {
3242
+ type: "exact";
3243
+ term: string;
3244
+ } | {
3245
+ type: "within";
3246
+ location: string;
3247
+ } | undefined;
3248
+ assignedTo?: {
3249
+ type: "exact";
3250
+ term: string;
3251
+ } | undefined;
3252
+ trackingId?: {
3253
+ type: "exact";
3254
+ term: string;
3255
+ } | undefined;
3256
+ updatedAt?: {
3257
+ type: "range";
3258
+ gte: string;
3259
+ lte: string;
3260
+ } | {
3261
+ type: "exact";
3262
+ term: string;
3263
+ } | {
3264
+ type: "timePeriod";
3265
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3266
+ } | undefined;
3267
+ eventType?: string | undefined;
3268
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
3269
+ type: "range";
3270
+ gte: string;
3271
+ lte: string;
3272
+ } | {
3273
+ type: "exact";
3274
+ term: string;
3275
+ } | {
3276
+ type: "timePeriod";
3277
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3278
+ } | undefined;
3279
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
3280
+ type: "exact";
3281
+ term: string;
3282
+ } | {
3283
+ type: "within";
3284
+ location: string;
3285
+ } | undefined;
3286
+ updatedAtLocation?: {
3287
+ type: "exact";
3288
+ term: string;
3289
+ } | {
3290
+ type: "within";
3291
+ location: string;
3292
+ } | undefined;
3293
+ updatedBy?: {
3294
+ type: "exact";
3295
+ term: string;
3296
+ } | undefined;
3297
+ flags?: {
3298
+ anyOf?: string[] | undefined;
3299
+ noneOf?: string[] | undefined;
3300
+ } | undefined;
3301
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
3302
+ type: "exact";
3303
+ term: string;
3304
+ } | {
3305
+ type: "within";
3306
+ location: string;
3307
+ } | undefined;
3308
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
3309
+ type: "exact";
3310
+ term: string;
3311
+ } | undefined;
3312
+ }, ...{
3313
+ id?: string | undefined;
3314
+ status?: {
3315
+ type: "exact";
3316
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3317
+ } | {
3318
+ type: "anyOf";
3319
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3320
+ } | undefined;
3321
+ data?: any;
3322
+ createdByUserType?: {
3323
+ type: "exact";
3324
+ term: "system" | "user";
3325
+ } | undefined;
3326
+ createdAt?: {
3327
+ type: "range";
3328
+ gte: string;
3329
+ lte: string;
3330
+ } | {
3331
+ type: "exact";
3332
+ term: string;
3333
+ } | {
3334
+ type: "timePeriod";
3335
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3336
+ } | undefined;
3337
+ createdBy?: {
3338
+ type: "exact";
3339
+ term: string;
3340
+ } | undefined;
3341
+ createdAtLocation?: {
3342
+ type: "exact";
3343
+ term: string;
3344
+ } | {
3345
+ type: "within";
3346
+ location: string;
3347
+ } | undefined;
3348
+ assignedTo?: {
3349
+ type: "exact";
3350
+ term: string;
3351
+ } | undefined;
3352
+ trackingId?: {
3353
+ type: "exact";
3354
+ term: string;
3355
+ } | undefined;
3356
+ updatedAt?: {
3357
+ type: "range";
3358
+ gte: string;
3359
+ lte: string;
3360
+ } | {
3361
+ type: "exact";
3362
+ term: string;
3363
+ } | {
3364
+ type: "timePeriod";
3365
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3366
+ } | undefined;
3367
+ eventType?: string | undefined;
3368
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
3369
+ type: "range";
3370
+ gte: string;
3371
+ lte: string;
3372
+ } | {
3373
+ type: "exact";
3374
+ term: string;
3375
+ } | {
3376
+ type: "timePeriod";
3377
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3378
+ } | undefined;
3379
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
3380
+ type: "exact";
3381
+ term: string;
3382
+ } | {
3383
+ type: "within";
3384
+ location: string;
3385
+ } | undefined;
3386
+ updatedAtLocation?: {
3387
+ type: "exact";
3388
+ term: string;
3389
+ } | {
3390
+ type: "within";
3391
+ location: string;
3392
+ } | undefined;
3393
+ updatedBy?: {
3394
+ type: "exact";
3395
+ term: string;
3396
+ } | undefined;
3397
+ flags?: {
3398
+ anyOf?: string[] | undefined;
3399
+ noneOf?: string[] | undefined;
3400
+ } | undefined;
3401
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
3402
+ type: "exact";
3403
+ term: string;
3404
+ } | {
3405
+ type: "within";
3406
+ location: string;
3407
+ } | undefined;
3408
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
3409
+ type: "exact";
3410
+ term: string;
3411
+ } | undefined;
3412
+ }[]];
3413
+ }>, {
3414
+ type: "and" | "or";
3415
+ clauses: [{
3416
+ id?: string | undefined;
3417
+ status?: {
3418
+ type: "exact";
3419
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3420
+ } | {
3421
+ type: "anyOf";
3422
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3423
+ } | undefined;
3424
+ data?: any;
3425
+ createdByUserType?: {
3426
+ type: "exact";
3427
+ term: "system" | "user";
3428
+ } | undefined;
3429
+ createdAt?: {
3430
+ type: "range";
3431
+ gte: string;
3432
+ lte: string;
3433
+ } | {
3434
+ type: "exact";
3435
+ term: string;
3436
+ } | {
3437
+ type: "timePeriod";
3438
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3439
+ } | undefined;
3440
+ createdBy?: {
3441
+ type: "exact";
3442
+ term: string;
3443
+ } | undefined;
3444
+ createdAtLocation?: {
3445
+ type: "exact";
3446
+ term: string;
3447
+ } | {
3448
+ type: "within";
3449
+ location: string;
3450
+ } | undefined;
3451
+ assignedTo?: {
3452
+ type: "exact";
3453
+ term: string;
3454
+ } | undefined;
3455
+ trackingId?: {
3456
+ type: "exact";
3457
+ term: string;
3458
+ } | undefined;
3459
+ updatedAt?: {
3460
+ type: "range";
3461
+ gte: string;
3462
+ lte: string;
3463
+ } | {
3464
+ type: "exact";
3465
+ term: string;
3466
+ } | {
3467
+ type: "timePeriod";
3468
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3469
+ } | undefined;
3470
+ eventType?: string | undefined;
3471
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
3472
+ type: "range";
3473
+ gte: string;
3474
+ lte: string;
3475
+ } | {
3476
+ type: "exact";
3477
+ term: string;
3478
+ } | {
3479
+ type: "timePeriod";
3480
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3481
+ } | undefined;
3482
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
3483
+ type: "exact";
3484
+ term: string;
3485
+ } | {
3486
+ type: "within";
3487
+ location: string;
3488
+ } | undefined;
3489
+ updatedAtLocation?: {
3490
+ type: "exact";
3491
+ term: string;
3492
+ } | {
3493
+ type: "within";
3494
+ location: string;
3495
+ } | undefined;
3496
+ updatedBy?: {
3497
+ type: "exact";
3498
+ term: string;
3499
+ } | undefined;
3500
+ flags?: {
3501
+ anyOf?: string[] | undefined;
3502
+ noneOf?: string[] | undefined;
3503
+ } | undefined;
3504
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
3505
+ type: "exact";
3506
+ term: string;
3507
+ } | {
3508
+ type: "within";
3509
+ location: string;
3510
+ } | undefined;
3511
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
3512
+ type: "exact";
3513
+ term: string;
3514
+ } | undefined;
3515
+ }, ...{
3516
+ id?: string | undefined;
3517
+ status?: {
3518
+ type: "exact";
3519
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3520
+ } | {
3521
+ type: "anyOf";
3522
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3523
+ } | undefined;
3524
+ data?: any;
3525
+ createdByUserType?: {
3526
+ type: "exact";
3527
+ term: "system" | "user";
3528
+ } | undefined;
3529
+ createdAt?: {
3530
+ type: "range";
3531
+ gte: string;
3532
+ lte: string;
3533
+ } | {
3534
+ type: "exact";
3535
+ term: string;
3536
+ } | {
3537
+ type: "timePeriod";
3538
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3539
+ } | undefined;
3540
+ createdBy?: {
3541
+ type: "exact";
3542
+ term: string;
3543
+ } | undefined;
3544
+ createdAtLocation?: {
3545
+ type: "exact";
3546
+ term: string;
3547
+ } | {
3548
+ type: "within";
3549
+ location: string;
3550
+ } | undefined;
3551
+ assignedTo?: {
3552
+ type: "exact";
3553
+ term: string;
3554
+ } | undefined;
3555
+ trackingId?: {
3556
+ type: "exact";
3557
+ term: string;
3558
+ } | undefined;
3559
+ updatedAt?: {
3560
+ type: "range";
3561
+ gte: string;
3562
+ lte: string;
3563
+ } | {
3564
+ type: "exact";
3565
+ term: string;
3566
+ } | {
3567
+ type: "timePeriod";
3568
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3569
+ } | undefined;
3570
+ eventType?: string | undefined;
3571
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
3572
+ type: "range";
3573
+ gte: string;
3574
+ lte: string;
3575
+ } | {
3576
+ type: "exact";
3577
+ term: string;
3578
+ } | {
3579
+ type: "timePeriod";
3580
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3581
+ } | undefined;
3582
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
3583
+ type: "exact";
3584
+ term: string;
3585
+ } | {
3586
+ type: "within";
3587
+ location: string;
3588
+ } | undefined;
3589
+ updatedAtLocation?: {
3590
+ type: "exact";
3591
+ term: string;
3592
+ } | {
3593
+ type: "within";
3594
+ location: string;
3595
+ } | undefined;
3596
+ updatedBy?: {
3597
+ type: "exact";
3598
+ term: string;
3599
+ } | undefined;
3600
+ flags?: {
3601
+ anyOf?: string[] | undefined;
3602
+ noneOf?: string[] | undefined;
3603
+ } | undefined;
3604
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
3605
+ type: "exact";
3606
+ term: string;
3607
+ } | {
3608
+ type: "within";
3609
+ location: string;
3610
+ } | undefined;
3611
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
3612
+ type: "exact";
3613
+ term: string;
3614
+ } | undefined;
3615
+ }[]];
3616
+ }, unknown>;
3617
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3618
+ offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3619
+ sort: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
3620
+ field: z.ZodString;
3621
+ direction: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
3622
+ }, "strip", z.ZodTypeAny, {
3623
+ field: string;
3624
+ direction: "asc" | "desc";
3625
+ }, {
3626
+ field: string;
3627
+ direction?: "asc" | "desc" | undefined;
3628
+ }>, "many">, {
3629
+ field: string;
3630
+ direction: "asc" | "desc";
3631
+ }[], unknown>>;
3632
+ }, "strip", z.ZodTypeAny, {
3633
+ query: {
3634
+ type: "and" | "or";
3635
+ clauses: [{
3636
+ id?: string | undefined;
3637
+ status?: {
3638
+ type: "exact";
3639
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3640
+ } | {
3641
+ type: "anyOf";
3642
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3643
+ } | undefined;
3644
+ data?: any;
3645
+ createdByUserType?: {
3646
+ type: "exact";
3647
+ term: "system" | "user";
3648
+ } | undefined;
3649
+ createdAt?: {
3650
+ type: "range";
3651
+ gte: string;
3652
+ lte: string;
3653
+ } | {
3654
+ type: "exact";
3655
+ term: string;
3656
+ } | {
3657
+ type: "timePeriod";
3658
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3659
+ } | undefined;
3660
+ createdBy?: {
3661
+ type: "exact";
3662
+ term: string;
3663
+ } | undefined;
3664
+ createdAtLocation?: {
3665
+ type: "exact";
3666
+ term: string;
3667
+ } | {
3668
+ type: "within";
3669
+ location: string;
3670
+ } | undefined;
3671
+ assignedTo?: {
3672
+ type: "exact";
3673
+ term: string;
3674
+ } | undefined;
3675
+ trackingId?: {
3676
+ type: "exact";
3677
+ term: string;
3678
+ } | undefined;
3679
+ updatedAt?: {
3680
+ type: "range";
3681
+ gte: string;
3682
+ lte: string;
3683
+ } | {
3684
+ type: "exact";
3685
+ term: string;
3686
+ } | {
3687
+ type: "timePeriod";
3688
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3689
+ } | undefined;
3690
+ eventType?: string | undefined;
3691
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
3692
+ type: "range";
3693
+ gte: string;
3694
+ lte: string;
3695
+ } | {
3696
+ type: "exact";
3697
+ term: string;
3698
+ } | {
3699
+ type: "timePeriod";
3700
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3701
+ } | undefined;
3702
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
3703
+ type: "exact";
3704
+ term: string;
3705
+ } | {
3706
+ type: "within";
3707
+ location: string;
3708
+ } | undefined;
3709
+ updatedAtLocation?: {
3710
+ type: "exact";
3711
+ term: string;
3712
+ } | {
3713
+ type: "within";
3714
+ location: string;
3715
+ } | undefined;
3716
+ updatedBy?: {
3717
+ type: "exact";
3718
+ term: string;
3719
+ } | undefined;
3720
+ flags?: {
3721
+ anyOf?: string[] | undefined;
3722
+ noneOf?: string[] | undefined;
3723
+ } | undefined;
3724
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
3725
+ type: "exact";
3726
+ term: string;
3727
+ } | {
3728
+ type: "within";
3729
+ location: string;
3730
+ } | undefined;
3731
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
3732
+ type: "exact";
3733
+ term: string;
3734
+ } | undefined;
3735
+ }, ...{
3736
+ id?: string | undefined;
3737
+ status?: {
3738
+ type: "exact";
3739
+ term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
3740
+ } | {
3741
+ type: "anyOf";
3742
+ terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
3743
+ } | undefined;
3744
+ data?: any;
3745
+ createdByUserType?: {
3746
+ type: "exact";
3747
+ term: "system" | "user";
3748
+ } | undefined;
3749
+ createdAt?: {
3750
+ type: "range";
3751
+ gte: string;
3752
+ lte: string;
3753
+ } | {
3754
+ type: "exact";
3755
+ term: string;
3756
+ } | {
3757
+ type: "timePeriod";
3758
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3759
+ } | undefined;
3760
+ createdBy?: {
3761
+ type: "exact";
3762
+ term: string;
3763
+ } | undefined;
3764
+ createdAtLocation?: {
3765
+ type: "exact";
3766
+ term: string;
3767
+ } | {
3768
+ type: "within";
3769
+ location: string;
3770
+ } | undefined;
3771
+ assignedTo?: {
3772
+ type: "exact";
3773
+ term: string;
3774
+ } | undefined;
3775
+ trackingId?: {
3776
+ type: "exact";
3777
+ term: string;
3778
+ } | undefined;
3779
+ updatedAt?: {
3780
+ type: "range";
3781
+ gte: string;
3782
+ lte: string;
3783
+ } | {
3784
+ type: "exact";
3785
+ term: string;
3786
+ } | {
3787
+ type: "timePeriod";
3788
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3789
+ } | undefined;
3790
+ eventType?: string | undefined;
3791
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
3792
+ type: "range";
3793
+ gte: string;
3794
+ lte: string;
3795
+ } | {
3796
+ type: "exact";
3797
+ term: string;
3798
+ } | {
3799
+ type: "timePeriod";
3800
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
3801
+ } | undefined;
3802
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
3803
+ type: "exact";
3804
+ term: string;
3805
+ } | {
3806
+ type: "within";
3807
+ location: string;
3808
+ } | undefined;
3809
+ updatedAtLocation?: {
3810
+ type: "exact";
3811
+ term: string;
3812
+ } | {
3813
+ type: "within";
3814
+ location: string;
3815
+ } | undefined;
3816
+ updatedBy?: {
3817
+ type: "exact";
3818
+ term: string;
3819
+ } | undefined;
3820
+ flags?: {
3821
+ anyOf?: string[] | undefined;
3822
+ noneOf?: string[] | undefined;
3823
+ } | undefined;
3824
+ 'legalStatuses.DECLARED.createdAtLocation'?: {
3825
+ type: "exact";
3826
+ term: string;
3827
+ } | {
3828
+ type: "within";
3829
+ location: string;
3830
+ } | undefined;
3831
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
3832
+ type: "exact";
3833
+ term: string;
3834
+ } | undefined;
3835
+ }[]];
3836
+ };
3837
+ limit: number;
3838
+ offset: number;
3839
+ sort?: {
3840
+ field: string;
3841
+ direction: "asc" | "desc";
3842
+ }[] | undefined;
3843
+ }, {
3844
+ sort?: unknown;
3845
+ query?: unknown;
3846
+ limit?: number | undefined;
3847
+ offset?: number | undefined;
3848
+ }>;
3849
+ export type SearchQuery = z.infer<typeof SearchQuery>;
3850
+ export type QueryType = z.infer<typeof QueryType>;
3851
+ export type QueryExpression = z.infer<typeof QueryExpression>;
3852
+ export declare const SearchScopeAccessLevels: {
3853
+ readonly MY_JURISDICTION: "my-jurisdiction";
3854
+ readonly ALL: "all";
3855
+ };
3856
+ export type SearchScopeAccessLevels = (typeof SearchScopeAccessLevels)[keyof typeof SearchScopeAccessLevels];
3857
+ export {};
3858
+ //# sourceMappingURL=EventIndex.d.ts.map