@opencrvs/toolkit 1.8.0-rc.fe87a15 → 1.8.0-rc.fe8c092

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 (38) hide show
  1. package/dist/commons/api/router.d.ts +6884 -614
  2. package/dist/commons/conditionals/conditionals.d.ts +4 -0
  3. package/dist/commons/conditionals/validate.d.ts +6 -0
  4. package/dist/commons/events/ActionConfig.d.ts +18678 -6326
  5. package/dist/commons/events/ActionDocument.d.ts +1923 -414
  6. package/dist/commons/events/ActionInput.d.ts +1504 -304
  7. package/dist/commons/events/ActionType.d.ts +6 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +75 -3
  9. package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
  10. package/dist/commons/events/Constants.d.ts +1 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +254 -168
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
  13. package/dist/commons/events/Draft.d.ts +134 -33
  14. package/dist/commons/events/EventConfig.d.ts +8242 -2365
  15. package/dist/commons/events/EventDocument.d.ts +1242 -298
  16. package/dist/commons/events/EventIndex.d.ts +798 -123
  17. package/dist/commons/events/EventMetadata.d.ts +62 -59
  18. package/dist/commons/events/FieldConfig.d.ts +1572 -746
  19. package/dist/commons/events/FieldType.d.ts +4 -1
  20. package/dist/commons/events/FieldTypeMapping.d.ts +89 -50
  21. package/dist/commons/events/FieldValue.d.ts +41 -5
  22. package/dist/commons/events/FormConfig.d.ts +7640 -2444
  23. package/dist/commons/events/PageConfig.d.ts +2816 -1540
  24. package/dist/commons/events/SummaryConfig.d.ts +0 -5
  25. package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
  26. package/dist/commons/events/WorkqueueConfig.d.ts +3277 -1512
  27. package/dist/commons/events/defineConfig.d.ts +959 -13
  28. package/dist/commons/events/field.d.ts +4 -0
  29. package/dist/commons/events/index.d.ts +1 -0
  30. package/dist/commons/events/scopes.d.ts +1 -2
  31. package/dist/commons/events/test.utils.d.ts +138 -40
  32. package/dist/commons/events/transactions.d.ts +1 -1
  33. package/dist/commons/events/utils.d.ts +9666 -16
  34. package/dist/conditionals/index.js +18 -1
  35. package/dist/events/index.js +1592 -1011
  36. package/dist/scopes/index.d.ts +4 -1
  37. package/dist/scopes/index.js +67 -17
  38. package/package.json +1 -1
@@ -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.ZodBranded<z.ZodString, "UUID">;
3
+ id: z.ZodString;
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.ZodBranded<z.ZodString, "UUID">>>;
10
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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 & z.BRAND<"UUID">) | null | undefined;
22
+ createdAtLocation?: string | 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.ZodBranded<z.ZodString, "UUID">>>;
35
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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 & z.BRAND<"UUID">) | null | undefined;
50
+ createdAtLocation?: string | 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 & z.BRAND<"UUID">) | null | undefined;
69
+ createdAtLocation?: string | 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 & z.BRAND<"UUID">) | null | undefined;
79
+ createdAtLocation?: string | 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,10 +102,11 @@ 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.ZodBranded<z.ZodString, "UUID">>>;
107
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
108
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
109
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
110
  updatedAt: z.ZodString;
109
111
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
112
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -226,10 +228,34 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
226
228
  addressLine2?: string | undefined;
227
229
  addressLine3?: string | undefined;
228
230
  postcodeOrZip?: string | undefined;
229
- }>]>>;
231
+ }>, z.ZodObject<{
232
+ firstname: z.ZodString;
233
+ surname: z.ZodString;
234
+ middlename: z.ZodOptional<z.ZodString>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ firstname: string;
237
+ surname: string;
238
+ middlename?: string | undefined;
239
+ }, {
240
+ firstname: string;
241
+ surname: string;
242
+ middlename?: string | undefined;
243
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
244
+ firstname: z.ZodString;
245
+ surname: z.ZodString;
246
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ firstname: string;
249
+ surname: string;
250
+ middlename?: string | null | undefined;
251
+ }, {
252
+ firstname: string;
253
+ surname: string;
254
+ middlename?: string | null | undefined;
255
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
230
256
  }>, "strip", z.ZodTypeAny, {
231
257
  type: string;
232
- id: string & z.BRAND<"UUID">;
258
+ id: string;
233
259
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
234
260
  createdAt: string;
235
261
  createdBy: string;
@@ -255,6 +281,14 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
255
281
  province: string;
256
282
  urbanOrRural: "RURAL";
257
283
  village?: string | undefined;
284
+ } | {
285
+ firstname: string;
286
+ surname: string;
287
+ middlename?: string | undefined;
288
+ } | {
289
+ firstname: string;
290
+ surname: string;
291
+ middlename?: string | null | undefined;
258
292
  } | {
259
293
  country: string;
260
294
  state: string;
@@ -270,7 +304,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
270
304
  option: string;
271
305
  filename: string;
272
306
  originalFilename: string;
273
- }[] | [string, string] | undefined>;
307
+ }[] | [string, string] | null | undefined>;
274
308
  updatedAt: string;
275
309
  trackingId: string;
276
310
  legalStatuses: {
@@ -279,8 +313,9 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
279
313
  createdBy: string;
280
314
  createdByRole: string;
281
315
  acceptedAt: string;
316
+ createdByUserType?: "system" | "user" | null | undefined;
282
317
  createdBySignature?: string | null | undefined;
283
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
318
+ createdAtLocation?: string | null | undefined;
284
319
  } | null | undefined;
285
320
  REGISTERED?: {
286
321
  createdAt: string;
@@ -288,17 +323,19 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
288
323
  createdByRole: string;
289
324
  registrationNumber: string;
290
325
  acceptedAt: string;
326
+ createdByUserType?: "system" | "user" | null | undefined;
291
327
  createdBySignature?: string | null | undefined;
292
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
328
+ createdAtLocation?: string | null | undefined;
293
329
  } | null | undefined;
294
330
  };
295
331
  updatedByUserRole: string;
296
332
  flags: string[];
