@opencrvs/toolkit 1.8.0-rc.f7aaf07 → 1.8.0-rc.f7e1622

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 (37) hide show
  1. package/dist/commons/api/router.d.ts +2228 -15340
  2. package/dist/commons/conditionals/conditionals.d.ts +0 -12
  3. package/dist/commons/conditionals/validate.d.ts +5 -0
  4. package/dist/commons/events/ActionConfig.d.ts +33832 -35902
  5. package/dist/commons/events/ActionDocument.d.ts +3439 -1912
  6. package/dist/commons/events/ActionInput.d.ts +2406 -1506
  7. package/dist/commons/events/ActionType.d.ts +7 -4
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +100 -51
  9. package/dist/commons/events/CompositeFieldValue.d.ts +15 -15
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +1798 -734
  11. package/dist/commons/events/CreatedAtLocation.d.ts +1 -2
  12. package/dist/commons/events/Draft.d.ts +208 -136
  13. package/dist/commons/events/EventConfig.d.ts +19880 -23808
  14. package/dist/commons/events/EventDocument.d.ts +1863 -1220
  15. package/dist/commons/events/EventIndex.d.ts +514 -316
  16. package/dist/commons/events/EventMetadata.d.ts +44 -33
  17. package/dist/commons/events/FieldConfig.d.ts +1171 -385
  18. package/dist/commons/events/FieldType.d.ts +2 -1
  19. package/dist/commons/events/FieldTypeMapping.d.ts +73 -41
  20. package/dist/commons/events/FieldValue.d.ts +57 -28
  21. package/dist/commons/events/FormConfig.d.ts +7380 -2640
  22. package/dist/commons/events/PageConfig.d.ts +1499 -343
  23. package/dist/commons/events/SummaryConfig.d.ts +10 -10
  24. package/dist/commons/events/User.d.ts +6 -3
  25. package/dist/commons/events/WorkqueueConfig.d.ts +3153 -1327
  26. package/dist/commons/events/defineConfig.d.ts +2475 -3245
  27. package/dist/commons/events/event.d.ts +10 -18
  28. package/dist/commons/events/field.d.ts +13 -1
  29. package/dist/commons/events/scopes.d.ts +2 -1
  30. package/dist/commons/events/test.utils.d.ts +74 -40
  31. package/dist/commons/events/transactions.d.ts +1 -1
  32. package/dist/commons/events/utils.d.ts +8553 -6994
  33. package/dist/conditionals/index.js +23 -53
  34. package/dist/events/index.js +1685 -1402
  35. package/dist/scopes/index.d.ts +92 -6
  36. package/dist/scopes/index.js +38 -9
  37. package/package.json +3 -3
@@ -1,13 +1,13 @@
1
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.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
5
+ status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
6
6
  legalStatuses: z.ZodObject<{
7
7
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8
8
  createdAt: z.ZodString;
9
9
  createdBy: z.ZodString;
10
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
11
11
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
12
12
  acceptedAt: z.ZodString;
13
13
  createdByRole: z.ZodString;
@@ -19,7 +19,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
19
19
  acceptedAt: string;
20
20
  createdByUserType?: "system" | "user" | null | undefined;
21
21
  createdBySignature?: string | null | undefined;
22
- createdAtLocation?: string | null | undefined;
22
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
23
23
  }, {
24
24
  createdAt: string;
25
25
  createdBy: string;
@@ -32,7 +32,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
32
32
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
33
33
  createdAt: z.ZodString;
34
34
  createdBy: z.ZodString;
35
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
36
36
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
37
37
  acceptedAt: z.ZodString;
38
38
  createdByRole: z.ZodString;
@@ -47,7 +47,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
47
47
  acceptedAt: string;
48
48
  createdByUserType?: "system" | "user" | null | undefined;
49
49
  createdBySignature?: string | null | undefined;
50
- createdAtLocation?: string | null | undefined;
50
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
51
51
  }, {
52
52
  createdAt: string;
53
53
  createdBy: string;
@@ -66,7 +66,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
66
66
  acceptedAt: string;
67
67
  createdByUserType?: "system" | "user" | null | undefined;
68
68
  createdBySignature?: string | null | undefined;
69
- createdAtLocation?: string | null | undefined;
69
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
70
70
  } | null | undefined;
71
71
  REGISTERED?: {
72
72
  createdAt: string;
@@ -76,7 +76,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
76
76
  acceptedAt: string;
77
77
  createdByUserType?: "system" | "user" | null | undefined;
78
78
  createdBySignature?: string | null | undefined;
79
- createdAtLocation?: string | null | undefined;
79
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
80
80
  } | null | undefined;
81
81
  }, {
82
82
  DECLARED?: {
@@ -104,43 +104,55 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
104
104
  createdBy: z.ZodString;
105
105
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
106
106
  updatedByUserRole: z.ZodString;
107
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
108
108
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
110
110
  updatedAt: z.ZodString;
111
111
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
112
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
113
  trackingId: z.ZodString;
114
114
  flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
115
- readonly CERTIFICATE_PRINTED: "certificate-printed";
115
+ readonly PRINTED: "printed";
116
+ readonly INCOMPLETE: "incomplete";
117
+ readonly REJECTED: "rejected";
118
+ readonly CORRECTION_REQUESTED: "correction-requested";
116
119
  }>]>, "many">;
117
120
  }, {
118
- 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<{
119
- 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>;
120
132
  originalFilename: z.ZodString;
121
133
  type: z.ZodString;
122
134
  }, "strip", z.ZodTypeAny, {
123
135
  type: string;
124
- filename: string;
136
+ path: string;
125
137
  originalFilename: string;
126
138
  }, {
127
139
  type: string;
128
- filename: string;
140
+ path: string;
129
141
  originalFilename: string;
130
142
  }>, z.ZodArray<z.ZodObject<{
131
- filename: z.ZodString;
143
+ path: z.ZodEffects<z.ZodString, string, string>;
132
144
  originalFilename: z.ZodString;
133
145
  type: z.ZodString;
134
146
  option: z.ZodString;
135
147
  }, "strip", z.ZodTypeAny, {
136
148
  type: string;
137
149
  option: string;
138
- filename: string;
150
+ path: string;
139
151
  originalFilename: string;
140
152
  }, {
141
153
  type: string;
142
154
  option: string;
143
- filename: string;
155
+ path: string;
144
156
  originalFilename: string;
145
157
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
146
158
  country: z.ZodString;
@@ -241,27 +253,27 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
241
253
  surname: string;
242
254
  middlename?: string | undefined;
243
255
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
244
- firstname: z.ZodString;
245
- surname: z.ZodString;
256
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
258
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
259
  }, "strip", z.ZodTypeAny, {
248
- firstname: string;
249
- surname: string;
260
+ firstname?: string | null | undefined;
261
+ surname?: string | null | undefined;
250
262
  middlename?: string | null | undefined;
251
263
  }, {
252
- firstname: string;
253
- surname: string;
264
+ firstname?: string | null | undefined;
265
+ surname?: string | null | undefined;
254
266
  middlename?: string | null | undefined;
255
267
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
256
268
  }>, "strip", z.ZodTypeAny, {
257
269
  type: string;
258
- id: string;
259
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
270
+ id: string & z.BRAND<"UUID">;
271
+ status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
260
272
  createdAt: string;
261
273
  createdBy: string;
262
274
  declaration: Record<string, string | number | boolean | {
263
275
  type: string;
264
- filename: string;
276
+ path: string;
265
277
  originalFilename: string;
266
278
  } | {
267
279
  country: string;
@@ -286,8 +298,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
286
298
  surname: string;
287
299
  middlename?: string | undefined;
288
300
  } | {
289
- firstname: string;
290
- surname: string;
301
+ firstname?: string | null | undefined;
302
+ surname?: string | null | undefined;
291
303
  middlename?: string | null | undefined;
292
304
  } | {
293
305
  country: string;
@@ -302,9 +314,12 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
302
314
  } | {
303
315
  type: string;
304
316
  option: string;
305
- filename: string;
317
+ path: string;
306
318
  originalFilename: string;
307
- }[] | [string, string] | null | undefined>;
319
+ }[] | {
320
+ start: string;
321
+ end: string;
322
+ } | null | undefined>;
308
323
  updatedAt: string;
309
324
  trackingId: string;
310
325
  legalStatuses: {
@@ -315,7 +330,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
315
330
  acceptedAt: string;
316
331
  createdByUserType?: "system" | "user" | null | undefined;
317
332
  createdBySignature?: string | null | undefined;
318
- createdAtLocation?: string | null | undefined;
333
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
319
334
  } | null | undefined;
320
335
  REGISTERED?: {
321
336
  createdAt: string;
@@ -325,27 +340,27 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
325
340
  acceptedAt: string;
326
341
  createdByUserType?: "system" | "user" | null | undefined;
327
342
  createdBySignature?: string | null | undefined;
328
- createdAtLocation?: string | null | undefined;
343
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
329
344
  } | null | undefined;
330
345
  };
