@ldsg/workflow-edge 0.3.31 → 0.3.32
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 +3 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +8 -8
- package/dist/handler.d.ts +4 -4
- package/dist/index.d.ts +5 -5
- package/dist/instantiate-resource.d.ts +4 -4
- package/dist/instantiate-resource.js +1 -1
- package/dist/resource.d.ts +3 -3
- package/dist/resource.js +5 -5
- package/dist/types/index.d.ts +1 -1
- package/dist/types/specific-resource-settings.d.ts +1 -1
- package/dist/types/specific-resource-settings.d.ts.map +1 -1
- package/dist/types/specific-resource-settings.js +1 -1
- package/package.json +11 -7
package/dist/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HandlerSpecificResourceSettings } from
|
|
2
|
-
import { ResourceDefinitionSpecificResourceSettings } from
|
|
3
|
-
import { GeneralResourceSettings } from
|
|
1
|
+
import { HandlerSpecificResourceSettings } from "@ldsg/handler";
|
|
2
|
+
import { ResourceDefinitionSpecificResourceSettings } from "@ldsg/resource-definition";
|
|
3
|
+
import { GeneralResourceSettings } from "@ldsg/types";
|
|
4
4
|
/**
|
|
5
5
|
* Instantiate Resource Handler General Resource Settings
|
|
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":"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,uBAGpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uDAAuD,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,uBAGpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uDAAuD,EAAE,+BAQnE,CAAC;AAEJ,eAAO,MAAM,6CAA6C,EAAE,uBAG3D,CAAC;AAEF,eAAO,MAAM,8CAA8C,EAAE,0CAG1D,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -6,8 +6,8 @@ exports.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS = exports.RESOURCE_DEFINI
|
|
|
6
6
|
* 实例化资源处理程序普通资源配置
|
|
7
7
|
*/
|
|
8
8
|
exports.INSTANTIATE_RESOURCE_HANDLER_GENERAL_RESOURCE_SETTINGS = {
|
|
9
|
-
title:
|
|
10
|
-
description:
|
|
9
|
+
title: "工作流节点类型实例化资源处理程序",
|
|
10
|
+
description: "",
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* Instantiate Resource Handler Specific Resource Settings
|
|
@@ -18,14 +18,14 @@ exports.INSTANTIATE_RESOURCE_HANDLER_SPECIFIC_RESOURCE_SETTINGS = {
|
|
|
18
18
|
code: `export * from "@ldsg/workflow-edge";`,
|
|
19
19
|
dependencies: [
|
|
20
20
|
{
|
|
21
|
-
name:
|
|
22
|
-
}
|
|
23
|
-
]
|
|
21
|
+
name: "@ldsg/workflow-edge",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
24
|
};
|
|
25
25
|
exports.RESOURCE_DEFINITION_GENERAL_RESOURCE_SETTINGS = {
|
|
26
|
-
title:
|
|
27
|
-
description:
|
|
26
|
+
title: "工作流连线资源定义",
|
|
27
|
+
description: "",
|
|
28
28
|
};
|
|
29
29
|
exports.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS = {
|
|
30
|
-
kind:
|
|
30
|
+
kind: "workflow_edge",
|
|
31
31
|
};
|
package/dist/handler.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Handler, HandlerExtendedResourceSettings } from
|
|
2
|
-
import { InstantiateResourceParams, InstantiateResourceRes } from
|
|
3
|
-
import { WorkflowEdgeResource } from
|
|
4
|
-
import { WorkflowEdgeSpecificResourceSettings } from
|
|
1
|
+
import { Handler, HandlerExtendedResourceSettings } from "@ldsg/handler";
|
|
2
|
+
import { InstantiateResourceParams, InstantiateResourceRes } from "@ldsg/resource";
|
|
3
|
+
import { WorkflowEdgeResource } from "./resource";
|
|
4
|
+
import { WorkflowEdgeSpecificResourceSettings } from "./types";
|
|
5
5
|
export declare const handler: Handler<InstantiateResourceParams<HandlerExtendedResourceSettings<WorkflowEdgeSpecificResourceSettings>>, InstantiateResourceRes<WorkflowEdgeResource>>;
|
|
6
6
|
//# sourceMappingURL=handler.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from "./constants";
|
|
2
|
+
export * from "./handler";
|
|
3
|
+
export * from "./instantiate-resource";
|
|
4
|
+
export * from "./resource";
|
|
5
|
+
export * from "./types";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HandlerExtendedResourceSettings } from
|
|
2
|
-
import { InstantiateResource } from
|
|
3
|
-
import { WorkflowEdgeResource } from
|
|
4
|
-
import { WorkflowEdgeSpecificResourceSettings } from
|
|
1
|
+
import { HandlerExtendedResourceSettings } from "@ldsg/handler";
|
|
2
|
+
import { InstantiateResource } from "@ldsg/resource";
|
|
3
|
+
import { WorkflowEdgeResource } from "./resource";
|
|
4
|
+
import { WorkflowEdgeSpecificResourceSettings } from "./types";
|
|
5
5
|
export declare const instantiateResource: InstantiateResource<HandlerExtendedResourceSettings<WorkflowEdgeSpecificResourceSettings>, WorkflowEdgeResource>;
|
|
6
6
|
//# sourceMappingURL=instantiate-resource.d.ts.map
|
package/dist/resource.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Resource } from
|
|
2
|
-
import { GetWorkflowEdgeInfo } from
|
|
3
|
-
import { WorkflowEdgeSpecificResourceSettings } from
|
|
1
|
+
import { Resource } from "@ldsg/resource";
|
|
2
|
+
import { GetWorkflowEdgeInfo } from "@ldsg/workflow";
|
|
3
|
+
import { WorkflowEdgeSpecificResourceSettings } from "./types";
|
|
4
4
|
export declare class WorkflowEdgeResource extends Resource<WorkflowEdgeSpecificResourceSettings> {
|
|
5
5
|
getWorkflowEdgeInfo: GetWorkflowEdgeInfo;
|
|
6
6
|
}
|
package/dist/resource.js
CHANGED
|
@@ -12,13 +12,13 @@ class WorkflowEdgeResource extends resource_1.Resource {
|
|
|
12
12
|
this.getWorkflowEdgeInfo = () => {
|
|
13
13
|
const { settings } = this;
|
|
14
14
|
const workflowEdgeInfo = lodash_1.default.pick(settings, [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
"sourceWorkflowNodeResourceId",
|
|
16
|
+
"sourceWorkflowNodePortId",
|
|
17
|
+
"targetWorkflowNodeResourceId",
|
|
18
|
+
"targetWorkflowNodePortId",
|
|
19
19
|
]);
|
|
20
20
|
const res = {
|
|
21
|
-
workflowEdgeInfo
|
|
21
|
+
workflowEdgeInfo,
|
|
22
22
|
};
|
|
23
23
|
return res;
|
|
24
24
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./specific-resource-settings";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specific-resource-settings.d.ts","sourceRoot":"","sources":["../../src/types/specific-resource-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,0CAA0C;;;;;8BAwBG,CAAC;AAE3D,eAAO,MAAM,8BAA8B;;;;;8BAA6C,CAAC;AACzF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"specific-resource-settings.d.ts","sourceRoot":"","sources":["../../src/types/specific-resource-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,0CAA0C;;;;;8BAwBG,CAAC;AAE3D,eAAO,MAAM,8BAA8B;;;;;8BAA6C,CAAC;AACzF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,0CAA0C,CAClD,CAAC"}
|
|
@@ -21,7 +21,7 @@ exports.WorkflowEdgeSpecificResourceSettingsSchema = zod_1.z
|
|
|
21
21
|
* 目标工作流节点端口ID
|
|
22
22
|
* 缺省则采用目标节点的默认端口
|
|
23
23
|
*/
|
|
24
|
-
targetWorkflowNodePortId: zod_1.z.string().optional()
|
|
24
|
+
targetWorkflowNodePortId: zod_1.z.string().optional(),
|
|
25
25
|
})
|
|
26
26
|
.catchall(zod_1.z.any());
|
|
27
27
|
exports.SpecificResourceSettingsSchema = exports.WorkflowEdgeSpecificResourceSettingsSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldsg/workflow-edge",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.32",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,26 +13,30 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
15
|
"zod": "^4.1.11",
|
|
16
|
-
"@ldsg/handler": "0.3.
|
|
17
|
-
"@ldsg/resource": "0.3.
|
|
18
|
-
"@ldsg/resource-definition": "0.3.
|
|
19
|
-
"@ldsg/workflow": "0.3.
|
|
16
|
+
"@ldsg/handler": "0.3.32",
|
|
17
|
+
"@ldsg/resource": "0.3.32",
|
|
18
|
+
"@ldsg/resource-definition": "0.3.32",
|
|
19
|
+
"@ldsg/workflow": "0.3.32"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/jest": "^29.5.2",
|
|
23
23
|
"@types/lodash": "^4.14.202",
|
|
24
24
|
"jest": "^29.5.0",
|
|
25
|
+
"oxfmt": "latest",
|
|
26
|
+
"oxlint": "latest",
|
|
25
27
|
"supertest": "^6.3.4",
|
|
26
28
|
"ts-jest": "^29.1.5",
|
|
27
29
|
"ts-node": "^10.9.2",
|
|
28
30
|
"typescript": "^5.8.3",
|
|
29
|
-
"@ldsg/types": "0.3.
|
|
31
|
+
"@ldsg/types": "0.3.32"
|
|
30
32
|
},
|
|
31
33
|
"publishConfig": {
|
|
32
34
|
"access": "public"
|
|
33
35
|
},
|
|
34
36
|
"scripts": {
|
|
35
37
|
"build": "tsc --project tsconfig.build.json",
|
|
36
|
-
"clean": "rm -rf dist"
|
|
38
|
+
"clean": "rm -rf dist",
|
|
39
|
+
"format": "oxfmt --write src/",
|
|
40
|
+
"lint": "oxlint src/"
|
|
37
41
|
}
|
|
38
42
|
}
|