@ldsg/workflow-node-type 0.3.30 → 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/__tests__/unit.js +24 -24
- package/dist/constants.d.ts +3 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +13 -13
- package/dist/handler.d.ts +4 -4
- package/dist/handler.d.ts.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/instantiate-resource.d.ts +4 -4
- package/dist/instantiate-resource.js +1 -1
- package/dist/resource-records/end/handler/index.d.ts +2 -2
- package/dist/resource-records/end/handler/index.d.ts.map +1 -1
- package/dist/resource-records/end/handler/index.js +4 -4
- package/dist/resource-records/end/handler/utils/handler.d.ts +1 -1
- package/dist/resource-records/end/handler/utils/handler.js +1 -1
- package/dist/resource-records/end/index.d.ts +3 -3
- package/dist/resource-records/end/index.d.ts.map +1 -1
- package/dist/resource-records/end/index.js +3 -3
- package/dist/resource-records/index.d.ts +2 -2
- package/dist/resource-records/index.d.ts.map +1 -1
- package/dist/resource-records/index.js +1 -1
- package/dist/resource-records/start/handler/index.d.ts +2 -2
- package/dist/resource-records/start/handler/index.d.ts.map +1 -1
- package/dist/resource-records/start/handler/index.js +4 -4
- package/dist/resource-records/start/handler/utils/handler.d.ts +1 -1
- package/dist/resource-records/start/handler/utils/handler.js +1 -1
- package/dist/resource-records/start/index.d.ts +3 -3
- package/dist/resource-records/start/index.d.ts.map +1 -1
- package/dist/resource-records/start/index.js +3 -3
- package/dist/resource.d.ts +2 -2
- package/dist/resource.js +2 -2
- package/dist/types/index.d.ts +3 -3
- package/dist/types/resource-extended-handler.d.ts +2 -2
- package/dist/types/specific-resource-settings.d.ts +1 -1
- package/dist/types/workflow-node-type.d.ts +1 -1
- package/dist/types/workflow-node-type.d.ts.map +1 -1
- package/package.json +12 -9
package/dist/__tests__/unit.js
CHANGED
|
@@ -5,47 +5,47 @@ const resource_1 = require("../resource");
|
|
|
5
5
|
const handler = async (params) => {
|
|
6
6
|
const { variables } = params;
|
|
7
7
|
const res = {
|
|
8
|
-
variables
|
|
8
|
+
variables,
|
|
9
9
|
};
|
|
10
10
|
return res;
|
|
11
11
|
};
|
|
12
|
-
test(
|
|
12
|
+
test("field type", async () => {
|
|
13
13
|
new handler_1.HandlerResource({
|
|
14
|
-
id:
|
|
15
|
-
kind:
|
|
16
|
-
parentId:
|
|
14
|
+
id: "test-handler",
|
|
15
|
+
kind: "handler",
|
|
16
|
+
parentId: "root",
|
|
17
17
|
settings: {
|
|
18
|
-
title:
|
|
19
|
-
description:
|
|
20
|
-
code:
|
|
18
|
+
title: "测试处理程序",
|
|
19
|
+
description: "",
|
|
20
|
+
code: "",
|
|
21
21
|
dependencies: [],
|
|
22
|
-
handler
|
|
23
|
-
}
|
|
22
|
+
handler,
|
|
23
|
+
},
|
|
24
24
|
});
|
|
25
25
|
const workflowNodeTypeResource = new resource_1.WorkflowNodeTypeResource({
|
|
26
|
-
id:
|
|
27
|
-
kind:
|
|
28
|
-
parentId:
|
|
26
|
+
id: "test-workflow-node-type",
|
|
27
|
+
kind: "workflow_node_type",
|
|
28
|
+
parentId: "root",
|
|
29
29
|
settings: {
|
|
30
|
-
title:
|
|
31
|
-
description:
|
|
32
|
-
handlerResourceId:
|
|
33
|
-
}
|
|
30
|
+
title: "文本",
|
|
31
|
+
description: "可用来存储各种文本",
|
|
32
|
+
handlerResourceId: "test-handler",
|
|
33
|
+
},
|
|
34
34
|
});
|
|
35
|
-
const { workflowNodeTypeInfo: { execute: workflowNodeTypeExecute } } = workflowNodeTypeResource.getWorkflowNodeTypeInfo();
|
|
35
|
+
const { workflowNodeTypeInfo: { execute: workflowNodeTypeExecute }, } = workflowNodeTypeResource.getWorkflowNodeTypeInfo();
|
|
36
36
|
const context = {};
|
|
37
37
|
const { variables: variables1 } = await workflowNodeTypeExecute({
|
|
38
38
|
context,
|
|
39
39
|
variables: {
|
|
40
|
-
hello:
|
|
41
|
-
}
|
|
40
|
+
hello: "world",
|
|
41
|
+
},
|
|
42
42
|
});
|
|
43
|
-
expect(variables1).toEqual({ hello:
|
|
43
|
+
expect(variables1).toEqual({ hello: "world" });
|
|
44
44
|
const { variables: variables2 } = await workflowNodeTypeExecute({
|
|
45
45
|
context,
|
|
46
46
|
variables: {
|
|
47
|
-
name:
|
|
48
|
-
}
|
|
47
|
+
name: "test",
|
|
48
|
+
},
|
|
49
49
|
});
|
|
50
|
-
expect(variables2).toEqual({ name:
|
|
50
|
+
expect(variables2).toEqual({ name: "test" });
|
|
51
51
|
});
|
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;AAEJ;;;GAGG;AACH,eAAO,MAAM,kDAAkD,EAAE,uBAGhE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mDAAmD,EAAE,+BAmB/D,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -6,8 +6,8 @@ exports.DEFAULT_EXTENDED_HANDLER_SPECIFIC_RESOURCE_SETTINGS = exports.DEFAULT_EX
|
|
|
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,24 +18,24 @@ exports.INSTANTIATE_RESOURCE_HANDLER_SPECIFIC_RESOURCE_SETTINGS = {
|
|
|
18
18
|
code: `export * from "@ldsg/workflow-node-type";`,
|
|
19
19
|
dependencies: [
|
|
20
20
|
{
|
|
21
|
-
name:
|
|
22
|
-
}
|
|
23
|
-
]
|
|
21
|
+
name: "@ldsg/workflow-node-type",
|
|
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_node_type",
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* Default Extended Handler General Resource Settings
|
|
34
34
|
* 默认扩展处理程序普通资源配置
|
|
35
35
|
*/
|
|
36
36
|
exports.DEFAULT_EXTENDED_HANDLER_GENERAL_RESOURCE_SETTINGS = {
|
|
37
|
-
title:
|
|
38
|
-
description:
|
|
37
|
+
title: "工作流节点类型默认扩展处理程序",
|
|
38
|
+
description: "",
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* Default Extended Handler Specific Resource Settings
|
|
@@ -56,7 +56,7 @@ export const handler: WorkflowNodeTypeResourceExtendedHandler = async (params) =
|
|
|
56
56
|
`,
|
|
57
57
|
dependencies: [
|
|
58
58
|
{
|
|
59
|
-
name:
|
|
60
|
-
}
|
|
61
|
-
]
|
|
59
|
+
name: "@ldsg/workflow-node-type",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
62
|
};
|
package/dist/handler.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Handler, HandlerExtendedResourceSettings } from
|
|
2
|
-
import { InstantiateResourceParams, InstantiateResourceRes } from
|
|
3
|
-
import { WorkflowNodeTypeResource } from
|
|
4
|
-
import { WorkflowNodeTypeSpecificResourceSettings } from
|
|
1
|
+
import { Handler, HandlerExtendedResourceSettings } from "@ldsg/handler";
|
|
2
|
+
import { InstantiateResourceParams, InstantiateResourceRes } from "@ldsg/resource";
|
|
3
|
+
import { WorkflowNodeTypeResource } from "./resource";
|
|
4
|
+
import { WorkflowNodeTypeSpecificResourceSettings } from "./types";
|
|
5
5
|
export declare const handler: Handler<InstantiateResourceParams<HandlerExtendedResourceSettings<WorkflowNodeTypeSpecificResourceSettings>>, InstantiateResourceRes<WorkflowNodeTypeResource>>;
|
|
6
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,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,wCAAwC,EAAE,MAAM,SAAS,CAAC;AAEnE,eAAO,MAAM,OAAO,EAAE,OAAO,CAC3B,yBAAyB,
|
|
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,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,wCAAwC,EAAE,MAAM,SAAS,CAAC;AAEnE,eAAO,MAAM,OAAO,EAAE,OAAO,CAC3B,yBAAyB,CACvB,+BAA+B,CAAC,wCAAwC,CAAC,CAC1E,EACD,sBAAsB,CAAC,wBAAwB,CAAC,CAC3B,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export * from "./constants";
|
|
2
|
+
export * from "./handler";
|
|
3
|
+
export * from "./instantiate-resource";
|
|
4
|
+
export * from "./resource";
|
|
5
|
+
export * from "./resource-records";
|
|
6
|
+
export * from "./types";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HandlerExtendedResourceSettings } from
|
|
2
|
-
import { InstantiateResource } from
|
|
3
|
-
import { WorkflowNodeTypeResource } from
|
|
4
|
-
import { WorkflowNodeTypeSpecificResourceSettings } from
|
|
1
|
+
import { HandlerExtendedResourceSettings } from "@ldsg/handler";
|
|
2
|
+
import { InstantiateResource } from "@ldsg/resource";
|
|
3
|
+
import { WorkflowNodeTypeResource } from "./resource";
|
|
4
|
+
import { WorkflowNodeTypeSpecificResourceSettings } from "./types";
|
|
5
5
|
export declare const instantiateResource: InstantiateResource<HandlerExtendedResourceSettings<WorkflowNodeTypeSpecificResourceSettings>, WorkflowNodeTypeResource>;
|
|
6
6
|
//# sourceMappingURL=instantiate-resource.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HandlerSpecificResourceSettings } from
|
|
2
|
-
import { ResourceRecord } from
|
|
1
|
+
import { HandlerSpecificResourceSettings } from "@ldsg/handler";
|
|
2
|
+
import { ResourceRecord } from "@ldsg/types";
|
|
3
3
|
export declare const endWorkflowNodeTypeHandlerResourceRecord: ResourceRecord<HandlerSpecificResourceSettings>;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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;AAI7C,eAAO,MAAM,wCAAwC,EAAE,cAAc,CAAC,+BAA+B,
|
|
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,CAWlG,CAAC"}
|
|
@@ -10,9 +10,9 @@ exports.endWorkflowNodeTypeHandlerResourceRecord = {
|
|
|
10
10
|
kind: handler_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
11
11
|
parentId: constants_1.ROOT_RESOURCE_ID,
|
|
12
12
|
settings: {
|
|
13
|
-
title:
|
|
14
|
-
code:
|
|
13
|
+
title: "结束工作流节点类型处理程序",
|
|
14
|
+
code: "",
|
|
15
15
|
dependencies: [],
|
|
16
|
-
handler: handler_2.handler
|
|
17
|
-
}
|
|
16
|
+
handler: handler_2.handler,
|
|
17
|
+
},
|
|
18
18
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ResourceRecord } from
|
|
2
|
-
import { WorkflowNodeTypeSpecificResourceSettings } from
|
|
3
|
-
export * from
|
|
1
|
+
import { ResourceRecord } from "@ldsg/types";
|
|
2
|
+
import { WorkflowNodeTypeSpecificResourceSettings } from "../../types";
|
|
3
|
+
export * from "./handler";
|
|
4
4
|
export declare const endWorkflowNodeTypeResourceRecord: ResourceRecord<WorkflowNodeTypeSpecificResourceSettings>;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resource-records/end/index.ts"],"names":[],"mappings":"AACA,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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resource-records/end/index.ts"],"names":[],"mappings":"AACA,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,CASpG,CAAC"}
|
|
@@ -25,7 +25,7 @@ exports.endWorkflowNodeTypeResourceRecord = {
|
|
|
25
25
|
kind: constants_2.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
26
26
|
parentId: constants_1.ROOT_RESOURCE_ID,
|
|
27
27
|
settings: {
|
|
28
|
-
title:
|
|
29
|
-
handlerResourceId: constants_3.END_WORKFLOW_NODE_TYPE_HANDLER_RESOURCE_ID
|
|
30
|
-
}
|
|
28
|
+
title: "结束工作流节点类型",
|
|
29
|
+
handlerResourceId: constants_3.END_WORKFLOW_NODE_TYPE_HANDLER_RESOURCE_ID,
|
|
30
|
+
},
|
|
31
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resource-records/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resource-records/index.ts"],"names":[],"mappings":"AAMA,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AAExB,eAAO,MAAM,mCAAmC;;IAK/C,CAAC"}
|
|
@@ -23,5 +23,5 @@ exports.WORKFLOW_NODE_TYPE_RESOURCE_RECORDS = [
|
|
|
23
23
|
end_1.endWorkflowNodeTypeResourceRecord,
|
|
24
24
|
end_1.endWorkflowNodeTypeHandlerResourceRecord,
|
|
25
25
|
start_1.startWorkflowNodeTypeResourceRecord,
|
|
26
|
-
start_1.startWorkflowNodeTypeHandlerResourceRecord
|
|
26
|
+
start_1.startWorkflowNodeTypeHandlerResourceRecord,
|
|
27
27
|
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HandlerSpecificResourceSettings } from
|
|
2
|
-
import { ResourceRecord } from
|
|
1
|
+
import { HandlerSpecificResourceSettings } from "@ldsg/handler";
|
|
2
|
+
import { ResourceRecord } from "@ldsg/types";
|
|
3
3
|
export declare const startWorkflowNodeTypeHandlerResourceRecord: ResourceRecord<HandlerSpecificResourceSettings>;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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;AAI7C,eAAO,MAAM,0CAA0C,EAAE,cAAc,CAAC,+BAA+B,
|
|
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,CAWpG,CAAC"}
|
|
@@ -10,9 +10,9 @@ exports.startWorkflowNodeTypeHandlerResourceRecord = {
|
|
|
10
10
|
kind: handler_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
11
11
|
parentId: constants_1.ROOT_RESOURCE_ID,
|
|
12
12
|
settings: {
|
|
13
|
-
title:
|
|
14
|
-
code:
|
|
13
|
+
title: "开始工作流节点类型处理程序",
|
|
14
|
+
code: "",
|
|
15
15
|
dependencies: [],
|
|
16
|
-
handler: handler_2.handler
|
|
17
|
-
}
|
|
16
|
+
handler: handler_2.handler,
|
|
17
|
+
},
|
|
18
18
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ResourceRecord } from
|
|
2
|
-
import { WorkflowNodeTypeSpecificResourceSettings } from
|
|
3
|
-
export * from
|
|
1
|
+
import { ResourceRecord } from "@ldsg/types";
|
|
2
|
+
import { WorkflowNodeTypeSpecificResourceSettings } from "../../types";
|
|
3
|
+
export * from "./handler";
|
|
4
4
|
export declare const startWorkflowNodeTypeResourceRecord: ResourceRecord<WorkflowNodeTypeSpecificResourceSettings>;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resource-records/start/index.ts"],"names":[],"mappings":"AACA,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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resource-records/start/index.ts"],"names":[],"mappings":"AACA,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,CAStG,CAAC"}
|
|
@@ -25,7 +25,7 @@ exports.startWorkflowNodeTypeResourceRecord = {
|
|
|
25
25
|
kind: constants_2.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
26
26
|
parentId: constants_1.ROOT_RESOURCE_ID,
|
|
27
27
|
settings: {
|
|
28
|
-
title:
|
|
29
|
-
handlerResourceId: constants_3.START_WORKFLOW_NODE_TYPE_HANDLER_RESOURCE_ID
|
|
30
|
-
}
|
|
28
|
+
title: "开始工作流节点类型",
|
|
29
|
+
handlerResourceId: constants_3.START_WORKFLOW_NODE_TYPE_HANDLER_RESOURCE_ID,
|
|
30
|
+
},
|
|
31
31
|
};
|
package/dist/resource.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HandlerExtendedResource } from
|
|
2
|
-
import { WorkflowNodeTypeInfo, WorkflowNodeTypeSpecificResourceSettings } from
|
|
1
|
+
import { HandlerExtendedResource } from "@ldsg/handler";
|
|
2
|
+
import { WorkflowNodeTypeInfo, WorkflowNodeTypeSpecificResourceSettings } from "./types";
|
|
3
3
|
export interface GetWorkflowNodeTypeInfoRes {
|
|
4
4
|
workflowNodeTypeInfo: WorkflowNodeTypeInfo;
|
|
5
5
|
}
|
package/dist/resource.js
CHANGED
|
@@ -9,8 +9,8 @@ class WorkflowNodeTypeResource extends handler_1.HandlerExtendedResource {
|
|
|
9
9
|
const { executeExtendedHandler } = this;
|
|
10
10
|
const res = {
|
|
11
11
|
workflowNodeTypeInfo: {
|
|
12
|
-
execute: executeExtendedHandler
|
|
13
|
-
}
|
|
12
|
+
execute: executeExtendedHandler,
|
|
13
|
+
},
|
|
14
14
|
};
|
|
15
15
|
return res;
|
|
16
16
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./resource-extended-handler";
|
|
2
|
+
export * from "./specific-resource-settings";
|
|
3
|
+
export * from "./workflow-node-type";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResourceExtendedHandler } from
|
|
2
|
-
import { WorkflowNodeTypeExecuteParams, WorkflowNodeTypeExecuteRes } from
|
|
1
|
+
import { ResourceExtendedHandler } from "@ldsg/handler";
|
|
2
|
+
import { WorkflowNodeTypeExecuteParams, WorkflowNodeTypeExecuteRes } from "./workflow-node-type";
|
|
3
3
|
export type WorkflowNodeTypeResourceExtendedHandler<InputVariables = any, OutputVariables = any, Context = any> = ResourceExtendedHandler<WorkflowNodeTypeExecuteParams<InputVariables, Context>, WorkflowNodeTypeExecuteRes<OutputVariables>>;
|
|
4
4
|
//# sourceMappingURL=resource-extended-handler.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const WorkflowNodeTypeSpecificResourceSettingsSchema: z.ZodObject<{}, z.core.$catchall<z.ZodAny>>;
|
|
3
3
|
export declare const SpecificResourceSettingsSchema: z.ZodObject<{}, z.core.$catchall<z.ZodAny>>;
|
|
4
4
|
export type WorkflowNodeTypeSpecificResourceSettings = z.infer<typeof WorkflowNodeTypeSpecificResourceSettingsSchema>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WorkflowNodeExecuteParams, WorkflowNodeExecuteRes } from
|
|
1
|
+
import { WorkflowNodeExecuteParams, WorkflowNodeExecuteRes } from "@ldsg/workflow";
|
|
2
2
|
export interface WorkflowNodeTypeExecuteParams<InputVariables = any, Context = any> extends WorkflowNodeExecuteParams<InputVariables, Context> {
|
|
3
3
|
}
|
|
4
4
|
export interface WorkflowNodeTypeExecuteRes<OutputVariables = any> extends WorkflowNodeExecuteRes<OutputVariables> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-node-type.d.ts","sourceRoot":"","sources":["../../src/types/workflow-node-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,MAAM,WAAW,6BAA6B,
|
|
1
|
+
{"version":3,"file":"workflow-node-type.d.ts","sourceRoot":"","sources":["../../src/types/workflow-node-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,MAAM,WAAW,6BAA6B,CAC5C,cAAc,GAAG,GAAG,EACpB,OAAO,GAAG,GAAG,CACb,SAAQ,yBAAyB,CAAC,cAAc,EAAE,OAAO,CAAC;CAAG;AAE/D,MAAM,WAAW,0BAA0B,CACzC,eAAe,GAAG,GAAG,CACrB,SAAQ,sBAAsB,CAAC,eAAe,CAAC;CAAG;AAEpD;;;GAGG;AACH,MAAM,MAAM,uBAAuB,CAAC,cAAc,GAAG,GAAG,EAAE,eAAe,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,CAChG,MAAM,EAAE,6BAA6B,CAAC,cAAc,EAAE,OAAO,CAAC,KAC3D,OAAO,CAAC,0BAA0B,CAAC,eAAe,CAAC,CAAC,CAAC;AAE1D,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,OAAO,EAAE,uBAAuB,CAAC;CAClC"}
|
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.32",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,31 +12,34 @@
|
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"json-schema": "0.4.0",
|
|
15
|
-
"jsonata": "^2.0.6",
|
|
16
15
|
"lodash": "^4.17.21",
|
|
17
16
|
"zod": "^4.1.11",
|
|
18
|
-
"@ldsg/constants": "0.3.
|
|
19
|
-
"@ldsg/handler": "0.3.
|
|
20
|
-
"@ldsg/
|
|
21
|
-
"@ldsg/resource
|
|
22
|
-
"@ldsg/
|
|
17
|
+
"@ldsg/constants": "0.3.32",
|
|
18
|
+
"@ldsg/handler": "0.3.32",
|
|
19
|
+
"@ldsg/workflow": "0.3.32",
|
|
20
|
+
"@ldsg/resource": "0.3.32",
|
|
21
|
+
"@ldsg/resource-definition": "0.3.32"
|
|
23
22
|
},
|
|
24
23
|
"devDependencies": {
|
|
25
24
|
"@types/jest": "^29.5.2",
|
|
26
25
|
"@types/json-schema": "^7.0.15",
|
|
27
26
|
"@types/lodash": "^4.14.202",
|
|
28
27
|
"jest": "^29.5.0",
|
|
28
|
+
"oxfmt": "latest",
|
|
29
|
+
"oxlint": "latest",
|
|
29
30
|
"supertest": "^6.3.4",
|
|
30
31
|
"ts-jest": "^29.1.5",
|
|
31
32
|
"ts-node": "^10.9.2",
|
|
32
33
|
"typescript": "^5.8.3",
|
|
33
|
-
"@ldsg/types": "0.3.
|
|
34
|
+
"@ldsg/types": "0.3.32"
|
|
34
35
|
},
|
|
35
36
|
"publishConfig": {
|
|
36
37
|
"access": "public"
|
|
37
38
|
},
|
|
38
39
|
"scripts": {
|
|
39
40
|
"build": "tsc --project tsconfig.build.json",
|
|
40
|
-
"clean": "rm -rf dist"
|
|
41
|
+
"clean": "rm -rf dist",
|
|
42
|
+
"format": "oxfmt --write src/",
|
|
43
|
+
"lint": "oxlint src/"
|
|
41
44
|
}
|
|
42
45
|
}
|