331
346
  updatedByUserRole: string;
332
347
  flags: string[];
333
348
  createdByUserType?: "system" | "user" | null | undefined;
334
349
  createdBySignature?: string | null | undefined;
335
- createdAtLocation?: string | null | undefined;
350
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
336
351
  assignedTo?: string | null | undefined;
337
352
  dateOfEvent?: string | null | undefined;
338
- updatedAtLocation?: string | null | undefined;
353
+ updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
339
354
  updatedBy?: string | null | undefined;
340
355
  }, {
341
356
  type: string;
342
357
  id: string;
343
- status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
358
+ status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
344
359
  createdAt: string;
345
360
  createdBy: string;
346
361
  declaration: Record<string, string | number | boolean | {
347
362
  type: string;
348
- filename: string;
363
+ path: string;
349
364
  originalFilename: string;
350
365
  } | {
351
366
  country: string;
@@ -370,8 +385,8 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
370
385
  surname: string;
371
386
  middlename?: string | undefined;
372
387
  } | {
373
- firstname: string;
374
- surname: string;
388
+ firstname?: string | null | undefined;
389
+ surname?: string | null | undefined;
375
390
  middlename?: string | null | undefined;
376
391
  } | {
377
392
  country: string;
@@ -386,9 +401,12 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
386
401
  } | {
387
402
  type: string;
388
403
  option: string;
389
- filename: string;
404
+ path: string;
390
405
  originalFilename: string;
391
- }[] | [string, string] | null | undefined>;
406
+ }[] | {
407
+ start: string;
408
+ end: string;
409
+ } | null | undefined>;
392
410
  updatedAt: string;
393
411
  trackingId: string;
394
412
  legalStatuses: {
@@ -453,13 +471,23 @@ export declare const Exact: z.ZodObject<{
453
471
  }>;
454
472
  export declare const ExactStatus: z.ZodObject<{
455
473
  type: z.ZodLiteral<"exact">;
456
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
474
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
457
475
  }, "strip", z.ZodTypeAny, {
458
476
  type: "exact";
459
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
477
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
460
478
  }, {
461
479
  type: "exact";
462
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
480
+ term: "ARCHIVED" | "CERTIFIED" | "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";
463
491
  }>;
464
492
  export declare const AnyOf: z.ZodObject<{
465
493
  type: z.ZodLiteral<"anyOf">;
@@ -473,13 +501,13 @@ export declare const AnyOf: z.ZodObject<{
473
501
  }>;
474
502
  export declare const AnyOfStatus: z.ZodObject<{
475
503
  type: z.ZodLiteral<"anyOf">;
476
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
504
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>, "many">;
477
505
  }, "strip", z.ZodTypeAny, {
478
506
  type: "anyOf";
479
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
507
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
480
508
  }, {
481
509
  type: "anyOf";
482
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
510
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
483
511
  }>;
484
512
  export declare const Range: z.ZodObject<{
485
513
  type: z.ZodLiteral<"range">;
@@ -494,15 +522,25 @@ export declare const Range: z.ZodObject<{
494
522
  gte: string;
495
523
  lte: string;
496
524
  }>;
497
- export declare const Not: z.ZodObject<{
498
- type: z.ZodLiteral<"not">;
499
- term: z.ZodString;
525
+ export declare const ContainsFlags: z.ZodObject<{
526
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
527
+ readonly PRINTED: "printed";
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 PRINTED: "printed";
534
+ readonly INCOMPLETE: "incomplete";
535
+ readonly REJECTED: "rejected";
536
+ readonly CORRECTION_REQUESTED: "correction-requested";
537
+ }>]>, "many">>;
500
538
  }, "strip", z.ZodTypeAny, {
501
- type: "not";
502
- term: string;
539
+ anyOf?: string[] | undefined;
540
+ noneOf?: string[] | undefined;
503
541
  }, {
504
- type: "not";
505
- term: string;
542
+ anyOf?: string[] | undefined;
543
+ noneOf?: string[] | undefined;
506
544
  }>;
507
545
  export declare const Within: z.ZodObject<{
508
546
  type: z.ZodLiteral<"within">;
@@ -514,22 +552,6 @@ export declare const Within: z.ZodObject<{
514
552
  type: "within";
515
553
  location: string;
516
554
  }>;
517
- export declare const RangeDate: z.ZodObject<z.objectUtil.extendShape<{
518
- type: z.ZodLiteral<"range">;
519
- gte: z.ZodString;
520
- lte: z.ZodString;
521
- }, {
522
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
523
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
524
- }>, "strip", z.ZodTypeAny, {
525
- type: "range";
526
- gte: string;
527
- lte: string;
528
- }, {
529
- type: "range";
530
- gte: string;
531
- lte: string;
532
- }>;
533
555
  export declare const ExactDate: z.ZodObject<z.objectUtil.extendShape<{
534
556
  type: z.ZodLiteral<"exact">;
535
557
  term: z.ZodString;
@@ -553,14 +575,11 @@ export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
553
575
  }, {
554
576
  type: "exact";
555
577
  term: string;
556
- }>, z.ZodObject<z.objectUtil.extendShape<{
578
+ }>, z.ZodObject<{
557
579
  type: z.ZodLiteral<"range">;
558
- gte: z.ZodString;
559
- lte: z.ZodString;
560
- }, {
561
580
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
562
581
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
563
- }>, "strip", z.ZodTypeAny, {
582
+ }, "strip", z.ZodTypeAny, {
564
583
  type: "range";
565
584
  gte: string;
566
585
  lte: string;
@@ -568,9 +587,19 @@ export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
568
587
  type: "range";
569
588
  gte: string;
570
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";
571
599
  }>]>;
600
+ export type DateCondition = z.infer<typeof DateCondition>;
572
601
  export declare const QueryInput: ZodType;
573
- 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>;
574
603
  type QueryMap = {
575
604
  [key: string]: BaseInput | QueryMap;
576
605
  };
@@ -580,22 +609,22 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
580
609
  eventType: z.ZodOptional<z.ZodString>;
581
610
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
582
611
  type: z.ZodLiteral<"anyOf">;
583
- 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", "CERTIFIED", "ARCHIVED"]>, "many">;
584
613
  }, "strip", z.ZodTypeAny, {
585
614
  type: "anyOf";
586
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
615
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
587
616
  }, {
588
617
  type: "anyOf";
589
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
618
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
590
619
  }>, z.ZodObject<{
591
620
  type: z.ZodLiteral<"exact">;
592
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
621
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
593
622
  }, "strip", z.ZodTypeAny, {
594
623
  type: "exact";
595
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
624
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
596
625
  }, {
597
626
  type: "exact";
598
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
627
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
599
628
  }>]>>>;
