@wenlarge/communication 1.1.17 → 1.1.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.
|
@@ -44,28 +44,10 @@ export interface TriggerWorkflowRequest {
|
|
|
44
44
|
}
|
|
45
45
|
export interface TriggerNodeRequest {
|
|
46
46
|
nodeId: string;
|
|
47
|
-
}
|
|
48
|
-
export interface CreateWorkflowNodeRequest {
|
|
49
|
-
id: string;
|
|
50
47
|
workflowId: string;
|
|
51
|
-
name: string;
|
|
52
|
-
positionX: number;
|
|
53
|
-
positionY: number;
|
|
54
|
-
inputSchema?: {
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
} | undefined;
|
|
57
|
-
outputSchema?: {
|
|
58
|
-
[key: string]: any;
|
|
59
|
-
} | undefined;
|
|
60
|
-
config?: {
|
|
61
|
-
[key: string]: any;
|
|
62
|
-
} | undefined;
|
|
63
|
-
nodeTypeId: string;
|
|
64
48
|
}
|
|
65
|
-
export interface
|
|
49
|
+
export interface WorkflowNodeRequest {
|
|
66
50
|
id: string;
|
|
67
|
-
name: string;
|
|
68
|
-
nodeTypeId: string;
|
|
69
51
|
positionX: number;
|
|
70
52
|
positionY: number;
|
|
71
53
|
inputSchema?: {
|
|
@@ -77,29 +59,16 @@ export interface UpdateWorkflowNodeRequest {
|
|
|
77
59
|
config?: {
|
|
78
60
|
[key: string]: any;
|
|
79
61
|
} | undefined;
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
export interface DeleteWorkflowNodeRequest {
|
|
83
|
-
id: string;
|
|
62
|
+
nodeTypeId: string;
|
|
84
63
|
}
|
|
85
64
|
export interface FindManyWorkflowNodeRequest {
|
|
86
65
|
workflowId: string;
|
|
87
|
-
skip: number;
|
|
88
|
-
take: number;
|
|
89
66
|
}
|
|
90
67
|
export interface FindManyWorkflowNodeResponse {
|
|
91
68
|
data: WorkflowNodeResponse[];
|
|
92
|
-
total: number;
|
|
93
|
-
}
|
|
94
|
-
export interface FindFirstWorkflowNodeRequest {
|
|
95
|
-
id: string;
|
|
96
|
-
}
|
|
97
|
-
export interface FindFirstWorkflowNodeResponse {
|
|
98
|
-
node?: WorkflowNodeResponse | undefined;
|
|
99
69
|
}
|
|
100
70
|
export interface WorkflowNodeResponse {
|
|
101
71
|
id: string;
|
|
102
|
-
name: string;
|
|
103
72
|
nodeTypeId: string;
|
|
104
73
|
positionX: number;
|
|
105
74
|
positionY: number;
|
|
@@ -114,7 +83,6 @@ export interface WorkflowNodeResponse {
|
|
|
114
83
|
} | undefined;
|
|
115
84
|
createdAt: string;
|
|
116
85
|
updatedAt: string;
|
|
117
|
-
workflowId: string;
|
|
118
86
|
}
|
|
119
87
|
export interface WorkflowNodeConnection {
|
|
120
88
|
id: string;
|
|
@@ -127,7 +95,8 @@ export interface WorkflowNodeConnection {
|
|
|
127
95
|
}
|
|
128
96
|
export interface SaveWorkflowBatchRequest {
|
|
129
97
|
workflowId: string;
|
|
130
|
-
|
|
98
|
+
workflowName: string;
|
|
99
|
+
nodes: WorkflowNodeRequest[];
|
|
131
100
|
connections: UpdateBatchConnection[];
|
|
132
101
|
}
|
|
133
102
|
export interface UpdateBatchConnection {
|
|
@@ -160,14 +129,19 @@ export interface UpdateWorkflowStatusRequest {
|
|
|
160
129
|
status: WorkflowStatus;
|
|
161
130
|
}
|
|
162
131
|
export interface GetNodeExecutionLogRequest {
|
|
163
|
-
|
|
132
|
+
nodeIds: string[];
|
|
164
133
|
workflowId: string;
|
|
134
|
+
skip: number;
|
|
135
|
+
take: number;
|
|
165
136
|
}
|
|
166
137
|
export interface GetExecutionLogResponse {
|
|
167
138
|
logs: ExecutionLogEntry[];
|
|
139
|
+
total: number;
|
|
168
140
|
}
|
|
169
141
|
export interface GetWorkflowExecutionLogRequest {
|
|
170
142
|
workflowId: string;
|
|
143
|
+
skip: number;
|
|
144
|
+
take: number;
|
|
171
145
|
}
|
|
172
146
|
export interface ExecutionLogEntry {
|
|
173
147
|
nodeId: string;
|
|
@@ -193,11 +167,7 @@ export interface WorkflowServiceClient {
|
|
|
193
167
|
findFirst(request: FindFirstWorkflowRequest, metadata?: Metadata): Observable<WorkflowResponse>;
|
|
194
168
|
triggerWorkflow(request: TriggerWorkflowRequest, metadata?: Metadata): Observable<Empty>;
|
|
195
169
|
triggerNode(request: TriggerNodeRequest, metadata?: Metadata): Observable<Empty>;
|
|
196
|
-
createWorkflowNode(request: CreateWorkflowNodeRequest, metadata?: Metadata): Observable<WorkflowNodeResponse>;
|
|
197
170
|
findManyWorkflowNode(request: FindManyWorkflowNodeRequest, metadata?: Metadata): Observable<FindManyWorkflowNodeResponse>;
|
|
198
|
-
findFirstWorkflowNode(request: FindFirstWorkflowNodeRequest, metadata?: Metadata): Observable<FindFirstWorkflowNodeResponse>;
|
|
199
|
-
updateWorkflowNode(request: UpdateWorkflowNodeRequest, metadata?: Metadata): Observable<WorkflowNodeResponse>;
|
|
200
|
-
deleteWorkflowNode(request: DeleteWorkflowNodeRequest, metadata?: Metadata): Observable<Empty>;
|
|
201
171
|
saveWorkflowBatch(request: SaveWorkflowBatchRequest, metadata?: Metadata): Observable<Empty>;
|
|
202
172
|
findWorkflowNodeTypes(request: Empty, metadata?: Metadata): Observable<FindManyWorkflowNodeTypeResponse>;
|
|
203
173
|
findConnections(request: FindConnectionsRequest, metadata?: Metadata): Observable<FindConnectionsResponse>;
|
|
@@ -213,11 +183,7 @@ export interface WorkflowServiceController {
|
|
|
213
183
|
findFirst(request: FindFirstWorkflowRequest, metadata?: Metadata): Promise<WorkflowResponse> | Observable<WorkflowResponse> | WorkflowResponse;
|
|
214
184
|
triggerWorkflow(request: TriggerWorkflowRequest, metadata?: Metadata): void;
|
|
215
185
|
triggerNode(request: TriggerNodeRequest, metadata?: Metadata): void;
|
|
216
|
-
createWorkflowNode(request: CreateWorkflowNodeRequest, metadata?: Metadata): Promise<WorkflowNodeResponse> | Observable<WorkflowNodeResponse> | WorkflowNodeResponse;
|
|
217
186
|
findManyWorkflowNode(request: FindManyWorkflowNodeRequest, metadata?: Metadata): Promise<FindManyWorkflowNodeResponse> | Observable<FindManyWorkflowNodeResponse> | FindManyWorkflowNodeResponse;
|
|
218
|
-
findFirstWorkflowNode(request: FindFirstWorkflowNodeRequest, metadata?: Metadata): Promise<FindFirstWorkflowNodeResponse> | Observable<FindFirstWorkflowNodeResponse> | FindFirstWorkflowNodeResponse;
|
|
219
|
-
updateWorkflowNode(request: UpdateWorkflowNodeRequest, metadata?: Metadata): Promise<WorkflowNodeResponse> | Observable<WorkflowNodeResponse> | WorkflowNodeResponse;
|
|
220
|
-
deleteWorkflowNode(request: DeleteWorkflowNodeRequest, metadata?: Metadata): void;
|
|
221
187
|
saveWorkflowBatch(request: SaveWorkflowBatchRequest, metadata?: Metadata): void;
|
|
222
188
|
findWorkflowNodeTypes(request: Empty, metadata?: Metadata): Promise<FindManyWorkflowNodeTypeResponse> | Observable<FindManyWorkflowNodeTypeResponse> | FindManyWorkflowNodeTypeResponse;
|
|
223
189
|
findConnections(request: FindConnectionsRequest, metadata?: Metadata): Promise<FindConnectionsResponse> | Observable<FindConnectionsResponse> | FindConnectionsResponse;
|
|
@@ -29,11 +29,7 @@ function WorkflowServiceControllerMethods() {
|
|
|
29
29
|
"findFirst",
|
|
30
30
|
"triggerWorkflow",
|
|
31
31
|
"triggerNode",
|
|
32
|
-
"createWorkflowNode",
|
|
33
32
|
"findManyWorkflowNode",
|
|
34
|
-
"findFirstWorkflowNode",
|
|
35
|
-
"updateWorkflowNode",
|
|
36
|
-
"deleteWorkflowNode",
|
|
37
33
|
"saveWorkflowBatch",
|
|
38
34
|
"findWorkflowNodeTypes",
|
|
39
35
|
"findConnections",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Struct } from "../generated/google/protobuf/struct";
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function unwrapStruct(fields: Record<string, any>): Record<string, any>;
|
|
3
3
|
export declare function wrapStruct(obj: Record<string, any> | null | undefined): Struct | undefined;
|
|
@@ -1,44 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.unwrapStruct = unwrapStruct;
|
|
4
4
|
exports.wrapStruct = wrapStruct;
|
|
5
5
|
const struct_1 = require("../generated/google/protobuf/struct");
|
|
6
|
-
function
|
|
7
|
-
var _a, _b
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
function unwrapStruct(fields) {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
const result = {};
|
|
9
|
+
for (const key in fields) {
|
|
10
|
+
const value = fields[key];
|
|
11
|
+
if ("stringValue" in value)
|
|
12
|
+
result[key] = value.stringValue;
|
|
13
|
+
else if ("numberValue" in value)
|
|
14
|
+
result[key] = value.numberValue;
|
|
15
|
+
else if ("boolValue" in value)
|
|
16
|
+
result[key] = value.boolValue;
|
|
17
|
+
else if ("structValue" in value)
|
|
18
|
+
result[key] = unwrapStruct((_a = value.structValue.fields) !== null && _a !== void 0 ? _a : {});
|
|
19
|
+
else if ("listValue" in value)
|
|
20
|
+
result[key] = (_b = value.listValue.values) === null || _b === void 0 ? void 0 : _b.map((v) => unwrapStruct({ tmp: v }).tmp);
|
|
21
|
+
else
|
|
22
|
+
result[key] = null;
|
|
12
23
|
}
|
|
13
|
-
|
|
14
|
-
return value;
|
|
15
|
-
}
|
|
16
|
-
if ("stringValue" in value)
|
|
17
|
-
return value.stringValue;
|
|
18
|
-
if ("numberValue" in value)
|
|
19
|
-
return value.numberValue;
|
|
20
|
-
if ("boolValue" in value)
|
|
21
|
-
return value.boolValue;
|
|
22
|
-
if ("nullValue" in value)
|
|
23
|
-
return null;
|
|
24
|
-
if ("structValue" in value) {
|
|
25
|
-
return normalizeStructLike(value.structValue);
|
|
26
|
-
}
|
|
27
|
-
if ("listValue" in value) {
|
|
28
|
-
return ((_b = (_a = value.listValue) === null || _a === void 0 ? void 0 : _a.values) !== null && _b !== void 0 ? _b : []).map(normalizeStructLike);
|
|
29
|
-
}
|
|
30
|
-
if ("fields" in value) {
|
|
31
|
-
const out = {};
|
|
32
|
-
for (const [k, v] of Object.entries((_c = value.fields) !== null && _c !== void 0 ? _c : {})) {
|
|
33
|
-
out[k] = normalizeStructLike(v);
|
|
34
|
-
}
|
|
35
|
-
return out;
|
|
36
|
-
}
|
|
37
|
-
const out = {};
|
|
38
|
-
for (const [k, v] of Object.entries(value)) {
|
|
39
|
-
out[k] = normalizeStructLike(v);
|
|
40
|
-
}
|
|
41
|
-
return out;
|
|
24
|
+
return result;
|
|
42
25
|
}
|
|
43
26
|
function wrapStruct(obj) {
|
|
44
27
|
if (obj == null)
|
package/package.json
CHANGED
package/proto/workflow.proto
CHANGED
|
@@ -13,11 +13,7 @@ service WorkflowService {
|
|
|
13
13
|
rpc FindFirst (FindFirstWorkflowRequest) returns (WorkflowResponse);
|
|
14
14
|
rpc TriggerWorkflow (TriggerWorkflowRequest) returns (google.protobuf.Empty);
|
|
15
15
|
rpc TriggerNode (TriggerNodeRequest) returns (google.protobuf.Empty);
|
|
16
|
-
rpc CreateWorkflowNode (CreateWorkflowNodeRequest) returns (WorkflowNodeResponse);
|
|
17
16
|
rpc FindManyWorkflowNode (FindManyWorkflowNodeRequest) returns (FindManyWorkflowNodeResponse);
|
|
18
|
-
rpc FindFirstWorkflowNode (FindFirstWorkflowNodeRequest) returns (FindFirstWorkflowNodeResponse);
|
|
19
|
-
rpc UpdateWorkflowNode (UpdateWorkflowNodeRequest) returns (WorkflowNodeResponse);
|
|
20
|
-
rpc DeleteWorkflowNode (DeleteWorkflowNodeRequest) returns (google.protobuf.Empty);
|
|
21
17
|
rpc SaveWorkflowBatch (SaveWorkflowBatchRequest) returns (google.protobuf.Empty);
|
|
22
18
|
rpc FindWorkflowNodeTypes (google.protobuf.Empty) returns (FindManyWorkflowNodeTypeResponse);
|
|
23
19
|
rpc FindConnections (FindConnectionsRequest) returns (FindConnectionsResponse);
|
|
@@ -71,67 +67,37 @@ message TriggerWorkflowRequest{
|
|
|
71
67
|
|
|
72
68
|
message TriggerNodeRequest{
|
|
73
69
|
string nodeId = 1;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
message CreateWorkflowNodeRequest{
|
|
78
|
-
string id = 1;
|
|
79
70
|
string workflowId = 2;
|
|
80
|
-
string name = 3;
|
|
81
|
-
int32 positionX = 4;
|
|
82
|
-
int32 positionY = 5;
|
|
83
|
-
google.protobuf.Struct inputSchema = 6;
|
|
84
|
-
google.protobuf.Struct outputSchema = 7;
|
|
85
|
-
google.protobuf.Struct config = 8;
|
|
86
|
-
string nodeTypeId = 9;
|
|
87
71
|
}
|
|
88
72
|
|
|
89
|
-
message
|
|
90
|
-
string id = 1;
|
|
91
|
-
string name = 2;
|
|
92
|
-
string nodeTypeId = 3;
|
|
93
|
-
int32 positionX = 4;
|
|
94
|
-
int32 positionY=5;
|
|
95
|
-
google.protobuf.Struct inputSchema = 6;
|
|
96
|
-
google.protobuf.Struct outputSchema = 7;
|
|
97
|
-
google.protobuf.Struct config = 8;
|
|
98
|
-
string workflowId = 9;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
message DeleteWorkflowNodeRequest{
|
|
73
|
+
message WorkflowNodeRequest{
|
|
102
74
|
string id = 1;
|
|
75
|
+
int32 positionX = 2;
|
|
76
|
+
int32 positionY = 3;
|
|
77
|
+
google.protobuf.Struct inputSchema = 4;
|
|
78
|
+
google.protobuf.Struct outputSchema = 5;
|
|
79
|
+
google.protobuf.Struct config = 6;
|
|
80
|
+
string nodeTypeId = 7;
|
|
103
81
|
}
|
|
104
82
|
|
|
105
83
|
message FindManyWorkflowNodeRequest{
|
|
106
84
|
string workflowId = 1;
|
|
107
|
-
int32 skip = 2;
|
|
108
|
-
int32 take = 3;
|
|
109
85
|
}
|
|
110
86
|
|
|
111
87
|
message FindManyWorkflowNodeResponse{
|
|
112
88
|
repeated WorkflowNodeResponse data = 1;
|
|
113
|
-
int32 total = 2;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
message FindFirstWorkflowNodeRequest{
|
|
117
|
-
string id = 1;
|
|
118
|
-
}
|
|
119
|
-
message FindFirstWorkflowNodeResponse{
|
|
120
|
-
WorkflowNodeResponse node = 1;
|
|
121
89
|
}
|
|
122
90
|
|
|
123
91
|
message WorkflowNodeResponse{
|
|
124
92
|
string id = 1;
|
|
125
|
-
string
|
|
126
|
-
|
|
127
|
-
int32
|
|
128
|
-
|
|
129
|
-
google.protobuf.Struct
|
|
130
|
-
google.protobuf.Struct
|
|
131
|
-
|
|
132
|
-
string
|
|
133
|
-
string updatedAt = 10;
|
|
134
|
-
string workflowId = 11;
|
|
93
|
+
string nodeTypeId = 2;
|
|
94
|
+
int32 positionX = 3;
|
|
95
|
+
int32 positionY = 4;
|
|
96
|
+
google.protobuf.Struct inputSchema = 5;
|
|
97
|
+
google.protobuf.Struct outputSchema = 6;
|
|
98
|
+
google.protobuf.Struct config = 7;
|
|
99
|
+
string createdAt = 8;
|
|
100
|
+
string updatedAt = 9;
|
|
135
101
|
}
|
|
136
102
|
|
|
137
103
|
message WorkflowNodeConnection {
|
|
@@ -144,8 +110,9 @@ message WorkflowNodeConnection {
|
|
|
144
110
|
|
|
145
111
|
message SaveWorkflowBatchRequest {
|
|
146
112
|
string workflowId = 1;
|
|
147
|
-
|
|
148
|
-
repeated
|
|
113
|
+
string workflowName = 2;
|
|
114
|
+
repeated WorkflowNodeRequest nodes = 3;
|
|
115
|
+
repeated UpdateBatchConnection connections = 4;
|
|
149
116
|
}
|
|
150
117
|
|
|
151
118
|
message UpdateBatchConnection {
|
|
@@ -185,16 +152,21 @@ message UpdateWorkflowStatusRequest {
|
|
|
185
152
|
}
|
|
186
153
|
|
|
187
154
|
message GetNodeExecutionLogRequest {
|
|
188
|
-
string
|
|
155
|
+
repeated string nodeIds = 1;
|
|
189
156
|
string workflowId =2;
|
|
157
|
+
int32 skip = 3;
|
|
158
|
+
int32 take = 4;
|
|
190
159
|
}
|
|
191
160
|
|
|
192
161
|
message GetExecutionLogResponse {
|
|
193
162
|
repeated ExecutionLogEntry logs = 1;
|
|
163
|
+
int32 total = 2;
|
|
194
164
|
}
|
|
195
165
|
|
|
196
166
|
message GetWorkflowExecutionLogRequest{
|
|
197
167
|
string workflowId = 1;
|
|
168
|
+
int32 skip = 2;
|
|
169
|
+
int32 take = 3;
|
|
198
170
|
}
|
|
199
171
|
|
|
200
172
|
message ExecutionLogEntry {
|
|
@@ -65,58 +65,29 @@ export interface TriggerWorkflowRequest {
|
|
|
65
65
|
|
|
66
66
|
export interface TriggerNodeRequest {
|
|
67
67
|
nodeId: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface CreateWorkflowNodeRequest {
|
|
71
|
-
id: string;
|
|
72
68
|
workflowId: string;
|
|
73
|
-
name: string;
|
|
74
|
-
positionX: number;
|
|
75
|
-
positionY: number;
|
|
76
|
-
inputSchema?: { [key: string]: any } | undefined;
|
|
77
|
-
outputSchema?: { [key: string]: any } | undefined;
|
|
78
|
-
config?: { [key: string]: any } | undefined;
|
|
79
|
-
nodeTypeId: string;
|
|
80
69
|
}
|
|
81
70
|
|
|
82
|
-
export interface
|
|
71
|
+
export interface WorkflowNodeRequest {
|
|
83
72
|
id: string;
|
|
84
|
-
name: string;
|
|
85
|
-
nodeTypeId: string;
|
|
86
73
|
positionX: number;
|
|
87
74
|
positionY: number;
|
|
88
75
|
inputSchema?: { [key: string]: any } | undefined;
|
|
89
76
|
outputSchema?: { [key: string]: any } | undefined;
|
|
90
77
|
config?: { [key: string]: any } | undefined;
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface DeleteWorkflowNodeRequest {
|
|
95
|
-
id: string;
|
|
78
|
+
nodeTypeId: string;
|
|
96
79
|
}
|
|
97
80
|
|
|
98
81
|
export interface FindManyWorkflowNodeRequest {
|
|
99
82
|
workflowId: string;
|
|
100
|
-
skip: number;
|
|
101
|
-
take: number;
|
|
102
83
|
}
|
|
103
84
|
|
|
104
85
|
export interface FindManyWorkflowNodeResponse {
|
|
105
86
|
data: WorkflowNodeResponse[];
|
|
106
|
-
total: number;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export interface FindFirstWorkflowNodeRequest {
|
|
110
|
-
id: string;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export interface FindFirstWorkflowNodeResponse {
|
|
114
|
-
node?: WorkflowNodeResponse | undefined;
|
|
115
87
|
}
|
|
116
88
|
|
|
117
89
|
export interface WorkflowNodeResponse {
|
|
118
90
|
id: string;
|
|
119
|
-
name: string;
|
|
120
91
|
nodeTypeId: string;
|
|
121
92
|
positionX: number;
|
|
122
93
|
positionY: number;
|
|
@@ -125,7 +96,6 @@ export interface WorkflowNodeResponse {
|
|
|
125
96
|
config?: { [key: string]: any } | undefined;
|
|
126
97
|
createdAt: string;
|
|
127
98
|
updatedAt: string;
|
|
128
|
-
workflowId: string;
|
|
129
99
|
}
|
|
130
100
|
|
|
131
101
|
export interface WorkflowNodeConnection {
|
|
@@ -138,7 +108,8 @@ export interface WorkflowNodeConnection {
|
|
|
138
108
|
|
|
139
109
|
export interface SaveWorkflowBatchRequest {
|
|
140
110
|
workflowId: string;
|
|
141
|
-
|
|
111
|
+
workflowName: string;
|
|
112
|
+
nodes: WorkflowNodeRequest[];
|
|
142
113
|
connections: UpdateBatchConnection[];
|
|
143
114
|
}
|
|
144
115
|
|
|
@@ -174,16 +145,21 @@ export interface UpdateWorkflowStatusRequest {
|
|
|
174
145
|
}
|
|
175
146
|
|
|
176
147
|
export interface GetNodeExecutionLogRequest {
|
|
177
|
-
|
|
148
|
+
nodeIds: string[];
|
|
178
149
|
workflowId: string;
|
|
150
|
+
skip: number;
|
|
151
|
+
take: number;
|
|
179
152
|
}
|
|
180
153
|
|
|
181
154
|
export interface GetExecutionLogResponse {
|
|
182
155
|
logs: ExecutionLogEntry[];
|
|
156
|
+
total: number;
|
|
183
157
|
}
|
|
184
158
|
|
|
185
159
|
export interface GetWorkflowExecutionLogRequest {
|
|
186
160
|
workflowId: string;
|
|
161
|
+
skip: number;
|
|
162
|
+
take: number;
|
|
187
163
|
}
|
|
188
164
|
|
|
189
165
|
export interface ExecutionLogEntry {
|
|
@@ -215,22 +191,11 @@ export interface WorkflowServiceClient {
|
|
|
215
191
|
|
|
216
192
|
triggerNode(request: TriggerNodeRequest, metadata?: Metadata): Observable<Empty>;
|
|
217
193
|
|
|
218
|
-
createWorkflowNode(request: CreateWorkflowNodeRequest, metadata?: Metadata): Observable<WorkflowNodeResponse>;
|
|
219
|
-
|
|
220
194
|
findManyWorkflowNode(
|
|
221
195
|
request: FindManyWorkflowNodeRequest,
|
|
222
196
|
metadata?: Metadata,
|
|
223
197
|
): Observable<FindManyWorkflowNodeResponse>;
|
|
224
198
|
|
|
225
|
-
findFirstWorkflowNode(
|
|
226
|
-
request: FindFirstWorkflowNodeRequest,
|
|
227
|
-
metadata?: Metadata,
|
|
228
|
-
): Observable<FindFirstWorkflowNodeResponse>;
|
|
229
|
-
|
|
230
|
-
updateWorkflowNode(request: UpdateWorkflowNodeRequest, metadata?: Metadata): Observable<WorkflowNodeResponse>;
|
|
231
|
-
|
|
232
|
-
deleteWorkflowNode(request: DeleteWorkflowNodeRequest, metadata?: Metadata): Observable<Empty>;
|
|
233
|
-
|
|
234
199
|
saveWorkflowBatch(request: SaveWorkflowBatchRequest, metadata?: Metadata): Observable<Empty>;
|
|
235
200
|
|
|
236
201
|
findWorkflowNodeTypes(request: Empty, metadata?: Metadata): Observable<FindManyWorkflowNodeTypeResponse>;
|
|
@@ -274,28 +239,11 @@ export interface WorkflowServiceController {
|
|
|
274
239
|
|
|
275
240
|
triggerNode(request: TriggerNodeRequest, metadata?: Metadata): void;
|
|
276
241
|
|
|
277
|
-
createWorkflowNode(
|
|
278
|
-
request: CreateWorkflowNodeRequest,
|
|
279
|
-
metadata?: Metadata,
|
|
280
|
-
): Promise<WorkflowNodeResponse> | Observable<WorkflowNodeResponse> | WorkflowNodeResponse;
|
|
281
|
-
|
|
282
242
|
findManyWorkflowNode(
|
|
283
243
|
request: FindManyWorkflowNodeRequest,
|
|
284
244
|
metadata?: Metadata,
|
|
285
245
|
): Promise<FindManyWorkflowNodeResponse> | Observable<FindManyWorkflowNodeResponse> | FindManyWorkflowNodeResponse;
|
|
286
246
|
|
|
287
|
-
findFirstWorkflowNode(
|
|
288
|
-
request: FindFirstWorkflowNodeRequest,
|
|
289
|
-
metadata?: Metadata,
|
|
290
|
-
): Promise<FindFirstWorkflowNodeResponse> | Observable<FindFirstWorkflowNodeResponse> | FindFirstWorkflowNodeResponse;
|
|
291
|
-
|
|
292
|
-
updateWorkflowNode(
|
|
293
|
-
request: UpdateWorkflowNodeRequest,
|
|
294
|
-
metadata?: Metadata,
|
|
295
|
-
): Promise<WorkflowNodeResponse> | Observable<WorkflowNodeResponse> | WorkflowNodeResponse;
|
|
296
|
-
|
|
297
|
-
deleteWorkflowNode(request: DeleteWorkflowNodeRequest, metadata?: Metadata): void;
|
|
298
|
-
|
|
299
247
|
saveWorkflowBatch(request: SaveWorkflowBatchRequest, metadata?: Metadata): void;
|
|
300
248
|
|
|
301
249
|
findWorkflowNodeTypes(
|
|
@@ -334,11 +282,7 @@ export function WorkflowServiceControllerMethods() {
|
|
|
334
282
|
"findFirst",
|
|
335
283
|
"triggerWorkflow",
|
|
336
284
|
"triggerNode",
|
|
337
|
-
"createWorkflowNode",
|
|
338
285
|
"findManyWorkflowNode",
|
|
339
|
-
"findFirstWorkflowNode",
|
|
340
|
-
"updateWorkflowNode",
|
|
341
|
-
"deleteWorkflowNode",
|
|
342
286
|
"saveWorkflowBatch",
|
|
343
287
|
"findWorkflowNodeTypes",
|
|
344
288
|
"findConnections",
|