@opencrvs/toolkit 1.8.0-rc.ff0a1b5 → 1.8.0-rc.ff1f8e0

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 +8086 -3911
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -6
  3. package/dist/commons/events/ActionConfig.d.ts +22281 -7289
  4. package/dist/commons/events/ActionDocument.d.ts +533 -346
  5. package/dist/commons/events/ActionInput.d.ts +197 -125
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +603 -12
  7. package/dist/commons/events/Constants.d.ts +2 -0
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  9. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  10. package/dist/commons/events/Draft.d.ts +29 -24
  11. package/dist/commons/events/EventConfig.d.ts +17241 -9571
  12. package/dist/commons/events/EventDocument.d.ts +386 -267
  13. package/dist/commons/events/EventIndex.d.ts +343 -466
  14. package/dist/commons/events/EventInput.d.ts +0 -13
  15. package/dist/commons/events/EventMetadata.d.ts +72 -48
  16. package/dist/commons/events/FieldConfig.d.ts +991 -428
  17. package/dist/commons/events/FieldTypeMapping.d.ts +5 -2
  18. package/dist/commons/events/FieldValue.d.ts +2 -0
  19. package/dist/commons/events/FormConfig.d.ts +7190 -3722
  20. package/dist/commons/events/PageConfig.d.ts +1512 -660
  21. package/dist/commons/events/User.d.ts +31 -7
  22. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  23. package/dist/commons/events/WorkqueueConfig.d.ts +3506 -239
  24. package/dist/commons/events/defineConfig.d.ts +1632 -574
  25. package/dist/commons/events/event.d.ts +37 -10
  26. package/dist/commons/events/field.d.ts +25 -20
  27. package/dist/commons/events/index.d.ts +4 -0
  28. package/dist/commons/events/scopes.d.ts +20 -1
  29. package/dist/commons/events/serializer.d.ts +2 -0
  30. package/dist/commons/events/test.utils.d.ts +28 -7
  31. package/dist/commons/events/transactions.d.ts +1 -1
  32. package/dist/commons/events/utils.d.ts +443 -291
  33. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  34. package/dist/conditionals/index.js +28 -8
  35. package/dist/events/index.js +2153 -865
  36. package/dist/scopes/index.d.ts +94 -6
  37. package/dist/scopes/index.js +42 -21
  38. package/package.json +1 -1
@@ -1,6 +1,6 @@
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
5
  status: z.ZodNativeEnum<{
6
6
  readonly CREATED: "CREATED";
@@ -16,84 +16,95 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
16
16
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
17
  createdAt: z.ZodString;
18
18
  createdBy: z.ZodString;
19
- createdAtLocation: z.ZodString;
19
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
20
20
  acceptedAt: z.ZodString;
21
21
  createdByRole: z.ZodString;
22
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
23
  }, "strip", z.ZodTypeAny, {
23
24
  createdAt: string;
24
25
  createdBy: string;
25
26
  createdByRole: string;
26
- createdAtLocation: string;
27
27
  acceptedAt: string;
28
+ createdBySignature?: string | null | undefined;
29
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
28
30
  }, {
29
31
  createdAt: string;
30
32
  createdBy: string;
31
33
  createdByRole: string;
32
- createdAtLocation: string;
33
34
  acceptedAt: string;
35
+ createdBySignature?: string | null | undefined;
36
+ createdAtLocation?: string | null | undefined;
34
37
  }>>>;
35
38
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
36
39
  createdAt: z.ZodString;
37
40
  createdBy: z.ZodString;
38
- createdAtLocation: z.ZodString;
41
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
39
42
  acceptedAt: z.ZodString;
40
43
  createdByRole: z.ZodString;
44
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
45
  }, {
42
46
  registrationNumber: z.ZodString;
43
47
  }>, "strip", z.ZodTypeAny, {
44
48
  createdAt: string;
45
49
  createdBy: string;
46
50
  createdByRole: string;
47
- createdAtLocation: string;
48
51
  registrationNumber: string;
49
52
  acceptedAt: string;
53
+ createdBySignature?: string | null | undefined;
54
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
50
55
  }, {
51
56
  createdAt: string;
52
57
  createdBy: string;
53
58
  createdByRole: string;
54
- createdAtLocation: string;
55
59
  registrationNumber: string;
56
60
  acceptedAt: string;
61
+ createdBySignature?: string | null | undefined;
62
+ createdAtLocation?: string | null | undefined;
57
63
  }>>>;
58
64
  }, "strip", z.ZodTypeAny, {
59
65
  DECLARED?: {
60
66
  createdAt: string;
61
67
  createdBy: string;
62
68
  createdByRole: string;
63
- createdAtLocation: string;
64
69
  acceptedAt: string;
70
+ createdBySignature?: string | null | undefined;
71
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
65
72
  } | null | undefined;
66
73
  REGISTERED?: {
67
74
  createdAt: string;
68
75
  createdBy: string;
69
76
  createdByRole: string;
70
- createdAtLocation: string;
71
77
  registrationNumber: string;
72
78
  acceptedAt: string;
79
+ createdBySignature?: string | null | undefined;
80
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
73
81
  } | null | undefined;
74
82
  }, {
75
83
  DECLARED?: {
76
84
  createdAt: string;
77
85
  createdBy: string;
78
86
  createdByRole: string;
79
- createdAtLocation: string;
80
87
  acceptedAt: string;
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
+ createdBySignature?: string | null | undefined;
98
+ createdAtLocation?: string | null | undefined;
89
99
  } | null | undefined;
90
100
  }>;