333
+ createdByUserType?: "system" | "user" | null | undefined;
297
334
  createdBySignature?: string | null | undefined;
298
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
335
+ createdAtLocation?: string | null | undefined;
299
336
  assignedTo?: string | null | undefined;
300
337
  dateOfEvent?: string | null | undefined;
301
- updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
338
+ updatedAtLocation?: string | null | undefined;
302
339
  updatedBy?: string | null | undefined;
303
340
  }, {
304
341
  type: string;
@@ -328,6 +365,14 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
328
365
  province: string;
329
366
  urbanOrRural: "RURAL";
330
367
  village?: string | undefined;
368
+ } | {
369
+ firstname: string;
370
+ surname: string;
371
+ middlename?: string | undefined;
372
+ } | {
373
+ firstname: string;
374
+ surname: string;
375
+ middlename?: string | null | undefined;
331
376
  } | {
332
377
  country: string;
333
378
  state: string;
@@ -343,7 +388,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
343
388
  option: string;
344
389
  filename: string;
345
390
  originalFilename: string;
346
- }[] | [string, string] | undefined>;
391
+ }[] | [string, string] | null | undefined>;
347
392
  updatedAt: string;
348
393
  trackingId: string;
349
394
  legalStatuses: {
@@ -352,6 +397,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
352
397
  createdBy: string;
353
398
  createdByRole: string;
354
399
  acceptedAt: string;
400
+ createdByUserType?: "system" | "user" | null | undefined;
355
401
  createdBySignature?: string | null | undefined;
356
402
  createdAtLocation?: string | null | undefined;
357
403
  } | null | undefined;
@@ -361,12 +407,14 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
361
407
  createdByRole: string;
362
408
  registrationNumber: string;
363
409
  acceptedAt: string;
410
+ createdByUserType?: "system" | "user" | null | undefined;
364
411
  createdBySignature?: string | null | undefined;
365
412
  createdAtLocation?: string | null | undefined;
366
413
  } | null | undefined;
367
414
  };
368
415
  updatedByUserRole: string;
369
416
  flags: string[];
417
+ createdByUserType?: "system" | "user" | null | undefined;
370
418
  createdBySignature?: string | null | undefined;
371
419
  createdAtLocation?: string | null | undefined;
372
420
  assignedTo?: string | null | undefined;
@@ -403,16 +451,6 @@ export declare const Exact: z.ZodObject<{
403
451
  type: "exact";
404
452
  term: string;
405
453
  }>;
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
454
  export declare const ExactStatus: z.ZodObject<{
417
455
  type: z.ZodLiteral<"exact">;
418
456
  term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
@@ -423,6 +461,16 @@ export declare const ExactStatus: z.ZodObject<{
423
461
  type: "exact";
424
462
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
425
463
  }>;
464
+ export declare const AnyOf: z.ZodObject<{
465
+ type: z.ZodLiteral<"anyOf">;
466
+ terms: z.ZodArray<z.ZodString, "many">;
467
+ }, "strip", z.ZodTypeAny, {
468
+ type: "anyOf";
469
+ terms: string[];
470
+ }, {
471
+ type: "anyOf";
472
+ terms: string[];
473
+ }>;
426
474
  export declare const AnyOfStatus: z.ZodObject<{
427
475
  type: z.ZodLiteral<"anyOf">;
428
476
  terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
@@ -466,20 +514,53 @@ export declare const Within: z.ZodObject<{
466
514
  type: "within";
467
515
  location: string;
468
516
  }>;
469
- export declare const DateCondition: z.ZodUnion<[z.ZodObject<{
517
+ export declare const RangeDate: z.ZodObject<z.objectUtil.extendShape<{
518
+ type: z.ZodLiteral<"range">;
519
+ gte: z.ZodString;
520
+ lte: z.ZodString;
521
+ }, {
522
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
523
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
524
+ }>, "strip", z.ZodTypeAny, {
525
+ type: "range";
526
+ gte: string;
527
+ lte: string;
528
+ }, {
529
+ type: "range";
530
+ gte: string;
531
+ lte: string;
532
+ }>;
533
+ export declare const ExactDate: z.ZodObject<z.objectUtil.extendShape<{
470
534
  type: z.ZodLiteral<"exact">;
471
535
  term: z.ZodString;
472
- }, "strip", z.ZodTypeAny, {
536
+ }, {
537
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
538
+ }>, "strip", z.ZodTypeAny, {
539
+ type: "exact";
540
+ term: string;
541
+ }, {
542
+ type: "exact";
543
+ term: string;
544
+ }>;
545
+ export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
546
+ type: z.ZodLiteral<"exact">;
547
+ term: z.ZodString;
548
+ }, {
549
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
550
+ }>, "strip", z.ZodTypeAny, {
473
551
  type: "exact";
474
552
  term: string;
475
553
  }, {
476
554
  type: "exact";
477
555
  term: string;
478
- }>, z.ZodObject<{
556
+ }>, z.ZodObject<z.objectUtil.extendShape<{
479
557
  type: z.ZodLiteral<"range">;
480
558
  gte: z.ZodString;
481
559
  lte: z.ZodString;
482
- }, "strip", z.ZodTypeAny, {
560
+ }, {
561
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
562
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
563
+ }>, "strip", z.ZodTypeAny, {
483
564
  type: "range";
484
565
  gte: string;
485
566
  lte: string;
@@ -494,7 +575,8 @@ type QueryMap = {
494
575
  [key: string]: BaseInput | QueryMap;
495
576
  };
496
577
  export type QueryInputType = BaseInput | QueryMap;
497
- export declare const QueryExpression: z.ZodObject<{
578
+ export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
579
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
498
580
  eventType: z.ZodOptional<z.ZodString>;
499
581
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
500
582
  type: z.ZodLiteral<"anyOf">;
@@ -515,20 +597,25 @@ export declare const QueryExpression: z.ZodObject<{
515
597
  type: "exact";
516
598
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
517
599
  }>]>>>;
518
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
600
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
519
601
  type: z.ZodLiteral<"exact">;
520
602
  term: z.ZodString;
521
- }, "strip", z.ZodTypeAny, {
603
+ }, {
604
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
605
+ }>, "strip", z.ZodTypeAny, {
522
606
  type: "exact";
523
607
  term: string;
524
608
  }, {
525
609
  type: "exact";
526
610
  term: string;
527
- }>, z.ZodObject<{
611
+ }>, z.ZodObject<z.objectUtil.extendShape<{
528
612
  type: z.ZodLiteral<"range">;
529
613
  gte: z.ZodString;
530
614
  lte: z.ZodString;
531
- }, "strip", z.ZodTypeAny, {
615
+ }, {
616
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
617
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
618
+ }>, "strip", z.ZodTypeAny, {
532
619
  type: "range";
533
620
  gte: string;
534
621
  lte: string;
@@ -537,20 +624,25 @@ export declare const QueryExpression: z.ZodObject<{
537
624
  gte: string;
538
625
  lte: string;
539
626
  }>]>>>;
540
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
627
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
541
628
  type: z.ZodLiteral<"exact">;
542
629
  term: z.ZodString;
543
- }, "strip", z.ZodTypeAny, {
630
+ }, {
631
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
632
+ }>, "strip", z.ZodTypeAny, {
544
633
  type: "exact";
545
634
  term: string;
546
635
  }, {
547
636
  type: "exact";
548
637
  term: string;
549
- }>, z.ZodObject<{
638
+ }>, z.ZodObject<z.objectUtil.extendShape<{
550
639
  type: z.ZodLiteral<"range">;
551
640
  gte: z.ZodString;
552
641
  lte: z.ZodString;
553
- }, "strip", z.ZodTypeAny, {
642
+ }, {
643
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
644
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
645
+ }>, "strip", z.ZodTypeAny, {
554
646
  type: "range";
555
647
  gte: string;
556
648
  lte: string;
@@ -559,20 +651,25 @@ export declare const QueryExpression: z.ZodObject<{
559
651
  gte: string;
560
652
  lte: string;
561
653
  }>]>>>;
562
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
654
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
563
655
  type: z.ZodLiteral<"exact">;
564
656
  term: z.ZodString;
565
- }, "strip", z.ZodTypeAny, {
657
+ }, {
658
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
659
+ }>, "strip", z.ZodTypeAny, {
566
660
  type: "exact";
567
661
  term: string;
568
662
  }, {
569
663
  type: "exact";
570
664
  term: string;
571
- }>, z.ZodObject<{
665
+ }>, z.ZodObject<z.objectUtil.extendShape<{
572
666
  type: z.ZodLiteral<"range">;
573
667
  gte: z.ZodString;
574
668
  lte: z.ZodString;
575
- }, "strip", z.ZodTypeAny, {
669
+ }, {
670
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
671
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
672
+ }>, "strip", z.ZodTypeAny, {
576
673
  type: "range";
577
674
  gte: string;
578
675
  lte: string;
@@ -600,6 +697,16 @@ export declare const QueryExpression: z.ZodObject<{
600
697
  type: "exact";
601
698
  term: string;
602
699
  }>]>>>;
700
+ 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
701
+ type: z.ZodLiteral<"exact">;
702
+ term: z.ZodString;
703
+ }, "strip", z.ZodTypeAny, {
704
+ type: "exact";
705
+ term: string;
706
+ }, {
707
+ type: "exact";
708
+ term: string;
709
+ }>>>;
603
710
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
604
711
  type: z.ZodLiteral<"within">;
