@opencrvs/toolkit 1.8.0-rc.f97f8f2 → 1.8.0-rc.f988670

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