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

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 +7904 -3728
  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 +316 -323
  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 +4033 -644
  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 +2024 -733
  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,33 +466,54 @@ 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<{
439
- type: z.ZodOptional<z.ZodLiteral<"and">>;
497
+ export declare const QueryExpression: z.ZodObject<{
440
498
  eventType: z.ZodOptional<z.ZodString>;
441
499
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
442
500
  type: z.ZodLiteral<"anyOf">;
443
- terms: z.ZodArray<z.ZodString, "many">;
501
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
444
502
  }, "strip", z.ZodTypeAny, {
445
503
  type: "anyOf";
446
- terms: string[];
504
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
447
505
  }, {
448
506
  type: "anyOf";
449
- terms: string[];
507
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
450
508
  }>, z.ZodObject<{
451
509
  type: z.ZodLiteral<"exact">;
452
- term: z.ZodString;
510
+ term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
453
511
  }, "strip", z.ZodTypeAny, {
454
512
  type: "exact";
455
- term: string;
513
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
456
514
  }, {
457
515
  type: "exact";
458
- term: string;
516
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
459
517
  }>]>>>;
460
518
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
461
519
  type: z.ZodLiteral<"exact">;
@@ -501,16 +559,7 @@ declare const QueryExpression: z.ZodObject<{
501
559
  gte: string;
502
560
  lte: string;
503
561
  }>]>>>;
