@opencrvs/toolkit 1.8.0-rc.fb0e687 → 1.8.0-rc.fb2e700
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 +13 -0
- package/dist/commons/conditionals/validate.d.ts +2 -6
- package/dist/commons/events/ActionDocument.d.ts +6 -0
- package/dist/commons/events/ActionInput.d.ts +90 -0
- package/dist/commons/events/ActionType.d.ts +2 -0
- package/dist/commons/events/Draft.d.ts +3 -0
- package/dist/commons/events/EventDocument.d.ts +5 -0
- package/dist/commons/events/TemplateConfig.d.ts +4 -4
- package/dist/commons/events/test.utils.d.ts +2 -2
- package/dist/commons/events/utils.d.ts +49 -41
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/events/index.js +128 -58
- package/dist/scopes/index.d.ts +70 -1
- package/dist/scopes/index.js +130 -0
- package/package.json +1 -1
@@ -419,6 +419,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
419
419
|
originalFilename: string;
|
420
420
|
}[] | undefined>;
|
421
421
|
createdAtLocation: string;
|
422
|
+
assignedTo: null;
|
422
423
|
annotation?: Record<string, string | number | boolean | {
|
423
424
|
type: string;
|
424
425
|
filename: string;
|
@@ -1700,6 +1701,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
1700
1701
|
originalFilename: string;
|
1701
1702
|
}[] | undefined>;
|
1702
1703
|
createdAtLocation: string;
|
1704
|
+
assignedTo: null;
|
1703
1705
|
annotation?: Record<string, string | number | boolean | {
|
1704
1706
|
type: string;
|
1705
1707
|
filename: string;
|
@@ -3033,6 +3035,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
3033
3035
|
originalFilename: string;
|
3034
3036
|
}[] | undefined> | undefined;
|
3035
3037
|
originalActionId?: string | undefined;
|
3038
|
+
keepAssignment?: boolean | undefined;
|
3036
3039
|
};
|
3037
3040
|
output: {
|
3038
3041
|
id: string;
|
@@ -3396,6 +3399,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
3396
3399
|
originalFilename: string;
|
3397
3400
|
}[] | undefined> | undefined;
|
3398
3401
|
originalActionId?: string | undefined;
|
3402
|
+
keepAssignment?: boolean | undefined;
|
3399
3403
|
};
|
3400
3404
|
output: {
|
3401
3405
|
type: string;
|
@@ -3532,6 +3536,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
3532
3536
|
originalFilename: string;
|
3533
3537
|
}[] | undefined>;
|
3534
3538
|
createdAtLocation: string;
|
3539
|
+
assignedTo: null;
|
3535
3540
|
annotation?: Record<string, string | number | boolean | {
|
3536
3541
|
type: string;
|
3537
3542
|
filename: string;
|
@@ -4759,6 +4764,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
4759
4764
|
}[] | undefined> | undefined;
|
4760
4765
|
originalActionId?: string | undefined;
|
4761
4766
|
assignedTo?: null | undefined;
|
4767
|
+
keepAssignment?: boolean | undefined;
|
4762
4768
|
};
|
4763
4769
|
output: {
|
4764
4770
|
type: string;
|
@@ -4895,6 +4901,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
4895
4901
|
originalFilename: string;
|
4896
4902
|
}[] | undefined>;
|
4897
4903
|
createdAtLocation: string;
|
4904
|
+
assignedTo: null;
|
4898
4905
|
annotation?: Record<string, string | number | boolean | {
|
4899
4906
|
type: string;
|
4900
4907
|
filename: string;
|
@@ -6128,6 +6135,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
6128
6135
|
originalFilename: string;
|
6129
6136
|
}[] | undefined> | undefined;
|
6130
6137
|
originalActionId?: string | undefined;
|
6138
|
+
keepAssignment?: boolean | undefined;
|
6131
6139
|
};
|
6132
6140
|
output: {
|
6133
6141
|
type: string;
|
@@ -6264,6 +6272,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
6264
6272
|
originalFilename: string;
|
6265
6273
|
}[] | undefined>;
|
6266
6274
|
createdAtLocation: string;
|
6275
|
+
assignedTo: null;
|
6267
6276
|
annotation?: Record<string, string | number | boolean | {
|
6268
6277
|
type: string;
|
6269
6278
|
filename: string;
|
@@ -7491,6 +7500,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
7491
7500
|
originalFilename: string;
|
7492
7501
|
}[] | undefined> | undefined;
|
7493
7502
|
originalActionId?: string | undefined;
|
7503
|
+
keepAssignment?: boolean | undefined;
|
7494
7504
|
};
|
7495
7505
|
output: {
|
7496
7506
|
type: string;
|
@@ -7627,6 +7637,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
7627
7637
|
originalFilename: string;
|
7628
7638
|
}[] | undefined>;
|
7629
7639
|
createdAtLocation: string;
|
7640
|
+
assignedTo: null;
|
7630
7641
|
annotation?: Record<string, string | number | boolean | {
|
7631
7642
|
type: string;
|
7632
7643
|
filename: string;
|
@@ -8854,6 +8865,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
8854
8865
|
originalFilename: string;
|
8855
8866
|
}[] | undefined> | undefined;
|
8856
8867
|
originalActionId?: string | undefined;
|
8868
|
+
keepAssignment?: boolean | undefined;
|
8857
8869
|
};
|
8858
8870
|
output: {
|
8859
8871
|
type: string;
|
@@ -8990,6 +9002,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
8990
9002
|
originalFilename: string;
|
8991
9003
|
}[] | undefined>;
|
8992
9004
|
createdAtLocation: string;
|
9005
|
+
assignedTo: null;
|
8993
9006
|
annotation?: Record<string, string | number | boolean | {
|
8994
9007
|
type: string;
|
8995
9008
|
filename: string;
|
@@ -56,7 +56,7 @@ export declare function validateFieldInput({ field, value }: {
|
|
56
56
|
message: TranslationConfig;
|
57
57
|
}[];
|
58
58
|
/**
|
59
|
-
*
|
59
|
+
* Gets applicable validation errors based on its type and custom validators.
|
60
60
|
*
|
61
61
|
* @returns an array of error messages for the field
|
62
62
|
*/
|
@@ -65,11 +65,7 @@ export declare function getFieldValidationErrors({ field, values }: {
|
|
65
65
|
values: ActionUpdate;
|
66
66
|
}): {
|
67
67
|
errors: {
|
68
|
-
message:
|
69
|
-
id: string;
|
70
|
-
defaultMessage: string;
|
71
|
-
description: string;
|
72
|
-
};
|
68
|
+
message: TranslationConfig;
|
73
69
|
}[];
|
74
70
|
};
|
75
71
|
//# sourceMappingURL=validate.d.ts.map
|
@@ -6456,6 +6456,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
6456
6456
|
originalActionId: z.ZodOptional<z.ZodString>;
|
6457
6457
|
}, {
|
6458
6458
|
type: z.ZodLiteral<"UNASSIGN">;
|
6459
|
+
assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
|
6459
6460
|
}>, "strip", z.ZodTypeAny, {
|
6460
6461
|
type: "UNASSIGN";
|
6461
6462
|
id: string;
|
@@ -6501,6 +6502,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
6501
6502
|
originalFilename: string;
|
6502
6503
|
}[] | undefined>;
|
6503
6504
|
createdAtLocation: string;
|
6505
|
+
assignedTo: null;
|
6504
6506
|
annotation?: Record<string, string | number | boolean | {
|
6505
6507
|
type: string;
|
6506
6508
|
filename: string;
|
@@ -6624,6 +6626,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
6624
6626
|
originalFilename: string;
|
6625
6627
|
}[] | undefined> | undefined;
|
6626
6628
|
originalActionId?: string | undefined;
|
6629
|
+
assignedTo?: null | undefined;
|
6627
6630
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
6628
6631
|
id: z.ZodString;
|
6629
6632
|
createdAt: z.ZodString;
|
@@ -12797,6 +12800,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
12797
12800
|
originalActionId: z.ZodOptional<z.ZodString>;
|
12798
12801
|
}, {
|
12799
12802
|
type: z.ZodLiteral<"UNASSIGN">;
|
12803
|
+
assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
|
12800
12804
|
}>, "strip", z.ZodTypeAny, {
|
12801
12805
|
type: "UNASSIGN";
|
12802
12806
|
id: string;
|
@@ -12842,6 +12846,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
12842
12846
|
originalFilename: string;
|
12843
12847
|
}[] | undefined>;
|
12844
12848
|
createdAtLocation: string;
|
12849
|
+
assignedTo: null;
|
12845
12850
|
annotation?: Record<string, string | number | boolean | {
|
12846
12851
|
type: string;
|
12847
12852
|
filename: string;
|
@@ -12965,6 +12970,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
12965
12970
|
originalFilename: string;
|
12966
12971
|
}[] | undefined> | undefined;
|
12967
12972
|
originalActionId?: string | undefined;
|
12973
|
+
assignedTo?: null | undefined;
|
12968
12974
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
12969
12975
|
id: z.ZodString;
|
12970
12976
|
createdAt: z.ZodString;
|