@opencrvs/toolkit 1.8.1-rc.3e74262 → 1.8.1-rc.7e34683
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 +404 -0
- package/dist/commons/events/ActionDocument.d.ts +659 -0
- package/dist/commons/events/ActionInput.d.ts +540 -0
- package/dist/commons/events/Draft.d.ts +44 -0
- package/dist/commons/events/EventDocument.d.ts +416 -0
- package/dist/commons/events/utils.d.ts +4 -0
- package/dist/events/index.js +7 -0
- package/package.json +1 -1
@@ -6758,6 +6758,10 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
|
|
6758
6758
|
start: string;
|
6759
6759
|
end: string;
|
6760
6760
|
} | null | undefined> | null | undefined;
|
6761
|
+
actionDetails?: {
|
6762
|
+
templateId?: string | undefined;
|
6763
|
+
isImmediateCorrection?: boolean | undefined;
|
6764
|
+
} | null | undefined;
|
6761
6765
|
originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
6762
6766
|
};
|
6763
6767
|
}[];
|
package/dist/events/index.js
CHANGED
@@ -39,6 +39,7 @@ __export(events_exports, {
|
|
39
39
|
ActionConfig: () => ActionConfig,
|
40
40
|
ActionConfigBase: () => ActionConfigBase,
|
41
41
|
ActionCreationMetadata: () => ActionCreationMetadata,
|
42
|
+
ActionDetails: () => ActionDetails,
|
42
43
|
ActionDocument: () => ActionDocument,
|
43
44
|
ActionFormConfig: () => ActionFormConfig,
|
44
45
|
ActionInput: () => ActionInput,
|
@@ -1882,6 +1883,10 @@ var ActionStatus = {
|
|
1882
1883
|
Accepted: "Accepted",
|
1883
1884
|
Rejected: "Rejected"
|
1884
1885
|
};
|
1886
|
+
var ActionDetails = import_zod19.z.object({
|
1887
|
+
templateId: import_zod19.z.string().optional(),
|
1888
|
+
isImmediateCorrection: import_zod19.z.boolean().optional()
|
1889
|
+
});
|
1885
1890
|
var ActionBase = import_zod19.z.object({
|
1886
1891
|
id: UUID,
|
1887
1892
|
transactionId: import_zod19.z.string(),
|
@@ -1893,6 +1898,7 @@ var ActionBase = import_zod19.z.object({
|
|
1893
1898
|
createdAtLocation: CreatedAtLocation,
|
1894
1899
|
declaration: ActionUpdate,
|
1895
1900
|
annotation: ActionUpdate.optional().nullable(),
|
1901
|
+
actionDetails: ActionDetails.optional().nullable(),
|
1896
1902
|
status: import_zod19.z.enum([
|
1897
1903
|
ActionStatus.Requested,
|
1898
1904
|
ActionStatus.Accepted,
|
@@ -3834,6 +3840,7 @@ var BaseActionInput = import_zod29.z.object({
|
|
3834
3840
|
transactionId: import_zod29.z.string(),
|
3835
3841
|
declaration: ActionUpdate.default({}),
|
3836
3842
|
annotation: ActionUpdate.optional(),
|
3843
|
+
actionDetails: ActionDetails.optional(),
|
3837
3844
|
originalActionId: UUID.optional(),
|
3838
3845
|
// should not be part of base action.
|
3839
3846
|
keepAssignment: import_zod29.z.boolean().optional()
|