geniebox-shared-lib 2.2.7 → 2.4.0
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/agent.client.d.ts +11 -0
- package/dist/agent.client.js +45 -0
- package/dist/agent.interface.d.ts +140 -0
- package/dist/agent.interface.js +568 -0
- package/dist/generation.client.d.ts +12 -0
- package/dist/generation.client.js +43 -0
- package/dist/generation.interface.d.ts +484 -0
- package/dist/generation.interface.js +2266 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +126 -4
- package/dist/library.client.d.ts +12 -0
- package/dist/library.client.js +43 -0
- package/dist/library.interface.d.ts +233 -0
- package/dist/library.interface.js +928 -0
- package/dist/mcp.client.d.ts +12 -0
- package/dist/mcp.client.js +42 -0
- package/dist/mcp.interface.d.ts +203 -0
- package/dist/mcp.interface.js +959 -0
- package/dist/shared.module.d.ts +20 -0
- package/dist/shared.module.js +155 -0
- package/dist/workflow.client.d.ts +12 -0
- package/dist/workflow.client.js +43 -0
- package/dist/workflow.interface.d.ts +271 -0
- package/dist/workflow.interface.js +1231 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1231 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
|
+
// protoc v5.28.2
|
|
6
|
+
// source: workflow.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.WorkflowServiceService = exports.WORKFLOW_SERVICE_NAME = exports.WorkflowsResponse = exports.DeleteEdgeRequest = exports.CreateEdgeRequest = exports.DeleteNodeRequest = exports.UpdateNodeRequest = exports.CreateNodeRequest = exports.DeleteWorkflowRequest = exports.ListWorkflowsRequest = exports.GetWorkflowRequest = exports.UpdateWorkflowRequest = exports.CreateWorkflowRequest = exports.FullWorkflow = exports.WorkflowEdge = exports.WorkflowNode = exports.Workflow = exports.WORKFLOW_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
+
exports.WorkflowServiceControllerMethods = WorkflowServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
13
|
+
const empty_interface_1 = require("./google/protobuf/empty.interface");
|
|
14
|
+
exports.protobufPackage = "workflow";
|
|
15
|
+
exports.WORKFLOW_PACKAGE_NAME = "workflow";
|
|
16
|
+
function createBaseWorkflow() {
|
|
17
|
+
return {
|
|
18
|
+
id: "",
|
|
19
|
+
version: "",
|
|
20
|
+
name: "",
|
|
21
|
+
icon: "",
|
|
22
|
+
description: "",
|
|
23
|
+
isPublished: false,
|
|
24
|
+
visibility: "",
|
|
25
|
+
userId: "",
|
|
26
|
+
createdAt: "",
|
|
27
|
+
updatedAt: "",
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.Workflow = {
|
|
31
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
32
|
+
if (message.id !== "") {
|
|
33
|
+
writer.uint32(10).string(message.id);
|
|
34
|
+
}
|
|
35
|
+
if (message.version !== "") {
|
|
36
|
+
writer.uint32(18).string(message.version);
|
|
37
|
+
}
|
|
38
|
+
if (message.name !== "") {
|
|
39
|
+
writer.uint32(26).string(message.name);
|
|
40
|
+
}
|
|
41
|
+
if (message.icon !== "") {
|
|
42
|
+
writer.uint32(34).string(message.icon);
|
|
43
|
+
}
|
|
44
|
+
if (message.description !== "") {
|
|
45
|
+
writer.uint32(42).string(message.description);
|
|
46
|
+
}
|
|
47
|
+
if (message.isPublished !== false) {
|
|
48
|
+
writer.uint32(48).bool(message.isPublished);
|
|
49
|
+
}
|
|
50
|
+
if (message.visibility !== "") {
|
|
51
|
+
writer.uint32(58).string(message.visibility);
|
|
52
|
+
}
|
|
53
|
+
if (message.userId !== "") {
|
|
54
|
+
writer.uint32(66).string(message.userId);
|
|
55
|
+
}
|
|
56
|
+
if (message.createdAt !== "") {
|
|
57
|
+
writer.uint32(74).string(message.createdAt);
|
|
58
|
+
}
|
|
59
|
+
if (message.updatedAt !== "") {
|
|
60
|
+
writer.uint32(82).string(message.updatedAt);
|
|
61
|
+
}
|
|
62
|
+
return writer;
|
|
63
|
+
},
|
|
64
|
+
decode(input, length) {
|
|
65
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
66
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
67
|
+
const message = createBaseWorkflow();
|
|
68
|
+
while (reader.pos < end) {
|
|
69
|
+
const tag = reader.uint32();
|
|
70
|
+
switch (tag >>> 3) {
|
|
71
|
+
case 1: {
|
|
72
|
+
if (tag !== 10) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
message.id = reader.string();
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
case 2: {
|
|
79
|
+
if (tag !== 18) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.version = reader.string();
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
case 3: {
|
|
86
|
+
if (tag !== 26) {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
message.name = reader.string();
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
case 4: {
|
|
93
|
+
if (tag !== 34) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
message.icon = reader.string();
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
case 5: {
|
|
100
|
+
if (tag !== 42) {
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
message.description = reader.string();
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
case 6: {
|
|
107
|
+
if (tag !== 48) {
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
message.isPublished = reader.bool();
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
case 7: {
|
|
114
|
+
if (tag !== 58) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
message.visibility = reader.string();
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
case 8: {
|
|
121
|
+
if (tag !== 66) {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
message.userId = reader.string();
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
case 9: {
|
|
128
|
+
if (tag !== 74) {
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
message.createdAt = reader.string();
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
case 10: {
|
|
135
|
+
if (tag !== 82) {
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
message.updatedAt = reader.string();
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
reader.skip(tag & 7);
|
|
146
|
+
}
|
|
147
|
+
return message;
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
function createBaseWorkflowNode() {
|
|
151
|
+
return {
|
|
152
|
+
id: "",
|
|
153
|
+
version: "",
|
|
154
|
+
workflowId: "",
|
|
155
|
+
kind: "",
|
|
156
|
+
name: "",
|
|
157
|
+
description: "",
|
|
158
|
+
uiConfig: "",
|
|
159
|
+
nodeConfig: "",
|
|
160
|
+
createdAt: "",
|
|
161
|
+
updatedAt: "",
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
exports.WorkflowNode = {
|
|
165
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
166
|
+
if (message.id !== "") {
|
|
167
|
+
writer.uint32(10).string(message.id);
|
|
168
|
+
}
|
|
169
|
+
if (message.version !== "") {
|
|
170
|
+
writer.uint32(18).string(message.version);
|
|
171
|
+
}
|
|
172
|
+
if (message.workflowId !== "") {
|
|
173
|
+
writer.uint32(26).string(message.workflowId);
|
|
174
|
+
}
|
|
175
|
+
if (message.kind !== "") {
|
|
176
|
+
writer.uint32(34).string(message.kind);
|
|
177
|
+
}
|
|
178
|
+
if (message.name !== "") {
|
|
179
|
+
writer.uint32(42).string(message.name);
|
|
180
|
+
}
|
|
181
|
+
if (message.description !== "") {
|
|
182
|
+
writer.uint32(50).string(message.description);
|
|
183
|
+
}
|
|
184
|
+
if (message.uiConfig !== "") {
|
|
185
|
+
writer.uint32(58).string(message.uiConfig);
|
|
186
|
+
}
|
|
187
|
+
if (message.nodeConfig !== "") {
|
|
188
|
+
writer.uint32(66).string(message.nodeConfig);
|
|
189
|
+
}
|
|
190
|
+
if (message.createdAt !== "") {
|
|
191
|
+
writer.uint32(74).string(message.createdAt);
|
|
192
|
+
}
|
|
193
|
+
if (message.updatedAt !== "") {
|
|
194
|
+
writer.uint32(82).string(message.updatedAt);
|
|
195
|
+
}
|
|
196
|
+
return writer;
|
|
197
|
+
},
|
|
198
|
+
decode(input, length) {
|
|
199
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
200
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
201
|
+
const message = createBaseWorkflowNode();
|
|
202
|
+
while (reader.pos < end) {
|
|
203
|
+
const tag = reader.uint32();
|
|
204
|
+
switch (tag >>> 3) {
|
|
205
|
+
case 1: {
|
|
206
|
+
if (tag !== 10) {
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
message.id = reader.string();
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
case 2: {
|
|
213
|
+
if (tag !== 18) {
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
message.version = reader.string();
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
case 3: {
|
|
220
|
+
if (tag !== 26) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
message.workflowId = reader.string();
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
226
|
+
case 4: {
|
|
227
|
+
if (tag !== 34) {
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
message.kind = reader.string();
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
case 5: {
|
|
234
|
+
if (tag !== 42) {
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
message.name = reader.string();
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
case 6: {
|
|
241
|
+
if (tag !== 50) {
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
message.description = reader.string();
|
|
245
|
+
continue;
|
|
246
|
+
}
|
|
247
|
+
case 7: {
|
|
248
|
+
if (tag !== 58) {
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
message.uiConfig = reader.string();
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
case 8: {
|
|
255
|
+
if (tag !== 66) {
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
message.nodeConfig = reader.string();
|
|
259
|
+
continue;
|
|
260
|
+
}
|
|
261
|
+
case 9: {
|
|
262
|
+
if (tag !== 74) {
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
message.createdAt = reader.string();
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
case 10: {
|
|
269
|
+
if (tag !== 82) {
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
message.updatedAt = reader.string();
|
|
273
|
+
continue;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
reader.skip(tag & 7);
|
|
280
|
+
}
|
|
281
|
+
return message;
|
|
282
|
+
},
|
|
283
|
+
};
|
|
284
|
+
function createBaseWorkflowEdge() {
|
|
285
|
+
return { id: "", version: "", workflowId: "", source: "", target: "", uiConfig: "", createdAt: "" };
|
|
286
|
+
}
|
|
287
|
+
exports.WorkflowEdge = {
|
|
288
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
289
|
+
if (message.id !== "") {
|
|
290
|
+
writer.uint32(10).string(message.id);
|
|
291
|
+
}
|
|
292
|
+
if (message.version !== "") {
|
|
293
|
+
writer.uint32(18).string(message.version);
|
|
294
|
+
}
|
|
295
|
+
if (message.workflowId !== "") {
|
|
296
|
+
writer.uint32(26).string(message.workflowId);
|
|
297
|
+
}
|
|
298
|
+
if (message.source !== "") {
|
|
299
|
+
writer.uint32(34).string(message.source);
|
|
300
|
+
}
|
|
301
|
+
if (message.target !== "") {
|
|
302
|
+
writer.uint32(42).string(message.target);
|
|
303
|
+
}
|
|
304
|
+
if (message.uiConfig !== "") {
|
|
305
|
+
writer.uint32(50).string(message.uiConfig);
|
|
306
|
+
}
|
|
307
|
+
if (message.createdAt !== "") {
|
|
308
|
+
writer.uint32(58).string(message.createdAt);
|
|
309
|
+
}
|
|
310
|
+
return writer;
|
|
311
|
+
},
|
|
312
|
+
decode(input, length) {
|
|
313
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
314
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
315
|
+
const message = createBaseWorkflowEdge();
|
|
316
|
+
while (reader.pos < end) {
|
|
317
|
+
const tag = reader.uint32();
|
|
318
|
+
switch (tag >>> 3) {
|
|
319
|
+
case 1: {
|
|
320
|
+
if (tag !== 10) {
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
message.id = reader.string();
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
case 2: {
|
|
327
|
+
if (tag !== 18) {
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
330
|
+
message.version = reader.string();
|
|
331
|
+
continue;
|
|
332
|
+
}
|
|
333
|
+
case 3: {
|
|
334
|
+
if (tag !== 26) {
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
337
|
+
message.workflowId = reader.string();
|
|
338
|
+
continue;
|
|
339
|
+
}
|
|
340
|
+
case 4: {
|
|
341
|
+
if (tag !== 34) {
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
message.source = reader.string();
|
|
345
|
+
continue;
|
|
346
|
+
}
|
|
347
|
+
case 5: {
|
|
348
|
+
if (tag !== 42) {
|
|
349
|
+
break;
|
|
350
|
+
}
|
|
351
|
+
message.target = reader.string();
|
|
352
|
+
continue;
|
|
353
|
+
}
|
|
354
|
+
case 6: {
|
|
355
|
+
if (tag !== 50) {
|
|
356
|
+
break;
|
|
357
|
+
}
|
|
358
|
+
message.uiConfig = reader.string();
|
|
359
|
+
continue;
|
|
360
|
+
}
|
|
361
|
+
case 7: {
|
|
362
|
+
if (tag !== 58) {
|
|
363
|
+
break;
|
|
364
|
+
}
|
|
365
|
+
message.createdAt = reader.string();
|
|
366
|
+
continue;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
370
|
+
break;
|
|
371
|
+
}
|
|
372
|
+
reader.skip(tag & 7);
|
|
373
|
+
}
|
|
374
|
+
return message;
|
|
375
|
+
},
|
|
376
|
+
};
|
|
377
|
+
function createBaseFullWorkflow() {
|
|
378
|
+
return { nodes: [], edges: [] };
|
|
379
|
+
}
|
|
380
|
+
exports.FullWorkflow = {
|
|
381
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
382
|
+
if (message.workflow !== undefined) {
|
|
383
|
+
exports.Workflow.encode(message.workflow, writer.uint32(10).fork()).join();
|
|
384
|
+
}
|
|
385
|
+
for (const v of message.nodes) {
|
|
386
|
+
exports.WorkflowNode.encode(v, writer.uint32(18).fork()).join();
|
|
387
|
+
}
|
|
388
|
+
for (const v of message.edges) {
|
|
389
|
+
exports.WorkflowEdge.encode(v, writer.uint32(26).fork()).join();
|
|
390
|
+
}
|
|
391
|
+
return writer;
|
|
392
|
+
},
|
|
393
|
+
decode(input, length) {
|
|
394
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
395
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
396
|
+
const message = createBaseFullWorkflow();
|
|
397
|
+
while (reader.pos < end) {
|
|
398
|
+
const tag = reader.uint32();
|
|
399
|
+
switch (tag >>> 3) {
|
|
400
|
+
case 1: {
|
|
401
|
+
if (tag !== 10) {
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
message.workflow = exports.Workflow.decode(reader, reader.uint32());
|
|
405
|
+
continue;
|
|
406
|
+
}
|
|
407
|
+
case 2: {
|
|
408
|
+
if (tag !== 18) {
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
message.nodes.push(exports.WorkflowNode.decode(reader, reader.uint32()));
|
|
412
|
+
continue;
|
|
413
|
+
}
|
|
414
|
+
case 3: {
|
|
415
|
+
if (tag !== 26) {
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
message.edges.push(exports.WorkflowEdge.decode(reader, reader.uint32()));
|
|
419
|
+
continue;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
425
|
+
reader.skip(tag & 7);
|
|
426
|
+
}
|
|
427
|
+
return message;
|
|
428
|
+
},
|
|
429
|
+
};
|
|
430
|
+
function createBaseCreateWorkflowRequest() {
|
|
431
|
+
return { userId: "", name: "", description: "", icon: "", visibility: "" };
|
|
432
|
+
}
|
|
433
|
+
exports.CreateWorkflowRequest = {
|
|
434
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
435
|
+
if (message.userId !== "") {
|
|
436
|
+
writer.uint32(10).string(message.userId);
|
|
437
|
+
}
|
|
438
|
+
if (message.name !== "") {
|
|
439
|
+
writer.uint32(18).string(message.name);
|
|
440
|
+
}
|
|
441
|
+
if (message.description !== "") {
|
|
442
|
+
writer.uint32(26).string(message.description);
|
|
443
|
+
}
|
|
444
|
+
if (message.icon !== "") {
|
|
445
|
+
writer.uint32(34).string(message.icon);
|
|
446
|
+
}
|
|
447
|
+
if (message.visibility !== "") {
|
|
448
|
+
writer.uint32(42).string(message.visibility);
|
|
449
|
+
}
|
|
450
|
+
return writer;
|
|
451
|
+
},
|
|
452
|
+
decode(input, length) {
|
|
453
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
454
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
455
|
+
const message = createBaseCreateWorkflowRequest();
|
|
456
|
+
while (reader.pos < end) {
|
|
457
|
+
const tag = reader.uint32();
|
|
458
|
+
switch (tag >>> 3) {
|
|
459
|
+
case 1: {
|
|
460
|
+
if (tag !== 10) {
|
|
461
|
+
break;
|
|
462
|
+
}
|
|
463
|
+
message.userId = reader.string();
|
|
464
|
+
continue;
|
|
465
|
+
}
|
|
466
|
+
case 2: {
|
|
467
|
+
if (tag !== 18) {
|
|
468
|
+
break;
|
|
469
|
+
}
|
|
470
|
+
message.name = reader.string();
|
|
471
|
+
continue;
|
|
472
|
+
}
|
|
473
|
+
case 3: {
|
|
474
|
+
if (tag !== 26) {
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
message.description = reader.string();
|
|
478
|
+
continue;
|
|
479
|
+
}
|
|
480
|
+
case 4: {
|
|
481
|
+
if (tag !== 34) {
|
|
482
|
+
break;
|
|
483
|
+
}
|
|
484
|
+
message.icon = reader.string();
|
|
485
|
+
continue;
|
|
486
|
+
}
|
|
487
|
+
case 5: {
|
|
488
|
+
if (tag !== 42) {
|
|
489
|
+
break;
|
|
490
|
+
}
|
|
491
|
+
message.visibility = reader.string();
|
|
492
|
+
continue;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
reader.skip(tag & 7);
|
|
499
|
+
}
|
|
500
|
+
return message;
|
|
501
|
+
},
|
|
502
|
+
};
|
|
503
|
+
function createBaseUpdateWorkflowRequest() {
|
|
504
|
+
return { id: "", userId: "" };
|
|
505
|
+
}
|
|
506
|
+
exports.UpdateWorkflowRequest = {
|
|
507
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
508
|
+
if (message.id !== "") {
|
|
509
|
+
writer.uint32(10).string(message.id);
|
|
510
|
+
}
|
|
511
|
+
if (message.userId !== "") {
|
|
512
|
+
writer.uint32(18).string(message.userId);
|
|
513
|
+
}
|
|
514
|
+
if (message.name !== undefined) {
|
|
515
|
+
writer.uint32(26).string(message.name);
|
|
516
|
+
}
|
|
517
|
+
if (message.description !== undefined) {
|
|
518
|
+
writer.uint32(34).string(message.description);
|
|
519
|
+
}
|
|
520
|
+
if (message.icon !== undefined) {
|
|
521
|
+
writer.uint32(42).string(message.icon);
|
|
522
|
+
}
|
|
523
|
+
if (message.isPublished !== undefined) {
|
|
524
|
+
writer.uint32(48).bool(message.isPublished);
|
|
525
|
+
}
|
|
526
|
+
if (message.visibility !== undefined) {
|
|
527
|
+
writer.uint32(58).string(message.visibility);
|
|
528
|
+
}
|
|
529
|
+
return writer;
|
|
530
|
+
},
|
|
531
|
+
decode(input, length) {
|
|
532
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
533
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
534
|
+
const message = createBaseUpdateWorkflowRequest();
|
|
535
|
+
while (reader.pos < end) {
|
|
536
|
+
const tag = reader.uint32();
|
|
537
|
+
switch (tag >>> 3) {
|
|
538
|
+
case 1: {
|
|
539
|
+
if (tag !== 10) {
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
message.id = reader.string();
|
|
543
|
+
continue;
|
|
544
|
+
}
|
|
545
|
+
case 2: {
|
|
546
|
+
if (tag !== 18) {
|
|
547
|
+
break;
|
|
548
|
+
}
|
|
549
|
+
message.userId = reader.string();
|
|
550
|
+
continue;
|
|
551
|
+
}
|
|
552
|
+
case 3: {
|
|
553
|
+
if (tag !== 26) {
|
|
554
|
+
break;
|
|
555
|
+
}
|
|
556
|
+
message.name = reader.string();
|
|
557
|
+
continue;
|
|
558
|
+
}
|
|
559
|
+
case 4: {
|
|
560
|
+
if (tag !== 34) {
|
|
561
|
+
break;
|
|
562
|
+
}
|
|
563
|
+
message.description = reader.string();
|
|
564
|
+
continue;
|
|
565
|
+
}
|
|
566
|
+
case 5: {
|
|
567
|
+
if (tag !== 42) {
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
message.icon = reader.string();
|
|
571
|
+
continue;
|
|
572
|
+
}
|
|
573
|
+
case 6: {
|
|
574
|
+
if (tag !== 48) {
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
message.isPublished = reader.bool();
|
|
578
|
+
continue;
|
|
579
|
+
}
|
|
580
|
+
case 7: {
|
|
581
|
+
if (tag !== 58) {
|
|
582
|
+
break;
|
|
583
|
+
}
|
|
584
|
+
message.visibility = reader.string();
|
|
585
|
+
continue;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
589
|
+
break;
|
|
590
|
+
}
|
|
591
|
+
reader.skip(tag & 7);
|
|
592
|
+
}
|
|
593
|
+
return message;
|
|
594
|
+
},
|
|
595
|
+
};
|
|
596
|
+
function createBaseGetWorkflowRequest() {
|
|
597
|
+
return { id: "", userId: "" };
|
|
598
|
+
}
|
|
599
|
+
exports.GetWorkflowRequest = {
|
|
600
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
601
|
+
if (message.id !== "") {
|
|
602
|
+
writer.uint32(10).string(message.id);
|
|
603
|
+
}
|
|
604
|
+
if (message.userId !== "") {
|
|
605
|
+
writer.uint32(18).string(message.userId);
|
|
606
|
+
}
|
|
607
|
+
return writer;
|
|
608
|
+
},
|
|
609
|
+
decode(input, length) {
|
|
610
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
611
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
612
|
+
const message = createBaseGetWorkflowRequest();
|
|
613
|
+
while (reader.pos < end) {
|
|
614
|
+
const tag = reader.uint32();
|
|
615
|
+
switch (tag >>> 3) {
|
|
616
|
+
case 1: {
|
|
617
|
+
if (tag !== 10) {
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
message.id = reader.string();
|
|
621
|
+
continue;
|
|
622
|
+
}
|
|
623
|
+
case 2: {
|
|
624
|
+
if (tag !== 18) {
|
|
625
|
+
break;
|
|
626
|
+
}
|
|
627
|
+
message.userId = reader.string();
|
|
628
|
+
continue;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
632
|
+
break;
|
|
633
|
+
}
|
|
634
|
+
reader.skip(tag & 7);
|
|
635
|
+
}
|
|
636
|
+
return message;
|
|
637
|
+
},
|
|
638
|
+
};
|
|
639
|
+
function createBaseListWorkflowsRequest() {
|
|
640
|
+
return { userId: "", limit: 0, offset: 0 };
|
|
641
|
+
}
|
|
642
|
+
exports.ListWorkflowsRequest = {
|
|
643
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
644
|
+
if (message.userId !== "") {
|
|
645
|
+
writer.uint32(10).string(message.userId);
|
|
646
|
+
}
|
|
647
|
+
if (message.limit !== 0) {
|
|
648
|
+
writer.uint32(16).int32(message.limit);
|
|
649
|
+
}
|
|
650
|
+
if (message.offset !== 0) {
|
|
651
|
+
writer.uint32(24).int32(message.offset);
|
|
652
|
+
}
|
|
653
|
+
return writer;
|
|
654
|
+
},
|
|
655
|
+
decode(input, length) {
|
|
656
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
657
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
658
|
+
const message = createBaseListWorkflowsRequest();
|
|
659
|
+
while (reader.pos < end) {
|
|
660
|
+
const tag = reader.uint32();
|
|
661
|
+
switch (tag >>> 3) {
|
|
662
|
+
case 1: {
|
|
663
|
+
if (tag !== 10) {
|
|
664
|
+
break;
|
|
665
|
+
}
|
|
666
|
+
message.userId = reader.string();
|
|
667
|
+
continue;
|
|
668
|
+
}
|
|
669
|
+
case 2: {
|
|
670
|
+
if (tag !== 16) {
|
|
671
|
+
break;
|
|
672
|
+
}
|
|
673
|
+
message.limit = reader.int32();
|
|
674
|
+
continue;
|
|
675
|
+
}
|
|
676
|
+
case 3: {
|
|
677
|
+
if (tag !== 24) {
|
|
678
|
+
break;
|
|
679
|
+
}
|
|
680
|
+
message.offset = reader.int32();
|
|
681
|
+
continue;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
685
|
+
break;
|
|
686
|
+
}
|
|
687
|
+
reader.skip(tag & 7);
|
|
688
|
+
}
|
|
689
|
+
return message;
|
|
690
|
+
},
|
|
691
|
+
};
|
|
692
|
+
function createBaseDeleteWorkflowRequest() {
|
|
693
|
+
return { id: "", userId: "" };
|
|
694
|
+
}
|
|
695
|
+
exports.DeleteWorkflowRequest = {
|
|
696
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
697
|
+
if (message.id !== "") {
|
|
698
|
+
writer.uint32(10).string(message.id);
|
|
699
|
+
}
|
|
700
|
+
if (message.userId !== "") {
|
|
701
|
+
writer.uint32(18).string(message.userId);
|
|
702
|
+
}
|
|
703
|
+
return writer;
|
|
704
|
+
},
|
|
705
|
+
decode(input, length) {
|
|
706
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
707
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
708
|
+
const message = createBaseDeleteWorkflowRequest();
|
|
709
|
+
while (reader.pos < end) {
|
|
710
|
+
const tag = reader.uint32();
|
|
711
|
+
switch (tag >>> 3) {
|
|
712
|
+
case 1: {
|
|
713
|
+
if (tag !== 10) {
|
|
714
|
+
break;
|
|
715
|
+
}
|
|
716
|
+
message.id = reader.string();
|
|
717
|
+
continue;
|
|
718
|
+
}
|
|
719
|
+
case 2: {
|
|
720
|
+
if (tag !== 18) {
|
|
721
|
+
break;
|
|
722
|
+
}
|
|
723
|
+
message.userId = reader.string();
|
|
724
|
+
continue;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
728
|
+
break;
|
|
729
|
+
}
|
|
730
|
+
reader.skip(tag & 7);
|
|
731
|
+
}
|
|
732
|
+
return message;
|
|
733
|
+
},
|
|
734
|
+
};
|
|
735
|
+
function createBaseCreateNodeRequest() {
|
|
736
|
+
return { workflowId: "", userId: "", kind: "", name: "", description: "", uiConfig: "", nodeConfig: "" };
|
|
737
|
+
}
|
|
738
|
+
exports.CreateNodeRequest = {
|
|
739
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
740
|
+
if (message.workflowId !== "") {
|
|
741
|
+
writer.uint32(10).string(message.workflowId);
|
|
742
|
+
}
|
|
743
|
+
if (message.userId !== "") {
|
|
744
|
+
writer.uint32(18).string(message.userId);
|
|
745
|
+
}
|
|
746
|
+
if (message.kind !== "") {
|
|
747
|
+
writer.uint32(26).string(message.kind);
|
|
748
|
+
}
|
|
749
|
+
if (message.name !== "") {
|
|
750
|
+
writer.uint32(34).string(message.name);
|
|
751
|
+
}
|
|
752
|
+
if (message.description !== "") {
|
|
753
|
+
writer.uint32(42).string(message.description);
|
|
754
|
+
}
|
|
755
|
+
if (message.uiConfig !== "") {
|
|
756
|
+
writer.uint32(50).string(message.uiConfig);
|
|
757
|
+
}
|
|
758
|
+
if (message.nodeConfig !== "") {
|
|
759
|
+
writer.uint32(58).string(message.nodeConfig);
|
|
760
|
+
}
|
|
761
|
+
return writer;
|
|
762
|
+
},
|
|
763
|
+
decode(input, length) {
|
|
764
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
765
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
766
|
+
const message = createBaseCreateNodeRequest();
|
|
767
|
+
while (reader.pos < end) {
|
|
768
|
+
const tag = reader.uint32();
|
|
769
|
+
switch (tag >>> 3) {
|
|
770
|
+
case 1: {
|
|
771
|
+
if (tag !== 10) {
|
|
772
|
+
break;
|
|
773
|
+
}
|
|
774
|
+
message.workflowId = reader.string();
|
|
775
|
+
continue;
|
|
776
|
+
}
|
|
777
|
+
case 2: {
|
|
778
|
+
if (tag !== 18) {
|
|
779
|
+
break;
|
|
780
|
+
}
|
|
781
|
+
message.userId = reader.string();
|
|
782
|
+
continue;
|
|
783
|
+
}
|
|
784
|
+
case 3: {
|
|
785
|
+
if (tag !== 26) {
|
|
786
|
+
break;
|
|
787
|
+
}
|
|
788
|
+
message.kind = reader.string();
|
|
789
|
+
continue;
|
|
790
|
+
}
|
|
791
|
+
case 4: {
|
|
792
|
+
if (tag !== 34) {
|
|
793
|
+
break;
|
|
794
|
+
}
|
|
795
|
+
message.name = reader.string();
|
|
796
|
+
continue;
|
|
797
|
+
}
|
|
798
|
+
case 5: {
|
|
799
|
+
if (tag !== 42) {
|
|
800
|
+
break;
|
|
801
|
+
}
|
|
802
|
+
message.description = reader.string();
|
|
803
|
+
continue;
|
|
804
|
+
}
|
|
805
|
+
case 6: {
|
|
806
|
+
if (tag !== 50) {
|
|
807
|
+
break;
|
|
808
|
+
}
|
|
809
|
+
message.uiConfig = reader.string();
|
|
810
|
+
continue;
|
|
811
|
+
}
|
|
812
|
+
case 7: {
|
|
813
|
+
if (tag !== 58) {
|
|
814
|
+
break;
|
|
815
|
+
}
|
|
816
|
+
message.nodeConfig = reader.string();
|
|
817
|
+
continue;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
821
|
+
break;
|
|
822
|
+
}
|
|
823
|
+
reader.skip(tag & 7);
|
|
824
|
+
}
|
|
825
|
+
return message;
|
|
826
|
+
},
|
|
827
|
+
};
|
|
828
|
+
function createBaseUpdateNodeRequest() {
|
|
829
|
+
return { id: "", userId: "" };
|
|
830
|
+
}
|
|
831
|
+
exports.UpdateNodeRequest = {
|
|
832
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
833
|
+
if (message.id !== "") {
|
|
834
|
+
writer.uint32(10).string(message.id);
|
|
835
|
+
}
|
|
836
|
+
if (message.userId !== "") {
|
|
837
|
+
writer.uint32(18).string(message.userId);
|
|
838
|
+
}
|
|
839
|
+
if (message.name !== undefined) {
|
|
840
|
+
writer.uint32(26).string(message.name);
|
|
841
|
+
}
|
|
842
|
+
if (message.description !== undefined) {
|
|
843
|
+
writer.uint32(34).string(message.description);
|
|
844
|
+
}
|
|
845
|
+
if (message.uiConfig !== undefined) {
|
|
846
|
+
writer.uint32(42).string(message.uiConfig);
|
|
847
|
+
}
|
|
848
|
+
if (message.nodeConfig !== undefined) {
|
|
849
|
+
writer.uint32(50).string(message.nodeConfig);
|
|
850
|
+
}
|
|
851
|
+
return writer;
|
|
852
|
+
},
|
|
853
|
+
decode(input, length) {
|
|
854
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
855
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
856
|
+
const message = createBaseUpdateNodeRequest();
|
|
857
|
+
while (reader.pos < end) {
|
|
858
|
+
const tag = reader.uint32();
|
|
859
|
+
switch (tag >>> 3) {
|
|
860
|
+
case 1: {
|
|
861
|
+
if (tag !== 10) {
|
|
862
|
+
break;
|
|
863
|
+
}
|
|
864
|
+
message.id = reader.string();
|
|
865
|
+
continue;
|
|
866
|
+
}
|
|
867
|
+
case 2: {
|
|
868
|
+
if (tag !== 18) {
|
|
869
|
+
break;
|
|
870
|
+
}
|
|
871
|
+
message.userId = reader.string();
|
|
872
|
+
continue;
|
|
873
|
+
}
|
|
874
|
+
case 3: {
|
|
875
|
+
if (tag !== 26) {
|
|
876
|
+
break;
|
|
877
|
+
}
|
|
878
|
+
message.name = reader.string();
|
|
879
|
+
continue;
|
|
880
|
+
}
|
|
881
|
+
case 4: {
|
|
882
|
+
if (tag !== 34) {
|
|
883
|
+
break;
|
|
884
|
+
}
|
|
885
|
+
message.description = reader.string();
|
|
886
|
+
continue;
|
|
887
|
+
}
|
|
888
|
+
case 5: {
|
|
889
|
+
if (tag !== 42) {
|
|
890
|
+
break;
|
|
891
|
+
}
|
|
892
|
+
message.uiConfig = reader.string();
|
|
893
|
+
continue;
|
|
894
|
+
}
|
|
895
|
+
case 6: {
|
|
896
|
+
if (tag !== 50) {
|
|
897
|
+
break;
|
|
898
|
+
}
|
|
899
|
+
message.nodeConfig = reader.string();
|
|
900
|
+
continue;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
904
|
+
break;
|
|
905
|
+
}
|
|
906
|
+
reader.skip(tag & 7);
|
|
907
|
+
}
|
|
908
|
+
return message;
|
|
909
|
+
},
|
|
910
|
+
};
|
|
911
|
+
function createBaseDeleteNodeRequest() {
|
|
912
|
+
return { id: "", userId: "" };
|
|
913
|
+
}
|
|
914
|
+
exports.DeleteNodeRequest = {
|
|
915
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
916
|
+
if (message.id !== "") {
|
|
917
|
+
writer.uint32(10).string(message.id);
|
|
918
|
+
}
|
|
919
|
+
if (message.userId !== "") {
|
|
920
|
+
writer.uint32(18).string(message.userId);
|
|
921
|
+
}
|
|
922
|
+
return writer;
|
|
923
|
+
},
|
|
924
|
+
decode(input, length) {
|
|
925
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
926
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
927
|
+
const message = createBaseDeleteNodeRequest();
|
|
928
|
+
while (reader.pos < end) {
|
|
929
|
+
const tag = reader.uint32();
|
|
930
|
+
switch (tag >>> 3) {
|
|
931
|
+
case 1: {
|
|
932
|
+
if (tag !== 10) {
|
|
933
|
+
break;
|
|
934
|
+
}
|
|
935
|
+
message.id = reader.string();
|
|
936
|
+
continue;
|
|
937
|
+
}
|
|
938
|
+
case 2: {
|
|
939
|
+
if (tag !== 18) {
|
|
940
|
+
break;
|
|
941
|
+
}
|
|
942
|
+
message.userId = reader.string();
|
|
943
|
+
continue;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
947
|
+
break;
|
|
948
|
+
}
|
|
949
|
+
reader.skip(tag & 7);
|
|
950
|
+
}
|
|
951
|
+
return message;
|
|
952
|
+
},
|
|
953
|
+
};
|
|
954
|
+
function createBaseCreateEdgeRequest() {
|
|
955
|
+
return { workflowId: "", userId: "", source: "", target: "", uiConfig: "" };
|
|
956
|
+
}
|
|
957
|
+
exports.CreateEdgeRequest = {
|
|
958
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
959
|
+
if (message.workflowId !== "") {
|
|
960
|
+
writer.uint32(10).string(message.workflowId);
|
|
961
|
+
}
|
|
962
|
+
if (message.userId !== "") {
|
|
963
|
+
writer.uint32(18).string(message.userId);
|
|
964
|
+
}
|
|
965
|
+
if (message.source !== "") {
|
|
966
|
+
writer.uint32(26).string(message.source);
|
|
967
|
+
}
|
|
968
|
+
if (message.target !== "") {
|
|
969
|
+
writer.uint32(34).string(message.target);
|
|
970
|
+
}
|
|
971
|
+
if (message.uiConfig !== "") {
|
|
972
|
+
writer.uint32(42).string(message.uiConfig);
|
|
973
|
+
}
|
|
974
|
+
return writer;
|
|
975
|
+
},
|
|
976
|
+
decode(input, length) {
|
|
977
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
978
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
979
|
+
const message = createBaseCreateEdgeRequest();
|
|
980
|
+
while (reader.pos < end) {
|
|
981
|
+
const tag = reader.uint32();
|
|
982
|
+
switch (tag >>> 3) {
|
|
983
|
+
case 1: {
|
|
984
|
+
if (tag !== 10) {
|
|
985
|
+
break;
|
|
986
|
+
}
|
|
987
|
+
message.workflowId = reader.string();
|
|
988
|
+
continue;
|
|
989
|
+
}
|
|
990
|
+
case 2: {
|
|
991
|
+
if (tag !== 18) {
|
|
992
|
+
break;
|
|
993
|
+
}
|
|
994
|
+
message.userId = reader.string();
|
|
995
|
+
continue;
|
|
996
|
+
}
|
|
997
|
+
case 3: {
|
|
998
|
+
if (tag !== 26) {
|
|
999
|
+
break;
|
|
1000
|
+
}
|
|
1001
|
+
message.source = reader.string();
|
|
1002
|
+
continue;
|
|
1003
|
+
}
|
|
1004
|
+
case 4: {
|
|
1005
|
+
if (tag !== 34) {
|
|
1006
|
+
break;
|
|
1007
|
+
}
|
|
1008
|
+
message.target = reader.string();
|
|
1009
|
+
continue;
|
|
1010
|
+
}
|
|
1011
|
+
case 5: {
|
|
1012
|
+
if (tag !== 42) {
|
|
1013
|
+
break;
|
|
1014
|
+
}
|
|
1015
|
+
message.uiConfig = reader.string();
|
|
1016
|
+
continue;
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1020
|
+
break;
|
|
1021
|
+
}
|
|
1022
|
+
reader.skip(tag & 7);
|
|
1023
|
+
}
|
|
1024
|
+
return message;
|
|
1025
|
+
},
|
|
1026
|
+
};
|
|
1027
|
+
function createBaseDeleteEdgeRequest() {
|
|
1028
|
+
return { id: "", userId: "" };
|
|
1029
|
+
}
|
|
1030
|
+
exports.DeleteEdgeRequest = {
|
|
1031
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1032
|
+
if (message.id !== "") {
|
|
1033
|
+
writer.uint32(10).string(message.id);
|
|
1034
|
+
}
|
|
1035
|
+
if (message.userId !== "") {
|
|
1036
|
+
writer.uint32(18).string(message.userId);
|
|
1037
|
+
}
|
|
1038
|
+
return writer;
|
|
1039
|
+
},
|
|
1040
|
+
decode(input, length) {
|
|
1041
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1042
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1043
|
+
const message = createBaseDeleteEdgeRequest();
|
|
1044
|
+
while (reader.pos < end) {
|
|
1045
|
+
const tag = reader.uint32();
|
|
1046
|
+
switch (tag >>> 3) {
|
|
1047
|
+
case 1: {
|
|
1048
|
+
if (tag !== 10) {
|
|
1049
|
+
break;
|
|
1050
|
+
}
|
|
1051
|
+
message.id = reader.string();
|
|
1052
|
+
continue;
|
|
1053
|
+
}
|
|
1054
|
+
case 2: {
|
|
1055
|
+
if (tag !== 18) {
|
|
1056
|
+
break;
|
|
1057
|
+
}
|
|
1058
|
+
message.userId = reader.string();
|
|
1059
|
+
continue;
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1063
|
+
break;
|
|
1064
|
+
}
|
|
1065
|
+
reader.skip(tag & 7);
|
|
1066
|
+
}
|
|
1067
|
+
return message;
|
|
1068
|
+
},
|
|
1069
|
+
};
|
|
1070
|
+
function createBaseWorkflowsResponse() {
|
|
1071
|
+
return { workflows: [], total: 0 };
|
|
1072
|
+
}
|
|
1073
|
+
exports.WorkflowsResponse = {
|
|
1074
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1075
|
+
for (const v of message.workflows) {
|
|
1076
|
+
exports.Workflow.encode(v, writer.uint32(10).fork()).join();
|
|
1077
|
+
}
|
|
1078
|
+
if (message.total !== 0) {
|
|
1079
|
+
writer.uint32(16).int32(message.total);
|
|
1080
|
+
}
|
|
1081
|
+
return writer;
|
|
1082
|
+
},
|
|
1083
|
+
decode(input, length) {
|
|
1084
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1085
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1086
|
+
const message = createBaseWorkflowsResponse();
|
|
1087
|
+
while (reader.pos < end) {
|
|
1088
|
+
const tag = reader.uint32();
|
|
1089
|
+
switch (tag >>> 3) {
|
|
1090
|
+
case 1: {
|
|
1091
|
+
if (tag !== 10) {
|
|
1092
|
+
break;
|
|
1093
|
+
}
|
|
1094
|
+
message.workflows.push(exports.Workflow.decode(reader, reader.uint32()));
|
|
1095
|
+
continue;
|
|
1096
|
+
}
|
|
1097
|
+
case 2: {
|
|
1098
|
+
if (tag !== 16) {
|
|
1099
|
+
break;
|
|
1100
|
+
}
|
|
1101
|
+
message.total = reader.int32();
|
|
1102
|
+
continue;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1106
|
+
break;
|
|
1107
|
+
}
|
|
1108
|
+
reader.skip(tag & 7);
|
|
1109
|
+
}
|
|
1110
|
+
return message;
|
|
1111
|
+
},
|
|
1112
|
+
};
|
|
1113
|
+
function WorkflowServiceControllerMethods() {
|
|
1114
|
+
return function (constructor) {
|
|
1115
|
+
const grpcMethods = [
|
|
1116
|
+
"createWorkflow",
|
|
1117
|
+
"getWorkflow",
|
|
1118
|
+
"updateWorkflow",
|
|
1119
|
+
"deleteWorkflow",
|
|
1120
|
+
"listWorkflows",
|
|
1121
|
+
"createNode",
|
|
1122
|
+
"updateNode",
|
|
1123
|
+
"deleteNode",
|
|
1124
|
+
"createEdge",
|
|
1125
|
+
"deleteEdge",
|
|
1126
|
+
];
|
|
1127
|
+
for (const method of grpcMethods) {
|
|
1128
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
1129
|
+
(0, microservices_1.GrpcMethod)("WorkflowService", method)(constructor.prototype[method], method, descriptor);
|
|
1130
|
+
}
|
|
1131
|
+
const grpcStreamMethods = [];
|
|
1132
|
+
for (const method of grpcStreamMethods) {
|
|
1133
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
1134
|
+
(0, microservices_1.GrpcStreamMethod)("WorkflowService", method)(constructor.prototype[method], method, descriptor);
|
|
1135
|
+
}
|
|
1136
|
+
};
|
|
1137
|
+
}
|
|
1138
|
+
exports.WORKFLOW_SERVICE_NAME = "WorkflowService";
|
|
1139
|
+
exports.WorkflowServiceService = {
|
|
1140
|
+
createWorkflow: {
|
|
1141
|
+
path: "/workflow.WorkflowService/createWorkflow",
|
|
1142
|
+
requestStream: false,
|
|
1143
|
+
responseStream: false,
|
|
1144
|
+
requestSerialize: (value) => Buffer.from(exports.CreateWorkflowRequest.encode(value).finish()),
|
|
1145
|
+
requestDeserialize: (value) => exports.CreateWorkflowRequest.decode(value),
|
|
1146
|
+
responseSerialize: (value) => Buffer.from(exports.Workflow.encode(value).finish()),
|
|
1147
|
+
responseDeserialize: (value) => exports.Workflow.decode(value),
|
|
1148
|
+
},
|
|
1149
|
+
/** Returns graph */
|
|
1150
|
+
getWorkflow: {
|
|
1151
|
+
path: "/workflow.WorkflowService/getWorkflow",
|
|
1152
|
+
requestStream: false,
|
|
1153
|
+
responseStream: false,
|
|
1154
|
+
requestSerialize: (value) => Buffer.from(exports.GetWorkflowRequest.encode(value).finish()),
|
|
1155
|
+
requestDeserialize: (value) => exports.GetWorkflowRequest.decode(value),
|
|
1156
|
+
responseSerialize: (value) => Buffer.from(exports.FullWorkflow.encode(value).finish()),
|
|
1157
|
+
responseDeserialize: (value) => exports.FullWorkflow.decode(value),
|
|
1158
|
+
},
|
|
1159
|
+
updateWorkflow: {
|
|
1160
|
+
path: "/workflow.WorkflowService/updateWorkflow",
|
|
1161
|
+
requestStream: false,
|
|
1162
|
+
responseStream: false,
|
|
1163
|
+
requestSerialize: (value) => Buffer.from(exports.UpdateWorkflowRequest.encode(value).finish()),
|
|
1164
|
+
requestDeserialize: (value) => exports.UpdateWorkflowRequest.decode(value),
|
|
1165
|
+
responseSerialize: (value) => Buffer.from(exports.Workflow.encode(value).finish()),
|
|
1166
|
+
responseDeserialize: (value) => exports.Workflow.decode(value),
|
|
1167
|
+
},
|
|
1168
|
+
deleteWorkflow: {
|
|
1169
|
+
path: "/workflow.WorkflowService/deleteWorkflow",
|
|
1170
|
+
requestStream: false,
|
|
1171
|
+
responseStream: false,
|
|
1172
|
+
requestSerialize: (value) => Buffer.from(exports.DeleteWorkflowRequest.encode(value).finish()),
|
|
1173
|
+
requestDeserialize: (value) => exports.DeleteWorkflowRequest.decode(value),
|
|
1174
|
+
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
1175
|
+
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
1176
|
+
},
|
|
1177
|
+
listWorkflows: {
|
|
1178
|
+
path: "/workflow.WorkflowService/listWorkflows",
|
|
1179
|
+
requestStream: false,
|
|
1180
|
+
responseStream: false,
|
|
1181
|
+
requestSerialize: (value) => Buffer.from(exports.ListWorkflowsRequest.encode(value).finish()),
|
|
1182
|
+
requestDeserialize: (value) => exports.ListWorkflowsRequest.decode(value),
|
|
1183
|
+
responseSerialize: (value) => Buffer.from(exports.WorkflowsResponse.encode(value).finish()),
|
|
1184
|
+
responseDeserialize: (value) => exports.WorkflowsResponse.decode(value),
|
|
1185
|
+
},
|
|
1186
|
+
createNode: {
|
|
1187
|
+
path: "/workflow.WorkflowService/createNode",
|
|
1188
|
+
requestStream: false,
|
|
1189
|
+
responseStream: false,
|
|
1190
|
+
requestSerialize: (value) => Buffer.from(exports.CreateNodeRequest.encode(value).finish()),
|
|
1191
|
+
requestDeserialize: (value) => exports.CreateNodeRequest.decode(value),
|
|
1192
|
+
responseSerialize: (value) => Buffer.from(exports.WorkflowNode.encode(value).finish()),
|
|
1193
|
+
responseDeserialize: (value) => exports.WorkflowNode.decode(value),
|
|
1194
|
+
},
|
|
1195
|
+
updateNode: {
|
|
1196
|
+
path: "/workflow.WorkflowService/updateNode",
|
|
1197
|
+
requestStream: false,
|
|
1198
|
+
responseStream: false,
|
|
1199
|
+
requestSerialize: (value) => Buffer.from(exports.UpdateNodeRequest.encode(value).finish()),
|
|
1200
|
+
requestDeserialize: (value) => exports.UpdateNodeRequest.decode(value),
|
|
1201
|
+
responseSerialize: (value) => Buffer.from(exports.WorkflowNode.encode(value).finish()),
|
|
1202
|
+
responseDeserialize: (value) => exports.WorkflowNode.decode(value),
|
|
1203
|
+
},
|
|
1204
|
+
deleteNode: {
|
|
1205
|
+
path: "/workflow.WorkflowService/deleteNode",
|
|
1206
|
+
requestStream: false,
|
|
1207
|
+
responseStream: false,
|
|
1208
|
+
requestSerialize: (value) => Buffer.from(exports.DeleteNodeRequest.encode(value).finish()),
|
|
1209
|
+
requestDeserialize: (value) => exports.DeleteNodeRequest.decode(value),
|
|
1210
|
+
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
1211
|
+
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
1212
|
+
},
|
|
1213
|
+
createEdge: {
|
|
1214
|
+
path: "/workflow.WorkflowService/createEdge",
|
|
1215
|
+
requestStream: false,
|
|
1216
|
+
responseStream: false,
|
|
1217
|
+
requestSerialize: (value) => Buffer.from(exports.CreateEdgeRequest.encode(value).finish()),
|
|
1218
|
+
requestDeserialize: (value) => exports.CreateEdgeRequest.decode(value),
|
|
1219
|
+
responseSerialize: (value) => Buffer.from(exports.WorkflowEdge.encode(value).finish()),
|
|
1220
|
+
responseDeserialize: (value) => exports.WorkflowEdge.decode(value),
|
|
1221
|
+
},
|
|
1222
|
+
deleteEdge: {
|
|
1223
|
+
path: "/workflow.WorkflowService/deleteEdge",
|
|
1224
|
+
requestStream: false,
|
|
1225
|
+
responseStream: false,
|
|
1226
|
+
requestSerialize: (value) => Buffer.from(exports.DeleteEdgeRequest.encode(value).finish()),
|
|
1227
|
+
requestDeserialize: (value) => exports.DeleteEdgeRequest.decode(value),
|
|
1228
|
+
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
1229
|
+
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
1230
|
+
},
|
|
1231
|
+
};
|