@opencrvs/toolkit 1.8.0-rc.facf9d6 → 1.8.0-rc.fafdecd

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 (40) hide show
  1. package/dist/commons/api/router.d.ts +7446 -7966
  2. package/dist/commons/conditionals/conditionals.d.ts +4 -12
  3. package/dist/commons/conditionals/validate.d.ts +6 -0
  4. package/dist/commons/events/ActionConfig.d.ts +59626 -28798
  5. package/dist/commons/events/ActionDocument.d.ts +3774 -1227
  6. package/dist/commons/events/ActionInput.d.ts +3066 -966
  7. package/dist/commons/events/ActionType.d.ts +4 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +339 -36
  9. package/dist/commons/events/CompositeFieldValue.d.ts +37 -9
  10. package/dist/commons/events/Constants.d.ts +1 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +1891 -741
  12. package/dist/commons/events/CreatedAtLocation.d.ts +1 -2
  13. package/dist/commons/events/Draft.d.ts +264 -91
  14. package/dist/commons/events/EventConfig.d.ts +34730 -17420
  15. package/dist/commons/events/EventDocument.d.ts +2390 -803
  16. package/dist/commons/events/EventIndex.d.ts +1130 -257
  17. package/dist/commons/events/EventMetadata.d.ts +76 -64
  18. package/dist/commons/events/FieldConfig.d.ts +2300 -960
  19. package/dist/commons/events/FieldType.d.ts +5 -1
  20. package/dist/commons/events/FieldTypeMapping.d.ts +144 -73
  21. package/dist/commons/events/FieldValue.d.ts +85 -20
  22. package/dist/commons/events/FormConfig.d.ts +23361 -14991
  23. package/dist/commons/events/PageConfig.d.ts +3730 -1680
  24. package/dist/commons/events/SummaryConfig.d.ts +0 -5
  25. package/dist/commons/events/User.d.ts +6 -3
  26. package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
  27. package/dist/commons/events/WorkqueueConfig.d.ts +5509 -1918
  28. package/dist/commons/events/defineConfig.d.ts +4553 -1462
  29. package/dist/commons/events/event.d.ts +10 -18
  30. package/dist/commons/events/field.d.ts +9 -0
  31. package/dist/commons/events/index.d.ts +1 -0
  32. package/dist/commons/events/scopes.d.ts +2 -3
  33. package/dist/commons/events/test.utils.d.ts +183 -50
  34. package/dist/commons/events/transactions.d.ts +1 -1
  35. package/dist/commons/events/utils.d.ts +13648 -1221
  36. package/dist/conditionals/index.js +40 -52
  37. package/dist/events/index.js +2527 -1749
  38. package/dist/scopes/index.d.ts +96 -7
  39. package/dist/scopes/index.js +105 -26
  40. package/package.json +3 -3
@@ -1,22 +1,14 @@
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.ZodNativeEnum<{
6
- readonly CREATED: "CREATED";
7
- readonly NOTIFIED: "NOTIFIED";
8
- readonly DECLARED: "DECLARED";
9
- readonly VALIDATED: "VALIDATED";
10
- readonly REGISTERED: "REGISTERED";
11
- readonly CERTIFIED: "CERTIFIED";
12
- readonly REJECTED: "REJECTED";
13
- readonly ARCHIVED: "ARCHIVED";
14
- }>;
5
+ status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
15
6
  legalStatuses: z.ZodObject<{
16
7
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
8
  createdAt: z.ZodString;
18
9
  createdBy: z.ZodString;
19
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
11
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
20
12
  acceptedAt: z.ZodString;
21
13
  createdByRole: z.ZodString;
22
14
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -25,20 +17,23 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
25
17
  createdBy: string;
26
18
  createdByRole: string;
27
19
  acceptedAt: string;
20
+ createdByUserType?: "system" | "user" | null | undefined;
28
21
  createdBySignature?: string | null | undefined;
29
- createdAtLocation?: string | null | undefined;
22
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
30
23
  }, {
31
24
  createdAt: string;
32
25
  createdBy: string;
33
26
  createdByRole: string;
34
27
  acceptedAt: string;
28
+ createdByUserType?: "system" | "user" | null | undefined;
35
29
  createdBySignature?: string | null | undefined;
36
30
  createdAtLocation?: string | null | undefined;
37
31
  }>>>;
38
32
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
39
33
  createdAt: z.ZodString;
40
34
  createdBy: z.ZodString;
41
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
36
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
42
37
  acceptedAt: z.ZodString;
43
38
  createdByRole: z.ZodString;
44
39
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -50,14 +45,16 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
50
45
  createdByRole: string;
51
46
  registrationNumber: string;
52
47
  acceptedAt: string;
48
+ createdByUserType?: "system" | "user" | null | undefined;
53
49
  createdBySignature?: string | null | undefined;
54
- createdAtLocation?: string | null | undefined;
50
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
55
51
  }, {
56
52
  createdAt: string;
57
53
  createdBy: string;
58
54
  createdByRole: string;
59
55
  registrationNumber: string;
60
56
  acceptedAt: string;
57
+ createdByUserType?: "system" | "user" | null | undefined;
61
58
  createdBySignature?: string | null | undefined;
62
59
  createdAtLocation?: string | null | undefined;
63
60
  }>>>;
@@ -67,8 +64,9 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
67
64
  createdBy: string;
68
65
  createdByRole: string;
69
66
  acceptedAt: string;
67
+ createdByUserType?: "system" | "user" | null | undefined;
70
68
  createdBySignature?: string | null | undefined;
71
- createdAtLocation?: string | null | undefined;
69
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
72
70
  } | null | undefined;
73
71
  REGISTERED?: {
74
72
  createdAt: string;
@@ -76,8 +74,9 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
76
74
  createdByRole: string;
77
75
  registrationNumber: string;
78
76
  acceptedAt: string;
77
+ createdByUserType?: "system" | "user" | null | undefined;
79
78
  createdBySignature?: string | null | undefined;
80
- createdAtLocation?: string | null | undefined;
79
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
81
80
  } | null | undefined;
82
81
  }, {
83
82
  DECLARED?: {
@@ -85,6 +84,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
85
84
  createdBy: string;
86
85
  createdByRole: string;
87
86
  acceptedAt: string;
87
+ createdByUserType?: "system" | "user" | null | undefined;
88
88
  createdBySignature?: string | null | undefined;
89
89
  createdAtLocation?: string | null | undefined;
90
90
  } | null | undefined;
@@ -94,6 +94,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
94
94
  createdByRole: string;
95
95
  registrationNumber: string;
96
96
  acceptedAt: string;
97
+ createdByUserType?: "system" | "user" | null | undefined;
97
98
  createdBySignature?: string | null | undefined;
98
99
  createdAtLocation?: string | null | undefined;
99
100
  } | null | undefined;
@@ -101,44 +102,57 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
101
102
  createdAt: z.ZodString;
102
103
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
104
  createdBy: z.ZodString;
105
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
104
106
  updatedByUserRole: z.ZodString;
105
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
106
108
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
108
110
  updatedAt: z.ZodString;
109
111
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
112
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
113
  trackingId: z.ZodString;
112
114
  flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
113
- readonly CERTIFICATE_PRINTED: "certificate-printed";
115
+ readonly PRINTED: "printed";
116
+ readonly INCOMPLETE: "incomplete";
117
+ readonly REJECTED: "rejected";
118
+ readonly CORRECTION_REQUESTED: "correction-requested";
114
119
  }>]>, "many">;
