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

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