@rise-maritime/keelson-js 0.6.0-experimental.13 → 0.6.0-experimental.14
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
CHANGED
|
@@ -167,6 +167,22 @@ export declare function getInterfaceDefinition(interfaceAndVersion: string): {
|
|
|
167
167
|
readonly responseStream: false;
|
|
168
168
|
readonly options: {};
|
|
169
169
|
};
|
|
170
|
+
readonly get_settings: {
|
|
171
|
+
readonly name: "get_settings";
|
|
172
|
+
readonly requestType: import("./interfaces/NavigationControl").MessageFns<import("./interfaces/NavigationControl").GetSettingsRequest>;
|
|
173
|
+
readonly requestStream: false;
|
|
174
|
+
readonly responseType: import("./interfaces/NavigationControl").MessageFns<import("./interfaces/NavigationControl").GetSettingsResponse>;
|
|
175
|
+
readonly responseStream: false;
|
|
176
|
+
readonly options: {};
|
|
177
|
+
};
|
|
178
|
+
readonly set_settings: {
|
|
179
|
+
readonly name: "set_settings";
|
|
180
|
+
readonly requestType: import("./interfaces/NavigationControl").MessageFns<import("./interfaces/NavigationControl").SetSettingsRequest>;
|
|
181
|
+
readonly requestStream: false;
|
|
182
|
+
readonly responseType: import("./interfaces/NavigationControl").MessageFns<import("./interfaces/NavigationControl").SetSettingsResponse>;
|
|
183
|
+
readonly responseStream: false;
|
|
184
|
+
readonly options: {};
|
|
185
|
+
};
|
|
170
186
|
};
|
|
171
187
|
} | {
|
|
172
188
|
readonly name: "NetworkPingPong";
|
|
@@ -98,6 +98,64 @@ export interface SetVoyageStatusResponse {
|
|
|
98
98
|
}
|
|
99
99
|
export interface GetNavigationStateRequest {
|
|
100
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* What an operator may tune while the navigation process runs. Every field is optional: in a
|
|
103
|
+
* set_settings request only the fields present change; in a reply a field is present when the
|
|
104
|
+
* process has that setting at all. Settings tune HOW it carries out orders -- they never move the
|
|
105
|
+
* conn, change the voyage, or give an order.
|
|
106
|
+
*/
|
|
107
|
+
export interface NavigationSettings {
|
|
108
|
+
/**
|
|
109
|
+
* false pauses the COLREG advisor: no new encounters or advice. Advice already accepted is
|
|
110
|
+
* steered to its end; open advice is left to expire.
|
|
111
|
+
*/
|
|
112
|
+
colregAdvisorActive?: boolean | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* Accept its own advice, within what the authority level in force allows. false: every piece
|
|
115
|
+
* of advice waits for an operator's advice_disposition.
|
|
116
|
+
*/
|
|
117
|
+
autoAcceptAdvice?: boolean | undefined;
|
|
118
|
+
/** The passage speed, knots, > 0, when an order names none and a leg plans none. */
|
|
119
|
+
defaultSpeedKnots?: number | undefined;
|
|
120
|
+
/** Arrival radius, metres, >= 0, for a GuidanceOrder.go_to that names none. */
|
|
121
|
+
goToArrivalRadiusM?: number | undefined;
|
|
122
|
+
/** Return speed through the water, knots, > 0, for a GuidanceOrder.loiter that names none. */
|
|
123
|
+
loiterReturnSpeedKnots?: number | undefined;
|
|
124
|
+
/** Targets farther than this, metres, > 0, are not considered for traffic or COLREG. */
|
|
125
|
+
trafficRangeM?: number | undefined;
|
|
126
|
+
/** Whether the route monitor publishes its alarms (deviation, envelope). Monitoring itself goes on. */
|
|
127
|
+
routeAlarms?: boolean | undefined;
|
|
128
|
+
}
|
|
129
|
+
export interface GetSettingsRequest {
|
|
130
|
+
}
|
|
131
|
+
export interface GetSettingsResponse {
|
|
132
|
+
settings: NavigationSettings | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* Settings this process has but cannot change while it runs, by field name (e.g.
|
|
135
|
+
* "colreg_advisor_active" when the advisor was not started). A set naming one is UNSUPPORTED.
|
|
136
|
+
*/
|
|
137
|
+
fixed: string[];
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Change settings while the process runs. The same who-may-call rule as every other mutating
|
|
141
|
+
* procedure here: the holder of the live lease presenting its token, or a permitted controller.
|
|
142
|
+
*/
|
|
143
|
+
export interface SetSettingsRequest {
|
|
144
|
+
timestamp: Date | undefined;
|
|
145
|
+
caller: Caller | undefined;
|
|
146
|
+
settings: NavigationSettings | undefined;
|
|
147
|
+
}
|
|
148
|
+
export interface SetSettingsResponse {
|
|
149
|
+
/**
|
|
150
|
+
* DENIED without the conn or its token. UNSUPPORTED for a field in GetSettingsResponse.fixed, or
|
|
151
|
+
* one this process does not have. INVALID_ARGUMENT for a value out of range. A request is applied
|
|
152
|
+
* whole or not at all -- never partly.
|
|
153
|
+
*/
|
|
154
|
+
result: CommandResult;
|
|
155
|
+
detail: string;
|
|
156
|
+
/** The settings in force after the call, whatever the result. */
|
|
157
|
+
settings: NavigationSettings | undefined;
|
|
158
|
+
}
|
|
101
159
|
export declare const Caller: MessageFns<Caller>;
|
|
102
160
|
export declare const LoadRouteRequest: MessageFns<LoadRouteRequest>;
|
|
103
161
|
export declare const LoadRouteResponse: MessageFns<LoadRouteResponse>;
|
|
@@ -106,6 +164,11 @@ export declare const SetGuidanceOrderResponse: MessageFns<SetGuidanceOrderRespon
|
|
|
106
164
|
export declare const SetVoyageStatusRequest: MessageFns<SetVoyageStatusRequest>;
|
|
107
165
|
export declare const SetVoyageStatusResponse: MessageFns<SetVoyageStatusResponse>;
|
|
108
166
|
export declare const GetNavigationStateRequest: MessageFns<GetNavigationStateRequest>;
|
|
167
|
+
export declare const NavigationSettings: MessageFns<NavigationSettings>;
|
|
168
|
+
export declare const GetSettingsRequest: MessageFns<GetSettingsRequest>;
|
|
169
|
+
export declare const GetSettingsResponse: MessageFns<GetSettingsResponse>;
|
|
170
|
+
export declare const SetSettingsRequest: MessageFns<SetSettingsRequest>;
|
|
171
|
+
export declare const SetSettingsResponse: MessageFns<SetSettingsResponse>;
|
|
109
172
|
export type NavigationControlDefinition = typeof NavigationControlDefinition;
|
|
110
173
|
export declare const NavigationControlDefinition: {
|
|
111
174
|
readonly name: "NavigationControl";
|
|
@@ -156,6 +219,27 @@ export declare const NavigationControlDefinition: {
|
|
|
156
219
|
readonly responseStream: false;
|
|
157
220
|
readonly options: {};
|
|
158
221
|
};
|
|
222
|
+
/** The settings in force, and which cannot change while it runs. Needs no authority. */
|
|
223
|
+
readonly get_settings: {
|
|
224
|
+
readonly name: "get_settings";
|
|
225
|
+
readonly requestType: MessageFns<GetSettingsRequest>;
|
|
226
|
+
readonly requestStream: false;
|
|
227
|
+
readonly responseType: MessageFns<GetSettingsResponse>;
|
|
228
|
+
readonly responseStream: false;
|
|
229
|
+
readonly options: {};
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Tune the process while it runs: COLREG advisor, advice auto-accept, default speeds and radii,
|
|
233
|
+
* traffic range, route alarms. Never moves the conn.
|
|
234
|
+
*/
|
|
235
|
+
readonly set_settings: {
|
|
236
|
+
readonly name: "set_settings";
|
|
237
|
+
readonly requestType: MessageFns<SetSettingsRequest>;
|
|
238
|
+
readonly requestStream: false;
|
|
239
|
+
readonly responseType: MessageFns<SetSettingsResponse>;
|
|
240
|
+
readonly responseStream: false;
|
|
241
|
+
readonly options: {};
|
|
242
|
+
};
|
|
159
243
|
};
|
|
160
244
|
};
|
|
161
245
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v6.30.2
|
|
6
6
|
// source: NavigationControl.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.NavigationControlDefinition = exports.GetNavigationStateRequest = exports.SetVoyageStatusResponse = exports.SetVoyageStatusRequest = exports.SetGuidanceOrderResponse = exports.SetGuidanceOrderRequest = exports.LoadRouteResponse = exports.LoadRouteRequest = exports.Caller = exports.protobufPackage = void 0;
|
|
8
|
+
exports.NavigationControlDefinition = exports.SetSettingsResponse = exports.SetSettingsRequest = exports.GetSettingsResponse = exports.GetSettingsRequest = exports.NavigationSettings = exports.GetNavigationStateRequest = exports.SetVoyageStatusResponse = exports.SetVoyageStatusRequest = exports.SetGuidanceOrderResponse = exports.SetGuidanceOrderRequest = exports.LoadRouteResponse = exports.LoadRouteRequest = exports.Caller = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const NavigationState_1 = require("./NavigationState");
|
|
@@ -732,6 +732,440 @@ exports.GetNavigationStateRequest = {
|
|
|
732
732
|
return message;
|
|
733
733
|
},
|
|
734
734
|
};
|
|
735
|
+
function createBaseNavigationSettings() {
|
|
736
|
+
return {
|
|
737
|
+
colregAdvisorActive: undefined,
|
|
738
|
+
autoAcceptAdvice: undefined,
|
|
739
|
+
defaultSpeedKnots: undefined,
|
|
740
|
+
goToArrivalRadiusM: undefined,
|
|
741
|
+
loiterReturnSpeedKnots: undefined,
|
|
742
|
+
trafficRangeM: undefined,
|
|
743
|
+
routeAlarms: undefined,
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
exports.NavigationSettings = {
|
|
747
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
748
|
+
if (message.colregAdvisorActive !== undefined) {
|
|
749
|
+
writer.uint32(8).bool(message.colregAdvisorActive);
|
|
750
|
+
}
|
|
751
|
+
if (message.autoAcceptAdvice !== undefined) {
|
|
752
|
+
writer.uint32(16).bool(message.autoAcceptAdvice);
|
|
753
|
+
}
|
|
754
|
+
if (message.defaultSpeedKnots !== undefined) {
|
|
755
|
+
writer.uint32(25).double(message.defaultSpeedKnots);
|
|
756
|
+
}
|
|
757
|
+
if (message.goToArrivalRadiusM !== undefined) {
|
|
758
|
+
writer.uint32(33).double(message.goToArrivalRadiusM);
|
|
759
|
+
}
|
|
760
|
+
if (message.loiterReturnSpeedKnots !== undefined) {
|
|
761
|
+
writer.uint32(41).double(message.loiterReturnSpeedKnots);
|
|
762
|
+
}
|
|
763
|
+
if (message.trafficRangeM !== undefined) {
|
|
764
|
+
writer.uint32(49).double(message.trafficRangeM);
|
|
765
|
+
}
|
|
766
|
+
if (message.routeAlarms !== undefined) {
|
|
767
|
+
writer.uint32(56).bool(message.routeAlarms);
|
|
768
|
+
}
|
|
769
|
+
return writer;
|
|
770
|
+
},
|
|
771
|
+
decode(input, length) {
|
|
772
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
773
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
774
|
+
const message = createBaseNavigationSettings();
|
|
775
|
+
while (reader.pos < end) {
|
|
776
|
+
const tag = reader.uint32();
|
|
777
|
+
switch (tag >>> 3) {
|
|
778
|
+
case 1: {
|
|
779
|
+
if (tag !== 8) {
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
782
|
+
message.colregAdvisorActive = reader.bool();
|
|
783
|
+
continue;
|
|
784
|
+
}
|
|
785
|
+
case 2: {
|
|
786
|
+
if (tag !== 16) {
|
|
787
|
+
break;
|
|
788
|
+
}
|
|
789
|
+
message.autoAcceptAdvice = reader.bool();
|
|
790
|
+
continue;
|
|
791
|
+
}
|
|
792
|
+
case 3: {
|
|
793
|
+
if (tag !== 25) {
|
|
794
|
+
break;
|
|
795
|
+
}
|
|
796
|
+
message.defaultSpeedKnots = reader.double();
|
|
797
|
+
continue;
|
|
798
|
+
}
|
|
799
|
+
case 4: {
|
|
800
|
+
if (tag !== 33) {
|
|
801
|
+
break;
|
|
802
|
+
}
|
|
803
|
+
message.goToArrivalRadiusM = reader.double();
|
|
804
|
+
continue;
|
|
805
|
+
}
|
|
806
|
+
case 5: {
|
|
807
|
+
if (tag !== 41) {
|
|
808
|
+
break;
|
|
809
|
+
}
|
|
810
|
+
message.loiterReturnSpeedKnots = reader.double();
|
|
811
|
+
continue;
|
|
812
|
+
}
|
|
813
|
+
case 6: {
|
|
814
|
+
if (tag !== 49) {
|
|
815
|
+
break;
|
|
816
|
+
}
|
|
817
|
+
message.trafficRangeM = reader.double();
|
|
818
|
+
continue;
|
|
819
|
+
}
|
|
820
|
+
case 7: {
|
|
821
|
+
if (tag !== 56) {
|
|
822
|
+
break;
|
|
823
|
+
}
|
|
824
|
+
message.routeAlarms = reader.bool();
|
|
825
|
+
continue;
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
829
|
+
break;
|
|
830
|
+
}
|
|
831
|
+
reader.skip(tag & 7);
|
|
832
|
+
}
|
|
833
|
+
return message;
|
|
834
|
+
},
|
|
835
|
+
fromJSON(object) {
|
|
836
|
+
return {
|
|
837
|
+
colregAdvisorActive: isSet(object.colregAdvisorActive)
|
|
838
|
+
? globalThis.Boolean(object.colregAdvisorActive)
|
|
839
|
+
: undefined,
|
|
840
|
+
autoAcceptAdvice: isSet(object.autoAcceptAdvice) ? globalThis.Boolean(object.autoAcceptAdvice) : undefined,
|
|
841
|
+
defaultSpeedKnots: isSet(object.defaultSpeedKnots) ? globalThis.Number(object.defaultSpeedKnots) : undefined,
|
|
842
|
+
goToArrivalRadiusM: isSet(object.goToArrivalRadiusM) ? globalThis.Number(object.goToArrivalRadiusM) : undefined,
|
|
843
|
+
loiterReturnSpeedKnots: isSet(object.loiterReturnSpeedKnots)
|
|
844
|
+
? globalThis.Number(object.loiterReturnSpeedKnots)
|
|
845
|
+
: undefined,
|
|
846
|
+
trafficRangeM: isSet(object.trafficRangeM) ? globalThis.Number(object.trafficRangeM) : undefined,
|
|
847
|
+
routeAlarms: isSet(object.routeAlarms) ? globalThis.Boolean(object.routeAlarms) : undefined,
|
|
848
|
+
};
|
|
849
|
+
},
|
|
850
|
+
toJSON(message) {
|
|
851
|
+
const obj = {};
|
|
852
|
+
if (message.colregAdvisorActive !== undefined) {
|
|
853
|
+
obj.colregAdvisorActive = message.colregAdvisorActive;
|
|
854
|
+
}
|
|
855
|
+
if (message.autoAcceptAdvice !== undefined) {
|
|
856
|
+
obj.autoAcceptAdvice = message.autoAcceptAdvice;
|
|
857
|
+
}
|
|
858
|
+
if (message.defaultSpeedKnots !== undefined) {
|
|
859
|
+
obj.defaultSpeedKnots = message.defaultSpeedKnots;
|
|
860
|
+
}
|
|
861
|
+
if (message.goToArrivalRadiusM !== undefined) {
|
|
862
|
+
obj.goToArrivalRadiusM = message.goToArrivalRadiusM;
|
|
863
|
+
}
|
|
864
|
+
if (message.loiterReturnSpeedKnots !== undefined) {
|
|
865
|
+
obj.loiterReturnSpeedKnots = message.loiterReturnSpeedKnots;
|
|
866
|
+
}
|
|
867
|
+
if (message.trafficRangeM !== undefined) {
|
|
868
|
+
obj.trafficRangeM = message.trafficRangeM;
|
|
869
|
+
}
|
|
870
|
+
if (message.routeAlarms !== undefined) {
|
|
871
|
+
obj.routeAlarms = message.routeAlarms;
|
|
872
|
+
}
|
|
873
|
+
return obj;
|
|
874
|
+
},
|
|
875
|
+
create(base) {
|
|
876
|
+
return exports.NavigationSettings.fromPartial(base ?? {});
|
|
877
|
+
},
|
|
878
|
+
fromPartial(object) {
|
|
879
|
+
const message = createBaseNavigationSettings();
|
|
880
|
+
message.colregAdvisorActive = object.colregAdvisorActive ?? undefined;
|
|
881
|
+
message.autoAcceptAdvice = object.autoAcceptAdvice ?? undefined;
|
|
882
|
+
message.defaultSpeedKnots = object.defaultSpeedKnots ?? undefined;
|
|
883
|
+
message.goToArrivalRadiusM = object.goToArrivalRadiusM ?? undefined;
|
|
884
|
+
message.loiterReturnSpeedKnots = object.loiterReturnSpeedKnots ?? undefined;
|
|
885
|
+
message.trafficRangeM = object.trafficRangeM ?? undefined;
|
|
886
|
+
message.routeAlarms = object.routeAlarms ?? undefined;
|
|
887
|
+
return message;
|
|
888
|
+
},
|
|
889
|
+
};
|
|
890
|
+
function createBaseGetSettingsRequest() {
|
|
891
|
+
return {};
|
|
892
|
+
}
|
|
893
|
+
exports.GetSettingsRequest = {
|
|
894
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
895
|
+
return writer;
|
|
896
|
+
},
|
|
897
|
+
decode(input, length) {
|
|
898
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
899
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
900
|
+
const message = createBaseGetSettingsRequest();
|
|
901
|
+
while (reader.pos < end) {
|
|
902
|
+
const tag = reader.uint32();
|
|
903
|
+
switch (tag >>> 3) {
|
|
904
|
+
}
|
|
905
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
906
|
+
break;
|
|
907
|
+
}
|
|
908
|
+
reader.skip(tag & 7);
|
|
909
|
+
}
|
|
910
|
+
return message;
|
|
911
|
+
},
|
|
912
|
+
fromJSON(_) {
|
|
913
|
+
return {};
|
|
914
|
+
},
|
|
915
|
+
toJSON(_) {
|
|
916
|
+
const obj = {};
|
|
917
|
+
return obj;
|
|
918
|
+
},
|
|
919
|
+
create(base) {
|
|
920
|
+
return exports.GetSettingsRequest.fromPartial(base ?? {});
|
|
921
|
+
},
|
|
922
|
+
fromPartial(_) {
|
|
923
|
+
const message = createBaseGetSettingsRequest();
|
|
924
|
+
return message;
|
|
925
|
+
},
|
|
926
|
+
};
|
|
927
|
+
function createBaseGetSettingsResponse() {
|
|
928
|
+
return { settings: undefined, fixed: [] };
|
|
929
|
+
}
|
|
930
|
+
exports.GetSettingsResponse = {
|
|
931
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
932
|
+
if (message.settings !== undefined) {
|
|
933
|
+
exports.NavigationSettings.encode(message.settings, writer.uint32(10).fork()).join();
|
|
934
|
+
}
|
|
935
|
+
for (const v of message.fixed) {
|
|
936
|
+
writer.uint32(18).string(v);
|
|
937
|
+
}
|
|
938
|
+
return writer;
|
|
939
|
+
},
|
|
940
|
+
decode(input, length) {
|
|
941
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
942
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
943
|
+
const message = createBaseGetSettingsResponse();
|
|
944
|
+
while (reader.pos < end) {
|
|
945
|
+
const tag = reader.uint32();
|
|
946
|
+
switch (tag >>> 3) {
|
|
947
|
+
case 1: {
|
|
948
|
+
if (tag !== 10) {
|
|
949
|
+
break;
|
|
950
|
+
}
|
|
951
|
+
message.settings = exports.NavigationSettings.decode(reader, reader.uint32());
|
|
952
|
+
continue;
|
|
953
|
+
}
|
|
954
|
+
case 2: {
|
|
955
|
+
if (tag !== 18) {
|
|
956
|
+
break;
|
|
957
|
+
}
|
|
958
|
+
message.fixed.push(reader.string());
|
|
959
|
+
continue;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
963
|
+
break;
|
|
964
|
+
}
|
|
965
|
+
reader.skip(tag & 7);
|
|
966
|
+
}
|
|
967
|
+
return message;
|
|
968
|
+
},
|
|
969
|
+
fromJSON(object) {
|
|
970
|
+
return {
|
|
971
|
+
settings: isSet(object.settings) ? exports.NavigationSettings.fromJSON(object.settings) : undefined,
|
|
972
|
+
fixed: globalThis.Array.isArray(object?.fixed) ? object.fixed.map((e) => globalThis.String(e)) : [],
|
|
973
|
+
};
|
|
974
|
+
},
|
|
975
|
+
toJSON(message) {
|
|
976
|
+
const obj = {};
|
|
977
|
+
if (message.settings !== undefined) {
|
|
978
|
+
obj.settings = exports.NavigationSettings.toJSON(message.settings);
|
|
979
|
+
}
|
|
980
|
+
if (message.fixed?.length) {
|
|
981
|
+
obj.fixed = message.fixed;
|
|
982
|
+
}
|
|
983
|
+
return obj;
|
|
984
|
+
},
|
|
985
|
+
create(base) {
|
|
986
|
+
return exports.GetSettingsResponse.fromPartial(base ?? {});
|
|
987
|
+
},
|
|
988
|
+
fromPartial(object) {
|
|
989
|
+
const message = createBaseGetSettingsResponse();
|
|
990
|
+
message.settings = (object.settings !== undefined && object.settings !== null)
|
|
991
|
+
? exports.NavigationSettings.fromPartial(object.settings)
|
|
992
|
+
: undefined;
|
|
993
|
+
message.fixed = object.fixed?.map((e) => e) || [];
|
|
994
|
+
return message;
|
|
995
|
+
},
|
|
996
|
+
};
|
|
997
|
+
function createBaseSetSettingsRequest() {
|
|
998
|
+
return { timestamp: undefined, caller: undefined, settings: undefined };
|
|
999
|
+
}
|
|
1000
|
+
exports.SetSettingsRequest = {
|
|
1001
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1002
|
+
if (message.timestamp !== undefined) {
|
|
1003
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
|
|
1004
|
+
}
|
|
1005
|
+
if (message.caller !== undefined) {
|
|
1006
|
+
exports.Caller.encode(message.caller, writer.uint32(18).fork()).join();
|
|
1007
|
+
}
|
|
1008
|
+
if (message.settings !== undefined) {
|
|
1009
|
+
exports.NavigationSettings.encode(message.settings, writer.uint32(26).fork()).join();
|
|
1010
|
+
}
|
|
1011
|
+
return writer;
|
|
1012
|
+
},
|
|
1013
|
+
decode(input, length) {
|
|
1014
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1015
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1016
|
+
const message = createBaseSetSettingsRequest();
|
|
1017
|
+
while (reader.pos < end) {
|
|
1018
|
+
const tag = reader.uint32();
|
|
1019
|
+
switch (tag >>> 3) {
|
|
1020
|
+
case 1: {
|
|
1021
|
+
if (tag !== 10) {
|
|
1022
|
+
break;
|
|
1023
|
+
}
|
|
1024
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1025
|
+
continue;
|
|
1026
|
+
}
|
|
1027
|
+
case 2: {
|
|
1028
|
+
if (tag !== 18) {
|
|
1029
|
+
break;
|
|
1030
|
+
}
|
|
1031
|
+
message.caller = exports.Caller.decode(reader, reader.uint32());
|
|
1032
|
+
continue;
|
|
1033
|
+
}
|
|
1034
|
+
case 3: {
|
|
1035
|
+
if (tag !== 26) {
|
|
1036
|
+
break;
|
|
1037
|
+
}
|
|
1038
|
+
message.settings = exports.NavigationSettings.decode(reader, reader.uint32());
|
|
1039
|
+
continue;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1043
|
+
break;
|
|
1044
|
+
}
|
|
1045
|
+
reader.skip(tag & 7);
|
|
1046
|
+
}
|
|
1047
|
+
return message;
|
|
1048
|
+
},
|
|
1049
|
+
fromJSON(object) {
|
|
1050
|
+
return {
|
|
1051
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
1052
|
+
caller: isSet(object.caller) ? exports.Caller.fromJSON(object.caller) : undefined,
|
|
1053
|
+
settings: isSet(object.settings) ? exports.NavigationSettings.fromJSON(object.settings) : undefined,
|
|
1054
|
+
};
|
|
1055
|
+
},
|
|
1056
|
+
toJSON(message) {
|
|
1057
|
+
const obj = {};
|
|
1058
|
+
if (message.timestamp !== undefined) {
|
|
1059
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
1060
|
+
}
|
|
1061
|
+
if (message.caller !== undefined) {
|
|
1062
|
+
obj.caller = exports.Caller.toJSON(message.caller);
|
|
1063
|
+
}
|
|
1064
|
+
if (message.settings !== undefined) {
|
|
1065
|
+
obj.settings = exports.NavigationSettings.toJSON(message.settings);
|
|
1066
|
+
}
|
|
1067
|
+
return obj;
|
|
1068
|
+
},
|
|
1069
|
+
create(base) {
|
|
1070
|
+
return exports.SetSettingsRequest.fromPartial(base ?? {});
|
|
1071
|
+
},
|
|
1072
|
+
fromPartial(object) {
|
|
1073
|
+
const message = createBaseSetSettingsRequest();
|
|
1074
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
1075
|
+
message.caller = (object.caller !== undefined && object.caller !== null)
|
|
1076
|
+
? exports.Caller.fromPartial(object.caller)
|
|
1077
|
+
: undefined;
|
|
1078
|
+
message.settings = (object.settings !== undefined && object.settings !== null)
|
|
1079
|
+
? exports.NavigationSettings.fromPartial(object.settings)
|
|
1080
|
+
: undefined;
|
|
1081
|
+
return message;
|
|
1082
|
+
},
|
|
1083
|
+
};
|
|
1084
|
+
function createBaseSetSettingsResponse() {
|
|
1085
|
+
return { result: 0, detail: "", settings: undefined };
|
|
1086
|
+
}
|
|
1087
|
+
exports.SetSettingsResponse = {
|
|
1088
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1089
|
+
if (message.result !== 0) {
|
|
1090
|
+
writer.uint32(8).int32(message.result);
|
|
1091
|
+
}
|
|
1092
|
+
if (message.detail !== "") {
|
|
1093
|
+
writer.uint32(18).string(message.detail);
|
|
1094
|
+
}
|
|
1095
|
+
if (message.settings !== undefined) {
|
|
1096
|
+
exports.NavigationSettings.encode(message.settings, writer.uint32(26).fork()).join();
|
|
1097
|
+
}
|
|
1098
|
+
return writer;
|
|
1099
|
+
},
|
|
1100
|
+
decode(input, length) {
|
|
1101
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1102
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1103
|
+
const message = createBaseSetSettingsResponse();
|
|
1104
|
+
while (reader.pos < end) {
|
|
1105
|
+
const tag = reader.uint32();
|
|
1106
|
+
switch (tag >>> 3) {
|
|
1107
|
+
case 1: {
|
|
1108
|
+
if (tag !== 8) {
|
|
1109
|
+
break;
|
|
1110
|
+
}
|
|
1111
|
+
message.result = reader.int32();
|
|
1112
|
+
continue;
|
|
1113
|
+
}
|
|
1114
|
+
case 2: {
|
|
1115
|
+
if (tag !== 18) {
|
|
1116
|
+
break;
|
|
1117
|
+
}
|
|
1118
|
+
message.detail = reader.string();
|
|
1119
|
+
continue;
|
|
1120
|
+
}
|
|
1121
|
+
case 3: {
|
|
1122
|
+
if (tag !== 26) {
|
|
1123
|
+
break;
|
|
1124
|
+
}
|
|
1125
|
+
message.settings = exports.NavigationSettings.decode(reader, reader.uint32());
|
|
1126
|
+
continue;
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1130
|
+
break;
|
|
1131
|
+
}
|
|
1132
|
+
reader.skip(tag & 7);
|
|
1133
|
+
}
|
|
1134
|
+
return message;
|
|
1135
|
+
},
|
|
1136
|
+
fromJSON(object) {
|
|
1137
|
+
return {
|
|
1138
|
+
result: isSet(object.result) ? (0, VehicleCommon_1.commandResultFromJSON)(object.result) : 0,
|
|
1139
|
+
detail: isSet(object.detail) ? globalThis.String(object.detail) : "",
|
|
1140
|
+
settings: isSet(object.settings) ? exports.NavigationSettings.fromJSON(object.settings) : undefined,
|
|
1141
|
+
};
|
|
1142
|
+
},
|
|
1143
|
+
toJSON(message) {
|
|
1144
|
+
const obj = {};
|
|
1145
|
+
if (message.result !== 0) {
|
|
1146
|
+
obj.result = (0, VehicleCommon_1.commandResultToJSON)(message.result);
|
|
1147
|
+
}
|
|
1148
|
+
if (message.detail !== "") {
|
|
1149
|
+
obj.detail = message.detail;
|
|
1150
|
+
}
|
|
1151
|
+
if (message.settings !== undefined) {
|
|
1152
|
+
obj.settings = exports.NavigationSettings.toJSON(message.settings);
|
|
1153
|
+
}
|
|
1154
|
+
return obj;
|
|
1155
|
+
},
|
|
1156
|
+
create(base) {
|
|
1157
|
+
return exports.SetSettingsResponse.fromPartial(base ?? {});
|
|
1158
|
+
},
|
|
1159
|
+
fromPartial(object) {
|
|
1160
|
+
const message = createBaseSetSettingsResponse();
|
|
1161
|
+
message.result = object.result ?? 0;
|
|
1162
|
+
message.detail = object.detail ?? "";
|
|
1163
|
+
message.settings = (object.settings !== undefined && object.settings !== null)
|
|
1164
|
+
? exports.NavigationSettings.fromPartial(object.settings)
|
|
1165
|
+
: undefined;
|
|
1166
|
+
return message;
|
|
1167
|
+
},
|
|
1168
|
+
};
|
|
735
1169
|
exports.NavigationControlDefinition = {
|
|
736
1170
|
name: "NavigationControl",
|
|
737
1171
|
fullName: "keelson.interfaces.navigation_control.NavigationControl",
|
|
@@ -781,6 +1215,27 @@ exports.NavigationControlDefinition = {
|
|
|
781
1215
|
responseStream: false,
|
|
782
1216
|
options: {},
|
|
783
1217
|
},
|
|
1218
|
+
/** The settings in force, and which cannot change while it runs. Needs no authority. */
|
|
1219
|
+
get_settings: {
|
|
1220
|
+
name: "get_settings",
|
|
1221
|
+
requestType: exports.GetSettingsRequest,
|
|
1222
|
+
requestStream: false,
|
|
1223
|
+
responseType: exports.GetSettingsResponse,
|
|
1224
|
+
responseStream: false,
|
|
1225
|
+
options: {},
|
|
1226
|
+
},
|
|
1227
|
+
/**
|
|
1228
|
+
* Tune the process while it runs: COLREG advisor, advice auto-accept, default speeds and radii,
|
|
1229
|
+
* traffic range, route alarms. Never moves the conn.
|
|
1230
|
+
*/
|
|
1231
|
+
set_settings: {
|
|
1232
|
+
name: "set_settings",
|
|
1233
|
+
requestType: exports.SetSettingsRequest,
|
|
1234
|
+
requestStream: false,
|
|
1235
|
+
responseType: exports.SetSettingsResponse,
|
|
1236
|
+
responseStream: false,
|
|
1237
|
+
options: {},
|
|
1238
|
+
},
|
|
784
1239
|
},
|
|
785
1240
|
};
|
|
786
1241
|
function toTimestamp(date) {
|
|
@@ -147,6 +147,22 @@ export declare const serviceDefinitions: {
|
|
|
147
147
|
readonly responseStream: false;
|
|
148
148
|
readonly options: {};
|
|
149
149
|
};
|
|
150
|
+
readonly get_settings: {
|
|
151
|
+
readonly name: "get_settings";
|
|
152
|
+
readonly requestType: import("./NavigationControl").MessageFns<import("./NavigationControl").GetSettingsRequest>;
|
|
153
|
+
readonly requestStream: false;
|
|
154
|
+
readonly responseType: import("./NavigationControl").MessageFns<import("./NavigationControl").GetSettingsResponse>;
|
|
155
|
+
readonly responseStream: false;
|
|
156
|
+
readonly options: {};
|
|
157
|
+
};
|
|
158
|
+
readonly set_settings: {
|
|
159
|
+
readonly name: "set_settings";
|
|
160
|
+
readonly requestType: import("./NavigationControl").MessageFns<import("./NavigationControl").SetSettingsRequest>;
|
|
161
|
+
readonly requestStream: false;
|
|
162
|
+
readonly responseType: import("./NavigationControl").MessageFns<import("./NavigationControl").SetSettingsResponse>;
|
|
163
|
+
readonly responseStream: false;
|
|
164
|
+
readonly options: {};
|
|
165
|
+
};
|
|
150
166
|
};
|
|
151
167
|
};
|
|
152
168
|
readonly "network_ping_pong/v1": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rise-maritime/keelson-js",
|
|
3
3
|
"//version": "NOT the published version. The release workflow overwrites it from the release tag (npm version --no-git-tag-version), so tag and artifact cannot disagree. Only matters for local installs; do not hand-bump before tagging — that manual step is what broke release 0.5.4.",
|
|
4
|
-
"version": "0.6.0-experimental.
|
|
4
|
+
"version": "0.6.0-experimental.14",
|
|
5
5
|
"description": "Keelson JavaScript SDK with Node-RED nodes",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"files": [
|