@code0-tech/tucana 0.0.58 → 0.0.59
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/package.json +2 -2
- package/pb/aquila.action_pb.d.ts +39 -2
- package/pb/aquila.action_pb.js +74 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code0-tech/tucana",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.59",
|
|
4
4
|
"description": "Code0 GRPC Protocol",
|
|
5
5
|
"homepage": "https://github.com/code0-tech/tucana#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@protobuf-ts/plugin": "^2.11.1",
|
|
25
|
-
"protoc": "^
|
|
25
|
+
"protoc": "^34.0.0"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"helpers/*.ts",
|
package/pb/aquila.action_pb.d.ts
CHANGED
|
@@ -88,6 +88,19 @@ export interface ExecutionRequest {
|
|
|
88
88
|
*/
|
|
89
89
|
projectId: bigint;
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf message aquila.ActionRuntimeError
|
|
93
|
+
*/
|
|
94
|
+
export interface ActionRuntimeError {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf field: string code = 1
|
|
97
|
+
*/
|
|
98
|
+
code: string;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from protobuf field: optional string description = 2
|
|
101
|
+
*/
|
|
102
|
+
description?: string;
|
|
103
|
+
}
|
|
91
104
|
/**
|
|
92
105
|
* Result from executed flows by an action
|
|
93
106
|
*
|
|
@@ -103,9 +116,23 @@ export interface ExecutionResult {
|
|
|
103
116
|
/**
|
|
104
117
|
* Result of executed flow
|
|
105
118
|
*
|
|
106
|
-
* @generated from protobuf
|
|
119
|
+
* @generated from protobuf oneof: result
|
|
107
120
|
*/
|
|
108
|
-
result
|
|
121
|
+
result: {
|
|
122
|
+
oneofKind: "success";
|
|
123
|
+
/**
|
|
124
|
+
* @generated from protobuf field: shared.Value success = 2
|
|
125
|
+
*/
|
|
126
|
+
success: Value;
|
|
127
|
+
} | {
|
|
128
|
+
oneofKind: "error";
|
|
129
|
+
/**
|
|
130
|
+
* @generated from protobuf field: aquila.ActionRuntimeError error = 3
|
|
131
|
+
*/
|
|
132
|
+
error: ActionRuntimeError;
|
|
133
|
+
} | {
|
|
134
|
+
oneofKind: undefined;
|
|
135
|
+
};
|
|
109
136
|
}
|
|
110
137
|
/**
|
|
111
138
|
* @generated from protobuf message aquila.TransferRequest
|
|
@@ -202,6 +229,16 @@ declare class ExecutionRequest$Type extends MessageType<ExecutionRequest> {
|
|
|
202
229
|
* @generated MessageType for protobuf message aquila.ExecutionRequest
|
|
203
230
|
*/
|
|
204
231
|
export declare const ExecutionRequest: ExecutionRequest$Type;
|
|
232
|
+
declare class ActionRuntimeError$Type extends MessageType<ActionRuntimeError> {
|
|
233
|
+
constructor();
|
|
234
|
+
create(value?: PartialMessage<ActionRuntimeError>): ActionRuntimeError;
|
|
235
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionRuntimeError): ActionRuntimeError;
|
|
236
|
+
internalBinaryWrite(message: ActionRuntimeError, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* @generated MessageType for protobuf message aquila.ActionRuntimeError
|
|
240
|
+
*/
|
|
241
|
+
export declare const ActionRuntimeError: ActionRuntimeError$Type;
|
|
205
242
|
declare class ExecutionResult$Type extends MessageType<ExecutionResult> {
|
|
206
243
|
constructor();
|
|
207
244
|
create(value?: PartialMessage<ExecutionResult>): ExecutionResult;
|
package/pb/aquila.action_pb.js
CHANGED
|
@@ -209,16 +209,72 @@ class ExecutionRequest$Type extends MessageType {
|
|
|
209
209
|
*/
|
|
210
210
|
export const ExecutionRequest = new ExecutionRequest$Type();
|
|
211
211
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
212
|
+
class ActionRuntimeError$Type extends MessageType {
|
|
213
|
+
constructor() {
|
|
214
|
+
super("aquila.ActionRuntimeError", [
|
|
215
|
+
{ no: 1, name: "code", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
216
|
+
{ no: 2, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
217
|
+
]);
|
|
218
|
+
}
|
|
219
|
+
create(value) {
|
|
220
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
221
|
+
message.code = "";
|
|
222
|
+
if (value !== undefined)
|
|
223
|
+
reflectionMergePartial(this, message, value);
|
|
224
|
+
return message;
|
|
225
|
+
}
|
|
226
|
+
internalBinaryRead(reader, length, options, target) {
|
|
227
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
228
|
+
while (reader.pos < end) {
|
|
229
|
+
let [fieldNo, wireType] = reader.tag();
|
|
230
|
+
switch (fieldNo) {
|
|
231
|
+
case /* string code */ 1:
|
|
232
|
+
message.code = reader.string();
|
|
233
|
+
break;
|
|
234
|
+
case /* optional string description */ 2:
|
|
235
|
+
message.description = reader.string();
|
|
236
|
+
break;
|
|
237
|
+
default:
|
|
238
|
+
let u = options.readUnknownField;
|
|
239
|
+
if (u === "throw")
|
|
240
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
241
|
+
let d = reader.skip(wireType);
|
|
242
|
+
if (u !== false)
|
|
243
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return message;
|
|
247
|
+
}
|
|
248
|
+
internalBinaryWrite(message, writer, options) {
|
|
249
|
+
/* string code = 1; */
|
|
250
|
+
if (message.code !== "")
|
|
251
|
+
writer.tag(1, WireType.LengthDelimited).string(message.code);
|
|
252
|
+
/* optional string description = 2; */
|
|
253
|
+
if (message.description !== undefined)
|
|
254
|
+
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
|
255
|
+
let u = options.writeUnknownFields;
|
|
256
|
+
if (u !== false)
|
|
257
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
258
|
+
return writer;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* @generated MessageType for protobuf message aquila.ActionRuntimeError
|
|
263
|
+
*/
|
|
264
|
+
export const ActionRuntimeError = new ActionRuntimeError$Type();
|
|
265
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
212
266
|
class ExecutionResult$Type extends MessageType {
|
|
213
267
|
constructor() {
|
|
214
268
|
super("aquila.ExecutionResult", [
|
|
215
269
|
{ no: 1, name: "execution_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
216
|
-
{ no: 2, name: "
|
|
270
|
+
{ no: 2, name: "success", kind: "message", oneof: "result", T: () => Value },
|
|
271
|
+
{ no: 3, name: "error", kind: "message", oneof: "result", T: () => ActionRuntimeError }
|
|
217
272
|
]);
|
|
218
273
|
}
|
|
219
274
|
create(value) {
|
|
220
275
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
221
276
|
message.executionIdentifier = "";
|
|
277
|
+
message.result = { oneofKind: undefined };
|
|
222
278
|
if (value !== undefined)
|
|
223
279
|
reflectionMergePartial(this, message, value);
|
|
224
280
|
return message;
|
|
@@ -231,8 +287,17 @@ class ExecutionResult$Type extends MessageType {
|
|
|
231
287
|
case /* string execution_identifier */ 1:
|
|
232
288
|
message.executionIdentifier = reader.string();
|
|
233
289
|
break;
|
|
234
|
-
case /* shared.Value
|
|
235
|
-
message.result =
|
|
290
|
+
case /* shared.Value success */ 2:
|
|
291
|
+
message.result = {
|
|
292
|
+
oneofKind: "success",
|
|
293
|
+
success: Value.internalBinaryRead(reader, reader.uint32(), options, message.result.success)
|
|
294
|
+
};
|
|
295
|
+
break;
|
|
296
|
+
case /* aquila.ActionRuntimeError error */ 3:
|
|
297
|
+
message.result = {
|
|
298
|
+
oneofKind: "error",
|
|
299
|
+
error: ActionRuntimeError.internalBinaryRead(reader, reader.uint32(), options, message.result.error)
|
|
300
|
+
};
|
|
236
301
|
break;
|
|
237
302
|
default:
|
|
238
303
|
let u = options.readUnknownField;
|
|
@@ -249,9 +314,12 @@ class ExecutionResult$Type extends MessageType {
|
|
|
249
314
|
/* string execution_identifier = 1; */
|
|
250
315
|
if (message.executionIdentifier !== "")
|
|
251
316
|
writer.tag(1, WireType.LengthDelimited).string(message.executionIdentifier);
|
|
252
|
-
/* shared.Value
|
|
253
|
-
if (message.result)
|
|
254
|
-
Value.internalBinaryWrite(message.result, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
317
|
+
/* shared.Value success = 2; */
|
|
318
|
+
if (message.result.oneofKind === "success")
|
|
319
|
+
Value.internalBinaryWrite(message.result.success, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
320
|
+
/* aquila.ActionRuntimeError error = 3; */
|
|
321
|
+
if (message.result.oneofKind === "error")
|
|
322
|
+
ActionRuntimeError.internalBinaryWrite(message.result.error, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
255
323
|
let u = options.writeUnknownFields;
|
|
256
324
|
if (u !== false)
|
|
257
325
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|