@moostjs/event-wf 0.3.29 → 0.3.31
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/index.cjs +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +6 -0
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -20,6 +20,9 @@ function WorkflowSchema(schema) {
|
|
|
20
20
|
}
|
|
21
21
|
const WorkflowParam = (name) => {
|
|
22
22
|
switch (name) {
|
|
23
|
+
case 'state': {
|
|
24
|
+
return moost.Resolve(() => eventWf.useWfState(), 'Workflow-State');
|
|
25
|
+
}
|
|
23
26
|
case 'resume': {
|
|
24
27
|
return moost.Resolve(() => eventWf.useWfState().resume, 'Workflow-Resume');
|
|
25
28
|
}
|
|
@@ -29,6 +32,9 @@ const WorkflowParam = (name) => {
|
|
|
29
32
|
case 'schemaId': {
|
|
30
33
|
return moost.Resolve(() => eventWf.useWfState().schemaId, 'Workflow-SchemaId');
|
|
31
34
|
}
|
|
35
|
+
case 'stepId': {
|
|
36
|
+
return moost.Resolve(() => eventWf.useWfState().stepId(), 'Workflow-StepId');
|
|
37
|
+
}
|
|
32
38
|
case 'context': {
|
|
33
39
|
return moost.Resolve(() => eventWf.useWfState().ctx(), 'Workflow-Context');
|
|
34
40
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { TMoostAdapter, Moost, TMoostAdapterOptions } from 'moost';
|
|
|
7
7
|
declare function Step(path?: string): MethodDecorator;
|
|
8
8
|
declare function Workflow(path?: string): MethodDecorator;
|
|
9
9
|
declare function WorkflowSchema<T>(schema: TWorkflowSchema<T>): MethodDecorator;
|
|
10
|
-
declare const WorkflowParam: (name: 'resume' | 'indexes' | 'schemaId' | 'context' | 'input') => ParameterDecorator & PropertyDecorator;
|
|
10
|
+
declare const WorkflowParam: (name: 'resume' | 'indexes' | 'schemaId' | 'stepId' | 'context' | 'input' | 'state') => ParameterDecorator & PropertyDecorator;
|
|
11
11
|
|
|
12
12
|
interface TWfHandlerMeta {
|
|
13
13
|
path: string;
|
package/dist/index.mjs
CHANGED
|
@@ -19,6 +19,9 @@ function WorkflowSchema(schema) {
|
|
|
19
19
|
}
|
|
20
20
|
const WorkflowParam = (name) => {
|
|
21
21
|
switch (name) {
|
|
22
|
+
case 'state': {
|
|
23
|
+
return Resolve(() => useWfState(), 'Workflow-State');
|
|
24
|
+
}
|
|
22
25
|
case 'resume': {
|
|
23
26
|
return Resolve(() => useWfState().resume, 'Workflow-Resume');
|
|
24
27
|
}
|
|
@@ -28,6 +31,9 @@ const WorkflowParam = (name) => {
|
|
|
28
31
|
case 'schemaId': {
|
|
29
32
|
return Resolve(() => useWfState().schemaId, 'Workflow-SchemaId');
|
|
30
33
|
}
|
|
34
|
+
case 'stepId': {
|
|
35
|
+
return Resolve(() => useWfState().stepId(), 'Workflow-StepId');
|
|
36
|
+
}
|
|
31
37
|
case 'context': {
|
|
32
38
|
return Resolve(() => useWfState().ctx(), 'Workflow-Context');
|
|
33
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moostjs/event-wf",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.31",
|
|
4
4
|
"description": "@moostjs/event-wf",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"moost": "0.3.
|
|
41
|
-
"wooks": "^0.4.
|
|
42
|
-
"@wooksjs/event-core": "^0.4.
|
|
43
|
-
"@wooksjs/event-wf": "^0.4.
|
|
40
|
+
"moost": "0.3.31",
|
|
41
|
+
"wooks": "^0.4.34",
|
|
42
|
+
"@wooksjs/event-core": "^0.4.34",
|
|
43
|
+
"@wooksjs/event-wf": "^0.4.34",
|
|
44
44
|
"@prostojs/infact": "^0.1.13",
|
|
45
45
|
"@prostojs/mate": "^0.3.2",
|
|
46
46
|
"@prostojs/wf": "^0.0.18"
|