@rise-maritime/keelson-js 0.6.0-alpha.225.dev.1 → 0.6.0-alpha.232.dev.1
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/dist/index.d.ts +8 -0
- package/dist/interfaces/Route.d.ts +13 -0
- package/dist/interfaces/Route.js +32 -0
- package/dist/interfaces/ScenarioControl.d.ts +96 -3
- package/dist/interfaces/ScenarioControl.js +394 -37
- package/dist/interfaces/serviceRegistry.d.ts +8 -0
- package/dist/payloads/Route.d.ts +13 -0
- package/dist/payloads/Route.js +32 -0
- package/dist/payloads/index.keelson.d.ts +0 -2
- package/dist/payloads/index.keelson.js +0 -2
- package/dist/qos.json +3 -8
- package/dist/subjects.json +4 -2
- package/package.json +1 -1
- package/dist/payloads/ScenarioEvent.d.ts +0 -90
- package/dist/payloads/ScenarioEvent.js +0 -294
- package/dist/payloads/ScenarioTickAck.d.ts +0 -81
- package/dist/payloads/ScenarioTickAck.js +0 -225
|
@@ -5,12 +5,315 @@
|
|
|
5
5
|
// protoc v6.30.2
|
|
6
6
|
// source: ScenarioControl.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ScenarioControlDefinition = exports.StepResponse = exports.SetRateResponse = exports.ResetResponse = exports.StopResponse = exports.PauseResponse = exports.StartResponse = exports.
|
|
8
|
+
exports.ScenarioControlDefinition = exports.StepResponse = exports.LoadResponse = exports.SetRateResponse = exports.ResetResponse = exports.StopResponse = exports.PauseResponse = exports.StartResponse = exports.SetRateRequest = exports.StepRequest = exports.LoadRequest = exports.ListResponse = exports.ListRequest = exports.ScenarioInfo = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const empty_1 = require("./google/protobuf/empty");
|
|
12
12
|
const timestamp_1 = require("./google/protobuf/timestamp");
|
|
13
13
|
exports.protobufPackage = "keelson.interfaces.scenario_control";
|
|
14
|
+
function createBaseScenarioInfo() {
|
|
15
|
+
return {
|
|
16
|
+
scenarioId: "",
|
|
17
|
+
description: "",
|
|
18
|
+
scenarioHash: "",
|
|
19
|
+
vesselCount: 0,
|
|
20
|
+
durationTicks: 0,
|
|
21
|
+
stepSizeMs: 0,
|
|
22
|
+
loadable: false,
|
|
23
|
+
reason: "",
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
exports.ScenarioInfo = {
|
|
27
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
28
|
+
if (message.scenarioId !== "") {
|
|
29
|
+
writer.uint32(10).string(message.scenarioId);
|
|
30
|
+
}
|
|
31
|
+
if (message.description !== "") {
|
|
32
|
+
writer.uint32(18).string(message.description);
|
|
33
|
+
}
|
|
34
|
+
if (message.scenarioHash !== "") {
|
|
35
|
+
writer.uint32(26).string(message.scenarioHash);
|
|
36
|
+
}
|
|
37
|
+
if (message.vesselCount !== 0) {
|
|
38
|
+
writer.uint32(32).uint32(message.vesselCount);
|
|
39
|
+
}
|
|
40
|
+
if (message.durationTicks !== 0) {
|
|
41
|
+
writer.uint32(40).uint64(message.durationTicks);
|
|
42
|
+
}
|
|
43
|
+
if (message.stepSizeMs !== 0) {
|
|
44
|
+
writer.uint32(48).uint32(message.stepSizeMs);
|
|
45
|
+
}
|
|
46
|
+
if (message.loadable !== false) {
|
|
47
|
+
writer.uint32(56).bool(message.loadable);
|
|
48
|
+
}
|
|
49
|
+
if (message.reason !== "") {
|
|
50
|
+
writer.uint32(66).string(message.reason);
|
|
51
|
+
}
|
|
52
|
+
return writer;
|
|
53
|
+
},
|
|
54
|
+
decode(input, length) {
|
|
55
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
56
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
57
|
+
const message = createBaseScenarioInfo();
|
|
58
|
+
while (reader.pos < end) {
|
|
59
|
+
const tag = reader.uint32();
|
|
60
|
+
switch (tag >>> 3) {
|
|
61
|
+
case 1: {
|
|
62
|
+
if (tag !== 10) {
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
message.scenarioId = reader.string();
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
case 2: {
|
|
69
|
+
if (tag !== 18) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.description = reader.string();
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
case 3: {
|
|
76
|
+
if (tag !== 26) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
message.scenarioHash = reader.string();
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
case 4: {
|
|
83
|
+
if (tag !== 32) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.vesselCount = reader.uint32();
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
case 5: {
|
|
90
|
+
if (tag !== 40) {
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
message.durationTicks = longToNumber(reader.uint64());
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
case 6: {
|
|
97
|
+
if (tag !== 48) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
message.stepSizeMs = reader.uint32();
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
case 7: {
|
|
104
|
+
if (tag !== 56) {
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
message.loadable = reader.bool();
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
case 8: {
|
|
111
|
+
if (tag !== 66) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
message.reason = reader.string();
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
reader.skip(tag & 7);
|
|
122
|
+
}
|
|
123
|
+
return message;
|
|
124
|
+
},
|
|
125
|
+
fromJSON(object) {
|
|
126
|
+
return {
|
|
127
|
+
scenarioId: isSet(object.scenarioId) ? globalThis.String(object.scenarioId) : "",
|
|
128
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
129
|
+
scenarioHash: isSet(object.scenarioHash) ? globalThis.String(object.scenarioHash) : "",
|
|
130
|
+
vesselCount: isSet(object.vesselCount) ? globalThis.Number(object.vesselCount) : 0,
|
|
131
|
+
durationTicks: isSet(object.durationTicks) ? globalThis.Number(object.durationTicks) : 0,
|
|
132
|
+
stepSizeMs: isSet(object.stepSizeMs) ? globalThis.Number(object.stepSizeMs) : 0,
|
|
133
|
+
loadable: isSet(object.loadable) ? globalThis.Boolean(object.loadable) : false,
|
|
134
|
+
reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
|
|
135
|
+
};
|
|
136
|
+
},
|
|
137
|
+
toJSON(message) {
|
|
138
|
+
const obj = {};
|
|
139
|
+
if (message.scenarioId !== "") {
|
|
140
|
+
obj.scenarioId = message.scenarioId;
|
|
141
|
+
}
|
|
142
|
+
if (message.description !== "") {
|
|
143
|
+
obj.description = message.description;
|
|
144
|
+
}
|
|
145
|
+
if (message.scenarioHash !== "") {
|
|
146
|
+
obj.scenarioHash = message.scenarioHash;
|
|
147
|
+
}
|
|
148
|
+
if (message.vesselCount !== 0) {
|
|
149
|
+
obj.vesselCount = Math.round(message.vesselCount);
|
|
150
|
+
}
|
|
151
|
+
if (message.durationTicks !== 0) {
|
|
152
|
+
obj.durationTicks = Math.round(message.durationTicks);
|
|
153
|
+
}
|
|
154
|
+
if (message.stepSizeMs !== 0) {
|
|
155
|
+
obj.stepSizeMs = Math.round(message.stepSizeMs);
|
|
156
|
+
}
|
|
157
|
+
if (message.loadable !== false) {
|
|
158
|
+
obj.loadable = message.loadable;
|
|
159
|
+
}
|
|
160
|
+
if (message.reason !== "") {
|
|
161
|
+
obj.reason = message.reason;
|
|
162
|
+
}
|
|
163
|
+
return obj;
|
|
164
|
+
},
|
|
165
|
+
create(base) {
|
|
166
|
+
return exports.ScenarioInfo.fromPartial(base ?? {});
|
|
167
|
+
},
|
|
168
|
+
fromPartial(object) {
|
|
169
|
+
const message = createBaseScenarioInfo();
|
|
170
|
+
message.scenarioId = object.scenarioId ?? "";
|
|
171
|
+
message.description = object.description ?? "";
|
|
172
|
+
message.scenarioHash = object.scenarioHash ?? "";
|
|
173
|
+
message.vesselCount = object.vesselCount ?? 0;
|
|
174
|
+
message.durationTicks = object.durationTicks ?? 0;
|
|
175
|
+
message.stepSizeMs = object.stepSizeMs ?? 0;
|
|
176
|
+
message.loadable = object.loadable ?? false;
|
|
177
|
+
message.reason = object.reason ?? "";
|
|
178
|
+
return message;
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
function createBaseListRequest() {
|
|
182
|
+
return { pattern: "" };
|
|
183
|
+
}
|
|
184
|
+
exports.ListRequest = {
|
|
185
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
186
|
+
if (message.pattern !== "") {
|
|
187
|
+
writer.uint32(10).string(message.pattern);
|
|
188
|
+
}
|
|
189
|
+
return writer;
|
|
190
|
+
},
|
|
191
|
+
decode(input, length) {
|
|
192
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
193
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
194
|
+
const message = createBaseListRequest();
|
|
195
|
+
while (reader.pos < end) {
|
|
196
|
+
const tag = reader.uint32();
|
|
197
|
+
switch (tag >>> 3) {
|
|
198
|
+
case 1: {
|
|
199
|
+
if (tag !== 10) {
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
message.pattern = reader.string();
|
|
203
|
+
continue;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
reader.skip(tag & 7);
|
|
210
|
+
}
|
|
211
|
+
return message;
|
|
212
|
+
},
|
|
213
|
+
fromJSON(object) {
|
|
214
|
+
return { pattern: isSet(object.pattern) ? globalThis.String(object.pattern) : "" };
|
|
215
|
+
},
|
|
216
|
+
toJSON(message) {
|
|
217
|
+
const obj = {};
|
|
218
|
+
if (message.pattern !== "") {
|
|
219
|
+
obj.pattern = message.pattern;
|
|
220
|
+
}
|
|
221
|
+
return obj;
|
|
222
|
+
},
|
|
223
|
+
create(base) {
|
|
224
|
+
return exports.ListRequest.fromPartial(base ?? {});
|
|
225
|
+
},
|
|
226
|
+
fromPartial(object) {
|
|
227
|
+
const message = createBaseListRequest();
|
|
228
|
+
message.pattern = object.pattern ?? "";
|
|
229
|
+
return message;
|
|
230
|
+
},
|
|
231
|
+
};
|
|
232
|
+
function createBaseListResponse() {
|
|
233
|
+
return { baseDirectory: "", scenarios: [], truncated: false };
|
|
234
|
+
}
|
|
235
|
+
exports.ListResponse = {
|
|
236
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
237
|
+
if (message.baseDirectory !== "") {
|
|
238
|
+
writer.uint32(10).string(message.baseDirectory);
|
|
239
|
+
}
|
|
240
|
+
for (const v of message.scenarios) {
|
|
241
|
+
exports.ScenarioInfo.encode(v, writer.uint32(18).fork()).join();
|
|
242
|
+
}
|
|
243
|
+
if (message.truncated !== false) {
|
|
244
|
+
writer.uint32(24).bool(message.truncated);
|
|
245
|
+
}
|
|
246
|
+
return writer;
|
|
247
|
+
},
|
|
248
|
+
decode(input, length) {
|
|
249
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
250
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
251
|
+
const message = createBaseListResponse();
|
|
252
|
+
while (reader.pos < end) {
|
|
253
|
+
const tag = reader.uint32();
|
|
254
|
+
switch (tag >>> 3) {
|
|
255
|
+
case 1: {
|
|
256
|
+
if (tag !== 10) {
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
message.baseDirectory = reader.string();
|
|
260
|
+
continue;
|
|
261
|
+
}
|
|
262
|
+
case 2: {
|
|
263
|
+
if (tag !== 18) {
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
message.scenarios.push(exports.ScenarioInfo.decode(reader, reader.uint32()));
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
case 3: {
|
|
270
|
+
if (tag !== 24) {
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
message.truncated = reader.bool();
|
|
274
|
+
continue;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
reader.skip(tag & 7);
|
|
281
|
+
}
|
|
282
|
+
return message;
|
|
283
|
+
},
|
|
284
|
+
fromJSON(object) {
|
|
285
|
+
return {
|
|
286
|
+
baseDirectory: isSet(object.baseDirectory) ? globalThis.String(object.baseDirectory) : "",
|
|
287
|
+
scenarios: globalThis.Array.isArray(object?.scenarios)
|
|
288
|
+
? object.scenarios.map((e) => exports.ScenarioInfo.fromJSON(e))
|
|
289
|
+
: [],
|
|
290
|
+
truncated: isSet(object.truncated) ? globalThis.Boolean(object.truncated) : false,
|
|
291
|
+
};
|
|
292
|
+
},
|
|
293
|
+
toJSON(message) {
|
|
294
|
+
const obj = {};
|
|
295
|
+
if (message.baseDirectory !== "") {
|
|
296
|
+
obj.baseDirectory = message.baseDirectory;
|
|
297
|
+
}
|
|
298
|
+
if (message.scenarios?.length) {
|
|
299
|
+
obj.scenarios = message.scenarios.map((e) => exports.ScenarioInfo.toJSON(e));
|
|
300
|
+
}
|
|
301
|
+
if (message.truncated !== false) {
|
|
302
|
+
obj.truncated = message.truncated;
|
|
303
|
+
}
|
|
304
|
+
return obj;
|
|
305
|
+
},
|
|
306
|
+
create(base) {
|
|
307
|
+
return exports.ListResponse.fromPartial(base ?? {});
|
|
308
|
+
},
|
|
309
|
+
fromPartial(object) {
|
|
310
|
+
const message = createBaseListResponse();
|
|
311
|
+
message.baseDirectory = object.baseDirectory ?? "";
|
|
312
|
+
message.scenarios = object.scenarios?.map((e) => exports.ScenarioInfo.fromPartial(e)) || [];
|
|
313
|
+
message.truncated = object.truncated ?? false;
|
|
314
|
+
return message;
|
|
315
|
+
},
|
|
316
|
+
};
|
|
14
317
|
function createBaseLoadRequest() {
|
|
15
318
|
return { scenario: "" };
|
|
16
319
|
}
|
|
@@ -164,17 +467,17 @@ exports.SetRateRequest = {
|
|
|
164
467
|
return message;
|
|
165
468
|
},
|
|
166
469
|
};
|
|
167
|
-
function
|
|
470
|
+
function createBaseStartResponse() {
|
|
168
471
|
return {};
|
|
169
472
|
}
|
|
170
|
-
exports.
|
|
473
|
+
exports.StartResponse = {
|
|
171
474
|
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
172
475
|
return writer;
|
|
173
476
|
},
|
|
174
477
|
decode(input, length) {
|
|
175
478
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
176
479
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
177
|
-
const message =
|
|
480
|
+
const message = createBaseStartResponse();
|
|
178
481
|
while (reader.pos < end) {
|
|
179
482
|
const tag = reader.uint32();
|
|
180
483
|
switch (tag >>> 3) {
|
|
@@ -194,24 +497,24 @@ exports.LoadResponse = {
|
|
|
194
497
|
return obj;
|
|
195
498
|
},
|
|
196
499
|
create(base) {
|
|
197
|
-
return exports.
|
|
500
|
+
return exports.StartResponse.fromPartial(base ?? {});
|
|
198
501
|
},
|
|
199
502
|
fromPartial(_) {
|
|
200
|
-
const message =
|
|
503
|
+
const message = createBaseStartResponse();
|
|
201
504
|
return message;
|
|
202
505
|
},
|
|
203
506
|
};
|
|
204
|
-
function
|
|
507
|
+
function createBasePauseResponse() {
|
|
205
508
|
return {};
|
|
206
509
|
}
|
|
207
|
-
exports.
|
|
510
|
+
exports.PauseResponse = {
|
|
208
511
|
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
209
512
|
return writer;
|
|
210
513
|
},
|
|
211
514
|
decode(input, length) {
|
|
212
515
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
213
516
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
214
|
-
const message =
|
|
517
|
+
const message = createBasePauseResponse();
|
|
215
518
|
while (reader.pos < end) {
|
|
216
519
|
const tag = reader.uint32();
|
|
217
520
|
switch (tag >>> 3) {
|
|
@@ -231,24 +534,24 @@ exports.StartResponse = {
|
|
|
231
534
|
return obj;
|
|
232
535
|
},
|
|
233
536
|
create(base) {
|
|
234
|
-
return exports.
|
|
537
|
+
return exports.PauseResponse.fromPartial(base ?? {});
|
|
235
538
|
},
|
|
236
539
|
fromPartial(_) {
|
|
237
|
-
const message =
|
|
540
|
+
const message = createBasePauseResponse();
|
|
238
541
|
return message;
|
|
239
542
|
},
|
|
240
543
|
};
|
|
241
|
-
function
|
|
544
|
+
function createBaseStopResponse() {
|
|
242
545
|
return {};
|
|
243
546
|
}
|
|
244
|
-
exports.
|
|
547
|
+
exports.StopResponse = {
|
|
245
548
|
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
246
549
|
return writer;
|
|
247
550
|
},
|
|
248
551
|
decode(input, length) {
|
|
249
552
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
250
553
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
251
|
-
const message =
|
|
554
|
+
const message = createBaseStopResponse();
|
|
252
555
|
while (reader.pos < end) {
|
|
253
556
|
const tag = reader.uint32();
|
|
254
557
|
switch (tag >>> 3) {
|
|
@@ -268,24 +571,24 @@ exports.PauseResponse = {
|
|
|
268
571
|
return obj;
|
|
269
572
|
},
|
|
270
573
|
create(base) {
|
|
271
|
-
return exports.
|
|
574
|
+
return exports.StopResponse.fromPartial(base ?? {});
|
|
272
575
|
},
|
|
273
576
|
fromPartial(_) {
|
|
274
|
-
const message =
|
|
577
|
+
const message = createBaseStopResponse();
|
|
275
578
|
return message;
|
|
276
579
|
},
|
|
277
580
|
};
|
|
278
|
-
function
|
|
581
|
+
function createBaseResetResponse() {
|
|
279
582
|
return {};
|
|
280
583
|
}
|
|
281
|
-
exports.
|
|
584
|
+
exports.ResetResponse = {
|
|
282
585
|
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
283
586
|
return writer;
|
|
284
587
|
},
|
|
285
588
|
decode(input, length) {
|
|
286
589
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
287
590
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
288
|
-
const message =
|
|
591
|
+
const message = createBaseResetResponse();
|
|
289
592
|
while (reader.pos < end) {
|
|
290
593
|
const tag = reader.uint32();
|
|
291
594
|
switch (tag >>> 3) {
|
|
@@ -305,24 +608,24 @@ exports.StopResponse = {
|
|
|
305
608
|
return obj;
|
|
306
609
|
},
|
|
307
610
|
create(base) {
|
|
308
|
-
return exports.
|
|
611
|
+
return exports.ResetResponse.fromPartial(base ?? {});
|
|
309
612
|
},
|
|
310
613
|
fromPartial(_) {
|
|
311
|
-
const message =
|
|
614
|
+
const message = createBaseResetResponse();
|
|
312
615
|
return message;
|
|
313
616
|
},
|
|
314
617
|
};
|
|
315
|
-
function
|
|
618
|
+
function createBaseSetRateResponse() {
|
|
316
619
|
return {};
|
|
317
620
|
}
|
|
318
|
-
exports.
|
|
621
|
+
exports.SetRateResponse = {
|
|
319
622
|
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
320
623
|
return writer;
|
|
321
624
|
},
|
|
322
625
|
decode(input, length) {
|
|
323
626
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
324
627
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
325
|
-
const message =
|
|
628
|
+
const message = createBaseSetRateResponse();
|
|
326
629
|
while (reader.pos < end) {
|
|
327
630
|
const tag = reader.uint32();
|
|
328
631
|
switch (tag >>> 3) {
|
|
@@ -342,27 +645,57 @@ exports.ResetResponse = {
|
|
|
342
645
|
return obj;
|
|
343
646
|
},
|
|
344
647
|
create(base) {
|
|
345
|
-
return exports.
|
|
648
|
+
return exports.SetRateResponse.fromPartial(base ?? {});
|
|
346
649
|
},
|
|
347
650
|
fromPartial(_) {
|
|
348
|
-
const message =
|
|
651
|
+
const message = createBaseSetRateResponse();
|
|
349
652
|
return message;
|
|
350
653
|
},
|
|
351
654
|
};
|
|
352
|
-
function
|
|
353
|
-
return {};
|
|
655
|
+
function createBaseLoadResponse() {
|
|
656
|
+
return { scenarioId: "", scenarioHash: "", runId: "" };
|
|
354
657
|
}
|
|
355
|
-
exports.
|
|
356
|
-
encode(
|
|
658
|
+
exports.LoadResponse = {
|
|
659
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
660
|
+
if (message.scenarioId !== "") {
|
|
661
|
+
writer.uint32(10).string(message.scenarioId);
|
|
662
|
+
}
|
|
663
|
+
if (message.scenarioHash !== "") {
|
|
664
|
+
writer.uint32(18).string(message.scenarioHash);
|
|
665
|
+
}
|
|
666
|
+
if (message.runId !== "") {
|
|
667
|
+
writer.uint32(26).string(message.runId);
|
|
668
|
+
}
|
|
357
669
|
return writer;
|
|
358
670
|
},
|
|
359
671
|
decode(input, length) {
|
|
360
672
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
361
673
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
362
|
-
const message =
|
|
674
|
+
const message = createBaseLoadResponse();
|
|
363
675
|
while (reader.pos < end) {
|
|
364
676
|
const tag = reader.uint32();
|
|
365
677
|
switch (tag >>> 3) {
|
|
678
|
+
case 1: {
|
|
679
|
+
if (tag !== 10) {
|
|
680
|
+
break;
|
|
681
|
+
}
|
|
682
|
+
message.scenarioId = reader.string();
|
|
683
|
+
continue;
|
|
684
|
+
}
|
|
685
|
+
case 2: {
|
|
686
|
+
if (tag !== 18) {
|
|
687
|
+
break;
|
|
688
|
+
}
|
|
689
|
+
message.scenarioHash = reader.string();
|
|
690
|
+
continue;
|
|
691
|
+
}
|
|
692
|
+
case 3: {
|
|
693
|
+
if (tag !== 26) {
|
|
694
|
+
break;
|
|
695
|
+
}
|
|
696
|
+
message.runId = reader.string();
|
|
697
|
+
continue;
|
|
698
|
+
}
|
|
366
699
|
}
|
|
367
700
|
if ((tag & 7) === 4 || tag === 0) {
|
|
368
701
|
break;
|
|
@@ -371,18 +704,34 @@ exports.SetRateResponse = {
|
|
|
371
704
|
}
|
|
372
705
|
return message;
|
|
373
706
|
},
|
|
374
|
-
fromJSON(
|
|
375
|
-
return {
|
|
707
|
+
fromJSON(object) {
|
|
708
|
+
return {
|
|
709
|
+
scenarioId: isSet(object.scenarioId) ? globalThis.String(object.scenarioId) : "",
|
|
710
|
+
scenarioHash: isSet(object.scenarioHash) ? globalThis.String(object.scenarioHash) : "",
|
|
711
|
+
runId: isSet(object.runId) ? globalThis.String(object.runId) : "",
|
|
712
|
+
};
|
|
376
713
|
},
|
|
377
|
-
toJSON(
|
|
714
|
+
toJSON(message) {
|
|
378
715
|
const obj = {};
|
|
716
|
+
if (message.scenarioId !== "") {
|
|
717
|
+
obj.scenarioId = message.scenarioId;
|
|
718
|
+
}
|
|
719
|
+
if (message.scenarioHash !== "") {
|
|
720
|
+
obj.scenarioHash = message.scenarioHash;
|
|
721
|
+
}
|
|
722
|
+
if (message.runId !== "") {
|
|
723
|
+
obj.runId = message.runId;
|
|
724
|
+
}
|
|
379
725
|
return obj;
|
|
380
726
|
},
|
|
381
727
|
create(base) {
|
|
382
|
-
return exports.
|
|
728
|
+
return exports.LoadResponse.fromPartial(base ?? {});
|
|
383
729
|
},
|
|
384
|
-
fromPartial(
|
|
385
|
-
const message =
|
|
730
|
+
fromPartial(object) {
|
|
731
|
+
const message = createBaseLoadResponse();
|
|
732
|
+
message.scenarioId = object.scenarioId ?? "";
|
|
733
|
+
message.scenarioHash = object.scenarioHash ?? "";
|
|
734
|
+
message.runId = object.runId ?? "";
|
|
386
735
|
return message;
|
|
387
736
|
},
|
|
388
737
|
};
|
|
@@ -458,6 +807,14 @@ exports.ScenarioControlDefinition = {
|
|
|
458
807
|
name: "ScenarioControl",
|
|
459
808
|
fullName: "keelson.interfaces.scenario_control.ScenarioControl",
|
|
460
809
|
methods: {
|
|
810
|
+
list: {
|
|
811
|
+
name: "list",
|
|
812
|
+
requestType: exports.ListRequest,
|
|
813
|
+
requestStream: false,
|
|
814
|
+
responseType: exports.ListResponse,
|
|
815
|
+
responseStream: false,
|
|
816
|
+
options: {},
|
|
817
|
+
},
|
|
461
818
|
load: {
|
|
462
819
|
name: "load",
|
|
463
820
|
requestType: exports.LoadRequest,
|
|
@@ -199,6 +199,14 @@ export declare const serviceDefinitions: {
|
|
|
199
199
|
readonly name: "ScenarioControl";
|
|
200
200
|
readonly fullName: "keelson.interfaces.scenario_control.ScenarioControl";
|
|
201
201
|
readonly methods: {
|
|
202
|
+
readonly list: {
|
|
203
|
+
readonly name: "list";
|
|
204
|
+
readonly requestType: import("./ScenarioControl").MessageFns<import("./ScenarioControl").ListRequest>;
|
|
205
|
+
readonly requestStream: false;
|
|
206
|
+
readonly responseType: import("./ScenarioControl").MessageFns<import("./ScenarioControl").ListResponse>;
|
|
207
|
+
readonly responseStream: false;
|
|
208
|
+
readonly options: {};
|
|
209
|
+
};
|
|
202
210
|
readonly load: {
|
|
203
211
|
readonly name: "load";
|
|
204
212
|
readonly requestType: import("./ScenarioControl").MessageFns<import("./ScenarioControl").LoadRequest>;
|
package/dist/payloads/Route.d.ts
CHANGED
|
@@ -278,6 +278,19 @@ export interface RouteInfo {
|
|
|
278
278
|
maxWindSpeedMps?: number | undefined;
|
|
279
279
|
minSpeedKnots?: number | undefined;
|
|
280
280
|
maxSpeedKnots?: number | undefined;
|
|
281
|
+
/**
|
|
282
|
+
* Minimum visibility the route is valid above. `visibility_range_m` is
|
|
283
|
+
* published, so without this the measurement exists and the limit it should
|
|
284
|
+
* be checked against does not.
|
|
285
|
+
*/
|
|
286
|
+
minVisibilityM?: number | undefined;
|
|
287
|
+
/**
|
|
288
|
+
* Gust limit, distinct from the mean-wind limit above. Gust is what governs
|
|
289
|
+
* small-craft operations: 12 m/s mean with 20 m/s gusts is a different
|
|
290
|
+
* proposition from a steady 12 m/s, and only the mean can be constrained
|
|
291
|
+
* today. Checked against the windowed `true_wind_speed_max_mps`.
|
|
292
|
+
*/
|
|
293
|
+
maxWindGustMps?: number | undefined;
|
|
281
294
|
/**
|
|
282
295
|
* -- Optimization & autonomy ------------------------------------------------
|
|
283
296
|
* Free-form optimization method label (e.g. "fuel-min", "eta-min", "weather-routed").
|
package/dist/payloads/Route.js
CHANGED
|
@@ -1342,6 +1342,8 @@ function createBaseRouteInfo() {
|
|
|
1342
1342
|
maxWindSpeedMps: undefined,
|
|
1343
1343
|
minSpeedKnots: undefined,
|
|
1344
1344
|
maxSpeedKnots: undefined,
|
|
1345
|
+
minVisibilityM: undefined,
|
|
1346
|
+
maxWindGustMps: undefined,
|
|
1345
1347
|
optimizationMethod: "",
|
|
1346
1348
|
autonomyLevel: 0,
|
|
1347
1349
|
extensions: undefined,
|
|
@@ -1392,6 +1394,12 @@ exports.RouteInfo = {
|
|
|
1392
1394
|
if (message.maxSpeedKnots !== undefined) {
|
|
1393
1395
|
writer.uint32(277).float(message.maxSpeedKnots);
|
|
1394
1396
|
}
|
|
1397
|
+
if (message.minVisibilityM !== undefined) {
|
|
1398
|
+
writer.uint32(285).float(message.minVisibilityM);
|
|
1399
|
+
}
|
|
1400
|
+
if (message.maxWindGustMps !== undefined) {
|
|
1401
|
+
writer.uint32(293).float(message.maxWindGustMps);
|
|
1402
|
+
}
|
|
1395
1403
|
if (message.optimizationMethod !== "") {
|
|
1396
1404
|
writer.uint32(402).string(message.optimizationMethod);
|
|
1397
1405
|
}
|
|
@@ -1508,6 +1516,20 @@ exports.RouteInfo = {
|
|
|
1508
1516
|
message.maxSpeedKnots = reader.float();
|
|
1509
1517
|
continue;
|
|
1510
1518
|
}
|
|
1519
|
+
case 35: {
|
|
1520
|
+
if (tag !== 285) {
|
|
1521
|
+
break;
|
|
1522
|
+
}
|
|
1523
|
+
message.minVisibilityM = reader.float();
|
|
1524
|
+
continue;
|
|
1525
|
+
}
|
|
1526
|
+
case 36: {
|
|
1527
|
+
if (tag !== 293) {
|
|
1528
|
+
break;
|
|
1529
|
+
}
|
|
1530
|
+
message.maxWindGustMps = reader.float();
|
|
1531
|
+
continue;
|
|
1532
|
+
}
|
|
1511
1533
|
case 50: {
|
|
1512
1534
|
if (tag !== 402) {
|
|
1513
1535
|
break;
|
|
@@ -1554,6 +1576,8 @@ exports.RouteInfo = {
|
|
|
1554
1576
|
maxWindSpeedMps: isSet(object.maxWindSpeedMps) ? globalThis.Number(object.maxWindSpeedMps) : undefined,
|
|
1555
1577
|
minSpeedKnots: isSet(object.minSpeedKnots) ? globalThis.Number(object.minSpeedKnots) : undefined,
|
|
1556
1578
|
maxSpeedKnots: isSet(object.maxSpeedKnots) ? globalThis.Number(object.maxSpeedKnots) : undefined,
|
|
1579
|
+
minVisibilityM: isSet(object.minVisibilityM) ? globalThis.Number(object.minVisibilityM) : undefined,
|
|
1580
|
+
maxWindGustMps: isSet(object.maxWindGustMps) ? globalThis.Number(object.maxWindGustMps) : undefined,
|
|
1557
1581
|
optimizationMethod: isSet(object.optimizationMethod) ? globalThis.String(object.optimizationMethod) : "",
|
|
1558
1582
|
autonomyLevel: isSet(object.autonomyLevel) ? autonomyLevelFromJSON(object.autonomyLevel) : 0,
|
|
1559
1583
|
extensions: isSet(object.extensions) ? exports.Extensions.fromJSON(object.extensions) : undefined,
|
|
@@ -1603,6 +1627,12 @@ exports.RouteInfo = {
|
|
|
1603
1627
|
if (message.maxSpeedKnots !== undefined) {
|
|
1604
1628
|
obj.maxSpeedKnots = message.maxSpeedKnots;
|
|
1605
1629
|
}
|
|
1630
|
+
if (message.minVisibilityM !== undefined) {
|
|
1631
|
+
obj.minVisibilityM = message.minVisibilityM;
|
|
1632
|
+
}
|
|
1633
|
+
if (message.maxWindGustMps !== undefined) {
|
|
1634
|
+
obj.maxWindGustMps = message.maxWindGustMps;
|
|
1635
|
+
}
|
|
1606
1636
|
if (message.optimizationMethod !== "") {
|
|
1607
1637
|
obj.optimizationMethod = message.optimizationMethod;
|
|
1608
1638
|
}
|
|
@@ -1633,6 +1663,8 @@ exports.RouteInfo = {
|
|
|
1633
1663
|
message.maxWindSpeedMps = object.maxWindSpeedMps ?? undefined;
|
|
1634
1664
|
message.minSpeedKnots = object.minSpeedKnots ?? undefined;
|
|
1635
1665
|
message.maxSpeedKnots = object.maxSpeedKnots ?? undefined;
|
|
1666
|
+
message.minVisibilityM = object.minVisibilityM ?? undefined;
|
|
1667
|
+
message.maxWindGustMps = object.maxWindGustMps ?? undefined;
|
|
1636
1668
|
message.optimizationMethod = object.optimizationMethod ?? "";
|
|
1637
1669
|
message.autonomyLevel = object.autonomyLevel ?? 0;
|
|
1638
1670
|
message.extensions = (object.extensions !== undefined && object.extensions !== null)
|
|
@@ -19,9 +19,7 @@ export * from "./Route";
|
|
|
19
19
|
export * from "./RouteChangeEvent";
|
|
20
20
|
export * from "./RouteEditAuthority";
|
|
21
21
|
export * from "./RouteExecution";
|
|
22
|
-
export * from "./ScenarioEvent";
|
|
23
22
|
export * from "./ScenarioStatus";
|
|
24
|
-
export * from "./ScenarioTickAck";
|
|
25
23
|
export * from "./SensorStatus";
|
|
26
24
|
export * from "./SimulationStatus";
|
|
27
25
|
export * from "./TargetType";
|