504
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
505
- type: z.ZodLiteral<"within">;
506
- location: z.ZodString;
507
- }, "strip", z.ZodTypeAny, {
508
- type: "within";
509
- location: string;
510
- }, {
511
- type: "within";
512
- location: string;
513
- }>, z.ZodObject<{
562
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
514
563
  type: z.ZodLiteral<"exact">;
515
564
  term: z.ZodString;
516
565
  }, "strip", z.ZodTypeAny, {
@@ -519,210 +568,28 @@ declare const QueryExpression: z.ZodObject<{
519
568
  }, {
520
569
  type: "exact";
521
570
  term: string;
522
- }>]>>>;
523
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
524
- type: z.ZodLiteral<"within">;
525
- location: z.ZodString;
526
- }, "strip", z.ZodTypeAny, {
527
- type: "within";
528
- location: string;
529
- }, {
530
- type: "within";
531
- location: string;
532
- }>, z.ZodObject<{
533
- type: z.ZodLiteral<"exact">;
534
- term: z.ZodString;
535
- }, "strip", z.ZodTypeAny, {
536
- type: "exact";
537
- term: string;
538
- }, {
539
- type: "exact";
540
- term: string;
541
- }>]>>>;
542
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
543
- type: z.ZodLiteral<"exact">;
544
- term: z.ZodString;
545
- }, "strip", z.ZodTypeAny, {
546
- type: "exact";
547
- term: string;
548
- }, {
549
- type: "exact";
550
- term: string;
551
- }>>>;
552
- updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
553
- type: z.ZodLiteral<"exact">;
554
- term: z.ZodString;
555
- }, "strip", z.ZodTypeAny, {
556
- type: "exact";
557
- term: string;
558
- }, {
559
- type: "exact";
560
- term: string;
561
- }>>>;
562
- trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
563
- type: z.ZodLiteral<"exact">;
564
- term: z.ZodString;
565
- }, "strip", z.ZodTypeAny, {
566
- type: "exact";
567
- term: string;
568
- }, {
569
- type: "exact";
570
- term: string;
571
- }>>>;
572
- flags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
573
- type: z.ZodLiteral<"anyOf">;
574
- terms: z.ZodArray<z.ZodString, "many">;
575
- }, "strip", z.ZodTypeAny, {
576
- type: "anyOf";
577
- terms: string[];
578
- }, {
579
- type: "anyOf";
580
- terms: string[];
581
571
  }>, z.ZodObject<{
582
- type: z.ZodLiteral<"not">;
583
- term: z.ZodString;
572
+ type: z.ZodLiteral<"range">;
573
+ gte: z.ZodString;
574
+ lte: z.ZodString;
584
575
  }, "strip", z.ZodTypeAny, {
585
- type: "not";
586
- term: string;
587
- }, {
588
- type: "not";
589
- term: string;
590
- }>]>, "many">>>;
591
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
592
- }, "strip", z.ZodTypeAny, {
593
- type?: "and" | undefined;
594
- status?: {
595
- type: "exact";
596
- term: string;
597
- } | {
598
- type: "anyOf";
599
- terms: string[];
600
- } | undefined;
601
- data?: any;
602
- createdAt?: {
603
- type: "exact";
604
- term: string;
605
- } | {
606
576
  type: "range";
607
577
  gte: string;
608
578
  lte: string;
609
- } | undefined;
610
- createdBy?: {
611
- type: "exact";
612
- term: string;
613
- } | undefined;
614
- updatedAt?: {
615
- type: "exact";
616
- term: string;
617
- } | {
618
- type: "range";
619
- gte: string;
620
- lte: string;
621
- } | undefined;
622
- trackingId?: {
623
- type: "exact";
624
- term: string;
625
- } | undefined;
626
- updatedAtLocation?: {
627
- type: "exact";
628
- term: string;
629
- } | {
630
- type: "within";
631
- location: string;
632
- } | undefined;
633
- updatedBy?: {
634
- type: "exact";
635
- term: string;
636
- } | undefined;
637
- flags?: ({
638
- type: "anyOf";
639
- terms: string[];
640
- } | {
641
- type: "not";
642
- term: string;
643
- })[] | undefined;
644
- eventType?: string | undefined;
645
- createAtLocation?: {
646
- type: "exact";
647
- term: string;
648
- } | {
649
- type: "within";
650
- location: string;
651
- } | undefined;
652
- }, {
653
- type?: "and" | undefined;
654
- status?: {
655
- type: "exact";
656
- term: string;
657
- } | {
658
- type: "anyOf";
659
- terms: string[];
660
- } | undefined;
661
- data?: any;
662
- createdAt?: {
663
- type: "exact";
664
- term: string;
665
- } | {
666
- type: "range";
667
- gte: string;
668
- lte: string;
669
- } | undefined;
670
- createdBy?: {
671
- type: "exact";
672
- term: string;
673
- } | undefined;
674
- updatedAt?: {
675
- type: "exact";
676
- term: string;
677
- } | {
579
+ }, {
678
580
  type: "range";
679
581
  gte: string;
680
582
  lte: string;
681
- } | undefined;
682
- trackingId?: {
683
- type: "exact";
684
- term: string;
685
- } | undefined;
686
- updatedAtLocation?: {
687
- type: "exact";
688
- term: string;
689
- } | {
583
+ }>]>>>;
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, {
690
588
  type: "within";
691
589
  location: string;
692
- } | undefined;
693
- updatedBy?: {
694
- type: "exact";
695
- term: string;
696
- } | undefined;
697
- flags?: ({
698
- type: "anyOf";
699
- terms: string[];
700
- } | {
701
- type: "not";
702
- term: string;
703
- })[] | undefined;
704
- eventType?: string | undefined;
705
- createAtLocation?: {
706
- type: "exact";
707
- term: string;
708
- } | {
590
+ }, {
709
591
  type: "within";
710
592
  location: string;
711
- } | undefined;
712
- }>;
713
- export type QueryExpression = z.infer<typeof QueryExpression>;
714
- export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
715
- type: z.ZodOptional<z.ZodLiteral<"and">>;
716
- eventType: z.ZodOptional<z.ZodString>;
717
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
718
- type: z.ZodLiteral<"anyOf">;
719
- terms: z.ZodArray<z.ZodString, "many">;
720
- }, "strip", z.ZodTypeAny, {
721
- type: "anyOf";
722
- terms: string[];
723
- }, {
724
- type: "anyOf";
725
- terms: string[];
726
593
  }>, z.ZodObject<{
727
594
  type: z.ZodLiteral<"exact">;
728
595
  term: z.ZodString;
@@ -733,29 +600,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
733
600
  type: "exact";
734
601
  term: string;
735
602
  }>]>>>;