91
101
  createdAt: z.ZodString;
92
102
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
103
  createdBy: z.ZodString;
94
104
  updatedByUserRole: z.ZodString;
95
- createdAtLocation: z.ZodString;
96
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
106
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
97
108
  updatedAt: z.ZodString;
98
109
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
110
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -218,7 +229,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
218
229
  }>]>>;
219
230
  }>, "strip", z.ZodTypeAny, {
220
231
  type: string;
221
- id: string;
232
+ id: string & z.BRAND<"UUID">;
222
233
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
223
234
  createdAt: string;
224
235
  createdBy: string;
@@ -260,7 +271,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
260
271
  filename: string;
261
272
  originalFilename: string;
262
273
  }[] | [string, string] | undefined>;
263
- createdAtLocation: string;
264
274
  updatedAt: string;
265
275
  trackingId: string;
266
276
  legalStatuses: {
@@ -268,23 +278,27 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
268
278
  createdAt: string;
269
279
  createdBy: string;
270
280
  createdByRole: string;
271
- createdAtLocation: string;
272
281
  acceptedAt: string;
282
+ createdBySignature?: string | null | undefined;
283
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
273
284
  } | null | undefined;
274
285
  REGISTERED?: {
275
286
  createdAt: string;
276
287
  createdBy: string;
277
288
  createdByRole: string;
278
- createdAtLocation: string;
279
289
  registrationNumber: string;
280
290
  acceptedAt: string;
291
+ createdBySignature?: string | null | undefined;
292
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
281
293
  } | null | undefined;
282
294
  };
283
295
  updatedByUserRole: string;
284
296
  flags: string[];
297
+ createdBySignature?: string | null | undefined;
298
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
285
299
  assignedTo?: string | null | undefined;
286
300
  dateOfEvent?: string | null | undefined;
287
- updatedAtLocation?: string | null | undefined;
301
+ updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
288
302
  updatedBy?: string | null | undefined;
289
303
  }, {
290
304
  type: string;
@@ -330,7 +344,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
330
344
  filename: string;
331
345
  originalFilename: string;
332
346
  }[] | [string, string] | undefined>;
333
- createdAtLocation: string;
334
347
  updatedAt: string;
335
348
  trackingId: string;
336
349
  legalStatuses: {
@@ -338,20 +351,24 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
338
351
  createdAt: string;
339
352
  createdBy: string;
340
353
  createdByRole: string;
341
- createdAtLocation: string;
342
354
  acceptedAt: string;
355
+ createdBySignature?: string | null | undefined;
356
+ createdAtLocation?: string | null | undefined;
343
357
  } | null | undefined;
344
358
  REGISTERED?: {
345
359
  createdAt: string;
346
360
  createdBy: string;
347
361
  createdByRole: string;
348
- createdAtLocation: string;
349
362
  registrationNumber: string;
350
363
  acceptedAt: string;
364
+ createdBySignature?: string | null | undefined;
365
+ createdAtLocation?: string | null | undefined;
351
366
  } | null | undefined;
352
367
  };
353
368
  updatedByUserRole: string;
354
369
  flags: string[];
370
+ createdBySignature?: string | null | undefined;
371
+ createdAtLocation?: string | null | undefined;
355
372
  assignedTo?: string | null | undefined;
356
373
  dateOfEvent?: string | null | undefined;
357
374
  updatedAtLocation?: string | null | undefined;
@@ -366,7 +383,7 @@ export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString
366
383
  }>>;
367
384
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
368
385
  export type EventIndex = z.infer<typeof EventIndex>;
