@rise-maritime/keelson-js 0.6.0-alpha.255.dev.1 → 0.6.0-alpha.275.dev.2
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 +83 -8
- package/dist/index.js +23 -1
- package/dist/index.test.js +31 -0
- package/dist/interfaces/AlarmAck.d.ts +2 -2
- package/dist/interfaces/AlarmAck.js +2 -2
- package/dist/interfaces/ContainerControl.d.ts +239 -0
- package/dist/interfaces/ContainerControl.js +1053 -0
- package/dist/interfaces/ContainerHost.d.ts +403 -0
- package/dist/interfaces/ContainerHost.js +1230 -0
- package/dist/interfaces/ErrorResponse.d.ts +7 -2
- package/dist/interfaces/ErrorResponse.js +12 -2
- package/dist/interfaces/Route.d.ts +141 -6
- package/dist/interfaces/Route.js +309 -4
- package/dist/interfaces/RoutePlanner.d.ts +19 -1
- package/dist/interfaces/RoutePlanner.js +23 -1
- package/dist/interfaces/ScenarioControl.d.ts +132 -3
- package/dist/interfaces/ScenarioControl.js +439 -37
- package/dist/interfaces/VehicleNavigation.d.ts +55 -0
- package/dist/interfaces/VehicleNavigation.js +233 -1
- package/dist/interfaces/VehicleSimulatorControl.d.ts +0 -83
- package/dist/interfaces/VehicleSimulatorControl.js +1 -293
- package/dist/interfaces/serviceRegistry.d.ts +84 -8
- package/dist/interfaces/serviceRegistry.js +4 -0
- package/dist/interfaces.json +2 -0
- package/dist/payloads/AdviceDisposition.d.ts +55 -0
- package/dist/payloads/AdviceDisposition.js +242 -0
- package/dist/payloads/ChecklistHandover.d.ts +522 -0
- package/dist/payloads/ChecklistHandover.js +1735 -0
- package/dist/payloads/ContainerHost.d.ts +407 -0
- package/dist/payloads/ContainerHost.js +1245 -0
- package/dist/payloads/Encounter.d.ts +104 -0
- package/dist/payloads/Encounter.js +573 -0
- package/dist/payloads/NavigationAdvice.d.ts +94 -0
- package/dist/payloads/NavigationAdvice.js +596 -0
- package/dist/payloads/NavigationState.d.ts +90 -0
- package/dist/payloads/NavigationState.js +377 -0
- package/dist/payloads/Route.d.ts +142 -6
- package/dist/payloads/Route.js +318 -4
- package/dist/payloads/RouteExecution.d.ts +7 -0
- package/dist/payloads/ScenarioEvent.d.ts +14 -0
- package/dist/payloads/ScenarioEvent.js +16 -0
- package/dist/payloads/index.d.ts +1 -1
- package/dist/payloads/index.js +2 -2
- package/dist/payloads/index.keelson.d.ts +10 -4
- package/dist/payloads/index.keelson.js +10 -4
- package/dist/qos.json +6 -0
- package/dist/subjects.json +20 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1735 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.6.1
|
|
5
|
+
// protoc v6.30.2
|
|
6
|
+
// source: ChecklistHandover.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ChecklistHandover_VesselVerdict = exports.ChecklistHandover_ActiveRisk = exports.ChecklistHandover_OpenItem = exports.ChecklistHandover_VesselStatus = exports.ChecklistHandover_Reading = exports.ChecklistHandover_VesselRef = exports.ChecklistHandover_Party = exports.ChecklistHandover = exports.checklistHandover_VesselVerdict_GateToJSON = exports.checklistHandover_VesselVerdict_GateFromJSON = exports.ChecklistHandover_VesselVerdict_Gate = exports.checklistHandover_ActiveRisk_RiskKindToJSON = exports.checklistHandover_ActiveRisk_RiskKindFromJSON = exports.ChecklistHandover_ActiveRisk_RiskKind = exports.checklistHandover_RefusalSourceToJSON = exports.checklistHandover_RefusalSourceFromJSON = exports.ChecklistHandover_RefusalSource = exports.checklistHandover_AvailabilityToJSON = exports.checklistHandover_AvailabilityFromJSON = exports.ChecklistHandover_Availability = exports.checklistHandover_HandoverStatusToJSON = exports.checklistHandover_HandoverStatusFromJSON = exports.ChecklistHandover_HandoverStatus = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const ChecklistState_1 = require("./ChecklistState");
|
|
12
|
+
const Coordinate_1 = require("./Coordinate");
|
|
13
|
+
const OperationalAuthority_1 = require("./OperationalAuthority");
|
|
14
|
+
const Severity_1 = require("./Severity");
|
|
15
|
+
const timestamp_1 = require("./google/protobuf/timestamp");
|
|
16
|
+
const typeRegistry_1 = require("./typeRegistry");
|
|
17
|
+
/**
|
|
18
|
+
* The six states a handover can hold, and the two that are not terminal.
|
|
19
|
+
*
|
|
20
|
+
* OFFERED and PENDING_VESSEL are live: the first waits on the relief, the second on the vessel.
|
|
21
|
+
* The other four are absorbing.
|
|
22
|
+
*
|
|
23
|
+
* TERMINAL PRECEDENCE IS NOT THE ENUM ORDER, even though the numbering below happens to agree
|
|
24
|
+
* with it. §7.5.1's table is normative:
|
|
25
|
+
*
|
|
26
|
+
* ACCEPTED > REFUSED > CANCELLED > EXPIRED
|
|
27
|
+
*
|
|
28
|
+
* The numbering is laid out to match as a mnemonic and a reader may NOT rely on it: a future
|
|
29
|
+
* terminal state will be appended at the end whatever its precedence, because renumbering
|
|
30
|
+
* silently reinterprets every record already in storage.
|
|
31
|
+
*
|
|
32
|
+
* Why precedence rather than last-writer-wins. While ACCEPTED and CANCELLED were the only
|
|
33
|
+
* terminals, "terminal beats non-terminal" happened to be a total order — only the relief could
|
|
34
|
+
* accept and only the offerer could cancel, so two stations could never reach DIFFERENT
|
|
35
|
+
* terminals. With four they can, and routinely will: the relief declines at the same moment the
|
|
36
|
+
* offerer's deadline passes, and both publish. Falling through to last-writer-wins there decides
|
|
37
|
+
* a safety record by whose clock is faster. The order is safety-conservative and the top of it is
|
|
38
|
+
* the rule: NEVER LET A TIMER ERASE A SIGNATURE. An acceptance is somebody putting their name to
|
|
39
|
+
* the watch; an expiry is nobody doing anything.
|
|
40
|
+
*/
|
|
41
|
+
var ChecklistHandover_HandoverStatus;
|
|
42
|
+
(function (ChecklistHandover_HandoverStatus) {
|
|
43
|
+
ChecklistHandover_HandoverStatus[ChecklistHandover_HandoverStatus["HANDOVER_STATUS_UNKNOWN"] = 0] = "HANDOVER_STATUS_UNKNOWN";
|
|
44
|
+
/** HANDOVER_STATUS_OFFERED - Live. Offered to the relief, not yet answered. */
|
|
45
|
+
ChecklistHandover_HandoverStatus[ChecklistHandover_HandoverStatus["HANDOVER_STATUS_OFFERED"] = 1] = "HANDOVER_STATUS_OFFERED";
|
|
46
|
+
/**
|
|
47
|
+
* HANDOVER_STATUS_PENDING_VESSEL - Live. The relief has signed and the vessel has not yet answered. Only reachable where a
|
|
48
|
+
* watch_handover connector is deployed; whether an acceptance passes through this state is the
|
|
49
|
+
* accepting client's decision, not a property of the record, because a fleet running no such
|
|
50
|
+
* connector must not have every handover stall here.
|
|
51
|
+
*/
|
|
52
|
+
ChecklistHandover_HandoverStatus[ChecklistHandover_HandoverStatus["HANDOVER_STATUS_PENDING_VESSEL"] = 2] = "HANDOVER_STATUS_PENDING_VESSEL";
|
|
53
|
+
/** HANDOVER_STATUS_ACCEPTED - Terminal. Somebody signed for the watch. */
|
|
54
|
+
ChecklistHandover_HandoverStatus[ChecklistHandover_HandoverStatus["HANDOVER_STATUS_ACCEPTED"] = 3] = "HANDOVER_STATUS_ACCEPTED";
|
|
55
|
+
/**
|
|
56
|
+
* HANDOVER_STATUS_REFUSED - Terminal, and TWO DIFFERENT ACTS deliberately sharing one status — a refusal is a refusal to
|
|
57
|
+
* whoever is waiting on it. They mean opposite things to an auditor, so `refusal_source` tells
|
|
58
|
+
* them apart; see it for why an absence could not.
|
|
59
|
+
*/
|
|
60
|
+
ChecklistHandover_HandoverStatus[ChecklistHandover_HandoverStatus["HANDOVER_STATUS_REFUSED"] = 4] = "HANDOVER_STATUS_REFUSED";
|
|
61
|
+
/** HANDOVER_STATUS_CANCELLED - Terminal. The offering operator withdrew an offer nobody took. */
|
|
62
|
+
ChecklistHandover_HandoverStatus[ChecklistHandover_HandoverStatus["HANDOVER_STATUS_CANCELLED"] = 5] = "HANDOVER_STATUS_CANCELLED";
|
|
63
|
+
/**
|
|
64
|
+
* HANDOVER_STATUS_EXPIRED - Terminal. The deadline in `expires_at` passed unanswered. Published by the OFFERING station
|
|
65
|
+
* only — see that field and §7.5.3.
|
|
66
|
+
*/
|
|
67
|
+
ChecklistHandover_HandoverStatus[ChecklistHandover_HandoverStatus["HANDOVER_STATUS_EXPIRED"] = 6] = "HANDOVER_STATUS_EXPIRED";
|
|
68
|
+
ChecklistHandover_HandoverStatus[ChecklistHandover_HandoverStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
69
|
+
})(ChecklistHandover_HandoverStatus || (exports.ChecklistHandover_HandoverStatus = ChecklistHandover_HandoverStatus = {}));
|
|
70
|
+
function checklistHandover_HandoverStatusFromJSON(object) {
|
|
71
|
+
switch (object) {
|
|
72
|
+
case 0:
|
|
73
|
+
case "HANDOVER_STATUS_UNKNOWN":
|
|
74
|
+
return ChecklistHandover_HandoverStatus.HANDOVER_STATUS_UNKNOWN;
|
|
75
|
+
case 1:
|
|
76
|
+
case "HANDOVER_STATUS_OFFERED":
|
|
77
|
+
return ChecklistHandover_HandoverStatus.HANDOVER_STATUS_OFFERED;
|
|
78
|
+
case 2:
|
|
79
|
+
case "HANDOVER_STATUS_PENDING_VESSEL":
|
|
80
|
+
return ChecklistHandover_HandoverStatus.HANDOVER_STATUS_PENDING_VESSEL;
|
|
81
|
+
case 3:
|
|
82
|
+
case "HANDOVER_STATUS_ACCEPTED":
|
|
83
|
+
return ChecklistHandover_HandoverStatus.HANDOVER_STATUS_ACCEPTED;
|
|
84
|
+
case 4:
|
|
85
|
+
case "HANDOVER_STATUS_REFUSED":
|
|
86
|
+
return ChecklistHandover_HandoverStatus.HANDOVER_STATUS_REFUSED;
|
|
87
|
+
case 5:
|
|
88
|
+
case "HANDOVER_STATUS_CANCELLED":
|
|
89
|
+
return ChecklistHandover_HandoverStatus.HANDOVER_STATUS_CANCELLED;
|
|
90
|
+
case 6:
|
|
91
|
+
case "HANDOVER_STATUS_EXPIRED":
|
|
92
|
+
return ChecklistHandover_HandoverStatus.HANDOVER_STATUS_EXPIRED;
|
|
93
|
+
case -1:
|
|
94
|
+
case "UNRECOGNIZED":
|
|
95
|
+
default:
|
|
96
|
+
return ChecklistHandover_HandoverStatus.UNRECOGNIZED;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.checklistHandover_HandoverStatusFromJSON = checklistHandover_HandoverStatusFromJSON;
|
|
100
|
+
function checklistHandover_HandoverStatusToJSON(object) {
|
|
101
|
+
switch (object) {
|
|
102
|
+
case ChecklistHandover_HandoverStatus.HANDOVER_STATUS_UNKNOWN:
|
|
103
|
+
return "HANDOVER_STATUS_UNKNOWN";
|
|
104
|
+
case ChecklistHandover_HandoverStatus.HANDOVER_STATUS_OFFERED:
|
|
105
|
+
return "HANDOVER_STATUS_OFFERED";
|
|
106
|
+
case ChecklistHandover_HandoverStatus.HANDOVER_STATUS_PENDING_VESSEL:
|
|
107
|
+
return "HANDOVER_STATUS_PENDING_VESSEL";
|
|
108
|
+
case ChecklistHandover_HandoverStatus.HANDOVER_STATUS_ACCEPTED:
|
|
109
|
+
return "HANDOVER_STATUS_ACCEPTED";
|
|
110
|
+
case ChecklistHandover_HandoverStatus.HANDOVER_STATUS_REFUSED:
|
|
111
|
+
return "HANDOVER_STATUS_REFUSED";
|
|
112
|
+
case ChecklistHandover_HandoverStatus.HANDOVER_STATUS_CANCELLED:
|
|
113
|
+
return "HANDOVER_STATUS_CANCELLED";
|
|
114
|
+
case ChecklistHandover_HandoverStatus.HANDOVER_STATUS_EXPIRED:
|
|
115
|
+
return "HANDOVER_STATUS_EXPIRED";
|
|
116
|
+
case ChecklistHandover_HandoverStatus.UNRECOGNIZED:
|
|
117
|
+
default:
|
|
118
|
+
return "UNRECOGNIZED";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.checklistHandover_HandoverStatusToJSON = checklistHandover_HandoverStatusToJSON;
|
|
122
|
+
/**
|
|
123
|
+
* Whether a value may be shown as a measurement at all, and if not, why not.
|
|
124
|
+
*
|
|
125
|
+
* THE FAILURE THIS EXISTS TO PREVENT. Own-ship values that default to 0.0 and are re-zeroed on
|
|
126
|
+
* platform switch structurally cannot express "no source configured". On a handover that matters
|
|
127
|
+
* more than anywhere else: a briefing reading 0.0 kn when the truth is "no GNSS" is worse than
|
|
128
|
+
* one reading nothing, because the relief believes it.
|
|
129
|
+
*
|
|
130
|
+
* A CONSUMER MUST NOT RENDER A VALUE AS A MEASUREMENT UNLESS availability IS
|
|
131
|
+
* AVAILABILITY_AVAILABLE. That rule is what makes the zero sentinel safe: an unset availability,
|
|
132
|
+
* and any value a future revision adds that this build does not know, both fail closed to
|
|
133
|
+
* "no source" rather than open to a number.
|
|
134
|
+
*/
|
|
135
|
+
var ChecklistHandover_Availability;
|
|
136
|
+
(function (ChecklistHandover_Availability) {
|
|
137
|
+
/** AVAILABILITY_UNKNOWN - Nothing was said. Treat exactly as NO_SOURCE — never as "probably fine". */
|
|
138
|
+
ChecklistHandover_Availability[ChecklistHandover_Availability["AVAILABILITY_UNKNOWN"] = 0] = "AVAILABILITY_UNKNOWN";
|
|
139
|
+
/**
|
|
140
|
+
* AVAILABILITY_NO_SOURCE - No sensor is configured for this. A deployment fact, and the one #218 is about:
|
|
141
|
+
* distinguishable from UNKNOWN so a briefing can say "there is no GNSS on this platform"
|
|
142
|
+
* rather than "nobody told me".
|
|
143
|
+
*/
|
|
144
|
+
ChecklistHandover_Availability[ChecklistHandover_Availability["AVAILABILITY_NO_SOURCE"] = 1] = "AVAILABILITY_NO_SOURCE";
|
|
145
|
+
/**
|
|
146
|
+
* AVAILABILITY_AVAILABLE - A source exists and this is its reading. The only value that may be rendered as a bare
|
|
147
|
+
* number.
|
|
148
|
+
*/
|
|
149
|
+
ChecklistHandover_Availability[ChecklistHandover_Availability["AVAILABILITY_AVAILABLE"] = 2] = "AVAILABILITY_AVAILABLE";
|
|
150
|
+
/**
|
|
151
|
+
* AVAILABILITY_STALE - A source exists and has stopped updating. A value MAY be carried; if it is, it MUST be
|
|
152
|
+
* rendered with `observed_at` beside it, never bare.
|
|
153
|
+
*/
|
|
154
|
+
ChecklistHandover_Availability[ChecklistHandover_Availability["AVAILABILITY_STALE"] = 3] = "AVAILABILITY_STALE";
|
|
155
|
+
/**
|
|
156
|
+
* AVAILABILITY_INVALID - A source exists and reported a fault. Materially different from silence to a relief
|
|
157
|
+
* operator, which is why it is not folded into NO_SOURCE.
|
|
158
|
+
*/
|
|
159
|
+
ChecklistHandover_Availability[ChecklistHandover_Availability["AVAILABILITY_INVALID"] = 4] = "AVAILABILITY_INVALID";
|
|
160
|
+
ChecklistHandover_Availability[ChecklistHandover_Availability["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
161
|
+
})(ChecklistHandover_Availability || (exports.ChecklistHandover_Availability = ChecklistHandover_Availability = {}));
|
|
162
|
+
function checklistHandover_AvailabilityFromJSON(object) {
|
|
163
|
+
switch (object) {
|
|
164
|
+
case 0:
|
|
165
|
+
case "AVAILABILITY_UNKNOWN":
|
|
166
|
+
return ChecklistHandover_Availability.AVAILABILITY_UNKNOWN;
|
|
167
|
+
case 1:
|
|
168
|
+
case "AVAILABILITY_NO_SOURCE":
|
|
169
|
+
return ChecklistHandover_Availability.AVAILABILITY_NO_SOURCE;
|
|
170
|
+
case 2:
|
|
171
|
+
case "AVAILABILITY_AVAILABLE":
|
|
172
|
+
return ChecklistHandover_Availability.AVAILABILITY_AVAILABLE;
|
|
173
|
+
case 3:
|
|
174
|
+
case "AVAILABILITY_STALE":
|
|
175
|
+
return ChecklistHandover_Availability.AVAILABILITY_STALE;
|
|
176
|
+
case 4:
|
|
177
|
+
case "AVAILABILITY_INVALID":
|
|
178
|
+
return ChecklistHandover_Availability.AVAILABILITY_INVALID;
|
|
179
|
+
case -1:
|
|
180
|
+
case "UNRECOGNIZED":
|
|
181
|
+
default:
|
|
182
|
+
return ChecklistHandover_Availability.UNRECOGNIZED;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.checklistHandover_AvailabilityFromJSON = checklistHandover_AvailabilityFromJSON;
|
|
186
|
+
function checklistHandover_AvailabilityToJSON(object) {
|
|
187
|
+
switch (object) {
|
|
188
|
+
case ChecklistHandover_Availability.AVAILABILITY_UNKNOWN:
|
|
189
|
+
return "AVAILABILITY_UNKNOWN";
|
|
190
|
+
case ChecklistHandover_Availability.AVAILABILITY_NO_SOURCE:
|
|
191
|
+
return "AVAILABILITY_NO_SOURCE";
|
|
192
|
+
case ChecklistHandover_Availability.AVAILABILITY_AVAILABLE:
|
|
193
|
+
return "AVAILABILITY_AVAILABLE";
|
|
194
|
+
case ChecklistHandover_Availability.AVAILABILITY_STALE:
|
|
195
|
+
return "AVAILABILITY_STALE";
|
|
196
|
+
case ChecklistHandover_Availability.AVAILABILITY_INVALID:
|
|
197
|
+
return "AVAILABILITY_INVALID";
|
|
198
|
+
case ChecklistHandover_Availability.UNRECOGNIZED:
|
|
199
|
+
default:
|
|
200
|
+
return "UNRECOGNIZED";
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
exports.checklistHandover_AvailabilityToJSON = checklistHandover_AvailabilityToJSON;
|
|
204
|
+
/**
|
|
205
|
+
* Which of the two acts a HANDOVER_STATUS_REFUSED record is.
|
|
206
|
+
*
|
|
207
|
+
* STATED RATHER THAN INFERRED, and that is the change from the provisional JSON form this
|
|
208
|
+
* replaces. There it was derived from two absences — a vessel timestamp set while the refusing
|
|
209
|
+
* party was unset — and an absence reads as "unknown" rather than as "the vessel". Two clients
|
|
210
|
+
* had each derived it inline and a third would have had to guess. A decline is a person
|
|
211
|
+
* exercising judgement; a vessel refusal is a machine applying a configured floor, and only the
|
|
212
|
+
* second says anything about whether that floor is set right.
|
|
213
|
+
*/
|
|
214
|
+
var ChecklistHandover_RefusalSource;
|
|
215
|
+
(function (ChecklistHandover_RefusalSource) {
|
|
216
|
+
ChecklistHandover_RefusalSource[ChecklistHandover_RefusalSource["REFUSAL_SOURCE_UNKNOWN"] = 0] = "REFUSAL_SOURCE_UNKNOWN";
|
|
217
|
+
ChecklistHandover_RefusalSource[ChecklistHandover_RefusalSource["REFUSAL_SOURCE_OPERATOR"] = 1] = "REFUSAL_SOURCE_OPERATOR";
|
|
218
|
+
ChecklistHandover_RefusalSource[ChecklistHandover_RefusalSource["REFUSAL_SOURCE_VESSEL"] = 2] = "REFUSAL_SOURCE_VESSEL";
|
|
219
|
+
ChecklistHandover_RefusalSource[ChecklistHandover_RefusalSource["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
220
|
+
})(ChecklistHandover_RefusalSource || (exports.ChecklistHandover_RefusalSource = ChecklistHandover_RefusalSource = {}));
|
|
221
|
+
function checklistHandover_RefusalSourceFromJSON(object) {
|
|
222
|
+
switch (object) {
|
|
223
|
+
case 0:
|
|
224
|
+
case "REFUSAL_SOURCE_UNKNOWN":
|
|
225
|
+
return ChecklistHandover_RefusalSource.REFUSAL_SOURCE_UNKNOWN;
|
|
226
|
+
case 1:
|
|
227
|
+
case "REFUSAL_SOURCE_OPERATOR":
|
|
228
|
+
return ChecklistHandover_RefusalSource.REFUSAL_SOURCE_OPERATOR;
|
|
229
|
+
case 2:
|
|
230
|
+
case "REFUSAL_SOURCE_VESSEL":
|
|
231
|
+
return ChecklistHandover_RefusalSource.REFUSAL_SOURCE_VESSEL;
|
|
232
|
+
case -1:
|
|
233
|
+
case "UNRECOGNIZED":
|
|
234
|
+
default:
|
|
235
|
+
return ChecklistHandover_RefusalSource.UNRECOGNIZED;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
exports.checklistHandover_RefusalSourceFromJSON = checklistHandover_RefusalSourceFromJSON;
|
|
239
|
+
function checklistHandover_RefusalSourceToJSON(object) {
|
|
240
|
+
switch (object) {
|
|
241
|
+
case ChecklistHandover_RefusalSource.REFUSAL_SOURCE_UNKNOWN:
|
|
242
|
+
return "REFUSAL_SOURCE_UNKNOWN";
|
|
243
|
+
case ChecklistHandover_RefusalSource.REFUSAL_SOURCE_OPERATOR:
|
|
244
|
+
return "REFUSAL_SOURCE_OPERATOR";
|
|
245
|
+
case ChecklistHandover_RefusalSource.REFUSAL_SOURCE_VESSEL:
|
|
246
|
+
return "REFUSAL_SOURCE_VESSEL";
|
|
247
|
+
case ChecklistHandover_RefusalSource.UNRECOGNIZED:
|
|
248
|
+
default:
|
|
249
|
+
return "UNRECOGNIZED";
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
exports.checklistHandover_RefusalSourceToJSON = checklistHandover_RefusalSourceToJSON;
|
|
253
|
+
var ChecklistHandover_ActiveRisk_RiskKind;
|
|
254
|
+
(function (ChecklistHandover_ActiveRisk_RiskKind) {
|
|
255
|
+
ChecklistHandover_ActiveRisk_RiskKind[ChecklistHandover_ActiveRisk_RiskKind["RISK_KIND_UNKNOWN"] = 0] = "RISK_KIND_UNKNOWN";
|
|
256
|
+
/** RISK_KIND_FLAG - A checklist item an operator flagged and nobody resolved. */
|
|
257
|
+
ChecklistHandover_ActiveRisk_RiskKind[ChecklistHandover_ActiveRisk_RiskKind["RISK_KIND_FLAG"] = 1] = "RISK_KIND_FLAG";
|
|
258
|
+
/** RISK_KIND_ALERT - An alert nobody acknowledged. */
|
|
259
|
+
ChecklistHandover_ActiveRisk_RiskKind[ChecklistHandover_ActiveRisk_RiskKind["RISK_KIND_ALERT"] = 2] = "RISK_KIND_ALERT";
|
|
260
|
+
ChecklistHandover_ActiveRisk_RiskKind[ChecklistHandover_ActiveRisk_RiskKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
261
|
+
})(ChecklistHandover_ActiveRisk_RiskKind || (exports.ChecklistHandover_ActiveRisk_RiskKind = ChecklistHandover_ActiveRisk_RiskKind = {}));
|
|
262
|
+
function checklistHandover_ActiveRisk_RiskKindFromJSON(object) {
|
|
263
|
+
switch (object) {
|
|
264
|
+
case 0:
|
|
265
|
+
case "RISK_KIND_UNKNOWN":
|
|
266
|
+
return ChecklistHandover_ActiveRisk_RiskKind.RISK_KIND_UNKNOWN;
|
|
267
|
+
case 1:
|
|
268
|
+
case "RISK_KIND_FLAG":
|
|
269
|
+
return ChecklistHandover_ActiveRisk_RiskKind.RISK_KIND_FLAG;
|
|
270
|
+
case 2:
|
|
271
|
+
case "RISK_KIND_ALERT":
|
|
272
|
+
return ChecklistHandover_ActiveRisk_RiskKind.RISK_KIND_ALERT;
|
|
273
|
+
case -1:
|
|
274
|
+
case "UNRECOGNIZED":
|
|
275
|
+
default:
|
|
276
|
+
return ChecklistHandover_ActiveRisk_RiskKind.UNRECOGNIZED;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
exports.checklistHandover_ActiveRisk_RiskKindFromJSON = checklistHandover_ActiveRisk_RiskKindFromJSON;
|
|
280
|
+
function checklistHandover_ActiveRisk_RiskKindToJSON(object) {
|
|
281
|
+
switch (object) {
|
|
282
|
+
case ChecklistHandover_ActiveRisk_RiskKind.RISK_KIND_UNKNOWN:
|
|
283
|
+
return "RISK_KIND_UNKNOWN";
|
|
284
|
+
case ChecklistHandover_ActiveRisk_RiskKind.RISK_KIND_FLAG:
|
|
285
|
+
return "RISK_KIND_FLAG";
|
|
286
|
+
case ChecklistHandover_ActiveRisk_RiskKind.RISK_KIND_ALERT:
|
|
287
|
+
return "RISK_KIND_ALERT";
|
|
288
|
+
case ChecklistHandover_ActiveRisk_RiskKind.UNRECOGNIZED:
|
|
289
|
+
default:
|
|
290
|
+
return "UNRECOGNIZED";
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
exports.checklistHandover_ActiveRisk_RiskKindToJSON = checklistHandover_ActiveRisk_RiskKindToJSON;
|
|
294
|
+
/**
|
|
295
|
+
* Which test produced the answer. A STABLE TOKEN, safe to count.
|
|
296
|
+
*
|
|
297
|
+
* Deliberately not something to be recovered from `reason`. OperationalAuthority.proto forbids
|
|
298
|
+
* parsing its own reason prose, and the same discipline holds here — otherwise every future
|
|
299
|
+
* count of refusals becomes a regex over English.
|
|
300
|
+
*/
|
|
301
|
+
var ChecklistHandover_VesselVerdict_Gate;
|
|
302
|
+
(function (ChecklistHandover_VesselVerdict_Gate) {
|
|
303
|
+
/**
|
|
304
|
+
* GATE_UNKNOWN - No gate recorded: a verdict written by a producer that predates this field. NOT a guess at
|
|
305
|
+
* which test fired. A refusal whose cause was never recorded is not evidence for whichever
|
|
306
|
+
* reading you would prefer, and it MUST stay countable as its own bucket.
|
|
307
|
+
*/
|
|
308
|
+
ChecklistHandover_VesselVerdict_Gate[ChecklistHandover_VesselVerdict_Gate["GATE_UNKNOWN"] = 0] = "GATE_UNKNOWN";
|
|
309
|
+
/** GATE_CONFIRMED - The vessel was willing. */
|
|
310
|
+
ChecklistHandover_VesselVerdict_Gate[ChecklistHandover_VesselVerdict_Gate["GATE_CONFIRMED"] = 1] = "GATE_CONFIRMED";
|
|
311
|
+
/**
|
|
312
|
+
* GATE_NON_AUTHORIZING - The vessel's authority is non-authorizing on its own terms — AUTHORITY_LEVEL_UNKNOWN or
|
|
313
|
+
* AUTHORITY_LEVEL_MINIMAL_SAFE_MODE. Refuses at EVERY floor setting, so it is evidence about
|
|
314
|
+
* the vessel and never about the floor.
|
|
315
|
+
*/
|
|
316
|
+
ChecklistHandover_VesselVerdict_Gate[ChecklistHandover_VesselVerdict_Gate["GATE_NON_AUTHORIZING"] = 2] = "GATE_NON_AUTHORIZING";
|
|
317
|
+
/**
|
|
318
|
+
* GATE_BELOW_FLOOR - The level cleared the protocol-mandated floor but not the configured one. The only gate
|
|
319
|
+
* that argues for moving the configured floor.
|
|
320
|
+
*/
|
|
321
|
+
ChecklistHandover_VesselVerdict_Gate[ChecklistHandover_VesselVerdict_Gate["GATE_BELOW_FLOOR"] = 3] = "GATE_BELOW_FLOOR";
|
|
322
|
+
/**
|
|
323
|
+
* GATE_NO_AUTHORITY - Nothing on operational_authority for this entity. The vessel cannot say whether it accepts
|
|
324
|
+
* remote operation, which is not a yes. `level` is AUTHORITY_LEVEL_UNKNOWN because there is
|
|
325
|
+
* no level to report.
|
|
326
|
+
*/
|
|
327
|
+
ChecklistHandover_VesselVerdict_Gate[ChecklistHandover_VesselVerdict_Gate["GATE_NO_AUTHORITY"] = 4] = "GATE_NO_AUTHORITY";
|
|
328
|
+
/**
|
|
329
|
+
* GATE_STALE_AUTHORITY - The last reading is older than the producer's limit. Stale silence is not a yes either: an
|
|
330
|
+
* aggregator that died while the vessel read FULL_AUTONOMOUS would otherwise keep confirming
|
|
331
|
+
* handovers against a frozen value for ever — a safety gate failing open. `age_seconds`
|
|
332
|
+
* carries how old.
|
|
333
|
+
*/
|
|
334
|
+
ChecklistHandover_VesselVerdict_Gate[ChecklistHandover_VesselVerdict_Gate["GATE_STALE_AUTHORITY"] = 5] = "GATE_STALE_AUTHORITY";
|
|
335
|
+
ChecklistHandover_VesselVerdict_Gate[ChecklistHandover_VesselVerdict_Gate["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
336
|
+
})(ChecklistHandover_VesselVerdict_Gate || (exports.ChecklistHandover_VesselVerdict_Gate = ChecklistHandover_VesselVerdict_Gate = {}));
|
|
337
|
+
function checklistHandover_VesselVerdict_GateFromJSON(object) {
|
|
338
|
+
switch (object) {
|
|
339
|
+
case 0:
|
|
340
|
+
case "GATE_UNKNOWN":
|
|
341
|
+
return ChecklistHandover_VesselVerdict_Gate.GATE_UNKNOWN;
|
|
342
|
+
case 1:
|
|
343
|
+
case "GATE_CONFIRMED":
|
|
344
|
+
return ChecklistHandover_VesselVerdict_Gate.GATE_CONFIRMED;
|
|
345
|
+
case 2:
|
|
346
|
+
case "GATE_NON_AUTHORIZING":
|
|
347
|
+
return ChecklistHandover_VesselVerdict_Gate.GATE_NON_AUTHORIZING;
|
|
348
|
+
case 3:
|
|
349
|
+
case "GATE_BELOW_FLOOR":
|
|
350
|
+
return ChecklistHandover_VesselVerdict_Gate.GATE_BELOW_FLOOR;
|
|
351
|
+
case 4:
|
|
352
|
+
case "GATE_NO_AUTHORITY":
|
|
353
|
+
return ChecklistHandover_VesselVerdict_Gate.GATE_NO_AUTHORITY;
|
|
354
|
+
case 5:
|
|
355
|
+
case "GATE_STALE_AUTHORITY":
|
|
356
|
+
return ChecklistHandover_VesselVerdict_Gate.GATE_STALE_AUTHORITY;
|
|
357
|
+
case -1:
|
|
358
|
+
case "UNRECOGNIZED":
|
|
359
|
+
default:
|
|
360
|
+
return ChecklistHandover_VesselVerdict_Gate.UNRECOGNIZED;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
exports.checklistHandover_VesselVerdict_GateFromJSON = checklistHandover_VesselVerdict_GateFromJSON;
|
|
364
|
+
function checklistHandover_VesselVerdict_GateToJSON(object) {
|
|
365
|
+
switch (object) {
|
|
366
|
+
case ChecklistHandover_VesselVerdict_Gate.GATE_UNKNOWN:
|
|
367
|
+
return "GATE_UNKNOWN";
|
|
368
|
+
case ChecklistHandover_VesselVerdict_Gate.GATE_CONFIRMED:
|
|
369
|
+
return "GATE_CONFIRMED";
|
|
370
|
+
case ChecklistHandover_VesselVerdict_Gate.GATE_NON_AUTHORIZING:
|
|
371
|
+
return "GATE_NON_AUTHORIZING";
|
|
372
|
+
case ChecklistHandover_VesselVerdict_Gate.GATE_BELOW_FLOOR:
|
|
373
|
+
return "GATE_BELOW_FLOOR";
|
|
374
|
+
case ChecklistHandover_VesselVerdict_Gate.GATE_NO_AUTHORITY:
|
|
375
|
+
return "GATE_NO_AUTHORITY";
|
|
376
|
+
case ChecklistHandover_VesselVerdict_Gate.GATE_STALE_AUTHORITY:
|
|
377
|
+
return "GATE_STALE_AUTHORITY";
|
|
378
|
+
case ChecklistHandover_VesselVerdict_Gate.UNRECOGNIZED:
|
|
379
|
+
default:
|
|
380
|
+
return "UNRECOGNIZED";
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
exports.checklistHandover_VesselVerdict_GateToJSON = checklistHandover_VesselVerdict_GateToJSON;
|
|
384
|
+
function createBaseChecklistHandover() {
|
|
385
|
+
return {
|
|
386
|
+
$type: "keelson.ChecklistHandover",
|
|
387
|
+
timestamp: undefined,
|
|
388
|
+
handoverId: "",
|
|
389
|
+
runId: "",
|
|
390
|
+
status: 0,
|
|
391
|
+
offeredBy: undefined,
|
|
392
|
+
offeredTo: undefined,
|
|
393
|
+
refusedBy: undefined,
|
|
394
|
+
refusalSource: 0,
|
|
395
|
+
refusalReason: "",
|
|
396
|
+
acknowledgmentNote: "",
|
|
397
|
+
offeredAt: undefined,
|
|
398
|
+
expiresAt: undefined,
|
|
399
|
+
acceptedAt: undefined,
|
|
400
|
+
refusedAt: undefined,
|
|
401
|
+
vesselConfirmedAt: undefined,
|
|
402
|
+
vessel: undefined,
|
|
403
|
+
vesselStatus: undefined,
|
|
404
|
+
vesselVerdict: undefined,
|
|
405
|
+
openItems: [],
|
|
406
|
+
activeRisks: [],
|
|
407
|
+
keyCommunications: [],
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
exports.ChecklistHandover = {
|
|
411
|
+
$type: "keelson.ChecklistHandover",
|
|
412
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
413
|
+
if (message.timestamp !== undefined) {
|
|
414
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
|
|
415
|
+
}
|
|
416
|
+
if (message.handoverId !== "") {
|
|
417
|
+
writer.uint32(18).string(message.handoverId);
|
|
418
|
+
}
|
|
419
|
+
if (message.runId !== "") {
|
|
420
|
+
writer.uint32(26).string(message.runId);
|
|
421
|
+
}
|
|
422
|
+
if (message.status !== 0) {
|
|
423
|
+
writer.uint32(32).int32(message.status);
|
|
424
|
+
}
|
|
425
|
+
if (message.offeredBy !== undefined) {
|
|
426
|
+
exports.ChecklistHandover_Party.encode(message.offeredBy, writer.uint32(82).fork()).join();
|
|
427
|
+
}
|
|
428
|
+
if (message.offeredTo !== undefined) {
|
|
429
|
+
exports.ChecklistHandover_Party.encode(message.offeredTo, writer.uint32(90).fork()).join();
|
|
430
|
+
}
|
|
431
|
+
if (message.refusedBy !== undefined) {
|
|
432
|
+
exports.ChecklistHandover_Party.encode(message.refusedBy, writer.uint32(98).fork()).join();
|
|
433
|
+
}
|
|
434
|
+
if (message.refusalSource !== 0) {
|
|
435
|
+
writer.uint32(104).int32(message.refusalSource);
|
|
436
|
+
}
|
|
437
|
+
if (message.refusalReason !== "") {
|
|
438
|
+
writer.uint32(114).string(message.refusalReason);
|
|
439
|
+
}
|
|
440
|
+
if (message.acknowledgmentNote !== "") {
|
|
441
|
+
writer.uint32(122).string(message.acknowledgmentNote);
|
|
442
|
+
}
|
|
443
|
+
if (message.offeredAt !== undefined) {
|
|
444
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.offeredAt), writer.uint32(162).fork()).join();
|
|
445
|
+
}
|
|
446
|
+
if (message.expiresAt !== undefined) {
|
|
447
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(170).fork()).join();
|
|
448
|
+
}
|
|
449
|
+
if (message.acceptedAt !== undefined) {
|
|
450
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.acceptedAt), writer.uint32(178).fork()).join();
|
|
451
|
+
}
|
|
452
|
+
if (message.refusedAt !== undefined) {
|
|
453
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.refusedAt), writer.uint32(186).fork()).join();
|
|
454
|
+
}
|
|
455
|
+
if (message.vesselConfirmedAt !== undefined) {
|
|
456
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.vesselConfirmedAt), writer.uint32(194).fork()).join();
|
|
457
|
+
}
|
|
458
|
+
if (message.vessel !== undefined) {
|
|
459
|
+
exports.ChecklistHandover_VesselRef.encode(message.vessel, writer.uint32(242).fork()).join();
|
|
460
|
+
}
|
|
461
|
+
if (message.vesselStatus !== undefined) {
|
|
462
|
+
exports.ChecklistHandover_VesselStatus.encode(message.vesselStatus, writer.uint32(250).fork()).join();
|
|
463
|
+
}
|
|
464
|
+
if (message.vesselVerdict !== undefined) {
|
|
465
|
+
exports.ChecklistHandover_VesselVerdict.encode(message.vesselVerdict, writer.uint32(258).fork()).join();
|
|
466
|
+
}
|
|
467
|
+
for (const v of message.openItems) {
|
|
468
|
+
exports.ChecklistHandover_OpenItem.encode(v, writer.uint32(322).fork()).join();
|
|
469
|
+
}
|
|
470
|
+
for (const v of message.activeRisks) {
|
|
471
|
+
exports.ChecklistHandover_ActiveRisk.encode(v, writer.uint32(330).fork()).join();
|
|
472
|
+
}
|
|
473
|
+
for (const v of message.keyCommunications) {
|
|
474
|
+
writer.uint32(338).string(v);
|
|
475
|
+
}
|
|
476
|
+
return writer;
|
|
477
|
+
},
|
|
478
|
+
decode(input, length) {
|
|
479
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
480
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
481
|
+
const message = createBaseChecklistHandover();
|
|
482
|
+
while (reader.pos < end) {
|
|
483
|
+
const tag = reader.uint32();
|
|
484
|
+
switch (tag >>> 3) {
|
|
485
|
+
case 1: {
|
|
486
|
+
if (tag !== 10) {
|
|
487
|
+
break;
|
|
488
|
+
}
|
|
489
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
490
|
+
continue;
|
|
491
|
+
}
|
|
492
|
+
case 2: {
|
|
493
|
+
if (tag !== 18) {
|
|
494
|
+
break;
|
|
495
|
+
}
|
|
496
|
+
message.handoverId = reader.string();
|
|
497
|
+
continue;
|
|
498
|
+
}
|
|
499
|
+
case 3: {
|
|
500
|
+
if (tag !== 26) {
|
|
501
|
+
break;
|
|
502
|
+
}
|
|
503
|
+
message.runId = reader.string();
|
|
504
|
+
continue;
|
|
505
|
+
}
|
|
506
|
+
case 4: {
|
|
507
|
+
if (tag !== 32) {
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
510
|
+
message.status = reader.int32();
|
|
511
|
+
continue;
|
|
512
|
+
}
|
|
513
|
+
case 10: {
|
|
514
|
+
if (tag !== 82) {
|
|
515
|
+
break;
|
|
516
|
+
}
|
|
517
|
+
message.offeredBy = exports.ChecklistHandover_Party.decode(reader, reader.uint32());
|
|
518
|
+
continue;
|
|
519
|
+
}
|
|
520
|
+
case 11: {
|
|
521
|
+
if (tag !== 90) {
|
|
522
|
+
break;
|
|
523
|
+
}
|
|
524
|
+
message.offeredTo = exports.ChecklistHandover_Party.decode(reader, reader.uint32());
|
|
525
|
+
continue;
|
|
526
|
+
}
|
|
527
|
+
case 12: {
|
|
528
|
+
if (tag !== 98) {
|
|
529
|
+
break;
|
|
530
|
+
}
|
|
531
|
+
message.refusedBy = exports.ChecklistHandover_Party.decode(reader, reader.uint32());
|
|
532
|
+
continue;
|
|
533
|
+
}
|
|
534
|
+
case 13: {
|
|
535
|
+
if (tag !== 104) {
|
|
536
|
+
break;
|
|
537
|
+
}
|
|
538
|
+
message.refusalSource = reader.int32();
|
|
539
|
+
continue;
|
|
540
|
+
}
|
|
541
|
+
case 14: {
|
|
542
|
+
if (tag !== 114) {
|
|
543
|
+
break;
|
|
544
|
+
}
|
|
545
|
+
message.refusalReason = reader.string();
|
|
546
|
+
continue;
|
|
547
|
+
}
|
|
548
|
+
case 15: {
|
|
549
|
+
if (tag !== 122) {
|
|
550
|
+
break;
|
|
551
|
+
}
|
|
552
|
+
message.acknowledgmentNote = reader.string();
|
|
553
|
+
continue;
|
|
554
|
+
}
|
|
555
|
+
case 20: {
|
|
556
|
+
if (tag !== 162) {
|
|
557
|
+
break;
|
|
558
|
+
}
|
|
559
|
+
message.offeredAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
560
|
+
continue;
|
|
561
|
+
}
|
|
562
|
+
case 21: {
|
|
563
|
+
if (tag !== 170) {
|
|
564
|
+
break;
|
|
565
|
+
}
|
|
566
|
+
message.expiresAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
567
|
+
continue;
|
|
568
|
+
}
|
|
569
|
+
case 22: {
|
|
570
|
+
if (tag !== 178) {
|
|
571
|
+
break;
|
|
572
|
+
}
|
|
573
|
+
message.acceptedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
574
|
+
continue;
|
|
575
|
+
}
|
|
576
|
+
case 23: {
|
|
577
|
+
if (tag !== 186) {
|
|
578
|
+
break;
|
|
579
|
+
}
|
|
580
|
+
message.refusedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
581
|
+
continue;
|
|
582
|
+
}
|
|
583
|
+
case 24: {
|
|
584
|
+
if (tag !== 194) {
|
|
585
|
+
break;
|
|
586
|
+
}
|
|
587
|
+
message.vesselConfirmedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
588
|
+
continue;
|
|
589
|
+
}
|
|
590
|
+
case 30: {
|
|
591
|
+
if (tag !== 242) {
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
594
|
+
message.vessel = exports.ChecklistHandover_VesselRef.decode(reader, reader.uint32());
|
|
595
|
+
continue;
|
|
596
|
+
}
|
|
597
|
+
case 31: {
|
|
598
|
+
if (tag !== 250) {
|
|
599
|
+
break;
|
|
600
|
+
}
|
|
601
|
+
message.vesselStatus = exports.ChecklistHandover_VesselStatus.decode(reader, reader.uint32());
|
|
602
|
+
continue;
|
|
603
|
+
}
|
|
604
|
+
case 32: {
|
|
605
|
+
if (tag !== 258) {
|
|
606
|
+
break;
|
|
607
|
+
}
|
|
608
|
+
message.vesselVerdict = exports.ChecklistHandover_VesselVerdict.decode(reader, reader.uint32());
|
|
609
|
+
continue;
|
|
610
|
+
}
|
|
611
|
+
case 40: {
|
|
612
|
+
if (tag !== 322) {
|
|
613
|
+
break;
|
|
614
|
+
}
|
|
615
|
+
message.openItems.push(exports.ChecklistHandover_OpenItem.decode(reader, reader.uint32()));
|
|
616
|
+
continue;
|
|
617
|
+
}
|
|
618
|
+
case 41: {
|
|
619
|
+
if (tag !== 330) {
|
|
620
|
+
break;
|
|
621
|
+
}
|
|
622
|
+
message.activeRisks.push(exports.ChecklistHandover_ActiveRisk.decode(reader, reader.uint32()));
|
|
623
|
+
continue;
|
|
624
|
+
}
|
|
625
|
+
case 42: {
|
|
626
|
+
if (tag !== 338) {
|
|
627
|
+
break;
|
|
628
|
+
}
|
|
629
|
+
message.keyCommunications.push(reader.string());
|
|
630
|
+
continue;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
634
|
+
break;
|
|
635
|
+
}
|
|
636
|
+
reader.skip(tag & 7);
|
|
637
|
+
}
|
|
638
|
+
return message;
|
|
639
|
+
},
|
|
640
|
+
fromJSON(object) {
|
|
641
|
+
return {
|
|
642
|
+
$type: exports.ChecklistHandover.$type,
|
|
643
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
644
|
+
handoverId: isSet(object.handoverId) ? globalThis.String(object.handoverId) : "",
|
|
645
|
+
runId: isSet(object.runId) ? globalThis.String(object.runId) : "",
|
|
646
|
+
status: isSet(object.status) ? checklistHandover_HandoverStatusFromJSON(object.status) : 0,
|
|
647
|
+
offeredBy: isSet(object.offeredBy) ? exports.ChecklistHandover_Party.fromJSON(object.offeredBy) : undefined,
|
|
648
|
+
offeredTo: isSet(object.offeredTo) ? exports.ChecklistHandover_Party.fromJSON(object.offeredTo) : undefined,
|
|
649
|
+
refusedBy: isSet(object.refusedBy) ? exports.ChecklistHandover_Party.fromJSON(object.refusedBy) : undefined,
|
|
650
|
+
refusalSource: isSet(object.refusalSource) ? checklistHandover_RefusalSourceFromJSON(object.refusalSource) : 0,
|
|
651
|
+
refusalReason: isSet(object.refusalReason) ? globalThis.String(object.refusalReason) : "",
|
|
652
|
+
acknowledgmentNote: isSet(object.acknowledgmentNote) ? globalThis.String(object.acknowledgmentNote) : "",
|
|
653
|
+
offeredAt: isSet(object.offeredAt) ? fromJsonTimestamp(object.offeredAt) : undefined,
|
|
654
|
+
expiresAt: isSet(object.expiresAt) ? fromJsonTimestamp(object.expiresAt) : undefined,
|
|
655
|
+
acceptedAt: isSet(object.acceptedAt) ? fromJsonTimestamp(object.acceptedAt) : undefined,
|
|
656
|
+
refusedAt: isSet(object.refusedAt) ? fromJsonTimestamp(object.refusedAt) : undefined,
|
|
657
|
+
vesselConfirmedAt: isSet(object.vesselConfirmedAt) ? fromJsonTimestamp(object.vesselConfirmedAt) : undefined,
|
|
658
|
+
vessel: isSet(object.vessel) ? exports.ChecklistHandover_VesselRef.fromJSON(object.vessel) : undefined,
|
|
659
|
+
vesselStatus: isSet(object.vesselStatus)
|
|
660
|
+
? exports.ChecklistHandover_VesselStatus.fromJSON(object.vesselStatus)
|
|
661
|
+
: undefined,
|
|
662
|
+
vesselVerdict: isSet(object.vesselVerdict)
|
|
663
|
+
? exports.ChecklistHandover_VesselVerdict.fromJSON(object.vesselVerdict)
|
|
664
|
+
: undefined,
|
|
665
|
+
openItems: globalThis.Array.isArray(object?.openItems)
|
|
666
|
+
? object.openItems.map((e) => exports.ChecklistHandover_OpenItem.fromJSON(e))
|
|
667
|
+
: [],
|
|
668
|
+
activeRisks: globalThis.Array.isArray(object?.activeRisks)
|
|
669
|
+
? object.activeRisks.map((e) => exports.ChecklistHandover_ActiveRisk.fromJSON(e))
|
|
670
|
+
: [],
|
|
671
|
+
keyCommunications: globalThis.Array.isArray(object?.keyCommunications)
|
|
672
|
+
? object.keyCommunications.map((e) => globalThis.String(e))
|
|
673
|
+
: [],
|
|
674
|
+
};
|
|
675
|
+
},
|
|
676
|
+
toJSON(message) {
|
|
677
|
+
const obj = {};
|
|
678
|
+
if (message.timestamp !== undefined) {
|
|
679
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
680
|
+
}
|
|
681
|
+
if (message.handoverId !== "") {
|
|
682
|
+
obj.handoverId = message.handoverId;
|
|
683
|
+
}
|
|
684
|
+
if (message.runId !== "") {
|
|
685
|
+
obj.runId = message.runId;
|
|
686
|
+
}
|
|
687
|
+
if (message.status !== 0) {
|
|
688
|
+
obj.status = checklistHandover_HandoverStatusToJSON(message.status);
|
|
689
|
+
}
|
|
690
|
+
if (message.offeredBy !== undefined) {
|
|
691
|
+
obj.offeredBy = exports.ChecklistHandover_Party.toJSON(message.offeredBy);
|
|
692
|
+
}
|
|
693
|
+
if (message.offeredTo !== undefined) {
|
|
694
|
+
obj.offeredTo = exports.ChecklistHandover_Party.toJSON(message.offeredTo);
|
|
695
|
+
}
|
|
696
|
+
if (message.refusedBy !== undefined) {
|
|
697
|
+
obj.refusedBy = exports.ChecklistHandover_Party.toJSON(message.refusedBy);
|
|
698
|
+
}
|
|
699
|
+
if (message.refusalSource !== 0) {
|
|
700
|
+
obj.refusalSource = checklistHandover_RefusalSourceToJSON(message.refusalSource);
|
|
701
|
+
}
|
|
702
|
+
if (message.refusalReason !== "") {
|
|
703
|
+
obj.refusalReason = message.refusalReason;
|
|
704
|
+
}
|
|
705
|
+
if (message.acknowledgmentNote !== "") {
|
|
706
|
+
obj.acknowledgmentNote = message.acknowledgmentNote;
|
|
707
|
+
}
|
|
708
|
+
if (message.offeredAt !== undefined) {
|
|
709
|
+
obj.offeredAt = message.offeredAt.toISOString();
|
|
710
|
+
}
|
|
711
|
+
if (message.expiresAt !== undefined) {
|
|
712
|
+
obj.expiresAt = message.expiresAt.toISOString();
|
|
713
|
+
}
|
|
714
|
+
if (message.acceptedAt !== undefined) {
|
|
715
|
+
obj.acceptedAt = message.acceptedAt.toISOString();
|
|
716
|
+
}
|
|
717
|
+
if (message.refusedAt !== undefined) {
|
|
718
|
+
obj.refusedAt = message.refusedAt.toISOString();
|
|
719
|
+
}
|
|
720
|
+
if (message.vesselConfirmedAt !== undefined) {
|
|
721
|
+
obj.vesselConfirmedAt = message.vesselConfirmedAt.toISOString();
|
|
722
|
+
}
|
|
723
|
+
if (message.vessel !== undefined) {
|
|
724
|
+
obj.vessel = exports.ChecklistHandover_VesselRef.toJSON(message.vessel);
|
|
725
|
+
}
|
|
726
|
+
if (message.vesselStatus !== undefined) {
|
|
727
|
+
obj.vesselStatus = exports.ChecklistHandover_VesselStatus.toJSON(message.vesselStatus);
|
|
728
|
+
}
|
|
729
|
+
if (message.vesselVerdict !== undefined) {
|
|
730
|
+
obj.vesselVerdict = exports.ChecklistHandover_VesselVerdict.toJSON(message.vesselVerdict);
|
|
731
|
+
}
|
|
732
|
+
if (message.openItems?.length) {
|
|
733
|
+
obj.openItems = message.openItems.map((e) => exports.ChecklistHandover_OpenItem.toJSON(e));
|
|
734
|
+
}
|
|
735
|
+
if (message.activeRisks?.length) {
|
|
736
|
+
obj.activeRisks = message.activeRisks.map((e) => exports.ChecklistHandover_ActiveRisk.toJSON(e));
|
|
737
|
+
}
|
|
738
|
+
if (message.keyCommunications?.length) {
|
|
739
|
+
obj.keyCommunications = message.keyCommunications;
|
|
740
|
+
}
|
|
741
|
+
return obj;
|
|
742
|
+
},
|
|
743
|
+
create(base) {
|
|
744
|
+
return exports.ChecklistHandover.fromPartial(base ?? {});
|
|
745
|
+
},
|
|
746
|
+
fromPartial(object) {
|
|
747
|
+
const message = createBaseChecklistHandover();
|
|
748
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
749
|
+
message.handoverId = object.handoverId ?? "";
|
|
750
|
+
message.runId = object.runId ?? "";
|
|
751
|
+
message.status = object.status ?? 0;
|
|
752
|
+
message.offeredBy = (object.offeredBy !== undefined && object.offeredBy !== null)
|
|
753
|
+
? exports.ChecklistHandover_Party.fromPartial(object.offeredBy)
|
|
754
|
+
: undefined;
|
|
755
|
+
message.offeredTo = (object.offeredTo !== undefined && object.offeredTo !== null)
|
|
756
|
+
? exports.ChecklistHandover_Party.fromPartial(object.offeredTo)
|
|
757
|
+
: undefined;
|
|
758
|
+
message.refusedBy = (object.refusedBy !== undefined && object.refusedBy !== null)
|
|
759
|
+
? exports.ChecklistHandover_Party.fromPartial(object.refusedBy)
|
|
760
|
+
: undefined;
|
|
761
|
+
message.refusalSource = object.refusalSource ?? 0;
|
|
762
|
+
message.refusalReason = object.refusalReason ?? "";
|
|
763
|
+
message.acknowledgmentNote = object.acknowledgmentNote ?? "";
|
|
764
|
+
message.offeredAt = object.offeredAt ?? undefined;
|
|
765
|
+
message.expiresAt = object.expiresAt ?? undefined;
|
|
766
|
+
message.acceptedAt = object.acceptedAt ?? undefined;
|
|
767
|
+
message.refusedAt = object.refusedAt ?? undefined;
|
|
768
|
+
message.vesselConfirmedAt = object.vesselConfirmedAt ?? undefined;
|
|
769
|
+
message.vessel = (object.vessel !== undefined && object.vessel !== null)
|
|
770
|
+
? exports.ChecklistHandover_VesselRef.fromPartial(object.vessel)
|
|
771
|
+
: undefined;
|
|
772
|
+
message.vesselStatus = (object.vesselStatus !== undefined && object.vesselStatus !== null)
|
|
773
|
+
? exports.ChecklistHandover_VesselStatus.fromPartial(object.vesselStatus)
|
|
774
|
+
: undefined;
|
|
775
|
+
message.vesselVerdict = (object.vesselVerdict !== undefined && object.vesselVerdict !== null)
|
|
776
|
+
? exports.ChecklistHandover_VesselVerdict.fromPartial(object.vesselVerdict)
|
|
777
|
+
: undefined;
|
|
778
|
+
message.openItems = object.openItems?.map((e) => exports.ChecklistHandover_OpenItem.fromPartial(e)) || [];
|
|
779
|
+
message.activeRisks = object.activeRisks?.map((e) => exports.ChecklistHandover_ActiveRisk.fromPartial(e)) || [];
|
|
780
|
+
message.keyCommunications = object.keyCommunications?.map((e) => e) || [];
|
|
781
|
+
return message;
|
|
782
|
+
},
|
|
783
|
+
};
|
|
784
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ChecklistHandover.$type, exports.ChecklistHandover);
|
|
785
|
+
function createBaseChecklistHandover_Party() {
|
|
786
|
+
return { $type: "keelson.ChecklistHandover.Party", operatorId: "", username: "", role: "", rocSite: "" };
|
|
787
|
+
}
|
|
788
|
+
exports.ChecklistHandover_Party = {
|
|
789
|
+
$type: "keelson.ChecklistHandover.Party",
|
|
790
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
791
|
+
if (message.operatorId !== "") {
|
|
792
|
+
writer.uint32(10).string(message.operatorId);
|
|
793
|
+
}
|
|
794
|
+
if (message.username !== "") {
|
|
795
|
+
writer.uint32(18).string(message.username);
|
|
796
|
+
}
|
|
797
|
+
if (message.role !== "") {
|
|
798
|
+
writer.uint32(26).string(message.role);
|
|
799
|
+
}
|
|
800
|
+
if (message.rocSite !== "") {
|
|
801
|
+
writer.uint32(34).string(message.rocSite);
|
|
802
|
+
}
|
|
803
|
+
return writer;
|
|
804
|
+
},
|
|
805
|
+
decode(input, length) {
|
|
806
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
807
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
808
|
+
const message = createBaseChecklistHandover_Party();
|
|
809
|
+
while (reader.pos < end) {
|
|
810
|
+
const tag = reader.uint32();
|
|
811
|
+
switch (tag >>> 3) {
|
|
812
|
+
case 1: {
|
|
813
|
+
if (tag !== 10) {
|
|
814
|
+
break;
|
|
815
|
+
}
|
|
816
|
+
message.operatorId = reader.string();
|
|
817
|
+
continue;
|
|
818
|
+
}
|
|
819
|
+
case 2: {
|
|
820
|
+
if (tag !== 18) {
|
|
821
|
+
break;
|
|
822
|
+
}
|
|
823
|
+
message.username = reader.string();
|
|
824
|
+
continue;
|
|
825
|
+
}
|
|
826
|
+
case 3: {
|
|
827
|
+
if (tag !== 26) {
|
|
828
|
+
break;
|
|
829
|
+
}
|
|
830
|
+
message.role = reader.string();
|
|
831
|
+
continue;
|
|
832
|
+
}
|
|
833
|
+
case 4: {
|
|
834
|
+
if (tag !== 34) {
|
|
835
|
+
break;
|
|
836
|
+
}
|
|
837
|
+
message.rocSite = reader.string();
|
|
838
|
+
continue;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
842
|
+
break;
|
|
843
|
+
}
|
|
844
|
+
reader.skip(tag & 7);
|
|
845
|
+
}
|
|
846
|
+
return message;
|
|
847
|
+
},
|
|
848
|
+
fromJSON(object) {
|
|
849
|
+
return {
|
|
850
|
+
$type: exports.ChecklistHandover_Party.$type,
|
|
851
|
+
operatorId: isSet(object.operatorId) ? globalThis.String(object.operatorId) : "",
|
|
852
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
853
|
+
role: isSet(object.role) ? globalThis.String(object.role) : "",
|
|
854
|
+
rocSite: isSet(object.rocSite) ? globalThis.String(object.rocSite) : "",
|
|
855
|
+
};
|
|
856
|
+
},
|
|
857
|
+
toJSON(message) {
|
|
858
|
+
const obj = {};
|
|
859
|
+
if (message.operatorId !== "") {
|
|
860
|
+
obj.operatorId = message.operatorId;
|
|
861
|
+
}
|
|
862
|
+
if (message.username !== "") {
|
|
863
|
+
obj.username = message.username;
|
|
864
|
+
}
|
|
865
|
+
if (message.role !== "") {
|
|
866
|
+
obj.role = message.role;
|
|
867
|
+
}
|
|
868
|
+
if (message.rocSite !== "") {
|
|
869
|
+
obj.rocSite = message.rocSite;
|
|
870
|
+
}
|
|
871
|
+
return obj;
|
|
872
|
+
},
|
|
873
|
+
create(base) {
|
|
874
|
+
return exports.ChecklistHandover_Party.fromPartial(base ?? {});
|
|
875
|
+
},
|
|
876
|
+
fromPartial(object) {
|
|
877
|
+
const message = createBaseChecklistHandover_Party();
|
|
878
|
+
message.operatorId = object.operatorId ?? "";
|
|
879
|
+
message.username = object.username ?? "";
|
|
880
|
+
message.role = object.role ?? "";
|
|
881
|
+
message.rocSite = object.rocSite ?? "";
|
|
882
|
+
return message;
|
|
883
|
+
},
|
|
884
|
+
};
|
|
885
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ChecklistHandover_Party.$type, exports.ChecklistHandover_Party);
|
|
886
|
+
function createBaseChecklistHandover_VesselRef() {
|
|
887
|
+
return { $type: "keelson.ChecklistHandover.VesselRef", realm: "", entityId: "" };
|
|
888
|
+
}
|
|
889
|
+
exports.ChecklistHandover_VesselRef = {
|
|
890
|
+
$type: "keelson.ChecklistHandover.VesselRef",
|
|
891
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
892
|
+
if (message.realm !== "") {
|
|
893
|
+
writer.uint32(10).string(message.realm);
|
|
894
|
+
}
|
|
895
|
+
if (message.entityId !== "") {
|
|
896
|
+
writer.uint32(18).string(message.entityId);
|
|
897
|
+
}
|
|
898
|
+
return writer;
|
|
899
|
+
},
|
|
900
|
+
decode(input, length) {
|
|
901
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
902
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
903
|
+
const message = createBaseChecklistHandover_VesselRef();
|
|
904
|
+
while (reader.pos < end) {
|
|
905
|
+
const tag = reader.uint32();
|
|
906
|
+
switch (tag >>> 3) {
|
|
907
|
+
case 1: {
|
|
908
|
+
if (tag !== 10) {
|
|
909
|
+
break;
|
|
910
|
+
}
|
|
911
|
+
message.realm = reader.string();
|
|
912
|
+
continue;
|
|
913
|
+
}
|
|
914
|
+
case 2: {
|
|
915
|
+
if (tag !== 18) {
|
|
916
|
+
break;
|
|
917
|
+
}
|
|
918
|
+
message.entityId = reader.string();
|
|
919
|
+
continue;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
923
|
+
break;
|
|
924
|
+
}
|
|
925
|
+
reader.skip(tag & 7);
|
|
926
|
+
}
|
|
927
|
+
return message;
|
|
928
|
+
},
|
|
929
|
+
fromJSON(object) {
|
|
930
|
+
return {
|
|
931
|
+
$type: exports.ChecklistHandover_VesselRef.$type,
|
|
932
|
+
realm: isSet(object.realm) ? globalThis.String(object.realm) : "",
|
|
933
|
+
entityId: isSet(object.entityId) ? globalThis.String(object.entityId) : "",
|
|
934
|
+
};
|
|
935
|
+
},
|
|
936
|
+
toJSON(message) {
|
|
937
|
+
const obj = {};
|
|
938
|
+
if (message.realm !== "") {
|
|
939
|
+
obj.realm = message.realm;
|
|
940
|
+
}
|
|
941
|
+
if (message.entityId !== "") {
|
|
942
|
+
obj.entityId = message.entityId;
|
|
943
|
+
}
|
|
944
|
+
return obj;
|
|
945
|
+
},
|
|
946
|
+
create(base) {
|
|
947
|
+
return exports.ChecklistHandover_VesselRef.fromPartial(base ?? {});
|
|
948
|
+
},
|
|
949
|
+
fromPartial(object) {
|
|
950
|
+
const message = createBaseChecklistHandover_VesselRef();
|
|
951
|
+
message.realm = object.realm ?? "";
|
|
952
|
+
message.entityId = object.entityId ?? "";
|
|
953
|
+
return message;
|
|
954
|
+
},
|
|
955
|
+
};
|
|
956
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ChecklistHandover_VesselRef.$type, exports.ChecklistHandover_VesselRef);
|
|
957
|
+
function createBaseChecklistHandover_Reading() {
|
|
958
|
+
return {
|
|
959
|
+
$type: "keelson.ChecklistHandover.Reading",
|
|
960
|
+
availability: 0,
|
|
961
|
+
scalar: undefined,
|
|
962
|
+
coordinate: undefined,
|
|
963
|
+
sourceName: "",
|
|
964
|
+
observedAt: undefined,
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
exports.ChecklistHandover_Reading = {
|
|
968
|
+
$type: "keelson.ChecklistHandover.Reading",
|
|
969
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
970
|
+
if (message.availability !== 0) {
|
|
971
|
+
writer.uint32(8).int32(message.availability);
|
|
972
|
+
}
|
|
973
|
+
if (message.scalar !== undefined) {
|
|
974
|
+
writer.uint32(17).double(message.scalar);
|
|
975
|
+
}
|
|
976
|
+
if (message.coordinate !== undefined) {
|
|
977
|
+
Coordinate_1.Coordinate.encode(message.coordinate, writer.uint32(26).fork()).join();
|
|
978
|
+
}
|
|
979
|
+
if (message.sourceName !== "") {
|
|
980
|
+
writer.uint32(34).string(message.sourceName);
|
|
981
|
+
}
|
|
982
|
+
if (message.observedAt !== undefined) {
|
|
983
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.observedAt), writer.uint32(42).fork()).join();
|
|
984
|
+
}
|
|
985
|
+
return writer;
|
|
986
|
+
},
|
|
987
|
+
decode(input, length) {
|
|
988
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
989
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
990
|
+
const message = createBaseChecklistHandover_Reading();
|
|
991
|
+
while (reader.pos < end) {
|
|
992
|
+
const tag = reader.uint32();
|
|
993
|
+
switch (tag >>> 3) {
|
|
994
|
+
case 1: {
|
|
995
|
+
if (tag !== 8) {
|
|
996
|
+
break;
|
|
997
|
+
}
|
|
998
|
+
message.availability = reader.int32();
|
|
999
|
+
continue;
|
|
1000
|
+
}
|
|
1001
|
+
case 2: {
|
|
1002
|
+
if (tag !== 17) {
|
|
1003
|
+
break;
|
|
1004
|
+
}
|
|
1005
|
+
message.scalar = reader.double();
|
|
1006
|
+
continue;
|
|
1007
|
+
}
|
|
1008
|
+
case 3: {
|
|
1009
|
+
if (tag !== 26) {
|
|
1010
|
+
break;
|
|
1011
|
+
}
|
|
1012
|
+
message.coordinate = Coordinate_1.Coordinate.decode(reader, reader.uint32());
|
|
1013
|
+
continue;
|
|
1014
|
+
}
|
|
1015
|
+
case 4: {
|
|
1016
|
+
if (tag !== 34) {
|
|
1017
|
+
break;
|
|
1018
|
+
}
|
|
1019
|
+
message.sourceName = reader.string();
|
|
1020
|
+
continue;
|
|
1021
|
+
}
|
|
1022
|
+
case 5: {
|
|
1023
|
+
if (tag !== 42) {
|
|
1024
|
+
break;
|
|
1025
|
+
}
|
|
1026
|
+
message.observedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1027
|
+
continue;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1031
|
+
break;
|
|
1032
|
+
}
|
|
1033
|
+
reader.skip(tag & 7);
|
|
1034
|
+
}
|
|
1035
|
+
return message;
|
|
1036
|
+
},
|
|
1037
|
+
fromJSON(object) {
|
|
1038
|
+
return {
|
|
1039
|
+
$type: exports.ChecklistHandover_Reading.$type,
|
|
1040
|
+
availability: isSet(object.availability) ? checklistHandover_AvailabilityFromJSON(object.availability) : 0,
|
|
1041
|
+
scalar: isSet(object.scalar) ? globalThis.Number(object.scalar) : undefined,
|
|
1042
|
+
coordinate: isSet(object.coordinate) ? Coordinate_1.Coordinate.fromJSON(object.coordinate) : undefined,
|
|
1043
|
+
sourceName: isSet(object.sourceName) ? globalThis.String(object.sourceName) : "",
|
|
1044
|
+
observedAt: isSet(object.observedAt) ? fromJsonTimestamp(object.observedAt) : undefined,
|
|
1045
|
+
};
|
|
1046
|
+
},
|
|
1047
|
+
toJSON(message) {
|
|
1048
|
+
const obj = {};
|
|
1049
|
+
if (message.availability !== 0) {
|
|
1050
|
+
obj.availability = checklistHandover_AvailabilityToJSON(message.availability);
|
|
1051
|
+
}
|
|
1052
|
+
if (message.scalar !== undefined) {
|
|
1053
|
+
obj.scalar = message.scalar;
|
|
1054
|
+
}
|
|
1055
|
+
if (message.coordinate !== undefined) {
|
|
1056
|
+
obj.coordinate = Coordinate_1.Coordinate.toJSON(message.coordinate);
|
|
1057
|
+
}
|
|
1058
|
+
if (message.sourceName !== "") {
|
|
1059
|
+
obj.sourceName = message.sourceName;
|
|
1060
|
+
}
|
|
1061
|
+
if (message.observedAt !== undefined) {
|
|
1062
|
+
obj.observedAt = message.observedAt.toISOString();
|
|
1063
|
+
}
|
|
1064
|
+
return obj;
|
|
1065
|
+
},
|
|
1066
|
+
create(base) {
|
|
1067
|
+
return exports.ChecklistHandover_Reading.fromPartial(base ?? {});
|
|
1068
|
+
},
|
|
1069
|
+
fromPartial(object) {
|
|
1070
|
+
const message = createBaseChecklistHandover_Reading();
|
|
1071
|
+
message.availability = object.availability ?? 0;
|
|
1072
|
+
message.scalar = object.scalar ?? undefined;
|
|
1073
|
+
message.coordinate = (object.coordinate !== undefined && object.coordinate !== null)
|
|
1074
|
+
? Coordinate_1.Coordinate.fromPartial(object.coordinate)
|
|
1075
|
+
: undefined;
|
|
1076
|
+
message.sourceName = object.sourceName ?? "";
|
|
1077
|
+
message.observedAt = object.observedAt ?? undefined;
|
|
1078
|
+
return message;
|
|
1079
|
+
},
|
|
1080
|
+
};
|
|
1081
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ChecklistHandover_Reading.$type, exports.ChecklistHandover_Reading);
|
|
1082
|
+
function createBaseChecklistHandover_VesselStatus() {
|
|
1083
|
+
return {
|
|
1084
|
+
$type: "keelson.ChecklistHandover.VesselStatus",
|
|
1085
|
+
platformName: "",
|
|
1086
|
+
condition: "",
|
|
1087
|
+
speedOverGroundKnots: undefined,
|
|
1088
|
+
headingDeg: undefined,
|
|
1089
|
+
position: undefined,
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
exports.ChecklistHandover_VesselStatus = {
|
|
1093
|
+
$type: "keelson.ChecklistHandover.VesselStatus",
|
|
1094
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1095
|
+
if (message.platformName !== "") {
|
|
1096
|
+
writer.uint32(10).string(message.platformName);
|
|
1097
|
+
}
|
|
1098
|
+
if (message.condition !== "") {
|
|
1099
|
+
writer.uint32(18).string(message.condition);
|
|
1100
|
+
}
|
|
1101
|
+
if (message.speedOverGroundKnots !== undefined) {
|
|
1102
|
+
exports.ChecklistHandover_Reading.encode(message.speedOverGroundKnots, writer.uint32(26).fork()).join();
|
|
1103
|
+
}
|
|
1104
|
+
if (message.headingDeg !== undefined) {
|
|
1105
|
+
exports.ChecklistHandover_Reading.encode(message.headingDeg, writer.uint32(34).fork()).join();
|
|
1106
|
+
}
|
|
1107
|
+
if (message.position !== undefined) {
|
|
1108
|
+
exports.ChecklistHandover_Reading.encode(message.position, writer.uint32(42).fork()).join();
|
|
1109
|
+
}
|
|
1110
|
+
return writer;
|
|
1111
|
+
},
|
|
1112
|
+
decode(input, length) {
|
|
1113
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1114
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1115
|
+
const message = createBaseChecklistHandover_VesselStatus();
|
|
1116
|
+
while (reader.pos < end) {
|
|
1117
|
+
const tag = reader.uint32();
|
|
1118
|
+
switch (tag >>> 3) {
|
|
1119
|
+
case 1: {
|
|
1120
|
+
if (tag !== 10) {
|
|
1121
|
+
break;
|
|
1122
|
+
}
|
|
1123
|
+
message.platformName = reader.string();
|
|
1124
|
+
continue;
|
|
1125
|
+
}
|
|
1126
|
+
case 2: {
|
|
1127
|
+
if (tag !== 18) {
|
|
1128
|
+
break;
|
|
1129
|
+
}
|
|
1130
|
+
message.condition = reader.string();
|
|
1131
|
+
continue;
|
|
1132
|
+
}
|
|
1133
|
+
case 3: {
|
|
1134
|
+
if (tag !== 26) {
|
|
1135
|
+
break;
|
|
1136
|
+
}
|
|
1137
|
+
message.speedOverGroundKnots = exports.ChecklistHandover_Reading.decode(reader, reader.uint32());
|
|
1138
|
+
continue;
|
|
1139
|
+
}
|
|
1140
|
+
case 4: {
|
|
1141
|
+
if (tag !== 34) {
|
|
1142
|
+
break;
|
|
1143
|
+
}
|
|
1144
|
+
message.headingDeg = exports.ChecklistHandover_Reading.decode(reader, reader.uint32());
|
|
1145
|
+
continue;
|
|
1146
|
+
}
|
|
1147
|
+
case 5: {
|
|
1148
|
+
if (tag !== 42) {
|
|
1149
|
+
break;
|
|
1150
|
+
}
|
|
1151
|
+
message.position = exports.ChecklistHandover_Reading.decode(reader, reader.uint32());
|
|
1152
|
+
continue;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1156
|
+
break;
|
|
1157
|
+
}
|
|
1158
|
+
reader.skip(tag & 7);
|
|
1159
|
+
}
|
|
1160
|
+
return message;
|
|
1161
|
+
},
|
|
1162
|
+
fromJSON(object) {
|
|
1163
|
+
return {
|
|
1164
|
+
$type: exports.ChecklistHandover_VesselStatus.$type,
|
|
1165
|
+
platformName: isSet(object.platformName) ? globalThis.String(object.platformName) : "",
|
|
1166
|
+
condition: isSet(object.condition) ? globalThis.String(object.condition) : "",
|
|
1167
|
+
speedOverGroundKnots: isSet(object.speedOverGroundKnots)
|
|
1168
|
+
? exports.ChecklistHandover_Reading.fromJSON(object.speedOverGroundKnots)
|
|
1169
|
+
: undefined,
|
|
1170
|
+
headingDeg: isSet(object.headingDeg) ? exports.ChecklistHandover_Reading.fromJSON(object.headingDeg) : undefined,
|
|
1171
|
+
position: isSet(object.position) ? exports.ChecklistHandover_Reading.fromJSON(object.position) : undefined,
|
|
1172
|
+
};
|
|
1173
|
+
},
|
|
1174
|
+
toJSON(message) {
|
|
1175
|
+
const obj = {};
|
|
1176
|
+
if (message.platformName !== "") {
|
|
1177
|
+
obj.platformName = message.platformName;
|
|
1178
|
+
}
|
|
1179
|
+
if (message.condition !== "") {
|
|
1180
|
+
obj.condition = message.condition;
|
|
1181
|
+
}
|
|
1182
|
+
if (message.speedOverGroundKnots !== undefined) {
|
|
1183
|
+
obj.speedOverGroundKnots = exports.ChecklistHandover_Reading.toJSON(message.speedOverGroundKnots);
|
|
1184
|
+
}
|
|
1185
|
+
if (message.headingDeg !== undefined) {
|
|
1186
|
+
obj.headingDeg = exports.ChecklistHandover_Reading.toJSON(message.headingDeg);
|
|
1187
|
+
}
|
|
1188
|
+
if (message.position !== undefined) {
|
|
1189
|
+
obj.position = exports.ChecklistHandover_Reading.toJSON(message.position);
|
|
1190
|
+
}
|
|
1191
|
+
return obj;
|
|
1192
|
+
},
|
|
1193
|
+
create(base) {
|
|
1194
|
+
return exports.ChecklistHandover_VesselStatus.fromPartial(base ?? {});
|
|
1195
|
+
},
|
|
1196
|
+
fromPartial(object) {
|
|
1197
|
+
const message = createBaseChecklistHandover_VesselStatus();
|
|
1198
|
+
message.platformName = object.platformName ?? "";
|
|
1199
|
+
message.condition = object.condition ?? "";
|
|
1200
|
+
message.speedOverGroundKnots = (object.speedOverGroundKnots !== undefined && object.speedOverGroundKnots !== null)
|
|
1201
|
+
? exports.ChecklistHandover_Reading.fromPartial(object.speedOverGroundKnots)
|
|
1202
|
+
: undefined;
|
|
1203
|
+
message.headingDeg = (object.headingDeg !== undefined && object.headingDeg !== null)
|
|
1204
|
+
? exports.ChecklistHandover_Reading.fromPartial(object.headingDeg)
|
|
1205
|
+
: undefined;
|
|
1206
|
+
message.position = (object.position !== undefined && object.position !== null)
|
|
1207
|
+
? exports.ChecklistHandover_Reading.fromPartial(object.position)
|
|
1208
|
+
: undefined;
|
|
1209
|
+
return message;
|
|
1210
|
+
},
|
|
1211
|
+
};
|
|
1212
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ChecklistHandover_VesselStatus.$type, exports.ChecklistHandover_VesselStatus);
|
|
1213
|
+
function createBaseChecklistHandover_OpenItem() {
|
|
1214
|
+
return {
|
|
1215
|
+
$type: "keelson.ChecklistHandover.OpenItem",
|
|
1216
|
+
runId: "",
|
|
1217
|
+
itemId: "",
|
|
1218
|
+
title: "",
|
|
1219
|
+
procedureTitle: "",
|
|
1220
|
+
isRequired: undefined,
|
|
1221
|
+
status: 0,
|
|
1222
|
+
};
|
|
1223
|
+
}
|
|
1224
|
+
exports.ChecklistHandover_OpenItem = {
|
|
1225
|
+
$type: "keelson.ChecklistHandover.OpenItem",
|
|
1226
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1227
|
+
if (message.runId !== "") {
|
|
1228
|
+
writer.uint32(10).string(message.runId);
|
|
1229
|
+
}
|
|
1230
|
+
if (message.itemId !== "") {
|
|
1231
|
+
writer.uint32(18).string(message.itemId);
|
|
1232
|
+
}
|
|
1233
|
+
if (message.title !== "") {
|
|
1234
|
+
writer.uint32(26).string(message.title);
|
|
1235
|
+
}
|
|
1236
|
+
if (message.procedureTitle !== "") {
|
|
1237
|
+
writer.uint32(34).string(message.procedureTitle);
|
|
1238
|
+
}
|
|
1239
|
+
if (message.isRequired !== undefined) {
|
|
1240
|
+
writer.uint32(40).bool(message.isRequired);
|
|
1241
|
+
}
|
|
1242
|
+
if (message.status !== 0) {
|
|
1243
|
+
writer.uint32(48).int32(message.status);
|
|
1244
|
+
}
|
|
1245
|
+
return writer;
|
|
1246
|
+
},
|
|
1247
|
+
decode(input, length) {
|
|
1248
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1249
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1250
|
+
const message = createBaseChecklistHandover_OpenItem();
|
|
1251
|
+
while (reader.pos < end) {
|
|
1252
|
+
const tag = reader.uint32();
|
|
1253
|
+
switch (tag >>> 3) {
|
|
1254
|
+
case 1: {
|
|
1255
|
+
if (tag !== 10) {
|
|
1256
|
+
break;
|
|
1257
|
+
}
|
|
1258
|
+
message.runId = reader.string();
|
|
1259
|
+
continue;
|
|
1260
|
+
}
|
|
1261
|
+
case 2: {
|
|
1262
|
+
if (tag !== 18) {
|
|
1263
|
+
break;
|
|
1264
|
+
}
|
|
1265
|
+
message.itemId = reader.string();
|
|
1266
|
+
continue;
|
|
1267
|
+
}
|
|
1268
|
+
case 3: {
|
|
1269
|
+
if (tag !== 26) {
|
|
1270
|
+
break;
|
|
1271
|
+
}
|
|
1272
|
+
message.title = reader.string();
|
|
1273
|
+
continue;
|
|
1274
|
+
}
|
|
1275
|
+
case 4: {
|
|
1276
|
+
if (tag !== 34) {
|
|
1277
|
+
break;
|
|
1278
|
+
}
|
|
1279
|
+
message.procedureTitle = reader.string();
|
|
1280
|
+
continue;
|
|
1281
|
+
}
|
|
1282
|
+
case 5: {
|
|
1283
|
+
if (tag !== 40) {
|
|
1284
|
+
break;
|
|
1285
|
+
}
|
|
1286
|
+
message.isRequired = reader.bool();
|
|
1287
|
+
continue;
|
|
1288
|
+
}
|
|
1289
|
+
case 6: {
|
|
1290
|
+
if (tag !== 48) {
|
|
1291
|
+
break;
|
|
1292
|
+
}
|
|
1293
|
+
message.status = reader.int32();
|
|
1294
|
+
continue;
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1298
|
+
break;
|
|
1299
|
+
}
|
|
1300
|
+
reader.skip(tag & 7);
|
|
1301
|
+
}
|
|
1302
|
+
return message;
|
|
1303
|
+
},
|
|
1304
|
+
fromJSON(object) {
|
|
1305
|
+
return {
|
|
1306
|
+
$type: exports.ChecklistHandover_OpenItem.$type,
|
|
1307
|
+
runId: isSet(object.runId) ? globalThis.String(object.runId) : "",
|
|
1308
|
+
itemId: isSet(object.itemId) ? globalThis.String(object.itemId) : "",
|
|
1309
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
1310
|
+
procedureTitle: isSet(object.procedureTitle) ? globalThis.String(object.procedureTitle) : "",
|
|
1311
|
+
isRequired: isSet(object.isRequired) ? globalThis.Boolean(object.isRequired) : undefined,
|
|
1312
|
+
status: isSet(object.status) ? (0, ChecklistState_1.checklistState_ItemState_ItemStatusFromJSON)(object.status) : 0,
|
|
1313
|
+
};
|
|
1314
|
+
},
|
|
1315
|
+
toJSON(message) {
|
|
1316
|
+
const obj = {};
|
|
1317
|
+
if (message.runId !== "") {
|
|
1318
|
+
obj.runId = message.runId;
|
|
1319
|
+
}
|
|
1320
|
+
if (message.itemId !== "") {
|
|
1321
|
+
obj.itemId = message.itemId;
|
|
1322
|
+
}
|
|
1323
|
+
if (message.title !== "") {
|
|
1324
|
+
obj.title = message.title;
|
|
1325
|
+
}
|
|
1326
|
+
if (message.procedureTitle !== "") {
|
|
1327
|
+
obj.procedureTitle = message.procedureTitle;
|
|
1328
|
+
}
|
|
1329
|
+
if (message.isRequired !== undefined) {
|
|
1330
|
+
obj.isRequired = message.isRequired;
|
|
1331
|
+
}
|
|
1332
|
+
if (message.status !== 0) {
|
|
1333
|
+
obj.status = (0, ChecklistState_1.checklistState_ItemState_ItemStatusToJSON)(message.status);
|
|
1334
|
+
}
|
|
1335
|
+
return obj;
|
|
1336
|
+
},
|
|
1337
|
+
create(base) {
|
|
1338
|
+
return exports.ChecklistHandover_OpenItem.fromPartial(base ?? {});
|
|
1339
|
+
},
|
|
1340
|
+
fromPartial(object) {
|
|
1341
|
+
const message = createBaseChecklistHandover_OpenItem();
|
|
1342
|
+
message.runId = object.runId ?? "";
|
|
1343
|
+
message.itemId = object.itemId ?? "";
|
|
1344
|
+
message.title = object.title ?? "";
|
|
1345
|
+
message.procedureTitle = object.procedureTitle ?? "";
|
|
1346
|
+
message.isRequired = object.isRequired ?? undefined;
|
|
1347
|
+
message.status = object.status ?? 0;
|
|
1348
|
+
return message;
|
|
1349
|
+
},
|
|
1350
|
+
};
|
|
1351
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ChecklistHandover_OpenItem.$type, exports.ChecklistHandover_OpenItem);
|
|
1352
|
+
function createBaseChecklistHandover_ActiveRisk() {
|
|
1353
|
+
return {
|
|
1354
|
+
$type: "keelson.ChecklistHandover.ActiveRisk",
|
|
1355
|
+
kind: 0,
|
|
1356
|
+
title: "",
|
|
1357
|
+
detail: "",
|
|
1358
|
+
raisedAt: undefined,
|
|
1359
|
+
raisedBy: "",
|
|
1360
|
+
rocSite: "",
|
|
1361
|
+
runId: "",
|
|
1362
|
+
itemId: "",
|
|
1363
|
+
alertId: "",
|
|
1364
|
+
severity: 0,
|
|
1365
|
+
};
|
|
1366
|
+
}
|
|
1367
|
+
exports.ChecklistHandover_ActiveRisk = {
|
|
1368
|
+
$type: "keelson.ChecklistHandover.ActiveRisk",
|
|
1369
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1370
|
+
if (message.kind !== 0) {
|
|
1371
|
+
writer.uint32(8).int32(message.kind);
|
|
1372
|
+
}
|
|
1373
|
+
if (message.title !== "") {
|
|
1374
|
+
writer.uint32(18).string(message.title);
|
|
1375
|
+
}
|
|
1376
|
+
if (message.detail !== "") {
|
|
1377
|
+
writer.uint32(26).string(message.detail);
|
|
1378
|
+
}
|
|
1379
|
+
if (message.raisedAt !== undefined) {
|
|
1380
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.raisedAt), writer.uint32(34).fork()).join();
|
|
1381
|
+
}
|
|
1382
|
+
if (message.raisedBy !== "") {
|
|
1383
|
+
writer.uint32(42).string(message.raisedBy);
|
|
1384
|
+
}
|
|
1385
|
+
if (message.rocSite !== "") {
|
|
1386
|
+
writer.uint32(50).string(message.rocSite);
|
|
1387
|
+
}
|
|
1388
|
+
if (message.runId !== "") {
|
|
1389
|
+
writer.uint32(58).string(message.runId);
|
|
1390
|
+
}
|
|
1391
|
+
if (message.itemId !== "") {
|
|
1392
|
+
writer.uint32(66).string(message.itemId);
|
|
1393
|
+
}
|
|
1394
|
+
if (message.alertId !== "") {
|
|
1395
|
+
writer.uint32(74).string(message.alertId);
|
|
1396
|
+
}
|
|
1397
|
+
if (message.severity !== 0) {
|
|
1398
|
+
writer.uint32(80).int32(message.severity);
|
|
1399
|
+
}
|
|
1400
|
+
return writer;
|
|
1401
|
+
},
|
|
1402
|
+
decode(input, length) {
|
|
1403
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1404
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1405
|
+
const message = createBaseChecklistHandover_ActiveRisk();
|
|
1406
|
+
while (reader.pos < end) {
|
|
1407
|
+
const tag = reader.uint32();
|
|
1408
|
+
switch (tag >>> 3) {
|
|
1409
|
+
case 1: {
|
|
1410
|
+
if (tag !== 8) {
|
|
1411
|
+
break;
|
|
1412
|
+
}
|
|
1413
|
+
message.kind = reader.int32();
|
|
1414
|
+
continue;
|
|
1415
|
+
}
|
|
1416
|
+
case 2: {
|
|
1417
|
+
if (tag !== 18) {
|
|
1418
|
+
break;
|
|
1419
|
+
}
|
|
1420
|
+
message.title = reader.string();
|
|
1421
|
+
continue;
|
|
1422
|
+
}
|
|
1423
|
+
case 3: {
|
|
1424
|
+
if (tag !== 26) {
|
|
1425
|
+
break;
|
|
1426
|
+
}
|
|
1427
|
+
message.detail = reader.string();
|
|
1428
|
+
continue;
|
|
1429
|
+
}
|
|
1430
|
+
case 4: {
|
|
1431
|
+
if (tag !== 34) {
|
|
1432
|
+
break;
|
|
1433
|
+
}
|
|
1434
|
+
message.raisedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1435
|
+
continue;
|
|
1436
|
+
}
|
|
1437
|
+
case 5: {
|
|
1438
|
+
if (tag !== 42) {
|
|
1439
|
+
break;
|
|
1440
|
+
}
|
|
1441
|
+
message.raisedBy = reader.string();
|
|
1442
|
+
continue;
|
|
1443
|
+
}
|
|
1444
|
+
case 6: {
|
|
1445
|
+
if (tag !== 50) {
|
|
1446
|
+
break;
|
|
1447
|
+
}
|
|
1448
|
+
message.rocSite = reader.string();
|
|
1449
|
+
continue;
|
|
1450
|
+
}
|
|
1451
|
+
case 7: {
|
|
1452
|
+
if (tag !== 58) {
|
|
1453
|
+
break;
|
|
1454
|
+
}
|
|
1455
|
+
message.runId = reader.string();
|
|
1456
|
+
continue;
|
|
1457
|
+
}
|
|
1458
|
+
case 8: {
|
|
1459
|
+
if (tag !== 66) {
|
|
1460
|
+
break;
|
|
1461
|
+
}
|
|
1462
|
+
message.itemId = reader.string();
|
|
1463
|
+
continue;
|
|
1464
|
+
}
|
|
1465
|
+
case 9: {
|
|
1466
|
+
if (tag !== 74) {
|
|
1467
|
+
break;
|
|
1468
|
+
}
|
|
1469
|
+
message.alertId = reader.string();
|
|
1470
|
+
continue;
|
|
1471
|
+
}
|
|
1472
|
+
case 10: {
|
|
1473
|
+
if (tag !== 80) {
|
|
1474
|
+
break;
|
|
1475
|
+
}
|
|
1476
|
+
message.severity = reader.int32();
|
|
1477
|
+
continue;
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1481
|
+
break;
|
|
1482
|
+
}
|
|
1483
|
+
reader.skip(tag & 7);
|
|
1484
|
+
}
|
|
1485
|
+
return message;
|
|
1486
|
+
},
|
|
1487
|
+
fromJSON(object) {
|
|
1488
|
+
return {
|
|
1489
|
+
$type: exports.ChecklistHandover_ActiveRisk.$type,
|
|
1490
|
+
kind: isSet(object.kind) ? checklistHandover_ActiveRisk_RiskKindFromJSON(object.kind) : 0,
|
|
1491
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
1492
|
+
detail: isSet(object.detail) ? globalThis.String(object.detail) : "",
|
|
1493
|
+
raisedAt: isSet(object.raisedAt) ? fromJsonTimestamp(object.raisedAt) : undefined,
|
|
1494
|
+
raisedBy: isSet(object.raisedBy) ? globalThis.String(object.raisedBy) : "",
|
|
1495
|
+
rocSite: isSet(object.rocSite) ? globalThis.String(object.rocSite) : "",
|
|
1496
|
+
runId: isSet(object.runId) ? globalThis.String(object.runId) : "",
|
|
1497
|
+
itemId: isSet(object.itemId) ? globalThis.String(object.itemId) : "",
|
|
1498
|
+
alertId: isSet(object.alertId) ? globalThis.String(object.alertId) : "",
|
|
1499
|
+
severity: isSet(object.severity) ? (0, Severity_1.severityLevelFromJSON)(object.severity) : 0,
|
|
1500
|
+
};
|
|
1501
|
+
},
|
|
1502
|
+
toJSON(message) {
|
|
1503
|
+
const obj = {};
|
|
1504
|
+
if (message.kind !== 0) {
|
|
1505
|
+
obj.kind = checklistHandover_ActiveRisk_RiskKindToJSON(message.kind);
|
|
1506
|
+
}
|
|
1507
|
+
if (message.title !== "") {
|
|
1508
|
+
obj.title = message.title;
|
|
1509
|
+
}
|
|
1510
|
+
if (message.detail !== "") {
|
|
1511
|
+
obj.detail = message.detail;
|
|
1512
|
+
}
|
|
1513
|
+
if (message.raisedAt !== undefined) {
|
|
1514
|
+
obj.raisedAt = message.raisedAt.toISOString();
|
|
1515
|
+
}
|
|
1516
|
+
if (message.raisedBy !== "") {
|
|
1517
|
+
obj.raisedBy = message.raisedBy;
|
|
1518
|
+
}
|
|
1519
|
+
if (message.rocSite !== "") {
|
|
1520
|
+
obj.rocSite = message.rocSite;
|
|
1521
|
+
}
|
|
1522
|
+
if (message.runId !== "") {
|
|
1523
|
+
obj.runId = message.runId;
|
|
1524
|
+
}
|
|
1525
|
+
if (message.itemId !== "") {
|
|
1526
|
+
obj.itemId = message.itemId;
|
|
1527
|
+
}
|
|
1528
|
+
if (message.alertId !== "") {
|
|
1529
|
+
obj.alertId = message.alertId;
|
|
1530
|
+
}
|
|
1531
|
+
if (message.severity !== 0) {
|
|
1532
|
+
obj.severity = (0, Severity_1.severityLevelToJSON)(message.severity);
|
|
1533
|
+
}
|
|
1534
|
+
return obj;
|
|
1535
|
+
},
|
|
1536
|
+
create(base) {
|
|
1537
|
+
return exports.ChecklistHandover_ActiveRisk.fromPartial(base ?? {});
|
|
1538
|
+
},
|
|
1539
|
+
fromPartial(object) {
|
|
1540
|
+
const message = createBaseChecklistHandover_ActiveRisk();
|
|
1541
|
+
message.kind = object.kind ?? 0;
|
|
1542
|
+
message.title = object.title ?? "";
|
|
1543
|
+
message.detail = object.detail ?? "";
|
|
1544
|
+
message.raisedAt = object.raisedAt ?? undefined;
|
|
1545
|
+
message.raisedBy = object.raisedBy ?? "";
|
|
1546
|
+
message.rocSite = object.rocSite ?? "";
|
|
1547
|
+
message.runId = object.runId ?? "";
|
|
1548
|
+
message.itemId = object.itemId ?? "";
|
|
1549
|
+
message.alertId = object.alertId ?? "";
|
|
1550
|
+
message.severity = object.severity ?? 0;
|
|
1551
|
+
return message;
|
|
1552
|
+
},
|
|
1553
|
+
};
|
|
1554
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ChecklistHandover_ActiveRisk.$type, exports.ChecklistHandover_ActiveRisk);
|
|
1555
|
+
function createBaseChecklistHandover_VesselVerdict() {
|
|
1556
|
+
return {
|
|
1557
|
+
$type: "keelson.ChecklistHandover.VesselVerdict",
|
|
1558
|
+
gate: 0,
|
|
1559
|
+
level: 0,
|
|
1560
|
+
minLevel: undefined,
|
|
1561
|
+
constraints: [],
|
|
1562
|
+
policyId: undefined,
|
|
1563
|
+
ageSeconds: undefined,
|
|
1564
|
+
reason: "",
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
exports.ChecklistHandover_VesselVerdict = {
|
|
1568
|
+
$type: "keelson.ChecklistHandover.VesselVerdict",
|
|
1569
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1570
|
+
if (message.gate !== 0) {
|
|
1571
|
+
writer.uint32(8).int32(message.gate);
|
|
1572
|
+
}
|
|
1573
|
+
if (message.level !== 0) {
|
|
1574
|
+
writer.uint32(16).int32(message.level);
|
|
1575
|
+
}
|
|
1576
|
+
if (message.minLevel !== undefined) {
|
|
1577
|
+
writer.uint32(24).int32(message.minLevel);
|
|
1578
|
+
}
|
|
1579
|
+
for (const v of message.constraints) {
|
|
1580
|
+
OperationalAuthority_1.OperationalAuthority_AuthorityConstraint.encode(v, writer.uint32(34).fork()).join();
|
|
1581
|
+
}
|
|
1582
|
+
if (message.policyId !== undefined) {
|
|
1583
|
+
writer.uint32(42).string(message.policyId);
|
|
1584
|
+
}
|
|
1585
|
+
if (message.ageSeconds !== undefined) {
|
|
1586
|
+
writer.uint32(49).double(message.ageSeconds);
|
|
1587
|
+
}
|
|
1588
|
+
if (message.reason !== "") {
|
|
1589
|
+
writer.uint32(58).string(message.reason);
|
|
1590
|
+
}
|
|
1591
|
+
return writer;
|
|
1592
|
+
},
|
|
1593
|
+
decode(input, length) {
|
|
1594
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1595
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1596
|
+
const message = createBaseChecklistHandover_VesselVerdict();
|
|
1597
|
+
while (reader.pos < end) {
|
|
1598
|
+
const tag = reader.uint32();
|
|
1599
|
+
switch (tag >>> 3) {
|
|
1600
|
+
case 1: {
|
|
1601
|
+
if (tag !== 8) {
|
|
1602
|
+
break;
|
|
1603
|
+
}
|
|
1604
|
+
message.gate = reader.int32();
|
|
1605
|
+
continue;
|
|
1606
|
+
}
|
|
1607
|
+
case 2: {
|
|
1608
|
+
if (tag !== 16) {
|
|
1609
|
+
break;
|
|
1610
|
+
}
|
|
1611
|
+
message.level = reader.int32();
|
|
1612
|
+
continue;
|
|
1613
|
+
}
|
|
1614
|
+
case 3: {
|
|
1615
|
+
if (tag !== 24) {
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
message.minLevel = reader.int32();
|
|
1619
|
+
continue;
|
|
1620
|
+
}
|
|
1621
|
+
case 4: {
|
|
1622
|
+
if (tag !== 34) {
|
|
1623
|
+
break;
|
|
1624
|
+
}
|
|
1625
|
+
message.constraints.push(OperationalAuthority_1.OperationalAuthority_AuthorityConstraint.decode(reader, reader.uint32()));
|
|
1626
|
+
continue;
|
|
1627
|
+
}
|
|
1628
|
+
case 5: {
|
|
1629
|
+
if (tag !== 42) {
|
|
1630
|
+
break;
|
|
1631
|
+
}
|
|
1632
|
+
message.policyId = reader.string();
|
|
1633
|
+
continue;
|
|
1634
|
+
}
|
|
1635
|
+
case 6: {
|
|
1636
|
+
if (tag !== 49) {
|
|
1637
|
+
break;
|
|
1638
|
+
}
|
|
1639
|
+
message.ageSeconds = reader.double();
|
|
1640
|
+
continue;
|
|
1641
|
+
}
|
|
1642
|
+
case 7: {
|
|
1643
|
+
if (tag !== 58) {
|
|
1644
|
+
break;
|
|
1645
|
+
}
|
|
1646
|
+
message.reason = reader.string();
|
|
1647
|
+
continue;
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1651
|
+
break;
|
|
1652
|
+
}
|
|
1653
|
+
reader.skip(tag & 7);
|
|
1654
|
+
}
|
|
1655
|
+
return message;
|
|
1656
|
+
},
|
|
1657
|
+
fromJSON(object) {
|
|
1658
|
+
return {
|
|
1659
|
+
$type: exports.ChecklistHandover_VesselVerdict.$type,
|
|
1660
|
+
gate: isSet(object.gate) ? checklistHandover_VesselVerdict_GateFromJSON(object.gate) : 0,
|
|
1661
|
+
level: isSet(object.level) ? (0, OperationalAuthority_1.operationalAuthority_AuthorityLevelFromJSON)(object.level) : 0,
|
|
1662
|
+
minLevel: isSet(object.minLevel) ? (0, OperationalAuthority_1.operationalAuthority_AuthorityLevelFromJSON)(object.minLevel) : undefined,
|
|
1663
|
+
constraints: globalThis.Array.isArray(object?.constraints)
|
|
1664
|
+
? object.constraints.map((e) => OperationalAuthority_1.OperationalAuthority_AuthorityConstraint.fromJSON(e))
|
|
1665
|
+
: [],
|
|
1666
|
+
policyId: isSet(object.policyId) ? globalThis.String(object.policyId) : undefined,
|
|
1667
|
+
ageSeconds: isSet(object.ageSeconds) ? globalThis.Number(object.ageSeconds) : undefined,
|
|
1668
|
+
reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
|
|
1669
|
+
};
|
|
1670
|
+
},
|
|
1671
|
+
toJSON(message) {
|
|
1672
|
+
const obj = {};
|
|
1673
|
+
if (message.gate !== 0) {
|
|
1674
|
+
obj.gate = checklistHandover_VesselVerdict_GateToJSON(message.gate);
|
|
1675
|
+
}
|
|
1676
|
+
if (message.level !== 0) {
|
|
1677
|
+
obj.level = (0, OperationalAuthority_1.operationalAuthority_AuthorityLevelToJSON)(message.level);
|
|
1678
|
+
}
|
|
1679
|
+
if (message.minLevel !== undefined) {
|
|
1680
|
+
obj.minLevel = (0, OperationalAuthority_1.operationalAuthority_AuthorityLevelToJSON)(message.minLevel);
|
|
1681
|
+
}
|
|
1682
|
+
if (message.constraints?.length) {
|
|
1683
|
+
obj.constraints = message.constraints.map((e) => OperationalAuthority_1.OperationalAuthority_AuthorityConstraint.toJSON(e));
|
|
1684
|
+
}
|
|
1685
|
+
if (message.policyId !== undefined) {
|
|
1686
|
+
obj.policyId = message.policyId;
|
|
1687
|
+
}
|
|
1688
|
+
if (message.ageSeconds !== undefined) {
|
|
1689
|
+
obj.ageSeconds = message.ageSeconds;
|
|
1690
|
+
}
|
|
1691
|
+
if (message.reason !== "") {
|
|
1692
|
+
obj.reason = message.reason;
|
|
1693
|
+
}
|
|
1694
|
+
return obj;
|
|
1695
|
+
},
|
|
1696
|
+
create(base) {
|
|
1697
|
+
return exports.ChecklistHandover_VesselVerdict.fromPartial(base ?? {});
|
|
1698
|
+
},
|
|
1699
|
+
fromPartial(object) {
|
|
1700
|
+
const message = createBaseChecklistHandover_VesselVerdict();
|
|
1701
|
+
message.gate = object.gate ?? 0;
|
|
1702
|
+
message.level = object.level ?? 0;
|
|
1703
|
+
message.minLevel = object.minLevel ?? undefined;
|
|
1704
|
+
message.constraints = object.constraints?.map((e) => OperationalAuthority_1.OperationalAuthority_AuthorityConstraint.fromPartial(e)) || [];
|
|
1705
|
+
message.policyId = object.policyId ?? undefined;
|
|
1706
|
+
message.ageSeconds = object.ageSeconds ?? undefined;
|
|
1707
|
+
message.reason = object.reason ?? "";
|
|
1708
|
+
return message;
|
|
1709
|
+
},
|
|
1710
|
+
};
|
|
1711
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ChecklistHandover_VesselVerdict.$type, exports.ChecklistHandover_VesselVerdict);
|
|
1712
|
+
function toTimestamp(date) {
|
|
1713
|
+
const seconds = Math.trunc(date.getTime() / 1000);
|
|
1714
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
1715
|
+
return { $type: "google.protobuf.Timestamp", seconds, nanos };
|
|
1716
|
+
}
|
|
1717
|
+
function fromTimestamp(t) {
|
|
1718
|
+
let millis = (t.seconds || 0) * 1000;
|
|
1719
|
+
millis += (t.nanos || 0) / 1000000;
|
|
1720
|
+
return new globalThis.Date(millis);
|
|
1721
|
+
}
|
|
1722
|
+
function fromJsonTimestamp(o) {
|
|
1723
|
+
if (o instanceof globalThis.Date) {
|
|
1724
|
+
return o;
|
|
1725
|
+
}
|
|
1726
|
+
else if (typeof o === "string") {
|
|
1727
|
+
return new globalThis.Date(o);
|
|
1728
|
+
}
|
|
1729
|
+
else {
|
|
1730
|
+
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
function isSet(value) {
|
|
1734
|
+
return value !== null && value !== undefined;
|
|
1735
|
+
}
|