736
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
737
- type: z.ZodLiteral<"exact">;
738
- term: z.ZodString;
603
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
604
+ type: z.ZodLiteral<"within">;
605
+ location: z.ZodString;
739
606
  }, "strip", z.ZodTypeAny, {
740
- type: "exact";
741
- term: string;
607
+ type: "within";
608
+ location: string;
742
609
  }, {
743
- type: "exact";
744
- term: string;
610
+ type: "within";
611
+ location: string;
745
612
  }>, z.ZodObject<{
746
- type: z.ZodLiteral<"range">;
747
- gte: z.ZodString;
748
- lte: z.ZodString;
749
- }, "strip", z.ZodTypeAny, {
750
- type: "range";
751
- gte: string;
752
- lte: string;
753
- }, {
754
- type: "range";
755
- gte: string;
756
- lte: string;
757
- }>]>>>;
758
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
759
613
  type: z.ZodLiteral<"exact">;
760
614
  term: z.ZodString;
761
615
  }, "strip", z.ZodTypeAny, {
@@ -764,20 +618,8 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
764
618
  }, {
765
619
  type: "exact";
766
620
  term: string;
767
- }>, z.ZodObject<{
768
- type: z.ZodLiteral<"range">;
769
- gte: z.ZodString;
770
- lte: z.ZodString;
771
- }, "strip", z.ZodTypeAny, {
772
- type: "range";
773
- gte: string;
774
- lte: string;
775
- }, {
776
- type: "range";
777
- gte: string;
778
- lte: string;
779
621
  }>]>>>;
780
- createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
622
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
781
623
  type: z.ZodLiteral<"within">;
782
624
  location: z.ZodString;
783
625
  }, "strip", z.ZodTypeAny, {
@@ -796,16 +638,7 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
796
638
  type: "exact";
797
639
  term: string;
798
640
  }>]>>>;
799
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
800
- type: z.ZodLiteral<"within">;
801
- location: z.ZodString;
802
- }, "strip", z.ZodTypeAny, {
803
- type: "within";
804
- location: string;
805
- }, {
806
- type: "within";
807
- location: string;
808
- }>, z.ZodObject<{
641
+ assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
809
642
  type: z.ZodLiteral<"exact">;
810
643
  term: z.ZodString;
811
644
  }, "strip", z.ZodTypeAny, {
@@ -814,7 +647,7 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
814
647
  }, {
815
648
  type: "exact";
816
649
  term: string;
817
- }>]>>>;
650
+ }>>>;
818
651
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
819
652
  type: z.ZodLiteral<"exact">;
820
653
  term: z.ZodString;
@@ -866,13 +699,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
866
699
  }>]>, "many">>>;
867
700
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
868
701
  }, "strip", z.ZodTypeAny, {
869
- type?: "and" | undefined;
870
702
  status?: {
871
703
  type: "exact";
872
- term: string;
704
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
873
705
  } | {
874
706
  type: "anyOf";
875
- terms: string[];
707
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
876
708
  } | undefined;
877
709
  data?: any;
878
710
  createdAt?: {
@@ -887,6 +719,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
887
719
  type: "exact";
888
720
  term: string;
889
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;
890
733
  updatedAt?: {
891
734
  type: "exact";
892
735
  term: string;
@@ -918,7 +761,15 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
918
761
  term: string;
919
762
  })[] | undefined;
920
763
  eventType?: string | undefined;
921
- 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'?: {
922
773
  type: "exact";
923
774
  term: string;
924
775
  } | {
@@ -926,13 +777,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
926
777
  location: string;
927
778
  } | undefined;
