@ldsg/workflow-node 0.3.9 → 0.3.10
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 -10
- package/dist/handler.d.ts +5 -7
- package/dist/handler.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/resource.js +3 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/specific-resource-settings.d.ts +2 -2
- package/dist/types/specific-resource-settings.d.ts.map +1 -1
- package/package.json +20 -14
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;
|
|
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,+BAOrE,CAAC;AAEF,eAAO,MAAM,6CAA6C,EAAE,uBAG3D,CAAC;AAEF,eAAO,MAAM,8CAA8C,EAAE,0CAE5D,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS = exports.RESOURCE_DEFINITION_GENERAL_RESOURCE_SETTINGS = exports.INSTANTIATE_RESOURCE_HANDLER_SPECIFIC_RESOURCE_SETTINGS = exports.INSTANTIATE_RESOURCE_HANDLER_GENERAL_RESOURCE_SETTINGS = void 0;
|
|
4
|
-
const workflow_1 = require("@ldsg/workflow");
|
|
5
4
|
/**
|
|
6
5
|
* Instantiate Resource Handler General Resource Settings
|
|
7
6
|
* 实例化资源处理程序普通资源配置
|
|
8
7
|
*/
|
|
9
8
|
exports.INSTANTIATE_RESOURCE_HANDLER_GENERAL_RESOURCE_SETTINGS = {
|
|
10
|
-
title:
|
|
11
|
-
description:
|
|
9
|
+
title: '工作流节点实例化资源处理程序',
|
|
10
|
+
description: ''
|
|
12
11
|
};
|
|
13
12
|
/**
|
|
14
13
|
* Instantiate Resource Handler Specific Resource Settings
|
|
@@ -19,15 +18,14 @@ exports.INSTANTIATE_RESOURCE_HANDLER_SPECIFIC_RESOURCE_SETTINGS = {
|
|
|
19
18
|
code: `export * from "@ldsg/workflow-node";`,
|
|
20
19
|
dependencies: [
|
|
21
20
|
{
|
|
22
|
-
name:
|
|
23
|
-
}
|
|
24
|
-
]
|
|
21
|
+
name: '@ldsg/workflow-node'
|
|
22
|
+
}
|
|
23
|
+
]
|
|
25
24
|
};
|
|
26
25
|
exports.RESOURCE_DEFINITION_GENERAL_RESOURCE_SETTINGS = {
|
|
27
|
-
title:
|
|
28
|
-
description:
|
|
26
|
+
title: '工作流节点资源定义',
|
|
27
|
+
description: ''
|
|
29
28
|
};
|
|
30
29
|
exports.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS = {
|
|
31
|
-
kind:
|
|
32
|
-
parentKind: workflow_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
30
|
+
kind: 'workflow_node'
|
|
33
31
|
};
|
package/dist/handler.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { Handler, HandlerExtendedResourceSettings } from
|
|
2
|
-
import { InstantiateResourceParams, InstantiateResourceRes } from
|
|
3
|
-
import { WorkflowNodeResource } from
|
|
4
|
-
import { WorkflowNodeSpecificResourceSettings } from
|
|
5
|
-
export declare const handler: Handler<
|
|
6
|
-
InstantiateResourceParams<HandlerExtendedResourceSettings<WorkflowNodeSpecificResourceSettings>>
|
|
7
|
-
], InstantiateResourceRes<WorkflowNodeResource>>;
|
|
1
|
+
import { Handler, HandlerExtendedResourceSettings } from '@ldsg/handler';
|
|
2
|
+
import { InstantiateResourceParams, InstantiateResourceRes } from '@ldsg/resource';
|
|
3
|
+
import { WorkflowNodeResource } from './resource';
|
|
4
|
+
import { WorkflowNodeSpecificResourceSettings } from './types';
|
|
5
|
+
export declare const handler: Handler<InstantiateResourceParams<HandlerExtendedResourceSettings<WorkflowNodeSpecificResourceSettings>>, InstantiateResourceRes<WorkflowNodeResource>>;
|
|
8
6
|
//# sourceMappingURL=handler.d.ts.map
|
package/dist/handler.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,oCAAoC,EAAE,MAAM,SAAS,CAAC;AAE/D,eAAO,MAAM,OAAO,EAAE,OAAO,CAC3B,yBAAyB,CAAC,+BAA+B,CAAC,oCAAoC,CAAC,CAAC,EAChG,sBAAsB,CAAC,oBAAoB,CAAC,CACvB,CAAC"}
|
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 { WorkflowNodeResource } from
|
|
4
|
-
import { WorkflowNodeSpecificResourceSettings } from
|
|
1
|
+
import { HandlerExtendedResourceSettings } from '@ldsg/handler';
|
|
2
|
+
import { InstantiateResource } from '@ldsg/resource';
|
|
3
|
+
import { WorkflowNodeResource } from './resource';
|
|
4
|
+
import { WorkflowNodeSpecificResourceSettings } from './types';
|
|
5
5
|
export declare const instantiateResource: InstantiateResource<HandlerExtendedResourceSettings<WorkflowNodeSpecificResourceSettings>, WorkflowNodeResource>;
|
|
6
6
|
//# sourceMappingURL=instantiate-resource.d.ts.map
|
package/dist/resource.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Resource } from
|
|
2
|
-
import { GetWorkflowNodeInfo } from
|
|
3
|
-
import { WorkflowNodeSpecificResourceSettings } from
|
|
1
|
+
import { Resource } from '@ldsg/resource';
|
|
2
|
+
import { GetWorkflowNodeInfo } from '@ldsg/workflow';
|
|
3
|
+
import { WorkflowNodeSpecificResourceSettings } from './types';
|
|
4
4
|
export declare class WorkflowNodeResource extends Resource<WorkflowNodeSpecificResourceSettings> {
|
|
5
5
|
getWorkflowNodeInfo: GetWorkflowNodeInfo;
|
|
6
6
|
}
|
package/dist/resource.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EACL,mBAAmB,EAIpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,oCAAoC,EAAE,MAAM,SAAS,CAAC;AAE/D,qBAAa,oBAAqB,SAAQ,QAAQ,CAAC,oCAAoC,CAAC;IACtF,mBAAmB,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EACL,mBAAmB,EAIpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,oCAAoC,EAAE,MAAM,SAAS,CAAC;AAE/D,qBAAa,oBAAqB,SAAQ,QAAQ,CAAC,oCAAoC,CAAC;IACtF,mBAAmB,EAAE,mBAAmB,CAwBtC;CACH"}
|
package/dist/resource.js
CHANGED
|
@@ -9,15 +9,15 @@ class WorkflowNodeResource extends resource_1.Resource {
|
|
|
9
9
|
const { id, getResourcesFromSettings, settings } = this;
|
|
10
10
|
const { workflowNodeTypeResource } = getResourcesFromSettings();
|
|
11
11
|
const { propertiesSchema } = settings;
|
|
12
|
-
const { workflowNodeTypeInfo: { execute: workflowNodeTypeExecute }
|
|
12
|
+
const { workflowNodeTypeInfo: { execute: workflowNodeTypeExecute } } = workflowNodeTypeResource.getWorkflowNodeTypeInfo();
|
|
13
13
|
const execute = workflowNodeTypeExecute;
|
|
14
14
|
const workflowNodeInfo = {
|
|
15
15
|
id,
|
|
16
16
|
propertiesSchema,
|
|
17
|
-
execute
|
|
17
|
+
execute
|
|
18
18
|
};
|
|
19
19
|
const res = {
|
|
20
|
-
workflowNodeInfo
|
|
20
|
+
workflowNodeInfo
|
|
21
21
|
};
|
|
22
22
|
return res;
|
|
23
23
|
};
|
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,5 +1,5 @@
|
|
|
1
|
-
import { SpecificResourceSettings } from
|
|
2
|
-
import { JSONSchemaWithExpressionExtension } from
|
|
1
|
+
import { SpecificResourceSettings } from '@ldsg/types';
|
|
2
|
+
import { JSONSchemaWithExpressionExtension } from '@ldsg/workflow';
|
|
3
3
|
export interface WorkflowNodeSpecificResourceSettings extends SpecificResourceSettings {
|
|
4
4
|
/**
|
|
5
5
|
* Workflow Node Type Resource ID
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specific-resource-settings.d.ts","sourceRoot":"","sources":["../../src/types/specific-resource-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,gBAAgB,CAAC;AAEnE,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"specific-resource-settings.d.ts","sourceRoot":"","sources":["../../src/types/specific-resource-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,gBAAgB,CAAC;AAEnE,MAAM,WAAW,oCAAqC,SAAQ,wBAAwB;IACpF;;OAEG;IACH,0BAA0B,EAAE,MAAM,CAAC;IAEnC;;OAEG;IACH,gBAAgB,EAAE,iCAAiC,CAAC;CACrD"}
|
package/package.json
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldsg/workflow-node",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
4
4
|
"description": "",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "wanxger",
|
|
5
8
|
"main": "dist/index.js",
|
|
9
|
+
"types": "dist",
|
|
6
10
|
"files": [
|
|
7
11
|
"dist/"
|
|
8
12
|
],
|
|
9
|
-
"types": "dist",
|
|
10
|
-
"keywords": [],
|
|
11
|
-
"author": "wanxger",
|
|
12
|
-
"license": "MIT",
|
|
13
|
-
"publishConfig": {
|
|
14
|
-
"access": "public"
|
|
15
|
-
},
|
|
16
13
|
"dependencies": {
|
|
17
14
|
"json-schema": "0.4.0",
|
|
18
|
-
"@ldsg/handler": "0.3.
|
|
19
|
-
"@ldsg/resource
|
|
20
|
-
"@ldsg/
|
|
21
|
-
"@ldsg/workflow
|
|
22
|
-
"@ldsg/
|
|
15
|
+
"@ldsg/handler": "0.3.10",
|
|
16
|
+
"@ldsg/resource": "0.3.10",
|
|
17
|
+
"@ldsg/resource-definition": "0.3.10",
|
|
18
|
+
"@ldsg/workflow": "0.3.10",
|
|
19
|
+
"@ldsg/workflow-node-type": "0.3.10"
|
|
23
20
|
},
|
|
24
21
|
"devDependencies": {
|
|
22
|
+
"@types/jest": "^29.5.2",
|
|
25
23
|
"@types/json-schema": "^7.0.15",
|
|
26
|
-
"
|
|
24
|
+
"jest": "^29.5.0",
|
|
25
|
+
"supertest": "^6.3.4",
|
|
26
|
+
"ts-jest": "^29.1.5",
|
|
27
|
+
"ts-node": "^10.9.2",
|
|
28
|
+
"typescript": "^5.8.3",
|
|
29
|
+
"@ldsg/types": "0.3.10"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
27
33
|
},
|
|
28
34
|
"scripts": {
|
|
29
35
|
"build": "tsc --project tsconfig.build.json",
|