@ldsg/workflow-node-type 0.3.38 → 0.3.41
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/__tests__/unit.js +2 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +3 -0
- package/dist/resource-records/end/handler/index.d.ts.map +1 -1
- package/dist/resource-records/end/handler/index.js +5 -4
- package/dist/resource-records/end/index.d.ts.map +1 -1
- package/dist/resource-records/end/index.js +7 -6
- package/dist/resource-records/start/handler/index.d.ts.map +1 -1
- package/dist/resource-records/start/handler/index.js +5 -4
- package/dist/resource-records/start/index.d.ts.map +1 -1
- package/dist/resource-records/start/index.js +7 -6
- package/package.json +7 -7
package/dist/__tests__/unit.js
CHANGED
|
@@ -15,6 +15,7 @@ test("field type", async () => {
|
|
|
15
15
|
kind: "handler",
|
|
16
16
|
parentId: "root",
|
|
17
17
|
settings: {
|
|
18
|
+
slug: "test-handler",
|
|
18
19
|
title: "测试处理程序",
|
|
19
20
|
description: "",
|
|
20
21
|
code: "",
|
|
@@ -27,6 +28,7 @@ test("field type", async () => {
|
|
|
27
28
|
kind: "workflow_node_type",
|
|
28
29
|
parentId: "root",
|
|
29
30
|
settings: {
|
|
31
|
+
slug: "test-workflow-node-type",
|
|
30
32
|
title: "文本",
|
|
31
33
|
description: "可用来存储各种文本",
|
|
32
34
|
handlerResourceId: "test-handler",
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,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,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,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,uBAIpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uDAAuD,EAAE,+BAQnE,CAAC;AAEJ,eAAO,MAAM,6CAA6C,EAAE,uBAI3D,CAAC;AAEF,eAAO,MAAM,8CAA8C,EAAE,0CAG1D,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,kDAAkD,EAAE,uBAIhE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mDAAmD,EAAE,+BAmB/D,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -6,6 +6,7 @@ exports.DEFAULT_EXTENDED_HANDLER_SPECIFIC_RESOURCE_SETTINGS = exports.DEFAULT_EX
|
|
|
6
6
|
* 实例化资源处理程序普通资源配置
|
|
7
7
|
*/
|
|
8
8
|
exports.INSTANTIATE_RESOURCE_HANDLER_GENERAL_RESOURCE_SETTINGS = {
|
|
9
|
+
slug: "workflow-node-type-instantiate-resource-handler",
|
|
9
10
|
title: "工作流节点类型实例化资源处理程序",
|
|
10
11
|
description: "",
|
|
11
12
|
};
|
|
@@ -23,6 +24,7 @@ exports.INSTANTIATE_RESOURCE_HANDLER_SPECIFIC_RESOURCE_SETTINGS = {
|
|
|
23
24
|
],
|
|
24
25
|
};
|
|
25
26
|
exports.RESOURCE_DEFINITION_GENERAL_RESOURCE_SETTINGS = {
|
|
27
|
+
slug: "workflow-node-type-resource-definition",
|
|
26
28
|
title: "工作流节点类型资源定义",
|
|
27
29
|
description: "",
|
|
28
30
|
};
|
|
@@ -34,6 +36,7 @@ exports.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS = {
|
|
|
34
36
|
* 默认扩展处理程序普通资源配置
|
|
35
37
|
*/
|
|
36
38
|
exports.DEFAULT_EXTENDED_HANDLER_GENERAL_RESOURCE_SETTINGS = {
|
|
39
|
+
slug: "workflow-node-type-default-extended-handler",
|
|
37
40
|
title: "工作流节点类型默认扩展处理程序",
|
|
38
41
|
description: "",
|
|
39
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resource-records/end/handler/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resource-records/end/handler/index.ts"],"names":[],"mappings":"AAAA,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,CAalG,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.endWorkflowNodeTypeHandlerResourceRecord = void 0;
|
|
4
|
-
const constants_1 = require("@ldsg/constants");
|
|
5
4
|
const handler_1 = require("@ldsg/handler");
|
|
6
|
-
const
|
|
5
|
+
const constants_1 = require("./constants");
|
|
7
6
|
const handler_2 = require("./utils/handler");
|
|
8
7
|
exports.endWorkflowNodeTypeHandlerResourceRecord = {
|
|
9
|
-
id:
|
|
8
|
+
id: constants_1.END_WORKFLOW_NODE_TYPE_HANDLER_RESOURCE_ID,
|
|
10
9
|
kind: handler_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
11
|
-
parentId:
|
|
10
|
+
parentId: null,
|
|
12
11
|
settings: {
|
|
12
|
+
slug: "end-workflow-node-type-handler",
|
|
13
13
|
title: "结束工作流节点类型处理程序",
|
|
14
|
+
description: "",
|
|
14
15
|
code: "",
|
|
15
16
|
dependencies: [],
|
|
16
17
|
handler: handler_2.handler,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resource-records/end/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resource-records/end/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,EAAE,wCAAwC,EAAE,MAAM,aAAa,CAAC;AAGvE,cAAc,WAAW,CAAC;AAE1B,eAAO,MAAM,iCAAiC,EAAE,cAAc,CAAC,wCAAwC,CAWpG,CAAC"}
|
|
@@ -15,17 +15,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.endWorkflowNodeTypeResourceRecord = void 0;
|
|
18
|
-
const constants_1 = require("@ldsg/constants");
|
|
19
18
|
const workflow_1 = require("@ldsg/workflow");
|
|
20
|
-
const
|
|
21
|
-
const
|
|
19
|
+
const constants_1 = require("../../constants");
|
|
20
|
+
const constants_2 = require("./handler/constants");
|
|
22
21
|
__exportStar(require("./handler"), exports);
|
|
23
22
|
exports.endWorkflowNodeTypeResourceRecord = {
|
|
24
23
|
id: workflow_1.SPECIFIC_WORKFLOW_NODE_TYPE_TO_WORKFLOW_NODE_TYPE_RESOURCE_ID_MAP.end,
|
|
25
|
-
kind:
|
|
26
|
-
parentId:
|
|
24
|
+
kind: constants_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
25
|
+
parentId: null,
|
|
27
26
|
settings: {
|
|
27
|
+
slug: "end-workflow-node-type",
|
|
28
28
|
title: "结束工作流节点类型",
|
|
29
|
-
|
|
29
|
+
description: "",
|
|
30
|
+
handlerResourceId: constants_2.END_WORKFLOW_NODE_TYPE_HANDLER_RESOURCE_ID,
|
|
30
31
|
},
|
|
31
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resource-records/start/handler/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resource-records/start/handler/index.ts"],"names":[],"mappings":"AAAA,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,CAapG,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.startWorkflowNodeTypeHandlerResourceRecord = void 0;
|
|
4
|
-
const constants_1 = require("@ldsg/constants");
|
|
5
4
|
const handler_1 = require("@ldsg/handler");
|
|
6
|
-
const
|
|
5
|
+
const constants_1 = require("./constants");
|
|
7
6
|
const handler_2 = require("./utils/handler");
|
|
8
7
|
exports.startWorkflowNodeTypeHandlerResourceRecord = {
|
|
9
|
-
id:
|
|
8
|
+
id: constants_1.START_WORKFLOW_NODE_TYPE_HANDLER_RESOURCE_ID,
|
|
10
9
|
kind: handler_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
11
|
-
parentId:
|
|
10
|
+
parentId: null,
|
|
12
11
|
settings: {
|
|
12
|
+
slug: "start-workflow-node-type-handler",
|
|
13
13
|
title: "开始工作流节点类型处理程序",
|
|
14
|
+
description: "",
|
|
14
15
|
code: "",
|
|
15
16
|
dependencies: [],
|
|
16
17
|
handler: handler_2.handler,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resource-records/start/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resource-records/start/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,EAAE,wCAAwC,EAAE,MAAM,aAAa,CAAC;AAGvE,cAAc,WAAW,CAAC;AAE1B,eAAO,MAAM,mCAAmC,EAAE,cAAc,CAAC,wCAAwC,CAWtG,CAAC"}
|
|
@@ -15,17 +15,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.startWorkflowNodeTypeResourceRecord = void 0;
|
|
18
|
-
const constants_1 = require("@ldsg/constants");
|
|
19
18
|
const workflow_1 = require("@ldsg/workflow");
|
|
20
|
-
const
|
|
21
|
-
const
|
|
19
|
+
const constants_1 = require("../../constants");
|
|
20
|
+
const constants_2 = require("./handler/constants");
|
|
22
21
|
__exportStar(require("./handler"), exports);
|
|
23
22
|
exports.startWorkflowNodeTypeResourceRecord = {
|
|
24
23
|
id: workflow_1.SPECIFIC_WORKFLOW_NODE_TYPE_TO_WORKFLOW_NODE_TYPE_RESOURCE_ID_MAP.start,
|
|
25
|
-
kind:
|
|
26
|
-
parentId:
|
|
24
|
+
kind: constants_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
25
|
+
parentId: null,
|
|
27
26
|
settings: {
|
|
27
|
+
slug: "start-workflow-node-type",
|
|
28
28
|
title: "开始工作流节点类型",
|
|
29
|
-
|
|
29
|
+
description: "",
|
|
30
|
+
handlerResourceId: constants_2.START_WORKFLOW_NODE_TYPE_HANDLER_RESOURCE_ID,
|
|
30
31
|
},
|
|
31
32
|
};
|
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.41",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"json-schema": "0.4.0",
|
|
18
18
|
"lodash": "^4.17.21",
|
|
19
19
|
"zod": "^4.1.11",
|
|
20
|
-
"@ldsg/constants": "0.3.
|
|
21
|
-
"@ldsg/handler": "0.3.
|
|
22
|
-
"@ldsg/resource
|
|
23
|
-
"@ldsg/resource": "0.3.
|
|
24
|
-
"@ldsg/types": "0.3.
|
|
25
|
-
"@ldsg/workflow": "0.3.
|
|
20
|
+
"@ldsg/constants": "0.3.41",
|
|
21
|
+
"@ldsg/handler": "0.3.41",
|
|
22
|
+
"@ldsg/resource": "0.3.41",
|
|
23
|
+
"@ldsg/resource-definition": "0.3.41",
|
|
24
|
+
"@ldsg/types": "0.3.41",
|
|
25
|
+
"@ldsg/workflow": "0.3.41"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/jest": "^29.5.2",
|