@soonspacejs/plugin-cps-soonmanager 2.9.11 → 2.9.12
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/index.d.ts +39 -2
- package/dist/index.esm.js +2 -2
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ declare class CpsSoonmanagerPlugin {
|
|
|
49
49
|
/**
|
|
50
50
|
* 流程数据
|
|
51
51
|
*/
|
|
52
|
-
flowData: any[];
|
|
52
|
+
flowData: any[] | null;
|
|
53
53
|
constructor(ssp: SoonSpace, option?: ConstructorOptions);
|
|
54
54
|
/**
|
|
55
55
|
* 设置 key
|
|
@@ -159,7 +159,44 @@ declare class CpsSoonmanagerPlugin {
|
|
|
159
159
|
/**
|
|
160
160
|
* 加载流程数据
|
|
161
161
|
*/
|
|
162
|
-
loadFlowData(): Promise<
|
|
162
|
+
loadFlowData(): Promise<{
|
|
163
|
+
nodes: {
|
|
164
|
+
inputs: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
165
|
+
outputs: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
166
|
+
isStartNode: boolean;
|
|
167
|
+
id: string;
|
|
168
|
+
name: string;
|
|
169
|
+
flowId: string;
|
|
170
|
+
type: import("@soonflow/plugin-soonmanager2-sync/dist/interface").FlowNodeTypesEnum;
|
|
171
|
+
config: string;
|
|
172
|
+
posX: number;
|
|
173
|
+
posY: number;
|
|
174
|
+
sortNum: number;
|
|
175
|
+
enable: boolean;
|
|
176
|
+
handlerList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
177
|
+
}[];
|
|
178
|
+
edges: {
|
|
179
|
+
sourceNodeHandleId: string;
|
|
180
|
+
targetNodeHandleId: string;
|
|
181
|
+
id: string;
|
|
182
|
+
name: string;
|
|
183
|
+
type: string;
|
|
184
|
+
sourceHandlerId: string;
|
|
185
|
+
sourceNodeId: string;
|
|
186
|
+
targetHandlerId: string;
|
|
187
|
+
targetNodeId: string;
|
|
188
|
+
enable: boolean;
|
|
189
|
+
}[];
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
applyType: "AUTO" | "MANUAL";
|
|
193
|
+
pid: string | null;
|
|
194
|
+
nodeData: {
|
|
195
|
+
nodeList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Node[];
|
|
196
|
+
lineList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Edge[];
|
|
197
|
+
};
|
|
198
|
+
subFlows: import("@soonflow/plugin-soonmanager2-sync/dist/interface").FlowSyncData[];
|
|
199
|
+
}[]>;
|
|
163
200
|
/**
|
|
164
201
|
* 执行流程
|
|
165
202
|
* @param id 流程 id
|