@rise-maritime/keelson-js 0.5.3 → 0.6.0-alpha.202.dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +524 -1
- package/dist/index.js +114 -5
- package/dist/index.test.js +57 -0
- package/dist/interfaces/AlarmAck.d.ts +62 -0
- package/dist/interfaces/AlarmAck.js +218 -0
- package/dist/interfaces/Configurable.d.ts +24 -18
- package/dist/interfaces/Configurable.js +24 -22
- package/dist/interfaces/Coordinate.d.ts +38 -0
- package/dist/interfaces/Coordinate.js +82 -0
- package/dist/interfaces/ErrorResponse.d.ts +1 -1
- package/dist/interfaces/ErrorResponse.js +1 -1
- package/dist/interfaces/MavlinkCommand.d.ts +24 -18
- package/dist/interfaces/MavlinkCommand.js +24 -22
- package/dist/interfaces/Mission.d.ts +128 -0
- package/dist/interfaces/Mission.js +800 -0
- package/dist/interfaces/NetworkPingPong.d.ts +16 -16
- package/dist/interfaces/NetworkPingPong.js +16 -16
- package/dist/interfaces/ReplayControl.d.ts +72 -30
- package/dist/interfaces/ReplayControl.js +72 -58
- package/dist/interfaces/Route.d.ts +640 -0
- package/dist/interfaces/Route.js +4180 -0
- package/dist/interfaces/RoutePlanner.d.ts +152 -0
- package/dist/interfaces/RoutePlanner.js +268 -0
- package/dist/interfaces/ScenarioCheckpoint.d.ts +154 -0
- package/dist/interfaces/ScenarioCheckpoint.js +694 -0
- package/dist/interfaces/ScenarioControl.d.ts +144 -0
- package/dist/interfaces/ScenarioControl.js +552 -0
- package/dist/interfaces/Severity.d.ts +22 -0
- package/dist/interfaces/Severity.js +72 -0
- package/dist/interfaces/SimulationControl.d.ts +69 -0
- package/dist/interfaces/SimulationControl.js +153 -0
- package/dist/interfaces/Subscriber.d.ts +24 -18
- package/dist/interfaces/Subscriber.js +24 -22
- package/dist/interfaces/VehicleCommon.d.ts +1 -32
- package/dist/interfaces/VehicleCommon.js +2 -74
- package/dist/interfaces/VehicleControl.d.ts +34 -28
- package/dist/interfaces/VehicleControl.js +34 -22
- package/dist/interfaces/VehicleGeofence.d.ts +26 -19
- package/dist/interfaces/VehicleGeofence.js +40 -37
- package/dist/interfaces/VehicleLifecycle.d.ts +32 -20
- package/dist/interfaces/VehicleLifecycle.js +32 -28
- package/dist/interfaces/VehicleMission.d.ts +42 -97
- package/dist/interfaces/VehicleMission.js +41 -696
- package/dist/interfaces/VehicleNavigation.d.ts +30 -24
- package/dist/interfaces/VehicleNavigation.js +30 -22
- package/dist/interfaces/VehicleParam.d.ts +48 -24
- package/dist/interfaces/VehicleParam.js +48 -40
- package/dist/interfaces/VehicleSimulatorControl.d.ts +57 -0
- package/dist/interfaces/VehicleSimulatorControl.js +155 -0
- package/dist/interfaces/WHEPProxy.d.ts +16 -16
- package/dist/interfaces/WHEPProxy.js +16 -16
- package/dist/interfaces/foxglove/GeoJSON.d.ts +27 -0
- package/dist/interfaces/foxglove/GeoJSON.js +65 -0
- package/dist/interfaces/foxglove/LocationFix.d.ts +49 -0
- package/dist/interfaces/foxglove/LocationFix.js +246 -0
- package/dist/interfaces/google/protobuf/any.d.ts +144 -0
- package/dist/interfaces/google/protobuf/any.js +107 -0
- package/dist/interfaces/google/protobuf/duration.d.ts +99 -0
- package/dist/interfaces/google/protobuf/duration.js +92 -0
- package/dist/interfaces/serviceRegistry.d.ts +520 -0
- package/dist/interfaces/serviceRegistry.js +40 -0
- package/dist/interfaces.json +19 -0
- package/dist/payloads/Alarm.d.ts +7 -12
- package/dist/payloads/Alarm.js +4 -54
- package/dist/payloads/ChecklistEvent.d.ts +152 -0
- package/dist/payloads/ChecklistEvent.js +524 -0
- package/dist/payloads/ChecklistEvidence.d.ts +79 -0
- package/dist/payloads/ChecklistEvidence.js +287 -0
- package/dist/payloads/ChecklistPresence.d.ts +68 -0
- package/dist/payloads/ChecklistPresence.js +286 -0
- package/dist/payloads/ChecklistProcedure.d.ts +81 -0
- package/dist/payloads/ChecklistProcedure.js +364 -0
- package/dist/payloads/ChecklistState.d.ts +178 -0
- package/dist/payloads/ChecklistState.js +838 -0
- package/dist/payloads/CommandAuthority.d.ts +82 -0
- package/dist/payloads/CommandAuthority.js +364 -0
- package/dist/payloads/Coordinate.d.ts +39 -0
- package/dist/payloads/Coordinate.js +85 -0
- package/dist/payloads/EntityHealth.d.ts +9 -0
- package/dist/payloads/EntityHealth.js +14 -0
- package/dist/payloads/Mission.d.ts +137 -0
- package/dist/payloads/Mission.js +826 -0
- package/dist/payloads/OperationalAuthority.d.ts +172 -5
- package/dist/payloads/OperationalAuthority.js +525 -6
- package/dist/payloads/Route.d.ts +662 -0
- package/dist/payloads/Route.js +4289 -0
- package/dist/payloads/RouteChangeEvent.d.ts +42 -0
- package/dist/payloads/RouteChangeEvent.js +223 -0
- package/dist/payloads/RouteEditAuthority.d.ts +87 -0
- package/dist/payloads/RouteEditAuthority.js +380 -0
- package/dist/payloads/RouteExecution.d.ts +64 -0
- package/dist/payloads/RouteExecution.js +310 -0
- package/dist/payloads/ScenarioStatus.d.ts +160 -0
- package/dist/payloads/ScenarioStatus.js +654 -0
- package/dist/payloads/Severity.d.ts +13 -6
- package/dist/payloads/Severity.js +30 -18
- package/dist/payloads/SimulationStatus.d.ts +3 -4
- package/dist/payloads/SimulationStatus.js +12 -18
- package/dist/payloads/TestObjectStatus.d.ts +154 -0
- package/dist/payloads/TestObjectStatus.js +580 -0
- package/dist/payloads/VesselType.d.ts +2 -1
- package/dist/payloads/VesselType.js +1 -1
- package/dist/payloads/Voyage.d.ts +154 -0
- package/dist/payloads/Voyage.js +866 -0
- package/dist/payloads/WarrantRecord.d.ts +168 -0
- package/dist/payloads/WarrantRecord.js +781 -0
- package/dist/payloads/foxglove/CompressedPointCloud.d.ts +37 -0
- package/dist/payloads/foxglove/CompressedPointCloud.js +185 -0
- package/dist/payloads/google/protobuf/any.d.ts +145 -0
- package/dist/payloads/google/protobuf/any.js +110 -0
- package/dist/payloads/google/protobuf/empty.d.ts +34 -0
- package/dist/payloads/google/protobuf/empty.js +50 -0
- package/dist/payloads/index.foxglove.d.ts +1 -0
- package/dist/payloads/index.foxglove.js +1 -0
- package/dist/payloads/index.google.protobuf.d.ts +2 -0
- package/dist/payloads/index.google.protobuf.js +2 -0
- package/dist/payloads/index.keelson.d.ts +17 -1
- package/dist/payloads/index.keelson.js +17 -1
- package/dist/qos.json +95 -0
- package/dist/subjects.json +38 -1
- package/package.json +2 -1
|
@@ -0,0 +1,781 @@
|
|
|
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: WarrantRecord.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.WarrantRecord_Snapshot = exports.WarrantRecord_ClaimState = exports.WarrantRecord_StandingTransition = exports.WarrantRecord_GroundStanding = exports.WarrantRecord_RebuttalFired = exports.WarrantRecord = exports.warrantRecord_StandingToJSON = exports.warrantRecord_StandingFromJSON = exports.WarrantRecord_Standing = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const timestamp_1 = require("./google/protobuf/timestamp");
|
|
12
|
+
const typeRegistry_1 = require("./typeRegistry");
|
|
13
|
+
/**
|
|
14
|
+
* The standing of a claim. Every claim starts WITHDRAWN: standing must
|
|
15
|
+
* be positively established, and absence of evidence counts against a
|
|
16
|
+
* claim, never for it.
|
|
17
|
+
*/
|
|
18
|
+
var WarrantRecord_Standing;
|
|
19
|
+
(function (WarrantRecord_Standing) {
|
|
20
|
+
WarrantRecord_Standing[WarrantRecord_Standing["STANDING_UNSPECIFIED"] = 0] = "STANDING_UNSPECIFIED";
|
|
21
|
+
WarrantRecord_Standing[WarrantRecord_Standing["STANDING_WITHDRAWN"] = 1] = "STANDING_WITHDRAWN";
|
|
22
|
+
WarrantRecord_Standing[WarrantRecord_Standing["STANDING_REDUCED"] = 2] = "STANDING_REDUCED";
|
|
23
|
+
WarrantRecord_Standing[WarrantRecord_Standing["STANDING_LICENSED"] = 3] = "STANDING_LICENSED";
|
|
24
|
+
WarrantRecord_Standing[WarrantRecord_Standing["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
25
|
+
})(WarrantRecord_Standing || (exports.WarrantRecord_Standing = WarrantRecord_Standing = {}));
|
|
26
|
+
function warrantRecord_StandingFromJSON(object) {
|
|
27
|
+
switch (object) {
|
|
28
|
+
case 0:
|
|
29
|
+
case "STANDING_UNSPECIFIED":
|
|
30
|
+
return WarrantRecord_Standing.STANDING_UNSPECIFIED;
|
|
31
|
+
case 1:
|
|
32
|
+
case "STANDING_WITHDRAWN":
|
|
33
|
+
return WarrantRecord_Standing.STANDING_WITHDRAWN;
|
|
34
|
+
case 2:
|
|
35
|
+
case "STANDING_REDUCED":
|
|
36
|
+
return WarrantRecord_Standing.STANDING_REDUCED;
|
|
37
|
+
case 3:
|
|
38
|
+
case "STANDING_LICENSED":
|
|
39
|
+
return WarrantRecord_Standing.STANDING_LICENSED;
|
|
40
|
+
case -1:
|
|
41
|
+
case "UNRECOGNIZED":
|
|
42
|
+
default:
|
|
43
|
+
return WarrantRecord_Standing.UNRECOGNIZED;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.warrantRecord_StandingFromJSON = warrantRecord_StandingFromJSON;
|
|
47
|
+
function warrantRecord_StandingToJSON(object) {
|
|
48
|
+
switch (object) {
|
|
49
|
+
case WarrantRecord_Standing.STANDING_UNSPECIFIED:
|
|
50
|
+
return "STANDING_UNSPECIFIED";
|
|
51
|
+
case WarrantRecord_Standing.STANDING_WITHDRAWN:
|
|
52
|
+
return "STANDING_WITHDRAWN";
|
|
53
|
+
case WarrantRecord_Standing.STANDING_REDUCED:
|
|
54
|
+
return "STANDING_REDUCED";
|
|
55
|
+
case WarrantRecord_Standing.STANDING_LICENSED:
|
|
56
|
+
return "STANDING_LICENSED";
|
|
57
|
+
case WarrantRecord_Standing.UNRECOGNIZED:
|
|
58
|
+
default:
|
|
59
|
+
return "UNRECOGNIZED";
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.warrantRecord_StandingToJSON = warrantRecord_StandingToJSON;
|
|
63
|
+
function createBaseWarrantRecord() {
|
|
64
|
+
return { $type: "keelson.WarrantRecord", timestamp: undefined, standingTransition: undefined, snapshot: undefined };
|
|
65
|
+
}
|
|
66
|
+
exports.WarrantRecord = {
|
|
67
|
+
$type: "keelson.WarrantRecord",
|
|
68
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
69
|
+
if (message.timestamp !== undefined) {
|
|
70
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
|
|
71
|
+
}
|
|
72
|
+
if (message.standingTransition !== undefined) {
|
|
73
|
+
exports.WarrantRecord_StandingTransition.encode(message.standingTransition, writer.uint32(18).fork()).join();
|
|
74
|
+
}
|
|
75
|
+
if (message.snapshot !== undefined) {
|
|
76
|
+
exports.WarrantRecord_Snapshot.encode(message.snapshot, writer.uint32(26).fork()).join();
|
|
77
|
+
}
|
|
78
|
+
return writer;
|
|
79
|
+
},
|
|
80
|
+
decode(input, length) {
|
|
81
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
82
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
83
|
+
const message = createBaseWarrantRecord();
|
|
84
|
+
while (reader.pos < end) {
|
|
85
|
+
const tag = reader.uint32();
|
|
86
|
+
switch (tag >>> 3) {
|
|
87
|
+
case 1: {
|
|
88
|
+
if (tag !== 10) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
case 2: {
|
|
95
|
+
if (tag !== 18) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
message.standingTransition = exports.WarrantRecord_StandingTransition.decode(reader, reader.uint32());
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
case 3: {
|
|
102
|
+
if (tag !== 26) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
message.snapshot = exports.WarrantRecord_Snapshot.decode(reader, reader.uint32());
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
reader.skip(tag & 7);
|
|
113
|
+
}
|
|
114
|
+
return message;
|
|
115
|
+
},
|
|
116
|
+
fromJSON(object) {
|
|
117
|
+
return {
|
|
118
|
+
$type: exports.WarrantRecord.$type,
|
|
119
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
120
|
+
standingTransition: isSet(object.standingTransition)
|
|
121
|
+
? exports.WarrantRecord_StandingTransition.fromJSON(object.standingTransition)
|
|
122
|
+
: undefined,
|
|
123
|
+
snapshot: isSet(object.snapshot) ? exports.WarrantRecord_Snapshot.fromJSON(object.snapshot) : undefined,
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
toJSON(message) {
|
|
127
|
+
const obj = {};
|
|
128
|
+
if (message.timestamp !== undefined) {
|
|
129
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
130
|
+
}
|
|
131
|
+
if (message.standingTransition !== undefined) {
|
|
132
|
+
obj.standingTransition = exports.WarrantRecord_StandingTransition.toJSON(message.standingTransition);
|
|
133
|
+
}
|
|
134
|
+
if (message.snapshot !== undefined) {
|
|
135
|
+
obj.snapshot = exports.WarrantRecord_Snapshot.toJSON(message.snapshot);
|
|
136
|
+
}
|
|
137
|
+
return obj;
|
|
138
|
+
},
|
|
139
|
+
create(base) {
|
|
140
|
+
return exports.WarrantRecord.fromPartial(base ?? {});
|
|
141
|
+
},
|
|
142
|
+
fromPartial(object) {
|
|
143
|
+
const message = createBaseWarrantRecord();
|
|
144
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
145
|
+
message.standingTransition = (object.standingTransition !== undefined && object.standingTransition !== null)
|
|
146
|
+
? exports.WarrantRecord_StandingTransition.fromPartial(object.standingTransition)
|
|
147
|
+
: undefined;
|
|
148
|
+
message.snapshot = (object.snapshot !== undefined && object.snapshot !== null)
|
|
149
|
+
? exports.WarrantRecord_Snapshot.fromPartial(object.snapshot)
|
|
150
|
+
: undefined;
|
|
151
|
+
return message;
|
|
152
|
+
},
|
|
153
|
+
};
|
|
154
|
+
typeRegistry_1.messageTypeRegistry.set(exports.WarrantRecord.$type, exports.WarrantRecord);
|
|
155
|
+
function createBaseWarrantRecord_RebuttalFired() {
|
|
156
|
+
return { $type: "keelson.WarrantRecord.RebuttalFired", id: "", description: "", evidence: "", evidenceLevel: "" };
|
|
157
|
+
}
|
|
158
|
+
exports.WarrantRecord_RebuttalFired = {
|
|
159
|
+
$type: "keelson.WarrantRecord.RebuttalFired",
|
|
160
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
161
|
+
if (message.id !== "") {
|
|
162
|
+
writer.uint32(10).string(message.id);
|
|
163
|
+
}
|
|
164
|
+
if (message.description !== "") {
|
|
165
|
+
writer.uint32(18).string(message.description);
|
|
166
|
+
}
|
|
167
|
+
if (message.evidence !== "") {
|
|
168
|
+
writer.uint32(26).string(message.evidence);
|
|
169
|
+
}
|
|
170
|
+
if (message.evidenceLevel !== "") {
|
|
171
|
+
writer.uint32(34).string(message.evidenceLevel);
|
|
172
|
+
}
|
|
173
|
+
return writer;
|
|
174
|
+
},
|
|
175
|
+
decode(input, length) {
|
|
176
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
177
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
178
|
+
const message = createBaseWarrantRecord_RebuttalFired();
|
|
179
|
+
while (reader.pos < end) {
|
|
180
|
+
const tag = reader.uint32();
|
|
181
|
+
switch (tag >>> 3) {
|
|
182
|
+
case 1: {
|
|
183
|
+
if (tag !== 10) {
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
message.id = reader.string();
|
|
187
|
+
continue;
|
|
188
|
+
}
|
|
189
|
+
case 2: {
|
|
190
|
+
if (tag !== 18) {
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
message.description = reader.string();
|
|
194
|
+
continue;
|
|
195
|
+
}
|
|
196
|
+
case 3: {
|
|
197
|
+
if (tag !== 26) {
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
message.evidence = reader.string();
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
case 4: {
|
|
204
|
+
if (tag !== 34) {
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
message.evidenceLevel = reader.string();
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
reader.skip(tag & 7);
|
|
215
|
+
}
|
|
216
|
+
return message;
|
|
217
|
+
},
|
|
218
|
+
fromJSON(object) {
|
|
219
|
+
return {
|
|
220
|
+
$type: exports.WarrantRecord_RebuttalFired.$type,
|
|
221
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
222
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
223
|
+
evidence: isSet(object.evidence) ? globalThis.String(object.evidence) : "",
|
|
224
|
+
evidenceLevel: isSet(object.evidenceLevel) ? globalThis.String(object.evidenceLevel) : "",
|
|
225
|
+
};
|
|
226
|
+
},
|
|
227
|
+
toJSON(message) {
|
|
228
|
+
const obj = {};
|
|
229
|
+
if (message.id !== "") {
|
|
230
|
+
obj.id = message.id;
|
|
231
|
+
}
|
|
232
|
+
if (message.description !== "") {
|
|
233
|
+
obj.description = message.description;
|
|
234
|
+
}
|
|
235
|
+
if (message.evidence !== "") {
|
|
236
|
+
obj.evidence = message.evidence;
|
|
237
|
+
}
|
|
238
|
+
if (message.evidenceLevel !== "") {
|
|
239
|
+
obj.evidenceLevel = message.evidenceLevel;
|
|
240
|
+
}
|
|
241
|
+
return obj;
|
|
242
|
+
},
|
|
243
|
+
create(base) {
|
|
244
|
+
return exports.WarrantRecord_RebuttalFired.fromPartial(base ?? {});
|
|
245
|
+
},
|
|
246
|
+
fromPartial(object) {
|
|
247
|
+
const message = createBaseWarrantRecord_RebuttalFired();
|
|
248
|
+
message.id = object.id ?? "";
|
|
249
|
+
message.description = object.description ?? "";
|
|
250
|
+
message.evidence = object.evidence ?? "";
|
|
251
|
+
message.evidenceLevel = object.evidenceLevel ?? "";
|
|
252
|
+
return message;
|
|
253
|
+
},
|
|
254
|
+
};
|
|
255
|
+
typeRegistry_1.messageTypeRegistry.set(exports.WarrantRecord_RebuttalFired.$type, exports.WarrantRecord_RebuttalFired);
|
|
256
|
+
function createBaseWarrantRecord_GroundStanding() {
|
|
257
|
+
return { $type: "keelson.WarrantRecord.GroundStanding", claimId: "", standing: 0 };
|
|
258
|
+
}
|
|
259
|
+
exports.WarrantRecord_GroundStanding = {
|
|
260
|
+
$type: "keelson.WarrantRecord.GroundStanding",
|
|
261
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
262
|
+
if (message.claimId !== "") {
|
|
263
|
+
writer.uint32(10).string(message.claimId);
|
|
264
|
+
}
|
|
265
|
+
if (message.standing !== 0) {
|
|
266
|
+
writer.uint32(16).int32(message.standing);
|
|
267
|
+
}
|
|
268
|
+
return writer;
|
|
269
|
+
},
|
|
270
|
+
decode(input, length) {
|
|
271
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
272
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
273
|
+
const message = createBaseWarrantRecord_GroundStanding();
|
|
274
|
+
while (reader.pos < end) {
|
|
275
|
+
const tag = reader.uint32();
|
|
276
|
+
switch (tag >>> 3) {
|
|
277
|
+
case 1: {
|
|
278
|
+
if (tag !== 10) {
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
message.claimId = reader.string();
|
|
282
|
+
continue;
|
|
283
|
+
}
|
|
284
|
+
case 2: {
|
|
285
|
+
if (tag !== 16) {
|
|
286
|
+
break;
|
|
287
|
+
}
|
|
288
|
+
message.standing = reader.int32();
|
|
289
|
+
continue;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
reader.skip(tag & 7);
|
|
296
|
+
}
|
|
297
|
+
return message;
|
|
298
|
+
},
|
|
299
|
+
fromJSON(object) {
|
|
300
|
+
return {
|
|
301
|
+
$type: exports.WarrantRecord_GroundStanding.$type,
|
|
302
|
+
claimId: isSet(object.claimId) ? globalThis.String(object.claimId) : "",
|
|
303
|
+
standing: isSet(object.standing) ? warrantRecord_StandingFromJSON(object.standing) : 0,
|
|
304
|
+
};
|
|
305
|
+
},
|
|
306
|
+
toJSON(message) {
|
|
307
|
+
const obj = {};
|
|
308
|
+
if (message.claimId !== "") {
|
|
309
|
+
obj.claimId = message.claimId;
|
|
310
|
+
}
|
|
311
|
+
if (message.standing !== 0) {
|
|
312
|
+
obj.standing = warrantRecord_StandingToJSON(message.standing);
|
|
313
|
+
}
|
|
314
|
+
return obj;
|
|
315
|
+
},
|
|
316
|
+
create(base) {
|
|
317
|
+
return exports.WarrantRecord_GroundStanding.fromPartial(base ?? {});
|
|
318
|
+
},
|
|
319
|
+
fromPartial(object) {
|
|
320
|
+
const message = createBaseWarrantRecord_GroundStanding();
|
|
321
|
+
message.claimId = object.claimId ?? "";
|
|
322
|
+
message.standing = object.standing ?? 0;
|
|
323
|
+
return message;
|
|
324
|
+
},
|
|
325
|
+
};
|
|
326
|
+
typeRegistry_1.messageTypeRegistry.set(exports.WarrantRecord_GroundStanding.$type, exports.WarrantRecord_GroundStanding);
|
|
327
|
+
function createBaseWarrantRecord_StandingTransition() {
|
|
328
|
+
return {
|
|
329
|
+
$type: "keelson.WarrantRecord.StandingTransition",
|
|
330
|
+
claimId: "",
|
|
331
|
+
fromStanding: 0,
|
|
332
|
+
toStanding: 0,
|
|
333
|
+
rebuttalsFired: [],
|
|
334
|
+
grounds: [],
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
exports.WarrantRecord_StandingTransition = {
|
|
338
|
+
$type: "keelson.WarrantRecord.StandingTransition",
|
|
339
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
340
|
+
if (message.claimId !== "") {
|
|
341
|
+
writer.uint32(10).string(message.claimId);
|
|
342
|
+
}
|
|
343
|
+
if (message.fromStanding !== 0) {
|
|
344
|
+
writer.uint32(16).int32(message.fromStanding);
|
|
345
|
+
}
|
|
346
|
+
if (message.toStanding !== 0) {
|
|
347
|
+
writer.uint32(24).int32(message.toStanding);
|
|
348
|
+
}
|
|
349
|
+
for (const v of message.rebuttalsFired) {
|
|
350
|
+
exports.WarrantRecord_RebuttalFired.encode(v, writer.uint32(34).fork()).join();
|
|
351
|
+
}
|
|
352
|
+
for (const v of message.grounds) {
|
|
353
|
+
exports.WarrantRecord_GroundStanding.encode(v, writer.uint32(42).fork()).join();
|
|
354
|
+
}
|
|
355
|
+
return writer;
|
|
356
|
+
},
|
|
357
|
+
decode(input, length) {
|
|
358
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
359
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
360
|
+
const message = createBaseWarrantRecord_StandingTransition();
|
|
361
|
+
while (reader.pos < end) {
|
|
362
|
+
const tag = reader.uint32();
|
|
363
|
+
switch (tag >>> 3) {
|
|
364
|
+
case 1: {
|
|
365
|
+
if (tag !== 10) {
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
message.claimId = reader.string();
|
|
369
|
+
continue;
|
|
370
|
+
}
|
|
371
|
+
case 2: {
|
|
372
|
+
if (tag !== 16) {
|
|
373
|
+
break;
|
|
374
|
+
}
|
|
375
|
+
message.fromStanding = reader.int32();
|
|
376
|
+
continue;
|
|
377
|
+
}
|
|
378
|
+
case 3: {
|
|
379
|
+
if (tag !== 24) {
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
message.toStanding = reader.int32();
|
|
383
|
+
continue;
|
|
384
|
+
}
|
|
385
|
+
case 4: {
|
|
386
|
+
if (tag !== 34) {
|
|
387
|
+
break;
|
|
388
|
+
}
|
|
389
|
+
message.rebuttalsFired.push(exports.WarrantRecord_RebuttalFired.decode(reader, reader.uint32()));
|
|
390
|
+
continue;
|
|
391
|
+
}
|
|
392
|
+
case 5: {
|
|
393
|
+
if (tag !== 42) {
|
|
394
|
+
break;
|
|
395
|
+
}
|
|
396
|
+
message.grounds.push(exports.WarrantRecord_GroundStanding.decode(reader, reader.uint32()));
|
|
397
|
+
continue;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
403
|
+
reader.skip(tag & 7);
|
|
404
|
+
}
|
|
405
|
+
return message;
|
|
406
|
+
},
|
|
407
|
+
fromJSON(object) {
|
|
408
|
+
return {
|
|
409
|
+
$type: exports.WarrantRecord_StandingTransition.$type,
|
|
410
|
+
claimId: isSet(object.claimId) ? globalThis.String(object.claimId) : "",
|
|
411
|
+
fromStanding: isSet(object.fromStanding) ? warrantRecord_StandingFromJSON(object.fromStanding) : 0,
|
|
412
|
+
toStanding: isSet(object.toStanding) ? warrantRecord_StandingFromJSON(object.toStanding) : 0,
|
|
413
|
+
rebuttalsFired: globalThis.Array.isArray(object?.rebuttalsFired)
|
|
414
|
+
? object.rebuttalsFired.map((e) => exports.WarrantRecord_RebuttalFired.fromJSON(e))
|
|
415
|
+
: [],
|
|
416
|
+
grounds: globalThis.Array.isArray(object?.grounds)
|
|
417
|
+
? object.grounds.map((e) => exports.WarrantRecord_GroundStanding.fromJSON(e))
|
|
418
|
+
: [],
|
|
419
|
+
};
|
|
420
|
+
},
|
|
421
|
+
toJSON(message) {
|
|
422
|
+
const obj = {};
|
|
423
|
+
if (message.claimId !== "") {
|
|
424
|
+
obj.claimId = message.claimId;
|
|
425
|
+
}
|
|
426
|
+
if (message.fromStanding !== 0) {
|
|
427
|
+
obj.fromStanding = warrantRecord_StandingToJSON(message.fromStanding);
|
|
428
|
+
}
|
|
429
|
+
if (message.toStanding !== 0) {
|
|
430
|
+
obj.toStanding = warrantRecord_StandingToJSON(message.toStanding);
|
|
431
|
+
}
|
|
432
|
+
if (message.rebuttalsFired?.length) {
|
|
433
|
+
obj.rebuttalsFired = message.rebuttalsFired.map((e) => exports.WarrantRecord_RebuttalFired.toJSON(e));
|
|
434
|
+
}
|
|
435
|
+
if (message.grounds?.length) {
|
|
436
|
+
obj.grounds = message.grounds.map((e) => exports.WarrantRecord_GroundStanding.toJSON(e));
|
|
437
|
+
}
|
|
438
|
+
return obj;
|
|
439
|
+
},
|
|
440
|
+
create(base) {
|
|
441
|
+
return exports.WarrantRecord_StandingTransition.fromPartial(base ?? {});
|
|
442
|
+
},
|
|
443
|
+
fromPartial(object) {
|
|
444
|
+
const message = createBaseWarrantRecord_StandingTransition();
|
|
445
|
+
message.claimId = object.claimId ?? "";
|
|
446
|
+
message.fromStanding = object.fromStanding ?? 0;
|
|
447
|
+
message.toStanding = object.toStanding ?? 0;
|
|
448
|
+
message.rebuttalsFired = object.rebuttalsFired?.map((e) => exports.WarrantRecord_RebuttalFired.fromPartial(e)) || [];
|
|
449
|
+
message.grounds = object.grounds?.map((e) => exports.WarrantRecord_GroundStanding.fromPartial(e)) || [];
|
|
450
|
+
return message;
|
|
451
|
+
},
|
|
452
|
+
};
|
|
453
|
+
typeRegistry_1.messageTypeRegistry.set(exports.WarrantRecord_StandingTransition.$type, exports.WarrantRecord_StandingTransition);
|
|
454
|
+
function createBaseWarrantRecord_ClaimState() {
|
|
455
|
+
return {
|
|
456
|
+
$type: "keelson.WarrantRecord.ClaimState",
|
|
457
|
+
claimId: "",
|
|
458
|
+
standing: 0,
|
|
459
|
+
since: undefined,
|
|
460
|
+
rebuttalsFired: [],
|
|
461
|
+
grounds: [],
|
|
462
|
+
statement: "",
|
|
463
|
+
warrant: "",
|
|
464
|
+
backing: "",
|
|
465
|
+
targetStanding: 0,
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
exports.WarrantRecord_ClaimState = {
|
|
469
|
+
$type: "keelson.WarrantRecord.ClaimState",
|
|
470
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
471
|
+
if (message.claimId !== "") {
|
|
472
|
+
writer.uint32(10).string(message.claimId);
|
|
473
|
+
}
|
|
474
|
+
if (message.standing !== 0) {
|
|
475
|
+
writer.uint32(16).int32(message.standing);
|
|
476
|
+
}
|
|
477
|
+
if (message.since !== undefined) {
|
|
478
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.since), writer.uint32(26).fork()).join();
|
|
479
|
+
}
|
|
480
|
+
for (const v of message.rebuttalsFired) {
|
|
481
|
+
exports.WarrantRecord_RebuttalFired.encode(v, writer.uint32(34).fork()).join();
|
|
482
|
+
}
|
|
483
|
+
for (const v of message.grounds) {
|
|
484
|
+
exports.WarrantRecord_GroundStanding.encode(v, writer.uint32(42).fork()).join();
|
|
485
|
+
}
|
|
486
|
+
if (message.statement !== "") {
|
|
487
|
+
writer.uint32(50).string(message.statement);
|
|
488
|
+
}
|
|
489
|
+
if (message.warrant !== "") {
|
|
490
|
+
writer.uint32(58).string(message.warrant);
|
|
491
|
+
}
|
|
492
|
+
if (message.backing !== "") {
|
|
493
|
+
writer.uint32(66).string(message.backing);
|
|
494
|
+
}
|
|
495
|
+
if (message.targetStanding !== 0) {
|
|
496
|
+
writer.uint32(72).int32(message.targetStanding);
|
|
497
|
+
}
|
|
498
|
+
return writer;
|
|
499
|
+
},
|
|
500
|
+
decode(input, length) {
|
|
501
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
502
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
503
|
+
const message = createBaseWarrantRecord_ClaimState();
|
|
504
|
+
while (reader.pos < end) {
|
|
505
|
+
const tag = reader.uint32();
|
|
506
|
+
switch (tag >>> 3) {
|
|
507
|
+
case 1: {
|
|
508
|
+
if (tag !== 10) {
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
message.claimId = reader.string();
|
|
512
|
+
continue;
|
|
513
|
+
}
|
|
514
|
+
case 2: {
|
|
515
|
+
if (tag !== 16) {
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
message.standing = reader.int32();
|
|
519
|
+
continue;
|
|
520
|
+
}
|
|
521
|
+
case 3: {
|
|
522
|
+
if (tag !== 26) {
|
|
523
|
+
break;
|
|
524
|
+
}
|
|
525
|
+
message.since = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
526
|
+
continue;
|
|
527
|
+
}
|
|
528
|
+
case 4: {
|
|
529
|
+
if (tag !== 34) {
|
|
530
|
+
break;
|
|
531
|
+
}
|
|
532
|
+
message.rebuttalsFired.push(exports.WarrantRecord_RebuttalFired.decode(reader, reader.uint32()));
|
|
533
|
+
continue;
|
|
534
|
+
}
|
|
535
|
+
case 5: {
|
|
536
|
+
if (tag !== 42) {
|
|
537
|
+
break;
|
|
538
|
+
}
|
|
539
|
+
message.grounds.push(exports.WarrantRecord_GroundStanding.decode(reader, reader.uint32()));
|
|
540
|
+
continue;
|
|
541
|
+
}
|
|
542
|
+
case 6: {
|
|
543
|
+
if (tag !== 50) {
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
message.statement = reader.string();
|
|
547
|
+
continue;
|
|
548
|
+
}
|
|
549
|
+
case 7: {
|
|
550
|
+
if (tag !== 58) {
|
|
551
|
+
break;
|
|
552
|
+
}
|
|
553
|
+
message.warrant = reader.string();
|
|
554
|
+
continue;
|
|
555
|
+
}
|
|
556
|
+
case 8: {
|
|
557
|
+
if (tag !== 66) {
|
|
558
|
+
break;
|
|
559
|
+
}
|
|
560
|
+
message.backing = reader.string();
|
|
561
|
+
continue;
|
|
562
|
+
}
|
|
563
|
+
case 9: {
|
|
564
|
+
if (tag !== 72) {
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
message.targetStanding = reader.int32();
|
|
568
|
+
continue;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
reader.skip(tag & 7);
|
|
575
|
+
}
|
|
576
|
+
return message;
|
|
577
|
+
},
|
|
578
|
+
fromJSON(object) {
|
|
579
|
+
return {
|
|
580
|
+
$type: exports.WarrantRecord_ClaimState.$type,
|
|
581
|
+
claimId: isSet(object.claimId) ? globalThis.String(object.claimId) : "",
|
|
582
|
+
standing: isSet(object.standing) ? warrantRecord_StandingFromJSON(object.standing) : 0,
|
|
583
|
+
since: isSet(object.since) ? fromJsonTimestamp(object.since) : undefined,
|
|
584
|
+
rebuttalsFired: globalThis.Array.isArray(object?.rebuttalsFired)
|
|
585
|
+
? object.rebuttalsFired.map((e) => exports.WarrantRecord_RebuttalFired.fromJSON(e))
|
|
586
|
+
: [],
|
|
587
|
+
grounds: globalThis.Array.isArray(object?.grounds)
|
|
588
|
+
? object.grounds.map((e) => exports.WarrantRecord_GroundStanding.fromJSON(e))
|
|
589
|
+
: [],
|
|
590
|
+
statement: isSet(object.statement) ? globalThis.String(object.statement) : "",
|
|
591
|
+
warrant: isSet(object.warrant) ? globalThis.String(object.warrant) : "",
|
|
592
|
+
backing: isSet(object.backing) ? globalThis.String(object.backing) : "",
|
|
593
|
+
targetStanding: isSet(object.targetStanding) ? warrantRecord_StandingFromJSON(object.targetStanding) : 0,
|
|
594
|
+
};
|
|
595
|
+
},
|
|
596
|
+
toJSON(message) {
|
|
597
|
+
const obj = {};
|
|
598
|
+
if (message.claimId !== "") {
|
|
599
|
+
obj.claimId = message.claimId;
|
|
600
|
+
}
|
|
601
|
+
if (message.standing !== 0) {
|
|
602
|
+
obj.standing = warrantRecord_StandingToJSON(message.standing);
|
|
603
|
+
}
|
|
604
|
+
if (message.since !== undefined) {
|
|
605
|
+
obj.since = message.since.toISOString();
|
|
606
|
+
}
|
|
607
|
+
if (message.rebuttalsFired?.length) {
|
|
608
|
+
obj.rebuttalsFired = message.rebuttalsFired.map((e) => exports.WarrantRecord_RebuttalFired.toJSON(e));
|
|
609
|
+
}
|
|
610
|
+
if (message.grounds?.length) {
|
|
611
|
+
obj.grounds = message.grounds.map((e) => exports.WarrantRecord_GroundStanding.toJSON(e));
|
|
612
|
+
}
|
|
613
|
+
if (message.statement !== "") {
|
|
614
|
+
obj.statement = message.statement;
|
|
615
|
+
}
|
|
616
|
+
if (message.warrant !== "") {
|
|
617
|
+
obj.warrant = message.warrant;
|
|
618
|
+
}
|
|
619
|
+
if (message.backing !== "") {
|
|
620
|
+
obj.backing = message.backing;
|
|
621
|
+
}
|
|
622
|
+
if (message.targetStanding !== 0) {
|
|
623
|
+
obj.targetStanding = warrantRecord_StandingToJSON(message.targetStanding);
|
|
624
|
+
}
|
|
625
|
+
return obj;
|
|
626
|
+
},
|
|
627
|
+
create(base) {
|
|
628
|
+
return exports.WarrantRecord_ClaimState.fromPartial(base ?? {});
|
|
629
|
+
},
|
|
630
|
+
fromPartial(object) {
|
|
631
|
+
const message = createBaseWarrantRecord_ClaimState();
|
|
632
|
+
message.claimId = object.claimId ?? "";
|
|
633
|
+
message.standing = object.standing ?? 0;
|
|
634
|
+
message.since = object.since ?? undefined;
|
|
635
|
+
message.rebuttalsFired = object.rebuttalsFired?.map((e) => exports.WarrantRecord_RebuttalFired.fromPartial(e)) || [];
|
|
636
|
+
message.grounds = object.grounds?.map((e) => exports.WarrantRecord_GroundStanding.fromPartial(e)) || [];
|
|
637
|
+
message.statement = object.statement ?? "";
|
|
638
|
+
message.warrant = object.warrant ?? "";
|
|
639
|
+
message.backing = object.backing ?? "";
|
|
640
|
+
message.targetStanding = object.targetStanding ?? 0;
|
|
641
|
+
return message;
|
|
642
|
+
},
|
|
643
|
+
};
|
|
644
|
+
typeRegistry_1.messageTypeRegistry.set(exports.WarrantRecord_ClaimState.$type, exports.WarrantRecord_ClaimState);
|
|
645
|
+
function createBaseWarrantRecord_Snapshot() {
|
|
646
|
+
return { $type: "keelson.WarrantRecord.Snapshot", claims: [], policyConfigDigest: undefined, policyId: undefined };
|
|
647
|
+
}
|
|
648
|
+
exports.WarrantRecord_Snapshot = {
|
|
649
|
+
$type: "keelson.WarrantRecord.Snapshot",
|
|
650
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
651
|
+
for (const v of message.claims) {
|
|
652
|
+
exports.WarrantRecord_ClaimState.encode(v, writer.uint32(10).fork()).join();
|
|
653
|
+
}
|
|
654
|
+
if (message.policyConfigDigest !== undefined) {
|
|
655
|
+
writer.uint32(18).bytes(message.policyConfigDigest);
|
|
656
|
+
}
|
|
657
|
+
if (message.policyId !== undefined) {
|
|
658
|
+
writer.uint32(26).string(message.policyId);
|
|
659
|
+
}
|
|
660
|
+
return writer;
|
|
661
|
+
},
|
|
662
|
+
decode(input, length) {
|
|
663
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
664
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
665
|
+
const message = createBaseWarrantRecord_Snapshot();
|
|
666
|
+
while (reader.pos < end) {
|
|
667
|
+
const tag = reader.uint32();
|
|
668
|
+
switch (tag >>> 3) {
|
|
669
|
+
case 1: {
|
|
670
|
+
if (tag !== 10) {
|
|
671
|
+
break;
|
|
672
|
+
}
|
|
673
|
+
message.claims.push(exports.WarrantRecord_ClaimState.decode(reader, reader.uint32()));
|
|
674
|
+
continue;
|
|
675
|
+
}
|
|
676
|
+
case 2: {
|
|
677
|
+
if (tag !== 18) {
|
|
678
|
+
break;
|
|
679
|
+
}
|
|
680
|
+
message.policyConfigDigest = reader.bytes();
|
|
681
|
+
continue;
|
|
682
|
+
}
|
|
683
|
+
case 3: {
|
|
684
|
+
if (tag !== 26) {
|
|
685
|
+
break;
|
|
686
|
+
}
|
|
687
|
+
message.policyId = reader.string();
|
|
688
|
+
continue;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
692
|
+
break;
|
|
693
|
+
}
|
|
694
|
+
reader.skip(tag & 7);
|
|
695
|
+
}
|
|
696
|
+
return message;
|
|
697
|
+
},
|
|
698
|
+
fromJSON(object) {
|
|
699
|
+
return {
|
|
700
|
+
$type: exports.WarrantRecord_Snapshot.$type,
|
|
701
|
+
claims: globalThis.Array.isArray(object?.claims)
|
|
702
|
+
? object.claims.map((e) => exports.WarrantRecord_ClaimState.fromJSON(e))
|
|
703
|
+
: [],
|
|
704
|
+
policyConfigDigest: isSet(object.policyConfigDigest) ? bytesFromBase64(object.policyConfigDigest) : undefined,
|
|
705
|
+
policyId: isSet(object.policyId) ? globalThis.String(object.policyId) : undefined,
|
|
706
|
+
};
|
|
707
|
+
},
|
|
708
|
+
toJSON(message) {
|
|
709
|
+
const obj = {};
|
|
710
|
+
if (message.claims?.length) {
|
|
711
|
+
obj.claims = message.claims.map((e) => exports.WarrantRecord_ClaimState.toJSON(e));
|
|
712
|
+
}
|
|
713
|
+
if (message.policyConfigDigest !== undefined) {
|
|
714
|
+
obj.policyConfigDigest = base64FromBytes(message.policyConfigDigest);
|
|
715
|
+
}
|
|
716
|
+
if (message.policyId !== undefined) {
|
|
717
|
+
obj.policyId = message.policyId;
|
|
718
|
+
}
|
|
719
|
+
return obj;
|
|
720
|
+
},
|
|
721
|
+
create(base) {
|
|
722
|
+
return exports.WarrantRecord_Snapshot.fromPartial(base ?? {});
|
|
723
|
+
},
|
|
724
|
+
fromPartial(object) {
|
|
725
|
+
const message = createBaseWarrantRecord_Snapshot();
|
|
726
|
+
message.claims = object.claims?.map((e) => exports.WarrantRecord_ClaimState.fromPartial(e)) || [];
|
|
727
|
+
message.policyConfigDigest = object.policyConfigDigest ?? undefined;
|
|
728
|
+
message.policyId = object.policyId ?? undefined;
|
|
729
|
+
return message;
|
|
730
|
+
},
|
|
731
|
+
};
|
|
732
|
+
typeRegistry_1.messageTypeRegistry.set(exports.WarrantRecord_Snapshot.$type, exports.WarrantRecord_Snapshot);
|
|
733
|
+
function bytesFromBase64(b64) {
|
|
734
|
+
if (globalThis.Buffer) {
|
|
735
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
736
|
+
}
|
|
737
|
+
else {
|
|
738
|
+
const bin = globalThis.atob(b64);
|
|
739
|
+
const arr = new Uint8Array(bin.length);
|
|
740
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
741
|
+
arr[i] = bin.charCodeAt(i);
|
|
742
|
+
}
|
|
743
|
+
return arr;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
function base64FromBytes(arr) {
|
|
747
|
+
if (globalThis.Buffer) {
|
|
748
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
749
|
+
}
|
|
750
|
+
else {
|
|
751
|
+
const bin = [];
|
|
752
|
+
arr.forEach((byte) => {
|
|
753
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
754
|
+
});
|
|
755
|
+
return globalThis.btoa(bin.join(""));
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
function toTimestamp(date) {
|
|
759
|
+
const seconds = Math.trunc(date.getTime() / 1000);
|
|
760
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
761
|
+
return { $type: "google.protobuf.Timestamp", seconds, nanos };
|
|
762
|
+
}
|
|
763
|
+
function fromTimestamp(t) {
|
|
764
|
+
let millis = (t.seconds || 0) * 1000;
|
|
765
|
+
millis += (t.nanos || 0) / 1000000;
|
|
766
|
+
return new globalThis.Date(millis);
|
|
767
|
+
}
|
|
768
|
+
function fromJsonTimestamp(o) {
|
|
769
|
+
if (o instanceof globalThis.Date) {
|
|
770
|
+
return o;
|
|
771
|
+
}
|
|
772
|
+
else if (typeof o === "string") {
|
|
773
|
+
return new globalThis.Date(o);
|
|
774
|
+
}
|
|
775
|
+
else {
|
|
776
|
+
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
function isSet(value) {
|
|
780
|
+
return value !== null && value !== undefined;
|
|
781
|
+
}
|