605
712
  location: z.ZodString;
@@ -648,6 +755,7 @@ export declare const QueryExpression: z.ZodObject<{
648
755
  type: "exact";
649
756
  term: string;
650
757
  }>>>;
758
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
651
759
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
652
760
  type: z.ZodLiteral<"exact">;
653
761
  term: z.ZodString;
@@ -699,6 +807,7 @@ export declare const QueryExpression: z.ZodObject<{
699
807
  }>]>, "many">>>;
700
808
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
701
809
  }, "strip", z.ZodTypeAny, {
810
+ id?: string | undefined;
702
811
  status?: {
703
812
  type: "exact";
704
813
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -707,13 +816,14 @@ export declare const QueryExpression: z.ZodObject<{
707
816
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
708
817
  } | undefined;
709
818
  data?: any;
819
+ createdByUserType?: "system" | "user" | undefined;
710
820
  createdAt?: {
711
- type: "exact";
712
- term: string;
713
- } | {
714
821
  type: "range";
715
822
  gte: string;
716
823
  lte: string;
824
+ } | {
825
+ type: "exact";
826
+ term: string;
717
827
  } | undefined;
718
828
  createdBy?: {
719
829
  type: "exact";
@@ -731,12 +841,12 @@ export declare const QueryExpression: z.ZodObject<{
731
841
  term: string;
732
842
  } | undefined;
733
843
  updatedAt?: {
734
- type: "exact";
735
- term: string;
736
- } | {
737
844
  type: "range";
738
845
  gte: string;
739
846
  lte: string;
847
+ } | {
848
+ type: "exact";
849
+ term: string;
740
850
  } | undefined;
741
851
  trackingId?: {
742
852
  type: "exact";
@@ -762,12 +872,12 @@ export declare const QueryExpression: z.ZodObject<{
762
872
  })[] | undefined;
763
873
  eventType?: string | undefined;
764
874
  'legalStatus.REGISTERED.createdAt'?: {
765
- type: "exact";
766
- term: string;
767
- } | {
768
875
  type: "range";
769
876
  gte: string;
770
877
  lte: string;
878
+ } | {
879
+ type: "exact";
880
+ term: string;
771
881
  } | undefined;
772
882
  'legalStatus.REGISTERED.createdAtLocation'?: {
773
883
  type: "exact";
@@ -776,7 +886,12 @@ export declare const QueryExpression: z.ZodObject<{
776
886
  type: "within";
777
887
  location: string;
778
888
  } | undefined;
889
+ 'legalStatus.REGISTERED.registrationNumber'?: {
890
+ type: "exact";
891
+ term: string;
892
+ } | undefined;
779
893
  }, {
894
+ id?: string | undefined;
780
895
  status?: {
781
896
  type: "exact";
782
897
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -785,13 +900,14 @@ export declare const QueryExpression: z.ZodObject<{
785
900
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
786
901
  } | undefined;
787
902
  data?: any;
903
+ createdByUserType?: "system" | "user" | undefined;
788
904
  createdAt?: {
789
- type: "exact";
790
- term: string;
791
- } | {
792
905
  type: "range";
793
906
  gte: string;
794
907
  lte: string;
908
+ } | {
909
+ type: "exact";
910
+ term: string;
795
911
  } | undefined;
796
912
  createdBy?: {
797
913
  type: "exact";
@@ -809,12 +925,96 @@ export declare const QueryExpression: z.ZodObject<{
809
925
  term: string;
810
926
  } | undefined;
811
927
  updatedAt?: {
928
+ type: "range";
929
+ gte: string;
930
+ lte: string;
931
+ } | {
932
+ type: "exact";
933
+ term: string;
934
+ } | undefined;
935
+ trackingId?: {
936
+ type: "exact";
937
+ term: string;
938
+ } | undefined;
939
+ updatedAtLocation?: {
940
+ type: "exact";
941
+ term: string;
942
+ } | {
943
+ type: "within";
944
+ location: string;
945
+ } | undefined;
946
+ updatedBy?: {
947
+ type: "exact";
948
+ term: string;
949
+ } | undefined;
950
+ flags?: ({
951
+ type: "anyOf";
952
+ terms: string[];
953
+ } | {
954
+ type: "not";
955
+ term: string;
956
+ })[] | undefined;
957
+ eventType?: string | undefined;
958
+ 'legalStatus.REGISTERED.createdAt'?: {
959
+ type: "range";
960
+ gte: string;
961
+ lte: string;
962
+ } | {
963
+ type: "exact";
964
+ term: string;
965
+ } | undefined;
966
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
967
+ type: "exact";
968
+ term: string;
969
+ } | {
970
+ type: "within";
971
+ location: string;
972
+ } | undefined;
973
+ 'legalStatus.REGISTERED.registrationNumber'?: {
974
+ type: "exact";
975
+ term: string;
976
+ } | undefined;
977
+ }>, {
978
+ id?: string | undefined;
979
+ status?: {
980
+ type: "exact";
981
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
982
+ } | {
983
+ type: "anyOf";
984
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
985
+ } | undefined;
986
+ data?: any;
987
+ createdByUserType?: "system" | "user" | undefined;
988
+ createdAt?: {
989
+ type: "range";
990
+ gte: string;
991
+ lte: string;
992
+ } | {
993
+ type: "exact";
994
+ term: string;
995
+ } | undefined;
996
+ createdBy?: {
997
+ type: "exact";
998
+ term: string;
999
+ } | undefined;
1000
+ createdAtLocation?: {
812
1001
  type: "exact";
813
1002
  term: string;
814
1003
  } | {
1004
+ type: "within";
1005
+ location: string;
1006
+ } | undefined;
1007
+ assignedTo?: {
1008
+ type: "exact";
1009
+ term: string;
1010
+ } | undefined;
1011
+ updatedAt?: {
815
1012
  type: "range";
816
1013
  gte: string;
817
1014
  lte: string;
1015
+ } | {
1016
+ type: "exact";
1017
+ term: string;
818
1018
  } | undefined;
819
1019
  trackingId?: {
820
1020
  type: "exact";
@@ -840,36 +1040,125 @@ export declare const QueryExpression: z.ZodObject<{
840
1040
  })[] | undefined;
841
1041
  eventType?: string | undefined;
842
1042
  'legalStatus.REGISTERED.createdAt'?: {
1043
+ type: "range";
1044
+ gte: string;
1045
+ lte: string;
1046
+ } | {
1047
+ type: "exact";
1048
+ term: string;
1049
+ } | undefined;
1050
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
843
1051
  type: "exact";
844
1052
  term: string;
845
1053
  } | {
1054
+ type: "within";
1055
+ location: string;
1056
+ } | undefined;
1057
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1058
+ type: "exact";
1059
+ term: string;
1060
+ } | undefined;
1061
+ }, {
1062
+ id?: string | undefined;
1063
+ status?: {
1064
+ type: "exact";
1065
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1066
+ } | {
1067
+ type: "anyOf";
1068
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1069
+ } | undefined;
1070
+ data?: any;
1071
+ createdByUserType?: "system" | "user" | undefined;
1072
+ createdAt?: {
846
1073
  type: "range";
847
1074
  gte: string;
848
1075
  lte: string;
1076
+ } | {
1077
+ type: "exact";
1078
+ term: string;
849
1079
  } | undefined;
850
- 'legalStatus.REGISTERED.createdAtLocation'?: {
1080
+ createdBy?: {
1081
+ type: "exact";
1082
+ term: string;
1083
+ } | undefined;
1084
+ createdAtLocation?: {
851
1085
  type: "exact";
852
1086
  term: string;
853
1087
  } | {
854
1088
  type: "within";
855
1089
  location: string;
856
1090
  } | 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">;
1091
+ assignedTo?: {
1092
+ type: "exact";
1093
+ term: string;
1094
+ } | undefined;
1095
+ updatedAt?: {
1096
+ type: "range";
1097
+ gte: string;
1098
+ lte: string;
1099
+ } | {
1100
+ type: "exact";
1101
+ term: string;
1102
+ } | undefined;
1103
+ trackingId?: {
1104
+ type: "exact";
1105
+ term: string;
1106
+ } | undefined;
1107
+ updatedAtLocation?: {
1108
+ type: "exact";
1109
+ term: string;
1110
+ } | {
1111
+ type: "within";
1112
+ location: string;
1113
+ } | undefined;
1114
+ updatedBy?: {
1115
+ type: "exact";
1116
+ term: string;
1117
+ } | undefined;
1118
+ flags?: ({
1119
+ type: "anyOf";
1120
+ terms: string[];
1121
+ } | {
1122
+ type: "not";
1123
+ term: string;
1124
+ })[] | undefined;
1125
+ eventType?: string | undefined;
1126
+ 'legalStatus.REGISTERED.createdAt'?: {
1127
+ type: "range";
1128
+ gte: string;
1129
+ lte: string;
1130
+ } | {
1131
+ type: "exact";
1132
+ term: string;
1133
+ } | undefined;
1134
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1135
+ type: "exact";
1136
+ term: string;
1137
+ } | {
1138
+ type: "within";
1139
+ location: string;
1140
+ } | undefined;
1141
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1142
+ type: "exact";
1143
+ term: string;
1144
+ } | undefined;
1145
+ }>;
1146
+ export declare const QueryType: z.ZodObject<{
1147
+ type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
1148
+ clauses: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
1149
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1150
+ eventType: z.ZodOptional<z.ZodString>;
1151
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1152
+ type: z.ZodLiteral<"anyOf">;
1153
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
1154
+ }, "strip", z.ZodTypeAny, {
1155
+ type: "anyOf";
1156
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1157
+ }, {
1158
+ type: "anyOf";
1159
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1160
+ }>, z.ZodObject<{
1161
+ type: z.ZodLiteral<"exact">;
873
1162
  term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
874
1163
  }, "strip", z.ZodTypeAny, {
875
1164
  type: "exact";
@@ -878,20 +1167,25 @@ export declare const QueryType: z.ZodObject<{
878
1167
  type: "exact";
879
1168
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
880
1169
  }>]>>>;
881
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1170
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
882
1171
  type: z.ZodLiteral<"exact">;
883
1172
  term: z.ZodString;
884
- }, "strip", z.ZodTypeAny, {
1173
+ }, {
1174
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1175
+ }>, "strip", z.ZodTypeAny, {
885
1176
  type: "exact";
886
1177
  term: string;
887
1178
  }, {
888
1179
  type: "exact";
889
1180
  term: string;
890
- }>, z.ZodObject<{
1181
+ }>, z.ZodObject<z.objectUtil.extendShape<{
891
1182
  type: z.ZodLiteral<"range">;
892
1183
  gte: z.ZodString;
893
1184
  lte: z.ZodString;
894
- }, "strip", z.ZodTypeAny, {
1185
+ }, {
1186
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1187
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1188
+ }>, "strip", z.ZodTypeAny, {
895
1189
  type: "range";
896
1190
  gte: string;
897
1191
  lte: string;
@@ -900,20 +1194,25 @@ export declare const QueryType: z.ZodObject<{
900
1194
  gte: string;
901
1195
  lte: string;
902
1196
  }>]>>>;