369
- declare const Fuzzy: z.ZodObject<{
386
+ export declare const Fuzzy: z.ZodObject<{
370
387
  type: z.ZodLiteral<"fuzzy">;
371
388
  term: z.ZodString;
372
389
  }, "strip", z.ZodTypeAny, {
@@ -376,7 +393,7 @@ declare const Fuzzy: z.ZodObject<{
376
393
  type: "fuzzy";
377
394
  term: string;
378
395
  }>;
379
- declare const Exact: z.ZodObject<{
396
+ export declare const Exact: z.ZodObject<{
380
397
  type: z.ZodLiteral<"exact">;
381
398
  term: z.ZodString;
382
399
  }, "strip", z.ZodTypeAny, {
@@ -386,7 +403,7 @@ declare const Exact: z.ZodObject<{
386
403
  type: "exact";
387
404
  term: string;
388
405
  }>;
389
- declare const AnyOf: z.ZodObject<{
406
+ export declare const AnyOf: z.ZodObject<{
390
407
  type: z.ZodLiteral<"anyOf">;
391
408
  terms: z.ZodArray<z.ZodString, "many">;
392
409
  }, "strip", z.ZodTypeAny, {
@@ -396,7 +413,27 @@ declare const AnyOf: z.ZodObject<{
396
413
  type: "anyOf";
397
414
  terms: string[];
398
415
  }>;
399
- declare const Range: z.ZodObject<{
416
+ export declare const ExactStatus: z.ZodObject<{
417
+ type: z.ZodLiteral<"exact">;
418
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
419
+ }, "strip", z.ZodTypeAny, {
420
+ type: "exact";
421
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
422
+ }, {
423
+ type: "exact";
424
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
425
+ }>;
426
+ export declare const AnyOfStatus: z.ZodObject<{
427
+ type: z.ZodLiteral<"anyOf">;
428
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
429
+ }, "strip", z.ZodTypeAny, {
430
+ type: "anyOf";
431
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
432
+ }, {
433
+ type: "anyOf";
434
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
435
+ }>;
436
+ export declare const Range: z.ZodObject<{
400
437
  type: z.ZodLiteral<"range">;
401
438
  gte: z.ZodString;
402
439
  lte: z.ZodString;
@@ -409,7 +446,7 @@ declare const Range: z.ZodObject<{
409
446
  gte: string;
410
447
  lte: string;
411
448
  }>;
412
- declare const Not: z.ZodObject<{
449
+ export declare const Not: z.ZodObject<{
413
450
  type: z.ZodLiteral<"not">;
414
451
  term: z.ZodString;
415
452
  }, "strip", z.ZodTypeAny, {
@@ -419,7 +456,7 @@ declare const Not: z.ZodObject<{
419
456
  type: "not";
420
457
  term: string;
421
458
  }>;
422
- declare const Within: z.ZodObject<{
459
+ export declare const Within: z.ZodObject<{
423
460
  type: z.ZodLiteral<"within">;
424
461
  location: z.ZodString;
425
462
  }, "strip", z.ZodTypeAny, {
@@ -429,24 +466,56 @@ declare const Within: z.ZodObject<{
429
466
  type: "within";
430
467
  location: string;
431
468
  }>;
469
+ export declare const DateCondition: z.ZodUnion<[z.ZodObject<{
470
+ type: z.ZodLiteral<"exact">;
471
+ term: z.ZodString;
472
+ }, "strip", z.ZodTypeAny, {
473
+ type: "exact";
474
+ term: string;
475
+ }, {
476
+ type: "exact";
477
+ term: string;
478
+ }>, z.ZodObject<{
479
+ type: z.ZodLiteral<"range">;
480
+ gte: z.ZodString;
481
+ lte: z.ZodString;
482
+ }, "strip", z.ZodTypeAny, {
483
+ type: "range";
484
+ gte: string;
485
+ lte: string;
486
+ }, {
487
+ type: "range";
488
+ gte: string;
489
+ lte: string;
490
+ }>]>;
432
491
  export declare const QueryInput: ZodType;
433
492
  export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf> | z.infer<typeof Not>;
434
493
  type QueryMap = {
435
494
  [key: string]: BaseInput | QueryMap;
436
495
  };
437
496
  export type QueryInputType = BaseInput | QueryMap;
438
- declare const QueryExpression: z.ZodObject<{
497
+ export declare const QueryExpression: z.ZodObject<{
439
498
  eventType: z.ZodOptional<z.ZodString>;
440
499
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
441
500
  type: z.ZodLiteral<"anyOf">;
442
- terms: z.ZodArray<z.ZodString, "many">;
501
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
443
502
  }, "strip", z.ZodTypeAny, {
444
503
  type: "anyOf";
445
- terms: string[];
504
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
446
505
  }, {
447
506
  type: "anyOf";
448
- terms: string[];
507
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
449
508
  }>, z.ZodObject<{
509
+ type: z.ZodLiteral<"exact">;
510
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
511
+ }, "strip", z.ZodTypeAny, {
512
+ type: "exact";
513
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
514
+ }, {
515
+ type: "exact";
516
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
517
+ }>]>>>;
518
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
450
519
  type: z.ZodLiteral<"exact">;
451
520
  term: z.ZodString;
452
521
  }, "strip", z.ZodTypeAny, {
@@ -455,8 +524,20 @@ declare const QueryExpression: z.ZodObject<{
455
524
  }, {
456
525
  type: "exact";
457
526
  term: string;
527
+ }>, z.ZodObject<{
528
+ type: z.ZodLiteral<"range">;
529
+ gte: z.ZodString;
530
+ lte: z.ZodString;
531
+ }, "strip", z.ZodTypeAny, {
532
+ type: "range";
533
+ gte: string;
534
+ lte: string;
535
+ }, {
536
+ type: "range";
537
+ gte: string;
538
+ lte: string;
458
539
  }>]>>>;
459
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
540
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
460
541
  type: z.ZodLiteral<"exact">;
461
542
  term: z.ZodString;
462
543
  }, "strip", z.ZodTypeAny, {
@@ -478,7 +559,7 @@ declare const QueryExpression: z.ZodObject<{
478
559
  gte: string;
479
560
  lte: string;
480
561
  }>]>>>;
481
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
562
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
482
563
  type: z.ZodLiteral<"exact">;
483
564
  term: z.ZodString;
484
565
  }, "strip", z.ZodTypeAny, {
@@ -500,7 +581,26 @@ declare const QueryExpression: z.ZodObject<{
500
581
  gte: string;
501
582
  lte: string;
502
583
  }>]>>>;
503
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
584
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
585
+ type: z.ZodLiteral<"within">;
586
+ location: z.ZodString;
587
+ }, "strip", z.ZodTypeAny, {
588
+ type: "within";
589
+ location: string;
590
+ }, {
591
+ type: "within";
592
+ location: string;
593
+ }>, z.ZodObject<{
594
+ type: z.ZodLiteral<"exact">;
595
+ term: z.ZodString;
596
+ }, "strip", z.ZodTypeAny, {
597
+ type: "exact";
598
+ term: string;
599
+ }, {
600
+ type: "exact";
601
+ term: string;
602
+ }>]>>>;
603
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
504
604
  type: z.ZodLiteral<"within">;
505
605
  location: z.ZodString;
506
606
  }, "strip", z.ZodTypeAny, {
@@ -538,6 +638,16 @@ declare const QueryExpression: z.ZodObject<{
538
638
  type: "exact";
539
639
  term: string;
540
640
  }>]>>>;
641
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
642
+ type: z.ZodLiteral<"exact">;
643
+ term: z.ZodString;
644
+ }, "strip", z.ZodTypeAny, {
645
+ type: "exact";
646
+ term: string;
647
+ }, {
648
+ type: "exact";
649
+ term: string;
650
+ }>>>;
541
651
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
542
652
  type: z.ZodLiteral<"exact">;
543
653
  term: z.ZodString;
@@ -591,10 +701,10 @@ declare const QueryExpression: z.ZodObject<{
591
701
  }, "strip", z.ZodTypeAny, {
592
702
  status?: {
593
703
  type: "exact";
594
- term: string;
704
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
595
705
  } | {
596
706
  type: "anyOf";
597
- terms: string[];
707
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
598
708
  } | undefined;
599
709
  data?: any;
600
710
  createdAt?: {
@@ -609,6 +719,17 @@ declare const QueryExpression: z.ZodObject<{
609
719
  type: "exact";
610
720
  term: string;
611
721
  } | undefined;
722
+ createdAtLocation?: {
723
+ type: "exact";
724
+ term: string;
725
+ } | {
726
+ type: "within";
727
+ location: string;
728
+ } | undefined;
729
+ assignedTo?: {
730
+ type: "exact";
731
+ term: string;
732
+ } | undefined;
612
733
  updatedAt?: {
613
734
  type: "exact";
614
735
  term: string;
@@ -640,7 +761,15 @@ declare const QueryExpression: z.ZodObject<{
640
761
  term: string;
641
762
  })[] | undefined;
642
763
  eventType?: string | undefined;
643
- createAtLocation?: {
764
+ 'legalStatus.REGISTERED.createdAt'?: {
765
+ type: "exact";
766
+ term: string;
767
+ } | {
768
+ type: "range";
769
+ gte: string;
770
+ lte: string;
771
+ } | undefined;
772
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
644
773
  type: "exact";
645
774
  term: string;
646
775
  } | {
@@ -650,10 +779,10 @@ declare const QueryExpression: z.ZodObject<{
650
779
  }, {
651
780
  status?: {
652
781
  type: "exact";
653
- term: string;
782
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
654
783
  } | {
655
784
  type: "anyOf";
656
- terms: string[];
785
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
657
786
  } | undefined;
658
787
  data?: any;
659
788
  createdAt?: {
@@ -668,6 +797,17 @@ declare const QueryExpression: z.ZodObject<{
668
797
  type: "exact";
669
798
  term: string;
670
799
  } | undefined;
800
+ createdAtLocation?: {
801
+ type: "exact";
802
+ term: string;
803
+ } | {
804
+ type: "within";
805
+ location: string;
806
+ } | undefined;
807
+ assignedTo?: {
808
+ type: "exact";
809
+ term: string;
810
+ } | undefined;
671
811
  updatedAt?: {
672
812
  type: "exact";
673
813
  term: string;
@@ -699,7 +839,15 @@ declare const QueryExpression: z.ZodObject<{
699
839
  term: string;
700
840
  })[] | undefined;
701
841
  eventType?: string | undefined;
702
- createAtLocation?: {
842
+ 'legalStatus.REGISTERED.createdAt'?: {
843
+ type: "exact";
844
+ term: string;
845
+ } | {
846
+ type: "range";
847
+ gte: string;
848
+ lte: string;
849
+ } | undefined;
850
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
703
851
  type: "exact";
704
852
  term: string;
705
853
  } | {
@@ -707,20 +855,30 @@ declare const QueryExpression: z.ZodObject<{
707
855
  location: string;
708
856
  } | undefined;
709
857
  }>;
710
- export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
711
- type: z.ZodLiteral<"or">;
712
- clauses: z.ZodArray<z.ZodObject<{
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<{
713
861
  eventType: z.ZodOptional<z.ZodString>;
714
862
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
715
863
  type: z.ZodLiteral<"anyOf">;
716
- terms: z.ZodArray<z.ZodString, "many">;
864
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
717
865
  }, "strip", z.ZodTypeAny, {
718
866
  type: "anyOf";
719
- terms: string[];
867
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
720
868
  }, {
721
869
  type: "anyOf";
722
- terms: string[];
870
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
723
871
  }>, z.ZodObject<{
872
+ type: z.ZodLiteral<"exact">;
873
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
874
+ }, "strip", z.ZodTypeAny, {
875
+ type: "exact";
876
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
877
+ }, {
878
+ type: "exact";
879
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
880
+ }>]>>>;
881
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
724
882
  type: z.ZodLiteral<"exact">;
725
883
  term: z.ZodString;
726
884
  }, "strip", z.ZodTypeAny, {
@@ -729,8 +887,20 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
729
887
  }, {
730
888
  type: "exact";
731
889
  term: string;
890
+ }>, z.ZodObject<{
891
+ type: z.ZodLiteral<"range">;
892
+ gte: z.ZodString;
893
+ lte: z.ZodString;
894
+ }, "strip", z.ZodTypeAny, {
895
+ type: "range";
896
+ gte: string;
897
+ lte: string;
898
+ }, {
899
+ type: "range";
900
+ gte: string;
901
+ lte: string;
732
902
  }>]>>>;
733
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
903
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
734
904
  type: z.ZodLiteral<"exact">;
735
905
  term: z.ZodString;
736
906
  }, "strip", z.ZodTypeAny, {
@@ -752,7 +922,7 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
752
922
  gte: string;
753
923
  lte: string;
754
924
  }>]>>>;
755
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
925
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
756
926
  type: z.ZodLiteral<"exact">;
757
927
  term: z.ZodString;
758
928
  }, "strip", z.ZodTypeAny, {
@@ -774,7 +944,26 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
774
944
  gte: string;
775
945
  lte: string;
776
946
  }>]>>>;
777
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
947
+ 'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
948
+ type: z.ZodLiteral<"within">;
949
+ location: z.ZodString;
950
+ }, "strip", z.ZodTypeAny, {
951
+ type: "within";
952
+ location: string;
953
+ }, {
954
+ type: "within";
955
+ location: string;
956
+ }>, z.ZodObject<{
957
+ type: z.ZodLiteral<"exact">;
958
+ term: z.ZodString;
959
+ }, "strip", z.ZodTypeAny, {
960
+ type: "exact";
961
+ term: string;
962
+ }, {
963
+ type: "exact";
964
+ term: string;
965
+ }>]>>>;
966
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
778
967
  type: z.ZodLiteral<"within">;
779
968
  location: z.ZodString;
780
969
  }, "strip", z.ZodTypeAny, {
@@ -812,6 +1001,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
812
1001
  type: "exact";
813
1002
  term: string;
814
1003
  }>]>>>;
