@opencrvs/toolkit 1.8.1-rc.e32d7b8 → 1.8.1-rc.fa83f7b
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 +49 -410
- package/dist/commons/events/ActionDocument.d.ts +588 -675
- package/dist/commons/events/ActionInput.d.ts +58 -536
- package/dist/commons/events/AdvancedSearchConfig.d.ts +65 -47
- package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
- package/dist/commons/events/Draft.d.ts +0 -44
- package/dist/commons/events/EventConfig.d.ts +31 -31
- package/dist/commons/events/EventDocument.d.ts +43 -414
- package/dist/commons/events/EventIndex.d.ts +174 -52
- package/dist/commons/events/EventMetadata.d.ts +9 -9
- package/dist/commons/events/FieldConfig.d.ts +1 -8
- package/dist/commons/events/WorkqueueConfig.d.ts +288 -164
- package/dist/commons/events/defineConfig.d.ts +3 -3
- package/dist/commons/events/event.d.ts +13 -5
- package/dist/commons/events/field.d.ts +14 -0
- package/dist/commons/events/test.utils.d.ts +5 -1
- package/dist/commons/events/utils.d.ts +4 -8
- package/dist/conditionals/index.js +2 -2
- package/dist/events/index.js +93 -73
- package/package.json +1 -1
@@ -9494,11 +9494,11 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
9494
9494
|
}>;
|
9495
9495
|
fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
9496
9496
|
config: z.ZodObject<{
|
9497
|
-
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
9497
|
+
type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
|
9498
9498
|
}, "strip", z.ZodTypeAny, {
|
9499
|
-
type: "exact" | "fuzzy" | "range";
|
9499
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
9500
9500
|
}, {
|
9501
|
-
type: "exact" | "fuzzy" | "range";
|
9501
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
9502
9502
|
}>;
|
9503
9503
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
9504
9504
|
value: z.ZodString;
|
@@ -9549,7 +9549,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
9549
9549
|
excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
9550
9550
|
}>, "strip", z.ZodTypeAny, {
|
9551
9551
|
config: {
|
9552
|
-
type: "exact" | "fuzzy" | "range";
|
9552
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
9553
9553
|
};
|
9554
9554
|
fieldId: string;
|
9555
9555
|
fieldType: "field";
|
@@ -9576,7 +9576,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
9576
9576
|
excludeInSearchQuery?: boolean | undefined;
|
9577
9577
|
}, {
|
9578
9578
|
config: {
|
9579
|
-
type: "exact" | "fuzzy" | "range";
|
9579
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
9580
9580
|
};
|
9581
9581
|
fieldId: string;
|
9582
9582
|
fieldType: "field";
|
@@ -9615,11 +9615,11 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
9615
9615
|
excludeInSearchQuery?: boolean | undefined;
|
9616
9616
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
9617
9617
|
config: z.ZodObject<{
|
9618
|
-
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
9618
|
+
type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
|
9619
9619
|
}, "strip", z.ZodTypeAny, {
|
9620
|
-
type: "exact" | "fuzzy" | "range";
|
9620
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
9621
9621
|
}, {
|
9622
|
-
type: "exact" | "fuzzy" | "range";
|
9622
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
9623
9623
|
}>;
|
9624
9624
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
9625
9625
|
value: z.ZodString;
|
@@ -9664,13 +9664,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
9664
9664
|
validator: import(".").JSONSchema;
|
9665
9665
|
}>, "many">>>;
|
9666
9666
|
}, {
|
9667
|
-
fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
|
9667
|
+
fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
|
9668
9668
|
fieldType: z.ZodLiteral<"event">;
|
9669
9669
|
}>, "strip", z.ZodTypeAny, {
|
9670
9670
|
config: {
|
9671
|
-
type: "exact" | "fuzzy" | "range";
|
9671
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
9672
9672
|
};
|
9673
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
9673
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
9674
9674
|
fieldType: "event";
|
9675
9675
|
options?: {
|
9676
9676
|
value: string;
|
@@ -9693,9 +9693,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
9693
9693
|
}[] | undefined;
|
9694
9694
|
}, {
|
9695
9695
|
config: {
|
9696
|
-
type: "exact" | "fuzzy" | "range";
|
9696
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
9697
9697
|
};
|
9698
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
9698
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
9699
9699
|
fieldType: "event";
|
9700
9700
|
options?: {
|
9701
9701
|
value: string;
|
@@ -9733,7 +9733,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
9733
9733
|
title: TranslationConfig;
|
9734
9734
|
fields: ({
|
9735
9735
|
config: {
|
9736
|
-
type: "exact" | "fuzzy" | "range";
|
9736
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
9737
9737
|
};
|
9738
9738
|
fieldId: string;
|
9739
9739
|
fieldType: "field";
|
@@ -9760,9 +9760,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
9760
9760
|
excludeInSearchQuery?: boolean | undefined;
|
9761
9761
|
} | {
|
9762
9762
|
config: {
|
9763
|
-
type: "exact" | "fuzzy" | "range";
|
9763
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
9764
9764
|
};
|
9765
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
9765
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
9766
9766
|
fieldType: "event";
|
9767
9767
|
options?: {
|
9768
9768
|
value: string;
|
@@ -9792,7 +9792,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
9792
9792
|
};
|
9793
9793
|
fields: ({
|
9794
9794
|
config: {
|
9795
|
-
type: "exact" | "fuzzy" | "range";
|
9795
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
9796
9796
|
};
|
9797
9797
|
fieldId: string;
|
9798
9798
|
fieldType: "field";
|
@@ -9831,9 +9831,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
9831
9831
|
excludeInSearchQuery?: boolean | undefined;
|
9832
9832
|
} | {
|
9833
9833
|
config: {
|
9834
|
-
type: "exact" | "fuzzy" | "range";
|
9834
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
9835
9835
|
};
|
9836
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
9836
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
9837
9837
|
fieldType: "event";
|
9838
9838
|
options?: {
|
9839
9839
|
value: string;
|
@@ -18522,7 +18522,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
18522
18522
|
title: TranslationConfig;
|
18523
18523
|
fields: ({
|
18524
18524
|
config: {
|
18525
|
-
type: "exact" | "fuzzy" | "range";
|
18525
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
18526
18526
|
};
|
18527
18527
|
fieldId: string;
|
18528
18528
|
fieldType: "field";
|
@@ -18549,9 +18549,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
18549
18549
|
excludeInSearchQuery?: boolean | undefined;
|
18550
18550
|
} | {
|
18551
18551
|
config: {
|
18552
|
-
type: "exact" | "fuzzy" | "range";
|
18552
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
18553
18553
|
};
|
18554
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
18554
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
18555
18555
|
fieldType: "event";
|
18556
18556
|
options?: {
|
18557
18557
|
value: string;
|
@@ -32192,7 +32192,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
32192
32192
|
};
|
32193
32193
|
fields: ({
|
32194
32194
|
config: {
|
32195
|
-
type: "exact" | "fuzzy" | "range";
|
32195
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
32196
32196
|
};
|
32197
32197
|
fieldId: string;
|
32198
32198
|
fieldType: "field";
|
@@ -32231,9 +32231,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
32231
32231
|
excludeInSearchQuery?: boolean | undefined;
|
32232
32232
|
} | {
|
32233
32233
|
config: {
|
32234
|
-
type: "exact" | "fuzzy" | "range";
|
32234
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
32235
32235
|
};
|
32236
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
32236
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
32237
32237
|
fieldType: "event";
|
32238
32238
|
options?: {
|
32239
32239
|
value: string;
|
@@ -40922,7 +40922,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
40922
40922
|
title: TranslationConfig;
|
40923
40923
|
fields: ({
|
40924
40924
|
config: {
|
40925
|
-
type: "exact" | "fuzzy" | "range";
|
40925
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
40926
40926
|
};
|
40927
40927
|
fieldId: string;
|
40928
40928
|
fieldType: "field";
|
@@ -40949,9 +40949,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
40949
40949
|
excludeInSearchQuery?: boolean | undefined;
|
40950
40950
|
} | {
|
40951
40951
|
config: {
|
40952
|
-
type: "exact" | "fuzzy" | "range";
|
40952
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
40953
40953
|
};
|
40954
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
40954
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
40955
40955
|
fieldType: "event";
|
40956
40956
|
options?: {
|
40957
40957
|
value: string;
|
@@ -54592,7 +54592,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
54592
54592
|
};
|
54593
54593
|
fields: ({
|
54594
54594
|
config: {
|
54595
|
-
type: "exact" | "fuzzy" | "range";
|
54595
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
54596
54596
|
};
|
54597
54597
|
fieldId: string;
|
54598
54598
|
fieldType: "field";
|
@@ -54631,9 +54631,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
54631
54631
|
excludeInSearchQuery?: boolean | undefined;
|
54632
54632
|
} | {
|
54633
54633
|
config: {
|
54634
|
-
type: "exact" | "fuzzy" | "range";
|
54634
|
+
type: "exact" | "fuzzy" | "range" | "within";
|
54635
54635
|
};
|
54636
|
-
fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
|
54636
|
+
fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
|
54637
54637
|
fieldType: "event";
|
54638
54638
|
options?: {
|
54639
54639
|
value: string;
|