@coding-flow/flow-types 0.0.31 → 0.0.33

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.
@@ -81,6 +81,15 @@ export interface FlowOperator {
81
81
  id: number;
82
82
  name: string;
83
83
  }
84
+ /**
85
+ * 流程记录操作人对象
86
+ */
87
+ export interface ProcessNodeOperator {
88
+ userId: number;
89
+ name: string;
90
+ flowManager: boolean;
91
+ [key: string]: any;
92
+ }
84
93
  /**
85
94
  * 流程操作记录对象
86
95
  */
@@ -120,16 +129,19 @@ export interface FlowApprovalOperator {
120
129
  signKey: string;
121
130
  approveTime: number;
122
131
  actionName: string;
123
- flowOperator: FlowOperator;
132
+ flowOperator: ProcessNodeOperator;
124
133
  }
125
134
  /**
126
135
  * 流程节点对象
127
136
  */
128
137
  export interface ProcessNode {
138
+ id: string;
129
139
  nodeId: string;
130
140
  nodeName: string;
131
141
  nodeType: string;
132
- state: number;
142
+ approveStrategy: 'SEQUENCE' | 'MERGE' | 'ANY' | 'RANDOM_ONE';
143
+ approveState: 'PASS' | 'PROCESSING' | 'PENDING' | 'ERROR';
144
+ operatorStrategy: 'OPERATOR_LIST' | 'INITIATOR_SELECT' | 'APPROVER_SELECT';
133
145
  operators: FlowApprovalOperator[];
134
146
  }
135
147
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coding-flow/flow-types",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "flow-engine types",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -32,7 +32,7 @@
32
32
  "react-dom": ">=18"
33
33
  },
34
34
  "dependencies": {
35
- "@coding-flow/flow-core": "0.0.31"
35
+ "@coding-flow/flow-core": "0.0.33"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "rslib build",