928
779
  }, {
929
- type?: "and" | undefined;
930
780
  status?: {
931
781
  type: "exact";
932
- term: string;
782
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
933
783
  } | {
934
784
  type: "anyOf";
935
- terms: string[];
785
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
936
786
  } | undefined;
937
787
  data?: any;
938
788
  createdAt?: {
@@ -947,6 +797,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
947
797
  type: "exact";
948
798
  term: string;
949
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;
950
811
  updatedAt?: {
951
812
  type: "exact";
952
813
  term: string;
@@ -978,28 +839,46 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
978
839
  term: string;
979
840
  })[] | undefined;
980
841
  eventType?: string | undefined;
981
- 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'?: {
982
851
  type: "exact";
983
852
  term: string;
984
853
  } | {
985
854
  type: "within";
986
855
  location: string;
987
856
  } | undefined;
988
- }>, z.ZodObject<{
989
- type: z.ZodLiteral<"or">;
990
- clauses: z.ZodArray<z.ZodObject<{
991
- type: z.ZodOptional<z.ZodLiteral<"and">>;
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<{
992
861
  eventType: z.ZodOptional<z.ZodString>;
993
862
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
994
863
  type: z.ZodLiteral<"anyOf">;
995
- terms: z.ZodArray<z.ZodString, "many">;
864
+ terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
996
865
  }, "strip", z.ZodTypeAny, {
997
866
  type: "anyOf";
998
- terms: string[];
867
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
999
868
  }, {
1000
869
  type: "anyOf";
1001
- terms: string[];
870
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1002
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<{
1003
882
  type: z.ZodLiteral<"exact">;
1004
883
  term: z.ZodString;
1005
884
  }, "strip", z.ZodTypeAny, {
@@ -1008,8 +887,20 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1008
887
  }, {
1009
888
  type: "exact";
1010
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;
1011
902
  }>]>>>;
1012
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
903
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1013
904
  type: z.ZodLiteral<"exact">;
1014
905
  term: z.ZodString;
1015
906
  }, "strip", z.ZodTypeAny, {
@@ -1031,7 +922,7 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1031
922
  gte: string;
1032
923
  lte: string;
1033
924
  }>]>>>;
1034
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
925
+ 'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1035
926
  type: z.ZodLiteral<"exact">;
1036
927
  term: z.ZodString;
1037
928
  }, "strip", z.ZodTypeAny, {
@@ -1053,7 +944,26 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1053
944
  gte: string;
1054
945
  lte: string;
1055
946
  }>]>>>;
1056
- 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<{
1057
967
  type: z.ZodLiteral<"within">;
1058
968
  location: z.ZodString;
1059
969
  }, "strip", z.ZodTypeAny, {
@@ -1091,6 +1001,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1091
1001
  type: "exact";
1092
1002
  term: string;
1093
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
+ }>>>;
1094
1014
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1095
1015
  type: z.ZodLiteral<"exact">;
1096
1016
  term: z.ZodString;
@@ -1142,13 +1062,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1142
1062
  }>]>, "many">>>;
1143
1063
  data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1144
1064
  }, "strip", z.ZodTypeAny, {
1145
- type?: "and" | undefined;
1146
1065
  status?: {
1147
1066
  type: "exact";
1148
- term: string;
1067
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1149
1068
  } | {
1150
1069
  type: "anyOf";
1151
- terms: string[];
1070
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1152
1071
  } | undefined;
1153
1072
  data?: any;
1154
1073
  createdAt?: {
@@ -1163,6 +1082,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1163
1082
  type: "exact";
1164
1083
  term: string;
1165
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;
1166
1096
  updatedAt?: {
1167
1097
  type: "exact";
1168
1098
  term: string;
@@ -1194,7 +1124,15 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1194
1124
  term: string;
1195
1125
  })[] | undefined;
1196
1126
  eventType?: string | undefined;
1197
- 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'?: {
1198
1136
  type: "exact";
1199
1137
  term: string;
1200
1138
  } | {
@@ -1202,13 +1140,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1202
1140
  location: string;
1203
1141
  } | undefined;
