@opencrvs/toolkit 1.8.0-rc.fc4c805 → 1.8.0-rc.fcd89ec
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.
- package/dist/commons/api/router.d.ts +2961 -195
- package/dist/commons/events/ActionConfig.d.ts +8022 -1007
- package/dist/commons/events/ActionDocument.d.ts +105 -105
- package/dist/commons/events/ActionInput.d.ts +3 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +603 -12
- package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
- package/dist/commons/events/Draft.d.ts +5 -5
- package/dist/commons/events/EventConfig.d.ts +3622 -113
- package/dist/commons/events/EventDocument.d.ts +80 -80
- package/dist/commons/events/EventIndex.d.ts +202 -312
- package/dist/commons/events/EventMetadata.d.ts +34 -33
- package/dist/commons/events/FieldConfig.d.ts +517 -0
- package/dist/commons/events/FormConfig.d.ts +3641 -467
- package/dist/commons/events/PageConfig.d.ts +782 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +169 -559
- package/dist/commons/events/defineConfig.d.ts +253 -1
- package/dist/commons/events/event.d.ts +35 -8
- package/dist/commons/events/field.d.ts +21 -7
- package/dist/commons/events/scopes.d.ts +20 -1
- package/dist/commons/events/test.utils.d.ts +3 -3
- package/dist/commons/events/utils.d.ts +116 -1
- package/dist/events/index.js +813 -341
- package/dist/scopes/index.d.ts +158 -1
- package/dist/scopes/index.js +152 -1
- package/package.json +1 -1
@@ -16,26 +16,26 @@ 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.ZodString>>;
|
20
20
|
acceptedAt: z.ZodString;
|
21
21
|
createdByRole: z.ZodString;
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
23
23
|
createdAt: string;
|
24
24
|
createdBy: string;
|
25
25
|
createdByRole: string;
|
26
|
-
createdAtLocation: string;
|
27
26
|
acceptedAt: string;
|
27
|
+
createdAtLocation?: string | null | undefined;
|
28
28
|
}, {
|
29
29
|
createdAt: string;
|
30
30
|
createdBy: string;
|
31
31
|
createdByRole: string;
|
32
|
-
createdAtLocation: string;
|
33
32
|
acceptedAt: string;
|
33
|
+
createdAtLocation?: string | null | undefined;
|
34
34
|
}>>>;
|
35
35
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
36
36
|
createdAt: z.ZodString;
|
37
37
|
createdBy: z.ZodString;
|
38
|
-
createdAtLocation: z.ZodString
|
38
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
39
39
|
acceptedAt: z.ZodString;
|
40
40
|
createdByRole: z.ZodString;
|
41
41
|
}, {
|
@@ -44,55 +44,55 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
44
44
|
createdAt: string;
|
45
45
|
createdBy: string;
|
46
46
|
createdByRole: string;
|
47
|
-
createdAtLocation: string;
|
48
47
|
registrationNumber: string;
|
49
48
|
acceptedAt: string;
|
49
|
+
createdAtLocation?: string | null | undefined;
|
50
50
|
}, {
|
51
51
|
createdAt: string;
|
52
52
|
createdBy: string;
|
53
53
|
createdByRole: string;
|
54
|
-
createdAtLocation: string;
|
55
54
|
registrationNumber: string;
|
56
55
|
acceptedAt: string;
|
56
|
+
createdAtLocation?: string | null | undefined;
|
57
57
|
}>>>;
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
59
59
|
DECLARED?: {
|
60
60
|
createdAt: string;
|
61
61
|
createdBy: string;
|
62
62
|
createdByRole: string;
|
63
|
-
createdAtLocation: string;
|
64
63
|
acceptedAt: string;
|
64
|
+
createdAtLocation?: string | null | undefined;
|
65
65
|
} | null | undefined;
|
66
66
|
REGISTERED?: {
|
67
67
|
createdAt: string;
|
68
68
|
createdBy: string;
|
69
69
|
createdByRole: string;
|
70
|
-
createdAtLocation: string;
|
71
70
|
registrationNumber: string;
|
72
71
|
acceptedAt: string;
|
72
|
+
createdAtLocation?: string | null | undefined;
|
73
73
|
} | null | undefined;
|
74
74
|
}, {
|
75
75
|
DECLARED?: {
|
76
76
|
createdAt: string;
|
77
77
|
createdBy: string;
|
78
78
|
createdByRole: string;
|
79
|
-
createdAtLocation: string;
|
80
79
|
acceptedAt: string;
|
80
|
+
createdAtLocation?: string | null | undefined;
|
81
81
|
} | null | undefined;
|
82
82
|
REGISTERED?: {
|
83
83
|
createdAt: string;
|
84
84
|
createdBy: string;
|
85
85
|
createdByRole: string;
|
86
|
-
createdAtLocation: string;
|
87
86
|
registrationNumber: string;
|
88
87
|
acceptedAt: string;
|
88
|
+
createdAtLocation?: string | null | undefined;
|
89
89
|
} | null | undefined;
|
90
90
|
}>;
|
91
91
|
createdAt: z.ZodString;
|
92
92
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
93
93
|
createdBy: z.ZodString;
|
94
94
|
updatedByUserRole: z.ZodString;
|
95
|
-
createdAtLocation: z.ZodString
|
95
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
96
96
|
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
97
97
|
updatedAt: z.ZodString;
|
98
98
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -260,7 +260,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
260
260
|
filename: string;
|
261
261
|
originalFilename: string;
|
262
262
|
}[] | [string, string] | undefined>;
|
263
|
-
createdAtLocation: string;
|
264
263
|
updatedAt: string;
|
265
264
|
trackingId: string;
|
266
265
|
legalStatuses: {
|
@@ -268,20 +267,21 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
268
267
|
createdAt: string;
|
269
268
|
createdBy: string;
|
270
269
|
createdByRole: string;
|
271
|
-
createdAtLocation: string;
|
272
270
|
acceptedAt: string;
|
271
|
+
createdAtLocation?: string | null | undefined;
|
273
272
|
} | null | undefined;
|
274
273
|
REGISTERED?: {
|
275
274
|
createdAt: string;
|
276
275
|
createdBy: string;
|
277
276
|
createdByRole: string;
|
278
|
-
createdAtLocation: string;
|
279
277
|
registrationNumber: string;
|
280
278
|
acceptedAt: string;
|
279
|
+
createdAtLocation?: string | null | undefined;
|
281
280
|
} | null | undefined;
|
282
281
|
};
|
283
282
|
updatedByUserRole: string;
|
284
283
|
flags: string[];
|
284
|
+
createdAtLocation?: string | null | undefined;
|
285
285
|
assignedTo?: string | null | undefined;
|
286
286
|
dateOfEvent?: string | null | undefined;
|
287
287
|
updatedAtLocation?: string | null | undefined;
|
@@ -330,7 +330,6 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
330
330
|
filename: string;
|
331
331
|
originalFilename: string;
|
332
332
|
}[] | [string, string] | undefined>;
|
333
|
-
createdAtLocation: string;
|
334
333
|
updatedAt: string;
|
335
334
|
trackingId: string;
|
336
335
|
legalStatuses: {
|
@@ -338,20 +337,21 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
338
337
|
createdAt: string;
|
339
338
|
createdBy: string;
|
340
339
|
createdByRole: string;
|
341
|
-
createdAtLocation: string;
|
342
340
|
acceptedAt: string;
|
341
|
+
createdAtLocation?: string | null | undefined;
|
343
342
|
} | null | undefined;
|
344
343
|
REGISTERED?: {
|
345
344
|
createdAt: string;
|
346
345
|
createdBy: string;
|
347
346
|
createdByRole: string;
|
348
|
-
createdAtLocation: string;
|
349
347
|
registrationNumber: string;
|
350
348
|
acceptedAt: string;
|
349
|
+
createdAtLocation?: string | null | undefined;
|
351
350
|
} | null | undefined;
|
352
351
|
};
|
353
352
|
updatedByUserRole: string;
|
354
353
|
flags: string[];
|
354
|
+
createdAtLocation?: string | null | undefined;
|
355
355
|
assignedTo?: string | null | undefined;
|
356
356
|
dateOfEvent?: string | null | undefined;
|
357
357
|
updatedAtLocation?: string | null | undefined;
|
@@ -435,27 +435,26 @@ type QueryMap = {
|
|
435
435
|
[key: string]: BaseInput | QueryMap;
|
436
436
|
};
|
437
437
|
export type QueryInputType = BaseInput | QueryMap;
|
438
|
-
declare const QueryExpression: z.ZodObject<{
|
439
|
-
type: z.ZodOptional<z.ZodLiteral<"and">>;
|
438
|
+
export declare const QueryExpression: z.ZodObject<{
|
440
439
|
eventType: z.ZodOptional<z.ZodString>;
|
441
440
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
442
441
|
type: z.ZodLiteral<"anyOf">;
|
443
|
-
terms: z.ZodArray<z.
|
442
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
|
444
443
|
}, "strip", z.ZodTypeAny, {
|
445
444
|
type: "anyOf";
|
446
|
-
terms:
|
445
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
447
446
|
}, {
|
448
447
|
type: "anyOf";
|
449
|
-
terms:
|
448
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
450
449
|
}>, z.ZodObject<{
|
451
450
|
type: z.ZodLiteral<"exact">;
|
452
|
-
term: z.
|
451
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
453
452
|
}, "strip", z.ZodTypeAny, {
|
454
453
|
type: "exact";
|
455
|
-
term:
|
454
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
456
455
|
}, {
|
457
456
|
type: "exact";
|
458
|
-
term:
|
457
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
459
458
|
}>]>>>;
|
460
459
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
461
460
|
type: z.ZodLiteral<"exact">;
|
@@ -501,239 +500,7 @@ declare const QueryExpression: z.ZodObject<{
|
|
501
500
|
gte: string;
|
502
501
|
lte: string;
|
503
502
|
}>]>>>;
|
504
|
-
|
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<{
|
514
|
-
type: z.ZodLiteral<"exact">;
|
515
|
-
term: z.ZodString;
|
516
|
-
}, "strip", z.ZodTypeAny, {
|
517
|
-
type: "exact";
|
518
|
-
term: string;
|
519
|
-
}, {
|
520
|
-
type: "exact";
|
521
|
-
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
|
-
}>, z.ZodObject<{
|
582
|
-
type: z.ZodLiteral<"not">;
|
583
|
-
term: z.ZodString;
|
584
|
-
}, "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
|
-
type: "range";
|
607
|
-
gte: string;
|
608
|
-
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
|
-
} | {
|
678
|
-
type: "range";
|
679
|
-
gte: string;
|
680
|
-
lte: string;
|
681
|
-
} | undefined;
|
682
|
-
trackingId?: {
|
683
|
-
type: "exact";
|
684
|
-
term: string;
|
685
|
-
} | undefined;
|
686
|
-
updatedAtLocation?: {
|
687
|
-
type: "exact";
|
688
|
-
term: string;
|
689
|
-
} | {
|
690
|
-
type: "within";
|
691
|
-
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
|
-
} | {
|
709
|
-
type: "within";
|
710
|
-
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
|
-
}>, z.ZodObject<{
|
727
|
-
type: z.ZodLiteral<"exact">;
|
728
|
-
term: z.ZodString;
|
729
|
-
}, "strip", z.ZodTypeAny, {
|
730
|
-
type: "exact";
|
731
|
-
term: string;
|
732
|
-
}, {
|
733
|
-
type: "exact";
|
734
|
-
term: string;
|
735
|
-
}>]>>>;
|
736
|
-
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
503
|
+
'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
737
504
|
type: z.ZodLiteral<"exact">;
|
738
505
|
term: z.ZodString;
|
739
506
|
}, "strip", z.ZodTypeAny, {
|
@@ -755,7 +522,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
755
522
|
gte: string;
|
756
523
|
lte: string;
|
757
524
|
}>]>>>;
|
758
|
-
|
525
|
+
'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
526
|
+
type: z.ZodLiteral<"within">;
|
527
|
+
location: z.ZodString;
|
528
|
+
}, "strip", z.ZodTypeAny, {
|
529
|
+
type: "within";
|
530
|
+
location: string;
|
531
|
+
}, {
|
532
|
+
type: "within";
|
533
|
+
location: string;
|
534
|
+
}>, z.ZodObject<{
|
759
535
|
type: z.ZodLiteral<"exact">;
|
760
536
|
term: z.ZodString;
|
761
537
|
}, "strip", z.ZodTypeAny, {
|
@@ -764,18 +540,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
764
540
|
}, {
|
765
541
|
type: "exact";
|
766
542
|
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
543
|
}>]>>>;
|
780
544
|
createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
781
545
|
type: z.ZodLiteral<"within">;
|
@@ -866,13 +630,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
866
630
|
}>]>, "many">>>;
|
867
631
|
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
868
632
|
}, "strip", z.ZodTypeAny, {
|
869
|
-
type?: "and" | undefined;
|
870
633
|
status?: {
|
871
634
|
type: "exact";
|
872
|
-
term:
|
635
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
873
636
|
} | {
|
874
637
|
type: "anyOf";
|
875
|
-
terms:
|
638
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
876
639
|
} | undefined;
|
877
640
|
data?: any;
|
878
641
|
createdAt?: {
|
@@ -899,6 +662,22 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
899
662
|
type: "exact";
|
900
663
|
term: string;
|
901
664
|
} | undefined;
|
665
|
+
eventType?: string | undefined;
|
666
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
667
|
+
type: "exact";
|
668
|
+
term: string;
|
669
|
+
} | {
|
670
|
+
type: "range";
|
671
|
+
gte: string;
|
672
|
+
lte: string;
|
673
|
+
} | undefined;
|
674
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
675
|
+
type: "exact";
|
676
|
+
term: string;
|
677
|
+
} | {
|
678
|
+
type: "within";
|
679
|
+
location: string;
|
680
|
+
} | undefined;
|
902
681
|
updatedAtLocation?: {
|
903
682
|
type: "exact";
|
904
683
|
term: string;
|
@@ -917,7 +696,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
917
696
|
type: "not";
|
918
697
|
term: string;
|
919
698
|
})[] | undefined;
|
920
|
-
eventType?: string | undefined;
|
921
699
|
createAtLocation?: {
|
922
700
|
type: "exact";
|
923
701
|
term: string;
|
@@ -926,13 +704,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
926
704
|
location: string;
|
927
705
|
} | undefined;
|
928
706
|
}, {
|
929
|
-
type?: "and" | undefined;
|
930
707
|
status?: {
|
931
708
|
type: "exact";
|
932
|
-
term:
|
709
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
933
710
|
} | {
|
934
711
|
type: "anyOf";
|
935
|
-
terms:
|
712
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
936
713
|
} | undefined;
|
937
714
|
data?: any;
|
938
715
|
createdAt?: {
|
@@ -959,6 +736,22 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
959
736
|
type: "exact";
|
960
737
|
term: string;
|
961
738
|
} | undefined;
|
739
|
+
eventType?: string | undefined;
|
740
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
741
|
+
type: "exact";
|
742
|
+
term: string;
|
743
|
+
} | {
|
744
|
+
type: "range";
|
745
|
+
gte: string;
|
746
|
+
lte: string;
|
747
|
+
} | undefined;
|
748
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
749
|
+
type: "exact";
|
750
|
+
term: string;
|
751
|
+
} | {
|
752
|
+
type: "within";
|
753
|
+
location: string;
|
754
|
+
} | undefined;
|
962
755
|
updatedAtLocation?: {
|
963
756
|
type: "exact";
|
964
757
|
term: string;
|
@@ -977,7 +770,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
977
770
|
type: "not";
|
978
771
|
term: string;
|
979
772
|
})[] | undefined;
|
980
|
-
eventType?: string | undefined;
|
981
773
|
createAtLocation?: {
|
982
774
|
type: "exact";
|
983
775
|
term: string;
|
@@ -985,21 +777,31 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
985
777
|
type: "within";
|
986
778
|
location: string;
|
987
779
|
} | undefined;
|
988
|
-
}
|
989
|
-
|
990
|
-
|
991
|
-
|
780
|
+
}>;
|
781
|
+
export declare const QueryType: z.ZodObject<{
|
782
|
+
type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
|
783
|
+
clauses: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
992
784
|
eventType: z.ZodOptional<z.ZodString>;
|
993
785
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
994
786
|
type: z.ZodLiteral<"anyOf">;
|
995
|
-
terms: z.ZodArray<z.
|
787
|
+
terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>, "many">;
|
996
788
|
}, "strip", z.ZodTypeAny, {
|
997
789
|
type: "anyOf";
|
998
|
-
terms:
|
790
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
999
791
|
}, {
|
1000
792
|
type: "anyOf";
|
1001
|
-
terms:
|
793
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1002
794
|
}>, z.ZodObject<{
|
795
|
+
type: z.ZodLiteral<"exact">;
|
796
|
+
term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
797
|
+
}, "strip", z.ZodTypeAny, {
|
798
|
+
type: "exact";
|
799
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
800
|
+
}, {
|
801
|
+
type: "exact";
|
802
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
803
|
+
}>]>>>;
|
804
|
+
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1003
805
|
type: z.ZodLiteral<"exact">;
|
1004
806
|
term: z.ZodString;
|
1005
807
|
}, "strip", z.ZodTypeAny, {
|
@@ -1008,8 +810,20 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1008
810
|
}, {
|
1009
811
|
type: "exact";
|
1010
812
|
term: string;
|
813
|
+
}>, z.ZodObject<{
|
814
|
+
type: z.ZodLiteral<"range">;
|
815
|
+
gte: z.ZodString;
|
816
|
+
lte: z.ZodString;
|
817
|
+
}, "strip", z.ZodTypeAny, {
|
818
|
+
type: "range";
|
819
|
+
gte: string;
|
820
|
+
lte: string;
|
821
|
+
}, {
|
822
|
+
type: "range";
|
823
|
+
gte: string;
|
824
|
+
lte: string;
|
1011
825
|
}>]>>>;
|
1012
|
-
|
826
|
+
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1013
827
|
type: z.ZodLiteral<"exact">;
|
1014
828
|
term: z.ZodString;
|
1015
829
|
}, "strip", z.ZodTypeAny, {
|
@@ -1031,7 +845,7 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1031
845
|
gte: string;
|
1032
846
|
lte: string;
|
1033
847
|
}>]>>>;
|
1034
|
-
|
848
|
+
'legalStatus.REGISTERED.createdAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1035
849
|
type: z.ZodLiteral<"exact">;
|
1036
850
|
term: z.ZodString;
|
1037
851
|
}, "strip", z.ZodTypeAny, {
|
@@ -1053,6 +867,25 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1053
867
|
gte: string;
|
1054
868
|
lte: string;
|
1055
869
|
}>]>>>;
|
870
|
+
'legalStatus.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
871
|
+
type: z.ZodLiteral<"within">;
|
872
|
+
location: z.ZodString;
|
873
|
+
}, "strip", z.ZodTypeAny, {
|
874
|
+
type: "within";
|
875
|
+
location: string;
|
876
|
+
}, {
|
877
|
+
type: "within";
|
878
|
+
location: string;
|
879
|
+
}>, z.ZodObject<{
|
880
|
+
type: z.ZodLiteral<"exact">;
|
881
|
+
term: z.ZodString;
|
882
|
+
}, "strip", z.ZodTypeAny, {
|
883
|
+
type: "exact";
|
884
|
+
term: string;
|
885
|
+
}, {
|
886
|
+
type: "exact";
|
887
|
+
term: string;
|
888
|
+
}>]>>>;
|
1056
889
|
createAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1057
890
|
type: z.ZodLiteral<"within">;
|
1058
891
|
location: z.ZodString;
|
@@ -1142,13 +975,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1142
975
|
}>]>, "many">>>;
|
1143
976
|
data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
1144
977
|
}, "strip", z.ZodTypeAny, {
|
1145
|
-
type?: "and" | undefined;
|
1146
978
|
status?: {
|
1147
979
|
type: "exact";
|
1148
|
-
term:
|
980
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1149
981
|
} | {
|
1150
982
|
type: "anyOf";
|
1151
|
-
terms:
|
983
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1152
984
|
} | undefined;
|
1153
985
|
data?: any;
|
1154
986
|
createdAt?: {
|
@@ -1175,6 +1007,22 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1175
1007
|
type: "exact";
|
1176
1008
|
term: string;
|
1177
1009
|
} | undefined;
|
1010
|
+
eventType?: string | undefined;
|
1011
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
1012
|
+
type: "exact";
|
1013
|
+
term: string;
|
1014
|
+
} | {
|
1015
|
+
type: "range";
|
1016
|
+
gte: string;
|
1017
|
+
lte: string;
|
1018
|
+
} | undefined;
|
1019
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
1020
|
+
type: "exact";
|
1021
|
+
term: string;
|
1022
|
+
} | {
|
1023
|
+
type: "within";
|
1024
|
+
location: string;
|
1025
|
+
} | undefined;
|
1178
1026
|
updatedAtLocation?: {
|
1179
1027
|
type: "exact";
|
1180
1028
|
term: string;
|
@@ -1193,7 +1041,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1193
1041
|
type: "not";
|
1194
1042
|
term: string;
|
1195
1043
|
})[] | undefined;
|
1196
|
-
eventType?: string | undefined;
|
1197
1044
|
createAtLocation?: {
|
1198
1045
|
type: "exact";
|
1199
1046
|
term: string;
|
@@ -1202,13 +1049,12 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1202
1049
|
location: string;
|
1203
1050
|
} | undefined;
|
1204
1051
|
}, {
|
1205
|
-
type?: "and" | undefined;
|
1206
1052
|
status?: {
|
1207
1053
|
type: "exact";
|
1208
|
-
term:
|
1054
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1209
1055
|
} | {
|
1210
1056
|
type: "anyOf";
|
1211
|
-
terms:
|
1057
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1212
1058
|
} | undefined;
|
1213
1059
|
data?: any;
|
1214
1060
|
createdAt?: {
|
@@ -1235,6 +1081,22 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1235
1081
|
type: "exact";
|
1236
1082
|
term: string;
|
1237
1083
|
} | undefined;
|
1084
|
+
eventType?: string | undefined;
|
1085
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
1086
|
+
type: "exact";
|
1087
|
+
term: string;
|
1088
|
+
} | {
|
1089
|
+
type: "range";
|
1090
|
+
gte: string;
|
1091
|
+
lte: string;
|
1092
|
+
} | undefined;
|
1093
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
1094
|
+
type: "exact";
|
1095
|
+
term: string;
|
1096
|
+
} | {
|
1097
|
+
type: "within";
|
1098
|
+
location: string;
|
1099
|
+
} | undefined;
|
1238
1100
|
updatedAtLocation?: {
|
1239
1101
|
type: "exact";
|
1240
1102
|
term: string;
|
@@ -1253,7 +1115,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1253
1115
|
type: "not";
|
1254
1116
|
term: string;
|
1255
1117
|
})[] | undefined;
|
1256
|
-
eventType?: string | undefined;
|
1257
1118
|
createAtLocation?: {
|
1258
1119
|
type: "exact";
|
1259
1120
|
term: string;
|
@@ -1261,17 +1122,13 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1261
1122
|
type: "within";
|
1262
1123
|
location: string;
|
1263
1124
|
} | undefined;
|
1264
|
-
}>, "many"
|
1265
|
-
}, "strip", z.ZodTypeAny, {
|
1266
|
-
type: "or";
|
1267
|
-
clauses: {
|
1268
|
-
type?: "and" | undefined;
|
1125
|
+
}>, "many">, {
|
1269
1126
|
status?: {
|
1270
1127
|
type: "exact";
|
1271
|
-
term:
|
1128
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1272
1129
|
} | {
|
1273
1130
|
type: "anyOf";
|
1274
|
-
terms:
|
1131
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1275
1132
|
} | undefined;
|
1276
1133
|
data?: any;
|
1277
1134
|
createdAt?: {
|
@@ -1298,6 +1155,22 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1298
1155
|
type: "exact";
|
1299
1156
|
term: string;
|
1300
1157
|
} | undefined;
|
1158
|
+
eventType?: string | undefined;
|
1159
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
1160
|
+
type: "exact";
|
1161
|
+
term: string;
|
1162
|
+
} | {
|
1163
|
+
type: "range";
|
1164
|
+
gte: string;
|
1165
|
+
lte: string;
|
1166
|
+
} | undefined;
|
1167
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
1168
|
+
type: "exact";
|
1169
|
+
term: string;
|
1170
|
+
} | {
|
1171
|
+
type: "within";
|
1172
|
+
location: string;
|
1173
|
+
} | undefined;
|
1301
1174
|
updatedAtLocation?: {
|
1302
1175
|
type: "exact";
|
1303
1176
|
term: string;
|
@@ -1316,7 +1189,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1316
1189
|
type: "not";
|
1317
1190
|
term: string;
|
1318
1191
|
})[] | undefined;
|
1319
|
-
eventType?: string | undefined;
|
1320
1192
|
createAtLocation?: {
|
1321
1193
|
type: "exact";
|
1322
1194
|
term: string;
|
@@ -1324,17 +1196,16 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1324
1196
|
type: "within";
|
1325
1197
|
location: string;
|
1326
1198
|
} | undefined;
|
1327
|
-
}[]
|
1328
|
-
}, {
|
1329
|
-
type: "or";
|
1199
|
+
}[], unknown>;
|
1200
|
+
}, "strip", z.ZodTypeAny, {
|
1201
|
+
type: "and" | "or";
|
1330
1202
|
clauses: {
|
1331
|
-
type?: "and" | undefined;
|
1332
1203
|
status?: {
|
1333
1204
|
type: "exact";
|
1334
|
-
term:
|
1205
|
+
term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
1335
1206
|
} | {
|
1336
1207
|
type: "anyOf";
|
1337
|
-
terms:
|
1208
|
+
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1338
1209
|
} | undefined;
|
1339
1210
|
data?: any;
|
1340
1211
|
createdAt?: {
|
@@ -1361,6 +1232,22 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1361
1232
|
type: "exact";
|
1362
1233
|
term: string;
|
1363
1234
|
} | undefined;
|
1235
|
+
eventType?: string | undefined;
|
1236
|
+
'legalStatus.REGISTERED.createdAt'?: {
|
1237
|
+
type: "exact";
|
1238
|
+
term: string;
|
1239
|
+
} | {
|
1240
|
+
type: "range";
|
1241
|
+
gte: string;
|
1242
|
+
lte: string;
|
1243
|
+
} | undefined;
|
1244
|
+
'legalStatus.REGISTERED.createdAtLocation'?: {
|
1245
|
+
type: "exact";
|
1246
|
+
term: string;
|
1247
|
+
} | {
|
1248
|
+
type: "within";
|
1249
|
+
location: string;
|
1250
|
+
} | undefined;
|
1364
1251
|
updatedAtLocation?: {
|
1365
1252
|
type: "exact";
|
1366
1253
|
term: string;
|
@@ -1379,7 +1266,6 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1379
1266
|
type: "not";
|
1380
1267
|
term: string;
|
1381
1268
|
})[] | undefined;
|
1382
|
-
eventType?: string | undefined;
|
1383
1269
|
createAtLocation?: {
|
1384
1270
|
type: "exact";
|
1385
1271
|
term: string;
|
@@ -1388,7 +1274,11 @@ export declare const QueryType: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1388
1274
|
location: string;
|
1389
1275
|
} | undefined;
|
1390
1276
|
}[];
|
1391
|
-
}
|
1277
|
+
}, {
|
1278
|
+
type: "and" | "or";
|
1279
|
+
clauses?: unknown;
|
1280
|
+
}>;
|
1392
1281
|
export type QueryType = z.infer<typeof QueryType>;
|
1282
|
+
export type QueryExpression = z.infer<typeof QueryExpression>;
|
1393
1283
|
export {};
|
1394
1284
|
//# sourceMappingURL=EventIndex.d.ts.map
|