@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
|
@@ -17,41 +17,6 @@ export var SystemIo_SystemIoType;
|
|
|
17
17
|
SystemIo_SystemIoType[SystemIo_SystemIoType["FLOAT"] = 3] = "FLOAT";
|
|
18
18
|
SystemIo_SystemIoType[SystemIo_SystemIoType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
19
19
|
})(SystemIo_SystemIoType || (SystemIo_SystemIoType = {}));
|
|
20
|
-
export function systemIo_SystemIoTypeFromJSON(object) {
|
|
21
|
-
switch (object) {
|
|
22
|
-
case 0:
|
|
23
|
-
case "STRING":
|
|
24
|
-
return SystemIo_SystemIoType.STRING;
|
|
25
|
-
case 1:
|
|
26
|
-
case "BOOLEAN":
|
|
27
|
-
return SystemIo_SystemIoType.BOOLEAN;
|
|
28
|
-
case 2:
|
|
29
|
-
case "NUMERIC":
|
|
30
|
-
return SystemIo_SystemIoType.NUMERIC;
|
|
31
|
-
case 3:
|
|
32
|
-
case "FLOAT":
|
|
33
|
-
return SystemIo_SystemIoType.FLOAT;
|
|
34
|
-
case -1:
|
|
35
|
-
case "UNRECOGNIZED":
|
|
36
|
-
default:
|
|
37
|
-
return SystemIo_SystemIoType.UNRECOGNIZED;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
export function systemIo_SystemIoTypeToJSON(object) {
|
|
41
|
-
switch (object) {
|
|
42
|
-
case SystemIo_SystemIoType.STRING:
|
|
43
|
-
return "STRING";
|
|
44
|
-
case SystemIo_SystemIoType.BOOLEAN:
|
|
45
|
-
return "BOOLEAN";
|
|
46
|
-
case SystemIo_SystemIoType.NUMERIC:
|
|
47
|
-
return "NUMERIC";
|
|
48
|
-
case SystemIo_SystemIoType.FLOAT:
|
|
49
|
-
return "FLOAT";
|
|
50
|
-
case SystemIo_SystemIoType.UNRECOGNIZED:
|
|
51
|
-
default:
|
|
52
|
-
return "UNRECOGNIZED";
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
20
|
function createBaseDevice() {
|
|
56
21
|
return {
|
|
57
22
|
id: Long.UZERO,
|
|
@@ -405,134 +370,6 @@ export const Device = {
|
|
|
405
370
|
}
|
|
406
371
|
return message;
|
|
407
372
|
},
|
|
408
|
-
fromJSON(object) {
|
|
409
|
-
return {
|
|
410
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
411
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : undefined,
|
|
412
|
-
partnerId: isSet(object.partner_id) ? Long.fromValue(object.partner_id) : undefined,
|
|
413
|
-
generation: isSet(object.generation) ? globalThis.String(object.generation) : undefined,
|
|
414
|
-
deviceId: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
415
|
-
objectId: isSet(object.object_id) ? Long.fromValue(object.object_id) : undefined,
|
|
416
|
-
objectType: isSet(object.object_type) ? globalThis.String(object.object_type) : undefined,
|
|
417
|
-
trackerId: isSet(object.tracker_id) ? Long.fromValue(object.tracker_id) : undefined,
|
|
418
|
-
ownerId: isSet(object.owner_id) ? Long.fromValue(object.owner_id) : Long.UZERO,
|
|
419
|
-
iconId: isSet(object.icon_id) ? Long.fromValue(object.icon_id) : undefined,
|
|
420
|
-
warehouseId: isSet(object.warehouse_id) ? Long.fromValue(object.warehouse_id) : undefined,
|
|
421
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : Long.UZERO,
|
|
422
|
-
simCard: isSet(object.sim_card) ? globalThis.String(object.sim_card) : undefined,
|
|
423
|
-
simProvider: isSet(object.sim_provider) ? globalThis.Number(object.sim_provider) : undefined,
|
|
424
|
-
idChanged: isSet(object.id_changed) ? globalThis.Number(object.id_changed) : 0,
|
|
425
|
-
iccId: isSet(object.icc_id) ? globalThis.String(object.icc_id) : undefined,
|
|
426
|
-
smsUsername: isSet(object.sms_username) ? globalThis.String(object.sms_username) : undefined,
|
|
427
|
-
smsPassword: isSet(object.sms_password) ? globalThis.String(object.sms_password) : undefined,
|
|
428
|
-
configPassword: isSet(object.config_password) ? globalThis.String(object.config_password) : undefined,
|
|
429
|
-
test: isSet(object.test) ? globalThis.Boolean(object.test) : false,
|
|
430
|
-
simCardId: isSet(object.sim_card_id) ? globalThis.String(object.sim_card_id) : undefined,
|
|
431
|
-
timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : undefined,
|
|
432
|
-
isUnlimited: isSet(object.is_unlimited) ? globalThis.Boolean(object.is_unlimited) : false,
|
|
433
|
-
tripType: isSet(object.trip_type) ? globalThis.String(object.trip_type) : "",
|
|
434
|
-
modules: isSet(object.modules) ? DataModule.fromJSON(object.modules) : undefined,
|
|
435
|
-
receiveAt: isSet(object.receive_at) ? fromJsonTimestamp(object.receive_at) : undefined,
|
|
436
|
-
expiresAt: isSet(object.expires_at) ? fromJsonTimestamp(object.expires_at) : undefined,
|
|
437
|
-
connectAt: isSet(object.connect_at) ? fromJsonTimestamp(object.connect_at) : undefined,
|
|
438
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
439
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
440
|
-
};
|
|
441
|
-
},
|
|
442
|
-
toJSON(message) {
|
|
443
|
-
const obj = {};
|
|
444
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
445
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
446
|
-
}
|
|
447
|
-
if (message.organizationId !== undefined) {
|
|
448
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
449
|
-
}
|
|
450
|
-
if (message.partnerId !== undefined) {
|
|
451
|
-
obj.partner_id = (message.partnerId || Long.UZERO).toString();
|
|
452
|
-
}
|
|
453
|
-
if (message.generation !== undefined) {
|
|
454
|
-
obj.generation = message.generation;
|
|
455
|
-
}
|
|
456
|
-
if (message.deviceId !== "") {
|
|
457
|
-
obj.device_id = message.deviceId;
|
|
458
|
-
}
|
|
459
|
-
if (message.objectId !== undefined) {
|
|
460
|
-
obj.object_id = (message.objectId || Long.UZERO).toString();
|
|
461
|
-
}
|
|
462
|
-
if (message.objectType !== undefined) {
|
|
463
|
-
obj.object_type = message.objectType;
|
|
464
|
-
}
|
|
465
|
-
if (message.trackerId !== undefined) {
|
|
466
|
-
obj.tracker_id = (message.trackerId || Long.UZERO).toString();
|
|
467
|
-
}
|
|
468
|
-
if (!message.ownerId.equals(Long.UZERO)) {
|
|
469
|
-
obj.owner_id = (message.ownerId || Long.UZERO).toString();
|
|
470
|
-
}
|
|
471
|
-
if (message.iconId !== undefined) {
|
|
472
|
-
obj.icon_id = (message.iconId || Long.UZERO).toString();
|
|
473
|
-
}
|
|
474
|
-
if (message.warehouseId !== undefined) {
|
|
475
|
-
obj.warehouse_id = (message.warehouseId || Long.UZERO).toString();
|
|
476
|
-
}
|
|
477
|
-
if (!message.createdBy.equals(Long.UZERO)) {
|
|
478
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
479
|
-
}
|
|
480
|
-
if (message.simCard !== undefined) {
|
|
481
|
-
obj.sim_card = message.simCard;
|
|
482
|
-
}
|
|
483
|
-
if (message.simProvider !== undefined) {
|
|
484
|
-
obj.sim_provider = Math.round(message.simProvider);
|
|
485
|
-
}
|
|
486
|
-
if (message.idChanged !== 0) {
|
|
487
|
-
obj.id_changed = Math.round(message.idChanged);
|
|
488
|
-
}
|
|
489
|
-
if (message.iccId !== undefined) {
|
|
490
|
-
obj.icc_id = message.iccId;
|
|
491
|
-
}
|
|
492
|
-
if (message.smsUsername !== undefined) {
|
|
493
|
-
obj.sms_username = message.smsUsername;
|
|
494
|
-
}
|
|
495
|
-
if (message.smsPassword !== undefined) {
|
|
496
|
-
obj.sms_password = message.smsPassword;
|
|
497
|
-
}
|
|
498
|
-
if (message.configPassword !== undefined) {
|
|
499
|
-
obj.config_password = message.configPassword;
|
|
500
|
-
}
|
|
501
|
-
if (message.test !== false) {
|
|
502
|
-
obj.test = message.test;
|
|
503
|
-
}
|
|
504
|
-
if (message.simCardId !== undefined) {
|
|
505
|
-
obj.sim_card_id = message.simCardId;
|
|
506
|
-
}
|
|
507
|
-
if (message.timezone !== undefined) {
|
|
508
|
-
obj.timezone = message.timezone;
|
|
509
|
-
}
|
|
510
|
-
if (message.isUnlimited !== false) {
|
|
511
|
-
obj.is_unlimited = message.isUnlimited;
|
|
512
|
-
}
|
|
513
|
-
if (message.tripType !== "") {
|
|
514
|
-
obj.trip_type = message.tripType;
|
|
515
|
-
}
|
|
516
|
-
if (message.modules !== undefined) {
|
|
517
|
-
obj.modules = DataModule.toJSON(message.modules);
|
|
518
|
-
}
|
|
519
|
-
if (message.receiveAt !== undefined) {
|
|
520
|
-
obj.receive_at = message.receiveAt.toISOString();
|
|
521
|
-
}
|
|
522
|
-
if (message.expiresAt !== undefined) {
|
|
523
|
-
obj.expires_at = message.expiresAt.toISOString();
|
|
524
|
-
}
|
|
525
|
-
if (message.connectAt !== undefined) {
|
|
526
|
-
obj.connect_at = message.connectAt.toISOString();
|
|
527
|
-
}
|
|
528
|
-
if (message.createdAt !== undefined) {
|
|
529
|
-
obj.created_at = message.createdAt.toISOString();
|
|
530
|
-
}
|
|
531
|
-
if (message.updatedAt !== undefined) {
|
|
532
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
533
|
-
}
|
|
534
|
-
return obj;
|
|
535
|
-
},
|
|
536
373
|
create(base) {
|
|
537
374
|
return Device.fromPartial(base ?? {});
|
|
538
375
|
},
|
|
@@ -733,58 +570,6 @@ export const DeviceIcon = {
|
|
|
733
570
|
}
|
|
734
571
|
return message;
|
|
735
572
|
},
|
|
736
|
-
fromJSON(object) {
|
|
737
|
-
return {
|
|
738
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
739
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : Long.UZERO,
|
|
740
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
741
|
-
updatedBy: isSet(object.updated_by) ? Long.fromValue(object.updated_by) : undefined,
|
|
742
|
-
iconType: isSet(object.icon_type) ? Long.fromValue(object.icon_type) : Long.UZERO,
|
|
743
|
-
imageType: isSet(object.image_type) ? Long.fromValue(object.image_type) : Long.UZERO,
|
|
744
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
745
|
-
images: isSet(object.images) ? DeviceIcon_Image.fromJSON(object.images) : undefined,
|
|
746
|
-
isDefault: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
|
|
747
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
748
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
749
|
-
};
|
|
750
|
-
},
|
|
751
|
-
toJSON(message) {
|
|
752
|
-
const obj = {};
|
|
753
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
754
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
755
|
-
}
|
|
756
|
-
if (!message.organizationId.equals(Long.UZERO)) {
|
|
757
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
758
|
-
}
|
|
759
|
-
if (message.createdBy !== undefined) {
|
|
760
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
761
|
-
}
|
|
762
|
-
if (message.updatedBy !== undefined) {
|
|
763
|
-
obj.updated_by = (message.updatedBy || Long.UZERO).toString();
|
|
764
|
-
}
|
|
765
|
-
if (!message.iconType.equals(Long.UZERO)) {
|
|
766
|
-
obj.icon_type = (message.iconType || Long.UZERO).toString();
|
|
767
|
-
}
|
|
768
|
-
if (!message.imageType.equals(Long.UZERO)) {
|
|
769
|
-
obj.image_type = (message.imageType || Long.UZERO).toString();
|
|
770
|
-
}
|
|
771
|
-
if (message.name !== "") {
|
|
772
|
-
obj.name = message.name;
|
|
773
|
-
}
|
|
774
|
-
if (message.images !== undefined) {
|
|
775
|
-
obj.images = DeviceIcon_Image.toJSON(message.images);
|
|
776
|
-
}
|
|
777
|
-
if (message.isDefault !== false) {
|
|
778
|
-
obj.is_default = message.isDefault;
|
|
779
|
-
}
|
|
780
|
-
if (message.createdAt !== undefined) {
|
|
781
|
-
obj.created_at = message.createdAt.toISOString();
|
|
782
|
-
}
|
|
783
|
-
if (message.updatedAt !== undefined) {
|
|
784
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
785
|
-
}
|
|
786
|
-
return obj;
|
|
787
|
-
},
|
|
788
573
|
create(base) {
|
|
789
574
|
return DeviceIcon.fromPartial(base ?? {});
|
|
790
575
|
},
|
|
@@ -888,34 +673,6 @@ export const DeviceIcon_Image = {
|
|
|
888
673
|
}
|
|
889
674
|
return message;
|
|
890
675
|
},
|
|
891
|
-
fromJSON(object) {
|
|
892
|
-
return {
|
|
893
|
-
imgCelo: isSet(object.img_celo) ? globalThis.String(object.img_celo) : undefined,
|
|
894
|
-
imgMove: isSet(object.img_move) ? globalThis.String(object.img_move) : undefined,
|
|
895
|
-
imgStop: isSet(object.img_stop) ? globalThis.String(object.img_stop) : undefined,
|
|
896
|
-
imgTowing: isSet(object.img_towing) ? globalThis.String(object.img_towing) : undefined,
|
|
897
|
-
imgTimeout: isSet(object.img_timeout) ? globalThis.String(object.img_timeout) : undefined,
|
|
898
|
-
};
|
|
899
|
-
},
|
|
900
|
-
toJSON(message) {
|
|
901
|
-
const obj = {};
|
|
902
|
-
if (message.imgCelo !== undefined) {
|
|
903
|
-
obj.img_celo = message.imgCelo;
|
|
904
|
-
}
|
|
905
|
-
if (message.imgMove !== undefined) {
|
|
906
|
-
obj.img_move = message.imgMove;
|
|
907
|
-
}
|
|
908
|
-
if (message.imgStop !== undefined) {
|
|
909
|
-
obj.img_stop = message.imgStop;
|
|
910
|
-
}
|
|
911
|
-
if (message.imgTowing !== undefined) {
|
|
912
|
-
obj.img_towing = message.imgTowing;
|
|
913
|
-
}
|
|
914
|
-
if (message.imgTimeout !== undefined) {
|
|
915
|
-
obj.img_timeout = message.imgTimeout;
|
|
916
|
-
}
|
|
917
|
-
return obj;
|
|
918
|
-
},
|
|
919
676
|
create(base) {
|
|
920
677
|
return DeviceIcon_Image.fromPartial(base ?? {});
|
|
921
678
|
},
|
|
@@ -1084,64 +841,6 @@ export const Tracker = {
|
|
|
1084
841
|
}
|
|
1085
842
|
return message;
|
|
1086
843
|
},
|
|
1087
|
-
fromJSON(object) {
|
|
1088
|
-
return {
|
|
1089
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
1090
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1091
|
-
picture: isSet(object.picture) ? globalThis.String(object.picture) : undefined,
|
|
1092
|
-
metadata: isSet(object.metadata) ? Tracker_Metadata.fromJSON(object.metadata) : undefined,
|
|
1093
|
-
generation: isSet(object.generation) ? globalThis.String(object.generation) : undefined,
|
|
1094
|
-
level: isSet(object.level) ? globalThis.Number(object.level) : 0,
|
|
1095
|
-
parentId: isSet(object.parent_id) ? Long.fromValue(object.parent_id) : undefined,
|
|
1096
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
1097
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
1098
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
1099
|
-
documents: globalThis.Array.isArray(object?.documents)
|
|
1100
|
-
? object.documents.map((e) => Tracker_Document.fromJSON(e))
|
|
1101
|
-
: [],
|
|
1102
|
-
camera: isSet(object.camera) ? globalThis.String(object.camera) : undefined,
|
|
1103
|
-
};
|
|
1104
|
-
},
|
|
1105
|
-
toJSON(message) {
|
|
1106
|
-
const obj = {};
|
|
1107
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1108
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
1109
|
-
}
|
|
1110
|
-
if (message.name !== "") {
|
|
1111
|
-
obj.name = message.name;
|
|
1112
|
-
}
|
|
1113
|
-
if (message.picture !== undefined) {
|
|
1114
|
-
obj.picture = message.picture;
|
|
1115
|
-
}
|
|
1116
|
-
if (message.metadata !== undefined) {
|
|
1117
|
-
obj.metadata = Tracker_Metadata.toJSON(message.metadata);
|
|
1118
|
-
}
|
|
1119
|
-
if (message.generation !== undefined) {
|
|
1120
|
-
obj.generation = message.generation;
|
|
1121
|
-
}
|
|
1122
|
-
if (message.level !== 0) {
|
|
1123
|
-
obj.level = Math.round(message.level);
|
|
1124
|
-
}
|
|
1125
|
-
if (message.parentId !== undefined) {
|
|
1126
|
-
obj.parent_id = (message.parentId || Long.UZERO).toString();
|
|
1127
|
-
}
|
|
1128
|
-
if (message.createdBy !== undefined) {
|
|
1129
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
1130
|
-
}
|
|
1131
|
-
if (message.createdAt !== undefined) {
|
|
1132
|
-
obj.created_at = message.createdAt.toISOString();
|
|
1133
|
-
}
|
|
1134
|
-
if (message.updatedAt !== undefined) {
|
|
1135
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
1136
|
-
}
|
|
1137
|
-
if (message.documents?.length) {
|
|
1138
|
-
obj.documents = message.documents.map((e) => Tracker_Document.toJSON(e));
|
|
1139
|
-
}
|
|
1140
|
-
if (message.camera !== undefined) {
|
|
1141
|
-
obj.camera = message.camera;
|
|
1142
|
-
}
|
|
1143
|
-
return obj;
|
|
1144
|
-
},
|
|
1145
844
|
create(base) {
|
|
1146
845
|
return Tracker.fromPartial(base ?? {});
|
|
1147
846
|
},
|
|
@@ -1367,82 +1066,6 @@ export const Tracker_Metadata = {
|
|
|
1367
1066
|
}
|
|
1368
1067
|
return message;
|
|
1369
1068
|
},
|
|
1370
|
-
fromJSON(object) {
|
|
1371
|
-
return {
|
|
1372
|
-
port: isSet(object.port) ? globalThis.Number(object.port) : undefined,
|
|
1373
|
-
tags: isSet(object.tags) ? globalThis.String(object.tags) : undefined,
|
|
1374
|
-
type: isSet(object.type) ? globalThis.Number(object.type) : undefined,
|
|
1375
|
-
idType: isSet(object.id_type) ? globalThis.Number(object.id_type) : undefined,
|
|
1376
|
-
idStart: isSet(object.id_start) ? globalThis.String(object.id_start) : undefined,
|
|
1377
|
-
odoType: isSet(object.odo_type) ? globalThis.Number(object.odo_type) : undefined,
|
|
1378
|
-
callType: isSet(object.call_type) ? globalThis.Number(object.call_type) : undefined,
|
|
1379
|
-
idLength: isSet(object.id_length) ? globalThis.Number(object.id_length) : undefined,
|
|
1380
|
-
analogInput: isSet(object.analog_input) ? globalThis.Number(object.analog_input) : undefined,
|
|
1381
|
-
smsPassword: isSet(object.sms_password) ? globalThis.String(object.sms_password) : undefined,
|
|
1382
|
-
smsUsername: isSet(object.sms_username) ? globalThis.String(object.sms_username) : undefined,
|
|
1383
|
-
digitalInput: isSet(object.digital_input) ? globalThis.Number(object.digital_input) : undefined,
|
|
1384
|
-
digitalOutput: isSet(object.digital_output) ? globalThis.Number(object.digital_output) : undefined,
|
|
1385
|
-
movementSensor: isSet(object.movement_sensor) ? globalThis.Boolean(object.movement_sensor) : undefined,
|
|
1386
|
-
smsCredentials: isSet(object.sms_credentials)
|
|
1387
|
-
? Tracker_Metadata_SmsCredentials.fromJSON(object.sms_credentials)
|
|
1388
|
-
: undefined,
|
|
1389
|
-
deviceConfigCommands: isSet(object.device_config_commands)
|
|
1390
|
-
? globalThis.String(object.device_config_commands)
|
|
1391
|
-
: undefined,
|
|
1392
|
-
};
|
|
1393
|
-
},
|
|
1394
|
-
toJSON(message) {
|
|
1395
|
-
const obj = {};
|
|
1396
|
-
if (message.port !== undefined) {
|
|
1397
|
-
obj.port = Math.round(message.port);
|
|
1398
|
-
}
|
|
1399
|
-
if (message.tags !== undefined) {
|
|
1400
|
-
obj.tags = message.tags;
|
|
1401
|
-
}
|
|
1402
|
-
if (message.type !== undefined) {
|
|
1403
|
-
obj.type = Math.round(message.type);
|
|
1404
|
-
}
|
|
1405
|
-
if (message.idType !== undefined) {
|
|
1406
|
-
obj.id_type = Math.round(message.idType);
|
|
1407
|
-
}
|
|
1408
|
-
if (message.idStart !== undefined) {
|
|
1409
|
-
obj.id_start = message.idStart;
|
|
1410
|
-
}
|
|
1411
|
-
if (message.odoType !== undefined) {
|
|
1412
|
-
obj.odo_type = Math.round(message.odoType);
|
|
1413
|
-
}
|
|
1414
|
-
if (message.callType !== undefined) {
|
|
1415
|
-
obj.call_type = Math.round(message.callType);
|
|
1416
|
-
}
|
|
1417
|
-
if (message.idLength !== undefined) {
|
|
1418
|
-
obj.id_length = Math.round(message.idLength);
|
|
1419
|
-
}
|
|
1420
|
-
if (message.analogInput !== undefined) {
|
|
1421
|
-
obj.analog_input = Math.round(message.analogInput);
|
|
1422
|
-
}
|
|
1423
|
-
if (message.smsPassword !== undefined) {
|
|
1424
|
-
obj.sms_password = message.smsPassword;
|
|
1425
|
-
}
|
|
1426
|
-
if (message.smsUsername !== undefined) {
|
|
1427
|
-
obj.sms_username = message.smsUsername;
|
|
1428
|
-
}
|
|
1429
|
-
if (message.digitalInput !== undefined) {
|
|
1430
|
-
obj.digital_input = Math.round(message.digitalInput);
|
|
1431
|
-
}
|
|
1432
|
-
if (message.digitalOutput !== undefined) {
|
|
1433
|
-
obj.digital_output = Math.round(message.digitalOutput);
|
|
1434
|
-
}
|
|
1435
|
-
if (message.movementSensor !== undefined) {
|
|
1436
|
-
obj.movement_sensor = message.movementSensor;
|
|
1437
|
-
}
|
|
1438
|
-
if (message.smsCredentials !== undefined) {
|
|
1439
|
-
obj.sms_credentials = Tracker_Metadata_SmsCredentials.toJSON(message.smsCredentials);
|
|
1440
|
-
}
|
|
1441
|
-
if (message.deviceConfigCommands !== undefined) {
|
|
1442
|
-
obj.device_config_commands = message.deviceConfigCommands;
|
|
1443
|
-
}
|
|
1444
|
-
return obj;
|
|
1445
|
-
},
|
|
1446
1069
|
create(base) {
|
|
1447
1070
|
return Tracker_Metadata.fromPartial(base ?? {});
|
|
1448
1071
|
},
|
|
@@ -1511,22 +1134,6 @@ export const Tracker_Metadata_SmsCredentials = {
|
|
|
1511
1134
|
}
|
|
1512
1135
|
return message;
|
|
1513
1136
|
},
|
|
1514
|
-
fromJSON(object) {
|
|
1515
|
-
return {
|
|
1516
|
-
password: isSet(object.password) ? globalThis.String(object.password) : undefined,
|
|
1517
|
-
username: isSet(object.username) ? globalThis.String(object.username) : undefined,
|
|
1518
|
-
};
|
|
1519
|
-
},
|
|
1520
|
-
toJSON(message) {
|
|
1521
|
-
const obj = {};
|
|
1522
|
-
if (message.password !== undefined) {
|
|
1523
|
-
obj.password = message.password;
|
|
1524
|
-
}
|
|
1525
|
-
if (message.username !== undefined) {
|
|
1526
|
-
obj.username = message.username;
|
|
1527
|
-
}
|
|
1528
|
-
return obj;
|
|
1529
|
-
},
|
|
1530
1137
|
create(base) {
|
|
1531
1138
|
return Tracker_Metadata_SmsCredentials.fromPartial(base ?? {});
|
|
1532
1139
|
},
|
|
@@ -1626,38 +1233,6 @@ export const Tracker_Document = {
|
|
|
1626
1233
|
}
|
|
1627
1234
|
return message;
|
|
1628
1235
|
},
|
|
1629
|
-
fromJSON(object) {
|
|
1630
|
-
return {
|
|
1631
|
-
objectId: isSet(object.object_id) ? Long.fromValue(object.object_id) : undefined,
|
|
1632
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
1633
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : undefined,
|
|
1634
|
-
url: isSet(object.url) ? globalThis.String(object.url) : undefined,
|
|
1635
|
-
visibility: isSet(object.visibility) ? globalThis.String(object.visibility) : undefined,
|
|
1636
|
-
objectType: isSet(object.object_type) ? globalThis.String(object.object_type) : undefined,
|
|
1637
|
-
};
|
|
1638
|
-
},
|
|
1639
|
-
toJSON(message) {
|
|
1640
|
-
const obj = {};
|
|
1641
|
-
if (message.objectId !== undefined) {
|
|
1642
|
-
obj.object_id = (message.objectId || Long.UZERO).toString();
|
|
1643
|
-
}
|
|
1644
|
-
if (message.createdBy !== undefined) {
|
|
1645
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
1646
|
-
}
|
|
1647
|
-
if (message.organizationId !== undefined) {
|
|
1648
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
1649
|
-
}
|
|
1650
|
-
if (message.url !== undefined) {
|
|
1651
|
-
obj.url = message.url;
|
|
1652
|
-
}
|
|
1653
|
-
if (message.visibility !== undefined) {
|
|
1654
|
-
obj.visibility = message.visibility;
|
|
1655
|
-
}
|
|
1656
|
-
if (message.objectType !== undefined) {
|
|
1657
|
-
obj.object_type = message.objectType;
|
|
1658
|
-
}
|
|
1659
|
-
return obj;
|
|
1660
|
-
},
|
|
1661
1236
|
create(base) {
|
|
1662
1237
|
return Tracker_Document.fromPartial(base ?? {});
|
|
1663
1238
|
},
|
|
@@ -1833,64 +1408,6 @@ export const CarModel = {
|
|
|
1833
1408
|
}
|
|
1834
1409
|
return message;
|
|
1835
1410
|
},
|
|
1836
|
-
fromJSON(object) {
|
|
1837
|
-
return {
|
|
1838
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
1839
|
-
carBrandId: isSet(object.car_brand_id) ? Long.fromValue(object.car_brand_id) : Long.UZERO,
|
|
1840
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1841
|
-
picture: isSet(object.picture) ? globalThis.String(object.picture) : undefined,
|
|
1842
|
-
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
1843
|
-
sord: isSet(object.sord) ? globalThis.Number(object.sord) : undefined,
|
|
1844
|
-
isActive: isSet(object.is_active) ? globalThis.Boolean(object.is_active) : false,
|
|
1845
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
1846
|
-
updatedBy: isSet(object.updated_by) ? Long.fromValue(object.updated_by) : undefined,
|
|
1847
|
-
metadata: globalThis.Array.isArray(object?.metadata)
|
|
1848
|
-
? object.metadata.map((e) => CarModel_Metadata.fromJSON(e))
|
|
1849
|
-
: [],
|
|
1850
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
1851
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
1852
|
-
};
|
|
1853
|
-
},
|
|
1854
|
-
toJSON(message) {
|
|
1855
|
-
const obj = {};
|
|
1856
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1857
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
1858
|
-
}
|
|
1859
|
-
if (!message.carBrandId.equals(Long.UZERO)) {
|
|
1860
|
-
obj.car_brand_id = (message.carBrandId || Long.UZERO).toString();
|
|
1861
|
-
}
|
|
1862
|
-
if (message.name !== "") {
|
|
1863
|
-
obj.name = message.name;
|
|
1864
|
-
}
|
|
1865
|
-
if (message.picture !== undefined) {
|
|
1866
|
-
obj.picture = message.picture;
|
|
1867
|
-
}
|
|
1868
|
-
if (message.description !== undefined) {
|
|
1869
|
-
obj.description = message.description;
|
|
1870
|
-
}
|
|
1871
|
-
if (message.sord !== undefined) {
|
|
1872
|
-
obj.sord = Math.round(message.sord);
|
|
1873
|
-
}
|
|
1874
|
-
if (message.isActive !== false) {
|
|
1875
|
-
obj.is_active = message.isActive;
|
|
1876
|
-
}
|
|
1877
|
-
if (message.createdBy !== undefined) {
|
|
1878
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
1879
|
-
}
|
|
1880
|
-
if (message.updatedBy !== undefined) {
|
|
1881
|
-
obj.updated_by = (message.updatedBy || Long.UZERO).toString();
|
|
1882
|
-
}
|
|
1883
|
-
if (message.metadata?.length) {
|
|
1884
|
-
obj.metadata = message.metadata.map((e) => CarModel_Metadata.toJSON(e));
|
|
1885
|
-
}
|
|
1886
|
-
if (message.createdAt !== undefined) {
|
|
1887
|
-
obj.created_at = message.createdAt.toISOString();
|
|
1888
|
-
}
|
|
1889
|
-
if (message.updatedAt !== undefined) {
|
|
1890
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
1891
|
-
}
|
|
1892
|
-
return obj;
|
|
1893
|
-
},
|
|
1894
1411
|
create(base) {
|
|
1895
1412
|
return CarModel.fromPartial(base ?? {});
|
|
1896
1413
|
},
|
|
@@ -1969,26 +1486,6 @@ export const CarModel_Metadata = {
|
|
|
1969
1486
|
}
|
|
1970
1487
|
return message;
|
|
1971
1488
|
},
|
|
1972
|
-
fromJSON(object) {
|
|
1973
|
-
return {
|
|
1974
|
-
key: isSet(object.key) ? globalThis.String(object.key) : undefined,
|
|
1975
|
-
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
1976
|
-
value: isSet(object.value) ? globalThis.String(object.value) : undefined,
|
|
1977
|
-
};
|
|
1978
|
-
},
|
|
1979
|
-
toJSON(message) {
|
|
1980
|
-
const obj = {};
|
|
1981
|
-
if (message.key !== undefined) {
|
|
1982
|
-
obj.key = message.key;
|
|
1983
|
-
}
|
|
1984
|
-
if (message.name !== undefined) {
|
|
1985
|
-
obj.name = message.name;
|
|
1986
|
-
}
|
|
1987
|
-
if (message.value !== undefined) {
|
|
1988
|
-
obj.value = message.value;
|
|
1989
|
-
}
|
|
1990
|
-
return obj;
|
|
1991
|
-
},
|
|
1992
1489
|
create(base) {
|
|
1993
1490
|
return CarModel_Metadata.fromPartial(base ?? {});
|
|
1994
1491
|
},
|
|
@@ -2144,58 +1641,6 @@ export const CarBrand = {
|
|
|
2144
1641
|
}
|
|
2145
1642
|
return message;
|
|
2146
1643
|
},
|
|
2147
|
-
fromJSON(object) {
|
|
2148
|
-
return {
|
|
2149
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
2150
|
-
carCategoryId: isSet(object.car_category_id) ? Long.fromValue(object.car_category_id) : Long.UZERO,
|
|
2151
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2152
|
-
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
2153
|
-
picture: isSet(object.picture) ? globalThis.String(object.picture) : undefined,
|
|
2154
|
-
sord: isSet(object.sord) ? globalThis.Number(object.sord) : undefined,
|
|
2155
|
-
isActive: isSet(object.is_active) ? globalThis.Boolean(object.is_active) : undefined,
|
|
2156
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
2157
|
-
updatedBy: isSet(object.updated_by) ? Long.fromValue(object.updated_by) : undefined,
|
|
2158
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
2159
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
2160
|
-
};
|
|
2161
|
-
},
|
|
2162
|
-
toJSON(message) {
|
|
2163
|
-
const obj = {};
|
|
2164
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
2165
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
2166
|
-
}
|
|
2167
|
-
if (!message.carCategoryId.equals(Long.UZERO)) {
|
|
2168
|
-
obj.car_category_id = (message.carCategoryId || Long.UZERO).toString();
|
|
2169
|
-
}
|
|
2170
|
-
if (message.name !== "") {
|
|
2171
|
-
obj.name = message.name;
|
|
2172
|
-
}
|
|
2173
|
-
if (message.description !== undefined) {
|
|
2174
|
-
obj.description = message.description;
|
|
2175
|
-
}
|
|
2176
|
-
if (message.picture !== undefined) {
|
|
2177
|
-
obj.picture = message.picture;
|
|
2178
|
-
}
|
|
2179
|
-
if (message.sord !== undefined) {
|
|
2180
|
-
obj.sord = Math.round(message.sord);
|
|
2181
|
-
}
|
|
2182
|
-
if (message.isActive !== undefined) {
|
|
2183
|
-
obj.is_active = message.isActive;
|
|
2184
|
-
}
|
|
2185
|
-
if (message.createdBy !== undefined) {
|
|
2186
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
2187
|
-
}
|
|
2188
|
-
if (message.updatedBy !== undefined) {
|
|
2189
|
-
obj.updated_by = (message.updatedBy || Long.UZERO).toString();
|
|
2190
|
-
}
|
|
2191
|
-
if (message.createdAt !== undefined) {
|
|
2192
|
-
obj.created_at = message.createdAt.toISOString();
|
|
2193
|
-
}
|
|
2194
|
-
if (message.updatedAt !== undefined) {
|
|
2195
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
2196
|
-
}
|
|
2197
|
-
return obj;
|
|
2198
|
-
},
|
|
2199
1644
|
create(base) {
|
|
2200
1645
|
return CarBrand.fromPartial(base ?? {});
|
|
2201
1646
|
},
|
|
@@ -2530,122 +1975,6 @@ export const Car = {
|
|
|
2530
1975
|
}
|
|
2531
1976
|
return message;
|
|
2532
1977
|
},
|
|
2533
|
-
fromJSON(object) {
|
|
2534
|
-
return {
|
|
2535
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
2536
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : Long.UZERO,
|
|
2537
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
2538
|
-
updatedBy: isSet(object.updated_by) ? Long.fromValue(object.updated_by) : undefined,
|
|
2539
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2540
|
-
picture: isSet(object.picture) ? globalThis.String(object.picture) : undefined,
|
|
2541
|
-
plateNumber: isSet(object.plate_number) ? globalThis.String(object.plate_number) : undefined,
|
|
2542
|
-
carGroupId: isSet(object.car_group_id) ? Long.fromValue(object.car_group_id) : undefined,
|
|
2543
|
-
carType: isSet(object.car_type) ? Long.fromValue(object.car_type) : undefined,
|
|
2544
|
-
code: isSet(object.code) ? globalThis.String(object.code) : undefined,
|
|
2545
|
-
tonnage: isSet(object.tonnage) ? Long.fromValue(object.tonnage) : undefined,
|
|
2546
|
-
maxSpeed: isSet(object.max_speed) ? Long.fromValue(object.max_speed) : undefined,
|
|
2547
|
-
vin: isSet(object.vin) ? globalThis.String(object.vin) : undefined,
|
|
2548
|
-
engineNumber: isSet(object.engine_number) ? globalThis.String(object.engine_number) : undefined,
|
|
2549
|
-
chassisNumber: isSet(object.chassis_number) ? globalThis.String(object.chassis_number) : undefined,
|
|
2550
|
-
modelYear: isSet(object.model_year) ? globalThis.Number(object.model_year) : undefined,
|
|
2551
|
-
fuelUsage: isSet(object.fuel_usage) ? globalThis.Number(object.fuel_usage) : undefined,
|
|
2552
|
-
fuelUsagePerHour: isSet(object.fuel_usage_per_hour) ? globalThis.Number(object.fuel_usage_per_hour) : undefined,
|
|
2553
|
-
fuelType: isSet(object.fuel_type) ? globalThis.String(object.fuel_type) : undefined,
|
|
2554
|
-
fuelCapacity: isSet(object.fuel_capacity) ? globalThis.Number(object.fuel_capacity) : undefined,
|
|
2555
|
-
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
2556
|
-
guarantyExpirationDate: isSet(object.guaranty_expiration_date)
|
|
2557
|
-
? fromJsonTimestamp(object.guaranty_expiration_date)
|
|
2558
|
-
: undefined,
|
|
2559
|
-
guarantyExpirationKm: isSet(object.guaranty_expiration_km)
|
|
2560
|
-
? Long.fromValue(object.guaranty_expiration_km)
|
|
2561
|
-
: undefined,
|
|
2562
|
-
color: isSet(object.color) ? globalThis.String(object.color) : undefined,
|
|
2563
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
2564
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
2565
|
-
};
|
|
2566
|
-
},
|
|
2567
|
-
toJSON(message) {
|
|
2568
|
-
const obj = {};
|
|
2569
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
2570
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
2571
|
-
}
|
|
2572
|
-
if (!message.organizationId.equals(Long.UZERO)) {
|
|
2573
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
2574
|
-
}
|
|
2575
|
-
if (message.createdBy !== undefined) {
|
|
2576
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
2577
|
-
}
|
|
2578
|
-
if (message.updatedBy !== undefined) {
|
|
2579
|
-
obj.updated_by = (message.updatedBy || Long.UZERO).toString();
|
|
2580
|
-
}
|
|
2581
|
-
if (message.name !== "") {
|
|
2582
|
-
obj.name = message.name;
|
|
2583
|
-
}
|
|
2584
|
-
if (message.picture !== undefined) {
|
|
2585
|
-
obj.picture = message.picture;
|
|
2586
|
-
}
|
|
2587
|
-
if (message.plateNumber !== undefined) {
|
|
2588
|
-
obj.plate_number = message.plateNumber;
|
|
2589
|
-
}
|
|
2590
|
-
if (message.carGroupId !== undefined) {
|
|
2591
|
-
obj.car_group_id = (message.carGroupId || Long.UZERO).toString();
|
|
2592
|
-
}
|
|
2593
|
-
if (message.carType !== undefined) {
|
|
2594
|
-
obj.car_type = (message.carType || Long.UZERO).toString();
|
|
2595
|
-
}
|
|
2596
|
-
if (message.code !== undefined) {
|
|
2597
|
-
obj.code = message.code;
|
|
2598
|
-
}
|
|
2599
|
-
if (message.tonnage !== undefined) {
|
|
2600
|
-
obj.tonnage = (message.tonnage || Long.UZERO).toString();
|
|
2601
|
-
}
|
|
2602
|
-
if (message.maxSpeed !== undefined) {
|
|
2603
|
-
obj.max_speed = (message.maxSpeed || Long.UZERO).toString();
|
|
2604
|
-
}
|
|
2605
|
-
if (message.vin !== undefined) {
|
|
2606
|
-
obj.vin = message.vin;
|
|
2607
|
-
}
|
|
2608
|
-
if (message.engineNumber !== undefined) {
|
|
2609
|
-
obj.engine_number = message.engineNumber;
|
|
2610
|
-
}
|
|
2611
|
-
if (message.chassisNumber !== undefined) {
|
|
2612
|
-
obj.chassis_number = message.chassisNumber;
|
|
2613
|
-
}
|
|
2614
|
-
if (message.modelYear !== undefined) {
|
|
2615
|
-
obj.model_year = Math.round(message.modelYear);
|
|
2616
|
-
}
|
|
2617
|
-
if (message.fuelUsage !== undefined) {
|
|
2618
|
-
obj.fuel_usage = Math.round(message.fuelUsage);
|
|
2619
|
-
}
|
|
2620
|
-
if (message.fuelUsagePerHour !== undefined) {
|
|
2621
|
-
obj.fuel_usage_per_hour = Math.round(message.fuelUsagePerHour);
|
|
2622
|
-
}
|
|
2623
|
-
if (message.fuelType !== undefined) {
|
|
2624
|
-
obj.fuel_type = message.fuelType;
|
|
2625
|
-
}
|
|
2626
|
-
if (message.fuelCapacity !== undefined) {
|
|
2627
|
-
obj.fuel_capacity = Math.round(message.fuelCapacity);
|
|
2628
|
-
}
|
|
2629
|
-
if (message.description !== undefined) {
|
|
2630
|
-
obj.description = message.description;
|
|
2631
|
-
}
|
|
2632
|
-
if (message.guarantyExpirationDate !== undefined) {
|
|
2633
|
-
obj.guaranty_expiration_date = message.guarantyExpirationDate.toISOString();
|
|
2634
|
-
}
|
|
2635
|
-
if (message.guarantyExpirationKm !== undefined) {
|
|
2636
|
-
obj.guaranty_expiration_km = (message.guarantyExpirationKm || Long.UZERO).toString();
|
|
2637
|
-
}
|
|
2638
|
-
if (message.color !== undefined) {
|
|
2639
|
-
obj.color = message.color;
|
|
2640
|
-
}
|
|
2641
|
-
if (message.createdAt !== undefined) {
|
|
2642
|
-
obj.created_at = message.createdAt.toISOString();
|
|
2643
|
-
}
|
|
2644
|
-
if (message.updatedAt !== undefined) {
|
|
2645
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
2646
|
-
}
|
|
2647
|
-
return obj;
|
|
2648
|
-
},
|
|
2649
1978
|
create(base) {
|
|
2650
1979
|
return Car.fromPartial(base ?? {});
|
|
2651
1980
|
},
|
|
@@ -2748,26 +2077,6 @@ export const SystemIoStyle = {
|
|
|
2748
2077
|
}
|
|
2749
2078
|
return message;
|
|
2750
2079
|
},
|
|
2751
|
-
fromJSON(object) {
|
|
2752
|
-
return {
|
|
2753
|
-
icon: isSet(object.icon) ? globalThis.String(object.icon) : undefined,
|
|
2754
|
-
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
2755
|
-
color: isSet(object.color) ? globalThis.String(object.color) : undefined,
|
|
2756
|
-
};
|
|
2757
|
-
},
|
|
2758
|
-
toJSON(message) {
|
|
2759
|
-
const obj = {};
|
|
2760
|
-
if (message.icon !== undefined) {
|
|
2761
|
-
obj.icon = message.icon;
|
|
2762
|
-
}
|
|
2763
|
-
if (message.name !== undefined) {
|
|
2764
|
-
obj.name = message.name;
|
|
2765
|
-
}
|
|
2766
|
-
if (message.color !== undefined) {
|
|
2767
|
-
obj.color = message.color;
|
|
2768
|
-
}
|
|
2769
|
-
return obj;
|
|
2770
|
-
},
|
|
2771
2080
|
create(base) {
|
|
2772
2081
|
return SystemIoStyle.fromPartial(base ?? {});
|
|
2773
2082
|
},
|
|
@@ -3025,105 +2334,6 @@ export const SystemIo = {
|
|
|
3025
2334
|
}
|
|
3026
2335
|
return message;
|
|
3027
2336
|
},
|
|
3028
|
-
fromJSON(object) {
|
|
3029
|
-
return {
|
|
3030
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
3031
|
-
deviceId: isSet(object.device_id) ? Long.fromValue(object.device_id) : undefined,
|
|
3032
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : undefined,
|
|
3033
|
-
formula: isSet(object.formula) ? globalThis.String(object.formula) : "",
|
|
3034
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
3035
|
-
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
3036
|
-
type: isSet(object.type) ? systemIo_SystemIoTypeFromJSON(object.type) : 0,
|
|
3037
|
-
unit: isSet(object.unit) ? globalThis.String(object.unit) : undefined,
|
|
3038
|
-
activeStyle: isSet(object.active_style) ? SystemIoStyle.fromJSON(object.active_style) : undefined,
|
|
3039
|
-
inactiveStyle: isSet(object.inactive_style) ? SystemIoStyle.fromJSON(object.inactive_style) : undefined,
|
|
3040
|
-
active: isSet(object.active) ? globalThis.Boolean(object.active) : false,
|
|
3041
|
-
graphable: isSet(object.graphable) ? globalThis.Boolean(object.graphable) : false,
|
|
3042
|
-
sord: isSet(object.sord) ? globalThis.Number(object.sord) : 0,
|
|
3043
|
-
hidden: globalThis.Array.isArray(object?.hidden) ? object.hidden.map((e) => globalThis.String(e)) : [],
|
|
3044
|
-
unknown: isObject(object.unknown)
|
|
3045
|
-
? Object.entries(object.unknown).reduce((acc, [key, value]) => {
|
|
3046
|
-
acc[key] = String(value);
|
|
3047
|
-
return acc;
|
|
3048
|
-
}, {})
|
|
3049
|
-
: {},
|
|
3050
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
3051
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
3052
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
3053
|
-
SeparatorsCount: isSet(object.separators_count) ? globalThis.Number(object.separators_count) : undefined,
|
|
3054
|
-
DecimalCount: isSet(object.decimal_count) ? globalThis.Number(object.decimal_count) : undefined,
|
|
3055
|
-
};
|
|
3056
|
-
},
|
|
3057
|
-
toJSON(message) {
|
|
3058
|
-
const obj = {};
|
|
3059
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
3060
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
3061
|
-
}
|
|
3062
|
-
if (message.deviceId !== undefined) {
|
|
3063
|
-
obj.device_id = (message.deviceId || Long.UZERO).toString();
|
|
3064
|
-
}
|
|
3065
|
-
if (message.organizationId !== undefined) {
|
|
3066
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
3067
|
-
}
|
|
3068
|
-
if (message.formula !== "") {
|
|
3069
|
-
obj.formula = message.formula;
|
|
3070
|
-
}
|
|
3071
|
-
if (message.name !== "") {
|
|
3072
|
-
obj.name = message.name;
|
|
3073
|
-
}
|
|
3074
|
-
if (message.description !== undefined) {
|
|
3075
|
-
obj.description = message.description;
|
|
3076
|
-
}
|
|
3077
|
-
if (message.type !== 0) {
|
|
3078
|
-
obj.type = systemIo_SystemIoTypeToJSON(message.type);
|
|
3079
|
-
}
|
|
3080
|
-
if (message.unit !== undefined) {
|
|
3081
|
-
obj.unit = message.unit;
|
|
3082
|
-
}
|
|
3083
|
-
if (message.activeStyle !== undefined) {
|
|
3084
|
-
obj.active_style = SystemIoStyle.toJSON(message.activeStyle);
|
|
3085
|
-
}
|
|
3086
|
-
if (message.inactiveStyle !== undefined) {
|
|
3087
|
-
obj.inactive_style = SystemIoStyle.toJSON(message.inactiveStyle);
|
|
3088
|
-
}
|
|
3089
|
-
if (message.active !== false) {
|
|
3090
|
-
obj.active = message.active;
|
|
3091
|
-
}
|
|
3092
|
-
if (message.graphable !== false) {
|
|
3093
|
-
obj.graphable = message.graphable;
|
|
3094
|
-
}
|
|
3095
|
-
if (message.sord !== 0) {
|
|
3096
|
-
obj.sord = Math.round(message.sord);
|
|
3097
|
-
}
|
|
3098
|
-
if (message.hidden?.length) {
|
|
3099
|
-
obj.hidden = message.hidden;
|
|
3100
|
-
}
|
|
3101
|
-
if (message.unknown) {
|
|
3102
|
-
const entries = Object.entries(message.unknown);
|
|
3103
|
-
if (entries.length > 0) {
|
|
3104
|
-
obj.unknown = {};
|
|
3105
|
-
entries.forEach(([k, v]) => {
|
|
3106
|
-
obj.unknown[k] = v;
|
|
3107
|
-
});
|
|
3108
|
-
}
|
|
3109
|
-
}
|
|
3110
|
-
if (message.createdBy !== undefined) {
|
|
3111
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
3112
|
-
}
|
|
3113
|
-
if (message.createdAt !== undefined) {
|
|
3114
|
-
obj.created_at = message.createdAt.toISOString();
|
|
3115
|
-
}
|
|
3116
|
-
if (message.updatedAt !== undefined) {
|
|
3117
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
3118
|
-
}
|
|
3119
|
-
if (message.SeparatorsCount !== undefined) {
|
|
3120
|
-
obj.separators_count = Math.round(message.SeparatorsCount);
|
|
3121
|
-
}
|
|
3122
|
-
if (message.DecimalCount !== undefined) {
|
|
3123
|
-
obj.decimal_count = Math.round(message.DecimalCount);
|
|
3124
|
-
}
|
|
3125
|
-
return obj;
|
|
3126
|
-
},
|
|
3127
2337
|
create(base) {
|
|
3128
2338
|
return SystemIo.fromPartial(base ?? {});
|
|
3129
2339
|
},
|
|
@@ -3209,22 +2419,6 @@ export const SystemIo_UnknownEntry = {
|
|
|
3209
2419
|
}
|
|
3210
2420
|
return message;
|
|
3211
2421
|
},
|
|
3212
|
-
fromJSON(object) {
|
|
3213
|
-
return {
|
|
3214
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
3215
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
3216
|
-
};
|
|
3217
|
-
},
|
|
3218
|
-
toJSON(message) {
|
|
3219
|
-
const obj = {};
|
|
3220
|
-
if (message.key !== "") {
|
|
3221
|
-
obj.key = message.key;
|
|
3222
|
-
}
|
|
3223
|
-
if (message.value !== "") {
|
|
3224
|
-
obj.value = message.value;
|
|
3225
|
-
}
|
|
3226
|
-
return obj;
|
|
3227
|
-
},
|
|
3228
2422
|
create(base) {
|
|
3229
2423
|
return SystemIo_UnknownEntry.fromPartial(base ?? {});
|
|
3230
2424
|
},
|
|
@@ -3346,46 +2540,6 @@ export const ShownIo = {
|
|
|
3346
2540
|
}
|
|
3347
2541
|
return message;
|
|
3348
2542
|
},
|
|
3349
|
-
fromJSON(object) {
|
|
3350
|
-
return {
|
|
3351
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
3352
|
-
style: isSet(object.style) ? SystemIoStyle.fromJSON(object.style) : undefined,
|
|
3353
|
-
unit: isSet(object.unit) ? globalThis.String(object.unit) : undefined,
|
|
3354
|
-
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
3355
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
3356
|
-
active: isSet(object.active) ? globalThis.Boolean(object.active) : false,
|
|
3357
|
-
graphable: isSet(object.graphable) ? globalThis.Boolean(object.graphable) : false,
|
|
3358
|
-
sord: isSet(object.sord) ? globalThis.Number(object.sord) : 0,
|
|
3359
|
-
};
|
|
3360
|
-
},
|
|
3361
|
-
toJSON(message) {
|
|
3362
|
-
const obj = {};
|
|
3363
|
-
if (message.name !== "") {
|
|
3364
|
-
obj.name = message.name;
|
|
3365
|
-
}
|
|
3366
|
-
if (message.style !== undefined) {
|
|
3367
|
-
obj.style = SystemIoStyle.toJSON(message.style);
|
|
3368
|
-
}
|
|
3369
|
-
if (message.unit !== undefined) {
|
|
3370
|
-
obj.unit = message.unit;
|
|
3371
|
-
}
|
|
3372
|
-
if (message.description !== undefined) {
|
|
3373
|
-
obj.description = message.description;
|
|
3374
|
-
}
|
|
3375
|
-
if (message.value !== "") {
|
|
3376
|
-
obj.value = message.value;
|
|
3377
|
-
}
|
|
3378
|
-
if (message.active !== false) {
|
|
3379
|
-
obj.active = message.active;
|
|
3380
|
-
}
|
|
3381
|
-
if (message.graphable !== false) {
|
|
3382
|
-
obj.graphable = message.graphable;
|
|
3383
|
-
}
|
|
3384
|
-
if (message.sord !== 0) {
|
|
3385
|
-
obj.sord = Math.round(message.sord);
|
|
3386
|
-
}
|
|
3387
|
-
return obj;
|
|
3388
|
-
},
|
|
3389
2543
|
create(base) {
|
|
3390
2544
|
return ShownIo.fromPartial(base ?? {});
|
|
3391
2545
|
},
|
|
@@ -3537,54 +2691,6 @@ export const CommandAction = {
|
|
|
3537
2691
|
}
|
|
3538
2692
|
return message;
|
|
3539
2693
|
},
|
|
3540
|
-
fromJSON(object) {
|
|
3541
|
-
return {
|
|
3542
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
3543
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
3544
|
-
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
3545
|
-
picture: isSet(object.picture) ? globalThis.String(object.picture) : undefined,
|
|
3546
|
-
sord: isSet(object.sord) ? globalThis.Number(object.sord) : 0,
|
|
3547
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : undefined,
|
|
3548
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
3549
|
-
updatedBy: isSet(object.updated_by) ? Long.fromValue(object.updated_by) : undefined,
|
|
3550
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
3551
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
3552
|
-
};
|
|
3553
|
-
},
|
|
3554
|
-
toJSON(message) {
|
|
3555
|
-
const obj = {};
|
|
3556
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
3557
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
3558
|
-
}
|
|
3559
|
-
if (message.name !== "") {
|
|
3560
|
-
obj.name = message.name;
|
|
3561
|
-
}
|
|
3562
|
-
if (message.description !== undefined) {
|
|
3563
|
-
obj.description = message.description;
|
|
3564
|
-
}
|
|
3565
|
-
if (message.picture !== undefined) {
|
|
3566
|
-
obj.picture = message.picture;
|
|
3567
|
-
}
|
|
3568
|
-
if (message.sord !== 0) {
|
|
3569
|
-
obj.sord = Math.round(message.sord);
|
|
3570
|
-
}
|
|
3571
|
-
if (message.organizationId !== undefined) {
|
|
3572
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
3573
|
-
}
|
|
3574
|
-
if (message.createdBy !== undefined) {
|
|
3575
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
3576
|
-
}
|
|
3577
|
-
if (message.updatedBy !== undefined) {
|
|
3578
|
-
obj.updated_by = (message.updatedBy || Long.UZERO).toString();
|
|
3579
|
-
}
|
|
3580
|
-
if (message.createdAt !== undefined) {
|
|
3581
|
-
obj.created_at = message.createdAt.toISOString();
|
|
3582
|
-
}
|
|
3583
|
-
if (message.updatedAt !== undefined) {
|
|
3584
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
3585
|
-
}
|
|
3586
|
-
return obj;
|
|
3587
|
-
},
|
|
3588
2694
|
create(base) {
|
|
3589
2695
|
return CommandAction.fromPartial(base ?? {});
|
|
3590
2696
|
},
|
|
@@ -3619,23 +2725,6 @@ function fromTimestamp(t) {
|
|
|
3619
2725
|
millis += (t.nanos || 0) / 1_000_000;
|
|
3620
2726
|
return new globalThis.Date(millis);
|
|
3621
2727
|
}
|
|
3622
|
-
function fromJsonTimestamp(o) {
|
|
3623
|
-
if (o instanceof globalThis.Date) {
|
|
3624
|
-
return o;
|
|
3625
|
-
}
|
|
3626
|
-
else if (typeof o === "string") {
|
|
3627
|
-
return new globalThis.Date(o);
|
|
3628
|
-
}
|
|
3629
|
-
else {
|
|
3630
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
3631
|
-
}
|
|
3632
|
-
}
|
|
3633
2728
|
function numberToLong(number) {
|
|
3634
2729
|
return Long.fromNumber(number);
|
|
3635
2730
|
}
|
|
3636
|
-
function isObject(value) {
|
|
3637
|
-
return typeof value === "object" && value !== null;
|
|
3638
|
-
}
|
|
3639
|
-
function isSet(value) {
|
|
3640
|
-
return value !== null && value !== undefined;
|
|
3641
|
-
}
|