@molda-org/workflow-actions-audit 0.1.0-next.0
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/index.d.ts +20 -0
- package/package.json +21 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { MoldaModuleDefinition, MoldaModuleShape } from '@molda-org/module-contracts';
|
|
2
|
+
|
|
3
|
+
export type WorkflowActionsAuditAction = 'executeWorkflowAction' | 'approveWorkflowAction' | 'compensateWorkflowAction';
|
|
4
|
+
export type WorkflowActionsAuditView = 'workflowHistory' | 'actionAuditLog' | 'pendingApprovals';
|
|
5
|
+
export type WorkflowActionsAuditHook = 'useExecuteAction' | 'useActionAudit';
|
|
6
|
+
|
|
7
|
+
export interface WorkflowActionsAuditModuleShape
|
|
8
|
+
extends MoldaModuleShape<
|
|
9
|
+
'workflow-actions-audit',
|
|
10
|
+
WorkflowActionsAuditAction,
|
|
11
|
+
WorkflowActionsAuditView,
|
|
12
|
+
WorkflowActionsAuditHook
|
|
13
|
+
> {
|
|
14
|
+
readonly stage: 'initial';
|
|
15
|
+
readonly category: 'platform-core';
|
|
16
|
+
readonly purpose: 'State transitions, deterministic actions, approvals, idempotency, audit, and compensation.';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type WorkflowActionsAuditModule = MoldaModuleDefinition<WorkflowActionsAuditModuleShape>;
|
|
20
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@molda-org/workflow-actions-audit",
|
|
3
|
+
"version": "0.1.0-next.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"types": "./index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./index.d.ts"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"index.d.ts"
|
|
13
|
+
],
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@molda-org/module-contracts": "0.1.0-next.0"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public",
|
|
19
|
+
"tag": "next"
|
|
20
|
+
}
|
|
21
|
+
}
|