@code0-tech/tucana 0.0.50 → 0.0.52
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/shared.struct_helper.ts +40 -0
- package/package.json +3 -1
- package/pb/aquila.action_pb.d.ts +14 -8
- package/pb/aquila.action_pb.js +33 -17
- package/pb/shared.data_type_pb.d.ts +6 -0
- package/pb/shared.data_type_pb.js +8 -1
- package/pb/shared.flow_definition_pb.d.ts +6 -0
- package/pb/shared.flow_definition_pb.js +8 -1
- package/pb/shared.flow_pb.d.ts +11 -3
- package/pb/shared.flow_pb.js +14 -8
- package/pb/shared.runtime_function_pb.d.ts +6 -0
- package/pb/shared.runtime_function_pb.js +8 -1
- package/pb/shared.event_pb.d.ts +0 -120
- package/pb/shared.event_pb.js +0 -203
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {Value} from "../pb/shared.struct_pb.js";
|
|
2
|
+
|
|
3
|
+
type AllowedValue = null | number | string | boolean | Array<AllowedValue> | object;
|
|
4
|
+
|
|
5
|
+
export function constructValue(value: AllowedValue): Value {
|
|
6
|
+
if (value === null) {
|
|
7
|
+
return {kind: {oneofKind: "nullValue", nullValue: 0}};
|
|
8
|
+
}
|
|
9
|
+
if (typeof value === "number") {
|
|
10
|
+
return {kind: {oneofKind: "numberValue", numberValue: value}};
|
|
11
|
+
}
|
|
12
|
+
if (typeof value === "string") {
|
|
13
|
+
return {kind: {oneofKind: "stringValue", stringValue: value}};
|
|
14
|
+
}
|
|
15
|
+
if (typeof value === "boolean") {
|
|
16
|
+
return {kind: {oneofKind: "boolValue", boolValue: value}};
|
|
17
|
+
}
|
|
18
|
+
if (Array.isArray(value)) {
|
|
19
|
+
const listValues = value.map(v => constructValue(v));
|
|
20
|
+
return {
|
|
21
|
+
kind: {
|
|
22
|
+
oneofKind: "listValue",
|
|
23
|
+
listValue: {values: listValues}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
if (typeof value === "object") {
|
|
28
|
+
const structFields: {[key: string]: Value} = {};
|
|
29
|
+
for (const [k, v] of Object.entries(value)) {
|
|
30
|
+
structFields[k] = constructValue(v);
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
kind: {
|
|
34
|
+
oneofKind: "structValue",
|
|
35
|
+
structValue: {fields: structFields}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
throw new Error(`Unsupported value type: ${typeof value}`);
|
|
40
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code0-tech/tucana",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"description": "Code0 GRPC Protocol",
|
|
5
5
|
"homepage": "https://github.com/code0-tech/tucana#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
"protoc": "^33.0.0"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
|
+
"helpers/*.ts",
|
|
29
|
+
"helpers/*.js",
|
|
28
30
|
"pb/*.ts",
|
|
29
31
|
"pb/*.js",
|
|
30
32
|
"index.js",
|
package/pb/aquila.action_pb.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
|
8
8
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
9
9
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
10
|
import { Struct } from "./shared.struct_pb";
|
|
11
|
-
import { DefinitionDataType } from "./shared.data_type_pb";
|
|
12
11
|
import { Translation } from "./shared.translation_pb";
|
|
13
|
-
import {
|
|
12
|
+
import { FlowType } from "./shared.flow_definition_pb";
|
|
13
|
+
import { DefinitionDataType } from "./shared.data_type_pb";
|
|
14
14
|
import { RuntimeFunctionDefinition } from "./shared.runtime_function_pb";
|
|
15
15
|
import { Value } from "./shared.struct_pb";
|
|
16
16
|
/**
|
|
@@ -44,22 +44,28 @@ export interface Configuration {
|
|
|
44
44
|
* @generated from protobuf field: string identifier = 1
|
|
45
45
|
*/
|
|
46
46
|
identifier: string;
|
|
47
|
+
/**
|
|
48
|
+
* @generated from protobuf field: string version = 2
|
|
49
|
+
*/
|
|
50
|
+
version: string;
|
|
47
51
|
/**
|
|
48
52
|
* Flow Configuration
|
|
49
53
|
*
|
|
50
|
-
* @generated from protobuf field: repeated shared.RuntimeFunctionDefinition function_definitions =
|
|
54
|
+
* @generated from protobuf field: repeated shared.RuntimeFunctionDefinition function_definitions = 3
|
|
51
55
|
*/
|
|
52
56
|
functionDefinitions: RuntimeFunctionDefinition[];
|
|
53
57
|
/**
|
|
54
|
-
*
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
* @generated from protobuf field: repeated shared.DefinitionDataType data_types = 4
|
|
59
|
+
*/
|
|
60
|
+
dataTypes: DefinitionDataType[];
|
|
61
|
+
/**
|
|
62
|
+
* @generated from protobuf field: repeated shared.FlowType flow_types = 5
|
|
57
63
|
*/
|
|
58
|
-
|
|
64
|
+
flowTypes: FlowType[];
|
|
59
65
|
/**
|
|
60
66
|
* Application Configuration
|
|
61
67
|
*
|
|
62
|
-
* @generated from protobuf field: repeated aquila.ActionConfiguration action_configurations =
|
|
68
|
+
* @generated from protobuf field: repeated aquila.ActionConfiguration action_configurations = 6
|
|
63
69
|
*/
|
|
64
70
|
actionConfigurations: ActionConfiguration[];
|
|
65
71
|
}
|
package/pb/aquila.action_pb.js
CHANGED
|
@@ -10,9 +10,9 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
10
10
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
11
11
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
12
12
|
import { Struct } from "./shared.struct_pb";
|
|
13
|
-
import { DefinitionDataType } from "./shared.data_type_pb";
|
|
14
13
|
import { Translation } from "./shared.translation_pb";
|
|
15
|
-
import {
|
|
14
|
+
import { FlowType } from "./shared.flow_definition_pb";
|
|
15
|
+
import { DefinitionDataType } from "./shared.data_type_pb";
|
|
16
16
|
import { RuntimeFunctionDefinition } from "./shared.runtime_function_pb";
|
|
17
17
|
import { Value } from "./shared.struct_pb";
|
|
18
18
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
@@ -74,16 +74,20 @@ class Configuration$Type extends MessageType {
|
|
|
74
74
|
constructor() {
|
|
75
75
|
super("aquila.Configuration", [
|
|
76
76
|
{ no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
77
|
-
{ no: 2, name: "
|
|
78
|
-
{ no: 3, name: "
|
|
79
|
-
{ no: 4, name: "
|
|
77
|
+
{ no: 2, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
78
|
+
{ no: 3, name: "function_definitions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeFunctionDefinition },
|
|
79
|
+
{ no: 4, name: "data_types", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DefinitionDataType },
|
|
80
|
+
{ no: 5, name: "flow_types", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FlowType },
|
|
81
|
+
{ no: 6, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionConfiguration }
|
|
80
82
|
]);
|
|
81
83
|
}
|
|
82
84
|
create(value) {
|
|
83
85
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
84
86
|
message.identifier = "";
|
|
87
|
+
message.version = "";
|
|
85
88
|
message.functionDefinitions = [];
|
|
86
|
-
message.
|
|
89
|
+
message.dataTypes = [];
|
|
90
|
+
message.flowTypes = [];
|
|
87
91
|
message.actionConfigurations = [];
|
|
88
92
|
if (value !== undefined)
|
|
89
93
|
reflectionMergePartial(this, message, value);
|
|
@@ -97,13 +101,19 @@ class Configuration$Type extends MessageType {
|
|
|
97
101
|
case /* string identifier */ 1:
|
|
98
102
|
message.identifier = reader.string();
|
|
99
103
|
break;
|
|
100
|
-
case /*
|
|
104
|
+
case /* string version */ 2:
|
|
105
|
+
message.version = reader.string();
|
|
106
|
+
break;
|
|
107
|
+
case /* repeated shared.RuntimeFunctionDefinition function_definitions */ 3:
|
|
101
108
|
message.functionDefinitions.push(RuntimeFunctionDefinition.internalBinaryRead(reader, reader.uint32(), options));
|
|
102
109
|
break;
|
|
103
|
-
case /* repeated shared.
|
|
104
|
-
message.
|
|
110
|
+
case /* repeated shared.DefinitionDataType data_types */ 4:
|
|
111
|
+
message.dataTypes.push(DefinitionDataType.internalBinaryRead(reader, reader.uint32(), options));
|
|
112
|
+
break;
|
|
113
|
+
case /* repeated shared.FlowType flow_types */ 5:
|
|
114
|
+
message.flowTypes.push(FlowType.internalBinaryRead(reader, reader.uint32(), options));
|
|
105
115
|
break;
|
|
106
|
-
case /* repeated aquila.ActionConfiguration action_configurations */
|
|
116
|
+
case /* repeated aquila.ActionConfiguration action_configurations */ 6:
|
|
107
117
|
message.actionConfigurations.push(ActionConfiguration.internalBinaryRead(reader, reader.uint32(), options));
|
|
108
118
|
break;
|
|
109
119
|
default:
|
|
@@ -121,15 +131,21 @@ class Configuration$Type extends MessageType {
|
|
|
121
131
|
/* string identifier = 1; */
|
|
122
132
|
if (message.identifier !== "")
|
|
123
133
|
writer.tag(1, WireType.LengthDelimited).string(message.identifier);
|
|
124
|
-
/*
|
|
134
|
+
/* string version = 2; */
|
|
135
|
+
if (message.version !== "")
|
|
136
|
+
writer.tag(2, WireType.LengthDelimited).string(message.version);
|
|
137
|
+
/* repeated shared.RuntimeFunctionDefinition function_definitions = 3; */
|
|
125
138
|
for (let i = 0; i < message.functionDefinitions.length; i++)
|
|
126
|
-
RuntimeFunctionDefinition.internalBinaryWrite(message.functionDefinitions[i], writer.tag(
|
|
127
|
-
/* repeated shared.
|
|
128
|
-
for (let i = 0; i < message.
|
|
129
|
-
|
|
130
|
-
/* repeated
|
|
139
|
+
RuntimeFunctionDefinition.internalBinaryWrite(message.functionDefinitions[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
140
|
+
/* repeated shared.DefinitionDataType data_types = 4; */
|
|
141
|
+
for (let i = 0; i < message.dataTypes.length; i++)
|
|
142
|
+
DefinitionDataType.internalBinaryWrite(message.dataTypes[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
143
|
+
/* repeated shared.FlowType flow_types = 5; */
|
|
144
|
+
for (let i = 0; i < message.flowTypes.length; i++)
|
|
145
|
+
FlowType.internalBinaryWrite(message.flowTypes[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
146
|
+
/* repeated aquila.ActionConfiguration action_configurations = 6; */
|
|
131
147
|
for (let i = 0; i < message.actionConfigurations.length; i++)
|
|
132
|
-
ActionConfiguration.internalBinaryWrite(message.actionConfigurations[i], writer.tag(
|
|
148
|
+
ActionConfiguration.internalBinaryWrite(message.actionConfigurations[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
133
149
|
let u = options.writeUnknownFields;
|
|
134
150
|
if (u !== false)
|
|
135
151
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -60,6 +60,12 @@ export interface DefinitionDataType {
|
|
|
60
60
|
* @generated from protobuf field: string version = 8
|
|
61
61
|
*/
|
|
62
62
|
version: string;
|
|
63
|
+
/**
|
|
64
|
+
* Field will be set by an action to distinguish an action function from a runtime function
|
|
65
|
+
*
|
|
66
|
+
* @generated from protobuf field: optional string action_identifier = 9
|
|
67
|
+
*/
|
|
68
|
+
actionIdentifier?: string;
|
|
63
69
|
}
|
|
64
70
|
/**
|
|
65
71
|
* @generated from protobuf enum shared.DefinitionDataType.Variant
|
|
@@ -76,7 +76,8 @@ class DefinitionDataType$Type extends MessageType {
|
|
|
76
76
|
{ no: 5, name: "alias", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
77
77
|
{ no: 6, name: "rules", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DefinitionDataTypeRule },
|
|
78
78
|
{ no: 7, name: "generic_keys", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
79
|
-
{ no: 8, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
79
|
+
{ no: 8, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
80
|
+
{ no: 9, name: "action_identifier", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
80
81
|
]);
|
|
81
82
|
}
|
|
82
83
|
create(value) {
|
|
@@ -122,6 +123,9 @@ class DefinitionDataType$Type extends MessageType {
|
|
|
122
123
|
case /* string version */ 8:
|
|
123
124
|
message.version = reader.string();
|
|
124
125
|
break;
|
|
126
|
+
case /* optional string action_identifier */ 9:
|
|
127
|
+
message.actionIdentifier = reader.string();
|
|
128
|
+
break;
|
|
125
129
|
default:
|
|
126
130
|
let u = options.readUnknownField;
|
|
127
131
|
if (u === "throw")
|
|
@@ -158,6 +162,9 @@ class DefinitionDataType$Type extends MessageType {
|
|
|
158
162
|
/* string version = 8; */
|
|
159
163
|
if (message.version !== "")
|
|
160
164
|
writer.tag(8, WireType.LengthDelimited).string(message.version);
|
|
165
|
+
/* optional string action_identifier = 9; */
|
|
166
|
+
if (message.actionIdentifier !== undefined)
|
|
167
|
+
writer.tag(9, WireType.LengthDelimited).string(message.actionIdentifier);
|
|
161
168
|
let u = options.writeUnknownFields;
|
|
162
169
|
if (u !== false)
|
|
163
170
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -64,6 +64,12 @@ export interface FlowType {
|
|
|
64
64
|
* @generated from protobuf field: string display_icon = 12
|
|
65
65
|
*/
|
|
66
66
|
displayIcon: string;
|
|
67
|
+
/**
|
|
68
|
+
* Field will be set by an action to distinguish an action function from a runtime function
|
|
69
|
+
*
|
|
70
|
+
* @generated from protobuf field: optional string action_identifier = 13
|
|
71
|
+
*/
|
|
72
|
+
actionIdentifier?: string;
|
|
67
73
|
}
|
|
68
74
|
/**
|
|
69
75
|
* @generated from protobuf message shared.FlowTypeSetting
|
|
@@ -40,7 +40,8 @@ class FlowType$Type extends MessageType {
|
|
|
40
40
|
{ no: 9, name: "display_message", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
41
41
|
{ no: 10, name: "alias", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
42
42
|
{ no: 11, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
43
|
-
{ no: 12, name: "display_icon", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
43
|
+
{ no: 12, name: "display_icon", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
44
|
+
{ no: 13, name: "action_identifier", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
44
45
|
]);
|
|
45
46
|
}
|
|
46
47
|
create(value) {
|
|
@@ -100,6 +101,9 @@ class FlowType$Type extends MessageType {
|
|
|
100
101
|
case /* string display_icon */ 12:
|
|
101
102
|
message.displayIcon = reader.string();
|
|
102
103
|
break;
|
|
104
|
+
case /* optional string action_identifier */ 13:
|
|
105
|
+
message.actionIdentifier = reader.string();
|
|
106
|
+
break;
|
|
103
107
|
default:
|
|
104
108
|
let u = options.readUnknownField;
|
|
105
109
|
if (u === "throw")
|
|
@@ -148,6 +152,9 @@ class FlowType$Type extends MessageType {
|
|
|
148
152
|
/* string display_icon = 12; */
|
|
149
153
|
if (message.displayIcon !== "")
|
|
150
154
|
writer.tag(12, WireType.LengthDelimited).string(message.displayIcon);
|
|
155
|
+
/* optional string action_identifier = 13; */
|
|
156
|
+
if (message.actionIdentifier !== undefined)
|
|
157
|
+
writer.tag(13, WireType.LengthDelimited).string(message.actionIdentifier);
|
|
151
158
|
let u = options.writeUnknownFields;
|
|
152
159
|
if (u !== false)
|
|
153
160
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
package/pb/shared.flow_pb.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
|
7
7
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
8
8
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
9
9
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
|
-
import { Struct } from "./shared.struct_pb";
|
|
11
10
|
import { Value } from "./shared.struct_pb";
|
|
12
11
|
import { ExecutionDataType } from "./shared.data_type_pb";
|
|
13
12
|
/**
|
|
@@ -105,9 +104,9 @@ export interface FlowSetting {
|
|
|
105
104
|
*/
|
|
106
105
|
flowSettingId: string;
|
|
107
106
|
/**
|
|
108
|
-
* @generated from protobuf field: shared.
|
|
107
|
+
* @generated from protobuf field: shared.Value value = 3
|
|
109
108
|
*/
|
|
110
|
-
|
|
109
|
+
value?: Value;
|
|
111
110
|
}
|
|
112
111
|
/**
|
|
113
112
|
* @generated from protobuf message shared.NodeFunction
|
|
@@ -131,6 +130,13 @@ export interface NodeFunction {
|
|
|
131
130
|
* @generated from protobuf field: optional int64 next_node_id = 4
|
|
132
131
|
*/
|
|
133
132
|
nextNodeId?: bigint;
|
|
133
|
+
/**
|
|
134
|
+
* Identifier of the action that can execute this function
|
|
135
|
+
* If not present it should be a runtime function
|
|
136
|
+
*
|
|
137
|
+
* @generated from protobuf field: optional string action_identifier = 5
|
|
138
|
+
*/
|
|
139
|
+
actionIdentifier?: string;
|
|
134
140
|
}
|
|
135
141
|
/**
|
|
136
142
|
* @generated from protobuf message shared.NodeValue
|
|
@@ -154,6 +160,8 @@ export interface NodeValue {
|
|
|
154
160
|
} | {
|
|
155
161
|
oneofKind: "nodeFunctionId";
|
|
156
162
|
/**
|
|
163
|
+
* Reference to the `database_id` field of message `NodeFunction`
|
|
164
|
+
*
|
|
157
165
|
* @generated from protobuf field: int64 node_function_id = 3
|
|
158
166
|
*/
|
|
159
167
|
nodeFunctionId: bigint;
|
package/pb/shared.flow_pb.js
CHANGED
|
@@ -5,7 +5,6 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
5
5
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
6
6
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
7
7
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
|
-
import { Struct } from "./shared.struct_pb";
|
|
9
8
|
import { Value } from "./shared.struct_pb";
|
|
10
9
|
import { ExecutionDataType } from "./shared.data_type_pb";
|
|
11
10
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
@@ -208,7 +207,7 @@ class FlowSetting$Type extends MessageType {
|
|
|
208
207
|
super("shared.FlowSetting", [
|
|
209
208
|
{ no: 1, name: "database_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
210
209
|
{ no: 2, name: "flow_setting_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
211
|
-
{ no: 3, name: "
|
|
210
|
+
{ no: 3, name: "value", kind: "message", T: () => Value }
|
|
212
211
|
]);
|
|
213
212
|
}
|
|
214
213
|
create(value) {
|
|
@@ -230,8 +229,8 @@ class FlowSetting$Type extends MessageType {
|
|
|
230
229
|
case /* string flow_setting_id */ 2:
|
|
231
230
|
message.flowSettingId = reader.string();
|
|
232
231
|
break;
|
|
233
|
-
case /* shared.
|
|
234
|
-
message.
|
|
232
|
+
case /* shared.Value value */ 3:
|
|
233
|
+
message.value = Value.internalBinaryRead(reader, reader.uint32(), options, message.value);
|
|
235
234
|
break;
|
|
236
235
|
default:
|
|
237
236
|
let u = options.readUnknownField;
|
|
@@ -251,9 +250,9 @@ class FlowSetting$Type extends MessageType {
|
|
|
251
250
|
/* string flow_setting_id = 2; */
|
|
252
251
|
if (message.flowSettingId !== "")
|
|
253
252
|
writer.tag(2, WireType.LengthDelimited).string(message.flowSettingId);
|
|
254
|
-
/* shared.
|
|
255
|
-
if (message.
|
|
256
|
-
|
|
253
|
+
/* shared.Value value = 3; */
|
|
254
|
+
if (message.value)
|
|
255
|
+
Value.internalBinaryWrite(message.value, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
257
256
|
let u = options.writeUnknownFields;
|
|
258
257
|
if (u !== false)
|
|
259
258
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -271,7 +270,8 @@ class NodeFunction$Type extends MessageType {
|
|
|
271
270
|
{ no: 1, name: "database_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
272
271
|
{ no: 2, name: "runtime_function_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
273
272
|
{ no: 3, name: "parameters", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => NodeParameter },
|
|
274
|
-
{ no: 4, name: "next_node_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
273
|
+
{ no: 4, name: "next_node_id", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
274
|
+
{ no: 5, name: "action_identifier", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
275
275
|
]);
|
|
276
276
|
}
|
|
277
277
|
create(value) {
|
|
@@ -300,6 +300,9 @@ class NodeFunction$Type extends MessageType {
|
|
|
300
300
|
case /* optional int64 next_node_id */ 4:
|
|
301
301
|
message.nextNodeId = reader.int64().toBigInt();
|
|
302
302
|
break;
|
|
303
|
+
case /* optional string action_identifier */ 5:
|
|
304
|
+
message.actionIdentifier = reader.string();
|
|
305
|
+
break;
|
|
303
306
|
default:
|
|
304
307
|
let u = options.readUnknownField;
|
|
305
308
|
if (u === "throw")
|
|
@@ -324,6 +327,9 @@ class NodeFunction$Type extends MessageType {
|
|
|
324
327
|
/* optional int64 next_node_id = 4; */
|
|
325
328
|
if (message.nextNodeId !== undefined)
|
|
326
329
|
writer.tag(4, WireType.Varint).int64(message.nextNodeId);
|
|
330
|
+
/* optional string action_identifier = 5; */
|
|
331
|
+
if (message.actionIdentifier !== undefined)
|
|
332
|
+
writer.tag(5, WireType.LengthDelimited).string(message.actionIdentifier);
|
|
327
333
|
let u = options.writeUnknownFields;
|
|
328
334
|
if (u !== false)
|
|
329
335
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -71,6 +71,12 @@ export interface RuntimeFunctionDefinition {
|
|
|
71
71
|
* @generated from protobuf field: string display_icon = 13
|
|
72
72
|
*/
|
|
73
73
|
displayIcon: string;
|
|
74
|
+
/**
|
|
75
|
+
* Field will be set by an action to distinguish an action function from a runtime function
|
|
76
|
+
*
|
|
77
|
+
* @generated from protobuf field: optional string action_identifier = 14
|
|
78
|
+
*/
|
|
79
|
+
actionIdentifier?: string;
|
|
74
80
|
}
|
|
75
81
|
/**
|
|
76
82
|
* Definition of a parameter used for execution
|
|
@@ -24,7 +24,8 @@ class RuntimeFunctionDefinition$Type extends MessageType {
|
|
|
24
24
|
{ no: 10, name: "display_message", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
25
25
|
{ no: 11, name: "alias", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
26
26
|
{ no: 12, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
27
|
-
{ no: 13, name: "display_icon", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
27
|
+
{ no: 13, name: "display_icon", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
28
|
+
{ no: 14, name: "action_identifier", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
28
29
|
]);
|
|
29
30
|
}
|
|
30
31
|
create(value) {
|
|
@@ -89,6 +90,9 @@ class RuntimeFunctionDefinition$Type extends MessageType {
|
|
|
89
90
|
case /* string display_icon */ 13:
|
|
90
91
|
message.displayIcon = reader.string();
|
|
91
92
|
break;
|
|
93
|
+
case /* optional string action_identifier */ 14:
|
|
94
|
+
message.actionIdentifier = reader.string();
|
|
95
|
+
break;
|
|
92
96
|
default:
|
|
93
97
|
let u = options.readUnknownField;
|
|
94
98
|
if (u === "throw")
|
|
@@ -140,6 +144,9 @@ class RuntimeFunctionDefinition$Type extends MessageType {
|
|
|
140
144
|
/* string display_icon = 13; */
|
|
141
145
|
if (message.displayIcon !== "")
|
|
142
146
|
writer.tag(13, WireType.LengthDelimited).string(message.displayIcon);
|
|
147
|
+
/* optional string action_identifier = 14; */
|
|
148
|
+
if (message.actionIdentifier !== undefined)
|
|
149
|
+
writer.tag(14, WireType.LengthDelimited).string(message.actionIdentifier);
|
|
143
150
|
let u = options.writeUnknownFields;
|
|
144
151
|
if (u !== false)
|
|
145
152
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
package/pb/shared.event_pb.d.ts
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
-
// @generated from protobuf file "shared.event.proto" (package "shared", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
9
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
|
-
import { Value } from "./shared.struct_pb";
|
|
11
|
-
import { DefinitionDataType } from "./shared.data_type_pb";
|
|
12
|
-
import { Translation } from "./shared.translation_pb";
|
|
13
|
-
/**
|
|
14
|
-
* Event configuration
|
|
15
|
-
*
|
|
16
|
-
* @generated from protobuf message shared.EventDefinitionSettings
|
|
17
|
-
*/
|
|
18
|
-
export interface EventDefinitionSettings {
|
|
19
|
-
/**
|
|
20
|
-
* Name of current configuration
|
|
21
|
-
*
|
|
22
|
-
* @generated from protobuf field: repeated shared.Translation name = 1
|
|
23
|
-
*/
|
|
24
|
-
name: Translation[];
|
|
25
|
-
/**
|
|
26
|
-
* True if this is a unique setting
|
|
27
|
-
*
|
|
28
|
-
* @generated from protobuf field: bool unique = 2
|
|
29
|
-
*/
|
|
30
|
-
unique: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Description of current configuration
|
|
33
|
-
*
|
|
34
|
-
* @generated from protobuf field: repeated shared.Translation description = 3
|
|
35
|
-
*/
|
|
36
|
-
description: Translation[];
|
|
37
|
-
/**
|
|
38
|
-
* Type of setting
|
|
39
|
-
*
|
|
40
|
-
* @generated from protobuf field: shared.DefinitionDataType type = 4
|
|
41
|
-
*/
|
|
42
|
-
type?: DefinitionDataType;
|
|
43
|
-
/**
|
|
44
|
-
* Optional default value (primitive, string, list or json)
|
|
45
|
-
*
|
|
46
|
-
* @generated from protobuf field: optional shared.Value default_value = 5
|
|
47
|
-
*/
|
|
48
|
-
defaultValue?: Value;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* @generated from protobuf message shared.EventDefinition
|
|
52
|
-
*/
|
|
53
|
-
export interface EventDefinition {
|
|
54
|
-
/**
|
|
55
|
-
* List of settings that configures the type
|
|
56
|
-
*
|
|
57
|
-
* @generated from protobuf field: repeated shared.EventDefinitionSettings settings = 1
|
|
58
|
-
*/
|
|
59
|
-
settings: EventDefinitionSettings[];
|
|
60
|
-
/**
|
|
61
|
-
* @generated from protobuf field: shared.DefinitionDataType input_type = 2
|
|
62
|
-
*/
|
|
63
|
-
inputType?: DefinitionDataType;
|
|
64
|
-
/**
|
|
65
|
-
* True if the definition can be edited live
|
|
66
|
-
*
|
|
67
|
-
* @generated from protobuf field: bool editable = 3
|
|
68
|
-
*/
|
|
69
|
-
editable: boolean;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Event type that can be hold by an action & be emitted by an action
|
|
73
|
-
*
|
|
74
|
-
* @generated from protobuf message shared.EventType
|
|
75
|
-
*/
|
|
76
|
-
export interface EventType {
|
|
77
|
-
/**
|
|
78
|
-
* Name of the event
|
|
79
|
-
*
|
|
80
|
-
* @generated from protobuf field: repeated shared.Translation name = 1
|
|
81
|
-
*/
|
|
82
|
-
name: Translation[];
|
|
83
|
-
/**
|
|
84
|
-
* Definition that holds all settings of a event
|
|
85
|
-
*
|
|
86
|
-
* @generated from protobuf field: shared.EventDefinition definition = 2
|
|
87
|
-
*/
|
|
88
|
-
definition?: EventDefinition;
|
|
89
|
-
}
|
|
90
|
-
declare class EventDefinitionSettings$Type extends MessageType<EventDefinitionSettings> {
|
|
91
|
-
constructor();
|
|
92
|
-
create(value?: PartialMessage<EventDefinitionSettings>): EventDefinitionSettings;
|
|
93
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EventDefinitionSettings): EventDefinitionSettings;
|
|
94
|
-
internalBinaryWrite(message: EventDefinitionSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* @generated MessageType for protobuf message shared.EventDefinitionSettings
|
|
98
|
-
*/
|
|
99
|
-
export declare const EventDefinitionSettings: EventDefinitionSettings$Type;
|
|
100
|
-
declare class EventDefinition$Type extends MessageType<EventDefinition> {
|
|
101
|
-
constructor();
|
|
102
|
-
create(value?: PartialMessage<EventDefinition>): EventDefinition;
|
|
103
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EventDefinition): EventDefinition;
|
|
104
|
-
internalBinaryWrite(message: EventDefinition, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* @generated MessageType for protobuf message shared.EventDefinition
|
|
108
|
-
*/
|
|
109
|
-
export declare const EventDefinition: EventDefinition$Type;
|
|
110
|
-
declare class EventType$Type extends MessageType<EventType> {
|
|
111
|
-
constructor();
|
|
112
|
-
create(value?: PartialMessage<EventType>): EventType;
|
|
113
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EventType): EventType;
|
|
114
|
-
internalBinaryWrite(message: EventType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* @generated MessageType for protobuf message shared.EventType
|
|
118
|
-
*/
|
|
119
|
-
export declare const EventType: EventType$Type;
|
|
120
|
-
export {};
|
package/pb/shared.event_pb.js
DELETED
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
|
|
2
|
-
// @generated from protobuf file "shared.event.proto" (package "shared", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
5
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
6
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
7
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
|
-
import { Value } from "./shared.struct_pb";
|
|
9
|
-
import { DefinitionDataType } from "./shared.data_type_pb";
|
|
10
|
-
import { Translation } from "./shared.translation_pb";
|
|
11
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
12
|
-
class EventDefinitionSettings$Type extends MessageType {
|
|
13
|
-
constructor() {
|
|
14
|
-
super("shared.EventDefinitionSettings", [
|
|
15
|
-
{ no: 1, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
16
|
-
{ no: 2, name: "unique", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
17
|
-
{ no: 3, name: "description", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
18
|
-
{ no: 4, name: "type", kind: "message", T: () => DefinitionDataType },
|
|
19
|
-
{ no: 5, name: "default_value", kind: "message", T: () => Value }
|
|
20
|
-
]);
|
|
21
|
-
}
|
|
22
|
-
create(value) {
|
|
23
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
24
|
-
message.name = [];
|
|
25
|
-
message.unique = false;
|
|
26
|
-
message.description = [];
|
|
27
|
-
if (value !== undefined)
|
|
28
|
-
reflectionMergePartial(this, message, value);
|
|
29
|
-
return message;
|
|
30
|
-
}
|
|
31
|
-
internalBinaryRead(reader, length, options, target) {
|
|
32
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
33
|
-
while (reader.pos < end) {
|
|
34
|
-
let [fieldNo, wireType] = reader.tag();
|
|
35
|
-
switch (fieldNo) {
|
|
36
|
-
case /* repeated shared.Translation name */ 1:
|
|
37
|
-
message.name.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
38
|
-
break;
|
|
39
|
-
case /* bool unique */ 2:
|
|
40
|
-
message.unique = reader.bool();
|
|
41
|
-
break;
|
|
42
|
-
case /* repeated shared.Translation description */ 3:
|
|
43
|
-
message.description.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
44
|
-
break;
|
|
45
|
-
case /* shared.DefinitionDataType type */ 4:
|
|
46
|
-
message.type = DefinitionDataType.internalBinaryRead(reader, reader.uint32(), options, message.type);
|
|
47
|
-
break;
|
|
48
|
-
case /* optional shared.Value default_value */ 5:
|
|
49
|
-
message.defaultValue = Value.internalBinaryRead(reader, reader.uint32(), options, message.defaultValue);
|
|
50
|
-
break;
|
|
51
|
-
default:
|
|
52
|
-
let u = options.readUnknownField;
|
|
53
|
-
if (u === "throw")
|
|
54
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
55
|
-
let d = reader.skip(wireType);
|
|
56
|
-
if (u !== false)
|
|
57
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
return message;
|
|
61
|
-
}
|
|
62
|
-
internalBinaryWrite(message, writer, options) {
|
|
63
|
-
/* repeated shared.Translation name = 1; */
|
|
64
|
-
for (let i = 0; i < message.name.length; i++)
|
|
65
|
-
Translation.internalBinaryWrite(message.name[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
66
|
-
/* bool unique = 2; */
|
|
67
|
-
if (message.unique !== false)
|
|
68
|
-
writer.tag(2, WireType.Varint).bool(message.unique);
|
|
69
|
-
/* repeated shared.Translation description = 3; */
|
|
70
|
-
for (let i = 0; i < message.description.length; i++)
|
|
71
|
-
Translation.internalBinaryWrite(message.description[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
72
|
-
/* shared.DefinitionDataType type = 4; */
|
|
73
|
-
if (message.type)
|
|
74
|
-
DefinitionDataType.internalBinaryWrite(message.type, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
75
|
-
/* optional shared.Value default_value = 5; */
|
|
76
|
-
if (message.defaultValue)
|
|
77
|
-
Value.internalBinaryWrite(message.defaultValue, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
78
|
-
let u = options.writeUnknownFields;
|
|
79
|
-
if (u !== false)
|
|
80
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
81
|
-
return writer;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* @generated MessageType for protobuf message shared.EventDefinitionSettings
|
|
86
|
-
*/
|
|
87
|
-
export const EventDefinitionSettings = new EventDefinitionSettings$Type();
|
|
88
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
89
|
-
class EventDefinition$Type extends MessageType {
|
|
90
|
-
constructor() {
|
|
91
|
-
super("shared.EventDefinition", [
|
|
92
|
-
{ no: 1, name: "settings", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EventDefinitionSettings },
|
|
93
|
-
{ no: 2, name: "input_type", kind: "message", T: () => DefinitionDataType },
|
|
94
|
-
{ no: 3, name: "editable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
95
|
-
]);
|
|
96
|
-
}
|
|
97
|
-
create(value) {
|
|
98
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
99
|
-
message.settings = [];
|
|
100
|
-
message.editable = false;
|
|
101
|
-
if (value !== undefined)
|
|
102
|
-
reflectionMergePartial(this, message, value);
|
|
103
|
-
return message;
|
|
104
|
-
}
|
|
105
|
-
internalBinaryRead(reader, length, options, target) {
|
|
106
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
107
|
-
while (reader.pos < end) {
|
|
108
|
-
let [fieldNo, wireType] = reader.tag();
|
|
109
|
-
switch (fieldNo) {
|
|
110
|
-
case /* repeated shared.EventDefinitionSettings settings */ 1:
|
|
111
|
-
message.settings.push(EventDefinitionSettings.internalBinaryRead(reader, reader.uint32(), options));
|
|
112
|
-
break;
|
|
113
|
-
case /* shared.DefinitionDataType input_type */ 2:
|
|
114
|
-
message.inputType = DefinitionDataType.internalBinaryRead(reader, reader.uint32(), options, message.inputType);
|
|
115
|
-
break;
|
|
116
|
-
case /* bool editable */ 3:
|
|
117
|
-
message.editable = reader.bool();
|
|
118
|
-
break;
|
|
119
|
-
default:
|
|
120
|
-
let u = options.readUnknownField;
|
|
121
|
-
if (u === "throw")
|
|
122
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
123
|
-
let d = reader.skip(wireType);
|
|
124
|
-
if (u !== false)
|
|
125
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return message;
|
|
129
|
-
}
|
|
130
|
-
internalBinaryWrite(message, writer, options) {
|
|
131
|
-
/* repeated shared.EventDefinitionSettings settings = 1; */
|
|
132
|
-
for (let i = 0; i < message.settings.length; i++)
|
|
133
|
-
EventDefinitionSettings.internalBinaryWrite(message.settings[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
134
|
-
/* shared.DefinitionDataType input_type = 2; */
|
|
135
|
-
if (message.inputType)
|
|
136
|
-
DefinitionDataType.internalBinaryWrite(message.inputType, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
137
|
-
/* bool editable = 3; */
|
|
138
|
-
if (message.editable !== false)
|
|
139
|
-
writer.tag(3, WireType.Varint).bool(message.editable);
|
|
140
|
-
let u = options.writeUnknownFields;
|
|
141
|
-
if (u !== false)
|
|
142
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
143
|
-
return writer;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* @generated MessageType for protobuf message shared.EventDefinition
|
|
148
|
-
*/
|
|
149
|
-
export const EventDefinition = new EventDefinition$Type();
|
|
150
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
151
|
-
class EventType$Type extends MessageType {
|
|
152
|
-
constructor() {
|
|
153
|
-
super("shared.EventType", [
|
|
154
|
-
{ no: 1, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
155
|
-
{ no: 2, name: "definition", kind: "message", T: () => EventDefinition }
|
|
156
|
-
]);
|
|
157
|
-
}
|
|
158
|
-
create(value) {
|
|
159
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
160
|
-
message.name = [];
|
|
161
|
-
if (value !== undefined)
|
|
162
|
-
reflectionMergePartial(this, message, value);
|
|
163
|
-
return message;
|
|
164
|
-
}
|
|
165
|
-
internalBinaryRead(reader, length, options, target) {
|
|
166
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
167
|
-
while (reader.pos < end) {
|
|
168
|
-
let [fieldNo, wireType] = reader.tag();
|
|
169
|
-
switch (fieldNo) {
|
|
170
|
-
case /* repeated shared.Translation name */ 1:
|
|
171
|
-
message.name.push(Translation.internalBinaryRead(reader, reader.uint32(), options));
|
|
172
|
-
break;
|
|
173
|
-
case /* shared.EventDefinition definition */ 2:
|
|
174
|
-
message.definition = EventDefinition.internalBinaryRead(reader, reader.uint32(), options, message.definition);
|
|
175
|
-
break;
|
|
176
|
-
default:
|
|
177
|
-
let u = options.readUnknownField;
|
|
178
|
-
if (u === "throw")
|
|
179
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
180
|
-
let d = reader.skip(wireType);
|
|
181
|
-
if (u !== false)
|
|
182
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
return message;
|
|
186
|
-
}
|
|
187
|
-
internalBinaryWrite(message, writer, options) {
|
|
188
|
-
/* repeated shared.Translation name = 1; */
|
|
189
|
-
for (let i = 0; i < message.name.length; i++)
|
|
190
|
-
Translation.internalBinaryWrite(message.name[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
191
|
-
/* shared.EventDefinition definition = 2; */
|
|
192
|
-
if (message.definition)
|
|
193
|
-
EventDefinition.internalBinaryWrite(message.definition, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
194
|
-
let u = options.writeUnknownFields;
|
|
195
|
-
if (u !== false)
|
|
196
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
197
|
-
return writer;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* @generated MessageType for protobuf message shared.EventType
|
|
202
|
-
*/
|
|
203
|
-
export const EventType = new EventType$Type();
|