@fatehan/tsrp 1.6.15 → 1.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/fatehan/activities/workflow.d.ts +0 -219
- package/dist/fatehan/activities/workflow.d.ts.map +0 -1
- package/dist/fatehan/activities/workflow.js +0 -1941
- package/dist/fatehan/activities/workshift.d.ts +0 -140
- package/dist/fatehan/activities/workshift.d.ts.map +0 -1
- package/dist/fatehan/activities/workshift.js +0 -1244
- package/dist/fatehan/apis/client.d.ts +0 -246
- package/dist/fatehan/apis/client.d.ts.map +0 -1
- package/dist/fatehan/apis/client.js +0 -2572
- package/dist/fatehan/areas/area.d.ts +0 -96
- package/dist/fatehan/areas/area.d.ts.map +0 -1
- package/dist/fatehan/areas/area.js +0 -761
- package/dist/fatehan/devices/devices.d.ts +0 -256
- package/dist/fatehan/devices/devices.d.ts.map +0 -1
- package/dist/fatehan/devices/devices.js +0 -2730
- package/dist/fatehan/devices/maintenance.d.ts +0 -64
- package/dist/fatehan/devices/maintenance.d.ts.map +0 -1
- package/dist/fatehan/devices/maintenance.js +0 -484
- package/dist/fatehan/financial/financial.d.ts +0 -162
- package/dist/fatehan/financial/financial.d.ts.map +0 -1
- package/dist/fatehan/financial/financial.js +0 -1701
- package/dist/fatehan/google/protobuf/descriptor.d.ts +0 -1303
- package/dist/fatehan/google/protobuf/descriptor.d.ts.map +0 -1
- package/dist/fatehan/google/protobuf/descriptor.js +0 -3467
- package/dist/fatehan/google/protobuf/duration.d.ts +0 -99
- package/dist/fatehan/google/protobuf/duration.d.ts.map +0 -1
- package/dist/fatehan/google/protobuf/duration.js +0 -63
- package/dist/fatehan/google/protobuf/field_mask.d.ts +0 -228
- package/dist/fatehan/google/protobuf/field_mask.d.ts.map +0 -1
- package/dist/fatehan/google/protobuf/field_mask.js +0 -57
- package/dist/fatehan/google/protobuf/timestamp.d.ts +0 -129
- package/dist/fatehan/google/protobuf/timestamp.d.ts.map +0 -1
- package/dist/fatehan/google/protobuf/timestamp.js +0 -63
- package/dist/fatehan/identities/authentication.d.ts +0 -164
- package/dist/fatehan/identities/authentication.d.ts.map +0 -1
- package/dist/fatehan/identities/authentication.js +0 -1291
- package/dist/fatehan/identities/identities.d.ts +0 -969
- package/dist/fatehan/identities/identities.d.ts.map +0 -1
- package/dist/fatehan/identities/identities.js +0 -2993
- package/dist/fatehan/models/fusion.d.ts +0 -149
- package/dist/fatehan/models/fusion.d.ts.map +0 -1
- package/dist/fatehan/models/fusion.js +0 -1531
- package/dist/fatehan/models/models.d.ts +0 -162
- package/dist/fatehan/models/models.d.ts.map +0 -1
- package/dist/fatehan/models/models.js +0 -1486
- package/dist/fatehan/notifies/direct.d.ts +0 -85
- package/dist/fatehan/notifies/direct.d.ts.map +0 -1
- package/dist/fatehan/notifies/direct.js +0 -669
- package/dist/fatehan/notifies/notify.d.ts +0 -232
- package/dist/fatehan/notifies/notify.d.ts.map +0 -1
- package/dist/fatehan/notifies/notify.js +0 -1958
- package/dist/fatehan/packets/commands.d.ts +0 -150
- package/dist/fatehan/packets/commands.d.ts.map +0 -1
- package/dist/fatehan/packets/commands.js +0 -1364
- package/dist/fatehan/packets/dataModel.d.ts +0 -1610
- package/dist/fatehan/packets/dataModel.d.ts.map +0 -1
- package/dist/fatehan/packets/dataModel.js +0 -14947
- package/dist/fatehan/packets/dataModule.d.ts +0 -61
- package/dist/fatehan/packets/dataModule.d.ts.map +0 -1
- package/dist/fatehan/packets/dataModule.js +0 -386
- package/dist/fatehan/packets/forge.d.ts +0 -142
- package/dist/fatehan/packets/forge.d.ts.map +0 -1
- package/dist/fatehan/packets/forge.js +0 -1339
- package/dist/fatehan/services/api.d.ts +0 -1211
- package/dist/fatehan/services/api.d.ts.map +0 -1
- package/dist/fatehan/services/api.js +0 -12547
- package/dist/fatehan/services/repositories.d.ts +0 -78
- package/dist/fatehan/services/repositories.d.ts.map +0 -1
- package/dist/fatehan/services/repositories.js +0 -620
- package/dist/fatehan/stream/stream.d.ts +0 -224
- package/dist/fatehan/stream/stream.d.ts.map +0 -1
- package/dist/fatehan/stream/stream.js +0 -1416
- package/dist/fatehan/trips/trip.d.ts +0 -325
- package/dist/fatehan/trips/trip.d.ts.map +0 -1
- package/dist/fatehan/trips/trip.js +0 -1635
- package/dist/fatehan/utils/buf/validate/validate.d.ts +0 -3520
- package/dist/fatehan/utils/buf/validate/validate.d.ts.map +0 -1
- package/dist/fatehan/utils/buf/validate/validate.js +0 -4248
- package/dist/services.d.ts +0 -78
- package/dist/services.d.ts.map +0 -1
- package/dist/services.js +0 -242
- package/dist/store/system.io.d.ts +0 -6
- package/dist/store/system.io.d.ts.map +0 -1
- package/dist/store/system.io.js +0 -14
- package/dist/system.io.d.ts +0 -6
- package/dist/system.io.d.ts.map +0 -1
- package/dist/system.io.js +0 -208
|
@@ -1,1486 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.8
|
|
4
|
-
// protoc v7.34.1
|
|
5
|
-
// source: models/models.proto
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
-
import Long from "long";
|
|
9
|
-
import { Timestamp } from "../google/protobuf/timestamp";
|
|
10
|
-
import { Data, DeviceStatus } from "../packets/dataModel";
|
|
11
|
-
export const protobufPackage = "com.fatehan.models";
|
|
12
|
-
export var ChargeLog_Type;
|
|
13
|
-
(function (ChargeLog_Type) {
|
|
14
|
-
ChargeLog_Type[ChargeLog_Type["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
15
|
-
ChargeLog_Type[ChargeLog_Type["WALLET"] = 1] = "WALLET";
|
|
16
|
-
ChargeLog_Type[ChargeLog_Type["STORE"] = 2] = "STORE";
|
|
17
|
-
ChargeLog_Type[ChargeLog_Type["PAYMENT"] = 3] = "PAYMENT";
|
|
18
|
-
ChargeLog_Type[ChargeLog_Type["FIRST_CONNECT"] = 4] = "FIRST_CONNECT";
|
|
19
|
-
ChargeLog_Type[ChargeLog_Type["TRIAL"] = 5] = "TRIAL";
|
|
20
|
-
ChargeLog_Type[ChargeLog_Type["REFUND"] = 6] = "REFUND";
|
|
21
|
-
ChargeLog_Type[ChargeLog_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
22
|
-
})(ChargeLog_Type || (ChargeLog_Type = {}));
|
|
23
|
-
function createBaseGallery() {
|
|
24
|
-
return {
|
|
25
|
-
id: Long.UZERO,
|
|
26
|
-
deviceId: Long.UZERO,
|
|
27
|
-
identificationNo: new Uint8Array(0),
|
|
28
|
-
type: 0,
|
|
29
|
-
storage: "",
|
|
30
|
-
path: "",
|
|
31
|
-
mime: "",
|
|
32
|
-
codec: undefined,
|
|
33
|
-
size: 0,
|
|
34
|
-
location: undefined,
|
|
35
|
-
createdAt: undefined,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export const Gallery = {
|
|
39
|
-
encode(message, writer = new BinaryWriter()) {
|
|
40
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
41
|
-
writer.uint32(8).uint64(message.id.toString());
|
|
42
|
-
}
|
|
43
|
-
if (!message.deviceId.equals(Long.UZERO)) {
|
|
44
|
-
writer.uint32(16).uint64(message.deviceId.toString());
|
|
45
|
-
}
|
|
46
|
-
if (message.identificationNo.length !== 0) {
|
|
47
|
-
writer.uint32(26).bytes(message.identificationNo);
|
|
48
|
-
}
|
|
49
|
-
if (message.type !== 0) {
|
|
50
|
-
writer.uint32(32).int32(message.type);
|
|
51
|
-
}
|
|
52
|
-
if (message.storage !== "") {
|
|
53
|
-
writer.uint32(42).string(message.storage);
|
|
54
|
-
}
|
|
55
|
-
if (message.path !== "") {
|
|
56
|
-
writer.uint32(50).string(message.path);
|
|
57
|
-
}
|
|
58
|
-
if (message.mime !== "") {
|
|
59
|
-
writer.uint32(58).string(message.mime);
|
|
60
|
-
}
|
|
61
|
-
if (message.codec !== undefined) {
|
|
62
|
-
writer.uint32(66).string(message.codec);
|
|
63
|
-
}
|
|
64
|
-
if (message.size !== 0) {
|
|
65
|
-
writer.uint32(72).uint32(message.size);
|
|
66
|
-
}
|
|
67
|
-
if (message.location !== undefined) {
|
|
68
|
-
Data.encode(message.location, writer.uint32(82).fork()).join();
|
|
69
|
-
}
|
|
70
|
-
if (message.createdAt !== undefined) {
|
|
71
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(90).fork()).join();
|
|
72
|
-
}
|
|
73
|
-
return writer;
|
|
74
|
-
},
|
|
75
|
-
decode(input, length) {
|
|
76
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
77
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
-
const message = createBaseGallery();
|
|
79
|
-
while (reader.pos < end) {
|
|
80
|
-
const tag = reader.uint32();
|
|
81
|
-
switch (tag >>> 3) {
|
|
82
|
-
case 1: {
|
|
83
|
-
if (tag !== 8) {
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
message.id = Long.fromString(reader.uint64().toString(), true);
|
|
87
|
-
continue;
|
|
88
|
-
}
|
|
89
|
-
case 2: {
|
|
90
|
-
if (tag !== 16) {
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
message.deviceId = Long.fromString(reader.uint64().toString(), true);
|
|
94
|
-
continue;
|
|
95
|
-
}
|
|
96
|
-
case 3: {
|
|
97
|
-
if (tag !== 26) {
|
|
98
|
-
break;
|
|
99
|
-
}
|
|
100
|
-
message.identificationNo = reader.bytes();
|
|
101
|
-
continue;
|
|
102
|
-
}
|
|
103
|
-
case 4: {
|
|
104
|
-
if (tag !== 32) {
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
message.type = reader.int32();
|
|
108
|
-
continue;
|
|
109
|
-
}
|
|
110
|
-
case 5: {
|
|
111
|
-
if (tag !== 42) {
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
message.storage = reader.string();
|
|
115
|
-
continue;
|
|
116
|
-
}
|
|
117
|
-
case 6: {
|
|
118
|
-
if (tag !== 50) {
|
|
119
|
-
break;
|
|
120
|
-
}
|
|
121
|
-
message.path = reader.string();
|
|
122
|
-
continue;
|
|
123
|
-
}
|
|
124
|
-
case 7: {
|
|
125
|
-
if (tag !== 58) {
|
|
126
|
-
break;
|
|
127
|
-
}
|
|
128
|
-
message.mime = reader.string();
|
|
129
|
-
continue;
|
|
130
|
-
}
|
|
131
|
-
case 8: {
|
|
132
|
-
if (tag !== 66) {
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
message.codec = reader.string();
|
|
136
|
-
continue;
|
|
137
|
-
}
|
|
138
|
-
case 9: {
|
|
139
|
-
if (tag !== 72) {
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
message.size = reader.uint32();
|
|
143
|
-
continue;
|
|
144
|
-
}
|
|
145
|
-
case 10: {
|
|
146
|
-
if (tag !== 82) {
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
message.location = Data.decode(reader, reader.uint32());
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
case 11: {
|
|
153
|
-
if (tag !== 90) {
|
|
154
|
-
break;
|
|
155
|
-
}
|
|
156
|
-
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
157
|
-
continue;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
reader.skip(tag & 7);
|
|
164
|
-
}
|
|
165
|
-
return message;
|
|
166
|
-
},
|
|
167
|
-
create(base) {
|
|
168
|
-
return Gallery.fromPartial(base ?? {});
|
|
169
|
-
},
|
|
170
|
-
fromPartial(object) {
|
|
171
|
-
const message = createBaseGallery();
|
|
172
|
-
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
173
|
-
message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
|
|
174
|
-
? Long.fromValue(object.deviceId)
|
|
175
|
-
: Long.UZERO;
|
|
176
|
-
message.identificationNo = object.identificationNo ?? new Uint8Array(0);
|
|
177
|
-
message.type = object.type ?? 0;
|
|
178
|
-
message.storage = object.storage ?? "";
|
|
179
|
-
message.path = object.path ?? "";
|
|
180
|
-
message.mime = object.mime ?? "";
|
|
181
|
-
message.codec = object.codec ?? undefined;
|
|
182
|
-
message.size = object.size ?? 0;
|
|
183
|
-
message.location = (object.location !== undefined && object.location !== null)
|
|
184
|
-
? Data.fromPartial(object.location)
|
|
185
|
-
: undefined;
|
|
186
|
-
message.createdAt = object.createdAt ?? undefined;
|
|
187
|
-
return message;
|
|
188
|
-
},
|
|
189
|
-
};
|
|
190
|
-
function createBaseIoList() {
|
|
191
|
-
return { items: {} };
|
|
192
|
-
}
|
|
193
|
-
export const IoList = {
|
|
194
|
-
encode(message, writer = new BinaryWriter()) {
|
|
195
|
-
globalThis.Object.entries(message.items).forEach(([key, value]) => {
|
|
196
|
-
IoList_ItemsEntry.encode({ key: key, value }, writer.uint32(10).fork()).join();
|
|
197
|
-
});
|
|
198
|
-
return writer;
|
|
199
|
-
},
|
|
200
|
-
decode(input, length) {
|
|
201
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
202
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
203
|
-
const message = createBaseIoList();
|
|
204
|
-
while (reader.pos < end) {
|
|
205
|
-
const tag = reader.uint32();
|
|
206
|
-
switch (tag >>> 3) {
|
|
207
|
-
case 1: {
|
|
208
|
-
if (tag !== 10) {
|
|
209
|
-
break;
|
|
210
|
-
}
|
|
211
|
-
const entry1 = IoList_ItemsEntry.decode(reader, reader.uint32());
|
|
212
|
-
if (entry1.value !== undefined) {
|
|
213
|
-
message.items[entry1.key] = entry1.value;
|
|
214
|
-
}
|
|
215
|
-
continue;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
219
|
-
break;
|
|
220
|
-
}
|
|
221
|
-
reader.skip(tag & 7);
|
|
222
|
-
}
|
|
223
|
-
return message;
|
|
224
|
-
},
|
|
225
|
-
create(base) {
|
|
226
|
-
return IoList.fromPartial(base ?? {});
|
|
227
|
-
},
|
|
228
|
-
fromPartial(object) {
|
|
229
|
-
const message = createBaseIoList();
|
|
230
|
-
message.items = globalThis.Object.entries(object.items ?? {}).reduce((acc, [key, value]) => {
|
|
231
|
-
if (value !== undefined) {
|
|
232
|
-
acc[globalThis.Number(key)] = value;
|
|
233
|
-
}
|
|
234
|
-
return acc;
|
|
235
|
-
}, {});
|
|
236
|
-
return message;
|
|
237
|
-
},
|
|
238
|
-
};
|
|
239
|
-
function createBaseIoList_ItemsEntry() {
|
|
240
|
-
return { key: 0, value: new Uint8Array(0) };
|
|
241
|
-
}
|
|
242
|
-
export const IoList_ItemsEntry = {
|
|
243
|
-
encode(message, writer = new BinaryWriter()) {
|
|
244
|
-
if (message.key !== 0) {
|
|
245
|
-
writer.uint32(8).uint32(message.key);
|
|
246
|
-
}
|
|
247
|
-
if (message.value.length !== 0) {
|
|
248
|
-
writer.uint32(18).bytes(message.value);
|
|
249
|
-
}
|
|
250
|
-
return writer;
|
|
251
|
-
},
|
|
252
|
-
decode(input, length) {
|
|
253
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
254
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
255
|
-
const message = createBaseIoList_ItemsEntry();
|
|
256
|
-
while (reader.pos < end) {
|
|
257
|
-
const tag = reader.uint32();
|
|
258
|
-
switch (tag >>> 3) {
|
|
259
|
-
case 1: {
|
|
260
|
-
if (tag !== 8) {
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
message.key = reader.uint32();
|
|
264
|
-
continue;
|
|
265
|
-
}
|
|
266
|
-
case 2: {
|
|
267
|
-
if (tag !== 18) {
|
|
268
|
-
break;
|
|
269
|
-
}
|
|
270
|
-
message.value = reader.bytes();
|
|
271
|
-
continue;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
275
|
-
break;
|
|
276
|
-
}
|
|
277
|
-
reader.skip(tag & 7);
|
|
278
|
-
}
|
|
279
|
-
return message;
|
|
280
|
-
},
|
|
281
|
-
create(base) {
|
|
282
|
-
return IoList_ItemsEntry.fromPartial(base ?? {});
|
|
283
|
-
},
|
|
284
|
-
fromPartial(object) {
|
|
285
|
-
const message = createBaseIoList_ItemsEntry();
|
|
286
|
-
message.key = object.key ?? 0;
|
|
287
|
-
message.value = object.value ?? new Uint8Array(0);
|
|
288
|
-
return message;
|
|
289
|
-
},
|
|
290
|
-
};
|
|
291
|
-
function createBaseArioCache() {
|
|
292
|
-
return { towing: undefined, door: undefined, unplug: undefined, ignition: undefined, movement: undefined };
|
|
293
|
-
}
|
|
294
|
-
export const ArioCache = {
|
|
295
|
-
encode(message, writer = new BinaryWriter()) {
|
|
296
|
-
if (message.towing !== undefined) {
|
|
297
|
-
writer.uint32(8).bool(message.towing);
|
|
298
|
-
}
|
|
299
|
-
if (message.door !== undefined) {
|
|
300
|
-
writer.uint32(16).bool(message.door);
|
|
301
|
-
}
|
|
302
|
-
if (message.unplug !== undefined) {
|
|
303
|
-
writer.uint32(24).bool(message.unplug);
|
|
304
|
-
}
|
|
305
|
-
if (message.ignition !== undefined) {
|
|
306
|
-
writer.uint32(32).bool(message.ignition);
|
|
307
|
-
}
|
|
308
|
-
if (message.movement !== undefined) {
|
|
309
|
-
writer.uint32(40).bool(message.movement);
|
|
310
|
-
}
|
|
311
|
-
return writer;
|
|
312
|
-
},
|
|
313
|
-
decode(input, length) {
|
|
314
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
315
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
316
|
-
const message = createBaseArioCache();
|
|
317
|
-
while (reader.pos < end) {
|
|
318
|
-
const tag = reader.uint32();
|
|
319
|
-
switch (tag >>> 3) {
|
|
320
|
-
case 1: {
|
|
321
|
-
if (tag !== 8) {
|
|
322
|
-
break;
|
|
323
|
-
}
|
|
324
|
-
message.towing = reader.bool();
|
|
325
|
-
continue;
|
|
326
|
-
}
|
|
327
|
-
case 2: {
|
|
328
|
-
if (tag !== 16) {
|
|
329
|
-
break;
|
|
330
|
-
}
|
|
331
|
-
message.door = reader.bool();
|
|
332
|
-
continue;
|
|
333
|
-
}
|
|
334
|
-
case 3: {
|
|
335
|
-
if (tag !== 24) {
|
|
336
|
-
break;
|
|
337
|
-
}
|
|
338
|
-
message.unplug = reader.bool();
|
|
339
|
-
continue;
|
|
340
|
-
}
|
|
341
|
-
case 4: {
|
|
342
|
-
if (tag !== 32) {
|
|
343
|
-
break;
|
|
344
|
-
}
|
|
345
|
-
message.ignition = reader.bool();
|
|
346
|
-
continue;
|
|
347
|
-
}
|
|
348
|
-
case 5: {
|
|
349
|
-
if (tag !== 40) {
|
|
350
|
-
break;
|
|
351
|
-
}
|
|
352
|
-
message.movement = reader.bool();
|
|
353
|
-
continue;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
357
|
-
break;
|
|
358
|
-
}
|
|
359
|
-
reader.skip(tag & 7);
|
|
360
|
-
}
|
|
361
|
-
return message;
|
|
362
|
-
},
|
|
363
|
-
create(base) {
|
|
364
|
-
return ArioCache.fromPartial(base ?? {});
|
|
365
|
-
},
|
|
366
|
-
fromPartial(object) {
|
|
367
|
-
const message = createBaseArioCache();
|
|
368
|
-
message.towing = object.towing ?? undefined;
|
|
369
|
-
message.door = object.door ?? undefined;
|
|
370
|
-
message.unplug = object.unplug ?? undefined;
|
|
371
|
-
message.ignition = object.ignition ?? undefined;
|
|
372
|
-
message.movement = object.movement ?? undefined;
|
|
373
|
-
return message;
|
|
374
|
-
},
|
|
375
|
-
};
|
|
376
|
-
function createBaseHeartbeatCache() {
|
|
377
|
-
return {
|
|
378
|
-
ignition: undefined,
|
|
379
|
-
gsm: undefined,
|
|
380
|
-
batteryPercent: undefined,
|
|
381
|
-
externalVoltage: undefined,
|
|
382
|
-
commandId: undefined,
|
|
383
|
-
command: undefined,
|
|
384
|
-
mileage: undefined,
|
|
385
|
-
terminalId: undefined,
|
|
386
|
-
temperature: undefined,
|
|
387
|
-
ai1: undefined,
|
|
388
|
-
odysseyCommandId: undefined,
|
|
389
|
-
scheduleAlert: undefined,
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
export const HeartbeatCache = {
|
|
393
|
-
encode(message, writer = new BinaryWriter()) {
|
|
394
|
-
if (message.ignition !== undefined) {
|
|
395
|
-
writer.uint32(8).bool(message.ignition);
|
|
396
|
-
}
|
|
397
|
-
if (message.gsm !== undefined) {
|
|
398
|
-
writer.uint32(16).uint32(message.gsm);
|
|
399
|
-
}
|
|
400
|
-
if (message.batteryPercent !== undefined) {
|
|
401
|
-
writer.uint32(24).uint32(message.batteryPercent);
|
|
402
|
-
}
|
|
403
|
-
if (message.externalVoltage !== undefined) {
|
|
404
|
-
writer.uint32(32).uint32(message.externalVoltage);
|
|
405
|
-
}
|
|
406
|
-
if (message.commandId !== undefined) {
|
|
407
|
-
writer.uint32(40).uint64(message.commandId.toString());
|
|
408
|
-
}
|
|
409
|
-
if (message.command !== undefined) {
|
|
410
|
-
writer.uint32(50).string(message.command);
|
|
411
|
-
}
|
|
412
|
-
if (message.mileage !== undefined) {
|
|
413
|
-
writer.uint32(56).uint64(message.mileage.toString());
|
|
414
|
-
}
|
|
415
|
-
if (message.terminalId !== undefined) {
|
|
416
|
-
writer.uint32(64).uint32(message.terminalId);
|
|
417
|
-
}
|
|
418
|
-
if (message.temperature !== undefined) {
|
|
419
|
-
writer.uint32(77).float(message.temperature);
|
|
420
|
-
}
|
|
421
|
-
if (message.ai1 !== undefined) {
|
|
422
|
-
writer.uint32(80).uint32(message.ai1);
|
|
423
|
-
}
|
|
424
|
-
if (message.odysseyCommandId !== undefined) {
|
|
425
|
-
writer.uint32(88).uint64(message.odysseyCommandId.toString());
|
|
426
|
-
}
|
|
427
|
-
if (message.scheduleAlert !== undefined) {
|
|
428
|
-
writer.uint32(96).int32(message.scheduleAlert);
|
|
429
|
-
}
|
|
430
|
-
return writer;
|
|
431
|
-
},
|
|
432
|
-
decode(input, length) {
|
|
433
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
434
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
435
|
-
const message = createBaseHeartbeatCache();
|
|
436
|
-
while (reader.pos < end) {
|
|
437
|
-
const tag = reader.uint32();
|
|
438
|
-
switch (tag >>> 3) {
|
|
439
|
-
case 1: {
|
|
440
|
-
if (tag !== 8) {
|
|
441
|
-
break;
|
|
442
|
-
}
|
|
443
|
-
message.ignition = reader.bool();
|
|
444
|
-
continue;
|
|
445
|
-
}
|
|
446
|
-
case 2: {
|
|
447
|
-
if (tag !== 16) {
|
|
448
|
-
break;
|
|
449
|
-
}
|
|
450
|
-
message.gsm = reader.uint32();
|
|
451
|
-
continue;
|
|
452
|
-
}
|
|
453
|
-
case 3: {
|
|
454
|
-
if (tag !== 24) {
|
|
455
|
-
break;
|
|
456
|
-
}
|
|
457
|
-
message.batteryPercent = reader.uint32();
|
|
458
|
-
continue;
|
|
459
|
-
}
|
|
460
|
-
case 4: {
|
|
461
|
-
if (tag !== 32) {
|
|
462
|
-
break;
|
|
463
|
-
}
|
|
464
|
-
message.externalVoltage = reader.uint32();
|
|
465
|
-
continue;
|
|
466
|
-
}
|
|
467
|
-
case 5: {
|
|
468
|
-
if (tag !== 40) {
|
|
469
|
-
break;
|
|
470
|
-
}
|
|
471
|
-
message.commandId = Long.fromString(reader.uint64().toString(), true);
|
|
472
|
-
continue;
|
|
473
|
-
}
|
|
474
|
-
case 6: {
|
|
475
|
-
if (tag !== 50) {
|
|
476
|
-
break;
|
|
477
|
-
}
|
|
478
|
-
message.command = reader.string();
|
|
479
|
-
continue;
|
|
480
|
-
}
|
|
481
|
-
case 7: {
|
|
482
|
-
if (tag !== 56) {
|
|
483
|
-
break;
|
|
484
|
-
}
|
|
485
|
-
message.mileage = Long.fromString(reader.uint64().toString(), true);
|
|
486
|
-
continue;
|
|
487
|
-
}
|
|
488
|
-
case 8: {
|
|
489
|
-
if (tag !== 64) {
|
|
490
|
-
break;
|
|
491
|
-
}
|
|
492
|
-
message.terminalId = reader.uint32();
|
|
493
|
-
continue;
|
|
494
|
-
}
|
|
495
|
-
case 9: {
|
|
496
|
-
if (tag !== 77) {
|
|
497
|
-
break;
|
|
498
|
-
}
|
|
499
|
-
message.temperature = reader.float();
|
|
500
|
-
continue;
|
|
501
|
-
}
|
|
502
|
-
case 10: {
|
|
503
|
-
if (tag !== 80) {
|
|
504
|
-
break;
|
|
505
|
-
}
|
|
506
|
-
message.ai1 = reader.uint32();
|
|
507
|
-
continue;
|
|
508
|
-
}
|
|
509
|
-
case 11: {
|
|
510
|
-
if (tag !== 88) {
|
|
511
|
-
break;
|
|
512
|
-
}
|
|
513
|
-
message.odysseyCommandId = Long.fromString(reader.uint64().toString(), true);
|
|
514
|
-
continue;
|
|
515
|
-
}
|
|
516
|
-
case 12: {
|
|
517
|
-
if (tag !== 96) {
|
|
518
|
-
break;
|
|
519
|
-
}
|
|
520
|
-
message.scheduleAlert = reader.int32();
|
|
521
|
-
continue;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
525
|
-
break;
|
|
526
|
-
}
|
|
527
|
-
reader.skip(tag & 7);
|
|
528
|
-
}
|
|
529
|
-
return message;
|
|
530
|
-
},
|
|
531
|
-
create(base) {
|
|
532
|
-
return HeartbeatCache.fromPartial(base ?? {});
|
|
533
|
-
},
|
|
534
|
-
fromPartial(object) {
|
|
535
|
-
const message = createBaseHeartbeatCache();
|
|
536
|
-
message.ignition = object.ignition ?? undefined;
|
|
537
|
-
message.gsm = object.gsm ?? undefined;
|
|
538
|
-
message.batteryPercent = object.batteryPercent ?? undefined;
|
|
539
|
-
message.externalVoltage = object.externalVoltage ?? undefined;
|
|
540
|
-
message.commandId = (object.commandId !== undefined && object.commandId !== null)
|
|
541
|
-
? Long.fromValue(object.commandId)
|
|
542
|
-
: undefined;
|
|
543
|
-
message.command = object.command ?? undefined;
|
|
544
|
-
message.mileage = (object.mileage !== undefined && object.mileage !== null)
|
|
545
|
-
? Long.fromValue(object.mileage)
|
|
546
|
-
: undefined;
|
|
547
|
-
message.terminalId = object.terminalId ?? undefined;
|
|
548
|
-
message.temperature = object.temperature ?? undefined;
|
|
549
|
-
message.ai1 = object.ai1 ?? undefined;
|
|
550
|
-
message.odysseyCommandId = (object.odysseyCommandId !== undefined && object.odysseyCommandId !== null)
|
|
551
|
-
? Long.fromValue(object.odysseyCommandId)
|
|
552
|
-
: undefined;
|
|
553
|
-
message.scheduleAlert = object.scheduleAlert ?? undefined;
|
|
554
|
-
return message;
|
|
555
|
-
},
|
|
556
|
-
};
|
|
557
|
-
function createBaseSinotrackCache() {
|
|
558
|
-
return { gpsTime: Long.ZERO, fuelUsedGps: undefined, ignition: undefined, commandId: undefined, command: undefined };
|
|
559
|
-
}
|
|
560
|
-
export const SinotrackCache = {
|
|
561
|
-
encode(message, writer = new BinaryWriter()) {
|
|
562
|
-
if (!message.gpsTime.equals(Long.ZERO)) {
|
|
563
|
-
writer.uint32(8).int64(message.gpsTime.toString());
|
|
564
|
-
}
|
|
565
|
-
if (message.fuelUsedGps !== undefined) {
|
|
566
|
-
writer.uint32(16).uint32(message.fuelUsedGps);
|
|
567
|
-
}
|
|
568
|
-
if (message.ignition !== undefined) {
|
|
569
|
-
writer.uint32(24).bool(message.ignition);
|
|
570
|
-
}
|
|
571
|
-
if (message.commandId !== undefined) {
|
|
572
|
-
writer.uint32(40).uint64(message.commandId.toString());
|
|
573
|
-
}
|
|
574
|
-
if (message.command !== undefined) {
|
|
575
|
-
writer.uint32(50).string(message.command);
|
|
576
|
-
}
|
|
577
|
-
return writer;
|
|
578
|
-
},
|
|
579
|
-
decode(input, length) {
|
|
580
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
581
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
582
|
-
const message = createBaseSinotrackCache();
|
|
583
|
-
while (reader.pos < end) {
|
|
584
|
-
const tag = reader.uint32();
|
|
585
|
-
switch (tag >>> 3) {
|
|
586
|
-
case 1: {
|
|
587
|
-
if (tag !== 8) {
|
|
588
|
-
break;
|
|
589
|
-
}
|
|
590
|
-
message.gpsTime = Long.fromString(reader.int64().toString());
|
|
591
|
-
continue;
|
|
592
|
-
}
|
|
593
|
-
case 2: {
|
|
594
|
-
if (tag !== 16) {
|
|
595
|
-
break;
|
|
596
|
-
}
|
|
597
|
-
message.fuelUsedGps = reader.uint32();
|
|
598
|
-
continue;
|
|
599
|
-
}
|
|
600
|
-
case 3: {
|
|
601
|
-
if (tag !== 24) {
|
|
602
|
-
break;
|
|
603
|
-
}
|
|
604
|
-
message.ignition = reader.bool();
|
|
605
|
-
continue;
|
|
606
|
-
}
|
|
607
|
-
case 5: {
|
|
608
|
-
if (tag !== 40) {
|
|
609
|
-
break;
|
|
610
|
-
}
|
|
611
|
-
message.commandId = Long.fromString(reader.uint64().toString(), true);
|
|
612
|
-
continue;
|
|
613
|
-
}
|
|
614
|
-
case 6: {
|
|
615
|
-
if (tag !== 50) {
|
|
616
|
-
break;
|
|
617
|
-
}
|
|
618
|
-
message.command = reader.string();
|
|
619
|
-
continue;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
623
|
-
break;
|
|
624
|
-
}
|
|
625
|
-
reader.skip(tag & 7);
|
|
626
|
-
}
|
|
627
|
-
return message;
|
|
628
|
-
},
|
|
629
|
-
create(base) {
|
|
630
|
-
return SinotrackCache.fromPartial(base ?? {});
|
|
631
|
-
},
|
|
632
|
-
fromPartial(object) {
|
|
633
|
-
const message = createBaseSinotrackCache();
|
|
634
|
-
message.gpsTime = (object.gpsTime !== undefined && object.gpsTime !== null)
|
|
635
|
-
? Long.fromValue(object.gpsTime)
|
|
636
|
-
: Long.ZERO;
|
|
637
|
-
message.fuelUsedGps = object.fuelUsedGps ?? undefined;
|
|
638
|
-
message.ignition = object.ignition ?? undefined;
|
|
639
|
-
message.commandId = (object.commandId !== undefined && object.commandId !== null)
|
|
640
|
-
? Long.fromValue(object.commandId)
|
|
641
|
-
: undefined;
|
|
642
|
-
message.command = object.command ?? undefined;
|
|
643
|
-
return message;
|
|
644
|
-
},
|
|
645
|
-
};
|
|
646
|
-
function createBaseGitinamaCache() {
|
|
647
|
-
return { lat: 0, lng: 0 };
|
|
648
|
-
}
|
|
649
|
-
export const GitinamaCache = {
|
|
650
|
-
encode(message, writer = new BinaryWriter()) {
|
|
651
|
-
if (message.lat !== 0) {
|
|
652
|
-
writer.uint32(13).float(message.lat);
|
|
653
|
-
}
|
|
654
|
-
if (message.lng !== 0) {
|
|
655
|
-
writer.uint32(21).float(message.lng);
|
|
656
|
-
}
|
|
657
|
-
return writer;
|
|
658
|
-
},
|
|
659
|
-
decode(input, length) {
|
|
660
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
661
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
662
|
-
const message = createBaseGitinamaCache();
|
|
663
|
-
while (reader.pos < end) {
|
|
664
|
-
const tag = reader.uint32();
|
|
665
|
-
switch (tag >>> 3) {
|
|
666
|
-
case 1: {
|
|
667
|
-
if (tag !== 13) {
|
|
668
|
-
break;
|
|
669
|
-
}
|
|
670
|
-
message.lat = reader.float();
|
|
671
|
-
continue;
|
|
672
|
-
}
|
|
673
|
-
case 2: {
|
|
674
|
-
if (tag !== 21) {
|
|
675
|
-
break;
|
|
676
|
-
}
|
|
677
|
-
message.lng = reader.float();
|
|
678
|
-
continue;
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
682
|
-
break;
|
|
683
|
-
}
|
|
684
|
-
reader.skip(tag & 7);
|
|
685
|
-
}
|
|
686
|
-
return message;
|
|
687
|
-
},
|
|
688
|
-
create(base) {
|
|
689
|
-
return GitinamaCache.fromPartial(base ?? {});
|
|
690
|
-
},
|
|
691
|
-
fromPartial(object) {
|
|
692
|
-
const message = createBaseGitinamaCache();
|
|
693
|
-
message.lat = object.lat ?? 0;
|
|
694
|
-
message.lng = object.lng ?? 0;
|
|
695
|
-
return message;
|
|
696
|
-
},
|
|
697
|
-
};
|
|
698
|
-
function createBaseChargeLog() {
|
|
699
|
-
return {
|
|
700
|
-
id: Long.UZERO,
|
|
701
|
-
userId: undefined,
|
|
702
|
-
deviceId: Long.UZERO,
|
|
703
|
-
imei: Long.UZERO,
|
|
704
|
-
objectId: undefined,
|
|
705
|
-
objectType: undefined,
|
|
706
|
-
type: 0,
|
|
707
|
-
description: undefined,
|
|
708
|
-
ip: undefined,
|
|
709
|
-
userAgent: undefined,
|
|
710
|
-
previousExpiration: undefined,
|
|
711
|
-
nextExpiration: undefined,
|
|
712
|
-
isUnlimited: false,
|
|
713
|
-
refund: false,
|
|
714
|
-
createdAt: undefined,
|
|
715
|
-
updatedAt: undefined,
|
|
716
|
-
};
|
|
717
|
-
}
|
|
718
|
-
export const ChargeLog = {
|
|
719
|
-
encode(message, writer = new BinaryWriter()) {
|
|
720
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
721
|
-
writer.uint32(8).uint64(message.id.toString());
|
|
722
|
-
}
|
|
723
|
-
if (message.userId !== undefined) {
|
|
724
|
-
writer.uint32(16).uint64(message.userId.toString());
|
|
725
|
-
}
|
|
726
|
-
if (!message.deviceId.equals(Long.UZERO)) {
|
|
727
|
-
writer.uint32(24).uint64(message.deviceId.toString());
|
|
728
|
-
}
|
|
729
|
-
if (!message.imei.equals(Long.UZERO)) {
|
|
730
|
-
writer.uint32(32).uint64(message.imei.toString());
|
|
731
|
-
}
|
|
732
|
-
if (message.objectId !== undefined) {
|
|
733
|
-
writer.uint32(40).uint64(message.objectId.toString());
|
|
734
|
-
}
|
|
735
|
-
if (message.objectType !== undefined) {
|
|
736
|
-
writer.uint32(50).string(message.objectType);
|
|
737
|
-
}
|
|
738
|
-
if (message.type !== 0) {
|
|
739
|
-
writer.uint32(56).int32(message.type);
|
|
740
|
-
}
|
|
741
|
-
if (message.description !== undefined) {
|
|
742
|
-
writer.uint32(66).string(message.description);
|
|
743
|
-
}
|
|
744
|
-
if (message.ip !== undefined) {
|
|
745
|
-
writer.uint32(74).string(message.ip);
|
|
746
|
-
}
|
|
747
|
-
if (message.userAgent !== undefined) {
|
|
748
|
-
writer.uint32(82).string(message.userAgent);
|
|
749
|
-
}
|
|
750
|
-
if (message.previousExpiration !== undefined) {
|
|
751
|
-
Timestamp.encode(toTimestamp(message.previousExpiration), writer.uint32(90).fork()).join();
|
|
752
|
-
}
|
|
753
|
-
if (message.nextExpiration !== undefined) {
|
|
754
|
-
Timestamp.encode(toTimestamp(message.nextExpiration), writer.uint32(98).fork()).join();
|
|
755
|
-
}
|
|
756
|
-
if (message.isUnlimited !== false) {
|
|
757
|
-
writer.uint32(104).bool(message.isUnlimited);
|
|
758
|
-
}
|
|
759
|
-
if (message.refund !== false) {
|
|
760
|
-
writer.uint32(112).bool(message.refund);
|
|
761
|
-
}
|
|
762
|
-
if (message.createdAt !== undefined) {
|
|
763
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(122).fork()).join();
|
|
764
|
-
}
|
|
765
|
-
if (message.updatedAt !== undefined) {
|
|
766
|
-
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(130).fork()).join();
|
|
767
|
-
}
|
|
768
|
-
return writer;
|
|
769
|
-
},
|
|
770
|
-
decode(input, length) {
|
|
771
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
772
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
773
|
-
const message = createBaseChargeLog();
|
|
774
|
-
while (reader.pos < end) {
|
|
775
|
-
const tag = reader.uint32();
|
|
776
|
-
switch (tag >>> 3) {
|
|
777
|
-
case 1: {
|
|
778
|
-
if (tag !== 8) {
|
|
779
|
-
break;
|
|
780
|
-
}
|
|
781
|
-
message.id = Long.fromString(reader.uint64().toString(), true);
|
|
782
|
-
continue;
|
|
783
|
-
}
|
|
784
|
-
case 2: {
|
|
785
|
-
if (tag !== 16) {
|
|
786
|
-
break;
|
|
787
|
-
}
|
|
788
|
-
message.userId = Long.fromString(reader.uint64().toString(), true);
|
|
789
|
-
continue;
|
|
790
|
-
}
|
|
791
|
-
case 3: {
|
|
792
|
-
if (tag !== 24) {
|
|
793
|
-
break;
|
|
794
|
-
}
|
|
795
|
-
message.deviceId = Long.fromString(reader.uint64().toString(), true);
|
|
796
|
-
continue;
|
|
797
|
-
}
|
|
798
|
-
case 4: {
|
|
799
|
-
if (tag !== 32) {
|
|
800
|
-
break;
|
|
801
|
-
}
|
|
802
|
-
message.imei = Long.fromString(reader.uint64().toString(), true);
|
|
803
|
-
continue;
|
|
804
|
-
}
|
|
805
|
-
case 5: {
|
|
806
|
-
if (tag !== 40) {
|
|
807
|
-
break;
|
|
808
|
-
}
|
|
809
|
-
message.objectId = Long.fromString(reader.uint64().toString(), true);
|
|
810
|
-
continue;
|
|
811
|
-
}
|
|
812
|
-
case 6: {
|
|
813
|
-
if (tag !== 50) {
|
|
814
|
-
break;
|
|
815
|
-
}
|
|
816
|
-
message.objectType = reader.string();
|
|
817
|
-
continue;
|
|
818
|
-
}
|
|
819
|
-
case 7: {
|
|
820
|
-
if (tag !== 56) {
|
|
821
|
-
break;
|
|
822
|
-
}
|
|
823
|
-
message.type = reader.int32();
|
|
824
|
-
continue;
|
|
825
|
-
}
|
|
826
|
-
case 8: {
|
|
827
|
-
if (tag !== 66) {
|
|
828
|
-
break;
|
|
829
|
-
}
|
|
830
|
-
message.description = reader.string();
|
|
831
|
-
continue;
|
|
832
|
-
}
|
|
833
|
-
case 9: {
|
|
834
|
-
if (tag !== 74) {
|
|
835
|
-
break;
|
|
836
|
-
}
|
|
837
|
-
message.ip = reader.string();
|
|
838
|
-
continue;
|
|
839
|
-
}
|
|
840
|
-
case 10: {
|
|
841
|
-
if (tag !== 82) {
|
|
842
|
-
break;
|
|
843
|
-
}
|
|
844
|
-
message.userAgent = reader.string();
|
|
845
|
-
continue;
|
|
846
|
-
}
|
|
847
|
-
case 11: {
|
|
848
|
-
if (tag !== 90) {
|
|
849
|
-
break;
|
|
850
|
-
}
|
|
851
|
-
message.previousExpiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
852
|
-
continue;
|
|
853
|
-
}
|
|
854
|
-
case 12: {
|
|
855
|
-
if (tag !== 98) {
|
|
856
|
-
break;
|
|
857
|
-
}
|
|
858
|
-
message.nextExpiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
859
|
-
continue;
|
|
860
|
-
}
|
|
861
|
-
case 13: {
|
|
862
|
-
if (tag !== 104) {
|
|
863
|
-
break;
|
|
864
|
-
}
|
|
865
|
-
message.isUnlimited = reader.bool();
|
|
866
|
-
continue;
|
|
867
|
-
}
|
|
868
|
-
case 14: {
|
|
869
|
-
if (tag !== 112) {
|
|
870
|
-
break;
|
|
871
|
-
}
|
|
872
|
-
message.refund = reader.bool();
|
|
873
|
-
continue;
|
|
874
|
-
}
|
|
875
|
-
case 15: {
|
|
876
|
-
if (tag !== 122) {
|
|
877
|
-
break;
|
|
878
|
-
}
|
|
879
|
-
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
880
|
-
continue;
|
|
881
|
-
}
|
|
882
|
-
case 16: {
|
|
883
|
-
if (tag !== 130) {
|
|
884
|
-
break;
|
|
885
|
-
}
|
|
886
|
-
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
887
|
-
continue;
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
891
|
-
break;
|
|
892
|
-
}
|
|
893
|
-
reader.skip(tag & 7);
|
|
894
|
-
}
|
|
895
|
-
return message;
|
|
896
|
-
},
|
|
897
|
-
create(base) {
|
|
898
|
-
return ChargeLog.fromPartial(base ?? {});
|
|
899
|
-
},
|
|
900
|
-
fromPartial(object) {
|
|
901
|
-
const message = createBaseChargeLog();
|
|
902
|
-
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
903
|
-
message.userId = (object.userId !== undefined && object.userId !== null)
|
|
904
|
-
? Long.fromValue(object.userId)
|
|
905
|
-
: undefined;
|
|
906
|
-
message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
|
|
907
|
-
? Long.fromValue(object.deviceId)
|
|
908
|
-
: Long.UZERO;
|
|
909
|
-
message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
|
|
910
|
-
message.objectId = (object.objectId !== undefined && object.objectId !== null)
|
|
911
|
-
? Long.fromValue(object.objectId)
|
|
912
|
-
: undefined;
|
|
913
|
-
message.objectType = object.objectType ?? undefined;
|
|
914
|
-
message.type = object.type ?? 0;
|
|
915
|
-
message.description = object.description ?? undefined;
|
|
916
|
-
message.ip = object.ip ?? undefined;
|
|
917
|
-
message.userAgent = object.userAgent ?? undefined;
|
|
918
|
-
message.previousExpiration = object.previousExpiration ?? undefined;
|
|
919
|
-
message.nextExpiration = object.nextExpiration ?? undefined;
|
|
920
|
-
message.isUnlimited = object.isUnlimited ?? false;
|
|
921
|
-
message.refund = object.refund ?? false;
|
|
922
|
-
message.createdAt = object.createdAt ?? undefined;
|
|
923
|
-
message.updatedAt = object.updatedAt ?? undefined;
|
|
924
|
-
return message;
|
|
925
|
-
},
|
|
926
|
-
};
|
|
927
|
-
function createBaseTrialLog() {
|
|
928
|
-
return { id: Long.UZERO, imei: Long.UZERO, createdAt: undefined };
|
|
929
|
-
}
|
|
930
|
-
export const TrialLog = {
|
|
931
|
-
encode(message, writer = new BinaryWriter()) {
|
|
932
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
933
|
-
writer.uint32(8).uint64(message.id.toString());
|
|
934
|
-
}
|
|
935
|
-
if (!message.imei.equals(Long.UZERO)) {
|
|
936
|
-
writer.uint32(16).uint64(message.imei.toString());
|
|
937
|
-
}
|
|
938
|
-
if (message.createdAt !== undefined) {
|
|
939
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(26).fork()).join();
|
|
940
|
-
}
|
|
941
|
-
return writer;
|
|
942
|
-
},
|
|
943
|
-
decode(input, length) {
|
|
944
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
945
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
946
|
-
const message = createBaseTrialLog();
|
|
947
|
-
while (reader.pos < end) {
|
|
948
|
-
const tag = reader.uint32();
|
|
949
|
-
switch (tag >>> 3) {
|
|
950
|
-
case 1: {
|
|
951
|
-
if (tag !== 8) {
|
|
952
|
-
break;
|
|
953
|
-
}
|
|
954
|
-
message.id = Long.fromString(reader.uint64().toString(), true);
|
|
955
|
-
continue;
|
|
956
|
-
}
|
|
957
|
-
case 2: {
|
|
958
|
-
if (tag !== 16) {
|
|
959
|
-
break;
|
|
960
|
-
}
|
|
961
|
-
message.imei = Long.fromString(reader.uint64().toString(), true);
|
|
962
|
-
continue;
|
|
963
|
-
}
|
|
964
|
-
case 3: {
|
|
965
|
-
if (tag !== 26) {
|
|
966
|
-
break;
|
|
967
|
-
}
|
|
968
|
-
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
969
|
-
continue;
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
973
|
-
break;
|
|
974
|
-
}
|
|
975
|
-
reader.skip(tag & 7);
|
|
976
|
-
}
|
|
977
|
-
return message;
|
|
978
|
-
},
|
|
979
|
-
create(base) {
|
|
980
|
-
return TrialLog.fromPartial(base ?? {});
|
|
981
|
-
},
|
|
982
|
-
fromPartial(object) {
|
|
983
|
-
const message = createBaseTrialLog();
|
|
984
|
-
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
985
|
-
message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
|
|
986
|
-
message.createdAt = object.createdAt ?? undefined;
|
|
987
|
-
return message;
|
|
988
|
-
},
|
|
989
|
-
};
|
|
990
|
-
function createBaseLiveLocation() {
|
|
991
|
-
return {
|
|
992
|
-
id: Long.UZERO,
|
|
993
|
-
organizationId: Long.UZERO,
|
|
994
|
-
createdBy: undefined,
|
|
995
|
-
updatedBy: undefined,
|
|
996
|
-
uuid: "",
|
|
997
|
-
expiresAt: undefined,
|
|
998
|
-
password: undefined,
|
|
999
|
-
createdAt: undefined,
|
|
1000
|
-
updatedAt: undefined,
|
|
1001
|
-
objects: [],
|
|
1002
|
-
};
|
|
1003
|
-
}
|
|
1004
|
-
export const LiveLocation = {
|
|
1005
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1006
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1007
|
-
writer.uint32(8).uint64(message.id.toString());
|
|
1008
|
-
}
|
|
1009
|
-
if (!message.organizationId.equals(Long.UZERO)) {
|
|
1010
|
-
writer.uint32(16).uint64(message.organizationId.toString());
|
|
1011
|
-
}
|
|
1012
|
-
if (message.createdBy !== undefined) {
|
|
1013
|
-
writer.uint32(24).uint64(message.createdBy.toString());
|
|
1014
|
-
}
|
|
1015
|
-
if (message.updatedBy !== undefined) {
|
|
1016
|
-
writer.uint32(32).uint64(message.updatedBy.toString());
|
|
1017
|
-
}
|
|
1018
|
-
if (message.uuid !== "") {
|
|
1019
|
-
writer.uint32(42).string(message.uuid);
|
|
1020
|
-
}
|
|
1021
|
-
if (message.expiresAt !== undefined) {
|
|
1022
|
-
Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(50).fork()).join();
|
|
1023
|
-
}
|
|
1024
|
-
if (message.password !== undefined) {
|
|
1025
|
-
writer.uint32(58).string(message.password);
|
|
1026
|
-
}
|
|
1027
|
-
if (message.createdAt !== undefined) {
|
|
1028
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(66).fork()).join();
|
|
1029
|
-
}
|
|
1030
|
-
if (message.updatedAt !== undefined) {
|
|
1031
|
-
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(74).fork()).join();
|
|
1032
|
-
}
|
|
1033
|
-
for (const v of message.objects) {
|
|
1034
|
-
LiveLocationRelated.encode(v, writer.uint32(82).fork()).join();
|
|
1035
|
-
}
|
|
1036
|
-
return writer;
|
|
1037
|
-
},
|
|
1038
|
-
decode(input, length) {
|
|
1039
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1040
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1041
|
-
const message = createBaseLiveLocation();
|
|
1042
|
-
while (reader.pos < end) {
|
|
1043
|
-
const tag = reader.uint32();
|
|
1044
|
-
switch (tag >>> 3) {
|
|
1045
|
-
case 1: {
|
|
1046
|
-
if (tag !== 8) {
|
|
1047
|
-
break;
|
|
1048
|
-
}
|
|
1049
|
-
message.id = Long.fromString(reader.uint64().toString(), true);
|
|
1050
|
-
continue;
|
|
1051
|
-
}
|
|
1052
|
-
case 2: {
|
|
1053
|
-
if (tag !== 16) {
|
|
1054
|
-
break;
|
|
1055
|
-
}
|
|
1056
|
-
message.organizationId = Long.fromString(reader.uint64().toString(), true);
|
|
1057
|
-
continue;
|
|
1058
|
-
}
|
|
1059
|
-
case 3: {
|
|
1060
|
-
if (tag !== 24) {
|
|
1061
|
-
break;
|
|
1062
|
-
}
|
|
1063
|
-
message.createdBy = Long.fromString(reader.uint64().toString(), true);
|
|
1064
|
-
continue;
|
|
1065
|
-
}
|
|
1066
|
-
case 4: {
|
|
1067
|
-
if (tag !== 32) {
|
|
1068
|
-
break;
|
|
1069
|
-
}
|
|
1070
|
-
message.updatedBy = Long.fromString(reader.uint64().toString(), true);
|
|
1071
|
-
continue;
|
|
1072
|
-
}
|
|
1073
|
-
case 5: {
|
|
1074
|
-
if (tag !== 42) {
|
|
1075
|
-
break;
|
|
1076
|
-
}
|
|
1077
|
-
message.uuid = reader.string();
|
|
1078
|
-
continue;
|
|
1079
|
-
}
|
|
1080
|
-
case 6: {
|
|
1081
|
-
if (tag !== 50) {
|
|
1082
|
-
break;
|
|
1083
|
-
}
|
|
1084
|
-
message.expiresAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1085
|
-
continue;
|
|
1086
|
-
}
|
|
1087
|
-
case 7: {
|
|
1088
|
-
if (tag !== 58) {
|
|
1089
|
-
break;
|
|
1090
|
-
}
|
|
1091
|
-
message.password = reader.string();
|
|
1092
|
-
continue;
|
|
1093
|
-
}
|
|
1094
|
-
case 8: {
|
|
1095
|
-
if (tag !== 66) {
|
|
1096
|
-
break;
|
|
1097
|
-
}
|
|
1098
|
-
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1099
|
-
continue;
|
|
1100
|
-
}
|
|
1101
|
-
case 9: {
|
|
1102
|
-
if (tag !== 74) {
|
|
1103
|
-
break;
|
|
1104
|
-
}
|
|
1105
|
-
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1106
|
-
continue;
|
|
1107
|
-
}
|
|
1108
|
-
case 10: {
|
|
1109
|
-
if (tag !== 82) {
|
|
1110
|
-
break;
|
|
1111
|
-
}
|
|
1112
|
-
message.objects.push(LiveLocationRelated.decode(reader, reader.uint32()));
|
|
1113
|
-
continue;
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1117
|
-
break;
|
|
1118
|
-
}
|
|
1119
|
-
reader.skip(tag & 7);
|
|
1120
|
-
}
|
|
1121
|
-
return message;
|
|
1122
|
-
},
|
|
1123
|
-
create(base) {
|
|
1124
|
-
return LiveLocation.fromPartial(base ?? {});
|
|
1125
|
-
},
|
|
1126
|
-
fromPartial(object) {
|
|
1127
|
-
const message = createBaseLiveLocation();
|
|
1128
|
-
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
1129
|
-
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
1130
|
-
? Long.fromValue(object.organizationId)
|
|
1131
|
-
: Long.UZERO;
|
|
1132
|
-
message.createdBy = (object.createdBy !== undefined && object.createdBy !== null)
|
|
1133
|
-
? Long.fromValue(object.createdBy)
|
|
1134
|
-
: undefined;
|
|
1135
|
-
message.updatedBy = (object.updatedBy !== undefined && object.updatedBy !== null)
|
|
1136
|
-
? Long.fromValue(object.updatedBy)
|
|
1137
|
-
: undefined;
|
|
1138
|
-
message.uuid = object.uuid ?? "";
|
|
1139
|
-
message.expiresAt = object.expiresAt ?? undefined;
|
|
1140
|
-
message.password = object.password ?? undefined;
|
|
1141
|
-
message.createdAt = object.createdAt ?? undefined;
|
|
1142
|
-
message.updatedAt = object.updatedAt ?? undefined;
|
|
1143
|
-
message.objects = object.objects?.map((e) => LiveLocationRelated.fromPartial(e)) || [];
|
|
1144
|
-
return message;
|
|
1145
|
-
},
|
|
1146
|
-
};
|
|
1147
|
-
function createBaseLiveLocationRelated() {
|
|
1148
|
-
return {
|
|
1149
|
-
id: Long.UZERO,
|
|
1150
|
-
liveLocationId: Long.UZERO,
|
|
1151
|
-
objectId: Long.UZERO,
|
|
1152
|
-
objectType: "",
|
|
1153
|
-
createdAt: undefined,
|
|
1154
|
-
updatedAt: undefined,
|
|
1155
|
-
};
|
|
1156
|
-
}
|
|
1157
|
-
export const LiveLocationRelated = {
|
|
1158
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1159
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1160
|
-
writer.uint32(8).uint64(message.id.toString());
|
|
1161
|
-
}
|
|
1162
|
-
if (!message.liveLocationId.equals(Long.UZERO)) {
|
|
1163
|
-
writer.uint32(16).uint64(message.liveLocationId.toString());
|
|
1164
|
-
}
|
|
1165
|
-
if (!message.objectId.equals(Long.UZERO)) {
|
|
1166
|
-
writer.uint32(24).uint64(message.objectId.toString());
|
|
1167
|
-
}
|
|
1168
|
-
if (message.objectType !== "") {
|
|
1169
|
-
writer.uint32(34).string(message.objectType);
|
|
1170
|
-
}
|
|
1171
|
-
if (message.createdAt !== undefined) {
|
|
1172
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(58).fork()).join();
|
|
1173
|
-
}
|
|
1174
|
-
if (message.updatedAt !== undefined) {
|
|
1175
|
-
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(66).fork()).join();
|
|
1176
|
-
}
|
|
1177
|
-
return writer;
|
|
1178
|
-
},
|
|
1179
|
-
decode(input, length) {
|
|
1180
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1181
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1182
|
-
const message = createBaseLiveLocationRelated();
|
|
1183
|
-
while (reader.pos < end) {
|
|
1184
|
-
const tag = reader.uint32();
|
|
1185
|
-
switch (tag >>> 3) {
|
|
1186
|
-
case 1: {
|
|
1187
|
-
if (tag !== 8) {
|
|
1188
|
-
break;
|
|
1189
|
-
}
|
|
1190
|
-
message.id = Long.fromString(reader.uint64().toString(), true);
|
|
1191
|
-
continue;
|
|
1192
|
-
}
|
|
1193
|
-
case 2: {
|
|
1194
|
-
if (tag !== 16) {
|
|
1195
|
-
break;
|
|
1196
|
-
}
|
|
1197
|
-
message.liveLocationId = Long.fromString(reader.uint64().toString(), true);
|
|
1198
|
-
continue;
|
|
1199
|
-
}
|
|
1200
|
-
case 3: {
|
|
1201
|
-
if (tag !== 24) {
|
|
1202
|
-
break;
|
|
1203
|
-
}
|
|
1204
|
-
message.objectId = Long.fromString(reader.uint64().toString(), true);
|
|
1205
|
-
continue;
|
|
1206
|
-
}
|
|
1207
|
-
case 4: {
|
|
1208
|
-
if (tag !== 34) {
|
|
1209
|
-
break;
|
|
1210
|
-
}
|
|
1211
|
-
message.objectType = reader.string();
|
|
1212
|
-
continue;
|
|
1213
|
-
}
|
|
1214
|
-
case 7: {
|
|
1215
|
-
if (tag !== 58) {
|
|
1216
|
-
break;
|
|
1217
|
-
}
|
|
1218
|
-
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1219
|
-
continue;
|
|
1220
|
-
}
|
|
1221
|
-
case 8: {
|
|
1222
|
-
if (tag !== 66) {
|
|
1223
|
-
break;
|
|
1224
|
-
}
|
|
1225
|
-
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1226
|
-
continue;
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1230
|
-
break;
|
|
1231
|
-
}
|
|
1232
|
-
reader.skip(tag & 7);
|
|
1233
|
-
}
|
|
1234
|
-
return message;
|
|
1235
|
-
},
|
|
1236
|
-
create(base) {
|
|
1237
|
-
return LiveLocationRelated.fromPartial(base ?? {});
|
|
1238
|
-
},
|
|
1239
|
-
fromPartial(object) {
|
|
1240
|
-
const message = createBaseLiveLocationRelated();
|
|
1241
|
-
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
1242
|
-
message.liveLocationId = (object.liveLocationId !== undefined && object.liveLocationId !== null)
|
|
1243
|
-
? Long.fromValue(object.liveLocationId)
|
|
1244
|
-
: Long.UZERO;
|
|
1245
|
-
message.objectId = (object.objectId !== undefined && object.objectId !== null)
|
|
1246
|
-
? Long.fromValue(object.objectId)
|
|
1247
|
-
: Long.UZERO;
|
|
1248
|
-
message.objectType = object.objectType ?? "";
|
|
1249
|
-
message.createdAt = object.createdAt ?? undefined;
|
|
1250
|
-
message.updatedAt = object.updatedAt ?? undefined;
|
|
1251
|
-
return message;
|
|
1252
|
-
},
|
|
1253
|
-
};
|
|
1254
|
-
function createBaseConfig() {
|
|
1255
|
-
return {
|
|
1256
|
-
id: Long.UZERO,
|
|
1257
|
-
organizationId: Long.UZERO,
|
|
1258
|
-
createdBy: undefined,
|
|
1259
|
-
updatedBy: undefined,
|
|
1260
|
-
key: "",
|
|
1261
|
-
value: "",
|
|
1262
|
-
createdAt: undefined,
|
|
1263
|
-
updatedAt: undefined,
|
|
1264
|
-
name: undefined,
|
|
1265
|
-
type: undefined,
|
|
1266
|
-
};
|
|
1267
|
-
}
|
|
1268
|
-
export const Config = {
|
|
1269
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1270
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1271
|
-
writer.uint32(8).uint64(message.id.toString());
|
|
1272
|
-
}
|
|
1273
|
-
if (!message.organizationId.equals(Long.UZERO)) {
|
|
1274
|
-
writer.uint32(16).uint64(message.organizationId.toString());
|
|
1275
|
-
}
|
|
1276
|
-
if (message.createdBy !== undefined) {
|
|
1277
|
-
writer.uint32(24).uint64(message.createdBy.toString());
|
|
1278
|
-
}
|
|
1279
|
-
if (message.updatedBy !== undefined) {
|
|
1280
|
-
writer.uint32(32).uint64(message.updatedBy.toString());
|
|
1281
|
-
}
|
|
1282
|
-
if (message.key !== "") {
|
|
1283
|
-
writer.uint32(42).string(message.key);
|
|
1284
|
-
}
|
|
1285
|
-
if (message.value !== "") {
|
|
1286
|
-
writer.uint32(50).string(message.value);
|
|
1287
|
-
}
|
|
1288
|
-
if (message.createdAt !== undefined) {
|
|
1289
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(58).fork()).join();
|
|
1290
|
-
}
|
|
1291
|
-
if (message.updatedAt !== undefined) {
|
|
1292
|
-
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(66).fork()).join();
|
|
1293
|
-
}
|
|
1294
|
-
if (message.name !== undefined) {
|
|
1295
|
-
writer.uint32(74).string(message.name);
|
|
1296
|
-
}
|
|
1297
|
-
if (message.type !== undefined) {
|
|
1298
|
-
writer.uint32(82).string(message.type);
|
|
1299
|
-
}
|
|
1300
|
-
return writer;
|
|
1301
|
-
},
|
|
1302
|
-
decode(input, length) {
|
|
1303
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1304
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1305
|
-
const message = createBaseConfig();
|
|
1306
|
-
while (reader.pos < end) {
|
|
1307
|
-
const tag = reader.uint32();
|
|
1308
|
-
switch (tag >>> 3) {
|
|
1309
|
-
case 1: {
|
|
1310
|
-
if (tag !== 8) {
|
|
1311
|
-
break;
|
|
1312
|
-
}
|
|
1313
|
-
message.id = Long.fromString(reader.uint64().toString(), true);
|
|
1314
|
-
continue;
|
|
1315
|
-
}
|
|
1316
|
-
case 2: {
|
|
1317
|
-
if (tag !== 16) {
|
|
1318
|
-
break;
|
|
1319
|
-
}
|
|
1320
|
-
message.organizationId = Long.fromString(reader.uint64().toString(), true);
|
|
1321
|
-
continue;
|
|
1322
|
-
}
|
|
1323
|
-
case 3: {
|
|
1324
|
-
if (tag !== 24) {
|
|
1325
|
-
break;
|
|
1326
|
-
}
|
|
1327
|
-
message.createdBy = Long.fromString(reader.uint64().toString(), true);
|
|
1328
|
-
continue;
|
|
1329
|
-
}
|
|
1330
|
-
case 4: {
|
|
1331
|
-
if (tag !== 32) {
|
|
1332
|
-
break;
|
|
1333
|
-
}
|
|
1334
|
-
message.updatedBy = Long.fromString(reader.uint64().toString(), true);
|
|
1335
|
-
continue;
|
|
1336
|
-
}
|
|
1337
|
-
case 5: {
|
|
1338
|
-
if (tag !== 42) {
|
|
1339
|
-
break;
|
|
1340
|
-
}
|
|
1341
|
-
message.key = reader.string();
|
|
1342
|
-
continue;
|
|
1343
|
-
}
|
|
1344
|
-
case 6: {
|
|
1345
|
-
if (tag !== 50) {
|
|
1346
|
-
break;
|
|
1347
|
-
}
|
|
1348
|
-
message.value = reader.string();
|
|
1349
|
-
continue;
|
|
1350
|
-
}
|
|
1351
|
-
case 7: {
|
|
1352
|
-
if (tag !== 58) {
|
|
1353
|
-
break;
|
|
1354
|
-
}
|
|
1355
|
-
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1356
|
-
continue;
|
|
1357
|
-
}
|
|
1358
|
-
case 8: {
|
|
1359
|
-
if (tag !== 66) {
|
|
1360
|
-
break;
|
|
1361
|
-
}
|
|
1362
|
-
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1363
|
-
continue;
|
|
1364
|
-
}
|
|
1365
|
-
case 9: {
|
|
1366
|
-
if (tag !== 74) {
|
|
1367
|
-
break;
|
|
1368
|
-
}
|
|
1369
|
-
message.name = reader.string();
|
|
1370
|
-
continue;
|
|
1371
|
-
}
|
|
1372
|
-
case 10: {
|
|
1373
|
-
if (tag !== 82) {
|
|
1374
|
-
break;
|
|
1375
|
-
}
|
|
1376
|
-
message.type = reader.string();
|
|
1377
|
-
continue;
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1381
|
-
break;
|
|
1382
|
-
}
|
|
1383
|
-
reader.skip(tag & 7);
|
|
1384
|
-
}
|
|
1385
|
-
return message;
|
|
1386
|
-
},
|
|
1387
|
-
create(base) {
|
|
1388
|
-
return Config.fromPartial(base ?? {});
|
|
1389
|
-
},
|
|
1390
|
-
fromPartial(object) {
|
|
1391
|
-
const message = createBaseConfig();
|
|
1392
|
-
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
1393
|
-
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
1394
|
-
? Long.fromValue(object.organizationId)
|
|
1395
|
-
: Long.UZERO;
|
|
1396
|
-
message.createdBy = (object.createdBy !== undefined && object.createdBy !== null)
|
|
1397
|
-
? Long.fromValue(object.createdBy)
|
|
1398
|
-
: undefined;
|
|
1399
|
-
message.updatedBy = (object.updatedBy !== undefined && object.updatedBy !== null)
|
|
1400
|
-
? Long.fromValue(object.updatedBy)
|
|
1401
|
-
: undefined;
|
|
1402
|
-
message.key = object.key ?? "";
|
|
1403
|
-
message.value = object.value ?? "";
|
|
1404
|
-
message.createdAt = object.createdAt ?? undefined;
|
|
1405
|
-
message.updatedAt = object.updatedAt ?? undefined;
|
|
1406
|
-
message.name = object.name ?? undefined;
|
|
1407
|
-
message.type = object.type ?? undefined;
|
|
1408
|
-
return message;
|
|
1409
|
-
},
|
|
1410
|
-
};
|
|
1411
|
-
function createBaseDeviceStatusList() {
|
|
1412
|
-
return { cost: 0, accepted: 0, list: [] };
|
|
1413
|
-
}
|
|
1414
|
-
export const DeviceStatusList = {
|
|
1415
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1416
|
-
if (message.cost !== 0) {
|
|
1417
|
-
writer.uint32(8).uint32(message.cost);
|
|
1418
|
-
}
|
|
1419
|
-
if (message.accepted !== 0) {
|
|
1420
|
-
writer.uint32(16).uint32(message.accepted);
|
|
1421
|
-
}
|
|
1422
|
-
for (const v of message.list) {
|
|
1423
|
-
DeviceStatus.encode(v, writer.uint32(26).fork()).join();
|
|
1424
|
-
}
|
|
1425
|
-
return writer;
|
|
1426
|
-
},
|
|
1427
|
-
decode(input, length) {
|
|
1428
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1429
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1430
|
-
const message = createBaseDeviceStatusList();
|
|
1431
|
-
while (reader.pos < end) {
|
|
1432
|
-
const tag = reader.uint32();
|
|
1433
|
-
switch (tag >>> 3) {
|
|
1434
|
-
case 1: {
|
|
1435
|
-
if (tag !== 8) {
|
|
1436
|
-
break;
|
|
1437
|
-
}
|
|
1438
|
-
message.cost = reader.uint32();
|
|
1439
|
-
continue;
|
|
1440
|
-
}
|
|
1441
|
-
case 2: {
|
|
1442
|
-
if (tag !== 16) {
|
|
1443
|
-
break;
|
|
1444
|
-
}
|
|
1445
|
-
message.accepted = reader.uint32();
|
|
1446
|
-
continue;
|
|
1447
|
-
}
|
|
1448
|
-
case 3: {
|
|
1449
|
-
if (tag !== 26) {
|
|
1450
|
-
break;
|
|
1451
|
-
}
|
|
1452
|
-
message.list.push(DeviceStatus.decode(reader, reader.uint32()));
|
|
1453
|
-
continue;
|
|
1454
|
-
}
|
|
1455
|
-
}
|
|
1456
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1457
|
-
break;
|
|
1458
|
-
}
|
|
1459
|
-
reader.skip(tag & 7);
|
|
1460
|
-
}
|
|
1461
|
-
return message;
|
|
1462
|
-
},
|
|
1463
|
-
create(base) {
|
|
1464
|
-
return DeviceStatusList.fromPartial(base ?? {});
|
|
1465
|
-
},
|
|
1466
|
-
fromPartial(object) {
|
|
1467
|
-
const message = createBaseDeviceStatusList();
|
|
1468
|
-
message.cost = object.cost ?? 0;
|
|
1469
|
-
message.accepted = object.accepted ?? 0;
|
|
1470
|
-
message.list = object.list?.map((e) => DeviceStatus.fromPartial(e)) || [];
|
|
1471
|
-
return message;
|
|
1472
|
-
},
|
|
1473
|
-
};
|
|
1474
|
-
function toTimestamp(date) {
|
|
1475
|
-
const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));
|
|
1476
|
-
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
1477
|
-
return { seconds, nanos };
|
|
1478
|
-
}
|
|
1479
|
-
function fromTimestamp(t) {
|
|
1480
|
-
let millis = (t.seconds.toNumber() || 0) * 1_000;
|
|
1481
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
1482
|
-
return new globalThis.Date(millis);
|
|
1483
|
-
}
|
|
1484
|
-
function numberToLong(number) {
|
|
1485
|
-
return Long.fromNumber(number);
|
|
1486
|
-
}
|