600
629
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
601
630
  type: z.ZodLiteral<"exact">;
@@ -608,14 +637,11 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
608
637
  }, {
609
638
  type: "exact";
610
639
  term: string;
611
- }>, z.ZodObject<z.objectUtil.extendShape<{
640
+ }>, z.ZodObject<{
612
641
  type: z.ZodLiteral<"range">;
613
- gte: z.ZodString;
614
- lte: z.ZodString;
615
- }, {
616
642
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
617
643
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
618
- }>, "strip", z.ZodTypeAny, {
644
+ }, "strip", z.ZodTypeAny, {
619
645
  type: "range";
620
646
  gte: string;
621
647
  lte: string;
@@ -623,6 +649,15 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
623
649
  type: "range";
624
650
  gte: string;
625
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";
626
661
  }>]>>>;
627
662
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
628
663
  type: z.ZodLiteral<"exact">;
@@ -635,14 +670,11 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
635
670
  }, {
636
671
  type: "exact";
637
672
  term: string;
638
- }>, z.ZodObject<z.objectUtil.extendShape<{
673
+ }>, z.ZodObject<{
639
674
  type: z.ZodLiteral<"range">;
640
- gte: z.ZodString;
641
- lte: z.ZodString;
642
- }, {
643
675
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
644
676
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
645
- }>, "strip", z.ZodTypeAny, {
677
+ }, "strip", z.ZodTypeAny, {
646
678
  type: "range";
647
679
  gte: string;
648
680
  lte: string;
@@ -650,8 +682,17 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
650
682
  type: "range";
651
683
  gte: string;
652
684
  lte: string;
685
+ }>, z.ZodObject<{
686
+ type: z.ZodLiteral<"timePeriod">;
687
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
688
+ }, "strip", z.ZodTypeAny, {
689
+ type: "timePeriod";
690
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
691
+ }, {
692
+ type: "timePeriod";
693
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
653
694
  }>]>>>;
654
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
695
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
655
696
  type: z.ZodLiteral<"exact">;
656
697
  term: z.ZodString;
657
698
  }, {
@@ -662,14 +703,11 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
662
703
  }, {
663
704
  type: "exact";
664
705
  term: string;
665
- }>, z.ZodObject<z.objectUtil.extendShape<{
706
+ }>, z.ZodObject<{
666
707
  type: z.ZodLiteral<"range">;
667
- gte: z.ZodString;
668
- lte: z.ZodString;
669
- }, {
670
708
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
671
709
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
672
- }>, "strip", z.ZodTypeAny, {
710
+ }, "strip", z.ZodTypeAny, {
673
711
  type: "range";
674
712
  gte: string;
675
713
  lte: string;
@@ -677,8 +715,17 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
677
715
  type: "range";
678
716
  gte: string;
679
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";
680
727
  }>]>>>;
681
- 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
728
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
682
729
  type: z.ZodLiteral<"within">;
683
730
  location: z.ZodString;
684
731
  }, "strip", z.ZodTypeAny, {
@@ -697,7 +744,7 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
697
744
  type: "exact";
698
745
  term: string;
699
746
  }>]>>>;
700
- 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
747
+ 'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
701
748
  type: z.ZodLiteral<"exact">;
702
749
  term: z.ZodString;
703
750
  }, "strip", z.ZodTypeAny, {
@@ -755,7 +802,16 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
755
802
  type: "exact";
756
803
  term: string;
757
804
  }>>>;
758
- createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
805
+ createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
806
+ type: z.ZodLiteral<"exact">;
807
+ term: z.ZodEnum<["user", "system"]>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ type: "exact";
810
+ term: "system" | "user";
811
+ }, {
812
+ type: "exact";
813
+ term: "system" | "user";
814
+ }>>>;
759
815
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
760
816
  type: z.ZodLiteral<"exact">;
761
817
  term: z.ZodString;
@@ -786,37 +842,41 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
786
842
  type: "exact";
787
843
  term: string;
788
844
  }>>>;
789
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
790
- type: z.ZodLiteral<"anyOf">;
791
- terms: z.ZodArray<z.ZodString, "many">;
845
+ flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
846
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
847
+ readonly PRINTED: "printed";
848
+ readonly INCOMPLETE: "incomplete";
849
+ readonly REJECTED: "rejected";
850
+ readonly CORRECTION_REQUESTED: "correction-requested";
851
+ }>]>, "many">>;
852
+ noneOf: 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">>;
792
858
  }, "strip", z.ZodTypeAny, {
793
- type: "anyOf";
794
- terms: string[];
795
- }, {
796
- type: "anyOf";
797
- terms: string[];
798
- }>, z.ZodObject<{
799
- type: z.ZodLiteral<"not">;
800
- term: z.ZodString;
801
- }, "strip", z.ZodTypeAny, {
802
- type: "not";
803
- term: string;
859
+ anyOf?: string[] | undefined;
860
+ noneOf?: string[] | undefined;
804
861
  }, {
805
- type: "not";
806
- term: string;
807
- }>]>, "many">>>;
862
+ anyOf?: string[] | undefined;
863
+ noneOf?: string[] | undefined;
864
+ }>>>;
808
865
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
809
866
  }, "strip", z.ZodTypeAny, {
810
867
  id?: string | undefined;
811
868
  status?: {
812
869
  type: "exact";
813
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
870
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
814
871
  } | {
815
872
  type: "anyOf";
816
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
873
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
817
874
  } | undefined;
818
875
  data?: any;
819
- createdByUserType?: "system" | "user" | undefined;
876
+ createdByUserType?: {
877
+ type: "exact";
878
+ term: "system" | "user";
879
+ } | undefined;
820
880
  createdAt?: {
821
881
  type: "range";
822
882
  gte: string;
@@ -824,6 +884,9 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
824
884
  } | {
825
885
  type: "exact";
826
886
  term: string;
887
+ } | {
888
+ type: "timePeriod";
889
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
827
890
  } | undefined;
828
891
  createdBy?: {
829
892
  type: "exact";
@@ -847,6 +910,9 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
847
910
  } | {
848
911
  type: "exact";
849
912
  term: string;
913
+ } | {
914
+ type: "timePeriod";
915
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
850
916
  } | undefined;
851
917
  trackingId?: {
852
918
  type: "exact";
@@ -863,30 +929,30 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
863
929
  type: "exact";
864
930
  term: string;
865
931
  } | undefined;
866
- flags?: ({
867
- type: "anyOf";
868
- terms: string[];
869
- } | {
870
- type: "not";
871
- term: string;
872
- })[] | undefined;
932
+ flags?: {
933
+ anyOf?: string[] | undefined;
934
+ noneOf?: string[] | undefined;
935
+ } | undefined;
873
936
  eventType?: string | undefined;
874
- 'legalStatus.REGISTERED.createdAt'?: {
937
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
875
938
  type: "range";
876
939
  gte: string;
877
940
  lte: string;
878
941
  } | {
879
942
  type: "exact";
880
943
  term: string;
944
+ } | {
945
+ type: "timePeriod";
946
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
881
947
  } | undefined;
882
- 'legalStatus.REGISTERED.createdAtLocation'?: {
948
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
883
949
  type: "exact";
884
950
  term: string;
885
951
  } | {
886
952
  type: "within";
887
953
  location: string;
888
954
  } | undefined;
889
- 'legalStatus.REGISTERED.registrationNumber'?: {
955
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
890
956
  type: "exact";
891
957
  term: string;
892
958
  } | undefined;
@@ -894,13 +960,16 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
894
960
  id?: string | undefined;
895
961
  status?: {
896
962
  type: "exact";
897
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
963
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
898
964
  } | {
899
965
  type: "anyOf";
900
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
966
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
901
967
  } | undefined;
902
968
  data?: any;
903
- createdByUserType?: "system" | "user" | undefined;
969
+ createdByUserType?: {
970
+ type: "exact";
971
+ term: "system" | "user";
972
+ } | undefined;
904
973
  createdAt?: {
905
974
  type: "range";
906
975
  gte: string;
@@ -908,6 +977,9 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
908
977
  } | {
909
978
  type: "exact";
910
979
  term: string;
980
+ } | {
981
+ type: "timePeriod";
982
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
911
983
  } | undefined;
912
984
  createdBy?: {
913
985
  type: "exact";
@@ -931,6 +1003,9 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
931
1003
  } | {
932
1004
  type: "exact";
933
1005
  term: string;
1006
+ } | {
1007
+ type: "timePeriod";
1008
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
934
1009
  } | undefined;
935
1010
  trackingId?: {
936
1011
  type: "exact";
@@ -947,30 +1022,30 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
947
1022
  type: "exact";
948
1023
  term: string;
949
1024
  } | undefined;
950
- flags?: ({
951
- type: "anyOf";
952
- terms: string[];
953
- } | {
954
- type: "not";
955
- term: string;
956
- })[] | undefined;
1025
+ flags?: {
1026
+ anyOf?: string[] | undefined;
1027
+ noneOf?: string[] | undefined;
1028
+ } | undefined;
957
1029
  eventType?: string | undefined;
958
- 'legalStatus.REGISTERED.createdAt'?: {
1030
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
959
1031
  type: "range";
960
1032
  gte: string;
961
1033
  lte: string;
962
1034
  } | {
963
1035
  type: "exact";
964
1036
  term: string;
1037
+ } | {
1038
+ type: "timePeriod";
1039
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
965
1040
  } | undefined;
966
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1041
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
967
1042
  type: "exact";
968
1043
  term: string;
969
1044
  } | {
970
1045
  type: "within";
971
1046
  location: string;
972
1047
  } | undefined;