115
120
  }, {
116
- 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<{
117
- 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>;
118
132
  originalFilename: z.ZodString;
119
133
  type: z.ZodString;
120
134
  }, "strip", z.ZodTypeAny, {
121
135
  type: string;
122
- filename: string;
136
+ path: string;
123
137
  originalFilename: string;
124
138
  }, {
125
139
  type: string;
126
- filename: string;
140
+ path: string;
127
141
  originalFilename: string;
128
142
  }>, z.ZodArray<z.ZodObject<{
129
- filename: z.ZodString;
143
+ path: z.ZodEffects<z.ZodString, string, string>;
130
144
  originalFilename: z.ZodString;
131
145
  type: z.ZodString;
132
146
  option: z.ZodString;
133
147
  }, "strip", z.ZodTypeAny, {
134
148
  type: string;
135
149
  option: string;
136
- filename: string;
150
+ path: string;
137
151
  originalFilename: string;
138
152
  }, {
139
153
  type: string;
140
154
  option: string;
141
- filename: string;
155
+ path: string;
142
156
  originalFilename: string;
143
157
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
144
158
  country: z.ZodString;
@@ -226,16 +240,40 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
226
240
  addressLine2?: string | undefined;
227
241
  addressLine3?: string | undefined;
228
242
  postcodeOrZip?: string | undefined;
229
- }>]>>;
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.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ firstname?: string | null | undefined;
261
+ surname?: string | null | undefined;
262
+ middlename?: string | null | undefined;
263
+ }, {
264
+ firstname?: string | null | undefined;
265
+ surname?: string | null | undefined;
266
+ middlename?: string | null | undefined;
267
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
230
268
  }>, "strip", z.ZodTypeAny, {
231
269
  type: string;
232
- id: string;
270
+ id: string & z.BRAND<"UUID">;
233
271
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
234
272
  createdAt: string;
235
273
  createdBy: string;
236
274
  declaration: Record<string, string | number | boolean | {
237
275
  type: string;
238
- filename: string;
276
+ path: string;
239
277
  originalFilename: string;
240
278
  } | {
241
279
  country: string;
@@ -255,6 +293,14 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
255
293
  province: string;
256
294
  urbanOrRural: "RURAL";
257
295
  village?: string | undefined;
296
+ } | {
297
+ firstname: string;
298
+ surname: string;
299
+ middlename?: string | undefined;
300
+ } | {
301
+ firstname?: string | null | undefined;
302
+ surname?: string | null | undefined;
303
+ middlename?: string | null | undefined;
258
304
  } | {
259
305
  country: string;
260
306
  state: string;
@@ -268,9 +314,12 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
268
314
  } | {
269
315
  type: string;
270
316
  option: string;
271
- filename: string;
317
+ path: string;
272
318
  originalFilename: string;
273
- }[] | [string, string] | undefined>;
319
+ }[] | {
320
+ start: string;
321
+ end: string;
322
+ } | null | undefined>;
274
323
  updatedAt: string;
275
324
  trackingId: string;
276
325
  legalStatuses: {
@@ -279,8 +328,9 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
279
328
  createdBy: string;
280
329
  createdByRole: string;
281
330
  acceptedAt: string;
331
+ createdByUserType?: "system" | "user" | null | undefined;
282
332
  createdBySignature?: string | null | undefined;
283
- createdAtLocation?: string | null | undefined;
333
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
284
334
  } | null | undefined;
285
335
  REGISTERED?: {
286
336
  createdAt: string;
@@ -288,17 +338,19 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
288
338
  createdByRole: string;
289
339
  registrationNumber: string;
290
340
  acceptedAt: string;
341
+ createdByUserType?: "system" | "user" | null | undefined;
291
342
  createdBySignature?: string | null | undefined;
292
- createdAtLocation?: string | null | undefined;
343
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
293
344
  } | null | undefined;
294
345
  };
295
346
  updatedByUserRole: string;
296
347
  flags: string[];
348
+ createdByUserType?: "system" | "user" | null | undefined;
297
349
  createdBySignature?: string | null | undefined;
298
- createdAtLocation?: string | null | undefined;
350
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
299
351
  assignedTo?: string | null | undefined;
300
352
  dateOfEvent?: string | null | undefined;
301
- updatedAtLocation?: string | null | undefined;
353
+ updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
302
354
  updatedBy?: string | null | undefined;
303
355
  }, {
304
356
  type: string;
@@ -308,7 +360,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
308
360
  createdBy: string;
309
361
  declaration: Record<string, string | number | boolean | {
310
362
  type: string;
311
- filename: string;
363
+ path: string;
312
364
  originalFilename: string;
313
365
  } | {
314
366
  country: string;
@@ -328,6 +380,14 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
328
380
  province: string;
329
381
  urbanOrRural: "RURAL";
330
382
  village?: string | undefined;
383
+ } | {
384
+ firstname: string;
385
+ surname: string;
386
+ middlename?: string | undefined;
387
+ } | {
388
+ firstname?: string | null | undefined;
389
+ surname?: string | null | undefined;
390
+ middlename?: string | null | undefined;
331
391
  } | {
332
392
  country: string;
333
393
  state: string;
@@ -341,9 +401,12 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
341
401
  } | {
342
402
  type: string;
343
403
  option: string;
344
- filename: string;
404
+ path: string;
345
405
  originalFilename: string;
346
- }[] | [string, string] | undefined>;
406
+ }[] | {
407
+ start: string;
408
+ end: string;
409
+ } | null | undefined>;
347
410
  updatedAt: string;
348
411
  trackingId: string;
349
412
  legalStatuses: {
@@ -352,6 +415,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
352
415
  createdBy: string;
353
416
  createdByRole: string;
354
417
  acceptedAt: string;
418
+ createdByUserType?: "system" | "user" | null | undefined;
355
419
  createdBySignature?: string | null | undefined;
356
420
  createdAtLocation?: string | null | undefined;
357
421
  } | null | undefined;
@@ -361,12 +425,14 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
361
425
  createdByRole: string;
362
426
  registrationNumber: string;
363
427
  acceptedAt: string;
428
+ createdByUserType?: "system" | "user" | null | undefined;
364
429
  createdBySignature?: string | null | undefined;
365
430
  createdAtLocation?: string | null | undefined;
366
431
  } | null | undefined;
367
432
  };
368
433
  updatedByUserRole: string;
369
434
  flags: string[];
435
+ createdByUserType?: "system" | "user" | null | undefined;
370
436
  createdBySignature?: string | null | undefined;
371
437
  createdAtLocation?: string | null | undefined;
372
438
  assignedTo?: string | null | undefined;
@@ -403,16 +469,6 @@ export declare const Exact: z.ZodObject<{
403
469
  type: "exact";
404
470
  term: string;
405
471
  }>;
