@opencrvs/toolkit 1.8.0-rc.fb4793a → 1.8.0-rc.fb5f1af

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