973
- 'legalStatus.REGISTERED.registrationNumber'?: {
1048
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
974
1049
  type: "exact";
975
1050
  term: string;
976
1051
  } | undefined;
@@ -978,13 +1053,16 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
978
1053
  id?: string | undefined;
979
1054
  status?: {
980
1055
  type: "exact";
981
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1056
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
982
1057
  } | {
983
1058
  type: "anyOf";
984
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1059
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
985
1060
  } | undefined;
986
1061
  data?: any;
987
- createdByUserType?: "system" | "user" | undefined;
1062
+ createdByUserType?: {
1063
+ type: "exact";
1064
+ term: "system" | "user";
1065
+ } | undefined;
988
1066
  createdAt?: {
989
1067
  type: "range";
990
1068
  gte: string;
@@ -992,6 +1070,9 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
992
1070
  } | {
993
1071
  type: "exact";
994
1072
  term: string;
1073
+ } | {
1074
+ type: "timePeriod";
1075
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
995
1076
  } | undefined;
996
1077
  createdBy?: {
997
1078
  type: "exact";
@@ -1015,6 +1096,9 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1015
1096
  } | {
1016
1097
  type: "exact";
1017
1098
  term: string;
1099
+ } | {
1100
+ type: "timePeriod";
1101
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1018
1102
  } | undefined;
1019
1103
  trackingId?: {
1020
1104
  type: "exact";
@@ -1031,30 +1115,30 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1031
1115
  type: "exact";
1032
1116
  term: string;
1033
1117
  } | undefined;
1034
- flags?: ({
1035
- type: "anyOf";
1036
- terms: string[];
1037
- } | {
1038
- type: "not";
1039
- term: string;
1040
- })[] | undefined;
1118
+ flags?: {
1119
+ anyOf?: string[] | undefined;
1120
+ noneOf?: string[] | undefined;
1121
+ } | undefined;
1041
1122
  eventType?: string | undefined;
1042
- 'legalStatus.REGISTERED.createdAt'?: {
1123
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1043
1124
  type: "range";
1044
1125
  gte: string;
1045
1126
  lte: string;
1046
1127
  } | {
1047
1128
  type: "exact";
1048
1129
  term: string;
1130
+ } | {
1131
+ type: "timePeriod";
1132
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1049
1133
  } | undefined;
1050
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1134
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1051
1135
  type: "exact";
1052
1136
  term: string;
1053
1137
  } | {
1054
1138
  type: "within";
1055
1139
  location: string;
1056
1140
  } | undefined;
1057
- 'legalStatus.REGISTERED.registrationNumber'?: {
1141
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1058
1142
  type: "exact";
1059
1143
  term: string;
1060
1144
  } | undefined;
@@ -1062,13 +1146,16 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1062
1146
  id?: string | undefined;
1063
1147
  status?: {
1064
1148
  type: "exact";
1065
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1149
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1066
1150
  } | {
1067
1151
  type: "anyOf";
1068
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1152
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1069
1153
  } | undefined;
1070
1154
  data?: any;
1071
- createdByUserType?: "system" | "user" | undefined;
1155
+ createdByUserType?: {
1156
+ type: "exact";
1157
+ term: "system" | "user";
1158
+ } | undefined;
1072
1159
  createdAt?: {
1073
1160
  type: "range";
1074
1161
  gte: string;
@@ -1076,6 +1163,9 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1076
1163
  } | {
1077
1164
  type: "exact";
1078
1165
  term: string;
1166
+ } | {
1167
+ type: "timePeriod";
1168
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1079
1169
  } | undefined;
1080
1170
  createdBy?: {
1081
1171
  type: "exact";
@@ -1099,6 +1189,9 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1099
1189
  } | {
1100
1190
  type: "exact";
1101
1191
  term: string;
1192
+ } | {
1193
+ type: "timePeriod";
1194
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1102
1195
  } | undefined;
1103
1196
  trackingId?: {
1104
1197
  type: "exact";
@@ -1115,30 +1208,30 @@ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
1115
1208
  type: "exact";
1116
1209
  term: string;
1117
1210
  } | undefined;
1118
- flags?: ({
1119
- type: "anyOf";
1120
- terms: string[];
1121
- } | {
1122
- type: "not";
1123
- term: string;
1124
- })[] | undefined;
1211
+ flags?: {
1212
+ anyOf?: string[] | undefined;
1213
+ noneOf?: string[] | undefined;
1214
+ } | undefined;
1125
1215
  eventType?: string | undefined;
1126
- 'legalStatus.REGISTERED.createdAt'?: {
1216
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1127
1217
  type: "range";
1128
1218
  gte: string;
1129
1219
  lte: string;
1130
1220
  } | {
1131
1221
  type: "exact";
1132
1222
  term: string;
1223
+ } | {
1224
+ type: "timePeriod";
1225
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1133
1226
  } | undefined;
1134
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1227
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1135
1228
  type: "exact";
1136
1229
  term: string;
1137
1230
  } | {
1138
1231
  type: "within";
1139
1232
  location: string;
1140
1233
  } | undefined;
1141
- 'legalStatus.REGISTERED.registrationNumber'?: {
1234
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1142
1235
  type: "exact";
1143
1236
  term: string;
1144
1237
  } | undefined;