406
- export declare const AnyOf: z.ZodObject<{
407
- type: z.ZodLiteral<"anyOf">;
408
- terms: z.ZodArray<z.ZodString, "many">;
409
- }, "strip", z.ZodTypeAny, {
410
- type: "anyOf";
411
- terms: string[];
412
- }, {
413
- type: "anyOf";
414
- terms: string[];
415
- }>;
416
472
  export declare const ExactStatus: z.ZodObject<{
417
473
  type: z.ZodLiteral<"exact">;
418
474
  term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
@@ -423,6 +479,26 @@ export declare const ExactStatus: z.ZodObject<{
423
479
  type: "exact";
424
480
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
425
481
  }>;
482
+ export declare const ExactUserType: z.ZodObject<{
483
+ type: z.ZodLiteral<"exact">;
484
+ term: z.ZodEnum<["user", "system"]>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ type: "exact";
487
+ term: "system" | "user";
488
+ }, {
489
+ type: "exact";
490
+ term: "system" | "user";
491
+ }>;
492
+ export declare const AnyOf: z.ZodObject<{
493
+ type: z.ZodLiteral<"anyOf">;
494
+ terms: z.ZodArray<z.ZodString, "many">;
495
+ }, "strip", z.ZodTypeAny, {
496
+ type: "anyOf";
497
+ terms: string[];
498
+ }, {
499
+ type: "anyOf";
500
+ terms: string[];
501
+ }>;
426
502
  export declare const AnyOfStatus: z.ZodObject<{
427
503
  type: z.ZodLiteral<"anyOf">;
428
504
  terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
@@ -446,15 +522,25 @@ export declare const Range: z.ZodObject<{
446
522
  gte: string;
447
523
  lte: string;
448
524
  }>;
449
- export declare const Not: z.ZodObject<{
450
- type: z.ZodLiteral<"not">;
451
- 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">>;
452
538
  }, "strip", z.ZodTypeAny, {
453
- type: "not";
454
- term: string;
539
+ anyOf?: string[] | undefined;
540
+ noneOf?: string[] | undefined;
455
541
  }, {
456
- type: "not";
457
- term: string;
542
+ anyOf?: string[] | undefined;
543
+ noneOf?: string[] | undefined;
458
544
  }>;
459
545
  export declare const Within: z.ZodObject<{
460
546
  type: z.ZodLiteral<"within">;
@@ -466,10 +552,24 @@ export declare const Within: z.ZodObject<{
466
552
  type: "within";
467
553
  location: string;
468
554
  }>;
469
- export declare const DateCondition: z.ZodUnion<[z.ZodObject<{
555
+ export declare const ExactDate: z.ZodObject<z.objectUtil.extendShape<{
470
556
  type: z.ZodLiteral<"exact">;
471
557
  term: z.ZodString;
472
- }, "strip", z.ZodTypeAny, {
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, {
473
573
  type: "exact";
474
574
  term: string;
475
575
  }, {
@@ -477,8 +577,8 @@ export declare const DateCondition: z.ZodUnion<[z.ZodObject<{
477
577
  term: string;
478
578
  }>, z.ZodObject<{
479
579
  type: z.ZodLiteral<"range">;
480
- gte: z.ZodString;
481
- lte: z.ZodString;
580
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
581
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
482
582
  }, "strip", z.ZodTypeAny, {
483
583
  type: "range";
484
584
  gte: string;
@@ -487,14 +587,25 @@ export declare const DateCondition: z.ZodUnion<[z.ZodObject<{
487
587
  type: "range";
488
588
  gte: string;
489
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";
490
599
  }>]>;
600
+ export type DateCondition = z.infer<typeof DateCondition>;
491
601
  export declare const QueryInput: ZodType;
492
- 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>;
493
603
  type QueryMap = {
494
604
  [key: string]: BaseInput | QueryMap;
495
605
  };
496
606
  export type QueryInputType = BaseInput | QueryMap;
497
- export declare const QueryExpression: z.ZodObject<{
607
+ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
608
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
498
609
  eventType: z.ZodOptional<z.ZodString>;
499
610
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
500
611
  type: z.ZodLiteral<"anyOf">;
@@ -515,10 +626,12 @@ export declare const QueryExpression: z.ZodObject<{
515
626
  type: "exact";
516
627
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
517
628
  }>]>>>;
518
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
629
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
519
630
  type: z.ZodLiteral<"exact">;
520
631
  term: z.ZodString;
521
- }, "strip", z.ZodTypeAny, {
632
+ }, {
633
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
634
+ }>, "strip", z.ZodTypeAny, {
522
635
  type: "exact";
523
636
  term: string;
524
637
  }, {
@@ -526,8 +639,8 @@ export declare const QueryExpression: z.ZodObject<{
526
639
  term: string;
527
640
  }>, z.ZodObject<{
528
641
  type: z.ZodLiteral<"range">;
529
- gte: z.ZodString;
530
- lte: z.ZodString;
642
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
643
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
531
644
  }, "strip", z.ZodTypeAny, {
532
645
  type: "range";
533
646
  gte: string;
@@ -536,11 +649,22 @@ export declare const QueryExpression: z.ZodObject<{
536
649
  type: "range";
537
650
  gte: string;
538
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";
539
661
  }>]>>>;
540
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
662
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
541
663
  type: z.ZodLiteral<"exact">;
542
664
  term: z.ZodString;
543
- }, "strip", z.ZodTypeAny, {
665
+ }, {
666
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
667
+ }>, "strip", z.ZodTypeAny, {
544
668
  type: "exact";
545
669
  term: string;
546
670
  }, {
@@ -548,8 +672,8 @@ export declare const QueryExpression: z.ZodObject<{
548
672
  term: string;
549
673
  }>, z.ZodObject<{
550
674
  type: z.ZodLiteral<"range">;
551
- gte: z.ZodString;
552
- lte: z.ZodString;
675
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
676
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
553
677
  }, "strip", z.ZodTypeAny, {
554
678
  type: "range";
555
679
  gte: string;
@@ -558,11 +682,22 @@ export declare const QueryExpression: z.ZodObject<{
558
682
  type: "range";
559
683
  gte: string;
560
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";
561
694
  }>]>>>;
562
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
695
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
563
696
  type: z.ZodLiteral<"exact">;
564
697
  term: z.ZodString;
565
- }, "strip", z.ZodTypeAny, {
698
+ }, {
699
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
700
+ }>, "strip", z.ZodTypeAny, {
566
701
  type: "exact";
567
702
  term: string;
568
703
  }, {
@@ -570,8 +705,8 @@ export declare const QueryExpression: z.ZodObject<{
570
705
  term: string;
571
706
  }>, z.ZodObject<{
572
707
  type: z.ZodLiteral<"range">;
573
- gte: z.ZodString;
574
- lte: z.ZodString;
708
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
709
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
575
710
  }, "strip", z.ZodTypeAny, {
576
711
  type: "range";
577
712
  gte: string;
@@ -580,8 +715,17 @@ export declare const QueryExpression: z.ZodObject<{
580
715
  type: "range";
581
716
  gte: string;
582
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";
583
727
  }>]>>>;
584
- 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
728
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
585
729
  type: z.ZodLiteral<"within">;
586
730
  location: z.ZodString;
587
731
  }, "strip", z.ZodTypeAny, {
@@ -600,6 +744,16 @@ export declare const QueryExpression: z.ZodObject<{
600
744
  type: "exact";
601
745
  term: string;
602
746
  }>]>>>;
747
+ 'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
748
+ type: z.ZodLiteral<"exact">;
749
+ term: z.ZodString;
750
+ }, "strip", z.ZodTypeAny, {
751
+ type: "exact";
752
+ term: string;
753
+ }, {
754
+ type: "exact";
755
+ term: string;
756
+ }>>>;
603
757
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
604
758
  type: z.ZodLiteral<"within">;
605
759
  location: z.ZodString;
@@ -648,6 +802,16 @@ export declare const QueryExpression: z.ZodObject<{
648
802
  type: "exact";
649
803
  term: string;
650
804
  }>>>;
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
+ }>>>;
651
815
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
652
816
  type: z.ZodLiteral<"exact">;
653
817
  term: z.ZodString;
@@ -678,27 +842,29 @@ export declare const QueryExpression: z.ZodObject<{
678
842
  type: "exact";
679
843
  term: string;
680
844
  }>>>;
681
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
682
- type: z.ZodLiteral<"anyOf">;
683
- terms: z.ZodArray<z.ZodString, "many">;
684
- }, "strip", z.ZodTypeAny, {
685
- type: "anyOf";
686
- terms: string[];
687
- }, {
688
- type: "anyOf";
689
- terms: string[];
690
- }>, z.ZodObject<{
691
- type: z.ZodLiteral<"not">;
692
- term: z.ZodString;
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">>;
693
858
  }, "strip", z.ZodTypeAny, {
694
- type: "not";
695
- term: string;
859
+ anyOf?: string[] | undefined;
860
+ noneOf?: string[] | undefined;
696
861
  }, {
697
- type: "not";
698
- term: string;
699
- }>]>, "many">>>;
862
+ anyOf?: string[] | undefined;
863
+ noneOf?: string[] | undefined;
864
+ }>>>;
700
865
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
701
866
  }, "strip", z.ZodTypeAny, {
867
+ id?: string | undefined;
702
868
  status?: {
703
869
  type: "exact";
704
870
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -707,13 +873,20 @@ export declare const QueryExpression: z.ZodObject<{
707
873
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
708
874
  } | undefined;
709
875
  data?: any;
710
- createdAt?: {
876
+ createdByUserType?: {
711
877
  type: "exact";
712
- term: string;
713
- } | {
878
+ term: "system" | "user";
879
+ } | undefined;
880
+ createdAt?: {
714
881
  type: "range";
715
882
  gte: string;
716
883
  lte: string;
884
+ } | {
885
+ type: "exact";
886
+ term: string;
887
+ } | {
888
+ type: "timePeriod";
889
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
717
890
  } | undefined;
718
891
  createdBy?: {
719
892
  type: "exact";
@@ -731,12 +904,15 @@ export declare const QueryExpression: z.ZodObject<{
731
904
  term: string;
732
905
  } | undefined;
733
906
  updatedAt?: {
734
- type: "exact";
735
- term: string;
736
- } | {
737
907
  type: "range";
738
908
  gte: string;
739
909
  lte: string;
910
+ } | {
911
+ type: "exact";
912
+ term: string;
913
+ } | {
914
+ type: "timePeriod";
915
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
740
916
  } | undefined;
741
917
  trackingId?: {
742
918
  type: "exact";
@@ -753,30 +929,35 @@ export declare const QueryExpression: z.ZodObject<{
753
929
  type: "exact";
754
930
  term: string;
755
931
  } | undefined;
756
- flags?: ({
757
- type: "anyOf";
758
- terms: string[];
759
- } | {
760
- type: "not";
761
- term: string;
762
- })[] | undefined;
932
+ flags?: {
933
+ anyOf?: string[] | undefined;
934
+ noneOf?: string[] | undefined;
935
+ } | undefined;
763
936
  eventType?: string | undefined;
764
- 'legalStatus.REGISTERED.createdAt'?: {
765
- type: "exact";
766
- term: string;
767
- } | {
937
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
768
938
  type: "range";
769
939
  gte: string;
770
940
  lte: string;
941
+ } | {
942
+ type: "exact";
943
+ term: string;
944
+ } | {
945
+ type: "timePeriod";
946
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
771
947
  } | undefined;
772
- 'legalStatus.REGISTERED.createdAtLocation'?: {
948
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
773
949
  type: "exact";
774
950
  term: string;
775
951
  } | {
776
952
  type: "within";
777
953
  location: string;
778
954
  } | undefined;
955
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
956
+ type: "exact";
957
+ term: string;
958
+ } | undefined;
779
959
  }, {
960
+ id?: string | undefined;
780
961
  status?: {
781
962
  type: "exact";
782
963
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -785,13 +966,20 @@ export declare const QueryExpression: z.ZodObject<{
785
966
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
786
967
  } | undefined;
787
968
  data?: any;
788
- createdAt?: {
969
+ createdByUserType?: {
789
970
  type: "exact";
790
- term: string;
791
- } | {
971
+ term: "system" | "user";
972
+ } | undefined;
973
+ createdAt?: {
792
974
  type: "range";
793
975
  gte: string;
794
976
  lte: string;
977
+ } | {
978
+ type: "exact";
979
+ term: string;
980
+ } | {
981
+ type: "timePeriod";
982
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
795
983
  } | undefined;
796
984
  createdBy?: {
797
985
  type: "exact";
@@ -809,12 +997,15 @@ export declare const QueryExpression: z.ZodObject<{
809
997
  term: string;
810
998
  } | undefined;
811
999
  updatedAt?: {
812
- type: "exact";
813
- term: string;
814
- } | {
815
1000
  type: "range";
816
1001
  gte: string;
817
1002
  lte: string;
1003
+ } | {
1004
+ type: "exact";
1005
+ term: string;
1006
+ } | {
1007
+ type: "timePeriod";
1008
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
818
1009
  } | undefined;
819
1010
  trackingId?: {
820
1011
  type: "exact";
@@ -831,79 +1022,250 @@ export declare const QueryExpression: z.ZodObject<{
831
1022
  type: "exact";
832
1023
  term: string;
833
1024
  } | undefined;
834
- flags?: ({
1025
+ flags?: {
1026
+ anyOf?: string[] | undefined;
1027
+ noneOf?: string[] | undefined;
1028
+ } | undefined;
1029
+ eventType?: string | undefined;
1030
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1031
+ type: "range";
1032
+ gte: string;
1033
+ lte: string;
1034
+ } | {
1035
+ type: "exact";
1036
+ term: string;
1037
+ } | {
1038
+ type: "timePeriod";
1039
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1040
+ } | undefined;
1041
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1042
+ type: "exact";
1043
+ term: string;
1044
+ } | {
1045
+ type: "within";
1046
+ location: string;
1047
+ } | undefined;
1048
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1049
+ type: "exact";
1050
+ term: string;
1051
+ } | undefined;
1052
+ }>, {
1053
+ id?: string | undefined;
1054
+ status?: {
1055
+ type: "exact";
1056
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1057
+ } | {
835
1058
  type: "anyOf";
836
- terms: string[];
1059
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1060
+ } | undefined;
1061
+ data?: any;
1062
+ createdByUserType?: {
1063
+ type: "exact";
1064
+ term: "system" | "user";
1065
+ } | undefined;
1066
+ createdAt?: {
1067
+ type: "range";
1068
+ gte: string;
1069
+ lte: string;
837
1070
  } | {
838
- type: "not";
1071
+ type: "exact";
839
1072
  term: string;
840
- })[] | undefined;
841
- eventType?: string | undefined;
842
- 'legalStatus.REGISTERED.createdAt'?: {
1073
+ } | {
1074
+ type: "timePeriod";
1075
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1076
+ } | undefined;
1077
+ createdBy?: {
1078
+ type: "exact";
1079
+ term: string;
1080
+ } | undefined;
1081
+ createdAtLocation?: {
843
1082
  type: "exact";
844
1083
  term: string;
845
1084
  } | {
1085
+ type: "within";
1086
+ location: string;
1087
+ } | undefined;
1088
+ assignedTo?: {
1089
+ type: "exact";
1090
+ term: string;
1091
+ } | undefined;
1092
+ updatedAt?: {
846
1093
  type: "range";
847
1094
  gte: string;
848
1095
  lte: string;
1096
+ } | {
1097
+ type: "exact";
1098
+ term: string;
1099
+ } | {
1100
+ type: "timePeriod";
1101
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1102
+ } | undefined;
1103
+ trackingId?: {
1104
+ type: "exact";
1105
+ term: string;
849
1106
  } | undefined;
850
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1107
+ updatedAtLocation?: {
851
1108
  type: "exact";
852
1109
  term: string;
853
1110
  } | {
854
1111
  type: "within";
855
1112
  location: string;
856
1113
  } | undefined;
857
- }>;
858
- export declare const QueryType: z.ZodObject<{
859
- type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
860
- clauses: z.ZodEffects<z.ZodArray<z.ZodObject<{
861
- eventType: z.ZodOptional<z.ZodString>;
862
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
863
- type: z.ZodLiteral<"anyOf">;
864
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
865
- }, "strip", z.ZodTypeAny, {
866
- type: "anyOf";
867
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
868
- }, {
869
- type: "anyOf";
870
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
871
- }>, z.ZodObject<{
872
- type: z.ZodLiteral<"exact">;
873
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
874
- }, "strip", z.ZodTypeAny, {
875
- type: "exact";
876
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
877
- }, {
878
- type: "exact";
879
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
880
- }>]>>>;
881
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
882
- type: z.ZodLiteral<"exact">;
883
- term: z.ZodString;
884
- }, "strip", z.ZodTypeAny, {
885
- type: "exact";
886
- term: string;
887
- }, {
888
- type: "exact";
889
- term: string;
890
- }>, z.ZodObject<{
891
- type: z.ZodLiteral<"range">;
892
- gte: z.ZodString;
893
- lte: z.ZodString;
894
- }, "strip", z.ZodTypeAny, {
895
- type: "range";
896
- gte: string;
897
- lte: string;
898
- }, {
899
- type: "range";
900
- gte: string;
901
- lte: string;
1114
+ updatedBy?: {
1115
+ type: "exact";
1116
+ term: string;
1117
+ } | undefined;
1118
+ flags?: {
1119
+ anyOf?: string[] | undefined;
1120
+ noneOf?: string[] | undefined;
1121
+ } | undefined;
1122
+ eventType?: string | undefined;
1123
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1124
+ type: "range";
1125
+ gte: string;
1126
+ lte: string;
1127
+ } | {
1128
+ type: "exact";
1129
+ term: string;
1130
+ } | {
1131
+ type: "timePeriod";
1132
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1133
+ } | undefined;
1134
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1135
+ type: "exact";
1136
+ term: string;
1137
+ } | {
1138
+ type: "within";
1139
+ location: string;
1140
+ } | undefined;
1141
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1142
+ type: "exact";
1143
+ term: string;
1144
+ } | undefined;
1145
+ }, {
1146
+ id?: string | undefined;
1147
+ status?: {
1148
+ type: "exact";
1149
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1150
+ } | {
1151
+ type: "anyOf";
1152
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1153
+ } | undefined;
1154
+ data?: any;
1155
+ createdByUserType?: {
1156
+ type: "exact";
1157
+ term: "system" | "user";
1158
+ } | undefined;
1159
+ createdAt?: {
1160
+ type: "range";
1161
+ gte: string;
1162
+ lte: string;
1163
+ } | {
1164
+ type: "exact";
1165
+ term: string;
1166
+ } | {
1167
+ type: "timePeriod";
1168
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1169
+ } | undefined;
1170
+ createdBy?: {
1171
+ type: "exact";
1172
+ term: string;
1173
+ } | undefined;
1174
+ createdAtLocation?: {
1175
+ type: "exact";
1176
+ term: string;
1177
+ } | {
1178
+ type: "within";
1179
+ location: string;
1180
+ } | undefined;
1181
+ assignedTo?: {
1182
+ type: "exact";
1183
+ term: string;
1184
+ } | undefined;
1185
+ updatedAt?: {
1186
+ type: "range";
1187
+ gte: string;
1188
+ lte: string;
1189
+ } | {
1190
+ type: "exact";
1191
+ term: string;
1192
+ } | {
1193
+ type: "timePeriod";
1194
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1195
+ } | undefined;
1196
+ trackingId?: {
1197
+ type: "exact";
1198
+ term: string;
1199
+ } | undefined;
1200
+ updatedAtLocation?: {
1201
+ type: "exact";
1202
+ term: string;
1203
+ } | {
1204
+ type: "within";
1205
+ location: string;
1206
+ } | undefined;
1207
+ updatedBy?: {
1208
+ type: "exact";
1209
+ term: string;
1210
+ } | undefined;
1211
+ flags?: {
1212
+ anyOf?: string[] | undefined;
1213
+ noneOf?: string[] | undefined;
1214
+ } | undefined;
1215
+ eventType?: string | undefined;
1216
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1217
+ type: "range";
1218
+ gte: string;
1219
+ lte: string;
1220
+ } | {
1221
+ type: "exact";
1222
+ term: string;
1223
+ } | {
1224
+ type: "timePeriod";
1225
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1226
+ } | undefined;
1227
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1228
+ type: "exact";
1229
+ term: string;
1230
+ } | {
1231
+ type: "within";
1232
+ location: string;
1233
+ } | undefined;
1234
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1235
+ type: "exact";
1236
+ term: string;
1237
+ } | undefined;
1238
+ }>;
1239
+ export declare const QueryType: z.ZodObject<{
1240
+ type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
1241
+ clauses: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
1242
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1243
+ eventType: z.ZodOptional<z.ZodString>;
1244
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1245
+ type: z.ZodLiteral<"anyOf">;
1246
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ type: "anyOf";
1249
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1250
+ }, {
1251
+ type: "anyOf";
1252
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1253
+ }>, z.ZodObject<{
1254
+ type: z.ZodLiteral<"exact">;
1255
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
1256
+ }, "strip", z.ZodTypeAny, {
1257
+ type: "exact";
1258
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1259
+ }, {
1260
+ type: "exact";
1261
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
902
1262
  }>]>>>;