1004
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1005
+ type: z.ZodLiteral<"exact">;
1006
+ term: z.ZodString;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ type: "exact";
1009
+ term: string;
1010
+ }, {
1011
+ type: "exact";
1012
+ term: string;
1013
+ }>>>;
815
1014
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
816
1015
  type: z.ZodLiteral<"exact">;
817
1016
  term: z.ZodString;
@@ -865,10 +1064,10 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
865
1064
  }, "strip", z.ZodTypeAny, {
866
1065
  status?: {
867
1066
  type: "exact";
868
- term: string;
1067
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
869
1068
  } | {
870
1069
  type: "anyOf";
871
- terms: string[];
1070
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
872
1071
  } | undefined;
873
1072
  data?: any;
874
1073
  createdAt?: {
@@ -883,6 +1082,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
883
1082
  type: "exact";
884
1083
  term: string;
885
1084
  } | undefined;
1085
+ createdAtLocation?: {
1086
+ type: "exact";
1087
+ term: string;
1088
+ } | {
1089
+ type: "within";
1090
+ location: string;
1091
+ } | undefined;
1092
+ assignedTo?: {
1093
+ type: "exact";
1094
+ term: string;
1095
+ } | undefined;
886
1096
  updatedAt?: {
887
1097
  type: "exact";
888
1098
  term: string;
@@ -914,7 +1124,15 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
914
1124
  term: string;
915
1125
  })[] | undefined;
