@fatehan/tsrp 1.4.44 → 1.4.46
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/fatehan/activities/camera.d.ts +0 -2
- package/dist/fatehan/activities/camera.d.ts.map +1 -1
- package/dist/fatehan/activities/camera.js +0 -257
- package/dist/fatehan/activities/workflow.d.ts +20 -30
- package/dist/fatehan/activities/workflow.d.ts.map +1 -1
- package/dist/fatehan/activities/workflow.js +0 -718
- package/dist/fatehan/apis/client.d.ts +10 -12
- package/dist/fatehan/apis/client.d.ts.map +1 -1
- package/dist/fatehan/apis/client.js +23 -1015
- package/dist/fatehan/areas/area.d.ts +11 -15
- package/dist/fatehan/areas/area.d.ts.map +1 -1
- package/dist/fatehan/areas/area.js +0 -271
- package/dist/fatehan/devices/devices.d.ts +3 -7
- package/dist/fatehan/devices/devices.d.ts.map +1 -1
- package/dist/fatehan/devices/devices.js +0 -911
- package/dist/fatehan/devices/maintenance.d.ts +3 -7
- package/dist/fatehan/devices/maintenance.d.ts.map +1 -1
- package/dist/fatehan/devices/maintenance.js +0 -189
- package/dist/fatehan/financial/financial.d.ts +14 -16
- package/dist/fatehan/financial/financial.d.ts.map +1 -1
- package/dist/fatehan/financial/financial.js +0 -538
- package/dist/fatehan/google/protobuf/descriptor.d.ts +0 -42
- package/dist/fatehan/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/descriptor.js +0 -1864
- package/dist/fatehan/google/protobuf/duration.d.ts +0 -2
- package/dist/fatehan/google/protobuf/duration.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/duration.js +0 -19
- package/dist/fatehan/google/protobuf/field_mask.d.ts +0 -2
- package/dist/fatehan/google/protobuf/field_mask.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/field_mask.js +0 -12
- package/dist/fatehan/google/protobuf/timestamp.d.ts +0 -2
- package/dist/fatehan/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/timestamp.js +0 -19
- package/dist/fatehan/identities/authentication.d.ts +13 -15
- package/dist/fatehan/identities/authentication.d.ts.map +1 -1
- package/dist/fatehan/identities/authentication.js +0 -339
- package/dist/fatehan/identities/identities.d.ts +6 -12
- package/dist/fatehan/identities/identities.d.ts.map +1 -1
- package/dist/fatehan/identities/identities.js +0 -4069
- package/dist/fatehan/models/fusion.d.ts +5 -7
- package/dist/fatehan/models/fusion.d.ts.map +1 -1
- package/dist/fatehan/models/fusion.js +0 -494
- package/dist/fatehan/models/models.d.ts +6 -10
- package/dist/fatehan/models/models.d.ts.map +1 -1
- package/dist/fatehan/models/models.js +1 -554
- package/dist/fatehan/notifies/notify.d.ts +10 -24
- package/dist/fatehan/notifies/notify.d.ts.map +1 -1
- package/dist/fatehan/notifies/notify.js +0 -1096
- package/dist/fatehan/packets/dataModel.d.ts +18 -48
- package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModel.js +34 -7015
- package/dist/fatehan/packets/dataModule.d.ts +2 -6
- package/dist/fatehan/packets/dataModule.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModule.js +0 -167
- package/dist/fatehan/packets/messages.d.ts +5 -9
- package/dist/fatehan/packets/messages.d.ts.map +1 -1
- package/dist/fatehan/packets/messages.js +0 -280
- package/dist/fatehan/reports/report.d.ts +87 -115
- package/dist/fatehan/reports/report.d.ts.map +1 -1
- package/dist/fatehan/reports/report.js +3 -3112
- package/dist/fatehan/services/api.d.ts +14 -14
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +29 -1254
- package/dist/fatehan/services/repositories.d.ts +6 -8
- package/dist/fatehan/services/repositories.d.ts.map +1 -1
- package/dist/fatehan/services/repositories.js +0 -191
- package/dist/fatehan/trips/trip.d.ts +18 -30
- package/dist/fatehan/trips/trip.d.ts.map +1 -1
- package/dist/fatehan/trips/trip.js +0 -1662
- package/dist/fatehan/utils/buf/validate/validate.d.ts +0 -6
- package/dist/fatehan/utils/buf/validate/validate.d.ts.map +1 -1
- package/dist/fatehan/utils/buf/validate/validate.js +0 -1318
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/fatehan/models/models.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/fatehan/models/models.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE3E,eAAO,MAAM,eAAe,uBAAuB,CAAC;AAEpD,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,IAAI,CAAC;IACT,QAAQ,EAAE,IAAI,CAAC;IACf,gBAAgB,EAAE,UAAU,CAAC;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC;CAC7B;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CACtC;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,UAAU,CAAC;CACnB;AAED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AAO,CAAC,CAAC,CAAC,CAAC;AAEf,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,GAAG,KAAK,CAAC;AACpD,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACrD,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAAE,CAAC;AAkBnG,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
8
|
import Long from "long";
|
|
9
9
|
import { Timestamp } from "../google/protobuf/timestamp";
|
|
10
|
-
import {
|
|
10
|
+
import { Data, DeviceStatus } from "../packets/dataModel";
|
|
11
11
|
export const protobufPackage = "com.fatehan.models";
|
|
12
12
|
export var ChargeLog_Type;
|
|
13
13
|
(function (ChargeLog_Type) {
|
|
@@ -20,56 +20,6 @@ export var ChargeLog_Type;
|
|
|
20
20
|
ChargeLog_Type[ChargeLog_Type["Refund"] = 6] = "Refund";
|
|
21
21
|
ChargeLog_Type[ChargeLog_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
22
22
|
})(ChargeLog_Type || (ChargeLog_Type = {}));
|
|
23
|
-
export function chargeLog_TypeFromJSON(object) {
|
|
24
|
-
switch (object) {
|
|
25
|
-
case 0:
|
|
26
|
-
case "None":
|
|
27
|
-
return ChargeLog_Type.None;
|
|
28
|
-
case 1:
|
|
29
|
-
case "Wallet":
|
|
30
|
-
return ChargeLog_Type.Wallet;
|
|
31
|
-
case 2:
|
|
32
|
-
case "Store":
|
|
33
|
-
return ChargeLog_Type.Store;
|
|
34
|
-
case 3:
|
|
35
|
-
case "Payment":
|
|
36
|
-
return ChargeLog_Type.Payment;
|
|
37
|
-
case 4:
|
|
38
|
-
case "FirstConnect":
|
|
39
|
-
return ChargeLog_Type.FirstConnect;
|
|
40
|
-
case 5:
|
|
41
|
-
case "Trial":
|
|
42
|
-
return ChargeLog_Type.Trial;
|
|
43
|
-
case 6:
|
|
44
|
-
case "Refund":
|
|
45
|
-
return ChargeLog_Type.Refund;
|
|
46
|
-
case -1:
|
|
47
|
-
case "UNRECOGNIZED":
|
|
48
|
-
default:
|
|
49
|
-
return ChargeLog_Type.UNRECOGNIZED;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
export function chargeLog_TypeToJSON(object) {
|
|
53
|
-
switch (object) {
|
|
54
|
-
case ChargeLog_Type.None:
|
|
55
|
-
return "None";
|
|
56
|
-
case ChargeLog_Type.Wallet:
|
|
57
|
-
return "Wallet";
|
|
58
|
-
case ChargeLog_Type.Store:
|
|
59
|
-
return "Store";
|
|
60
|
-
case ChargeLog_Type.Payment:
|
|
61
|
-
return "Payment";
|
|
62
|
-
case ChargeLog_Type.FirstConnect:
|
|
63
|
-
return "FirstConnect";
|
|
64
|
-
case ChargeLog_Type.Trial:
|
|
65
|
-
return "Trial";
|
|
66
|
-
case ChargeLog_Type.Refund:
|
|
67
|
-
return "Refund";
|
|
68
|
-
case ChargeLog_Type.UNRECOGNIZED:
|
|
69
|
-
default:
|
|
70
|
-
return "UNRECOGNIZED";
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
23
|
function createBaseGallery() {
|
|
74
24
|
return {
|
|
75
25
|
id: Long.UZERO,
|
|
@@ -214,58 +164,6 @@ export const Gallery = {
|
|
|
214
164
|
}
|
|
215
165
|
return message;
|
|
216
166
|
},
|
|
217
|
-
fromJSON(object) {
|
|
218
|
-
return {
|
|
219
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
220
|
-
deviceId: isSet(object.device_id) ? Long.fromValue(object.device_id) : Long.UZERO,
|
|
221
|
-
identificationNo: isSet(object.identification_no) ? bytesFromBase64(object.identification_no) : new Uint8Array(0),
|
|
222
|
-
type: isSet(object.type) ? fileTypeFromJSON(object.type) : 0,
|
|
223
|
-
storage: isSet(object.storage) ? globalThis.String(object.storage) : "",
|
|
224
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
225
|
-
mime: isSet(object.mime) ? globalThis.String(object.mime) : "",
|
|
226
|
-
codec: isSet(object.codec) ? globalThis.String(object.codec) : undefined,
|
|
227
|
-
size: isSet(object.size) ? globalThis.Number(object.size) : 0,
|
|
228
|
-
location: isSet(object.location) ? Data.fromJSON(object.location) : undefined,
|
|
229
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
230
|
-
};
|
|
231
|
-
},
|
|
232
|
-
toJSON(message) {
|
|
233
|
-
const obj = {};
|
|
234
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
235
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
236
|
-
}
|
|
237
|
-
if (!message.deviceId.equals(Long.UZERO)) {
|
|
238
|
-
obj.device_id = (message.deviceId || Long.UZERO).toString();
|
|
239
|
-
}
|
|
240
|
-
if (message.identificationNo.length !== 0) {
|
|
241
|
-
obj.identification_no = base64FromBytes(message.identificationNo);
|
|
242
|
-
}
|
|
243
|
-
if (message.type !== 0) {
|
|
244
|
-
obj.type = fileTypeToJSON(message.type);
|
|
245
|
-
}
|
|
246
|
-
if (message.storage !== "") {
|
|
247
|
-
obj.storage = message.storage;
|
|
248
|
-
}
|
|
249
|
-
if (message.path !== "") {
|
|
250
|
-
obj.path = message.path;
|
|
251
|
-
}
|
|
252
|
-
if (message.mime !== "") {
|
|
253
|
-
obj.mime = message.mime;
|
|
254
|
-
}
|
|
255
|
-
if (message.codec !== undefined) {
|
|
256
|
-
obj.codec = message.codec;
|
|
257
|
-
}
|
|
258
|
-
if (message.size !== 0) {
|
|
259
|
-
obj.size = Math.round(message.size);
|
|
260
|
-
}
|
|
261
|
-
if (message.location !== undefined) {
|
|
262
|
-
obj.location = Data.toJSON(message.location);
|
|
263
|
-
}
|
|
264
|
-
if (message.createdAt !== undefined) {
|
|
265
|
-
obj.created_at = message.createdAt.toISOString();
|
|
266
|
-
}
|
|
267
|
-
return obj;
|
|
268
|
-
},
|
|
269
167
|
create(base) {
|
|
270
168
|
return Gallery.fromPartial(base ?? {});
|
|
271
169
|
},
|
|
@@ -324,29 +222,6 @@ export const IoList = {
|
|
|
324
222
|
}
|
|
325
223
|
return message;
|
|
326
224
|
},
|
|
327
|
-
fromJSON(object) {
|
|
328
|
-
return {
|
|
329
|
-
items: isObject(object.items)
|
|
330
|
-
? Object.entries(object.items).reduce((acc, [key, value]) => {
|
|
331
|
-
acc[globalThis.Number(key)] = bytesFromBase64(value);
|
|
332
|
-
return acc;
|
|
333
|
-
}, {})
|
|
334
|
-
: {},
|
|
335
|
-
};
|
|
336
|
-
},
|
|
337
|
-
toJSON(message) {
|
|
338
|
-
const obj = {};
|
|
339
|
-
if (message.items) {
|
|
340
|
-
const entries = Object.entries(message.items);
|
|
341
|
-
if (entries.length > 0) {
|
|
342
|
-
obj.items = {};
|
|
343
|
-
entries.forEach(([k, v]) => {
|
|
344
|
-
obj.items[k] = base64FromBytes(v);
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
return obj;
|
|
349
|
-
},
|
|
350
225
|
create(base) {
|
|
351
226
|
return IoList.fromPartial(base ?? {});
|
|
352
227
|
},
|
|
@@ -403,22 +278,6 @@ export const IoList_ItemsEntry = {
|
|
|
403
278
|
}
|
|
404
279
|
return message;
|
|
405
280
|
},
|
|
406
|
-
fromJSON(object) {
|
|
407
|
-
return {
|
|
408
|
-
key: isSet(object.key) ? globalThis.Number(object.key) : 0,
|
|
409
|
-
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
|
|
410
|
-
};
|
|
411
|
-
},
|
|
412
|
-
toJSON(message) {
|
|
413
|
-
const obj = {};
|
|
414
|
-
if (message.key !== 0) {
|
|
415
|
-
obj.key = Math.round(message.key);
|
|
416
|
-
}
|
|
417
|
-
if (message.value.length !== 0) {
|
|
418
|
-
obj.value = base64FromBytes(message.value);
|
|
419
|
-
}
|
|
420
|
-
return obj;
|
|
421
|
-
},
|
|
422
281
|
create(base) {
|
|
423
282
|
return IoList_ItemsEntry.fromPartial(base ?? {});
|
|
424
283
|
},
|
|
@@ -501,34 +360,6 @@ export const ArioCache = {
|
|
|
501
360
|
}
|
|
502
361
|
return message;
|
|
503
362
|
},
|
|
504
|
-
fromJSON(object) {
|
|
505
|
-
return {
|
|
506
|
-
towing: isSet(object.towing) ? globalThis.Boolean(object.towing) : undefined,
|
|
507
|
-
door: isSet(object.door) ? globalThis.Boolean(object.door) : undefined,
|
|
508
|
-
unplug: isSet(object.unplug) ? globalThis.Boolean(object.unplug) : undefined,
|
|
509
|
-
ignition: isSet(object.ignition) ? globalThis.Boolean(object.ignition) : undefined,
|
|
510
|
-
Movement: isSet(object.Movement) ? globalThis.Boolean(object.Movement) : undefined,
|
|
511
|
-
};
|
|
512
|
-
},
|
|
513
|
-
toJSON(message) {
|
|
514
|
-
const obj = {};
|
|
515
|
-
if (message.towing !== undefined) {
|
|
516
|
-
obj.towing = message.towing;
|
|
517
|
-
}
|
|
518
|
-
if (message.door !== undefined) {
|
|
519
|
-
obj.door = message.door;
|
|
520
|
-
}
|
|
521
|
-
if (message.unplug !== undefined) {
|
|
522
|
-
obj.unplug = message.unplug;
|
|
523
|
-
}
|
|
524
|
-
if (message.ignition !== undefined) {
|
|
525
|
-
obj.ignition = message.ignition;
|
|
526
|
-
}
|
|
527
|
-
if (message.Movement !== undefined) {
|
|
528
|
-
obj.Movement = message.Movement;
|
|
529
|
-
}
|
|
530
|
-
return obj;
|
|
531
|
-
},
|
|
532
363
|
create(base) {
|
|
533
364
|
return ArioCache.fromPartial(base ?? {});
|
|
534
365
|
},
|
|
@@ -697,62 +528,6 @@ export const HeartbeatCache = {
|
|
|
697
528
|
}
|
|
698
529
|
return message;
|
|
699
530
|
},
|
|
700
|
-
fromJSON(object) {
|
|
701
|
-
return {
|
|
702
|
-
ignition: isSet(object.ignition) ? globalThis.Boolean(object.ignition) : undefined,
|
|
703
|
-
gsm: isSet(object.gsm) ? globalThis.Number(object.gsm) : undefined,
|
|
704
|
-
batteryPercent: isSet(object.battery_percent) ? globalThis.Number(object.battery_percent) : undefined,
|
|
705
|
-
externalVoltage: isSet(object.external_voltage) ? globalThis.Number(object.external_voltage) : undefined,
|
|
706
|
-
commandId: isSet(object.command_id) ? Long.fromValue(object.command_id) : undefined,
|
|
707
|
-
command: isSet(object.command) ? globalThis.String(object.command) : undefined,
|
|
708
|
-
mileage: isSet(object.mileage) ? Long.fromValue(object.mileage) : undefined,
|
|
709
|
-
terminalId: isSet(object.terminal_id) ? globalThis.Number(object.terminal_id) : undefined,
|
|
710
|
-
temperature: isSet(object.temperature) ? globalThis.Number(object.temperature) : undefined,
|
|
711
|
-
ai1: isSet(object.ai_1) ? globalThis.Number(object.ai_1) : undefined,
|
|
712
|
-
odysseyCommandId: isSet(object.odyssey_command_id) ? Long.fromValue(object.odyssey_command_id) : undefined,
|
|
713
|
-
scheduleAlert: isSet(object.schedule_alert) ? alertFromJSON(object.schedule_alert) : undefined,
|
|
714
|
-
};
|
|
715
|
-
},
|
|
716
|
-
toJSON(message) {
|
|
717
|
-
const obj = {};
|
|
718
|
-
if (message.ignition !== undefined) {
|
|
719
|
-
obj.ignition = message.ignition;
|
|
720
|
-
}
|
|
721
|
-
if (message.gsm !== undefined) {
|
|
722
|
-
obj.gsm = Math.round(message.gsm);
|
|
723
|
-
}
|
|
724
|
-
if (message.batteryPercent !== undefined) {
|
|
725
|
-
obj.battery_percent = Math.round(message.batteryPercent);
|
|
726
|
-
}
|
|
727
|
-
if (message.externalVoltage !== undefined) {
|
|
728
|
-
obj.external_voltage = Math.round(message.externalVoltage);
|
|
729
|
-
}
|
|
730
|
-
if (message.commandId !== undefined) {
|
|
731
|
-
obj.command_id = (message.commandId || Long.UZERO).toString();
|
|
732
|
-
}
|
|
733
|
-
if (message.command !== undefined) {
|
|
734
|
-
obj.command = message.command;
|
|
735
|
-
}
|
|
736
|
-
if (message.mileage !== undefined) {
|
|
737
|
-
obj.mileage = (message.mileage || Long.UZERO).toString();
|
|
738
|
-
}
|
|
739
|
-
if (message.terminalId !== undefined) {
|
|
740
|
-
obj.terminal_id = Math.round(message.terminalId);
|
|
741
|
-
}
|
|
742
|
-
if (message.temperature !== undefined) {
|
|
743
|
-
obj.temperature = message.temperature;
|
|
744
|
-
}
|
|
745
|
-
if (message.ai1 !== undefined) {
|
|
746
|
-
obj.ai_1 = Math.round(message.ai1);
|
|
747
|
-
}
|
|
748
|
-
if (message.odysseyCommandId !== undefined) {
|
|
749
|
-
obj.odyssey_command_id = (message.odysseyCommandId || Long.UZERO).toString();
|
|
750
|
-
}
|
|
751
|
-
if (message.scheduleAlert !== undefined) {
|
|
752
|
-
obj.schedule_alert = alertToJSON(message.scheduleAlert);
|
|
753
|
-
}
|
|
754
|
-
return obj;
|
|
755
|
-
},
|
|
756
531
|
create(base) {
|
|
757
532
|
return HeartbeatCache.fromPartial(base ?? {});
|
|
758
533
|
},
|
|
@@ -851,34 +626,6 @@ export const SinotrackCache = {
|
|
|
851
626
|
}
|
|
852
627
|
return message;
|
|
853
628
|
},
|
|
854
|
-
fromJSON(object) {
|
|
855
|
-
return {
|
|
856
|
-
gpsTime: isSet(object.gps_time) ? Long.fromValue(object.gps_time) : Long.ZERO,
|
|
857
|
-
fuelUsedGps: isSet(object.fuel_used_gps) ? globalThis.Number(object.fuel_used_gps) : undefined,
|
|
858
|
-
ignition: isSet(object.ignition) ? globalThis.Boolean(object.ignition) : undefined,
|
|
859
|
-
commandId: isSet(object.command_id) ? Long.fromValue(object.command_id) : undefined,
|
|
860
|
-
command: isSet(object.command) ? globalThis.String(object.command) : undefined,
|
|
861
|
-
};
|
|
862
|
-
},
|
|
863
|
-
toJSON(message) {
|
|
864
|
-
const obj = {};
|
|
865
|
-
if (!message.gpsTime.equals(Long.ZERO)) {
|
|
866
|
-
obj.gps_time = (message.gpsTime || Long.ZERO).toString();
|
|
867
|
-
}
|
|
868
|
-
if (message.fuelUsedGps !== undefined) {
|
|
869
|
-
obj.fuel_used_gps = Math.round(message.fuelUsedGps);
|
|
870
|
-
}
|
|
871
|
-
if (message.ignition !== undefined) {
|
|
872
|
-
obj.ignition = message.ignition;
|
|
873
|
-
}
|
|
874
|
-
if (message.commandId !== undefined) {
|
|
875
|
-
obj.command_id = (message.commandId || Long.UZERO).toString();
|
|
876
|
-
}
|
|
877
|
-
if (message.command !== undefined) {
|
|
878
|
-
obj.command = message.command;
|
|
879
|
-
}
|
|
880
|
-
return obj;
|
|
881
|
-
},
|
|
882
629
|
create(base) {
|
|
883
630
|
return SinotrackCache.fromPartial(base ?? {});
|
|
884
631
|
},
|
|
@@ -938,22 +685,6 @@ export const GitinamaCache = {
|
|
|
938
685
|
}
|
|
939
686
|
return message;
|
|
940
687
|
},
|
|
941
|
-
fromJSON(object) {
|
|
942
|
-
return {
|
|
943
|
-
lat: isSet(object.lat) ? globalThis.Number(object.lat) : 0,
|
|
944
|
-
lng: isSet(object.lng) ? globalThis.Number(object.lng) : 0,
|
|
945
|
-
};
|
|
946
|
-
},
|
|
947
|
-
toJSON(message) {
|
|
948
|
-
const obj = {};
|
|
949
|
-
if (message.lat !== 0) {
|
|
950
|
-
obj.lat = message.lat;
|
|
951
|
-
}
|
|
952
|
-
if (message.lng !== 0) {
|
|
953
|
-
obj.lng = message.lng;
|
|
954
|
-
}
|
|
955
|
-
return obj;
|
|
956
|
-
},
|
|
957
688
|
create(base) {
|
|
958
689
|
return GitinamaCache.fromPartial(base ?? {});
|
|
959
690
|
},
|
|
@@ -1016,26 +747,6 @@ export const DeviceStatusList = {
|
|
|
1016
747
|
}
|
|
1017
748
|
return message;
|
|
1018
749
|
},
|
|
1019
|
-
fromJSON(object) {
|
|
1020
|
-
return {
|
|
1021
|
-
cost: isSet(object.cost) ? globalThis.Number(object.cost) : 0,
|
|
1022
|
-
accepted: isSet(object.accepted) ? globalThis.Number(object.accepted) : 0,
|
|
1023
|
-
list: globalThis.Array.isArray(object?.list) ? object.list.map((e) => DeviceStatus.fromJSON(e)) : [],
|
|
1024
|
-
};
|
|
1025
|
-
},
|
|
1026
|
-
toJSON(message) {
|
|
1027
|
-
const obj = {};
|
|
1028
|
-
if (message.cost !== 0) {
|
|
1029
|
-
obj.cost = Math.round(message.cost);
|
|
1030
|
-
}
|
|
1031
|
-
if (message.accepted !== 0) {
|
|
1032
|
-
obj.accepted = Math.round(message.accepted);
|
|
1033
|
-
}
|
|
1034
|
-
if (message.list?.length) {
|
|
1035
|
-
obj.list = message.list.map((e) => DeviceStatus.toJSON(e));
|
|
1036
|
-
}
|
|
1037
|
-
return obj;
|
|
1038
|
-
},
|
|
1039
750
|
create(base) {
|
|
1040
751
|
return DeviceStatusList.fromPartial(base ?? {});
|
|
1041
752
|
},
|
|
@@ -1246,78 +957,6 @@ export const ChargeLog = {
|
|
|
1246
957
|
}
|
|
1247
958
|
return message;
|
|
1248
959
|
},
|
|
1249
|
-
fromJSON(object) {
|
|
1250
|
-
return {
|
|
1251
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
1252
|
-
userId: isSet(object.user_id) ? Long.fromValue(object.user_id) : undefined,
|
|
1253
|
-
deviceId: isSet(object.device_id) ? Long.fromValue(object.device_id) : Long.UZERO,
|
|
1254
|
-
imei: isSet(object.imei) ? Long.fromValue(object.imei) : Long.UZERO,
|
|
1255
|
-
objectId: isSet(object.object_id) ? Long.fromValue(object.object_id) : undefined,
|
|
1256
|
-
objectType: isSet(object.object_type) ? globalThis.String(object.object_type) : undefined,
|
|
1257
|
-
type: isSet(object.type) ? chargeLog_TypeFromJSON(object.type) : 0,
|
|
1258
|
-
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
1259
|
-
ip: isSet(object.ip) ? globalThis.String(object.ip) : undefined,
|
|
1260
|
-
userAgent: isSet(object.user_agent) ? globalThis.String(object.user_agent) : undefined,
|
|
1261
|
-
previousExpiration: isSet(object.previous_expiration) ? fromJsonTimestamp(object.previous_expiration) : undefined,
|
|
1262
|
-
nextExpiration: isSet(object.next_expiration) ? fromJsonTimestamp(object.next_expiration) : undefined,
|
|
1263
|
-
isUnlimited: isSet(object.is_unlimited) ? globalThis.Boolean(object.is_unlimited) : false,
|
|
1264
|
-
refund: isSet(object.refund) ? globalThis.Boolean(object.refund) : false,
|
|
1265
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
1266
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
1267
|
-
};
|
|
1268
|
-
},
|
|
1269
|
-
toJSON(message) {
|
|
1270
|
-
const obj = {};
|
|
1271
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1272
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
1273
|
-
}
|
|
1274
|
-
if (message.userId !== undefined) {
|
|
1275
|
-
obj.user_id = (message.userId || Long.UZERO).toString();
|
|
1276
|
-
}
|
|
1277
|
-
if (!message.deviceId.equals(Long.UZERO)) {
|
|
1278
|
-
obj.device_id = (message.deviceId || Long.UZERO).toString();
|
|
1279
|
-
}
|
|
1280
|
-
if (!message.imei.equals(Long.UZERO)) {
|
|
1281
|
-
obj.imei = (message.imei || Long.UZERO).toString();
|
|
1282
|
-
}
|
|
1283
|
-
if (message.objectId !== undefined) {
|
|
1284
|
-
obj.object_id = (message.objectId || Long.UZERO).toString();
|
|
1285
|
-
}
|
|
1286
|
-
if (message.objectType !== undefined) {
|
|
1287
|
-
obj.object_type = message.objectType;
|
|
1288
|
-
}
|
|
1289
|
-
if (message.type !== 0) {
|
|
1290
|
-
obj.type = chargeLog_TypeToJSON(message.type);
|
|
1291
|
-
}
|
|
1292
|
-
if (message.description !== undefined) {
|
|
1293
|
-
obj.description = message.description;
|
|
1294
|
-
}
|
|
1295
|
-
if (message.ip !== undefined) {
|
|
1296
|
-
obj.ip = message.ip;
|
|
1297
|
-
}
|
|
1298
|
-
if (message.userAgent !== undefined) {
|
|
1299
|
-
obj.user_agent = message.userAgent;
|
|
1300
|
-
}
|
|
1301
|
-
if (message.previousExpiration !== undefined) {
|
|
1302
|
-
obj.previous_expiration = message.previousExpiration.toISOString();
|
|
1303
|
-
}
|
|
1304
|
-
if (message.nextExpiration !== undefined) {
|
|
1305
|
-
obj.next_expiration = message.nextExpiration.toISOString();
|
|
1306
|
-
}
|
|
1307
|
-
if (message.isUnlimited !== false) {
|
|
1308
|
-
obj.is_unlimited = message.isUnlimited;
|
|
1309
|
-
}
|
|
1310
|
-
if (message.refund !== false) {
|
|
1311
|
-
obj.refund = message.refund;
|
|
1312
|
-
}
|
|
1313
|
-
if (message.createdAt !== undefined) {
|
|
1314
|
-
obj.created_at = message.createdAt.toISOString();
|
|
1315
|
-
}
|
|
1316
|
-
if (message.updatedAt !== undefined) {
|
|
1317
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
1318
|
-
}
|
|
1319
|
-
return obj;
|
|
1320
|
-
},
|
|
1321
960
|
create(base) {
|
|
1322
961
|
return ChargeLog.fromPartial(base ?? {});
|
|
1323
962
|
},
|
|
@@ -1400,26 +1039,6 @@ export const TrialLog = {
|
|
|
1400
1039
|
}
|
|
1401
1040
|
return message;
|
|
1402
1041
|
},
|
|
1403
|
-
fromJSON(object) {
|
|
1404
|
-
return {
|
|
1405
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
1406
|
-
imei: isSet(object.imei) ? Long.fromValue(object.imei) : Long.UZERO,
|
|
1407
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
1408
|
-
};
|
|
1409
|
-
},
|
|
1410
|
-
toJSON(message) {
|
|
1411
|
-
const obj = {};
|
|
1412
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1413
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
1414
|
-
}
|
|
1415
|
-
if (!message.imei.equals(Long.UZERO)) {
|
|
1416
|
-
obj.imei = (message.imei || Long.UZERO).toString();
|
|
1417
|
-
}
|
|
1418
|
-
if (message.createdAt !== undefined) {
|
|
1419
|
-
obj.created_at = message.createdAt.toISOString();
|
|
1420
|
-
}
|
|
1421
|
-
return obj;
|
|
1422
|
-
},
|
|
1423
1042
|
create(base) {
|
|
1424
1043
|
return TrialLog.fromPartial(base ?? {});
|
|
1425
1044
|
},
|
|
@@ -1564,56 +1183,6 @@ export const LiveLocation = {
|
|
|
1564
1183
|
}
|
|
1565
1184
|
return message;
|
|
1566
1185
|
},
|
|
1567
|
-
fromJSON(object) {
|
|
1568
|
-
return {
|
|
1569
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
1570
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : Long.UZERO,
|
|
1571
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
1572
|
-
updatedBy: isSet(object.updated_by) ? Long.fromValue(object.updated_by) : undefined,
|
|
1573
|
-
uuid: isSet(object.uuid) ? globalThis.String(object.uuid) : "",
|
|
1574
|
-
expiresAt: isSet(object.expires_at) ? fromJsonTimestamp(object.expires_at) : undefined,
|
|
1575
|
-
password: isSet(object.password) ? globalThis.String(object.password) : undefined,
|
|
1576
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
1577
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
1578
|
-
objects: globalThis.Array.isArray(object?.objects)
|
|
1579
|
-
? object.objects.map((e) => LiveLocationRelated.fromJSON(e))
|
|
1580
|
-
: [],
|
|
1581
|
-
};
|
|
1582
|
-
},
|
|
1583
|
-
toJSON(message) {
|
|
1584
|
-
const obj = {};
|
|
1585
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1586
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
1587
|
-
}
|
|
1588
|
-
if (!message.organizationId.equals(Long.UZERO)) {
|
|
1589
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
1590
|
-
}
|
|
1591
|
-
if (message.createdBy !== undefined) {
|
|
1592
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
1593
|
-
}
|
|
1594
|
-
if (message.updatedBy !== undefined) {
|
|
1595
|
-
obj.updated_by = (message.updatedBy || Long.UZERO).toString();
|
|
1596
|
-
}
|
|
1597
|
-
if (message.uuid !== "") {
|
|
1598
|
-
obj.uuid = message.uuid;
|
|
1599
|
-
}
|
|
1600
|
-
if (message.expiresAt !== undefined) {
|
|
1601
|
-
obj.expires_at = message.expiresAt.toISOString();
|
|
1602
|
-
}
|
|
1603
|
-
if (message.password !== undefined) {
|
|
1604
|
-
obj.password = message.password;
|
|
1605
|
-
}
|
|
1606
|
-
if (message.createdAt !== undefined) {
|
|
1607
|
-
obj.created_at = message.createdAt.toISOString();
|
|
1608
|
-
}
|
|
1609
|
-
if (message.updatedAt !== undefined) {
|
|
1610
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
1611
|
-
}
|
|
1612
|
-
if (message.objects?.length) {
|
|
1613
|
-
obj.objects = message.objects.map((e) => LiveLocationRelated.toJSON(e));
|
|
1614
|
-
}
|
|
1615
|
-
return obj;
|
|
1616
|
-
},
|
|
1617
1186
|
create(base) {
|
|
1618
1187
|
return LiveLocation.fromPartial(base ?? {});
|
|
1619
1188
|
},
|
|
@@ -1727,38 +1296,6 @@ export const LiveLocationRelated = {
|
|
|
1727
1296
|
}
|
|
1728
1297
|
return message;
|
|
1729
1298
|
},
|
|
1730
|
-
fromJSON(object) {
|
|
1731
|
-
return {
|
|
1732
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
1733
|
-
liveLocationId: isSet(object.live_location_id) ? Long.fromValue(object.live_location_id) : Long.UZERO,
|
|
1734
|
-
objectId: isSet(object.object_id) ? Long.fromValue(object.object_id) : Long.UZERO,
|
|
1735
|
-
objectType: isSet(object.object_type) ? globalThis.String(object.object_type) : "",
|
|
1736
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
1737
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
1738
|
-
};
|
|
1739
|
-
},
|
|
1740
|
-
toJSON(message) {
|
|
1741
|
-
const obj = {};
|
|
1742
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1743
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
1744
|
-
}
|
|
1745
|
-
if (!message.liveLocationId.equals(Long.UZERO)) {
|
|
1746
|
-
obj.live_location_id = (message.liveLocationId || Long.UZERO).toString();
|
|
1747
|
-
}
|
|
1748
|
-
if (!message.objectId.equals(Long.UZERO)) {
|
|
1749
|
-
obj.object_id = (message.objectId || Long.UZERO).toString();
|
|
1750
|
-
}
|
|
1751
|
-
if (message.objectType !== "") {
|
|
1752
|
-
obj.object_type = message.objectType;
|
|
1753
|
-
}
|
|
1754
|
-
if (message.createdAt !== undefined) {
|
|
1755
|
-
obj.created_at = message.createdAt.toISOString();
|
|
1756
|
-
}
|
|
1757
|
-
if (message.updatedAt !== undefined) {
|
|
1758
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
1759
|
-
}
|
|
1760
|
-
return obj;
|
|
1761
|
-
},
|
|
1762
1299
|
create(base) {
|
|
1763
1300
|
return LiveLocationRelated.fromPartial(base ?? {});
|
|
1764
1301
|
},
|
|
@@ -1910,54 +1447,6 @@ export const Config = {
|
|
|
1910
1447
|
}
|
|
1911
1448
|
return message;
|
|
1912
1449
|
},
|
|
1913
|
-
fromJSON(object) {
|
|
1914
|
-
return {
|
|
1915
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
1916
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : Long.UZERO,
|
|
1917
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
1918
|
-
updatedBy: isSet(object.updated_by) ? Long.fromValue(object.updated_by) : undefined,
|
|
1919
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
1920
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
1921
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
1922
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
1923
|
-
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
1924
|
-
type: isSet(object.type) ? globalThis.String(object.type) : undefined,
|
|
1925
|
-
};
|
|
1926
|
-
},
|
|
1927
|
-
toJSON(message) {
|
|
1928
|
-
const obj = {};
|
|
1929
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1930
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
1931
|
-
}
|
|
1932
|
-
if (!message.organizationId.equals(Long.UZERO)) {
|
|
1933
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
1934
|
-
}
|
|
1935
|
-
if (message.createdBy !== undefined) {
|
|
1936
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
1937
|
-
}
|
|
1938
|
-
if (message.updatedBy !== undefined) {
|
|
1939
|
-
obj.updated_by = (message.updatedBy || Long.UZERO).toString();
|
|
1940
|
-
}
|
|
1941
|
-
if (message.key !== "") {
|
|
1942
|
-
obj.key = message.key;
|
|
1943
|
-
}
|
|
1944
|
-
if (message.value !== "") {
|
|
1945
|
-
obj.value = message.value;
|
|
1946
|
-
}
|
|
1947
|
-
if (message.createdAt !== undefined) {
|
|
1948
|
-
obj.created_at = message.createdAt.toISOString();
|
|
1949
|
-
}
|
|
1950
|
-
if (message.updatedAt !== undefined) {
|
|
1951
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
1952
|
-
}
|
|
1953
|
-
if (message.name !== undefined) {
|
|
1954
|
-
obj.name = message.name;
|
|
1955
|
-
}
|
|
1956
|
-
if (message.type !== undefined) {
|
|
1957
|
-
obj.type = message.type;
|
|
1958
|
-
}
|
|
1959
|
-
return obj;
|
|
1960
|
-
},
|
|
1961
1450
|
create(base) {
|
|
1962
1451
|
return Config.fromPartial(base ?? {});
|
|
1963
1452
|
},
|
|
@@ -1982,31 +1471,6 @@ export const Config = {
|
|
|
1982
1471
|
return message;
|
|
1983
1472
|
},
|
|
1984
1473
|
};
|
|
1985
|
-
function bytesFromBase64(b64) {
|
|
1986
|
-
if (globalThis.Buffer) {
|
|
1987
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
1988
|
-
}
|
|
1989
|
-
else {
|
|
1990
|
-
const bin = globalThis.atob(b64);
|
|
1991
|
-
const arr = new Uint8Array(bin.length);
|
|
1992
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
1993
|
-
arr[i] = bin.charCodeAt(i);
|
|
1994
|
-
}
|
|
1995
|
-
return arr;
|
|
1996
|
-
}
|
|
1997
|
-
}
|
|
1998
|
-
function base64FromBytes(arr) {
|
|
1999
|
-
if (globalThis.Buffer) {
|
|
2000
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
2001
|
-
}
|
|
2002
|
-
else {
|
|
2003
|
-
const bin = [];
|
|
2004
|
-
arr.forEach((byte) => {
|
|
2005
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
2006
|
-
});
|
|
2007
|
-
return globalThis.btoa(bin.join(""));
|
|
2008
|
-
}
|
|
2009
|
-
}
|
|
2010
1474
|
function toTimestamp(date) {
|
|
2011
1475
|
const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));
|
|
2012
1476
|
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
@@ -2017,23 +1481,6 @@ function fromTimestamp(t) {
|
|
|
2017
1481
|
millis += (t.nanos || 0) / 1_000_000;
|
|
2018
1482
|
return new globalThis.Date(millis);
|
|
2019
1483
|
}
|
|
2020
|
-
function fromJsonTimestamp(o) {
|
|
2021
|
-
if (o instanceof globalThis.Date) {
|
|
2022
|
-
return o;
|
|
2023
|
-
}
|
|
2024
|
-
else if (typeof o === "string") {
|
|
2025
|
-
return new globalThis.Date(o);
|
|
2026
|
-
}
|
|
2027
|
-
else {
|
|
2028
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
2029
|
-
}
|
|
2030
|
-
}
|
|
2031
1484
|
function numberToLong(number) {
|
|
2032
1485
|
return Long.fromNumber(number);
|
|
2033
1486
|
}
|
|
2034
|
-
function isObject(value) {
|
|
2035
|
-
return typeof value === "object" && value !== null;
|
|
2036
|
-
}
|
|
2037
|
-
function isSet(value) {
|
|
2038
|
-
return value !== null && value !== undefined;
|
|
2039
|
-
}
|