903
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1197
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
904
1198
  type: z.ZodLiteral<"exact">;
905
1199
  term: z.ZodString;
906
- }, "strip", z.ZodTypeAny, {
1200
+ }, {
1201
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1202
+ }>, "strip", z.ZodTypeAny, {
907
1203
  type: "exact";
908
1204
  term: string;
909
1205
  }, {
910
1206
  type: "exact";
911
1207
  term: string;
912
- }>, z.ZodObject<{
1208
+ }>, z.ZodObject<z.objectUtil.extendShape<{
913
1209
  type: z.ZodLiteral<"range">;
914
1210
  gte: z.ZodString;
915
1211
  lte: z.ZodString;
916
- }, "strip", z.ZodTypeAny, {
1212
+ }, {
1213
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1214
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1215
+ }>, "strip", z.ZodTypeAny, {
917
1216
  type: "range";
918
1217
  gte: string;
919
1218
  lte: string;
@@ -922,20 +1221,25 @@ export declare const QueryType: z.ZodObject<{
922
1221
  gte: string;
923
1222
  lte: string;
924
1223
  }>]>>>;
925
- 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1224
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
926
1225
  type: z.ZodLiteral<"exact">;
927
1226
  term: z.ZodString;
928
- }, "strip", z.ZodTypeAny, {
1227
+ }, {
1228
+ term: z.ZodUnion<[z.ZodString, z.ZodString]>;
1229
+ }>, "strip", z.ZodTypeAny, {
929
1230
  type: "exact";
930
1231
  term: string;
931
1232
  }, {
932
1233
  type: "exact";
933
1234
  term: string;
934
- }>, z.ZodObject<{
1235
+ }>, z.ZodObject<z.objectUtil.extendShape<{
935
1236
  type: z.ZodLiteral<"range">;
936
1237
  gte: z.ZodString;
937
1238
  lte: z.ZodString;
938
- }, "strip", z.ZodTypeAny, {
1239
+ }, {
1240
+ gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1241
+ lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
1242
+ }>, "strip", z.ZodTypeAny, {
939
1243
  type: "range";
940
1244
  gte: string;
941
1245
  lte: string;
@@ -963,6 +1267,16 @@ export declare const QueryType: z.ZodObject<{
963
1267
  type: "exact";
964
1268
  term: string;
965
1269
  }>]>>>;
