geniebox-shared-lib 2.4.1 → 2.4.2
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.
|
@@ -132,6 +132,17 @@ export interface WorkflowsResponse {
|
|
|
132
132
|
workflows: Workflow[];
|
|
133
133
|
total: number;
|
|
134
134
|
}
|
|
135
|
+
export interface SaveStructureRequest {
|
|
136
|
+
workflowId: string;
|
|
137
|
+
/** Auth */
|
|
138
|
+
userId: string;
|
|
139
|
+
nodes: WorkflowNode[];
|
|
140
|
+
edges: WorkflowEdge[];
|
|
141
|
+
/** IDs to delete */
|
|
142
|
+
deleteNodes: string[];
|
|
143
|
+
/** IDs to delete */
|
|
144
|
+
deleteEdges: string[];
|
|
145
|
+
}
|
|
135
146
|
export declare const WORKFLOW_PACKAGE_NAME = "workflow";
|
|
136
147
|
export declare const Workflow: MessageFns<Workflow>;
|
|
137
148
|
export declare const WorkflowNode: MessageFns<WorkflowNode>;
|
|
@@ -148,6 +159,7 @@ export declare const DeleteNodeRequest: MessageFns<DeleteNodeRequest>;
|
|
|
148
159
|
export declare const CreateEdgeRequest: MessageFns<CreateEdgeRequest>;
|
|
149
160
|
export declare const DeleteEdgeRequest: MessageFns<DeleteEdgeRequest>;
|
|
150
161
|
export declare const WorkflowsResponse: MessageFns<WorkflowsResponse>;
|
|
162
|
+
export declare const SaveStructureRequest: MessageFns<SaveStructureRequest>;
|
|
151
163
|
export interface WorkflowServiceClient {
|
|
152
164
|
createWorkflow(request: CreateWorkflowRequest, metadata?: Metadata): Observable<Workflow>;
|
|
153
165
|
/** Returns graph */
|
|
@@ -160,6 +172,7 @@ export interface WorkflowServiceClient {
|
|
|
160
172
|
deleteNode(request: DeleteNodeRequest, metadata?: Metadata): Observable<Empty>;
|
|
161
173
|
createEdge(request: CreateEdgeRequest, metadata?: Metadata): Observable<WorkflowEdge>;
|
|
162
174
|
deleteEdge(request: DeleteEdgeRequest, metadata?: Metadata): Observable<Empty>;
|
|
175
|
+
saveStructure(request: SaveStructureRequest, metadata?: Metadata): Observable<Empty>;
|
|
163
176
|
}
|
|
164
177
|
export interface WorkflowServiceController {
|
|
165
178
|
createWorkflow(request: CreateWorkflowRequest, metadata?: Metadata): Promise<Workflow> | Observable<Workflow> | Workflow;
|
|
@@ -173,6 +186,7 @@ export interface WorkflowServiceController {
|
|
|
173
186
|
deleteNode(request: DeleteNodeRequest, metadata?: Metadata): void;
|
|
174
187
|
createEdge(request: CreateEdgeRequest, metadata?: Metadata): Promise<WorkflowEdge> | Observable<WorkflowEdge> | WorkflowEdge;
|
|
175
188
|
deleteEdge(request: DeleteEdgeRequest, metadata?: Metadata): void;
|
|
189
|
+
saveStructure(request: SaveStructureRequest, metadata?: Metadata): void;
|
|
176
190
|
}
|
|
177
191
|
export declare function WorkflowServiceControllerMethods(): (constructor: Function) => void;
|
|
178
192
|
export declare const WORKFLOW_SERVICE_NAME = "WorkflowService";
|
|
@@ -269,6 +283,15 @@ export declare const WorkflowServiceService: {
|
|
|
269
283
|
readonly responseSerialize: (value: Empty) => Buffer;
|
|
270
284
|
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
271
285
|
};
|
|
286
|
+
readonly saveStructure: {
|
|
287
|
+
readonly path: "/workflow.WorkflowService/saveStructure";
|
|
288
|
+
readonly requestStream: false;
|
|
289
|
+
readonly responseStream: false;
|
|
290
|
+
readonly requestSerialize: (value: SaveStructureRequest) => Buffer;
|
|
291
|
+
readonly requestDeserialize: (value: Buffer) => SaveStructureRequest;
|
|
292
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
293
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
294
|
+
};
|
|
272
295
|
};
|
|
273
296
|
export interface WorkflowServiceServer extends UntypedServiceImplementation {
|
|
274
297
|
createWorkflow: handleUnaryCall<CreateWorkflowRequest, Workflow>;
|
|
@@ -282,6 +305,7 @@ export interface WorkflowServiceServer extends UntypedServiceImplementation {
|
|
|
282
305
|
deleteNode: handleUnaryCall<DeleteNodeRequest, Empty>;
|
|
283
306
|
createEdge: handleUnaryCall<CreateEdgeRequest, WorkflowEdge>;
|
|
284
307
|
deleteEdge: handleUnaryCall<DeleteEdgeRequest, Empty>;
|
|
308
|
+
saveStructure: handleUnaryCall<SaveStructureRequest, Empty>;
|
|
285
309
|
}
|
|
286
310
|
export interface MessageFns<T> {
|
|
287
311
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v5.28.2
|
|
6
6
|
// source: workflow.proto
|
|
7
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;
|
|
8
|
+
exports.WorkflowServiceService = exports.WORKFLOW_SERVICE_NAME = exports.SaveStructureRequest = 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
9
|
exports.WorkflowServiceControllerMethods = WorkflowServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
@@ -1100,6 +1100,89 @@ exports.WorkflowsResponse = {
|
|
|
1100
1100
|
return message;
|
|
1101
1101
|
},
|
|
1102
1102
|
};
|
|
1103
|
+
function createBaseSaveStructureRequest() {
|
|
1104
|
+
return { workflowId: "", userId: "", nodes: [], edges: [], deleteNodes: [], deleteEdges: [] };
|
|
1105
|
+
}
|
|
1106
|
+
exports.SaveStructureRequest = {
|
|
1107
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1108
|
+
if (message.workflowId !== "") {
|
|
1109
|
+
writer.uint32(10).string(message.workflowId);
|
|
1110
|
+
}
|
|
1111
|
+
if (message.userId !== "") {
|
|
1112
|
+
writer.uint32(18).string(message.userId);
|
|
1113
|
+
}
|
|
1114
|
+
for (const v of message.nodes) {
|
|
1115
|
+
exports.WorkflowNode.encode(v, writer.uint32(26).fork()).join();
|
|
1116
|
+
}
|
|
1117
|
+
for (const v of message.edges) {
|
|
1118
|
+
exports.WorkflowEdge.encode(v, writer.uint32(34).fork()).join();
|
|
1119
|
+
}
|
|
1120
|
+
for (const v of message.deleteNodes) {
|
|
1121
|
+
writer.uint32(42).string(v);
|
|
1122
|
+
}
|
|
1123
|
+
for (const v of message.deleteEdges) {
|
|
1124
|
+
writer.uint32(50).string(v);
|
|
1125
|
+
}
|
|
1126
|
+
return writer;
|
|
1127
|
+
},
|
|
1128
|
+
decode(input, length) {
|
|
1129
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1130
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1131
|
+
const message = createBaseSaveStructureRequest();
|
|
1132
|
+
while (reader.pos < end) {
|
|
1133
|
+
const tag = reader.uint32();
|
|
1134
|
+
switch (tag >>> 3) {
|
|
1135
|
+
case 1: {
|
|
1136
|
+
if (tag !== 10) {
|
|
1137
|
+
break;
|
|
1138
|
+
}
|
|
1139
|
+
message.workflowId = reader.string();
|
|
1140
|
+
continue;
|
|
1141
|
+
}
|
|
1142
|
+
case 2: {
|
|
1143
|
+
if (tag !== 18) {
|
|
1144
|
+
break;
|
|
1145
|
+
}
|
|
1146
|
+
message.userId = reader.string();
|
|
1147
|
+
continue;
|
|
1148
|
+
}
|
|
1149
|
+
case 3: {
|
|
1150
|
+
if (tag !== 26) {
|
|
1151
|
+
break;
|
|
1152
|
+
}
|
|
1153
|
+
message.nodes.push(exports.WorkflowNode.decode(reader, reader.uint32()));
|
|
1154
|
+
continue;
|
|
1155
|
+
}
|
|
1156
|
+
case 4: {
|
|
1157
|
+
if (tag !== 34) {
|
|
1158
|
+
break;
|
|
1159
|
+
}
|
|
1160
|
+
message.edges.push(exports.WorkflowEdge.decode(reader, reader.uint32()));
|
|
1161
|
+
continue;
|
|
1162
|
+
}
|
|
1163
|
+
case 5: {
|
|
1164
|
+
if (tag !== 42) {
|
|
1165
|
+
break;
|
|
1166
|
+
}
|
|
1167
|
+
message.deleteNodes.push(reader.string());
|
|
1168
|
+
continue;
|
|
1169
|
+
}
|
|
1170
|
+
case 6: {
|
|
1171
|
+
if (tag !== 50) {
|
|
1172
|
+
break;
|
|
1173
|
+
}
|
|
1174
|
+
message.deleteEdges.push(reader.string());
|
|
1175
|
+
continue;
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1179
|
+
break;
|
|
1180
|
+
}
|
|
1181
|
+
reader.skip(tag & 7);
|
|
1182
|
+
}
|
|
1183
|
+
return message;
|
|
1184
|
+
},
|
|
1185
|
+
};
|
|
1103
1186
|
protobufjs_1.wrappers[".google.protobuf.Struct"] = { fromObject: struct_interface_1.Struct.wrap, toObject: struct_interface_1.Struct.unwrap };
|
|
1104
1187
|
function WorkflowServiceControllerMethods() {
|
|
1105
1188
|
return function (constructor) {
|
|
@@ -1114,6 +1197,7 @@ function WorkflowServiceControllerMethods() {
|
|
|
1114
1197
|
"deleteNode",
|
|
1115
1198
|
"createEdge",
|
|
1116
1199
|
"deleteEdge",
|
|
1200
|
+
"saveStructure",
|
|
1117
1201
|
];
|
|
1118
1202
|
for (const method of grpcMethods) {
|
|
1119
1203
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
@@ -1219,4 +1303,13 @@ exports.WorkflowServiceService = {
|
|
|
1219
1303
|
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
1220
1304
|
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
1221
1305
|
},
|
|
1306
|
+
saveStructure: {
|
|
1307
|
+
path: "/workflow.WorkflowService/saveStructure",
|
|
1308
|
+
requestStream: false,
|
|
1309
|
+
responseStream: false,
|
|
1310
|
+
requestSerialize: (value) => Buffer.from(exports.SaveStructureRequest.encode(value).finish()),
|
|
1311
|
+
requestDeserialize: (value) => exports.SaveStructureRequest.decode(value),
|
|
1312
|
+
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
1313
|
+
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
1314
|
+
},
|
|
1222
1315
|
};
|