@@ -1150,22 +1243,22 @@ export declare const QueryType: z.ZodObject<{
1150
1243
  eventType: z.ZodOptional<z.ZodString>;
1151
1244
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1152
1245
  type: z.ZodLiteral<"anyOf">;
1153
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1246
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>, "many">;
1154
1247
  }, "strip", z.ZodTypeAny, {
1155
1248
  type: "anyOf";
1156
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1249
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1157
1250
  }, {
1158
1251
  type: "anyOf";
1159
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1252
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1160
1253
  }>, z.ZodObject<{
1161
1254
  type: z.ZodLiteral<"exact">;
1162
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1255
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
1163
1256
  }, "strip", z.ZodTypeAny, {
1164
1257
  type: "exact";
1165
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1258
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1166
1259
  }, {
1167
1260
  type: "exact";
1168
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1261
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1169
1262
  }>]>>>;
1170
1263
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1171
1264
  type: z.ZodLiteral<"exact">;
@@ -1178,14 +1271,11 @@ export declare const QueryType: z.ZodObject<{
1178
1271
  }, {
1179
1272
  type: "exact";
1180
1273
  term: string;
1181
- }>, z.ZodObject<z.objectUtil.extendShape<{
1274
+ }>, z.ZodObject<{
1182
1275
  type: z.ZodLiteral<"range">;
1183
- gte: z.ZodString;
1184
- lte: z.ZodString;
1185
- }, {
1186
1276
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1187
1277
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1188
- }>, "strip", z.ZodTypeAny, {
1278
+ }, "strip", z.ZodTypeAny, {
1189
1279
  type: "range";
1190
1280
  gte: string;
1191
1281
  lte: string;
@@ -1193,6 +1283,15 @@ export declare const QueryType: z.ZodObject<{
1193
1283
  type: "range";
1194
1284
  gte: string;
1195
1285
  lte: string;
1286
+ }>, z.ZodObject<{
1287
+ type: z.ZodLiteral<"timePeriod">;
1288
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ type: "timePeriod";
1291
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1292
+ }, {
1293
+ type: "timePeriod";
1294
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1196
1295
  }>]>>>;
1197
1296
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1198
1297
  type: z.ZodLiteral<"exact">;
@@ -1205,14 +1304,11 @@ export declare const QueryType: z.ZodObject<{
1205
1304
  }, {
1206
1305
  type: "exact";
1207
1306
  term: string;
1208
- }>, z.ZodObject<z.objectUtil.extendShape<{
1307
+ }>, z.ZodObject<{
1209
1308
  type: z.ZodLiteral<"range">;
1210
- gte: z.ZodString;
1211
- lte: z.ZodString;
1212
- }, {
1213
1309
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1214
1310
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1215
- }>, "strip", z.ZodTypeAny, {
1311
+ }, "strip", z.ZodTypeAny, {
1216
1312
  type: "range";
1217
1313
  gte: string;
1218
1314
  lte: string;
@@ -1220,8 +1316,17 @@ export declare const QueryType: z.ZodObject<{
1220
1316
  type: "range";
1221
1317
  gte: string;
1222
1318
  lte: string;
1319
+ }>, z.ZodObject<{
1320
+ type: z.ZodLiteral<"timePeriod">;
1321
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1322
+ }, "strip", z.ZodTypeAny, {
1323
+ type: "timePeriod";
1324
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1325
+ }, {
1326
+ type: "timePeriod";
1327
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1223
1328
  }>]>>>;
1224
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1329
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1225
1330
  type: z.ZodLiteral<"exact">;
1226
1331
  term: z.ZodString;
1227
1332
  }, {
@@ -1232,14 +1337,11 @@ export declare const QueryType: z.ZodObject<{
1232
1337
  }, {
1233
1338
  type: "exact";
1234
1339
  term: string;
1235
- }>, z.ZodObject<z.objectUtil.extendShape<{
1340
+ }>, z.ZodObject<{
1236
1341
  type: z.ZodLiteral<"range">;
1237
- gte: z.ZodString;
1238
- lte: z.ZodString;
1239
- }, {
1240
1342
  gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1241
1343
  lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1242
- }>, "strip", z.ZodTypeAny, {
1344
+ }, "strip", z.ZodTypeAny, {
1243
1345
  type: "range";
1244
1346
  gte: string;
1245
1347
  lte: string;
@@ -1247,8 +1349,17 @@ export declare const QueryType: z.ZodObject<{
1247
1349
  type: "range";
1248
1350
  gte: string;
1249
1351
  lte: string;
1352
+ }>, z.ZodObject<{
1353
+ type: z.ZodLiteral<"timePeriod">;
1354
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
1355
+ }, "strip", z.ZodTypeAny, {
1356
+ type: "timePeriod";
1357
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1358
+ }, {
1359
+ type: "timePeriod";
1360
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1250
1361
  }>]>>>;
1251
- 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1362
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1252
1363
  type: z.ZodLiteral<"within">;
1253
1364
  location: z.ZodString;
1254
1365
  }, "strip", z.ZodTypeAny, {
@@ -1267,7 +1378,7 @@ export declare const QueryType: z.ZodObject<{
1267
1378
  type: "exact";
1268
1379
  term: string;
1269
1380
  }>]>>>;
1270
- 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1381
+ 'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1271
1382
  type: z.ZodLiteral<"exact">;
1272
1383
  term: z.ZodString;
1273
1384
  }, "strip", z.ZodTypeAny, {
@@ -1325,7 +1436,16 @@ export declare const QueryType: z.ZodObject<{
1325
1436
  type: "exact";
1326
1437
  term: string;
1327
1438
  }>>>;
1328
- createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
1439
+ createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1440
+ type: z.ZodLiteral<"exact">;
1441
+ term: z.ZodEnum<["user", "system"]>;
1442
+ }, "strip", z.ZodTypeAny, {
1443
+ type: "exact";
1444
+ term: "system" | "user";
1445
+ }, {
1446
+ type: "exact";
1447
+ term: "system" | "user";
1448
+ }>>>;
1329
1449
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1330
1450
  type: z.ZodLiteral<"exact">;
1331
1451
  term: z.ZodString;
@@ -1356,37 +1476,41 @@ export declare const QueryType: z.ZodObject<{
1356
1476
  type: "exact";
1357
1477
  term: string;
1358
1478
  }>>>;
