@code0-tech/tucana 0.0.61 → 0.0.64
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/helpers/helpers.d.ts +1 -0
- package/helpers/helpers.js +1 -17
- package/helpers/shared.struct_helper.d.ts +5 -0
- package/helpers/shared.struct_helper.js +34 -7
- package/helpers/shared.struct_helper.ts +43 -8
- package/package.json +6 -3
- package/pb/_generated/shared.flow_definition_pb.d.ts +9 -17
- package/pb/_generated/shared.runtime_status_pb.d.ts +22 -50
- package/pb/_generated/shared.struct_pb.d.ts +52 -19
- package/pb/_generated/shared.struct_pb.js +65 -5
- package/pb/aquila.d.ts +24 -0
- package/pb/aquila.js +24 -0
- package/pb/sagittarius.d.ts +36 -0
- package/pb/sagittarius.js +36 -0
- package/pb/shared.d.ts +18 -0
- package/pb/shared.js +18 -34
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./shared.struct_helper.js";
|
package/helpers/helpers.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./shared.struct_helper.js"), exports);
|
|
1
|
+
export * from "./shared.struct_helper.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Value } from "../pb/shared";
|
|
2
|
+
type PlainValue = null | bigint | number | string | boolean | Array<PlainValue> | object;
|
|
3
|
+
declare function toAllowedValue(value: Value): PlainValue;
|
|
4
|
+
declare function constructValue(value: PlainValue): Value;
|
|
5
|
+
export { toAllowedValue, constructValue, PlainValue };
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toAllowedValue = toAllowedValue;
|
|
4
|
-
exports.constructValue = constructValue;
|
|
5
1
|
function toAllowedValue(value) {
|
|
6
2
|
switch (value.kind.oneofKind) {
|
|
7
3
|
case "nullValue":
|
|
8
4
|
return null;
|
|
9
5
|
case "numberValue":
|
|
10
|
-
|
|
6
|
+
const numberValue = value.kind.numberValue;
|
|
7
|
+
if (numberValue.number.oneofKind === "integer") {
|
|
8
|
+
return numberValue.number.integer;
|
|
9
|
+
}
|
|
10
|
+
else if (numberValue.number.oneofKind === "float") {
|
|
11
|
+
return numberValue.number.float;
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
throw new Error("Unsupported NumberValue number kind: " + numberValue.number.oneofKind);
|
|
15
|
+
}
|
|
11
16
|
case "stringValue":
|
|
12
17
|
return value.kind.stringValue;
|
|
13
18
|
case "boolValue":
|
|
@@ -28,8 +33,29 @@ function constructValue(value) {
|
|
|
28
33
|
if (value === null) {
|
|
29
34
|
return { kind: { oneofKind: "nullValue", nullValue: 0 } };
|
|
30
35
|
}
|
|
31
|
-
if (typeof value === "number") {
|
|
32
|
-
|
|
36
|
+
if (typeof value === "number" || typeof value === "bigint") {
|
|
37
|
+
if (Number.isInteger(value) || typeof value === "bigint") {
|
|
38
|
+
return {
|
|
39
|
+
kind: {
|
|
40
|
+
oneofKind: "numberValue", numberValue: {
|
|
41
|
+
number: {
|
|
42
|
+
oneofKind: "integer",
|
|
43
|
+
integer: BigInt(value)
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
kind: {
|
|
51
|
+
oneofKind: "numberValue", numberValue: {
|
|
52
|
+
number: {
|
|
53
|
+
oneofKind: "float",
|
|
54
|
+
float: value
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
33
59
|
}
|
|
34
60
|
if (typeof value === "string") {
|
|
35
61
|
return { kind: { oneofKind: "stringValue", stringValue: value } };
|
|
@@ -60,3 +86,4 @@ function constructValue(value) {
|
|
|
60
86
|
}
|
|
61
87
|
throw new Error(`Unsupported value type: ${typeof value}`);
|
|
62
88
|
}
|
|
89
|
+
export { toAllowedValue, constructValue };
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import {Value} from "../pb/shared";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
type PlainValue = null | bigint | number | string | boolean | Array<PlainValue> | object;
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
function toAllowedValue(value: Value): PlainValue {
|
|
6
6
|
switch (value.kind.oneofKind) {
|
|
7
7
|
case "nullValue":
|
|
8
8
|
return null;
|
|
9
9
|
case "numberValue":
|
|
10
|
-
|
|
10
|
+
const numberValue = value.kind.numberValue;
|
|
11
|
+
if (numberValue.number.oneofKind === "integer") {
|
|
12
|
+
return numberValue.number.integer;
|
|
13
|
+
} else if (numberValue.number.oneofKind === "float") {
|
|
14
|
+
return numberValue.number.float;
|
|
15
|
+
} else {
|
|
16
|
+
throw new Error("Unsupported NumberValue number kind: " + numberValue.number.oneofKind);
|
|
17
|
+
}
|
|
11
18
|
case "stringValue":
|
|
12
19
|
return value.kind.stringValue;
|
|
13
20
|
case "boolValue":
|
|
@@ -15,7 +22,7 @@ export function toAllowedValue(value: Value): PlainValue {
|
|
|
15
22
|
case "listValue":
|
|
16
23
|
return value.kind.listValue.values.map(toAllowedValue);
|
|
17
24
|
case "structValue":
|
|
18
|
-
const obj: {[key: string]: PlainValue} = {};
|
|
25
|
+
const obj: { [key: string]: PlainValue } = {};
|
|
19
26
|
for (const [k, v] of Object.entries(value.kind.structValue.fields)) {
|
|
20
27
|
obj[k] = toAllowedValue(v);
|
|
21
28
|
}
|
|
@@ -26,12 +33,34 @@ export function toAllowedValue(value: Value): PlainValue {
|
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
|
|
29
|
-
|
|
36
|
+
function constructValue(value: PlainValue): Value {
|
|
30
37
|
if (value === null) {
|
|
31
38
|
return {kind: {oneofKind: "nullValue", nullValue: 0}};
|
|
32
39
|
}
|
|
33
|
-
if (typeof value === "number") {
|
|
34
|
-
|
|
40
|
+
if (typeof value === "number" || typeof value === "bigint") {
|
|
41
|
+
if (Number.isInteger(value) || typeof value === "bigint") {
|
|
42
|
+
return {
|
|
43
|
+
kind: {
|
|
44
|
+
oneofKind: "numberValue", numberValue: {
|
|
45
|
+
number: {
|
|
46
|
+
oneofKind: "integer",
|
|
47
|
+
integer: BigInt(value)
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return {
|
|
55
|
+
kind: {
|
|
56
|
+
oneofKind: "numberValue", numberValue: {
|
|
57
|
+
number: {
|
|
58
|
+
oneofKind: "float",
|
|
59
|
+
float: value
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
35
64
|
}
|
|
36
65
|
if (typeof value === "string") {
|
|
37
66
|
return {kind: {oneofKind: "stringValue", stringValue: value}};
|
|
@@ -49,7 +78,7 @@ export function constructValue(value: PlainValue): Value {
|
|
|
49
78
|
};
|
|
50
79
|
}
|
|
51
80
|
if (typeof value === "object") {
|
|
52
|
-
const structFields: {[key: string]: Value} = {};
|
|
81
|
+
const structFields: { [key: string]: Value } = {};
|
|
53
82
|
for (const [k, v] of Object.entries(value)) {
|
|
54
83
|
structFields[k] = constructValue(v);
|
|
55
84
|
}
|
|
@@ -62,3 +91,9 @@ export function constructValue(value: PlainValue): Value {
|
|
|
62
91
|
}
|
|
63
92
|
throw new Error(`Unsupported value type: ${typeof value}`);
|
|
64
93
|
}
|
|
94
|
+
|
|
95
|
+
export {
|
|
96
|
+
toAllowedValue,
|
|
97
|
+
constructValue,
|
|
98
|
+
PlainValue
|
|
99
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code0-tech/tucana",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.64",
|
|
4
4
|
"description": "Code0 GRPC Protocol",
|
|
5
5
|
"homepage": "https://github.com/code0-tech/tucana#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -19,13 +19,16 @@
|
|
|
19
19
|
"generate:aquila": "protoc --ts_opt=add_pb_suffix --ts_opt=output_javascript --ts_opt=generate_dependencies --ts_out=pb/_generated --proto_path=../../proto/aquila --proto_path=../../proto/shared ../../proto/aquila/*.proto",
|
|
20
20
|
"generate:sagittarius": "protoc --ts_opt=add_pb_suffix --ts_opt=output_javascript --ts_opt=generate_dependencies --ts_out=pb/_generated --proto_path=../../proto/sagittarius --proto_path=../../proto/shared ../../proto/sagittarius/*.proto",
|
|
21
21
|
"generate:shared": "protoc --ts_opt=add_pb_suffix --ts_opt=output_javascript --ts_opt=generate_dependencies --ts_out=pb/_generated --proto_path=../../proto/shared ../../proto/shared/*.proto",
|
|
22
|
-
"generate": "npm run clean && npm run generate:shared && npm run generate:sagittarius && npm run generate:aquila && npm run generate:exports",
|
|
22
|
+
"generate": "npm run clean && npm run generate:shared && npm run generate:sagittarius && npm run generate:aquila && npm run generate:exports && npm run generate:replace-enums",
|
|
23
23
|
"generate:exports": "node scripts/generateExports.mjs",
|
|
24
|
+
"generate:replace-enums": "npx ts-node scripts/replace-enums.ts",
|
|
24
25
|
"clean": "rm -rf pb/_generated/*.js && rm -rf pb/_generated/*.ts && rm -rf helpers/*.js"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@protobuf-ts/plugin": "^2.11.1",
|
|
28
|
-
"protoc": "^34.0.0"
|
|
29
|
+
"protoc": "^34.0.0",
|
|
30
|
+
"ts-morph": "^27.0.2",
|
|
31
|
+
"ts-node": "^10.9.2"
|
|
29
32
|
},
|
|
30
33
|
"files": [
|
|
31
34
|
"pb",
|
|
@@ -108,23 +108,15 @@ export interface FlowTypeSetting {
|
|
|
108
108
|
*/
|
|
109
109
|
linkedDataTypeIdentifiers: string[];
|
|
110
110
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
* @generated from protobuf enum value: NONE = 1;
|
|
121
|
-
*/
|
|
122
|
-
NONE = 1,
|
|
123
|
-
/**
|
|
124
|
-
* @generated from protobuf enum value: PROJECT = 2;
|
|
125
|
-
*/
|
|
126
|
-
PROJECT = 2
|
|
127
|
-
}
|
|
111
|
+
|
|
112
|
+
export declare const FlowTypeSetting_UniquenessScope: {
|
|
113
|
+
readonly UNKNOWN: 0;
|
|
114
|
+
readonly NONE: 1;
|
|
115
|
+
readonly PROJECT: 2;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export type FlowTypeSetting_UniquenessScope = typeof FlowTypeSetting_UniquenessScope[keyof typeof FlowTypeSetting_UniquenessScope];
|
|
119
|
+
|
|
128
120
|
declare class FlowType$Type extends MessageType<FlowType> {
|
|
129
121
|
constructor();
|
|
130
122
|
create(value?: PartialMessage<FlowType>): FlowType;
|
|
@@ -63,31 +63,17 @@ export interface AdapterRuntimeStatus {
|
|
|
63
63
|
*/
|
|
64
64
|
configurations: AdapterConfiguration[];
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
NOT_RESPONDING = 1,
|
|
78
|
-
/**
|
|
79
|
-
* @generated from protobuf enum value: NOT_READY = 2;
|
|
80
|
-
*/
|
|
81
|
-
NOT_READY = 2,
|
|
82
|
-
/**
|
|
83
|
-
* @generated from protobuf enum value: RUNNING = 3;
|
|
84
|
-
*/
|
|
85
|
-
RUNNING = 3,
|
|
86
|
-
/**
|
|
87
|
-
* @generated from protobuf enum value: STOPPED = 4;
|
|
88
|
-
*/
|
|
89
|
-
STOPPED = 4
|
|
90
|
-
}
|
|
66
|
+
|
|
67
|
+
export declare const AdapterRuntimeStatus_Status: {
|
|
68
|
+
readonly UNKNOWN: 0;
|
|
69
|
+
readonly NOT_RESPONDING: 1;
|
|
70
|
+
readonly NOT_READY: 2;
|
|
71
|
+
readonly RUNNING: 3;
|
|
72
|
+
readonly STOPPED: 4;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export type AdapterRuntimeStatus_Status = typeof AdapterRuntimeStatus_Status[keyof typeof AdapterRuntimeStatus_Status];
|
|
76
|
+
|
|
91
77
|
/**
|
|
92
78
|
* @generated from protobuf message shared.ExecutionRuntimeStatus
|
|
93
79
|
*/
|
|
@@ -109,31 +95,17 @@ export interface ExecutionRuntimeStatus {
|
|
|
109
95
|
*/
|
|
110
96
|
features: RuntimeFeature[];
|
|
111
97
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
NOT_RESPONDING = 1,
|
|
124
|
-
/**
|
|
125
|
-
* @generated from protobuf enum value: NOT_READY = 2;
|
|
126
|
-
*/
|
|
127
|
-
NOT_READY = 2,
|
|
128
|
-
/**
|
|
129
|
-
* @generated from protobuf enum value: RUNNING = 3;
|
|
130
|
-
*/
|
|
131
|
-
RUNNING = 3,
|
|
132
|
-
/**
|
|
133
|
-
* @generated from protobuf enum value: STOPPED = 4;
|
|
134
|
-
*/
|
|
135
|
-
STOPPED = 4
|
|
136
|
-
}
|
|
98
|
+
|
|
99
|
+
export declare const ExecutionRuntimeStatus_Status: {
|
|
100
|
+
readonly UNKNOWN: 0;
|
|
101
|
+
readonly NOT_RESPONDING: 1;
|
|
102
|
+
readonly NOT_READY: 2;
|
|
103
|
+
readonly RUNNING: 3;
|
|
104
|
+
readonly STOPPED: 4;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export type ExecutionRuntimeStatus_Status = typeof ExecutionRuntimeStatus_Status[keyof typeof ExecutionRuntimeStatus_Status];
|
|
108
|
+
|
|
137
109
|
declare class AdapterConfiguration$Type extends MessageType<AdapterConfiguration> {
|
|
138
110
|
constructor();
|
|
139
111
|
create(value?: PartialMessage<AdapterConfiguration>): AdapterConfiguration;
|
|
@@ -92,11 +92,11 @@ export interface Value {
|
|
|
92
92
|
} | {
|
|
93
93
|
oneofKind: "numberValue";
|
|
94
94
|
/**
|
|
95
|
-
* Represents a
|
|
95
|
+
* Represents a numberic value.
|
|
96
96
|
*
|
|
97
|
-
* @generated from protobuf field:
|
|
97
|
+
* @generated from protobuf field: shared.NumberValue number_value = 2
|
|
98
98
|
*/
|
|
99
|
-
numberValue:
|
|
99
|
+
numberValue: NumberValue;
|
|
100
100
|
} | {
|
|
101
101
|
oneofKind: "stringValue";
|
|
102
102
|
/**
|
|
@@ -134,36 +134,59 @@ export interface Value {
|
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
/**
|
|
137
|
-
* `
|
|
137
|
+
* `NumberValue` represents a numeric value which can be either an
|
|
138
|
+
* integer or a floating-point number.
|
|
138
139
|
*
|
|
139
|
-
* The JSON representation for `
|
|
140
|
+
* The JSON representation for `NumberValue` is JSON number.
|
|
140
141
|
*
|
|
141
|
-
* @generated from protobuf message shared.
|
|
142
|
+
* @generated from protobuf message shared.NumberValue
|
|
142
143
|
*/
|
|
143
|
-
export interface
|
|
144
|
+
export interface NumberValue {
|
|
144
145
|
/**
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
* @generated from protobuf field: repeated shared.Value values = 1
|
|
146
|
+
* @generated from protobuf oneof: number
|
|
148
147
|
*/
|
|
149
|
-
|
|
148
|
+
number: {
|
|
149
|
+
oneofKind: "integer";
|
|
150
|
+
/**
|
|
151
|
+
* Represents an integer value.
|
|
152
|
+
*
|
|
153
|
+
* @generated from protobuf field: int64 integer = 1
|
|
154
|
+
*/
|
|
155
|
+
integer: bigint;
|
|
156
|
+
} | {
|
|
157
|
+
oneofKind: "float";
|
|
158
|
+
/**
|
|
159
|
+
* Represents a floating-point value.
|
|
160
|
+
*
|
|
161
|
+
* @generated from protobuf field: double float = 2
|
|
162
|
+
*/
|
|
163
|
+
float: number;
|
|
164
|
+
} | {
|
|
165
|
+
oneofKind: undefined;
|
|
166
|
+
};
|
|
150
167
|
}
|
|
151
168
|
/**
|
|
152
|
-
* `
|
|
153
|
-
* `Value` type union.
|
|
169
|
+
* `ListValue` is a wrapper around a repeated field of values.
|
|
154
170
|
*
|
|
155
|
-
* The JSON representation for `
|
|
171
|
+
* The JSON representation for `ListValue` is JSON array.
|
|
156
172
|
*
|
|
157
|
-
* @generated from protobuf
|
|
173
|
+
* @generated from protobuf message shared.ListValue
|
|
158
174
|
*/
|
|
159
|
-
export
|
|
175
|
+
export interface ListValue {
|
|
160
176
|
/**
|
|
161
|
-
*
|
|
177
|
+
* Repeated field of dynamically typed values.
|
|
162
178
|
*
|
|
163
|
-
* @generated from protobuf
|
|
179
|
+
* @generated from protobuf field: repeated shared.Value values = 1
|
|
164
180
|
*/
|
|
165
|
-
|
|
181
|
+
values: Value[];
|
|
166
182
|
}
|
|
183
|
+
|
|
184
|
+
export declare const NullValue: {
|
|
185
|
+
readonly NULL_VALUE: 0;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export type NullValue = typeof NullValue[keyof typeof NullValue];
|
|
189
|
+
|
|
167
190
|
declare class Struct$Type extends MessageType<Struct> {
|
|
168
191
|
constructor();
|
|
169
192
|
create(value?: PartialMessage<Struct>): Struct;
|
|
@@ -185,6 +208,16 @@ declare class Value$Type extends MessageType<Value> {
|
|
|
185
208
|
* @generated MessageType for protobuf message shared.Value
|
|
186
209
|
*/
|
|
187
210
|
export declare const Value: Value$Type;
|
|
211
|
+
declare class NumberValue$Type extends MessageType<NumberValue> {
|
|
212
|
+
constructor();
|
|
213
|
+
create(value?: PartialMessage<NumberValue>): NumberValue;
|
|
214
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NumberValue): NumberValue;
|
|
215
|
+
internalBinaryWrite(message: NumberValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* @generated MessageType for protobuf message shared.NumberValue
|
|
219
|
+
*/
|
|
220
|
+
export declare const NumberValue: NumberValue$Type;
|
|
188
221
|
declare class ListValue$Type extends MessageType<ListValue> {
|
|
189
222
|
constructor();
|
|
190
223
|
create(value?: PartialMessage<ListValue>): ListValue;
|
|
@@ -130,7 +130,7 @@ class Value$Type extends MessageType {
|
|
|
130
130
|
constructor() {
|
|
131
131
|
super("shared.Value", [
|
|
132
132
|
{ no: 1, name: "null_value", kind: "enum", oneof: "kind", T: () => ["shared.NullValue", NullValue] },
|
|
133
|
-
{ no: 2, name: "number_value", kind: "
|
|
133
|
+
{ no: 2, name: "number_value", kind: "message", oneof: "kind", T: () => NumberValue },
|
|
134
134
|
{ no: 3, name: "string_value", kind: "scalar", oneof: "kind", T: 9 /*ScalarType.STRING*/ },
|
|
135
135
|
{ no: 4, name: "bool_value", kind: "scalar", oneof: "kind", T: 8 /*ScalarType.BOOL*/ },
|
|
136
136
|
{ no: 5, name: "struct_value", kind: "message", oneof: "kind", T: () => Struct },
|
|
@@ -155,10 +155,10 @@ class Value$Type extends MessageType {
|
|
|
155
155
|
nullValue: reader.int32()
|
|
156
156
|
};
|
|
157
157
|
break;
|
|
158
|
-
case /*
|
|
158
|
+
case /* shared.NumberValue number_value */ 2:
|
|
159
159
|
message.kind = {
|
|
160
160
|
oneofKind: "numberValue",
|
|
161
|
-
numberValue: reader.
|
|
161
|
+
numberValue: NumberValue.internalBinaryRead(reader, reader.uint32(), options, message.kind.numberValue)
|
|
162
162
|
};
|
|
163
163
|
break;
|
|
164
164
|
case /* string string_value */ 3:
|
|
@@ -200,9 +200,9 @@ class Value$Type extends MessageType {
|
|
|
200
200
|
/* shared.NullValue null_value = 1; */
|
|
201
201
|
if (message.kind.oneofKind === "nullValue")
|
|
202
202
|
writer.tag(1, WireType.Varint).int32(message.kind.nullValue);
|
|
203
|
-
/*
|
|
203
|
+
/* shared.NumberValue number_value = 2; */
|
|
204
204
|
if (message.kind.oneofKind === "numberValue")
|
|
205
|
-
writer.tag(2, WireType.
|
|
205
|
+
NumberValue.internalBinaryWrite(message.kind.numberValue, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
206
206
|
/* string string_value = 3; */
|
|
207
207
|
if (message.kind.oneofKind === "stringValue")
|
|
208
208
|
writer.tag(3, WireType.LengthDelimited).string(message.kind.stringValue);
|
|
@@ -226,6 +226,66 @@ class Value$Type extends MessageType {
|
|
|
226
226
|
*/
|
|
227
227
|
export const Value = new Value$Type();
|
|
228
228
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
229
|
+
class NumberValue$Type extends MessageType {
|
|
230
|
+
constructor() {
|
|
231
|
+
super("shared.NumberValue", [
|
|
232
|
+
{ no: 1, name: "integer", kind: "scalar", oneof: "number", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
233
|
+
{ no: 2, name: "float", kind: "scalar", oneof: "number", T: 1 /*ScalarType.DOUBLE*/ }
|
|
234
|
+
]);
|
|
235
|
+
}
|
|
236
|
+
create(value) {
|
|
237
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
238
|
+
message.number = { oneofKind: undefined };
|
|
239
|
+
if (value !== undefined)
|
|
240
|
+
reflectionMergePartial(this, message, value);
|
|
241
|
+
return message;
|
|
242
|
+
}
|
|
243
|
+
internalBinaryRead(reader, length, options, target) {
|
|
244
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
245
|
+
while (reader.pos < end) {
|
|
246
|
+
let [fieldNo, wireType] = reader.tag();
|
|
247
|
+
switch (fieldNo) {
|
|
248
|
+
case /* int64 integer */ 1:
|
|
249
|
+
message.number = {
|
|
250
|
+
oneofKind: "integer",
|
|
251
|
+
integer: reader.int64().toBigInt()
|
|
252
|
+
};
|
|
253
|
+
break;
|
|
254
|
+
case /* double float */ 2:
|
|
255
|
+
message.number = {
|
|
256
|
+
oneofKind: "float",
|
|
257
|
+
float: reader.double()
|
|
258
|
+
};
|
|
259
|
+
break;
|
|
260
|
+
default:
|
|
261
|
+
let u = options.readUnknownField;
|
|
262
|
+
if (u === "throw")
|
|
263
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
264
|
+
let d = reader.skip(wireType);
|
|
265
|
+
if (u !== false)
|
|
266
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return message;
|
|
270
|
+
}
|
|
271
|
+
internalBinaryWrite(message, writer, options) {
|
|
272
|
+
/* int64 integer = 1; */
|
|
273
|
+
if (message.number.oneofKind === "integer")
|
|
274
|
+
writer.tag(1, WireType.Varint).int64(message.number.integer);
|
|
275
|
+
/* double float = 2; */
|
|
276
|
+
if (message.number.oneofKind === "float")
|
|
277
|
+
writer.tag(2, WireType.Bit64).double(message.number.float);
|
|
278
|
+
let u = options.writeUnknownFields;
|
|
279
|
+
if (u !== false)
|
|
280
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
281
|
+
return writer;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* @generated MessageType for protobuf message shared.NumberValue
|
|
286
|
+
*/
|
|
287
|
+
export const NumberValue = new NumberValue$Type();
|
|
288
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
229
289
|
class ListValue$Type extends MessageType {
|
|
230
290
|
constructor() {
|
|
231
291
|
super("shared.ListValue", [
|
package/pb/aquila.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from "./_generated/aquila.action_pb.client.d.js";
|
|
2
|
+
export * from "./_generated/aquila.action_pb.client.js";
|
|
3
|
+
export * from "./_generated/aquila.action_pb.d.js";
|
|
4
|
+
export * from "./_generated/aquila.action_pb.js";
|
|
5
|
+
export * from "./_generated/aquila.data_type_pb.client.d.js";
|
|
6
|
+
export * from "./_generated/aquila.data_type_pb.client.js";
|
|
7
|
+
export * from "./_generated/aquila.data_type_pb.d.js";
|
|
8
|
+
export * from "./_generated/aquila.data_type_pb.js";
|
|
9
|
+
export * from "./_generated/aquila.flow_type_pb.client.d.js";
|
|
10
|
+
export * from "./_generated/aquila.flow_type_pb.client.js";
|
|
11
|
+
export * from "./_generated/aquila.flow_type_pb.d.js";
|
|
12
|
+
export * from "./_generated/aquila.flow_type_pb.js";
|
|
13
|
+
export * from "./_generated/aquila.runtime_function_pb.client.d.js";
|
|
14
|
+
export * from "./_generated/aquila.runtime_function_pb.client.js";
|
|
15
|
+
export * from "./_generated/aquila.runtime_function_pb.d.js";
|
|
16
|
+
export * from "./_generated/aquila.runtime_function_pb.js";
|
|
17
|
+
export * from "./_generated/aquila.runtime_status_pb.client.d.js";
|
|
18
|
+
export * from "./_generated/aquila.runtime_status_pb.client.js";
|
|
19
|
+
export * from "./_generated/aquila.runtime_status_pb.d.js";
|
|
20
|
+
export * from "./_generated/aquila.runtime_status_pb.js";
|
|
21
|
+
export * from "./_generated/aquila.runtime_usage_pb.client.d.js";
|
|
22
|
+
export * from "./_generated/aquila.runtime_usage_pb.client.js";
|
|
23
|
+
export * from "./_generated/aquila.runtime_usage_pb.d.js";
|
|
24
|
+
export * from "./_generated/aquila.runtime_usage_pb.js";
|
package/pb/aquila.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from "./_generated/aquila.action_pb.client.d.js";
|
|
2
|
+
export * from "./_generated/aquila.action_pb.client.js";
|
|
3
|
+
export * from "./_generated/aquila.action_pb.d.js";
|
|
4
|
+
export * from "./_generated/aquila.action_pb.js";
|
|
5
|
+
export * from "./_generated/aquila.data_type_pb.client.d.js";
|
|
6
|
+
export * from "./_generated/aquila.data_type_pb.client.js";
|
|
7
|
+
export * from "./_generated/aquila.data_type_pb.d.js";
|
|
8
|
+
export * from "./_generated/aquila.data_type_pb.js";
|
|
9
|
+
export * from "./_generated/aquila.flow_type_pb.client.d.js";
|
|
10
|
+
export * from "./_generated/aquila.flow_type_pb.client.js";
|
|
11
|
+
export * from "./_generated/aquila.flow_type_pb.d.js";
|
|
12
|
+
export * from "./_generated/aquila.flow_type_pb.js";
|
|
13
|
+
export * from "./_generated/aquila.runtime_function_pb.client.d.js";
|
|
14
|
+
export * from "./_generated/aquila.runtime_function_pb.client.js";
|
|
15
|
+
export * from "./_generated/aquila.runtime_function_pb.d.js";
|
|
16
|
+
export * from "./_generated/aquila.runtime_function_pb.js";
|
|
17
|
+
export * from "./_generated/aquila.runtime_status_pb.client.d.js";
|
|
18
|
+
export * from "./_generated/aquila.runtime_status_pb.client.js";
|
|
19
|
+
export * from "./_generated/aquila.runtime_status_pb.d.js";
|
|
20
|
+
export * from "./_generated/aquila.runtime_status_pb.js";
|
|
21
|
+
export * from "./_generated/aquila.runtime_usage_pb.client.d.js";
|
|
22
|
+
export * from "./_generated/aquila.runtime_usage_pb.client.js";
|
|
23
|
+
export * from "./_generated/aquila.runtime_usage_pb.d.js";
|
|
24
|
+
export * from "./_generated/aquila.runtime_usage_pb.js";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * from "./_generated/sagittarius.action_configuration_pb.client.d.js";
|
|
2
|
+
export * from "./_generated/sagittarius.action_configuration_pb.client.js";
|
|
3
|
+
export * from "./_generated/sagittarius.action_configuration_pb.d.js";
|
|
4
|
+
export * from "./_generated/sagittarius.action_configuration_pb.js";
|
|
5
|
+
export * from "./_generated/sagittarius.data_type_pb.client.d.js";
|
|
6
|
+
export * from "./_generated/sagittarius.data_type_pb.client.js";
|
|
7
|
+
export * from "./_generated/sagittarius.data_type_pb.d.js";
|
|
8
|
+
export * from "./_generated/sagittarius.data_type_pb.js";
|
|
9
|
+
export * from "./_generated/sagittarius.flow_pb.client.d.js";
|
|
10
|
+
export * from "./_generated/sagittarius.flow_pb.client.js";
|
|
11
|
+
export * from "./_generated/sagittarius.flow_pb.d.js";
|
|
12
|
+
export * from "./_generated/sagittarius.flow_pb.js";
|
|
13
|
+
export * from "./_generated/sagittarius.flow_type_pb.client.d.js";
|
|
14
|
+
export * from "./_generated/sagittarius.flow_type_pb.client.js";
|
|
15
|
+
export * from "./_generated/sagittarius.flow_type_pb.d.js";
|
|
16
|
+
export * from "./_generated/sagittarius.flow_type_pb.js";
|
|
17
|
+
export * from "./_generated/sagittarius.ping_pb.client.d.js";
|
|
18
|
+
export * from "./_generated/sagittarius.ping_pb.client.js";
|
|
19
|
+
export * from "./_generated/sagittarius.ping_pb.d.js";
|
|
20
|
+
export * from "./_generated/sagittarius.ping_pb.js";
|
|
21
|
+
export * from "./_generated/sagittarius.runtime_function_pb.client.d.js";
|
|
22
|
+
export * from "./_generated/sagittarius.runtime_function_pb.client.js";
|
|
23
|
+
export * from "./_generated/sagittarius.runtime_function_pb.d.js";
|
|
24
|
+
export * from "./_generated/sagittarius.runtime_function_pb.js";
|
|
25
|
+
export * from "./_generated/sagittarius.runtime_status_pb.client.d.js";
|
|
26
|
+
export * from "./_generated/sagittarius.runtime_status_pb.client.js";
|
|
27
|
+
export * from "./_generated/sagittarius.runtime_status_pb.d.js";
|
|
28
|
+
export * from "./_generated/sagittarius.runtime_status_pb.js";
|
|
29
|
+
export * from "./_generated/sagittarius.runtime_usage_pb.client.d.js";
|
|
30
|
+
export * from "./_generated/sagittarius.runtime_usage_pb.client.js";
|
|
31
|
+
export * from "./_generated/sagittarius.runtime_usage_pb.d.js";
|
|
32
|
+
export * from "./_generated/sagittarius.runtime_usage_pb.js";
|
|
33
|
+
export * from "./_generated/sagittarius.text_execution_pb.client.d.js";
|
|
34
|
+
export * from "./_generated/sagittarius.text_execution_pb.client.js";
|
|
35
|
+
export * from "./_generated/sagittarius.text_execution_pb.d.js";
|
|
36
|
+
export * from "./_generated/sagittarius.text_execution_pb.js";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * from "./_generated/sagittarius.action_configuration_pb.client.d.js";
|
|
2
|
+
export * from "./_generated/sagittarius.action_configuration_pb.client.js";
|
|
3
|
+
export * from "./_generated/sagittarius.action_configuration_pb.d.js";
|
|
4
|
+
export * from "./_generated/sagittarius.action_configuration_pb.js";
|
|
5
|
+
export * from "./_generated/sagittarius.data_type_pb.client.d.js";
|
|
6
|
+
export * from "./_generated/sagittarius.data_type_pb.client.js";
|
|
7
|
+
export * from "./_generated/sagittarius.data_type_pb.d.js";
|
|
8
|
+
export * from "./_generated/sagittarius.data_type_pb.js";
|
|
9
|
+
export * from "./_generated/sagittarius.flow_pb.client.d.js";
|
|
10
|
+
export * from "./_generated/sagittarius.flow_pb.client.js";
|
|
11
|
+
export * from "./_generated/sagittarius.flow_pb.d.js";
|
|
12
|
+
export * from "./_generated/sagittarius.flow_pb.js";
|
|
13
|
+
export * from "./_generated/sagittarius.flow_type_pb.client.d.js";
|
|
14
|
+
export * from "./_generated/sagittarius.flow_type_pb.client.js";
|
|
15
|
+
export * from "./_generated/sagittarius.flow_type_pb.d.js";
|
|
16
|
+
export * from "./_generated/sagittarius.flow_type_pb.js";
|
|
17
|
+
export * from "./_generated/sagittarius.ping_pb.client.d.js";
|
|
18
|
+
export * from "./_generated/sagittarius.ping_pb.client.js";
|
|
19
|
+
export * from "./_generated/sagittarius.ping_pb.d.js";
|
|
20
|
+
export * from "./_generated/sagittarius.ping_pb.js";
|
|
21
|
+
export * from "./_generated/sagittarius.runtime_function_pb.client.d.js";
|
|
22
|
+
export * from "./_generated/sagittarius.runtime_function_pb.client.js";
|
|
23
|
+
export * from "./_generated/sagittarius.runtime_function_pb.d.js";
|
|
24
|
+
export * from "./_generated/sagittarius.runtime_function_pb.js";
|
|
25
|
+
export * from "./_generated/sagittarius.runtime_status_pb.client.d.js";
|
|
26
|
+
export * from "./_generated/sagittarius.runtime_status_pb.client.js";
|
|
27
|
+
export * from "./_generated/sagittarius.runtime_status_pb.d.js";
|
|
28
|
+
export * from "./_generated/sagittarius.runtime_status_pb.js";
|
|
29
|
+
export * from "./_generated/sagittarius.runtime_usage_pb.client.d.js";
|
|
30
|
+
export * from "./_generated/sagittarius.runtime_usage_pb.client.js";
|
|
31
|
+
export * from "./_generated/sagittarius.runtime_usage_pb.d.js";
|
|
32
|
+
export * from "./_generated/sagittarius.runtime_usage_pb.js";
|
|
33
|
+
export * from "./_generated/sagittarius.text_execution_pb.client.d.js";
|
|
34
|
+
export * from "./_generated/sagittarius.text_execution_pb.client.js";
|
|
35
|
+
export * from "./_generated/sagittarius.text_execution_pb.d.js";
|
|
36
|
+
export * from "./_generated/sagittarius.text_execution_pb.js";
|
package/pb/shared.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from "./_generated/shared.action_configuration_pb.d.js";
|
|
2
|
+
export * from "./_generated/shared.action_configuration_pb.js";
|
|
3
|
+
export * from "./_generated/shared.data_type_pb.d.js";
|
|
4
|
+
export * from "./_generated/shared.data_type_pb.js";
|
|
5
|
+
export * from "./_generated/shared.flow_definition_pb.d.js";
|
|
6
|
+
export * from "./_generated/shared.flow_definition_pb.js";
|
|
7
|
+
export * from "./_generated/shared.flow_pb.d.js";
|
|
8
|
+
export * from "./_generated/shared.flow_pb.js";
|
|
9
|
+
export * from "./_generated/shared.runtime_function_pb.d.js";
|
|
10
|
+
export * from "./_generated/shared.runtime_function_pb.js";
|
|
11
|
+
export * from "./_generated/shared.runtime_status_pb.d.js";
|
|
12
|
+
export * from "./_generated/shared.runtime_status_pb.js";
|
|
13
|
+
export * from "./_generated/shared.runtime_usage_pb.d.js";
|
|
14
|
+
export * from "./_generated/shared.runtime_usage_pb.js";
|
|
15
|
+
export * from "./_generated/shared.struct_pb.d.js";
|
|
16
|
+
export * from "./_generated/shared.struct_pb.js";
|
|
17
|
+
export * from "./_generated/shared.translation_pb.d.js";
|
|
18
|
+
export * from "./_generated/shared.translation_pb.js";
|
package/pb/shared.js
CHANGED
|
@@ -1,34 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
__exportStar(require("./_generated/shared.data_type_pb.d.js"), exports);
|
|
20
|
-
__exportStar(require("./_generated/shared.data_type_pb.js"), exports);
|
|
21
|
-
__exportStar(require("./_generated/shared.flow_definition_pb.d.js"), exports);
|
|
22
|
-
__exportStar(require("./_generated/shared.flow_definition_pb.js"), exports);
|
|
23
|
-
__exportStar(require("./_generated/shared.flow_pb.d.js"), exports);
|
|
24
|
-
__exportStar(require("./_generated/shared.flow_pb.js"), exports);
|
|
25
|
-
__exportStar(require("./_generated/shared.runtime_function_pb.d.js"), exports);
|
|
26
|
-
__exportStar(require("./_generated/shared.runtime_function_pb.js"), exports);
|
|
27
|
-
__exportStar(require("./_generated/shared.runtime_status_pb.d.js"), exports);
|
|
28
|
-
__exportStar(require("./_generated/shared.runtime_status_pb.js"), exports);
|
|
29
|
-
__exportStar(require("./_generated/shared.runtime_usage_pb.d.js"), exports);
|
|
30
|
-
__exportStar(require("./_generated/shared.runtime_usage_pb.js"), exports);
|
|
31
|
-
__exportStar(require("./_generated/shared.struct_pb.d.js"), exports);
|
|
32
|
-
__exportStar(require("./_generated/shared.struct_pb.js"), exports);
|
|
33
|
-
__exportStar(require("./_generated/shared.translation_pb.d.js"), exports);
|
|
34
|
-
__exportStar(require("./_generated/shared.translation_pb.js"), exports);
|
|
1
|
+
export * from "./_generated/shared.action_configuration_pb.d.js";
|
|
2
|
+
export * from "./_generated/shared.action_configuration_pb.js";
|
|
3
|
+
export * from "./_generated/shared.data_type_pb.d.js";
|
|
4
|
+
export * from "./_generated/shared.data_type_pb.js";
|
|
5
|
+
export * from "./_generated/shared.flow_definition_pb.d.js";
|
|
6
|
+
export * from "./_generated/shared.flow_definition_pb.js";
|
|
7
|
+
export * from "./_generated/shared.flow_pb.d.js";
|
|
8
|
+
export * from "./_generated/shared.flow_pb.js";
|
|
9
|
+
export * from "./_generated/shared.runtime_function_pb.d.js";
|
|
10
|
+
export * from "./_generated/shared.runtime_function_pb.js";
|
|
11
|
+
export * from "./_generated/shared.runtime_status_pb.d.js";
|
|
12
|
+
export * from "./_generated/shared.runtime_status_pb.js";
|
|
13
|
+
export * from "./_generated/shared.runtime_usage_pb.d.js";
|
|
14
|
+
export * from "./_generated/shared.runtime_usage_pb.js";
|
|
15
|
+
export * from "./_generated/shared.struct_pb.d.js";
|
|
16
|
+
export * from "./_generated/shared.struct_pb.js";
|
|
17
|
+
export * from "./_generated/shared.translation_pb.d.js";
|
|
18
|
+
export * from "./_generated/shared.translation_pb.js";
|