@byted-apaas/server-sdk-node 1.1.15-beta.18 → 1.1.15-beta.19
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IApprovalInstance, IApprovalInstanceListOptions, IApprovalInstanceList, IGetApprovalInstanceOptions } from '../../../request/structs';
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function newFlow(context: any): Flow;
|
|
3
3
|
export interface Flow {
|
|
4
4
|
/**
|
|
5
5
|
* 获取流程实例人工任务详情列表
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.newFlow = void 0;
|
|
4
4
|
const flow_1 = require("./impl/flow");
|
|
5
|
-
function
|
|
5
|
+
function newFlow(context) {
|
|
6
6
|
return new flow_1.Flow(context?.flow);
|
|
7
7
|
}
|
|
8
|
-
exports.
|
|
8
|
+
exports.newFlow = newFlow;
|
package/hooks/hooks.js
CHANGED
|
@@ -95,7 +95,7 @@ function mountApplication(context) {
|
|
|
95
95
|
}
|
|
96
96
|
global.application.constants.metaType = metadataApi.metaType();
|
|
97
97
|
// flow
|
|
98
|
-
global.application.flow = (0, flow_1.
|
|
98
|
+
global.application.flow = (0, flow_1.newFlow)(context);
|
|
99
99
|
// operator
|
|
100
100
|
global.application.operator = new operator_1.Operator();
|
|
101
101
|
global.application.integration = new integration_1._Integration();
|