@ldsg/workflow-node-type 0.3.2 → 0.3.3
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/constants.d.ts.map +1 -1
- package/dist/constants.js +5 -28
- package/dist/resource-records/end/handler/index.d.ts.map +1 -1
- package/dist/resource-records/end/handler/index.js +2 -8
- package/dist/resource-records/end/handler/utils/handler.d.ts +3 -0
- package/dist/resource-records/end/handler/utils/handler.d.ts.map +1 -0
- package/dist/resource-records/end/handler/utils/handler.js +11 -0
- package/dist/resource-records/start/handler/index.d.ts.map +1 -1
- package/dist/resource-records/start/handler/index.js +2 -8
- package/dist/resource-records/start/handler/utils/handler.d.ts +3 -0
- package/dist/resource-records/start/handler/utils/handler.d.ts.map +1 -0
- package/dist/resource-records/start/handler/utils/handler.js +11 -0
- package/package.json +6 -6
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,0CAA0C,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,sDAAsD,EAAE,uBAIlE,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,uDAAuD,EAAE,+BAQnE,CAAC;AAEJ,eAAO,MAAM,6CAA6C,EAAE,uBAIzD,CAAC;AAEJ,eAAO,MAAM,8CAA8C,EAAE,0CAI1D,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,kDAAkD,EAAE,uBAI9D,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,mDAAmD,EAAE,+
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,0CAA0C,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,sDAAsD,EAAE,uBAIlE,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,uDAAuD,EAAE,+BAQnE,CAAC;AAEJ,eAAO,MAAM,6CAA6C,EAAE,uBAIzD,CAAC;AAEJ,eAAO,MAAM,8CAA8C,EAAE,0CAI1D,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,kDAAkD,EAAE,uBAI9D,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,mDAAmD,EAAE,+BAyB/D,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -44,36 +44,13 @@ exports.DEFAULT_EXTENDED_HANDLER_GENERAL_RESOURCE_SETTINGS = {
|
|
|
44
44
|
* 默认扩展处理程序特殊资源配置
|
|
45
45
|
*/
|
|
46
46
|
exports.DEFAULT_EXTENDED_HANDLER_SPECIFIC_RESOURCE_SETTINGS = {
|
|
47
|
-
code: `import {
|
|
48
|
-
import {
|
|
49
|
-
WorkflowNodeExecuter,
|
|
50
|
-
WorkflowNodeExecuterExecute,
|
|
51
|
-
} from "@ldsg/workflow";
|
|
52
|
-
import {
|
|
53
|
-
ExtraWorkflowNodeInfo,
|
|
54
|
-
GetExtraWorkflowNodeInfoParams,
|
|
55
|
-
} from "@ldsg/workflow-node-type";
|
|
47
|
+
code: `import { WorkflowNodeTypeResourceHandler } from "@ldsg/workflow-node-type";
|
|
56
48
|
|
|
57
|
-
export const handler:
|
|
58
|
-
|
|
59
|
-
ExtraWorkflowNodeInfo
|
|
60
|
-
> = (params) => {
|
|
61
|
-
const { workflowNodeProperties } = params;
|
|
49
|
+
export const handler: WorkflowNodeTypeResourceHandler = async (params) => {
|
|
50
|
+
const { variables } = params;
|
|
62
51
|
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
class AWorkflowNodeExecuter extends WorkflowNodeExecuter {
|
|
66
|
-
execute: WorkflowNodeExecuterExecute = async () => {
|
|
67
|
-
const { setVariables } = this;
|
|
68
|
-
|
|
69
|
-
setVariables({
|
|
70
|
-
variables: name,
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const res: ExtraWorkflowNodeInfo = {
|
|
76
|
-
Executer: AWorkflowNodeExecuter,
|
|
52
|
+
const res = {
|
|
53
|
+
variables,
|
|
77
54
|
};
|
|
78
55
|
|
|
79
56
|
return res;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resource-records/end/handler/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,+BAA+B,EAChC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resource-records/end/handler/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,+BAA+B,EAChC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI7C,eAAO,MAAM,wCAAwC,EAAE,cAAc,CAAC,+BAA+B,CAYlG,CAAC"}
|
|
@@ -4,13 +4,7 @@ exports.endWorkflowNodeTypeHandlerResourceRecord = void 0;
|
|
|
4
4
|
const constants_1 = require("@ldsg/constants");
|
|
5
5
|
const handler_1 = require("@ldsg/handler");
|
|
6
6
|
const constants_2 = require("./constants");
|
|
7
|
-
const
|
|
8
|
-
const { variables } = params;
|
|
9
|
-
const res = {
|
|
10
|
-
variables,
|
|
11
|
-
};
|
|
12
|
-
return res;
|
|
13
|
-
};
|
|
7
|
+
const handler_2 = require("./utils/handler");
|
|
14
8
|
exports.endWorkflowNodeTypeHandlerResourceRecord = {
|
|
15
9
|
id: constants_2.END_WORKFLOW_NODE_TYPE_HANDLER_RESOURCE_ID,
|
|
16
10
|
kind: handler_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
@@ -20,6 +14,6 @@ exports.endWorkflowNodeTypeHandlerResourceRecord = {
|
|
|
20
14
|
description: "",
|
|
21
15
|
code: "",
|
|
22
16
|
dependencies: [],
|
|
23
|
-
handler,
|
|
17
|
+
handler: handler_2.handler,
|
|
24
18
|
},
|
|
25
19
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../../src/resource-records/end/handler/utils/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mBAAmB,CAAC;AAEpE,eAAO,MAAM,OAAO,EAAE,+BAQrB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handler = void 0;
|
|
4
|
+
const handler = async (params) => {
|
|
5
|
+
const { variables } = params;
|
|
6
|
+
const res = {
|
|
7
|
+
variables,
|
|
8
|
+
};
|
|
9
|
+
return res;
|
|
10
|
+
};
|
|
11
|
+
exports.handler = handler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resource-records/start/handler/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,+BAA+B,EAChC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resource-records/start/handler/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,+BAA+B,EAChC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI7C,eAAO,MAAM,0CAA0C,EAAE,cAAc,CAAC,+BAA+B,CAYpG,CAAC"}
|
|
@@ -4,13 +4,7 @@ exports.startWorkflowNodeTypeHandlerResourceRecord = void 0;
|
|
|
4
4
|
const constants_1 = require("@ldsg/constants");
|
|
5
5
|
const handler_1 = require("@ldsg/handler");
|
|
6
6
|
const constants_2 = require("./constants");
|
|
7
|
-
const
|
|
8
|
-
const { variables } = params;
|
|
9
|
-
const res = {
|
|
10
|
-
variables,
|
|
11
|
-
};
|
|
12
|
-
return res;
|
|
13
|
-
};
|
|
7
|
+
const handler_2 = require("./utils/handler");
|
|
14
8
|
exports.startWorkflowNodeTypeHandlerResourceRecord = {
|
|
15
9
|
id: constants_2.START_WORKFLOW_NODE_TYPE_HANDLER_RESOURCE_ID,
|
|
16
10
|
kind: handler_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
@@ -20,6 +14,6 @@ exports.startWorkflowNodeTypeHandlerResourceRecord = {
|
|
|
20
14
|
description: "",
|
|
21
15
|
code: "",
|
|
22
16
|
dependencies: [],
|
|
23
|
-
handler,
|
|
17
|
+
handler: handler_2.handler,
|
|
24
18
|
},
|
|
25
19
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../../src/resource-records/start/handler/utils/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mBAAmB,CAAC;AAEpE,eAAO,MAAM,OAAO,EAAE,+BAQrB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handler = void 0;
|
|
4
|
+
const handler = async (params) => {
|
|
5
|
+
const { variables } = params;
|
|
6
|
+
const res = {
|
|
7
|
+
variables,
|
|
8
|
+
};
|
|
9
|
+
return res;
|
|
10
|
+
};
|
|
11
|
+
exports.handler = handler;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldsg/workflow-node-type",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"json-schema": "0.4.0",
|
|
18
18
|
"jsonata": "^2.0.6",
|
|
19
19
|
"lodash": "^4.17.21",
|
|
20
|
-
"@ldsg/handler": "0.3.
|
|
21
|
-
"@ldsg/resource-definition": "0.3.
|
|
22
|
-
"@ldsg/resource": "0.3.
|
|
23
|
-
"@ldsg/workflow": "0.3.
|
|
20
|
+
"@ldsg/handler": "0.3.3",
|
|
21
|
+
"@ldsg/resource-definition": "0.3.3",
|
|
22
|
+
"@ldsg/resource": "0.3.3",
|
|
23
|
+
"@ldsg/workflow": "0.3.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/json-schema": "^7.0.15",
|
|
27
27
|
"@types/lodash": "^4.14.202",
|
|
28
|
-
"@ldsg/types": "0.3.
|
|
28
|
+
"@ldsg/types": "0.3.3"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "tsc --project tsconfig.build.json",
|