1359
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1360
- type: z.ZodLiteral<"anyOf">;
1361
- terms: z.ZodArray<z.ZodString, "many">;
1479
+ flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1480
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
1481
+ readonly PRINTED: "printed";
1482
+ readonly INCOMPLETE: "incomplete";
1483
+ readonly REJECTED: "rejected";
1484
+ readonly CORRECTION_REQUESTED: "correction-requested";
1485
+ }>]>, "many">>;
1486
+ noneOf: 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">>;
1362
1492
  }, "strip", z.ZodTypeAny, {
1363
- type: "anyOf";
1364
- terms: string[];
1493
+ anyOf?: string[] | undefined;
1494
+ noneOf?: string[] | undefined;
1365
1495
  }, {
1366
- type: "anyOf";
1367
- terms: string[];
1368
- }>, z.ZodObject<{
1369
- type: z.ZodLiteral<"not">;
1370
- term: z.ZodString;
1371
- }, "strip", z.ZodTypeAny, {
1372
- type: "not";
1373
- term: string;
1374
- }, {
1375
- type: "not";
1376
- term: string;
1377
- }>]>, "many">>>;
1496
+ anyOf?: string[] | undefined;
1497
+ noneOf?: string[] | undefined;
1498
+ }>>>;
1378
1499
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1379
1500
  }, "strip", z.ZodTypeAny, {
1380
1501
  id?: string | undefined;
1381
1502
  status?: {
1382
1503
  type: "exact";
1383
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1504
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1384
1505
  } | {
1385
1506
  type: "anyOf";
1386
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1507
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1387
1508
  } | undefined;
1388
1509
  data?: any;
1389
- createdByUserType?: "system" | "user" | undefined;
1510
+ createdByUserType?: {
1511
+ type: "exact";
1512
+ term: "system" | "user";
1513
+ } | undefined;
1390
1514
  createdAt?: {
1391
1515
  type: "range";
1392
1516
  gte: string;
@@ -1394,6 +1518,9 @@ export declare const QueryType: z.ZodObject<{
1394
1518
  } | {
1395
1519
  type: "exact";
1396
1520
  term: string;
1521
+ } | {
1522
+ type: "timePeriod";
1523
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1397
1524
  } | undefined;
1398
1525
  createdBy?: {
1399
1526
  type: "exact";
@@ -1417,6 +1544,9 @@ export declare const QueryType: z.ZodObject<{
1417
1544
  } | {
1418
1545
  type: "exact";
1419
1546
  term: string;
1547
+ } | {
1548
+ type: "timePeriod";
1549
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1420
1550
  } | undefined;
1421
1551
  trackingId?: {
1422
1552
  type: "exact";
@@ -1433,30 +1563,30 @@ export declare const QueryType: z.ZodObject<{
1433
1563
  type: "exact";
1434
1564
  term: string;
1435
1565
  } | undefined;
1436
- flags?: ({
1437
- type: "anyOf";
1438
- terms: string[];
1439
- } | {
1440
- type: "not";
1441
- term: string;
1442
- })[] | undefined;
1566
+ flags?: {
1567
+ anyOf?: string[] | undefined;
1568
+ noneOf?: string[] | undefined;
1569
+ } | undefined;
1443
1570
  eventType?: string | undefined;
1444
- 'legalStatus.REGISTERED.createdAt'?: {
1571
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1445
1572
  type: "range";
1446
1573
  gte: string;
1447
1574
  lte: string;
1448
1575
  } | {
1449
1576
  type: "exact";
1450
1577
  term: string;
1578
+ } | {
1579
+ type: "timePeriod";
1580
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1451
1581
  } | undefined;
1452
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1582
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1453
1583
  type: "exact";
1454
1584
  term: string;
1455
1585
  } | {
1456
1586
  type: "within";
1457
1587
  location: string;
1458
1588
  } | undefined;
1459
- 'legalStatus.REGISTERED.registrationNumber'?: {
1589
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1460
1590
  type: "exact";
1461
1591
  term: string;
1462
1592
  } | undefined;
@@ -1464,13 +1594,16 @@ export declare const QueryType: z.ZodObject<{
1464
1594
  id?: string | undefined;
1465
1595
  status?: {
1466
1596
  type: "exact";
1467
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1597
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1468
1598
  } | {
1469
1599
  type: "anyOf";
1470
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1600
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1471
1601
  } | undefined;
1472
1602
  data?: any;
1473
- createdByUserType?: "system" | "user" | undefined;
1603
+ createdByUserType?: {
1604
+ type: "exact";
1605
+ term: "system" | "user";
1606
+ } | undefined;
1474
1607
  createdAt?: {
1475
1608
  type: "range";
1476
1609
  gte: string;
@@ -1478,6 +1611,9 @@ export declare const QueryType: z.ZodObject<{
1478
1611
  } | {
1479
1612
  type: "exact";
1480
1613
  term: string;
1614
+ } | {
1615
+ type: "timePeriod";
1616
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1481
1617
  } | undefined;
1482
1618
  createdBy?: {
1483
1619
  type: "exact";
@@ -1501,6 +1637,9 @@ export declare const QueryType: z.ZodObject<{
1501
1637
  } | {
1502
1638
  type: "exact";
1503
1639
  term: string;
1640
+ } | {
1641
+ type: "timePeriod";
1642
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1504
1643
  } | undefined;
1505
1644
  trackingId?: {
1506
1645
  type: "exact";
@@ -1517,30 +1656,30 @@ export declare const QueryType: z.ZodObject<{
1517
1656
  type: "exact";
1518
1657
  term: string;
1519
1658
  } | undefined;
1520
- flags?: ({
1521
- type: "anyOf";
1522
- terms: string[];
1523
- } | {
1524
- type: "not";
1525
- term: string;
1526
- })[] | undefined;
1659
+ flags?: {
1660
+ anyOf?: string[] | undefined;
1661
+ noneOf?: string[] | undefined;
1662
+ } | undefined;
1527
1663
  eventType?: string | undefined;
1528
- 'legalStatus.REGISTERED.createdAt'?: {
1664
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1529
1665
  type: "range";
1530
1666
  gte: string;
1531
1667
  lte: string;
1532
1668
  } | {
1533
1669
  type: "exact";
1534
1670
  term: string;
1671
+ } | {
1672
+ type: "timePeriod";
1673
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1535
1674
  } | undefined;
1536
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1675
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1537
1676
  type: "exact";
1538
1677
  term: string;
1539
1678
  } | {
1540
1679
  type: "within";
1541
1680
  location: string;
1542
1681
  } | undefined;
1543
- 'legalStatus.REGISTERED.registrationNumber'?: {
1682
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1544
1683
  type: "exact";
1545
1684
  term: string;
1546
1685
  } | undefined;
@@ -1548,13 +1687,16 @@ export declare const QueryType: z.ZodObject<{
1548
1687
  id?: string | undefined;
1549
1688
  status?: {
1550
1689
  type: "exact";
1551
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1690
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1552
1691
  } | {
1553
1692
  type: "anyOf";
1554
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1693
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1555
1694
  } | undefined;
1556
1695
  data?: any;
1557
- createdByUserType?: "system" | "user" | undefined;
1696
+ createdByUserType?: {
1697
+ type: "exact";
1698
+ term: "system" | "user";
1699
+ } | undefined;
1558
1700
  createdAt?: {
1559
1701
  type: "range";
1560
1702
  gte: string;
@@ -1562,6 +1704,9 @@ export declare const QueryType: z.ZodObject<{
1562
1704
  } | {
1563
1705
  type: "exact";
1564
1706
  term: string;
1707
+ } | {
1708
+ type: "timePeriod";
1709
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1565
1710
  } | undefined;
1566
1711
  createdBy?: {
1567
1712
  type: "exact";
@@ -1585,6 +1730,9 @@ export declare const QueryType: z.ZodObject<{
1585
1730
  } | {
1586
1731
  type: "exact";
1587
1732
  term: string;
1733
+ } | {
1734
+ type: "timePeriod";
1735
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1588
1736
  } | undefined;
1589
1737
  trackingId?: {
1590
1738
  type: "exact";
@@ -1601,30 +1749,30 @@ export declare const QueryType: z.ZodObject<{
1601
1749
  type: "exact";
1602
1750
  term: string;
1603
1751
  } | undefined;
1604
- flags?: ({
1605
- type: "anyOf";
1606
- terms: string[];
1607
- } | {
1608
- type: "not";
1609
- term: string;
1610
- })[] | undefined;
1752
+ flags?: {
1753
+ anyOf?: string[] | undefined;
1754
+ noneOf?: string[] | undefined;
1755
+ } | undefined;
1611
1756
  eventType?: string | undefined;
1612
- 'legalStatus.REGISTERED.createdAt'?: {
1757
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1613
1758
  type: "range";
1614
1759
  gte: string;
1615
1760
  lte: string;
1616
1761
  } | {
1617
1762
  type: "exact";
1618
1763
  term: string;
1764
+ } | {
1765
+ type: "timePeriod";
1766
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1619
1767
  } | undefined;
1620
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1768
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1621
1769
  type: "exact";
1622
1770
  term: string;
1623
1771
  } | {
1624
1772
  type: "within";
1625
1773
  location: string;
1626
1774
  } | undefined;
1627
- 'legalStatus.REGISTERED.registrationNumber'?: {
1775
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1628
1776
  type: "exact";
1629
1777
  term: string;
1630
1778
  } | undefined;
@@ -1632,13 +1780,16 @@ export declare const QueryType: z.ZodObject<{
1632
1780
  id?: string | undefined;
1633
1781
  status?: {
1634
1782
  type: "exact";
1635
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1783
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1636
1784
  } | {
1637
1785
  type: "anyOf";
1638
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1786
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1639
1787
  } | undefined;
1640
1788
  data?: any;
1641
- createdByUserType?: "system" | "user" | undefined;
1789
+ createdByUserType?: {
1790
+ type: "exact";
1791
+ term: "system" | "user";
1792
+ } | undefined;
1642
1793
  createdAt?: {
1643
1794
  type: "range";
1644
1795
  gte: string;
@@ -1646,6 +1797,9 @@ export declare const QueryType: z.ZodObject<{
1646
1797
  } | {
1647
1798
  type: "exact";
1648
1799
  term: string;
1800
+ } | {
1801
+ type: "timePeriod";
1802
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1649
1803
  } | undefined;
1650
1804
  createdBy?: {
1651
1805
  type: "exact";
@@ -1669,6 +1823,9 @@ export declare const QueryType: z.ZodObject<{
1669
1823
  } | {
1670
1824
  type: "exact";
1671
1825
  term: string;
1826
+ } | {
1827
+ type: "timePeriod";
1828
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1672
1829
  } | undefined;
1673
1830
  trackingId?: {
1674
1831
  type: "exact";
@@ -1685,30 +1842,30 @@ export declare const QueryType: z.ZodObject<{
1685
1842
  type: "exact";
1686
1843
  term: string;
1687
1844
  } | undefined;
1688
- flags?: ({
1689
- type: "anyOf";
1690
- terms: string[];
1691
- } | {
1692
- type: "not";
1693
- term: string;
1694
- })[] | undefined;
1845
+ flags?: {
1846
+ anyOf?: string[] | undefined;
1847
+ noneOf?: string[] | undefined;
1848
+ } | undefined;
1695
1849
  eventType?: string | undefined;
1696
- 'legalStatus.REGISTERED.createdAt'?: {
1850
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1697
1851
  type: "range";
1698
1852
  gte: string;
1699
1853
  lte: string;
1700
1854
  } | {
1701
1855
  type: "exact";
1702
1856
  term: string;
1857
+ } | {
1858
+ type: "timePeriod";
1859
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1703
1860
  } | undefined;
1704
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1861
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1705
1862
  type: "exact";
1706
1863
  term: string;
1707
1864
  } | {
1708
1865
  type: "within";
1709
1866
  location: string;
1710
1867
  } | undefined;
1711
- 'legalStatus.REGISTERED.registrationNumber'?: {
1868
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1712
1869
  type: "exact";
1713
1870
  term: string;
1714
1871
  } | undefined;
@@ -1716,13 +1873,16 @@ export declare const QueryType: z.ZodObject<{
1716
1873
  id?: string | undefined;
1717
1874
  status?: {
1718
1875
  type: "exact";
1719
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1876
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1720
1877
  } | {
1721
1878
  type: "anyOf";
1722
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1879
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1723
1880
  } | undefined;
1724
1881
  data?: any;
1725
- createdByUserType?: "system" | "user" | undefined;
1882
+ createdByUserType?: {
1883
+ type: "exact";
1884
+ term: "system" | "user";
1885
+ } | undefined;
1726
1886
  createdAt?: {
1727
1887
  type: "range";
1728
1888
  gte: string;
@@ -1730,6 +1890,9 @@ export declare const QueryType: z.ZodObject<{
1730
1890
  } | {
1731
1891
  type: "exact";
1732
1892
  term: string;
1893
+ } | {
1894
+ type: "timePeriod";
1895
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1733
1896
  } | undefined;
1734
1897
  createdBy?: {
1735
1898
  type: "exact";
@@ -1753,6 +1916,9 @@ export declare const QueryType: z.ZodObject<{
1753
1916
  } | {
1754
1917
  type: "exact";
1755
1918
  term: string;
1919
+ } | {
1920
+ type: "timePeriod";
1921
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1756
1922
  } | undefined;
1757
1923
  trackingId?: {
1758
1924
  type: "exact";
@@ -1769,30 +1935,30 @@ export declare const QueryType: z.ZodObject<{
1769
1935
  type: "exact";
1770
1936
  term: string;
1771
1937
  } | undefined;
1772
- flags?: ({
1773
- type: "anyOf";
1774
- terms: string[];
1775
- } | {
1776
- type: "not";
1777
- term: string;
1778
- })[] | undefined;
1938
+ flags?: {
1939
+ anyOf?: string[] | undefined;
1940
+ noneOf?: string[] | undefined;
1941
+ } | undefined;
1779
1942
  eventType?: string | undefined;
1780
- 'legalStatus.REGISTERED.createdAt'?: {
1943
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1781
1944
  type: "range";
1782
1945
  gte: string;
1783
1946
  lte: string;
1784
1947
  } | {
1785
1948
  type: "exact";
1786
1949
  term: string;
1950
+ } | {
1951
+ type: "timePeriod";
1952
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1787
1953
  } | undefined;
1788
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1954
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1789
1955
  type: "exact";
1790
1956
  term: string;
1791
1957
  } | {
1792
1958
  type: "within";
1793
1959
  location: string;
1794
1960
  } | undefined;
1795
- 'legalStatus.REGISTERED.registrationNumber'?: {
1961
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1796
1962
  type: "exact";
1797
1963
  term: string;
1798
1964
  } | undefined;
@@ -1800,13 +1966,16 @@ export declare const QueryType: z.ZodObject<{
1800
1966
  id?: string | undefined;
1801
1967
  status?: {
1802
1968
  type: "exact";
1803
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1969
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1804
1970
  } | {
1805
1971
  type: "anyOf";
1806
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1972
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1807
1973
  } | undefined;
1808
1974
  data?: any;
1809
- createdByUserType?: "system" | "user" | undefined;
1975
+ createdByUserType?: {
1976
+ type: "exact";
1977
+ term: "system" | "user";
1978
+ } | undefined;
1810
1979
  createdAt?: {
1811
1980
  type: "range";
1812
1981
  gte: string;
@@ -1814,6 +1983,9 @@ export declare const QueryType: z.ZodObject<{
1814
1983
  } | {
1815
1984
  type: "exact";
1816
1985
  term: string;
1986
+ } | {
1987
+ type: "timePeriod";
1988
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1817
1989
  } | undefined;
1818
1990
  createdBy?: {
1819
1991
  type: "exact";
@@ -1837,6 +2009,9 @@ export declare const QueryType: z.ZodObject<{
1837
2009
  } | {
1838
2010
  type: "exact";
1839
2011
  term: string;
2012
+ } | {
2013
+ type: "timePeriod";
2014
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1840
2015
  } | undefined;
1841
2016
  trackingId?: {
1842
2017
  type: "exact";
@@ -1853,30 +2028,30 @@ export declare const QueryType: z.ZodObject<{
1853
2028
  type: "exact";
1854
2029
  term: string;
1855
2030
  } | undefined;
1856
- flags?: ({
1857
- type: "anyOf";
1858
- terms: string[];
1859
- } | {
1860
- type: "not";
1861
- term: string;
1862
- })[] | undefined;
2031
+ flags?: {
2032
+ anyOf?: string[] | undefined;
2033
+ noneOf?: string[] | undefined;
2034
+ } | undefined;
1863
2035
  eventType?: string | undefined;
1864
- 'legalStatus.REGISTERED.createdAt'?: {
2036
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1865
2037
  type: "range";
1866
2038
  gte: string;
1867
2039
  lte: string;
1868
2040
  } | {
1869
2041
  type: "exact";
1870
2042
  term: string;
2043
+ } | {
2044
+ type: "timePeriod";
2045
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1871
2046
  } | undefined;
1872
- 'legalStatus.REGISTERED.createdAtLocation'?: {
2047
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1873
2048
  type: "exact";
1874
2049
  term: string;
1875
2050
  } | {
1876
2051
  type: "within";
1877
2052
  location: string;
1878
2053
  } | undefined;
1879
- 'legalStatus.REGISTERED.registrationNumber'?: {
2054
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1880
2055
  type: "exact";
1881
2056
  term: string;
1882
2057
  } | undefined;
@@ -1887,13 +2062,16 @@ export declare const QueryType: z.ZodObject<{
1887
2062
  id?: string | undefined;
1888
2063
  status?: {
1889
2064
  type: "exact";
1890
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2065
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1891
2066
  } | {
1892
2067
  type: "anyOf";
1893
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2068
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1894
2069
  } | undefined;
1895
2070
  data?: any;
1896
- createdByUserType?: "system" | "user" | undefined;
2071
+ createdByUserType?: {
2072
+ type: "exact";
2073
+ term: "system" | "user";
2074
+ } | undefined;
1897
2075
  createdAt?: {
1898
2076
  type: "range";
1899
2077
  gte: string;
@@ -1901,6 +2079,9 @@ export declare const QueryType: z.ZodObject<{
1901
2079
  } | {
1902
2080
  type: "exact";
1903
2081
  term: string;
2082
+ } | {
2083
+ type: "timePeriod";
2084
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1904
2085
  } | undefined;
1905
2086
  createdBy?: {
1906
2087
  type: "exact";
@@ -1924,6 +2105,9 @@ export declare const QueryType: z.ZodObject<{
1924
2105
  } | {
1925
2106
  type: "exact";
1926
2107
  term: string;
2108
+ } | {
2109
+ type: "timePeriod";
2110
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1927
2111
  } | undefined;
1928
2112
  trackingId?: {
1929
2113
  type: "exact";
@@ -1940,30 +2124,30 @@ export declare const QueryType: z.ZodObject<{
1940
2124
  type: "exact";
1941
2125
  term: string;
1942
2126
  } | undefined;
1943
- flags?: ({
1944
- type: "anyOf";
1945
- terms: string[];
1946
- } | {
1947
- type: "not";
1948
- term: string;
1949
- })[] | undefined;
2127
+ flags?: {
2128
+ anyOf?: string[] | undefined;
2129
+ noneOf?: string[] | undefined;
2130
+ } | undefined;
1950
2131
  eventType?: string | undefined;
1951
- 'legalStatus.REGISTERED.createdAt'?: {
2132
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1952
2133
  type: "range";
1953
2134
  gte: string;
1954
2135
  lte: string;
1955
2136
  } | {
1956
2137
  type: "exact";
1957
2138
  term: string;
2139
+ } | {
2140
+ type: "timePeriod";
2141
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1958
2142
  } | undefined;
1959
- 'legalStatus.REGISTERED.createdAtLocation'?: {
2143
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1960
2144
  type: "exact";
1961
2145
  term: string;
1962
2146
  } | {
1963
2147
  type: "within";
1964
2148
  location: string;
1965
2149
  } | undefined;
1966
- 'legalStatus.REGISTERED.registrationNumber'?: {
2150
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1967
2151
  type: "exact";
1968
2152
  term: string;
1969
2153
  } | undefined;
@@ -1971,13 +2155,16 @@ export declare const QueryType: z.ZodObject<{
1971
2155
  id?: string | undefined;
1972
2156
  status?: {
1973
2157
  type: "exact";
1974
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2158
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1975
2159
  } | {
1976
2160
  type: "anyOf";
1977
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2161
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1978
2162
  } | undefined;
1979
2163
  data?: any;
1980
- createdByUserType?: "system" | "user" | undefined;
2164
+ createdByUserType?: {
2165
+ type: "exact";
2166
+ term: "system" | "user";
2167
+ } | undefined;
1981
2168
  createdAt?: {
1982
2169
  type: "range";
1983
2170
  gte: string;
@@ -1985,6 +2172,9 @@ export declare const QueryType: z.ZodObject<{
1985
2172
  } | {
1986
2173
  type: "exact";
1987
2174
  term: string;
2175
+ } | {
2176
+ type: "timePeriod";
2177
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1988
2178
  } | undefined;
1989
2179
  createdBy?: {
1990
2180
  type: "exact";
@@ -2008,6 +2198,9 @@ export declare const QueryType: z.ZodObject<{
2008
2198
  } | {
2009
2199
  type: "exact";
2010
2200
  term: string;
2201
+ } | {
2202
+ type: "timePeriod";
2203
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2011
2204
  } | undefined;
2012
2205
  trackingId?: {
2013
2206
  type: "exact";
@@ -2024,30 +2217,30 @@ export declare const QueryType: z.ZodObject<{
2024
2217
  type: "exact";
2025
2218
  term: string;
2026
2219
  } | undefined;
2027
- flags?: ({
2028
- type: "anyOf";
2029
- terms: string[];
2030
- } | {
2031
- type: "not";
2032
- term: string;
2033
- })[] | undefined;
2220
+ flags?: {
2221
+ anyOf?: string[] | undefined;
2222
+ noneOf?: string[] | undefined;
2223
+ } | undefined;
2034
2224
  eventType?: string | undefined;
2035
- 'legalStatus.REGISTERED.createdAt'?: {
2225
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2036
2226
  type: "range";
2037
2227
  gte: string;
2038
2228
  lte: string;
2039
2229
  } | {
2040
2230
  type: "exact";
2041
2231
  term: string;
2232
+ } | {
2233
+ type: "timePeriod";
2234
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2042
2235
  } | undefined;
2043
- 'legalStatus.REGISTERED.createdAtLocation'?: {
2236
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2044
2237
  type: "exact";
2045
2238
  term: string;
2046
2239
  } | {
2047
2240
  type: "within";
2048
2241
  location: string;
2049
2242
  } | undefined;
2050
- 'legalStatus.REGISTERED.registrationNumber'?: {
2243
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2051
2244
  type: "exact";
2052
2245
  term: string;
2053
2246
  } | undefined;
@@ -2058,5 +2251,10 @@ export declare const QueryType: z.ZodObject<{
2058
2251
  }>;
2059
2252
  export type QueryType = z.infer<typeof QueryType>;
2060
2253
  export type QueryExpression = z.infer<typeof QueryExpression>;
2254
+ export declare const SearchScopeAccessLevels: {
2255
+ readonly MY_JURISDICTION: "my-jurisdiction";
2256
+ readonly ALL: "all";
2257
+ };
2258
+ export type SearchScopeAccessLevels = (typeof SearchScopeAccessLevels)[keyof typeof SearchScopeAccessLevels];
2061
2259
  export {};
2062
2260
  //# sourceMappingURL=EventIndex.d.ts.map