916
1126
  eventType?: string | undefined;
917
- createAtLocation?: {
1127
+ 'legalStatus.REGISTERED.createdAt'?: {
1128
+ type: "exact";
1129
+ term: string;
1130
+ } | {
1131
+ type: "range";
1132
+ gte: string;
1133
+ lte: string;
1134
+ } | undefined;
1135
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
918
1136
  type: "exact";
919
1137
  term: string;
920
1138
  } | {
@@ -924,10 +1142,10 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
924
1142
  }, {
925
1143
  status?: {
926
1144
  type: "exact";
927
- term: string;
1145
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
928
1146
  } | {
929
1147
  type: "anyOf";
930
- terms: string[];
1148
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
931
1149
  } | undefined;
932
1150
  data?: any;
933
1151
  createdAt?: {
@@ -942,6 +1160,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
942
1160
  type: "exact";
943
1161
  term: string;
944
1162
  } | undefined;
1163
+ createdAtLocation?: {
1164
+ type: "exact";
1165
+ term: string;
1166
+ } | {
1167
+ type: "within";
1168
+ location: string;
1169
+ } | undefined;
1170
+ assignedTo?: {
1171
+ type: "exact";
1172
+ term: string;
1173
+ } | undefined;
945
1174
  updatedAt?: {
946
1175
  type: "exact";
947
1176
  term: string;
@@ -973,23 +1202,28 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
973
1202
  term: string;
974
1203
  })[] | undefined;
975
1204
  eventType?: string | undefined;
