@code0-tech/tucana 0.0.53 → 0.0.54
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 +1 -1
- package/pb/aquila.action_configuration_pb.d.ts +3 -3
- package/pb/aquila.action_configuration_pb.js +6 -6
- package/pb/sagittarius.action_configuration_pb.d.ts +3 -3
- package/pb/sagittarius.action_configuration_pb.js +6 -6
- package/pb/sagittarius.flow_pb.d.ts +9 -0
- package/pb/sagittarius.flow_pb.js +12 -1
- package/pb/shared.action_configuration_pb.d.ts +57 -1
- package/pb/shared.action_configuration_pb.js +121 -4
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ 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 {
|
|
10
|
+
import { ActionConfigurationDefinition } from "./shared.action_configuration_pb";
|
|
11
11
|
/**
|
|
12
12
|
* Request for updating a action configuration
|
|
13
13
|
*
|
|
@@ -23,9 +23,9 @@ export interface ActionConfigurationUpdateRequest {
|
|
|
23
23
|
/**
|
|
24
24
|
* List of action configurations that should be updated
|
|
25
25
|
*
|
|
26
|
-
* @generated from protobuf field: repeated shared.
|
|
26
|
+
* @generated from protobuf field: repeated shared.ActionConfigurationDefinition action_configurations = 2
|
|
27
27
|
*/
|
|
28
|
-
actionConfigurations:
|
|
28
|
+
actionConfigurations: ActionConfigurationDefinition[];
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Response of updating a action configuration
|
|
@@ -9,13 +9,13 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
9
9
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
10
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
11
11
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
12
|
-
import {
|
|
12
|
+
import { ActionConfigurationDefinition } from "./shared.action_configuration_pb";
|
|
13
13
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
14
14
|
class ActionConfigurationUpdateRequest$Type extends MessageType {
|
|
15
15
|
constructor() {
|
|
16
16
|
super("aquila.ActionConfigurationUpdateRequest", [
|
|
17
17
|
{ no: 1, name: "action_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
18
|
-
{ no: 2, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () =>
|
|
18
|
+
{ no: 2, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionConfigurationDefinition }
|
|
19
19
|
]);
|
|
20
20
|
}
|
|
21
21
|
create(value) {
|
|
@@ -34,8 +34,8 @@ class ActionConfigurationUpdateRequest$Type extends MessageType {
|
|
|
34
34
|
case /* string action_identifier */ 1:
|
|
35
35
|
message.actionIdentifier = reader.string();
|
|
36
36
|
break;
|
|
37
|
-
case /* repeated shared.
|
|
38
|
-
message.actionConfigurations.push(
|
|
37
|
+
case /* repeated shared.ActionConfigurationDefinition action_configurations */ 2:
|
|
38
|
+
message.actionConfigurations.push(ActionConfigurationDefinition.internalBinaryRead(reader, reader.uint32(), options));
|
|
39
39
|
break;
|
|
40
40
|
default:
|
|
41
41
|
let u = options.readUnknownField;
|
|
@@ -52,9 +52,9 @@ class ActionConfigurationUpdateRequest$Type extends MessageType {
|
|
|
52
52
|
/* string action_identifier = 1; */
|
|
53
53
|
if (message.actionIdentifier !== "")
|
|
54
54
|
writer.tag(1, WireType.LengthDelimited).string(message.actionIdentifier);
|
|
55
|
-
/* repeated shared.
|
|
55
|
+
/* repeated shared.ActionConfigurationDefinition action_configurations = 2; */
|
|
56
56
|
for (let i = 0; i < message.actionConfigurations.length; i++)
|
|
57
|
-
|
|
57
|
+
ActionConfigurationDefinition.internalBinaryWrite(message.actionConfigurations[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
58
58
|
let u = options.writeUnknownFields;
|
|
59
59
|
if (u !== false)
|
|
60
60
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7,7 +7,7 @@ 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 {
|
|
10
|
+
import { ActionConfigurationDefinition } from "./shared.action_configuration_pb";
|
|
11
11
|
/**
|
|
12
12
|
* Request for updating a action configuration
|
|
13
13
|
*
|
|
@@ -23,9 +23,9 @@ export interface ActionConfigurationUpdateRequest {
|
|
|
23
23
|
/**
|
|
24
24
|
* List of action configurations that should be updated
|
|
25
25
|
*
|
|
26
|
-
* @generated from protobuf field: repeated shared.
|
|
26
|
+
* @generated from protobuf field: repeated shared.ActionConfigurationDefinition action_configurations = 2
|
|
27
27
|
*/
|
|
28
|
-
actionConfigurations:
|
|
28
|
+
actionConfigurations: ActionConfigurationDefinition[];
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Response of updating a action configuration
|
|
@@ -9,13 +9,13 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
9
9
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
10
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
11
11
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
12
|
-
import {
|
|
12
|
+
import { ActionConfigurationDefinition } from "./shared.action_configuration_pb";
|
|
13
13
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
14
14
|
class ActionConfigurationUpdateRequest$Type extends MessageType {
|
|
15
15
|
constructor() {
|
|
16
16
|
super("sagittarius.ActionConfigurationUpdateRequest", [
|
|
17
17
|
{ no: 1, name: "action_identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
18
|
-
{ no: 2, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () =>
|
|
18
|
+
{ no: 2, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionConfigurationDefinition }
|
|
19
19
|
]);
|
|
20
20
|
}
|
|
21
21
|
create(value) {
|
|
@@ -34,8 +34,8 @@ class ActionConfigurationUpdateRequest$Type extends MessageType {
|
|
|
34
34
|
case /* string action_identifier */ 1:
|
|
35
35
|
message.actionIdentifier = reader.string();
|
|
36
36
|
break;
|
|
37
|
-
case /* repeated shared.
|
|
38
|
-
message.actionConfigurations.push(
|
|
37
|
+
case /* repeated shared.ActionConfigurationDefinition action_configurations */ 2:
|
|
38
|
+
message.actionConfigurations.push(ActionConfigurationDefinition.internalBinaryRead(reader, reader.uint32(), options));
|
|
39
39
|
break;
|
|
40
40
|
default:
|
|
41
41
|
let u = options.readUnknownField;
|
|
@@ -52,9 +52,9 @@ class ActionConfigurationUpdateRequest$Type extends MessageType {
|
|
|
52
52
|
/* string action_identifier = 1; */
|
|
53
53
|
if (message.actionIdentifier !== "")
|
|
54
54
|
writer.tag(1, WireType.LengthDelimited).string(message.actionIdentifier);
|
|
55
|
-
/* repeated shared.
|
|
55
|
+
/* repeated shared.ActionConfigurationDefinition action_configurations = 2; */
|
|
56
56
|
for (let i = 0; i < message.actionConfigurations.length; i++)
|
|
57
|
-
|
|
57
|
+
ActionConfigurationDefinition.internalBinaryWrite(message.actionConfigurations[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
58
58
|
let u = options.writeUnknownFields;
|
|
59
59
|
if (u !== false)
|
|
60
60
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7,6 +7,7 @@ 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 { ActionConfigurations } from "./shared.action_configuration_pb";
|
|
10
11
|
import { Flows } from "./shared.flow_pb";
|
|
11
12
|
import { ValidationFlow } from "./shared.flow_pb";
|
|
12
13
|
/**
|
|
@@ -49,6 +50,14 @@ export interface FlowResponse {
|
|
|
49
50
|
* @generated from protobuf field: shared.Flows flows = 3
|
|
50
51
|
*/
|
|
51
52
|
flows: Flows;
|
|
53
|
+
} | {
|
|
54
|
+
oneofKind: "actionConfigurations";
|
|
55
|
+
/**
|
|
56
|
+
* ActionConfigurations that have been configured by the user
|
|
57
|
+
*
|
|
58
|
+
* @generated from protobuf field: shared.ActionConfigurations action_configurations = 4
|
|
59
|
+
*/
|
|
60
|
+
actionConfigurations: ActionConfigurations;
|
|
52
61
|
} | {
|
|
53
62
|
oneofKind: undefined;
|
|
54
63
|
};
|
|
@@ -9,6 +9,7 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
9
9
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
10
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
11
11
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
12
|
+
import { ActionConfigurations } from "./shared.action_configuration_pb";
|
|
12
13
|
import { Flows } from "./shared.flow_pb";
|
|
13
14
|
import { ValidationFlow } from "./shared.flow_pb";
|
|
14
15
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
@@ -55,7 +56,8 @@ class FlowResponse$Type extends MessageType {
|
|
|
55
56
|
super("sagittarius.FlowResponse", [
|
|
56
57
|
{ no: 1, name: "updated_flow", kind: "message", oneof: "data", T: () => ValidationFlow },
|
|
57
58
|
{ no: 2, name: "deleted_flow_id", kind: "scalar", oneof: "data", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
58
|
-
{ no: 3, name: "flows", kind: "message", oneof: "data", T: () => Flows }
|
|
59
|
+
{ no: 3, name: "flows", kind: "message", oneof: "data", T: () => Flows },
|
|
60
|
+
{ no: 4, name: "action_configurations", kind: "message", oneof: "data", T: () => ActionConfigurations }
|
|
59
61
|
]);
|
|
60
62
|
}
|
|
61
63
|
create(value) {
|
|
@@ -88,6 +90,12 @@ class FlowResponse$Type extends MessageType {
|
|
|
88
90
|
flows: Flows.internalBinaryRead(reader, reader.uint32(), options, message.data.flows)
|
|
89
91
|
};
|
|
90
92
|
break;
|
|
93
|
+
case /* shared.ActionConfigurations action_configurations */ 4:
|
|
94
|
+
message.data = {
|
|
95
|
+
oneofKind: "actionConfigurations",
|
|
96
|
+
actionConfigurations: ActionConfigurations.internalBinaryRead(reader, reader.uint32(), options, message.data.actionConfigurations)
|
|
97
|
+
};
|
|
98
|
+
break;
|
|
91
99
|
default:
|
|
92
100
|
let u = options.readUnknownField;
|
|
93
101
|
if (u === "throw")
|
|
@@ -109,6 +117,9 @@ class FlowResponse$Type extends MessageType {
|
|
|
109
117
|
/* shared.Flows flows = 3; */
|
|
110
118
|
if (message.data.oneofKind === "flows")
|
|
111
119
|
Flows.internalBinaryWrite(message.data.flows, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
120
|
+
/* shared.ActionConfigurations action_configurations = 4; */
|
|
121
|
+
if (message.data.oneofKind === "actionConfigurations")
|
|
122
|
+
ActionConfigurations.internalBinaryWrite(message.data.actionConfigurations, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
112
123
|
let u = options.writeUnknownFields;
|
|
113
124
|
if (u !== false)
|
|
114
125
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -7,13 +7,45 @@ 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 { Value } from "./shared.struct_pb";
|
|
11
10
|
import { DefinitionDataType } from "./shared.data_type_pb";
|
|
12
11
|
import { Translation } from "./shared.translation_pb";
|
|
12
|
+
import { Value } from "./shared.struct_pb";
|
|
13
13
|
/**
|
|
14
|
+
* Message sent by Sagittarius to inform the Action about an ActionConfiguration value
|
|
15
|
+
*
|
|
14
16
|
* @generated from protobuf message shared.ActionConfiguration
|
|
15
17
|
*/
|
|
16
18
|
export interface ActionConfiguration {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf field: string identifier = 1
|
|
21
|
+
*/
|
|
22
|
+
identifier: string;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf field: int64 project_id = 2
|
|
25
|
+
*/
|
|
26
|
+
projectId: bigint;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf field: shared.Value value = 3
|
|
29
|
+
*/
|
|
30
|
+
value?: Value;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Wrapper message containing a collection of ActionConfiguration instances
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf message shared.ActionConfigurations
|
|
36
|
+
*/
|
|
37
|
+
export interface ActionConfigurations {
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf field: repeated shared.ActionConfiguration action_configurations = 1
|
|
40
|
+
*/
|
|
41
|
+
actionConfigurations: ActionConfiguration[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Message sent by the Action to define a configuration
|
|
45
|
+
*
|
|
46
|
+
* @generated from protobuf message shared.ActionConfigurationDefinition
|
|
47
|
+
*/
|
|
48
|
+
export interface ActionConfigurationDefinition {
|
|
17
49
|
/**
|
|
18
50
|
* @generated from protobuf field: repeated shared.Translation name = 1
|
|
19
51
|
*/
|
|
@@ -30,6 +62,10 @@ export interface ActionConfiguration {
|
|
|
30
62
|
* @generated from protobuf field: optional shared.Value default_value = 4
|
|
31
63
|
*/
|
|
32
64
|
defaultValue?: Value;
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf field: string identifier = 5
|
|
67
|
+
*/
|
|
68
|
+
identifier: string;
|
|
33
69
|
}
|
|
34
70
|
declare class ActionConfiguration$Type extends MessageType<ActionConfiguration> {
|
|
35
71
|
constructor();
|
|
@@ -41,4 +77,24 @@ declare class ActionConfiguration$Type extends MessageType<ActionConfiguration>
|
|
|
41
77
|
* @generated MessageType for protobuf message shared.ActionConfiguration
|
|
42
78
|
*/
|
|
43
79
|
export declare const ActionConfiguration: ActionConfiguration$Type;
|
|
80
|
+
declare class ActionConfigurations$Type extends MessageType<ActionConfigurations> {
|
|
81
|
+
constructor();
|
|
82
|
+
create(value?: PartialMessage<ActionConfigurations>): ActionConfigurations;
|
|
83
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionConfigurations): ActionConfigurations;
|
|
84
|
+
internalBinaryWrite(message: ActionConfigurations, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @generated MessageType for protobuf message shared.ActionConfigurations
|
|
88
|
+
*/
|
|
89
|
+
export declare const ActionConfigurations: ActionConfigurations$Type;
|
|
90
|
+
declare class ActionConfigurationDefinition$Type extends MessageType<ActionConfigurationDefinition> {
|
|
91
|
+
constructor();
|
|
92
|
+
create(value?: PartialMessage<ActionConfigurationDefinition>): ActionConfigurationDefinition;
|
|
93
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionConfigurationDefinition): ActionConfigurationDefinition;
|
|
94
|
+
internalBinaryWrite(message: ActionConfigurationDefinition, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @generated MessageType for protobuf message shared.ActionConfigurationDefinition
|
|
98
|
+
*/
|
|
99
|
+
export declare const ActionConfigurationDefinition: ActionConfigurationDefinition$Type;
|
|
44
100
|
export {};
|
|
@@ -5,23 +5,134 @@ 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 { Value } from "./shared.struct_pb";
|
|
9
8
|
import { DefinitionDataType } from "./shared.data_type_pb";
|
|
10
9
|
import { Translation } from "./shared.translation_pb";
|
|
10
|
+
import { Value } from "./shared.struct_pb";
|
|
11
11
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
12
12
|
class ActionConfiguration$Type extends MessageType {
|
|
13
13
|
constructor() {
|
|
14
14
|
super("shared.ActionConfiguration", [
|
|
15
|
+
{ no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
16
|
+
{ no: 2, name: "project_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
17
|
+
{ no: 3, name: "value", kind: "message", T: () => Value }
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
20
|
+
create(value) {
|
|
21
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
22
|
+
message.identifier = "";
|
|
23
|
+
message.projectId = 0n;
|
|
24
|
+
if (value !== undefined)
|
|
25
|
+
reflectionMergePartial(this, message, value);
|
|
26
|
+
return message;
|
|
27
|
+
}
|
|
28
|
+
internalBinaryRead(reader, length, options, target) {
|
|
29
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
30
|
+
while (reader.pos < end) {
|
|
31
|
+
let [fieldNo, wireType] = reader.tag();
|
|
32
|
+
switch (fieldNo) {
|
|
33
|
+
case /* string identifier */ 1:
|
|
34
|
+
message.identifier = reader.string();
|
|
35
|
+
break;
|
|
36
|
+
case /* int64 project_id */ 2:
|
|
37
|
+
message.projectId = reader.int64().toBigInt();
|
|
38
|
+
break;
|
|
39
|
+
case /* shared.Value value */ 3:
|
|
40
|
+
message.value = Value.internalBinaryRead(reader, reader.uint32(), options, message.value);
|
|
41
|
+
break;
|
|
42
|
+
default:
|
|
43
|
+
let u = options.readUnknownField;
|
|
44
|
+
if (u === "throw")
|
|
45
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
46
|
+
let d = reader.skip(wireType);
|
|
47
|
+
if (u !== false)
|
|
48
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return message;
|
|
52
|
+
}
|
|
53
|
+
internalBinaryWrite(message, writer, options) {
|
|
54
|
+
/* string identifier = 1; */
|
|
55
|
+
if (message.identifier !== "")
|
|
56
|
+
writer.tag(1, WireType.LengthDelimited).string(message.identifier);
|
|
57
|
+
/* int64 project_id = 2; */
|
|
58
|
+
if (message.projectId !== 0n)
|
|
59
|
+
writer.tag(2, WireType.Varint).int64(message.projectId);
|
|
60
|
+
/* shared.Value value = 3; */
|
|
61
|
+
if (message.value)
|
|
62
|
+
Value.internalBinaryWrite(message.value, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
63
|
+
let u = options.writeUnknownFields;
|
|
64
|
+
if (u !== false)
|
|
65
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
66
|
+
return writer;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @generated MessageType for protobuf message shared.ActionConfiguration
|
|
71
|
+
*/
|
|
72
|
+
export const ActionConfiguration = new ActionConfiguration$Type();
|
|
73
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
74
|
+
class ActionConfigurations$Type extends MessageType {
|
|
75
|
+
constructor() {
|
|
76
|
+
super("shared.ActionConfigurations", [
|
|
77
|
+
{ no: 1, name: "action_configurations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionConfiguration }
|
|
78
|
+
]);
|
|
79
|
+
}
|
|
80
|
+
create(value) {
|
|
81
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
82
|
+
message.actionConfigurations = [];
|
|
83
|
+
if (value !== undefined)
|
|
84
|
+
reflectionMergePartial(this, message, value);
|
|
85
|
+
return message;
|
|
86
|
+
}
|
|
87
|
+
internalBinaryRead(reader, length, options, target) {
|
|
88
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
89
|
+
while (reader.pos < end) {
|
|
90
|
+
let [fieldNo, wireType] = reader.tag();
|
|
91
|
+
switch (fieldNo) {
|
|
92
|
+
case /* repeated shared.ActionConfiguration action_configurations */ 1:
|
|
93
|
+
message.actionConfigurations.push(ActionConfiguration.internalBinaryRead(reader, reader.uint32(), options));
|
|
94
|
+
break;
|
|
95
|
+
default:
|
|
96
|
+
let u = options.readUnknownField;
|
|
97
|
+
if (u === "throw")
|
|
98
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
99
|
+
let d = reader.skip(wireType);
|
|
100
|
+
if (u !== false)
|
|
101
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return message;
|
|
105
|
+
}
|
|
106
|
+
internalBinaryWrite(message, writer, options) {
|
|
107
|
+
/* repeated shared.ActionConfiguration action_configurations = 1; */
|
|
108
|
+
for (let i = 0; i < message.actionConfigurations.length; i++)
|
|
109
|
+
ActionConfiguration.internalBinaryWrite(message.actionConfigurations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
110
|
+
let u = options.writeUnknownFields;
|
|
111
|
+
if (u !== false)
|
|
112
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
113
|
+
return writer;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @generated MessageType for protobuf message shared.ActionConfigurations
|
|
118
|
+
*/
|
|
119
|
+
export const ActionConfigurations = new ActionConfigurations$Type();
|
|
120
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
121
|
+
class ActionConfigurationDefinition$Type extends MessageType {
|
|
122
|
+
constructor() {
|
|
123
|
+
super("shared.ActionConfigurationDefinition", [
|
|
15
124
|
{ no: 1, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
16
125
|
{ no: 2, name: "description", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation },
|
|
17
126
|
{ no: 3, name: "type", kind: "message", T: () => DefinitionDataType },
|
|
18
|
-
{ no: 4, name: "default_value", kind: "message", T: () => Value }
|
|
127
|
+
{ no: 4, name: "default_value", kind: "message", T: () => Value },
|
|
128
|
+
{ no: 5, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
19
129
|
]);
|
|
20
130
|
}
|
|
21
131
|
create(value) {
|
|
22
132
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
23
133
|
message.name = [];
|
|
24
134
|
message.description = [];
|
|
135
|
+
message.identifier = "";
|
|
25
136
|
if (value !== undefined)
|
|
26
137
|
reflectionMergePartial(this, message, value);
|
|
27
138
|
return message;
|
|
@@ -43,6 +154,9 @@ class ActionConfiguration$Type extends MessageType {
|
|
|
43
154
|
case /* optional shared.Value default_value */ 4:
|
|
44
155
|
message.defaultValue = Value.internalBinaryRead(reader, reader.uint32(), options, message.defaultValue);
|
|
45
156
|
break;
|
|
157
|
+
case /* string identifier */ 5:
|
|
158
|
+
message.identifier = reader.string();
|
|
159
|
+
break;
|
|
46
160
|
default:
|
|
47
161
|
let u = options.readUnknownField;
|
|
48
162
|
if (u === "throw")
|
|
@@ -67,6 +181,9 @@ class ActionConfiguration$Type extends MessageType {
|
|
|
67
181
|
/* optional shared.Value default_value = 4; */
|
|
68
182
|
if (message.defaultValue)
|
|
69
183
|
Value.internalBinaryWrite(message.defaultValue, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
184
|
+
/* string identifier = 5; */
|
|
185
|
+
if (message.identifier !== "")
|
|
186
|
+
writer.tag(5, WireType.LengthDelimited).string(message.identifier);
|
|
70
187
|
let u = options.writeUnknownFields;
|
|
71
188
|
if (u !== false)
|
|
72
189
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -74,6 +191,6 @@ class ActionConfiguration$Type extends MessageType {
|
|
|
74
191
|
}
|
|
75
192
|
}
|
|
76
193
|
/**
|
|
77
|
-
* @generated MessageType for protobuf message shared.
|
|
194
|
+
* @generated MessageType for protobuf message shared.ActionConfigurationDefinition
|
|
78
195
|
*/
|
|
79
|
-
export const
|
|
196
|
+
export const ActionConfigurationDefinition = new ActionConfigurationDefinition$Type();
|