903
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1263
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
904
1264
  type: z.ZodLiteral<"exact">;
905
1265
  term: z.ZodString;
906
- }, "strip", z.ZodTypeAny, {
1266
+ }, {
1267
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1268
+ }>, "strip", z.ZodTypeAny, {
907
1269
  type: "exact";
908
1270
  term: string;
909
1271
  }, {
@@ -911,8 +1273,8 @@ export declare const QueryType: z.ZodObject<{
911
1273
  term: string;
912
1274
  }>, z.ZodObject<{
913
1275
  type: z.ZodLiteral<"range">;
914
- gte: z.ZodString;
915
- lte: z.ZodString;
1276
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1277
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
916
1278
  }, "strip", z.ZodTypeAny, {
917
1279
  type: "range";
918
1280
  gte: string;
@@ -921,11 +1283,55 @@ export declare const QueryType: z.ZodObject<{
921
1283
  type: "range";
922
1284
  gte: string;
923
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";
924
1295
  }>]>>>;
925
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1296
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
926
1297
  type: z.ZodLiteral<"exact">;
927
1298
  term: z.ZodString;
1299
+ }, {
1300
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1301
+ }>, "strip", z.ZodTypeAny, {
1302
+ type: "exact";
1303
+ term: string;
1304
+ }, {
1305
+ type: "exact";
1306
+ term: string;
1307
+ }>, z.ZodObject<{
1308
+ type: z.ZodLiteral<"range">;
1309
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1310
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1311
+ }, "strip", z.ZodTypeAny, {
1312
+ type: "range";
1313
+ gte: string;
1314
+ lte: string;
1315
+ }, {
1316
+ type: "range";
1317
+ gte: string;
1318
+ lte: string;
1319
+ }>, z.ZodObject<{
1320
+ type: z.ZodLiteral<"timePeriod">;
1321
+ term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
928
1322
  }, "strip", z.ZodTypeAny, {
1323
+ type: "timePeriod";
1324
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1325
+ }, {
1326
+ type: "timePeriod";
1327
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1328
+ }>]>>>;
1329
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1330
+ type: z.ZodLiteral<"exact">;
1331
+ term: z.ZodString;
1332
+ }, {
1333
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1334
+ }>, "strip", z.ZodTypeAny, {
929
1335
  type: "exact";
930
1336
  term: string;
931
1337
  }, {
@@ -933,8 +1339,8 @@ export declare const QueryType: z.ZodObject<{
933
1339
  term: string;
934
1340
  }>, z.ZodObject<{
935
1341
  type: z.ZodLiteral<"range">;
936
- gte: z.ZodString;
937
- lte: z.ZodString;
1342
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1343
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
938
1344
  }, "strip", z.ZodTypeAny, {
939
1345
  type: "range";
940
1346
  gte: string;
@@ -943,8 +1349,17 @@ export declare const QueryType: z.ZodObject<{
943
1349
  type: "range";
944
1350
  gte: string;
945
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";
946
1361
  }>]>>>;
947
- 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1362
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
948
1363
  type: z.ZodLiteral<"within">;
949
1364
  location: z.ZodString;
950
1365
  }, "strip", z.ZodTypeAny, {
@@ -963,6 +1378,16 @@ export declare const QueryType: z.ZodObject<{
963
1378
  type: "exact";
964
1379
  term: string;
965
1380
  }>]>>>;