1270
+ 'legalStatus.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
1271
+ type: z.ZodLiteral<"exact">;
1272
+ term: z.ZodString;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ type: "exact";
1275
+ term: string;
1276
+ }, {
1277
+ type: "exact";
1278
+ term: string;
1279
+ }>>>;
966
1280
  createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
967
1281
  type: z.ZodLiteral<"within">;
968
1282
  location: z.ZodString;
@@ -1011,6 +1325,7 @@ export declare const QueryType: z.ZodObject<{
1011
1325
  type: "exact";
1012
1326
  term: string;
1013
1327
  }>>>;
1328
+ createdByUserType: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
1014
1329
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1015
1330
  type: z.ZodLiteral<"exact">;
1016
1331
  term: z.ZodString;
@@ -1062,6 +1377,7 @@ export declare const QueryType: z.ZodObject<{
1062
1377
  }>]>, "many">>>;
1063
1378
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1064
1379
  }, "strip", z.ZodTypeAny, {
1380
+ id?: string | undefined;
1065
1381
  status?: {
1066
1382
  type: "exact";
1067
1383
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1070,13 +1386,14 @@ export declare const QueryType: z.ZodObject<{
1070
1386
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1071
1387
  } | undefined;
1072
1388
  data?: any;
1389
+ createdByUserType?: "system" | "user" | undefined;
1073
1390
  createdAt?: {
1074
- type: "exact";
1075
- term: string;
1076
- } | {
1077
1391
  type: "range";
1078
1392
  gte: string;
1079
1393
  lte: string;
1394
+ } | {
1395
+ type: "exact";
1396
+ term: string;
1080
1397
  } | undefined;
1081
1398
  createdBy?: {
1082
1399
  type: "exact";
@@ -1094,12 +1411,12 @@ export declare const QueryType: z.ZodObject<{
1094
1411
  term: string;
1095
1412
  } | undefined;
1096
1413
  updatedAt?: {
1097
- type: "exact";
1098
- term: string;
1099
- } | {
1100
1414
  type: "range";
1101
1415
  gte: string;
1102
1416
  lte: string;
1417
+ } | {
1418
+ type: "exact";
1419
+ term: string;
1103
1420
  } | undefined;
1104
1421
  trackingId?: {
1105
1422
  type: "exact";
@@ -1125,12 +1442,12 @@ export declare const QueryType: z.ZodObject<{
1125
1442
  })[] | undefined;
1126
1443
  eventType?: string | undefined;
1127
1444
  'legalStatus.REGISTERED.createdAt'?: {
1128
- type: "exact";
1129
- term: string;
1130
- } | {
1131
1445
  type: "range";
1132
1446
  gte: string;
1133
1447
  lte: string;
1448
+ } | {
1449
+ type: "exact";
1450
+ term: string;
1134
1451
  } | undefined;
1135
1452
  'legalStatus.REGISTERED.createdAtLocation'?: {
1136
1453
  type: "exact";
@@ -1139,7 +1456,12 @@ export declare const QueryType: z.ZodObject<{
1139
1456
  type: "within";
1140
1457
  location: string;
1141
1458
  } | undefined;
1459
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1460
+ type: "exact";
1461
+ term: string;
1462
+ } | undefined;
1142
1463
  }, {
1464
+ id?: string | undefined;
1143
1465
  status?: {
1144
1466
  type: "exact";
1145
1467
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1148,13 +1470,14 @@ export declare const QueryType: z.ZodObject<{
1148
1470
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1149
1471
  } | undefined;
1150
1472
  data?: any;
1473
+ createdByUserType?: "system" | "user" | undefined;
1151
1474
  createdAt?: {
1152
- type: "exact";
1153
- term: string;
1154
- } | {
1155
1475
  type: "range";
1156
1476
  gte: string;
1157
1477
  lte: string;
1478
+ } | {
1479
+ type: "exact";
1480
+ term: string;
1158
1481
  } | undefined;
1159
1482
  createdBy?: {
1160
1483
  type: "exact";
@@ -1172,12 +1495,12 @@ export declare const QueryType: z.ZodObject<{
1172
1495
  term: string;
1173
1496
  } | undefined;
1174
1497
  updatedAt?: {
1175
- type: "exact";
1176
- term: string;
1177
- } | {
1178
1498
  type: "range";
1179
1499
  gte: string;
1180
1500
  lte: string;
1501
+ } | {
1502
+ type: "exact";
1503
+ term: string;
1181
1504
  } | undefined;
1182
1505
  trackingId?: {
1183
1506
  type: "exact";
@@ -1203,12 +1526,12 @@ export declare const QueryType: z.ZodObject<{
1203
1526
  })[] | undefined;
1204
1527
  eventType?: string | undefined;
1205
1528
  'legalStatus.REGISTERED.createdAt'?: {
1206
- type: "exact";
1207
- term: string;
1208
- } | {
1209
1529
  type: "range";
1210
1530
  gte: string;
1211
1531
  lte: string;
1532
+ } | {
1533
+ type: "exact";
1534
+ term: string;
1212
1535
  } | undefined;
1213
1536
  'legalStatus.REGISTERED.createdAtLocation'?: {
1214
1537
  type: "exact";
@@ -1217,7 +1540,12 @@ export declare const QueryType: z.ZodObject<{
1217
1540
  type: "within";
1218
1541
  location: string;
1219
1542
  } | undefined;
1220
- }>, "many">, {
1543
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1544
+ type: "exact";
1545
+ term: string;
1546
+ } | undefined;
1547
+ }>, {
1548
+ id?: string | undefined;
1221
1549
  status?: {
1222
1550
  type: "exact";
1223
1551
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1226,13 +1554,98 @@ export declare const QueryType: z.ZodObject<{
1226
1554
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1227
1555
  } | undefined;
1228
1556
  data?: any;
1557
+ createdByUserType?: "system" | "user" | undefined;
1229
1558
  createdAt?: {
1559
+ type: "range";
1560
+ gte: string;
1561
+ lte: string;
1562
+ } | {
1563
+ type: "exact";
1564
+ term: string;
1565
+ } | undefined;
1566
+ createdBy?: {
1567
+ type: "exact";
1568
+ term: string;
1569
+ } | undefined;
1570
+ createdAtLocation?: {
1571
+ type: "exact";
1572
+ term: string;
1573
+ } | {
1574
+ type: "within";
1575
+ location: string;
1576
+ } | undefined;
1577
+ assignedTo?: {
1578
+ type: "exact";
1579
+ term: string;
1580
+ } | undefined;
1581
+ updatedAt?: {
1582
+ type: "range";
1583
+ gte: string;
1584
+ lte: string;
1585
+ } | {
1586
+ type: "exact";
1587
+ term: string;
1588
+ } | undefined;
1589
+ trackingId?: {
1590
+ type: "exact";
1591
+ term: string;
1592
+ } | undefined;
1593
+ updatedAtLocation?: {
1594
+ type: "exact";
1595
+ term: string;
1596
+ } | {
1597
+ type: "within";
1598
+ location: string;
1599
+ } | undefined;
1600
+ updatedBy?: {
1601
+ type: "exact";
1602
+ term: string;
1603
+ } | undefined;
1604
+ flags?: ({
1605
+ type: "anyOf";
1606
+ terms: string[];
1607
+ } | {
1608
+ type: "not";
1609
+ term: string;
1610
+ })[] | undefined;
1611
+ eventType?: string | undefined;
1612
+ 'legalStatus.REGISTERED.createdAt'?: {
1613
+ type: "range";
1614
+ gte: string;
1615
+ lte: string;
1616
+ } | {
1617
+ type: "exact";
1618
+ term: string;
1619
+ } | undefined;
1620
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1230
1621
  type: "exact";
1231
1622
  term: string;
1232
1623
  } | {
1624
+ type: "within";
1625
+ location: string;
1626
+ } | undefined;
1627
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1628
+ type: "exact";
1629
+ term: string;
1630
+ } | undefined;
1631
+ }, {
1632
+ id?: string | undefined;
1633
+ status?: {
1634
+ type: "exact";
1635
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1636
+ } | {
1637
+ type: "anyOf";
1638
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1639
+ } | undefined;
1640
+ data?: any;
1641
+ createdByUserType?: "system" | "user" | undefined;
1642
+ createdAt?: {
1233
1643
  type: "range";
1234
1644
  gte: string;
1235
1645
  lte: string;
1646
+ } | {
1647
+ type: "exact";
1648
+ term: string;
1236
1649
  } | undefined;
1237
1650
  createdBy?: {
1238
1651
  type: "exact";
@@ -1250,12 +1663,96 @@ export declare const QueryType: z.ZodObject<{
1250
1663
  term: string;
1251
1664
  } | undefined;
1252
1665
  updatedAt?: {
1666
+ type: "range";
1667
+ gte: string;
1668
+ lte: string;
1669
+ } | {
1670
+ type: "exact";
1671
+ term: string;
1672
+ } | undefined;
1673
+ trackingId?: {
1674
+ type: "exact";
1675
+ term: string;
1676
+ } | undefined;
1677
+ updatedAtLocation?: {
1253
1678
  type: "exact";
1254
1679
  term: string;
1255
1680
  } | {
1681
+ type: "within";
1682
+ location: string;
1683
+ } | undefined;
1684
+ updatedBy?: {
1685
+ type: "exact";
1686
+ term: string;
1687
+ } | undefined;
1688
+ flags?: ({
1689
+ type: "anyOf";
1690
+ terms: string[];
1691
+ } | {
1692
+ type: "not";
1693
+ term: string;
1694
+ })[] | undefined;
1695
+ eventType?: string | undefined;
1696
+ 'legalStatus.REGISTERED.createdAt'?: {
1697
+ type: "range";
1698
+ gte: string;
1699
+ lte: string;
1700
+ } | {
1701
+ type: "exact";
1702
+ term: string;
1703
+ } | undefined;
1704
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1705
+ type: "exact";
1706
+ term: string;
1707
+ } | {
1708
+ type: "within";
1709
+ location: string;
1710
+ } | undefined;
1711
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1712
+ type: "exact";
1713
+ term: string;
1714
+ } | undefined;
1715
+ }>, "atleastone">, [{
1716
+ id?: string | undefined;
1717
+ status?: {
1718
+ type: "exact";
1719
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1720
+ } | {
1721
+ type: "anyOf";
1722
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1723
+ } | undefined;
1724
+ data?: any;
1725
+ createdByUserType?: "system" | "user" | undefined;
1726
+ createdAt?: {
1727
+ type: "range";
1728
+ gte: string;
1729
+ lte: string;
1730
+ } | {
1731
+ type: "exact";
1732
+ term: string;
1733
+ } | undefined;
1734
+ createdBy?: {
1735
+ type: "exact";
1736
+ term: string;
1737
+ } | undefined;
1738
+ createdAtLocation?: {
1739
+ type: "exact";
1740
+ term: string;
1741
+ } | {
1742
+ type: "within";
1743
+ location: string;
1744
+ } | undefined;
1745
+ assignedTo?: {
1746
+ type: "exact";
1747
+ term: string;
1748
+ } | undefined;
1749
+ updatedAt?: {
1256
1750
  type: "range";
1257
1751
  gte: string;
1258
1752
  lte: string;
1753
+ } | {
1754
+ type: "exact";
1755
+ term: string;
1259
1756
  } | undefined;
1260
1757
  trackingId?: {
1261
1758
  type: "exact";
@@ -1281,12 +1778,96 @@ export declare const QueryType: z.ZodObject<{
1281
1778
  })[] | undefined;
1282
1779
  eventType?: string | undefined;
1283
1780
  'legalStatus.REGISTERED.createdAt'?: {
1781
+ type: "range";
1782
+ gte: string;
1783
+ lte: string;
1784
+ } | {
1785
+ type: "exact";
1786
+ term: string;
1787
+ } | undefined;
1788
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1789
+ type: "exact";
1790
+ term: string;
1791
+ } | {
1792
+ type: "within";
1793
+ location: string;
1794
+ } | undefined;
1795
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1796
+ type: "exact";
1797
+ term: string;
1798
+ } | undefined;
1799
+ }, ...{
1800
+ id?: string | undefined;
1801
+ status?: {
1802
+ type: "exact";
1803
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1804
+ } | {
1805
+ type: "anyOf";
1806
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1807
+ } | undefined;
1808
+ data?: any;
1809
+ createdByUserType?: "system" | "user" | undefined;
1810
+ createdAt?: {
1811
+ type: "range";
1812
+ gte: string;
1813
+ lte: string;
1814
+ } | {
1815
+ type: "exact";
1816
+ term: string;
1817
+ } | undefined;
1818
+ createdBy?: {
1819
+ type: "exact";
1820
+ term: string;
1821
+ } | undefined;
1822
+ createdAtLocation?: {
1284
1823
  type: "exact";
1285
1824
  term: string;
1286
1825
  } | {
1826
+ type: "within";
1827
+ location: string;
1828
+ } | undefined;
1829
+ assignedTo?: {
1830
+ type: "exact";
1831
+ term: string;
1832
+ } | undefined;
1833
+ updatedAt?: {
1287
1834
  type: "range";
1288
1835
  gte: string;
1289
1836
  lte: string;
1837
+ } | {
1838
+ type: "exact";
1839
+ term: string;
1840
+ } | undefined;
1841
+ trackingId?: {
1842
+ type: "exact";
1843
+ term: string;
1844
+ } | undefined;
1845
+ updatedAtLocation?: {
1846
+ type: "exact";
1847
+ term: string;
1848
+ } | {
1849
+ type: "within";
1850
+ location: string;
1851
+ } | undefined;
1852
+ updatedBy?: {
1853
+ type: "exact";
1854
+ term: string;
1855
+ } | undefined;
1856
+ flags?: ({
1857
+ type: "anyOf";
1858
+ terms: string[];
1859
+ } | {
1860
+ type: "not";
1861
+ term: string;
1862
+ })[] | undefined;
1863
+ eventType?: string | undefined;
1864
+ 'legalStatus.REGISTERED.createdAt'?: {
1865
+ type: "range";
1866
+ gte: string;
1867
+ lte: string;
1868
+ } | {
1869
+ type: "exact";
1870
+ term: string;
1290
1871
  } | undefined;
1291
1872
  'legalStatus.REGISTERED.createdAtLocation'?: {
1292
1873
  type: "exact";
@@ -1295,10 +1876,15 @@ export declare const QueryType: z.ZodObject<{
1295
1876
  type: "within";
1296
1877
  location: string;
1297
1878
  } | undefined;
1298
- }[], unknown>;
1879
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1880
+ type: "exact";
1881
+ term: string;
1882
+ } | undefined;
1883
+ }[]], unknown>;
1299
1884
  }, "strip", z.ZodTypeAny, {
1300
1885
  type: "and" | "or";
1301
- clauses: {
1886
+ clauses: [{
1887
+ id?: string | undefined;
1302
1888
  status?: {
1303
1889
  type: "exact";
1304
1890
  term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
@@ -1307,13 +1893,14 @@ export declare const QueryType: z.ZodObject<{
1307
1893
  terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1308
1894
  } | undefined;
1309
1895
  data?: any;
1896
+ createdByUserType?: "system" | "user" | undefined;
1310
1897
  createdAt?: {
1311
- type: "exact";
1312
- term: string;
1313
- } | {
1314
1898
  type: "range";
1315
1899
  gte: string;
1316
1900
  lte: string;
1901
+ } | {
1902
+ type: "exact";
1903
+ term: string;
1317
1904
  } | undefined;
1318
1905
  createdBy?: {
1319
1906
  type: "exact";
@@ -1331,12 +1918,12 @@ export declare const QueryType: z.ZodObject<{
1331
1918
  term: string;
1332
1919
  } | undefined;
1333
1920
  updatedAt?: {
1334
- type: "exact";
1335
- term: string;
1336
- } | {
1337
1921
  type: "range";
1338
1922
  gte: string;
1339
1923
  lte: string;
1924
+ } | {
1925
+ type: "exact";
1926
+ term: string;
1340
1927
  } | undefined;
1341
1928
  trackingId?: {
1342
1929
  type: "exact";
@@ -1362,12 +1949,96 @@ export declare const QueryType: z.ZodObject<{
1362
1949
  })[] | undefined;
1363
1950
  eventType?: string | undefined;
1364
1951
  'legalStatus.REGISTERED.createdAt'?: {
1952
+ type: "range";
1953
+ gte: string;
1954
+ lte: string;
1955
+ } | {
1956
+ type: "exact";
1957
+ term: string;
1958
+ } | undefined;
1959
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1960
+ type: "exact";
1961
+ term: string;
1962
+ } | {
1963
+ type: "within";
1964
+ location: string;
1965
+ } | undefined;
1966
+ 'legalStatus.REGISTERED.registrationNumber'?: {
1365
1967
  type: "exact";
1366
1968
  term: string;
1969
+ } | undefined;
1970
+ }, ...{
1971
+ id?: string | undefined;
1972
+ status?: {
1973
+ type: "exact";
1974
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1367
1975
  } | {
1976
+ type: "anyOf";
1977
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1978
+ } | undefined;
1979
+ data?: any;
1980
+ createdByUserType?: "system" | "user" | undefined;
1981
+ createdAt?: {
1368
1982
  type: "range";
1369
1983
  gte: string;
1370
1984
  lte: string;
1985
+ } | {
1986
+ type: "exact";
1987
+ term: string;
1988
+ } | undefined;
1989
+ createdBy?: {
1990
+ type: "exact";
1991
+ term: string;
1992
+ } | undefined;
1993
+ createdAtLocation?: {
1994
+ type: "exact";
1995
+ term: string;
1996
+ } | {
1997
+ type: "within";
1998
+ location: string;
1999
+ } | undefined;
2000
+ assignedTo?: {
2001
+ type: "exact";
2002
+ term: string;
2003
+ } | undefined;
2004
+ updatedAt?: {
2005
+ type: "range";
2006
+ gte: string;
2007
+ lte: string;
2008
+ } | {
2009
+ type: "exact";
2010
+ term: string;
2011
+ } | undefined;
2012
+ trackingId?: {
2013
+ type: "exact";
2014
+ term: string;
2015
+ } | undefined;
2016
+ updatedAtLocation?: {
2017
+ type: "exact";
2018
+ term: string;
2019
+ } | {
2020
+ type: "within";
2021
+ location: string;
2022
+ } | undefined;
2023
+ updatedBy?: {
2024
+ type: "exact";
2025
+ term: string;
2026
+ } | undefined;
2027
+ flags?: ({
2028
+ type: "anyOf";
2029
+ terms: string[];
2030
+ } | {
2031
+ type: "not";
2032
+ term: string;
2033
+ })[] | undefined;
2034
+ eventType?: string | undefined;
2035
+ 'legalStatus.REGISTERED.createdAt'?: {
2036
+ type: "range";
2037
+ gte: string;
2038
+ lte: string;
2039
+ } | {
2040
+ type: "exact";
2041
+ term: string;
1371
2042
  } | undefined;
1372
2043
  'legalStatus.REGISTERED.createdAtLocation'?: {
1373
2044
  type: "exact";
@@ -1376,7 +2047,11 @@ export declare const QueryType: z.ZodObject<{
1376
2047
  type: "within";
1377
2048
  location: string;
1378
2049
  } | undefined;
1379
- }[];
2050
+ 'legalStatus.REGISTERED.registrationNumber'?: {
2051
+ type: "exact";
2052
+ term: string;
2053
+ } | undefined;
2054
+ }[]];
1380
2055
  }, {
1381
2056
  type: "and" | "or";
1382
2057
  clauses?: unknown;