976
- createAtLocation?: {
1205
+ 'legalStatus.REGISTERED.createdAt'?: {
1206
+ type: "exact";
1207
+ term: string;
1208
+ } | {
1209
+ type: "range";
1210
+ gte: string;
1211
+ lte: string;
1212
+ } | undefined;
1213
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
977
1214
  type: "exact";
978
1215
  term: string;
979
1216
  } | {
980
1217
  type: "within";
981
1218
  location: string;
982
1219
  } | undefined;
983
- }>, "many">;
984
- }, "strip", z.ZodTypeAny, {
985
- type: "or";
986
- clauses: {
1220
+ }>, "many">, {
987
1221
  status?: {
988
1222
  type: "exact";
989
- term: string;
1223
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
990
1224
  } | {
991
1225
  type: "anyOf";
992
- terms: string[];
1226
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
993
1227
  } | undefined;
994
1228
  data?: any;
995
1229
  createdAt?: {
@@ -1004,6 +1238,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1004
1238
  type: "exact";
1005
1239
  term: string;
1006
1240
  } | undefined;
1241
+ createdAtLocation?: {
1242
+ type: "exact";
1243
+ term: string;
1244
+ } | {
1245
+ type: "within";
1246
+ location: string;
1247
+ } | undefined;
1248
+ assignedTo?: {
1249
+ type: "exact";
1250
+ term: string;
1251
+ } | undefined;
1007
1252
  updatedAt?: {
1008
1253
  type: "exact";
1009
1254
  term: string;
@@ -1035,23 +1280,31 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1035
1280
  term: string;
1036
1281
  })[] | undefined;
1037
1282
  eventType?: string | undefined;
1038
- createAtLocation?: {
1283
+ 'legalStatus.REGISTERED.createdAt'?: {
1284
+ type: "exact";
1285
+ term: string;
1286
+ } | {
1287
+ type: "range";
1288
+ gte: string;
1289
+ lte: string;
1290
+ } | undefined;
1291
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1039
1292
  type: "exact";
1040
1293
  term: string;
1041
1294
  } | {
1042
1295
  type: "within";
1043
1296
  location: string;
1044
1297
  } | undefined;
1045
- }[];
1046
- }, {
1047
- type: "or";
1298
+ }[], unknown>;
1299
+ }, "strip", z.ZodTypeAny, {
1300
+ type: "and" | "or";
1048
1301
  clauses: {
1049
1302
  status?: {
1050
1303
  type: "exact";
1051
- term: string;
1304
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1052
1305
  } | {
1053
1306
  type: "anyOf";
1054
- terms: string[];
1307
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1055
1308
  } | undefined;
1056
1309
  data?: any;
1057
1310
  createdAt?: {
@@ -1066,6 +1319,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1066
1319
  type: "exact";
1067
1320
  term: string;
1068
1321
  } | undefined;
1322
+ createdAtLocation?: {
1323
+ type: "exact";
1324
+ term: string;
1325
+ } | {
1326
+ type: "within";
1327
+ location: string;
1328
+ } | undefined;
1329
+ assignedTo?: {
1330
+ type: "exact";
1331
+ term: string;
1332
+ } | undefined;
1069
1333
  updatedAt?: {
1070
1334
  type: "exact";
1071
1335
  term: string;
@@ -1097,343 +1361,15 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1097
1361
  term: string;
1098
1362
  })[] | undefined;
1099
1363
  eventType?: string | undefined;
1100
- createAtLocation?: {
1101
- type: "exact";
1102
- term: string;
1103
- } | {
1104
- type: "within";
1105
- location: string;
1106
- } | undefined;
1107
- }[];
1108
- }>, z.ZodObject<{
1109
- type: z.ZodLiteral<"and">;
1110
- clauses: z.ZodArray<z.ZodObject<{
1111
- eventType: z.ZodOptional<z.ZodString>;
1112
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1113
- type: z.ZodLiteral<"anyOf">;
1114
- terms: z.ZodArray<z.ZodString, "many">;
1115
- }, "strip", z.ZodTypeAny, {
1116
- type: "anyOf";
1117
- terms: string[];
1118
- }, {
1119
- type: "anyOf";
1120
- terms: string[];
1121
- }>, z.ZodObject<{
1122
- type: z.ZodLiteral<"exact">;
1123
- term: z.ZodString;
1124
- }, "strip", z.ZodTypeAny, {
1125
- type: "exact";
1126
- term: string;
1127
- }, {
1128
- type: "exact";
1129
- term: string;
1130
- }>]>>>;
1131
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1132
- type: z.ZodLiteral<"exact">;
1133
- term: z.ZodString;
1134
- }, "strip", z.ZodTypeAny, {
1135
- type: "exact";
1136
- term: string;
1137
- }, {
1138
- type: "exact";
1139
- term: string;
1140
- }>, z.ZodObject<{
1141
- type: z.ZodLiteral<"range">;
1142
- gte: z.ZodString;
1143
- lte: z.ZodString;
1144
- }, "strip", z.ZodTypeAny, {
1145
- type: "range";
1146
- gte: string;
1147
- lte: string;
1148
- }, {
1149
- type: "range";
1150
- gte: string;
1151
- lte: string;
1152
- }>]>>>;
1153
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1154
- type: z.ZodLiteral<"exact">;
1155
- term: z.ZodString;
1156
- }, "strip", z.ZodTypeAny, {
1157
- type: "exact";
1158
- term: string;
1159
- }, {
1160
- type: "exact";
1161
- term: string;
1162
- }>, z.ZodObject<{
1163
- type: z.ZodLiteral<"range">;
1164
- gte: z.ZodString;
1165
- lte: z.ZodString;
1166
- }, "strip", z.ZodTypeAny, {
1167
- type: "range";
1168
- gte: string;
1169
- lte: string;
1170
- }, {
1171
- type: "range";
1172
- gte: string;
1173
- lte: string;
1174
- }>]>>>;
1175
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1176
- type: z.ZodLiteral<"within">;
1177
- location: z.ZodString;
1178
- }, "strip", z.ZodTypeAny, {
1179
- type: "within";
1180
- location: string;
1181
- }, {
1182
- type: "within";
1183
- location: string;
1184
- }>, z.ZodObject<{
1185
- type: z.ZodLiteral<"exact">;
1186
- term: z.ZodString;
1187
- }, "strip", z.ZodTypeAny, {
1188
- type: "exact";
1189
- term: string;
1190
- }, {
1191
- type: "exact";
1192
- term: string;
1193
- }>]>>>;
1194
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1195
- type: z.ZodLiteral<"within">;
1196
- location: z.ZodString;
1197
- }, "strip", z.ZodTypeAny, {
1198
- type: "within";
1199
- location: string;
1200
- }, {
1201
- type: "within";
1202
- location: string;
1203
- }>, z.ZodObject<{
1204
- type: z.ZodLiteral<"exact">;
1205
- term: z.ZodString;
1206
- }, "strip", z.ZodTypeAny, {
1207
- type: "exact";
1208
- term: string;
1209
- }, {
1210
- type: "exact";
1211
- term: string;
1212
- }>]>>>;
1213
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1214
- type: z.ZodLiteral<"exact">;
1215
- term: z.ZodString;
1216
- }, "strip", z.ZodTypeAny, {
1217
- type: "exact";
1218
- term: string;
1219
- }, {
1220
- type: "exact";
1221
- term: string;
1222
- }>>>;
1223
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1224
- type: z.ZodLiteral<"exact">;
1225
- term: z.ZodString;
1226
- }, "strip", z.ZodTypeAny, {
1227
- type: "exact";
1228
- term: string;
1229
- }, {
1230
- type: "exact";
1231
- term: string;
1232
- }>>>;
1233
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1234
- type: z.ZodLiteral<"exact">;
1235
- term: z.ZodString;
1236
- }, "strip", z.ZodTypeAny, {
1237
- type: "exact";
1238
- term: string;
1239
- }, {
1240
- type: "exact";
1241
- term: string;
1242
- }>>>;
1243
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1244
- type: z.ZodLiteral<"anyOf">;
1245
- terms: z.ZodArray<z.ZodString, "many">;
1246
- }, "strip", z.ZodTypeAny, {
1247
- type: "anyOf";
1248
- terms: string[];
1249
- }, {
1250
- type: "anyOf";
1251
- terms: string[];
1252
- }>, z.ZodObject<{
1253
- type: z.ZodLiteral<"not">;
1254
- term: z.ZodString;
1255
- }, "strip", z.ZodTypeAny, {
1256
- type: "not";
1257
- term: string;
1258
- }, {
1259
- type: "not";
1260
- term: string;
1261
- }>]>, "many">>>;
1262
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1263
- }, "strip", z.ZodTypeAny, {
1264
- status?: {
1265
- type: "exact";
1266
- term: string;
1267
- } | {
1268
- type: "anyOf";
1269
- terms: string[];
1270
- } | undefined;
1271
- data?: any;
1272
- createdAt?: {
1273
- type: "exact";
1274
- term: string;
1275
- } | {
1276
- type: "range";
1277
- gte: string;
1278
- lte: string;
1279
- } | undefined;
1280
- createdBy?: {
1281
- type: "exact";
1282
- term: string;
1283
- } | undefined;
1284
- updatedAt?: {
1285
- type: "exact";
1286
- term: string;
1287
- } | {
1288
- type: "range";
1289
- gte: string;
1290
- lte: string;
1291
- } | undefined;
1292
- trackingId?: {
1293
- type: "exact";
1294
- term: string;
1295
- } | undefined;
1296
- updatedAtLocation?: {
1297
- type: "exact";
1298
- term: string;
1299
- } | {
1300
- type: "within";
1301
- location: string;
1302
- } | undefined;
1303
- updatedBy?: {
1304
- type: "exact";
1305
- term: string;
1306
- } | undefined;
1307
- flags?: ({
1308
- type: "anyOf";
1309
- terms: string[];
1310
- } | {
1311
- type: "not";
1312
- term: string;
1313
- })[] | undefined;
1314
- eventType?: string | undefined;
1315
- createAtLocation?: {
1316
- type: "exact";
1317
- term: string;
1318
- } | {
1319
- type: "within";
1320
- location: string;
1321
- } | undefined;
1322
- }, {
1323
- status?: {
1324
- type: "exact";
1325
- term: string;
1326
- } | {
1327
- type: "anyOf";
1328
- terms: string[];
1329
- } | undefined;
1330
- data?: any;
1331
- createdAt?: {
1332
- type: "exact";
1333
- term: string;
1334
- } | {
1335
- type: "range";
1336
- gte: string;
1337
- lte: string;
1338
- } | undefined;
1339
- createdBy?: {
1340
- type: "exact";
1341
- term: string;
1342
- } | undefined;
1343
- updatedAt?: {
1344
- type: "exact";
1345
- term: string;
1346
- } | {
1347
- type: "range";
1348
- gte: string;
1349
- lte: string;
1350
- } | undefined;
1351
- trackingId?: {
1352
- type: "exact";
1353
- term: string;
1354
- } | undefined;
1355
- updatedAtLocation?: {
1356
- type: "exact";
1357
- term: string;
1358
- } | {
1359
- type: "within";
1360
- location: string;
1361
- } | undefined;
1362
- updatedBy?: {
1363
- type: "exact";
1364
- term: string;
1365
- } | undefined;
1366
- flags?: ({
1367
- type: "anyOf";
1368
- terms: string[];
1369
- } | {
1370
- type: "not";
1371
- term: string;
1372
- })[] | undefined;
1373
- eventType?: string | undefined;
1374
- createAtLocation?: {
1375
- type: "exact";
1376
- term: string;
1377
- } | {
1378
- type: "within";
1379
- location: string;
1380
- } | undefined;
1381
- }>, "many">;
1382
- }, "strip", z.ZodTypeAny, {
1383
- type: "and";
1384
- clauses: {
1385
- status?: {
1386
- type: "exact";
1387
- term: string;
1388
- } | {
1389
- type: "anyOf";
1390
- terms: string[];
1391
- } | undefined;
1392
- data?: any;
1393
- createdAt?: {
1394
- type: "exact";
1395
- term: string;
1396
- } | {
1397
- type: "range";
1398
- gte: string;
1399
- lte: string;
1400
- } | undefined;
1401
- createdBy?: {
1402
- type: "exact";
1403
- term: string;
1404
- } | undefined;
1405
- updatedAt?: {
1406
- type: "exact";
1407
- term: string;
1408
- } | {
1409
- type: "range";
1410
- gte: string;
1411
- lte: string;
1412
- } | undefined;
1413
- trackingId?: {
1414
- type: "exact";
1415
- term: string;
1416
- } | undefined;
1417
- updatedAtLocation?: {
1418
- type: "exact";
1419
- term: string;
1420
- } | {
1421
- type: "within";
1422
- location: string;
1423
- } | undefined;
1424
- updatedBy?: {
1425
- type: "exact";
1426
- term: string;
1427
- } | undefined;
1428
- flags?: ({
1429
- type: "anyOf";
1430
- terms: string[];
1431
- } | {
1432
- type: "not";
1433
- term: string;
1434
- })[] | undefined;
1435
- eventType?: string | undefined;
1436
- createAtLocation?: {
1364
+ 'legalStatus.REGISTERED.createdAt'?: {
1365
+ type: "exact";
1366
+ term: string;
1367
+ } | {
1368
+ type: "range";
1369
+ gte: string;
1370
+ lte: string;
1371
+ } | undefined;
1372
+ 'legalStatus.REGISTERED.createdAtLocation'?: {
1437
1373
  type: "exact";
1438
1374
  term: string;
1439
1375
  } | {
@@ -1442,68 +1378,9 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1442
1378
  } | undefined;
1443
1379
  }[];
1444
1380
  }, {
1445
- type: "and";
1446
- clauses: {
1447
- status?: {
1448
- type: "exact";
1449
- term: string;
1450
- } | {
1451
- type: "anyOf";
1452
- terms: string[];
1453
- } | undefined;
1454
- data?: any;
1455
- createdAt?: {
1456
- type: "exact";
1457
- term: string;
1458
- } | {
1459
- type: "range";
1460
- gte: string;
1461
- lte: string;
1462
- } | undefined;
1463
- createdBy?: {
1464
- type: "exact";
1465
- term: string;
1466
- } | undefined;
1467
- updatedAt?: {
1468
- type: "exact";
1469
- term: string;
1470
- } | {
1471
- type: "range";
1472
- gte: string;
1473
- lte: string;
1474
- } | undefined;
1475
- trackingId?: {
1476
- type: "exact";
1477
- term: string;
1478
- } | undefined;
1479
- updatedAtLocation?: {
1480
- type: "exact";
1481
- term: string;
1482
- } | {
1483
- type: "within";
1484
- location: string;
1485
- } | undefined;
1486
- updatedBy?: {
1487
- type: "exact";
1488
- term: string;
1489
- } | undefined;
1490
- flags?: ({
1491
- type: "anyOf";
1492
- terms: string[];
1493
- } | {
1494
- type: "not";
1495
- term: string;
1496
- })[] | undefined;
1497
- eventType?: string | undefined;
1498
- createAtLocation?: {
1499
- type: "exact";
1500
- term: string;
1501
- } | {
1502
- type: "within";
1503
- location: string;
1504
- } | undefined;
1505
- }[];
1506
- }>]>;
1381
+ type: "and" | "or";
1382
+ clauses?: unknown;
1383
+ }>;
1507
1384
  export type QueryType = z.infer<typeof QueryType>;
1508
1385
  export type QueryExpression = z.infer<typeof QueryExpression>;
1509
1386
  export {};