1381
+ 'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1382
+ type: z.ZodLiteral<"exact">;
1383
+ term: z.ZodString;
1384
+ }, "strip", z.ZodTypeAny, {
1385
+ type: "exact";
1386
+ term: string;
1387
+ }, {
1388
+ type: "exact";
1389
+ term: string;
1390
+ }>>>;
966
1391
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
967
1392
  type: z.ZodLiteral<"within">;
968
1393
  location: z.ZodString;
@@ -1011,6 +1436,16 @@ export declare const QueryType: z.ZodObject<{
1011
1436
  type: "exact";
1012
1437
  term: string;
1013
1438
  }>>>;
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
+ }>>>;
1014
1449
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1015
1450
  type: z.ZodLiteral<"exact">;
1016
1451
  term: z.ZodString;
@@ -1041,27 +1476,29 @@ export declare const QueryType: z.ZodObject<{
1041
1476
  type: "exact";
1042
1477
  term: string;
1043
1478
  }>>>;
1044
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1045
- type: z.ZodLiteral<"anyOf">;
1046
- terms: z.ZodArray<z.ZodString, "many">;
1047
- }, "strip", z.ZodTypeAny, {
1048
- type: "anyOf";
1049
- terms: string[];
1050
- }, {
1051
- type: "anyOf";
1052
- terms: string[];
1053
- }>, z.ZodObject<{
1054
- type: z.ZodLiteral<"not">;
1055
- term: z.ZodString;
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">>;
1056
1492
  }, "strip", z.ZodTypeAny, {
1057
- type: "not";
1058
- term: string;
1493
+ anyOf?: string[] | undefined;
1494
+ noneOf?: string[] | undefined;
1059
1495
  }, {
1060
- type: "not";
1061
- term: string;
1062
- }>]>, "many">>>;
1496
+ anyOf?: string[] | undefined;
1497
+ noneOf?: string[] | undefined;
1498
+ }>>>;
1063
1499
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1064
1500
  }, "strip", z.ZodTypeAny, {
1501
+ id?: string | undefined;
1065
1502
  status?: {
1066
1503
  type: "exact";
1067
1504
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1070,13 +1507,20 @@ export declare const QueryType: z.ZodObject<{
1070
1507
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1071
1508
  } | undefined;
1072
1509
  data?: any;
1073
- createdAt?: {
1510
+ createdByUserType?: {
1074
1511
  type: "exact";
1075
- term: string;
1076
- } | {
1512
+ term: "system" | "user";
1513
+ } | undefined;
1514
+ createdAt?: {
1077
1515
  type: "range";
1078
1516
  gte: string;
1079
1517
  lte: string;
1518
+ } | {
1519
+ type: "exact";
1520
+ term: string;
1521
+ } | {
1522
+ type: "timePeriod";
1523
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1080
1524
  } | undefined;
1081
1525
  createdBy?: {
1082
1526
  type: "exact";
@@ -1094,12 +1538,15 @@ export declare const QueryType: z.ZodObject<{
1094
1538
  term: string;
1095
1539
  } | undefined;
1096
1540
  updatedAt?: {
1097
- type: "exact";
1098
- term: string;
1099
- } | {
1100
1541
  type: "range";
1101
1542
  gte: string;
1102
1543
  lte: string;
1544
+ } | {
1545
+ type: "exact";
1546
+ term: string;
1547
+ } | {
1548
+ type: "timePeriod";
1549
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1103
1550
  } | undefined;
1104
1551
  trackingId?: {
1105
1552
  type: "exact";
@@ -1116,30 +1563,35 @@ export declare const QueryType: z.ZodObject<{
1116
1563
  type: "exact";
1117
1564
  term: string;
1118
1565
  } | undefined;
1119
- flags?: ({
1120
- type: "anyOf";
1121
- terms: string[];
1122
- } | {
1123
- type: "not";
1124
- term: string;
1125
- })[] | undefined;
1566
+ flags?: {
1567
+ anyOf?: string[] | undefined;
1568
+ noneOf?: string[] | undefined;
1569
+ } | undefined;
1126
1570
  eventType?: string | undefined;
1127
- 'legalStatus.REGISTERED.createdAt'?: {
1128
- type: "exact";
1129
- term: string;
1130
- } | {
1571
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1131
1572
  type: "range";
1132
1573
  gte: string;
1133
1574
  lte: string;
1575
+ } | {
1576
+ type: "exact";
1577
+ term: string;
1578
+ } | {
1579
+ type: "timePeriod";
1580
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1134
1581
  } | undefined;
1135
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1582
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1136
1583
  type: "exact";
1137
1584
  term: string;
1138
1585
  } | {
1139
1586
  type: "within";
1140
1587
  location: string;
1141
1588
  } | undefined;
1589
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1590
+ type: "exact";
1591
+ term: string;
1592
+ } | undefined;
1142
1593
  }, {
1594
+ id?: string | undefined;
1143
1595
  status?: {
1144
1596
  type: "exact";
1145
1597
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1148,13 +1600,20 @@ export declare const QueryType: z.ZodObject<{
1148
1600
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1149
1601
  } | undefined;
1150
1602
  data?: any;
1151
- createdAt?: {
1603
+ createdByUserType?: {
1152
1604
  type: "exact";
1153
- term: string;
1154
- } | {
1605
+ term: "system" | "user";
1606
+ } | undefined;
1607
+ createdAt?: {
1155
1608
  type: "range";
1156
1609
  gte: string;
1157
1610
  lte: string;
1611
+ } | {
1612
+ type: "exact";
1613
+ term: string;
1614
+ } | {
1615
+ type: "timePeriod";
1616
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1158
1617
  } | undefined;
1159
1618
  createdBy?: {
1160
1619
  type: "exact";
@@ -1172,12 +1631,15 @@ export declare const QueryType: z.ZodObject<{
1172
1631
  term: string;
1173
1632
  } | undefined;
1174
1633
  updatedAt?: {
1175
- type: "exact";
1176
- term: string;
1177
- } | {
1178
1634
  type: "range";
1179
1635
  gte: string;
1180
1636
  lte: string;
1637
+ } | {
1638
+ type: "exact";
1639
+ term: string;
1640
+ } | {
1641
+ type: "timePeriod";
1642
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1181
1643
  } | undefined;
1182
1644
  trackingId?: {
1183
1645
  type: "exact";
@@ -1194,30 +1656,35 @@ export declare const QueryType: z.ZodObject<{
1194
1656
  type: "exact";
1195
1657
  term: string;
1196
1658
  } | undefined;
1197
- flags?: ({
1198
- type: "anyOf";
1199
- terms: string[];
1200
- } | {
1201
- type: "not";
1202
- term: string;
1203
- })[] | undefined;
1659
+ flags?: {
1660
+ anyOf?: string[] | undefined;
1661
+ noneOf?: string[] | undefined;
1662
+ } | undefined;
1204
1663
  eventType?: string | undefined;
1205
- 'legalStatus.REGISTERED.createdAt'?: {
1206
- type: "exact";
1207
- term: string;
1208
- } | {
1664
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1209
1665
  type: "range";
1210
1666
  gte: string;
1211
1667
  lte: string;
1668
+ } | {
1669
+ type: "exact";
1670
+ term: string;
1671
+ } | {
1672
+ type: "timePeriod";
1673
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1212
1674
  } | undefined;
1213
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1675
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1214
1676
  type: "exact";
1215
1677
  term: string;
1216
1678
  } | {
1217
1679
  type: "within";
1218
1680
  location: string;
1219
1681
  } | undefined;
1220
- }>, "many">, {
1682
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1683
+ type: "exact";
1684
+ term: string;
1685
+ } | undefined;
1686
+ }>, {
1687
+ id?: string | undefined;
1221
1688
  status?: {
1222
1689
  type: "exact";
1223
1690
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1226,13 +1693,20 @@ export declare const QueryType: z.ZodObject<{
1226
1693
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1227
1694
  } | undefined;
1228
1695
  data?: any;
1229
- createdAt?: {
1696
+ createdByUserType?: {
1230
1697
  type: "exact";
1231
- term: string;
1232
- } | {
1698
+ term: "system" | "user";
1699
+ } | undefined;
1700
+ createdAt?: {
1233
1701
  type: "range";
1234
1702
  gte: string;
1235
1703
  lte: string;
1704
+ } | {
1705
+ type: "exact";
1706
+ term: string;
1707
+ } | {
1708
+ type: "timePeriod";
1709
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1236
1710
  } | undefined;
1237
1711
  createdBy?: {
1238
1712
  type: "exact";
@@ -1250,14 +1724,17 @@ export declare const QueryType: z.ZodObject<{
1250
1724
  term: string;
1251
1725
  } | undefined;
1252
1726
  updatedAt?: {
1253
- type: "exact";
1254
- term: string;
1255
- } | {
1256
1727
  type: "range";
1257
1728
  gte: string;
1258
1729
  lte: string;
1259
- } | undefined;
1260
- trackingId?: {
1730
+ } | {
1731
+ type: "exact";
1732
+ term: string;
1733
+ } | {
1734
+ type: "timePeriod";
1735
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1736
+ } | undefined;
1737
+ trackingId?: {
1261
1738
  type: "exact";
1262
1739
  term: string;
1263
1740
  } | undefined;
@@ -1272,33 +1749,128 @@ export declare const QueryType: z.ZodObject<{
1272
1749
  type: "exact";
1273
1750
  term: string;
1274
1751
  } | undefined;
1275
- flags?: ({
1752
+ flags?: {
1753
+ anyOf?: string[] | undefined;
1754
+ noneOf?: string[] | undefined;
1755
+ } | undefined;
1756
+ eventType?: string | undefined;
1757
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1758
+ type: "range";
1759
+ gte: string;
1760
+ lte: string;
1761
+ } | {
1762
+ type: "exact";
1763
+ term: string;
1764
+ } | {
1765
+ type: "timePeriod";
1766
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1767
+ } | undefined;
1768
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1769
+ type: "exact";
1770
+ term: string;
1771
+ } | {
1772
+ type: "within";
1773
+ location: string;
1774
+ } | undefined;
1775
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1776
+ type: "exact";
1777
+ term: string;
1778
+ } | undefined;
1779
+ }, {
1780
+ id?: string | undefined;
1781
+ status?: {
1782
+ type: "exact";
1783
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1784
+ } | {
1276
1785
  type: "anyOf";
1277
- terms: string[];
1786
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1787
+ } | undefined;
1788
+ data?: any;
1789
+ createdByUserType?: {
1790
+ type: "exact";
1791
+ term: "system" | "user";
1792
+ } | undefined;
1793
+ createdAt?: {
1794
+ type: "range";
1795
+ gte: string;
1796
+ lte: string;
1278
1797
  } | {
1279
- type: "not";
1798
+ type: "exact";
1280
1799
  term: string;
1281
- })[] | undefined;
1282
- eventType?: string | undefined;
1283
- 'legalStatus.REGISTERED.createdAt'?: {
1800
+ } | {
1801
+ type: "timePeriod";
1802
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1803
+ } | undefined;
1804
+ createdBy?: {
1805
+ type: "exact";
1806
+ term: string;
1807
+ } | undefined;
1808
+ createdAtLocation?: {
1284
1809
  type: "exact";
1285
1810
  term: string;
1286
1811
  } | {
1812
+ type: "within";
1813
+ location: string;
1814
+ } | undefined;
1815
+ assignedTo?: {
1816
+ type: "exact";
1817
+ term: string;
1818
+ } | undefined;
1819
+ updatedAt?: {
1287
1820
  type: "range";
1288
1821
  gte: string;
1289
1822
  lte: string;
1823
+ } | {
1824
+ type: "exact";
1825
+ term: string;
1826
+ } | {
1827
+ type: "timePeriod";
1828
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1290
1829
  } | undefined;
1291
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1830
+ trackingId?: {
1831
+ type: "exact";
1832
+ term: string;
1833
+ } | undefined;
1834
+ updatedAtLocation?: {
1292
1835
  type: "exact";
1293
1836
  term: string;
1294
1837
  } | {
1295
1838
  type: "within";
1296
1839
  location: string;
1297
1840
  } | undefined;
1298
- }[], unknown>;
1299
- }, "strip", z.ZodTypeAny, {
1300
- type: "and" | "or";
1301
- clauses: {
1841
+ updatedBy?: {
1842
+ type: "exact";
1843
+ term: string;
1844
+ } | undefined;
1845
+ flags?: {
1846
+ anyOf?: string[] | undefined;
1847
+ noneOf?: string[] | undefined;
1848
+ } | undefined;
1849
+ eventType?: string | undefined;
1850
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1851
+ type: "range";
1852
+ gte: string;
1853
+ lte: string;
1854
+ } | {
1855
+ type: "exact";
1856
+ term: string;
1857
+ } | {
1858
+ type: "timePeriod";
1859
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1860
+ } | undefined;
1861
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1862
+ type: "exact";
1863
+ term: string;
1864
+ } | {
1865
+ type: "within";
1866
+ location: string;
1867
+ } | undefined;
1868
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1869
+ type: "exact";
1870
+ term: string;
1871
+ } | undefined;
1872
+ }>, "atleastone">, [{
1873
+ id?: string | undefined;
1302
1874
  status?: {
1303
1875
  type: "exact";
1304
1876
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1307,13 +1879,113 @@ export declare const QueryType: z.ZodObject<{
1307
1879
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1308
1880
  } | undefined;
1309
1881
  data?: any;
1882
+ createdByUserType?: {
1883
+ type: "exact";
1884
+ term: "system" | "user";
1885
+ } | undefined;
1310
1886
  createdAt?: {
1887
+ type: "range";
1888
+ gte: string;
1889
+ lte: string;
1890
+ } | {
1891
+ type: "exact";
1892
+ term: string;
1893
+ } | {
1894
+ type: "timePeriod";
1895
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1896
+ } | undefined;
1897
+ createdBy?: {
1898
+ type: "exact";
1899
+ term: string;
1900
+ } | undefined;
1901
+ createdAtLocation?: {
1311
1902
  type: "exact";
1312
1903
  term: string;
1313
1904
  } | {
1905
+ type: "within";
1906
+ location: string;
1907
+ } | undefined;
1908
+ assignedTo?: {
1909
+ type: "exact";
1910
+ term: string;
1911
+ } | undefined;
1912
+ updatedAt?: {
1314
1913
  type: "range";
1315
1914
  gte: string;
1316
1915
  lte: string;
1916
+ } | {
1917
+ type: "exact";
1918
+ term: string;
1919
+ } | {
1920
+ type: "timePeriod";
1921
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1922
+ } | undefined;
1923
+ trackingId?: {
1924
+ type: "exact";
1925
+ term: string;
1926
+ } | undefined;
1927
+ updatedAtLocation?: {
1928
+ type: "exact";
1929
+ term: string;
1930
+ } | {
1931
+ type: "within";
1932
+ location: string;
1933
+ } | undefined;
1934
+ updatedBy?: {
1935
+ type: "exact";
1936
+ term: string;
1937
+ } | undefined;
1938
+ flags?: {
1939
+ anyOf?: string[] | undefined;
1940
+ noneOf?: string[] | undefined;
1941
+ } | undefined;
1942
+ eventType?: string | undefined;
1943
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1944
+ type: "range";
1945
+ gte: string;
1946
+ lte: string;
1947
+ } | {
1948
+ type: "exact";
1949
+ term: string;
1950
+ } | {
1951
+ type: "timePeriod";
1952
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1953
+ } | undefined;
1954
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
1955
+ type: "exact";
1956
+ term: string;
1957
+ } | {
1958
+ type: "within";
1959
+ location: string;
1960
+ } | undefined;
1961
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
1962
+ type: "exact";
1963
+ term: string;
1964
+ } | undefined;
1965
+ }, ...{
1966
+ id?: string | undefined;
1967
+ status?: {
1968
+ type: "exact";
1969
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1970
+ } | {
1971
+ type: "anyOf";
1972
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1973
+ } | undefined;
1974
+ data?: any;
1975
+ createdByUserType?: {
1976
+ type: "exact";
1977
+ term: "system" | "user";
1978
+ } | undefined;
1979
+ createdAt?: {
1980
+ type: "range";
1981
+ gte: string;
1982
+ lte: string;
1983
+ } | {
1984
+ type: "exact";
1985
+ term: string;
1986
+ } | {
1987
+ type: "timePeriod";
1988
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1317
1989
  } | undefined;
1318
1990
  createdBy?: {
1319
1991
  type: "exact";
@@ -1331,12 +2003,111 @@ export declare const QueryType: z.ZodObject<{
1331
2003
  term: string;
1332
2004
  } | undefined;
1333
2005
  updatedAt?: {
2006
+ type: "range";
2007
+ gte: string;
2008
+ lte: string;
2009
+ } | {
1334
2010
  type: "exact";
1335
2011
  term: string;
1336
2012
  } | {
2013
+ type: "timePeriod";
2014
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2015
+ } | undefined;
2016
+ trackingId?: {
2017
+ type: "exact";
2018
+ term: string;
2019
+ } | undefined;
2020
+ updatedAtLocation?: {
2021
+ type: "exact";
2022
+ term: string;
2023
+ } | {
2024
+ type: "within";
2025
+ location: string;
2026
+ } | undefined;
2027
+ updatedBy?: {
2028
+ type: "exact";
2029
+ term: string;
2030
+ } | undefined;
2031
+ flags?: {
2032
+ anyOf?: string[] | undefined;
2033
+ noneOf?: string[] | undefined;
2034
+ } | undefined;
2035
+ eventType?: string | undefined;
2036
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
1337
2037
  type: "range";
1338
2038
  gte: string;
1339
2039
  lte: string;
2040
+ } | {
2041
+ type: "exact";
2042
+ term: string;
2043
+ } | {
2044
+ type: "timePeriod";
2045
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2046
+ } | undefined;
2047
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2048
+ type: "exact";
2049
+ term: string;
2050
+ } | {
2051
+ type: "within";
2052
+ location: string;
2053
+ } | undefined;
2054
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2055
+ type: "exact";
2056
+ term: string;
2057
+ } | undefined;
2058
+ }[]], unknown>;
2059
+ }, "strip", z.ZodTypeAny, {
2060
+ type: "and" | "or";
2061
+ clauses: [{
2062
+ id?: string | undefined;
2063
+ status?: {
2064
+ type: "exact";
2065
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2066
+ } | {
2067
+ type: "anyOf";
2068
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2069
+ } | undefined;
2070
+ data?: any;
2071
+ createdByUserType?: {
2072
+ type: "exact";
2073
+ term: "system" | "user";
2074
+ } | undefined;
2075
+ createdAt?: {
2076
+ type: "range";
2077
+ gte: string;
2078
+ lte: string;
2079
+ } | {
2080
+ type: "exact";
2081
+ term: string;
2082
+ } | {
2083
+ type: "timePeriod";
2084
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2085
+ } | undefined;
2086
+ createdBy?: {
2087
+ type: "exact";
2088
+ term: string;
2089
+ } | undefined;
2090
+ createdAtLocation?: {
2091
+ type: "exact";
2092
+ term: string;
2093
+ } | {
2094
+ type: "within";
2095
+ location: string;
2096
+ } | undefined;
2097
+ assignedTo?: {
2098
+ type: "exact";
2099
+ term: string;
2100
+ } | undefined;
2101
+ updatedAt?: {
2102
+ type: "range";
2103
+ gte: string;
2104
+ lte: string;
2105
+ } | {
2106
+ type: "exact";
2107
+ term: string;
2108
+ } | {
2109
+ type: "timePeriod";
2110
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1340
2111
  } | undefined;
1341
2112
  trackingId?: {
1342
2113
  type: "exact";
@@ -1353,35 +2124,137 @@ export declare const QueryType: z.ZodObject<{
1353
2124
  type: "exact";
1354
2125
  term: string;
1355
2126
  } | undefined;
1356
- flags?: ({
2127
+ flags?: {
2128
+ anyOf?: string[] | undefined;
2129
+ noneOf?: string[] | undefined;
2130
+ } | undefined;
2131
+ eventType?: string | undefined;
2132
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2133
+ type: "range";
2134
+ gte: string;
2135
+ lte: string;
2136
+ } | {
2137
+ type: "exact";
2138
+ term: string;
2139
+ } | {
2140
+ type: "timePeriod";
2141
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2142
+ } | undefined;
2143
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2144
+ type: "exact";
2145
+ term: string;
2146
+ } | {
2147
+ type: "within";
2148
+ location: string;
2149
+ } | undefined;
2150
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2151
+ type: "exact";
2152
+ term: string;
2153
+ } | undefined;
2154
+ }, ...{
2155
+ id?: string | undefined;
2156
+ status?: {
2157
+ type: "exact";
2158
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
2159
+ } | {
1357
2160
  type: "anyOf";
1358
- terms: string[];
2161
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
2162
+ } | undefined;
2163
+ data?: any;
2164
+ createdByUserType?: {
2165
+ type: "exact";
2166
+ term: "system" | "user";
2167
+ } | undefined;
2168
+ createdAt?: {
2169
+ type: "range";
2170
+ gte: string;
2171
+ lte: string;
1359
2172
  } | {
1360
- type: "not";
2173
+ type: "exact";
1361
2174
  term: string;
1362
- })[] | undefined;
1363
- eventType?: string | undefined;
1364
- 'legalStatus.REGISTERED.createdAt'?: {
2175
+ } | {
2176
+ type: "timePeriod";
2177
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2178
+ } | undefined;
2179
+ createdBy?: {
2180
+ type: "exact";
2181
+ term: string;
2182
+ } | undefined;
2183
+ createdAtLocation?: {
1365
2184
  type: "exact";
1366
2185
  term: string;
1367
2186
  } | {
2187
+ type: "within";
2188
+ location: string;
2189
+ } | undefined;
2190
+ assignedTo?: {
2191
+ type: "exact";
2192
+ term: string;
2193
+ } | undefined;
2194
+ updatedAt?: {
1368
2195
  type: "range";
1369
2196
  gte: string;
1370
2197
  lte: string;
2198
+ } | {
2199
+ type: "exact";
2200
+ term: string;
2201
+ } | {
2202
+ type: "timePeriod";
2203
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2204
+ } | undefined;
2205
+ trackingId?: {
2206
+ type: "exact";
2207
+ term: string;
1371
2208
  } | undefined;
1372
- 'legalStatus.REGISTERED.createdAtLocation'?: {
2209
+ updatedAtLocation?: {
1373
2210
  type: "exact";
1374
2211
  term: string;
1375
2212
  } | {
1376
2213
  type: "within";
1377
2214
  location: string;
1378
2215
  } | undefined;
1379
- }[];
2216
+ updatedBy?: {
2217
+ type: "exact";
2218
+ term: string;
2219
+ } | undefined;
2220
+ flags?: {
2221
+ anyOf?: string[] | undefined;
2222
+ noneOf?: string[] | undefined;
2223
+ } | undefined;
2224
+ eventType?: string | undefined;
2225
+ 'legalStatuses.REGISTERED.acceptedAt'?: {
2226
+ type: "range";
2227
+ gte: string;
2228
+ lte: string;
2229
+ } | {
2230
+ type: "exact";
2231
+ term: string;
2232
+ } | {
2233
+ type: "timePeriod";
2234
+ term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
2235
+ } | undefined;
2236
+ 'legalStatuses.REGISTERED.createdAtLocation'?: {
2237
+ type: "exact";
2238
+ term: string;
2239
+ } | {
2240
+ type: "within";
2241
+ location: string;
2242
+ } | undefined;
2243
+ 'legalStatuses.REGISTERED.registrationNumber'?: {
2244
+ type: "exact";
2245
+ term: string;
2246
+ } | undefined;
2247
+ }[]];
1380
2248
  }, {
1381
2249
  type: "and" | "or";
1382
2250
  clauses?: unknown;
1383
2251
  }>;
1384
2252
  export type QueryType = z.infer<typeof QueryType>;
1385
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];
1386
2259
  export {};
1387
2260
  //# sourceMappingURL=EventIndex.d.ts.map