1204
1142
  }, {
1205
- type?: "and" | undefined;
1206
1143
  status?: {
1207
1144
  type: "exact";
1208
- term: string;
1145
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1209
1146
  } | {
1210
1147
  type: "anyOf";
1211
- terms: string[];
1148
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1212
1149
  } | undefined;
1213
1150
  data?: any;
1214
1151
  createdAt?: {
@@ -1223,6 +1160,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1223
1160
  type: "exact";
1224
1161
  term: string;
1225
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;
1226
1174
  updatedAt?: {
1227
1175
  type: "exact";
1228
1176
  term: string;
@@ -1254,24 +1202,28 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1254
1202
  term: string;
1255
1203
  })[] | undefined;
1256
1204
  eventType?: string | undefined;
1257
- 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'?: {
1258
1214
  type: "exact";
1259
1215
  term: string;
1260
1216
  } | {
1261
1217
  type: "within";
1262
1218
  location: string;
1263
1219
  } | undefined;
1264
- }>, "many">;
1265
- }, "strip", z.ZodTypeAny, {
1266
- type: "or";
1267
- clauses: {
1268
- type?: "and" | undefined;
1220
+ }>, "many">, {
1269
1221
  status?: {
1270
1222
  type: "exact";
1271
- term: string;
1223
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1272
1224
  } | {
1273
1225
  type: "anyOf";
1274
- terms: string[];
1226
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1275
1227
  } | undefined;
1276
1228
  data?: any;
1277
1229
  createdAt?: {
@@ -1286,6 +1238,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1286
1238
  type: "exact";
1287
1239
  term: string;
1288
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;
1289
1252
  updatedAt?: {
1290
1253
  type: "exact";
1291
1254
  term: string;
@@ -1317,24 +1280,31 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1317
1280
  term: string;
1318
1281
  })[] | undefined;
1319
1282
  eventType?: string | undefined;
1320
- 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'?: {
1321
1292
  type: "exact";
1322
1293
  term: string;
1323
1294
  } | {
1324
1295
  type: "within";
1325
1296
  location: string;
1326
1297
  } | undefined;
1327
- }[];
1328
- }, {
1329
- type: "or";
1298
+ }[], unknown>;
1299
+ }, "strip", z.ZodTypeAny, {
1300
+ type: "and" | "or";
1330
1301
  clauses: {
1331
- type?: "and" | undefined;
1332
1302
  status?: {
1333
1303
  type: "exact";
1334
- term: string;
1304
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
1335
1305
  } | {
1336
1306
  type: "anyOf";
1337
- terms: string[];
1307
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1338
1308
  } | undefined;
1339
1309
  data?: any;
1340
1310
  createdAt?: {
@@ -1349,6 +1319,17 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1349
1319
  type: "exact";
1350
1320
  term: string;
1351
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;
1352
1333
  updatedAt?: {
1353
1334
  type: "exact";
1354
1335
  term: string;
@@ -1380,7 +1361,15 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1380
1361
  term: string;
1381
1362
  })[] | undefined;
1382
1363
  eventType?: string | undefined;
1383
- 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'?: {
1384
1373
  type: "exact";
1385
1374
  term: string;
1386
1375
  } | {
@@ -1388,7 +1377,11 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1388
1377
  location: string;
1389
1378
  } | undefined;
1390
1379
  }[];
1391
- }>]>;
1380
+ }, {
1381
+ type: "and" | "or";
1382
+ clauses?: unknown;
1383
+ }>;
1392
1384
  export type QueryType = z.infer<typeof QueryType>;
1385
+ export type QueryExpression = z.infer<typeof QueryExpression>;
1393
1386
  export {};
1394
1387
  //# sourceMappingURL=EventIndex.d.ts.map