@fatehan/tsrp 1.0.22 → 1.0.24

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.
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.0
4
+ // protoc-gen-ts_proto v2.7.5
5
5
  // protoc v6.31.1
6
6
  // source: reports/report.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.Traffix_Event = exports.Traffix = exports.TraffixResponse = exports.DashboardIndividualRequest = exports.DashboardIndividualResponse_SpeedsEntry = exports.DashboardIndividualResponse_GreenDrivingEntry = exports.DashboardIndividualResponse_Environmental_HumidityEntry = exports.DashboardIndividualResponse_Environmental_TemperatureEntry = exports.DashboardIndividualResponse_Environmental = exports.DashboardIndividualResponse = exports.LatestDataModelRequest = exports.TripPerformance_SpeedsEntry = exports.TripPerformance_CrashesEntry = exports.TripPerformance_HumidityEntry = exports.TripPerformance_TemperatureEntry = exports.TripPerformance_DrivingEntry = exports.TripPerformance_Average = exports.TripPerformance = exports.TripPerformanceResponse = exports.TripPerformanceRequest = exports.MaintenanceResponse_Device = exports.MaintenanceResponse_Service = exports.MaintenanceResponse_Group = exports.MaintenanceResponse_List = exports.MaintenanceResponse_Cost = exports.MaintenanceResponse = exports.MaintenanceRequest = exports.AreaSplitterResponse_Record = exports.AreaSplitterResponse_Area = exports.AreaSplitterResponse = exports.AreaSplitterRequest = exports.TripReportRequest = exports.WorkCycleResponse = exports.WorkCycleRequest = exports.TripsSummaryRequest_GroupBy = exports.AttendanceResponse_EventType = exports.TrafficResponse_Traffic_EventType = exports.AreaReviewResponse_AreaReview_AreaEventType = exports.AreaSummaryReviewResponse_trafficType = exports.AreaSummaryReviewRequest_AreaSourceEnum = exports.AreaSummaryReviewRequest_ScopeEnum = exports.AreaSummaryReviewRequest_GroupEnum = exports.EnvironmentalRequest_EnvironmentalFieldEnum = exports.Traffix_Event_Type = exports.TripPerformanceRequest_GroupBy = exports.MaintenanceRequest_GroupBy = exports.StopCalculateIo = exports.RouteStopType = exports.Source = exports.protobufPackage = void 0;
12
- exports.TripsSummaryResponse = exports.TripsSummaryRequest = exports.TripsResponse = exports.TripsRequest = exports.AttendanceResponse_Attendance = exports.AttendanceResponse_Event = exports.AttendanceResponse = exports.AttendanceXRequest = exports.AttendanceRequest = exports.TrafficResponse_Traffic = exports.TrafficResponse = exports.TrafficRequest = exports.LogRequest = exports.LogResponse = exports.DeviceDataResponse = exports.DeviceDataRequest = exports.AreaReviewResponse_AreaReview = exports.AreaReviewResponse = exports.AreaReviewRequest = exports.RouteReviewResponse = exports.RouteReviewRequest = exports.RouteStopRequest = exports.RouteStopResponse = exports.RouteStopPoint = exports.DailyTrafficRequest = exports.DailyTrafficResponse_DailyTraffic = exports.DailyTrafficResponse_Traffic = exports.DailyTrafficResponse = exports.DeviceDataCountResponse_DeviceDataCount = exports.DeviceDataCountResponse = exports.DeviceDataCountRequest = exports.ShiftSummaryRequest = exports.ShiftResponse_Shift = exports.ShiftResponse = exports.ShiftRequest = exports.ShiftSummaryResponse_Summary = exports.ShiftSummaryResponse = exports.AreaSummaryReviewResponse_AreasDetailEntry = exports.AreaSummaryReviewResponse_DevicesDetailEntry = exports.AreaSummaryReviewResponse_Detail = exports.AreaSummaryReviewResponse_Area = exports.AreaSummaryReviewResponse_Review = exports.AreaSummaryReviewResponse = exports.AreaSummaryReviewRequest = exports.TripReportResponse = exports.EnvironmentalRequest = exports.EnvironmentalResponse_EnvironmentalField = exports.EnvironmentalResponse = exports.TraffixRequest = exports.Traffix_STOP = void 0;
11
+ exports.Traffix_STOP = exports.Traffix_Event = exports.Traffix = exports.TraffixResponse = exports.DashboardIndividualRequest = exports.DashboardIndividualResponse_SpeedsEntry = exports.DashboardIndividualResponse_GreenDrivingEntry = exports.DashboardIndividualResponse_Environmental_HumidityEntry = exports.DashboardIndividualResponse_Environmental_TemperatureEntry = exports.DashboardIndividualResponse_Environmental = exports.DashboardIndividualResponse = exports.LatestDataModelRequest = exports.TripPerformance_SpeedsEntry = exports.TripPerformance_CrashesEntry = exports.TripPerformance_HumidityEntry = exports.TripPerformance_TemperatureEntry = exports.TripPerformance_DrivingEntry = exports.TripPerformance_Average = exports.TripPerformance = exports.TripPerformanceResponse = exports.TripPerformanceRequest = exports.MaintenanceResponse_Device = exports.MaintenanceResponse_Service = exports.MaintenanceResponse_Group = exports.MaintenanceResponse_List = exports.MaintenanceResponse_Cost = exports.MaintenanceResponse = exports.MaintenanceRequest = exports.AreaSplitterResponse_Record = exports.AreaSplitterResponse_Area = exports.AreaSplitterResponse = exports.AreaSplitterRequest = exports.TripReportRequest = exports.WorkCycleResponse = exports.WorkCycleRequest = exports.TripsSummaryRequest_GroupBy = exports.AttendanceResponse_EventType = exports.TrafficResponse_Traffic_EventType = exports.AreaReviewResponse_AreaReview_AreaEventType = exports.AreaSummaryReviewResponse_trafficType = exports.AreaSummaryReviewRequest_AreaSourceEnum = exports.AreaSummaryReviewRequest_ScopeEnum = exports.EnvironmentalRequest_EnvironmentalFieldEnum = exports.Traffix_Event_Type = exports.TripPerformanceRequest_GroupBy = exports.MaintenanceRequest_GroupBy = exports.StopCalculateIo = exports.RouteStopType = exports.Source = exports.protobufPackage = void 0;
12
+ exports.TripsSummaryResponse = exports.TripsSummaryRequest = exports.TripsResponse = exports.TripsRequest = exports.AttendanceResponse_Attendance = exports.AttendanceResponse_Event = exports.AttendanceResponse = exports.AttendanceXRequest = exports.AttendanceRequest = exports.TrafficResponse_Traffic = exports.TrafficResponse = exports.TrafficRequest = exports.LogRequest = exports.LogResponse = exports.DeviceDataResponse = exports.DeviceDataRequest = exports.AreaReviewResponse_AreaReview = exports.AreaReviewResponse = exports.AreaReviewRequest = exports.RouteReviewResponse = exports.RouteReviewRequest = exports.RouteStopRequest = exports.RouteStopResponse = exports.RouteStopPoint = exports.DailyTrafficRequest = exports.DailyTrafficResponse_DailyTraffic = exports.DailyTrafficResponse_Traffic = exports.DailyTrafficResponse = exports.DeviceDataCountResponse_DeviceDataCount = exports.DeviceDataCountResponse = exports.DeviceDataCountRequest = exports.ShiftSummaryRequest = exports.ShiftResponse_Shift = exports.ShiftResponse = exports.ShiftRequest = exports.ShiftSummaryResponse_Summary = exports.ShiftSummaryResponse = exports.AreaSummaryReviewResponse_Review = exports.AreaSummaryReviewResponse = exports.AreaSummaryReviewRequest = exports.TripReportResponse = exports.EnvironmentalRequest = exports.EnvironmentalResponse_EnvironmentalField = exports.EnvironmentalResponse = exports.TraffixRequest = void 0;
13
13
  exports.sourceFromJSON = sourceFromJSON;
14
14
  exports.sourceToJSON = sourceToJSON;
15
15
  exports.routeStopTypeFromJSON = routeStopTypeFromJSON;
@@ -24,8 +24,6 @@ exports.traffix_Event_TypeFromJSON = traffix_Event_TypeFromJSON;
24
24
  exports.traffix_Event_TypeToJSON = traffix_Event_TypeToJSON;
25
25
  exports.environmentalRequest_EnvironmentalFieldEnumFromJSON = environmentalRequest_EnvironmentalFieldEnumFromJSON;
26
26
  exports.environmentalRequest_EnvironmentalFieldEnumToJSON = environmentalRequest_EnvironmentalFieldEnumToJSON;
27
- exports.areaSummaryReviewRequest_GroupEnumFromJSON = areaSummaryReviewRequest_GroupEnumFromJSON;
28
- exports.areaSummaryReviewRequest_GroupEnumToJSON = areaSummaryReviewRequest_GroupEnumToJSON;
29
27
  exports.areaSummaryReviewRequest_ScopeEnumFromJSON = areaSummaryReviewRequest_ScopeEnumFromJSON;
30
28
  exports.areaSummaryReviewRequest_ScopeEnumToJSON = areaSummaryReviewRequest_ScopeEnumToJSON;
31
29
  exports.areaSummaryReviewRequest_AreaSourceEnumFromJSON = areaSummaryReviewRequest_AreaSourceEnumFromJSON;
@@ -499,67 +497,6 @@ function environmentalRequest_EnvironmentalFieldEnumToJSON(object) {
499
497
  return "UNRECOGNIZED";
500
498
  }
501
499
  }
502
- var AreaSummaryReviewRequest_GroupEnum;
503
- (function (AreaSummaryReviewRequest_GroupEnum) {
504
- AreaSummaryReviewRequest_GroupEnum[AreaSummaryReviewRequest_GroupEnum["none"] = 0] = "none";
505
- AreaSummaryReviewRequest_GroupEnum[AreaSummaryReviewRequest_GroupEnum["hour"] = 1] = "hour";
506
- AreaSummaryReviewRequest_GroupEnum[AreaSummaryReviewRequest_GroupEnum["day"] = 2] = "day";
507
- AreaSummaryReviewRequest_GroupEnum[AreaSummaryReviewRequest_GroupEnum["week"] = 3] = "week";
508
- AreaSummaryReviewRequest_GroupEnum[AreaSummaryReviewRequest_GroupEnum["month"] = 4] = "month";
509
- AreaSummaryReviewRequest_GroupEnum[AreaSummaryReviewRequest_GroupEnum["three_month"] = 5] = "three_month";
510
- AreaSummaryReviewRequest_GroupEnum[AreaSummaryReviewRequest_GroupEnum["six_month"] = 6] = "six_month";
511
- AreaSummaryReviewRequest_GroupEnum[AreaSummaryReviewRequest_GroupEnum["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
512
- })(AreaSummaryReviewRequest_GroupEnum || (exports.AreaSummaryReviewRequest_GroupEnum = AreaSummaryReviewRequest_GroupEnum = {}));
513
- function areaSummaryReviewRequest_GroupEnumFromJSON(object) {
514
- switch (object) {
515
- case 0:
516
- case "none":
517
- return AreaSummaryReviewRequest_GroupEnum.none;
518
- case 1:
519
- case "hour":
520
- return AreaSummaryReviewRequest_GroupEnum.hour;
521
- case 2:
522
- case "day":
523
- return AreaSummaryReviewRequest_GroupEnum.day;
524
- case 3:
525
- case "week":
526
- return AreaSummaryReviewRequest_GroupEnum.week;
527
- case 4:
528
- case "month":
529
- return AreaSummaryReviewRequest_GroupEnum.month;
530
- case 5:
531
- case "three_month":
532
- return AreaSummaryReviewRequest_GroupEnum.three_month;
533
- case 6:
534
- case "six_month":
535
- return AreaSummaryReviewRequest_GroupEnum.six_month;
536
- case -1:
537
- case "UNRECOGNIZED":
538
- default:
539
- return AreaSummaryReviewRequest_GroupEnum.UNRECOGNIZED;
540
- }
541
- }
542
- function areaSummaryReviewRequest_GroupEnumToJSON(object) {
543
- switch (object) {
544
- case AreaSummaryReviewRequest_GroupEnum.none:
545
- return "none";
546
- case AreaSummaryReviewRequest_GroupEnum.hour:
547
- return "hour";
548
- case AreaSummaryReviewRequest_GroupEnum.day:
549
- return "day";
550
- case AreaSummaryReviewRequest_GroupEnum.week:
551
- return "week";
552
- case AreaSummaryReviewRequest_GroupEnum.month:
553
- return "month";
554
- case AreaSummaryReviewRequest_GroupEnum.three_month:
555
- return "three_month";
556
- case AreaSummaryReviewRequest_GroupEnum.six_month:
557
- return "six_month";
558
- case AreaSummaryReviewRequest_GroupEnum.UNRECOGNIZED:
559
- default:
560
- return "UNRECOGNIZED";
561
- }
562
- }
563
500
  var AreaSummaryReviewRequest_ScopeEnum;
564
501
  (function (AreaSummaryReviewRequest_ScopeEnum) {
565
502
  AreaSummaryReviewRequest_ScopeEnum[AreaSummaryReviewRequest_ScopeEnum["inside_only"] = 0] = "inside_only";
@@ -808,12 +745,12 @@ function tripsSummaryRequest_GroupByToJSON(object) {
808
745
  }
809
746
  }
810
747
  function createBaseWorkCycleRequest() {
811
- return { deviceId: [], startedAt: undefined, finishedAt: undefined, shovelStopSeconds: 0, areaStopSeconds: 0 };
748
+ return { deviceIds: [], startedAt: undefined, finishedAt: undefined, shovelStopSeconds: 0, areaStopSeconds: 0 };
812
749
  }
813
750
  exports.WorkCycleRequest = {
814
751
  encode(message, writer = new wire_1.BinaryWriter()) {
815
752
  writer.uint32(10).fork();
816
- for (const v of message.deviceId) {
753
+ for (const v of message.deviceIds) {
817
754
  writer.uint64(v.toString());
818
755
  }
819
756
  writer.join();
@@ -833,20 +770,20 @@ exports.WorkCycleRequest = {
833
770
  },
834
771
  decode(input, length) {
835
772
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
836
- let end = length === undefined ? reader.len : reader.pos + length;
773
+ const end = length === undefined ? reader.len : reader.pos + length;
837
774
  const message = createBaseWorkCycleRequest();
838
775
  while (reader.pos < end) {
839
776
  const tag = reader.uint32();
840
777
  switch (tag >>> 3) {
841
778
  case 1: {
842
779
  if (tag === 8) {
843
- message.deviceId.push(long_1.default.fromString(reader.uint64().toString(), true));
780
+ message.deviceIds.push(long_1.default.fromString(reader.uint64().toString(), true));
844
781
  continue;
845
782
  }
846
783
  if (tag === 10) {
847
784
  const end2 = reader.uint32() + reader.pos;
848
785
  while (reader.pos < end2) {
849
- message.deviceId.push(long_1.default.fromString(reader.uint64().toString(), true));
786
+ message.deviceIds.push(long_1.default.fromString(reader.uint64().toString(), true));
850
787
  }
851
788
  continue;
852
789
  }
@@ -890,7 +827,9 @@ exports.WorkCycleRequest = {
890
827
  },
891
828
  fromJSON(object) {
892
829
  return {
893
- deviceId: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.device_id) ? object.device_id.map((e) => long_1.default.fromValue(e)) : [],
830
+ deviceIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.device_ids)
831
+ ? object.device_ids.map((e) => long_1.default.fromValue(e))
832
+ : [],
894
833
  startedAt: isSet(object.started_at) ? fromJsonTimestamp(object.started_at) : undefined,
895
834
  finishedAt: isSet(object.finished_at) ? fromJsonTimestamp(object.finished_at) : undefined,
896
835
  shovelStopSeconds: isSet(object.shovel_stop_seconds) ? globalThis.Number(object.shovel_stop_seconds) : 0,
@@ -900,8 +839,8 @@ exports.WorkCycleRequest = {
900
839
  toJSON(message) {
901
840
  var _a;
902
841
  const obj = {};
903
- if ((_a = message.deviceId) === null || _a === void 0 ? void 0 : _a.length) {
904
- obj.device_id = message.deviceId.map((e) => (e || long_1.default.UZERO).toString());
842
+ if ((_a = message.deviceIds) === null || _a === void 0 ? void 0 : _a.length) {
843
+ obj.device_ids = message.deviceIds.map((e) => (e || long_1.default.UZERO).toString());
905
844
  }
906
845
  if (message.startedAt !== undefined) {
907
846
  obj.started_at = message.startedAt.toISOString();
@@ -923,7 +862,7 @@ exports.WorkCycleRequest = {
923
862
  fromPartial(object) {
924
863
  var _a, _b, _c, _d, _e;
925
864
  const message = createBaseWorkCycleRequest();
926
- message.deviceId = ((_a = object.deviceId) === null || _a === void 0 ? void 0 : _a.map((e) => long_1.default.fromValue(e))) || [];
865
+ message.deviceIds = ((_a = object.deviceIds) === null || _a === void 0 ? void 0 : _a.map((e) => long_1.default.fromValue(e))) || [];
927
866
  message.startedAt = (_b = object.startedAt) !== null && _b !== void 0 ? _b : undefined;
928
867
  message.finishedAt = (_c = object.finishedAt) !== null && _c !== void 0 ? _c : undefined;
929
868
  message.shovelStopSeconds = (_d = object.shovelStopSeconds) !== null && _d !== void 0 ? _d : 0;
@@ -952,7 +891,7 @@ exports.WorkCycleResponse = {
952
891
  },
953
892
  decode(input, length) {
954
893
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
955
- let end = length === undefined ? reader.len : reader.pos + length;
894
+ const end = length === undefined ? reader.len : reader.pos + length;
956
895
  const message = createBaseWorkCycleResponse();
957
896
  while (reader.pos < end) {
958
897
  const tag = reader.uint32();
@@ -1053,7 +992,7 @@ exports.TripReportRequest = {
1053
992
  },
1054
993
  decode(input, length) {
1055
994
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1056
- let end = length === undefined ? reader.len : reader.pos + length;
995
+ const end = length === undefined ? reader.len : reader.pos + length;
1057
996
  const message = createBaseTripReportRequest();
1058
997
  while (reader.pos < end) {
1059
998
  const tag = reader.uint32();
@@ -1152,7 +1091,7 @@ exports.AreaSplitterRequest = {
1152
1091
  },
1153
1092
  decode(input, length) {
1154
1093
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1155
- let end = length === undefined ? reader.len : reader.pos + length;
1094
+ const end = length === undefined ? reader.len : reader.pos + length;
1156
1095
  const message = createBaseAreaSplitterRequest();
1157
1096
  while (reader.pos < end) {
1158
1097
  const tag = reader.uint32();
@@ -1265,7 +1204,7 @@ exports.AreaSplitterResponse = {
1265
1204
  },
1266
1205
  decode(input, length) {
1267
1206
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1268
- let end = length === undefined ? reader.len : reader.pos + length;
1207
+ const end = length === undefined ? reader.len : reader.pos + length;
1269
1208
  const message = createBaseAreaSplitterResponse();
1270
1209
  while (reader.pos < end) {
1271
1210
  const tag = reader.uint32();
@@ -1349,7 +1288,7 @@ exports.AreaSplitterResponse_Area = {
1349
1288
  },
1350
1289
  decode(input, length) {
1351
1290
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1352
- let end = length === undefined ? reader.len : reader.pos + length;
1291
+ const end = length === undefined ? reader.len : reader.pos + length;
1353
1292
  const message = createBaseAreaSplitterResponse_Area();
1354
1293
  while (reader.pos < end) {
1355
1294
  const tag = reader.uint32();
@@ -1457,7 +1396,7 @@ exports.AreaSplitterResponse_Record = {
1457
1396
  },
1458
1397
  decode(input, length) {
1459
1398
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1460
- let end = length === undefined ? reader.len : reader.pos + length;
1399
+ const end = length === undefined ? reader.len : reader.pos + length;
1461
1400
  const message = createBaseAreaSplitterResponse_Record();
1462
1401
  while (reader.pos < end) {
1463
1402
  const tag = reader.uint32();
@@ -1648,7 +1587,7 @@ exports.MaintenanceRequest = {
1648
1587
  },
1649
1588
  decode(input, length) {
1650
1589
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1651
- let end = length === undefined ? reader.len : reader.pos + length;
1590
+ const end = length === undefined ? reader.len : reader.pos + length;
1652
1591
  const message = createBaseMaintenanceRequest();
1653
1592
  while (reader.pos < end) {
1654
1593
  const tag = reader.uint32();
@@ -1776,7 +1715,7 @@ exports.MaintenanceResponse = {
1776
1715
  },
1777
1716
  decode(input, length) {
1778
1717
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1779
- let end = length === undefined ? reader.len : reader.pos + length;
1718
+ const end = length === undefined ? reader.len : reader.pos + length;
1780
1719
  const message = createBaseMaintenanceResponse();
1781
1720
  while (reader.pos < end) {
1782
1721
  const tag = reader.uint32();
@@ -1931,7 +1870,7 @@ exports.MaintenanceResponse_Cost = {
1931
1870
  },
1932
1871
  decode(input, length) {
1933
1872
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1934
- let end = length === undefined ? reader.len : reader.pos + length;
1873
+ const end = length === undefined ? reader.len : reader.pos + length;
1935
1874
  const message = createBaseMaintenanceResponse_Cost();
1936
1875
  while (reader.pos < end) {
1937
1876
  const tag = reader.uint32();
@@ -2075,7 +2014,7 @@ exports.MaintenanceResponse_List = {
2075
2014
  },
2076
2015
  decode(input, length) {
2077
2016
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2078
- let end = length === undefined ? reader.len : reader.pos + length;
2017
+ const end = length === undefined ? reader.len : reader.pos + length;
2079
2018
  const message = createBaseMaintenanceResponse_List();
2080
2019
  while (reader.pos < end) {
2081
2020
  const tag = reader.uint32();
@@ -2352,7 +2291,7 @@ exports.MaintenanceResponse_Group = {
2352
2291
  },
2353
2292
  decode(input, length) {
2354
2293
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2355
- let end = length === undefined ? reader.len : reader.pos + length;
2294
+ const end = length === undefined ? reader.len : reader.pos + length;
2356
2295
  const message = createBaseMaintenanceResponse_Group();
2357
2296
  while (reader.pos < end) {
2358
2297
  const tag = reader.uint32();
@@ -2496,7 +2435,7 @@ exports.MaintenanceResponse_Service = {
2496
2435
  },
2497
2436
  decode(input, length) {
2498
2437
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2499
- let end = length === undefined ? reader.len : reader.pos + length;
2438
+ const end = length === undefined ? reader.len : reader.pos + length;
2500
2439
  const message = createBaseMaintenanceResponse_Service();
2501
2440
  while (reader.pos < end) {
2502
2441
  const tag = reader.uint32();
@@ -2614,7 +2553,7 @@ exports.MaintenanceResponse_Device = {
2614
2553
  },
2615
2554
  decode(input, length) {
2616
2555
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2617
- let end = length === undefined ? reader.len : reader.pos + length;
2556
+ const end = length === undefined ? reader.len : reader.pos + length;
2618
2557
  const message = createBaseMaintenanceResponse_Device();
2619
2558
  while (reader.pos < end) {
2620
2559
  const tag = reader.uint32();
@@ -2777,7 +2716,7 @@ exports.TripPerformanceRequest = {
2777
2716
  },
2778
2717
  decode(input, length) {
2779
2718
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2780
- let end = length === undefined ? reader.len : reader.pos + length;
2719
+ const end = length === undefined ? reader.len : reader.pos + length;
2781
2720
  const message = createBaseTripPerformanceRequest();
2782
2721
  while (reader.pos < end) {
2783
2722
  const tag = reader.uint32();
@@ -2910,7 +2849,7 @@ exports.TripPerformanceResponse = {
2910
2849
  },
2911
2850
  decode(input, length) {
2912
2851
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2913
- let end = length === undefined ? reader.len : reader.pos + length;
2852
+ const end = length === undefined ? reader.len : reader.pos + length;
2914
2853
  const message = createBaseTripPerformanceResponse();
2915
2854
  while (reader.pos < end) {
2916
2855
  const tag = reader.uint32();
@@ -3105,7 +3044,7 @@ exports.TripPerformance = {
3105
3044
  },
3106
3045
  decode(input, length) {
3107
3046
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3108
- let end = length === undefined ? reader.len : reader.pos + length;
3047
+ const end = length === undefined ? reader.len : reader.pos + length;
3109
3048
  const message = createBaseTripPerformance();
3110
3049
  while (reader.pos < end) {
3111
3050
  const tag = reader.uint32();
@@ -3578,7 +3517,7 @@ exports.TripPerformance_Average = {
3578
3517
  },
3579
3518
  decode(input, length) {
3580
3519
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3581
- let end = length === undefined ? reader.len : reader.pos + length;
3520
+ const end = length === undefined ? reader.len : reader.pos + length;
3582
3521
  const message = createBaseTripPerformance_Average();
3583
3522
  while (reader.pos < end) {
3584
3523
  const tag = reader.uint32();
@@ -3685,7 +3624,7 @@ exports.TripPerformance_DrivingEntry = {
3685
3624
  },
3686
3625
  decode(input, length) {
3687
3626
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3688
- let end = length === undefined ? reader.len : reader.pos + length;
3627
+ const end = length === undefined ? reader.len : reader.pos + length;
3689
3628
  const message = createBaseTripPerformance_DrivingEntry();
3690
3629
  while (reader.pos < end) {
3691
3630
  const tag = reader.uint32();
@@ -3754,7 +3693,7 @@ exports.TripPerformance_TemperatureEntry = {
3754
3693
  },
3755
3694
  decode(input, length) {
3756
3695
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3757
- let end = length === undefined ? reader.len : reader.pos + length;
3696
+ const end = length === undefined ? reader.len : reader.pos + length;
3758
3697
  const message = createBaseTripPerformance_TemperatureEntry();
3759
3698
  while (reader.pos < end) {
3760
3699
  const tag = reader.uint32();
@@ -3823,7 +3762,7 @@ exports.TripPerformance_HumidityEntry = {
3823
3762
  },
3824
3763
  decode(input, length) {
3825
3764
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3826
- let end = length === undefined ? reader.len : reader.pos + length;
3765
+ const end = length === undefined ? reader.len : reader.pos + length;
3827
3766
  const message = createBaseTripPerformance_HumidityEntry();
3828
3767
  while (reader.pos < end) {
3829
3768
  const tag = reader.uint32();
@@ -3892,7 +3831,7 @@ exports.TripPerformance_CrashesEntry = {
3892
3831
  },
3893
3832
  decode(input, length) {
3894
3833
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3895
- let end = length === undefined ? reader.len : reader.pos + length;
3834
+ const end = length === undefined ? reader.len : reader.pos + length;
3896
3835
  const message = createBaseTripPerformance_CrashesEntry();
3897
3836
  while (reader.pos < end) {
3898
3837
  const tag = reader.uint32();
@@ -3961,7 +3900,7 @@ exports.TripPerformance_SpeedsEntry = {
3961
3900
  },
3962
3901
  decode(input, length) {
3963
3902
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3964
- let end = length === undefined ? reader.len : reader.pos + length;
3903
+ const end = length === undefined ? reader.len : reader.pos + length;
3965
3904
  const message = createBaseTripPerformance_SpeedsEntry();
3966
3905
  while (reader.pos < end) {
3967
3906
  const tag = reader.uint32();
@@ -4029,7 +3968,7 @@ exports.LatestDataModelRequest = {
4029
3968
  },
4030
3969
  decode(input, length) {
4031
3970
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4032
- let end = length === undefined ? reader.len : reader.pos + length;
3971
+ const end = length === undefined ? reader.len : reader.pos + length;
4033
3972
  const message = createBaseLatestDataModelRequest();
4034
3973
  while (reader.pos < end) {
4035
3974
  const tag = reader.uint32();
@@ -4193,7 +4132,7 @@ exports.DashboardIndividualResponse = {
4193
4132
  },
4194
4133
  decode(input, length) {
4195
4134
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4196
- let end = length === undefined ? reader.len : reader.pos + length;
4135
+ const end = length === undefined ? reader.len : reader.pos + length;
4197
4136
  const message = createBaseDashboardIndividualResponse();
4198
4137
  while (reader.pos < end) {
4199
4138
  const tag = reader.uint32();
@@ -4630,7 +4569,7 @@ exports.DashboardIndividualResponse_Environmental = {
4630
4569
  },
4631
4570
  decode(input, length) {
4632
4571
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4633
- let end = length === undefined ? reader.len : reader.pos + length;
4572
+ const end = length === undefined ? reader.len : reader.pos + length;
4634
4573
  const message = createBaseDashboardIndividualResponse_Environmental();
4635
4574
  while (reader.pos < end) {
4636
4575
  const tag = reader.uint32();
@@ -4737,7 +4676,7 @@ exports.DashboardIndividualResponse_Environmental_TemperatureEntry = {
4737
4676
  },
4738
4677
  decode(input, length) {
4739
4678
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4740
- let end = length === undefined ? reader.len : reader.pos + length;
4679
+ const end = length === undefined ? reader.len : reader.pos + length;
4741
4680
  const message = createBaseDashboardIndividualResponse_Environmental_TemperatureEntry();
4742
4681
  while (reader.pos < end) {
4743
4682
  const tag = reader.uint32();
@@ -4806,7 +4745,7 @@ exports.DashboardIndividualResponse_Environmental_HumidityEntry = {
4806
4745
  },
4807
4746
  decode(input, length) {
4808
4747
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4809
- let end = length === undefined ? reader.len : reader.pos + length;
4748
+ const end = length === undefined ? reader.len : reader.pos + length;
4810
4749
  const message = createBaseDashboardIndividualResponse_Environmental_HumidityEntry();
4811
4750
  while (reader.pos < end) {
4812
4751
  const tag = reader.uint32();
@@ -4875,7 +4814,7 @@ exports.DashboardIndividualResponse_GreenDrivingEntry = {
4875
4814
  },
4876
4815
  decode(input, length) {
4877
4816
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4878
- let end = length === undefined ? reader.len : reader.pos + length;
4817
+ const end = length === undefined ? reader.len : reader.pos + length;
4879
4818
  const message = createBaseDashboardIndividualResponse_GreenDrivingEntry();
4880
4819
  while (reader.pos < end) {
4881
4820
  const tag = reader.uint32();
@@ -4944,7 +4883,7 @@ exports.DashboardIndividualResponse_SpeedsEntry = {
4944
4883
  },
4945
4884
  decode(input, length) {
4946
4885
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4947
- let end = length === undefined ? reader.len : reader.pos + length;
4886
+ const end = length === undefined ? reader.len : reader.pos + length;
4948
4887
  const message = createBaseDashboardIndividualResponse_SpeedsEntry();
4949
4888
  while (reader.pos < end) {
4950
4889
  const tag = reader.uint32();
@@ -5018,7 +4957,7 @@ exports.DashboardIndividualRequest = {
5018
4957
  },
5019
4958
  decode(input, length) {
5020
4959
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5021
- let end = length === undefined ? reader.len : reader.pos + length;
4960
+ const end = length === undefined ? reader.len : reader.pos + length;
5022
4961
  const message = createBaseDashboardIndividualRequest();
5023
4962
  while (reader.pos < end) {
5024
4963
  const tag = reader.uint32();
@@ -5098,7 +5037,7 @@ exports.TraffixResponse = {
5098
5037
  },
5099
5038
  decode(input, length) {
5100
5039
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5101
- let end = length === undefined ? reader.len : reader.pos + length;
5040
+ const end = length === undefined ? reader.len : reader.pos + length;
5102
5041
  const message = createBaseTraffixResponse();
5103
5042
  while (reader.pos < end) {
5104
5043
  const tag = reader.uint32();
@@ -5205,7 +5144,7 @@ exports.Traffix = {
5205
5144
  },
5206
5145
  decode(input, length) {
5207
5146
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5208
- let end = length === undefined ? reader.len : reader.pos + length;
5147
+ const end = length === undefined ? reader.len : reader.pos + length;
5209
5148
  const message = createBaseTraffix();
5210
5149
  while (reader.pos < end) {
5211
5150
  const tag = reader.uint32();
@@ -5464,7 +5403,7 @@ exports.Traffix_Event = {
5464
5403
  },
5465
5404
  decode(input, length) {
5466
5405
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5467
- let end = length === undefined ? reader.len : reader.pos + length;
5406
+ const end = length === undefined ? reader.len : reader.pos + length;
5468
5407
  const message = createBaseTraffix_Event();
5469
5408
  while (reader.pos < end) {
5470
5409
  const tag = reader.uint32();
@@ -5614,7 +5553,7 @@ exports.Traffix_STOP = {
5614
5553
  },
5615
5554
  decode(input, length) {
5616
5555
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5617
- let end = length === undefined ? reader.len : reader.pos + length;
5556
+ const end = length === undefined ? reader.len : reader.pos + length;
5618
5557
  const message = createBaseTraffix_STOP();
5619
5558
  while (reader.pos < end) {
5620
5559
  const tag = reader.uint32();
@@ -5706,7 +5645,7 @@ exports.TraffixRequest = {
5706
5645
  },
5707
5646
  decode(input, length) {
5708
5647
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5709
- let end = length === undefined ? reader.len : reader.pos + length;
5648
+ const end = length === undefined ? reader.len : reader.pos + length;
5710
5649
  const message = createBaseTraffixRequest();
5711
5650
  while (reader.pos < end) {
5712
5651
  const tag = reader.uint32();
@@ -5822,7 +5761,7 @@ exports.EnvironmentalResponse = {
5822
5761
  },
5823
5762
  decode(input, length) {
5824
5763
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5825
- let end = length === undefined ? reader.len : reader.pos + length;
5764
+ const end = length === undefined ? reader.len : reader.pos + length;
5826
5765
  const message = createBaseEnvironmentalResponse();
5827
5766
  while (reader.pos < end) {
5828
5767
  const tag = reader.uint32();
@@ -6041,7 +5980,7 @@ exports.EnvironmentalResponse_EnvironmentalField = {
6041
5980
  },
6042
5981
  decode(input, length) {
6043
5982
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
6044
- let end = length === undefined ? reader.len : reader.pos + length;
5983
+ const end = length === undefined ? reader.len : reader.pos + length;
6045
5984
  const message = createBaseEnvironmentalResponse_EnvironmentalField();
6046
5985
  while (reader.pos < end) {
6047
5986
  const tag = reader.uint32();
@@ -6522,7 +6461,7 @@ exports.EnvironmentalRequest = {
6522
6461
  },
6523
6462
  decode(input, length) {
6524
6463
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
6525
- let end = length === undefined ? reader.len : reader.pos + length;
6464
+ const end = length === undefined ? reader.len : reader.pos + length;
6526
6465
  const message = createBaseEnvironmentalRequest();
6527
6466
  while (reader.pos < end) {
6528
6467
  const tag = reader.uint32();
@@ -6633,7 +6572,7 @@ exports.TripReportResponse = {
6633
6572
  },
6634
6573
  decode(input, length) {
6635
6574
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
6636
- let end = length === undefined ? reader.len : reader.pos + length;
6575
+ const end = length === undefined ? reader.len : reader.pos + length;
6637
6576
  const message = createBaseTripReportResponse();
6638
6577
  while (reader.pos < end) {
6639
6578
  const tag = reader.uint32();
@@ -6716,12 +6655,11 @@ function createBaseAreaSummaryReviewRequest() {
6716
6655
  return {
6717
6656
  startedAt: undefined,
6718
6657
  finishedAt: undefined,
6719
- groupBy: 0,
6720
6658
  scope: 0,
6721
6659
  source: 0,
6722
6660
  areaSource: 0,
6723
6661
  areaIds: [],
6724
- deviceId: [],
6662
+ deviceIds: [],
6725
6663
  };
6726
6664
  }
6727
6665
  exports.AreaSummaryReviewRequest = {
@@ -6732,25 +6670,22 @@ exports.AreaSummaryReviewRequest = {
6732
6670
  if (message.finishedAt !== undefined) {
6733
6671
  timestamp_1.Timestamp.encode(toTimestamp(message.finishedAt), writer.uint32(18).fork()).join();
6734
6672
  }
6735
- if (message.groupBy !== 0) {
6736
- writer.uint32(24).int32(message.groupBy);
6737
- }
6738
6673
  if (message.scope !== 0) {
6739
- writer.uint32(32).int32(message.scope);
6674
+ writer.uint32(24).int32(message.scope);
6740
6675
  }
6741
6676
  if (message.source !== 0) {
6742
- writer.uint32(40).int32(message.source);
6677
+ writer.uint32(32).int32(message.source);
6743
6678
  }
6744
6679
  if (message.areaSource !== 0) {
6745
- writer.uint32(48).int32(message.areaSource);
6680
+ writer.uint32(40).int32(message.areaSource);
6746
6681
  }
6747
- writer.uint32(58).fork();
6682
+ writer.uint32(50).fork();
6748
6683
  for (const v of message.areaIds) {
6749
6684
  writer.uint64(v.toString());
6750
6685
  }
6751
6686
  writer.join();
6752
- writer.uint32(66).fork();
6753
- for (const v of message.deviceId) {
6687
+ writer.uint32(58).fork();
6688
+ for (const v of message.deviceIds) {
6754
6689
  writer.uint64(v.toString());
6755
6690
  }
6756
6691
  writer.join();
@@ -6758,7 +6693,7 @@ exports.AreaSummaryReviewRequest = {
6758
6693
  },
6759
6694
  decode(input, length) {
6760
6695
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
6761
- let end = length === undefined ? reader.len : reader.pos + length;
6696
+ const end = length === undefined ? reader.len : reader.pos + length;
6762
6697
  const message = createBaseAreaSummaryReviewRequest();
6763
6698
  while (reader.pos < end) {
6764
6699
  const tag = reader.uint32();
@@ -6781,36 +6716,29 @@ exports.AreaSummaryReviewRequest = {
6781
6716
  if (tag !== 24) {
6782
6717
  break;
6783
6718
  }
6784
- message.groupBy = reader.int32();
6719
+ message.scope = reader.int32();
6785
6720
  continue;
6786
6721
  }
6787
6722
  case 4: {
6788
6723
  if (tag !== 32) {
6789
6724
  break;
6790
6725
  }
6791
- message.scope = reader.int32();
6726
+ message.source = reader.int32();
6792
6727
  continue;
6793
6728
  }
6794
6729
  case 5: {
6795
6730
  if (tag !== 40) {
6796
6731
  break;
6797
6732
  }
6798
- message.source = reader.int32();
6799
- continue;
6800
- }
6801
- case 6: {
6802
- if (tag !== 48) {
6803
- break;
6804
- }
6805
6733
  message.areaSource = reader.int32();
6806
6734
  continue;
6807
6735
  }
6808
- case 7: {
6809
- if (tag === 56) {
6736
+ case 6: {
6737
+ if (tag === 48) {
6810
6738
  message.areaIds.push(long_1.default.fromString(reader.uint64().toString(), true));
6811
6739
  continue;
6812
6740
  }
6813
- if (tag === 58) {
6741
+ if (tag === 50) {
6814
6742
  const end2 = reader.uint32() + reader.pos;
6815
6743
  while (reader.pos < end2) {
6816
6744
  message.areaIds.push(long_1.default.fromString(reader.uint64().toString(), true));
@@ -6819,15 +6747,15 @@ exports.AreaSummaryReviewRequest = {
6819
6747
  }
6820
6748
  break;
6821
6749
  }
6822
- case 8: {
6823
- if (tag === 64) {
6824
- message.deviceId.push(long_1.default.fromString(reader.uint64().toString(), true));
6750
+ case 7: {
6751
+ if (tag === 56) {
6752
+ message.deviceIds.push(long_1.default.fromString(reader.uint64().toString(), true));
6825
6753
  continue;
6826
6754
  }
6827
- if (tag === 66) {
6755
+ if (tag === 58) {
6828
6756
  const end2 = reader.uint32() + reader.pos;
6829
6757
  while (reader.pos < end2) {
6830
- message.deviceId.push(long_1.default.fromString(reader.uint64().toString(), true));
6758
+ message.deviceIds.push(long_1.default.fromString(reader.uint64().toString(), true));
6831
6759
  }
6832
6760
  continue;
6833
6761
  }
@@ -6843,27 +6771,25 @@ exports.AreaSummaryReviewRequest = {
6843
6771
  },
6844
6772
  fromJSON(object) {
6845
6773
  return {
6846
- startedAt: isSet(object.startedAt) ? fromJsonTimestamp(object.startedAt) : undefined,
6847
- finishedAt: isSet(object.finishedAt) ? fromJsonTimestamp(object.finishedAt) : undefined,
6848
- groupBy: isSet(object.groupBy) ? areaSummaryReviewRequest_GroupEnumFromJSON(object.groupBy) : 0,
6774
+ startedAt: isSet(object.started_at) ? fromJsonTimestamp(object.started_at) : undefined,
6775
+ finishedAt: isSet(object.finished_at) ? fromJsonTimestamp(object.finished_at) : undefined,
6849
6776
  scope: isSet(object.scope) ? areaSummaryReviewRequest_ScopeEnumFromJSON(object.scope) : 0,
6850
6777
  source: isSet(object.source) ? sourceFromJSON(object.source) : 0,
6851
- areaSource: isSet(object.areaSource) ? areaSummaryReviewRequest_AreaSourceEnumFromJSON(object.areaSource) : 0,
6852
- areaIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.areaIds) ? object.areaIds.map((e) => long_1.default.fromValue(e)) : [],
6853
- deviceId: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.deviceId) ? object.deviceId.map((e) => long_1.default.fromValue(e)) : [],
6778
+ areaSource: isSet(object.area_source) ? areaSummaryReviewRequest_AreaSourceEnumFromJSON(object.area_source) : 0,
6779
+ areaIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.area_ids) ? object.area_ids.map((e) => long_1.default.fromValue(e)) : [],
6780
+ deviceIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.device_ids)
6781
+ ? object.device_ids.map((e) => long_1.default.fromValue(e))
6782
+ : [],
6854
6783
  };
6855
6784
  },
6856
6785
  toJSON(message) {
6857
6786
  var _a, _b;
6858
6787
  const obj = {};
6859
6788
  if (message.startedAt !== undefined) {
6860
- obj.startedAt = message.startedAt.toISOString();
6789
+ obj.started_at = message.startedAt.toISOString();
6861
6790
  }
6862
6791
  if (message.finishedAt !== undefined) {
6863
- obj.finishedAt = message.finishedAt.toISOString();
6864
- }
6865
- if (message.groupBy !== 0) {
6866
- obj.groupBy = areaSummaryReviewRequest_GroupEnumToJSON(message.groupBy);
6792
+ obj.finished_at = message.finishedAt.toISOString();
6867
6793
  }
6868
6794
  if (message.scope !== 0) {
6869
6795
  obj.scope = areaSummaryReviewRequest_ScopeEnumToJSON(message.scope);
@@ -6872,13 +6798,13 @@ exports.AreaSummaryReviewRequest = {
6872
6798
  obj.source = sourceToJSON(message.source);
6873
6799
  }
6874
6800
  if (message.areaSource !== 0) {
6875
- obj.areaSource = areaSummaryReviewRequest_AreaSourceEnumToJSON(message.areaSource);
6801
+ obj.area_source = areaSummaryReviewRequest_AreaSourceEnumToJSON(message.areaSource);
6876
6802
  }
6877
6803
  if ((_a = message.areaIds) === null || _a === void 0 ? void 0 : _a.length) {
6878
- obj.areaIds = message.areaIds.map((e) => (e || long_1.default.UZERO).toString());
6804
+ obj.area_ids = message.areaIds.map((e) => (e || long_1.default.UZERO).toString());
6879
6805
  }
6880
- if ((_b = message.deviceId) === null || _b === void 0 ? void 0 : _b.length) {
6881
- obj.deviceId = message.deviceId.map((e) => (e || long_1.default.UZERO).toString());
6806
+ if ((_b = message.deviceIds) === null || _b === void 0 ? void 0 : _b.length) {
6807
+ obj.device_ids = message.deviceIds.map((e) => (e || long_1.default.UZERO).toString());
6882
6808
  }
6883
6809
  return obj;
6884
6810
  },
@@ -6886,62 +6812,65 @@ exports.AreaSummaryReviewRequest = {
6886
6812
  return exports.AreaSummaryReviewRequest.fromPartial(base !== null && base !== void 0 ? base : {});
6887
6813
  },
6888
6814
  fromPartial(object) {
6889
- var _a, _b, _c, _d, _e, _f, _g, _h;
6815
+ var _a, _b, _c, _d, _e, _f, _g;
6890
6816
  const message = createBaseAreaSummaryReviewRequest();
6891
6817
  message.startedAt = (_a = object.startedAt) !== null && _a !== void 0 ? _a : undefined;
6892
6818
  message.finishedAt = (_b = object.finishedAt) !== null && _b !== void 0 ? _b : undefined;
6893
- message.groupBy = (_c = object.groupBy) !== null && _c !== void 0 ? _c : 0;
6894
- message.scope = (_d = object.scope) !== null && _d !== void 0 ? _d : 0;
6895
- message.source = (_e = object.source) !== null && _e !== void 0 ? _e : 0;
6896
- message.areaSource = (_f = object.areaSource) !== null && _f !== void 0 ? _f : 0;
6897
- message.areaIds = ((_g = object.areaIds) === null || _g === void 0 ? void 0 : _g.map((e) => long_1.default.fromValue(e))) || [];
6898
- message.deviceId = ((_h = object.deviceId) === null || _h === void 0 ? void 0 : _h.map((e) => long_1.default.fromValue(e))) || [];
6819
+ message.scope = (_c = object.scope) !== null && _c !== void 0 ? _c : 0;
6820
+ message.source = (_d = object.source) !== null && _d !== void 0 ? _d : 0;
6821
+ message.areaSource = (_e = object.areaSource) !== null && _e !== void 0 ? _e : 0;
6822
+ message.areaIds = ((_f = object.areaIds) === null || _f === void 0 ? void 0 : _f.map((e) => long_1.default.fromValue(e))) || [];
6823
+ message.deviceIds = ((_g = object.deviceIds) === null || _g === void 0 ? void 0 : _g.map((e) => long_1.default.fromValue(e))) || [];
6899
6824
  return message;
6900
6825
  },
6901
6826
  };
6902
6827
  function createBaseAreaSummaryReviewResponse() {
6903
6828
  return {
6829
+ records: 0,
6830
+ cost: 0,
6904
6831
  totalDurationInside: long_1.default.UZERO,
6905
6832
  totalDurationOutside: long_1.default.UZERO,
6906
6833
  totalMileageInside: long_1.default.UZERO,
6907
6834
  totalMileageOutside: long_1.default.UZERO,
6908
- devicesDetail: new Map(),
6909
- areasDetail: new Map(),
6835
+ totalInsideRecords: 0,
6836
+ totalOutsideRecords: 0,
6910
6837
  reports: [],
6911
- areas: [],
6912
6838
  };
6913
6839
  }
6914
6840
  exports.AreaSummaryReviewResponse = {
6915
6841
  encode(message, writer = new wire_1.BinaryWriter()) {
6842
+ if (message.records !== 0) {
6843
+ writer.uint32(8).uint32(message.records);
6844
+ }
6845
+ if (message.cost !== 0) {
6846
+ writer.uint32(16).uint32(message.cost);
6847
+ }
6916
6848
  if (!message.totalDurationInside.equals(long_1.default.UZERO)) {
6917
- writer.uint32(8).uint64(message.totalDurationInside.toString());
6849
+ writer.uint32(24).uint64(message.totalDurationInside.toString());
6918
6850
  }
6919
6851
  if (!message.totalDurationOutside.equals(long_1.default.UZERO)) {
6920
- writer.uint32(16).uint64(message.totalDurationOutside.toString());
6852
+ writer.uint32(32).uint64(message.totalDurationOutside.toString());
6921
6853
  }
6922
6854
  if (!message.totalMileageInside.equals(long_1.default.UZERO)) {
6923
- writer.uint32(24).uint64(message.totalMileageInside.toString());
6855
+ writer.uint32(40).uint64(message.totalMileageInside.toString());
6924
6856
  }
6925
6857
  if (!message.totalMileageOutside.equals(long_1.default.UZERO)) {
6926
- writer.uint32(32).uint64(message.totalMileageOutside.toString());
6858
+ writer.uint32(48).uint64(message.totalMileageOutside.toString());
6927
6859
  }
6928
- message.devicesDetail.forEach((value, key) => {
6929
- exports.AreaSummaryReviewResponse_DevicesDetailEntry.encode({ key: key, value }, writer.uint32(42).fork()).join();
6930
- });
6931
- message.areasDetail.forEach((value, key) => {
6932
- exports.AreaSummaryReviewResponse_AreasDetailEntry.encode({ key: key, value }, writer.uint32(50).fork()).join();
6933
- });
6934
- for (const v of message.reports) {
6935
- exports.AreaSummaryReviewResponse_Review.encode(v, writer.uint32(58).fork()).join();
6860
+ if (message.totalInsideRecords !== 0) {
6861
+ writer.uint32(56).uint32(message.totalInsideRecords);
6862
+ }
6863
+ if (message.totalOutsideRecords !== 0) {
6864
+ writer.uint32(64).uint32(message.totalOutsideRecords);
6936
6865
  }
6937
- for (const v of message.areas) {
6938
- exports.AreaSummaryReviewResponse_Area.encode(v, writer.uint32(66).fork()).join();
6866
+ for (const v of message.reports) {
6867
+ exports.AreaSummaryReviewResponse_Review.encode(v, writer.uint32(74).fork()).join();
6939
6868
  }
6940
6869
  return writer;
6941
6870
  },
6942
6871
  decode(input, length) {
6943
6872
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
6944
- let end = length === undefined ? reader.len : reader.pos + length;
6873
+ const end = length === undefined ? reader.len : reader.pos + length;
6945
6874
  const message = createBaseAreaSummaryReviewResponse();
6946
6875
  while (reader.pos < end) {
6947
6876
  const tag = reader.uint32();
@@ -6950,62 +6879,63 @@ exports.AreaSummaryReviewResponse = {
6950
6879
  if (tag !== 8) {
6951
6880
  break;
6952
6881
  }
6953
- message.totalDurationInside = long_1.default.fromString(reader.uint64().toString(), true);
6882
+ message.records = reader.uint32();
6954
6883
  continue;
6955
6884
  }
6956
6885
  case 2: {
6957
6886
  if (tag !== 16) {
6958
6887
  break;
6959
6888
  }
6960
- message.totalDurationOutside = long_1.default.fromString(reader.uint64().toString(), true);
6889
+ message.cost = reader.uint32();
6961
6890
  continue;
6962
6891
  }
6963
6892
  case 3: {
6964
6893
  if (tag !== 24) {
6965
6894
  break;
6966
6895
  }
6967
- message.totalMileageInside = long_1.default.fromString(reader.uint64().toString(), true);
6896
+ message.totalDurationInside = long_1.default.fromString(reader.uint64().toString(), true);
6968
6897
  continue;
6969
6898
  }
6970
6899
  case 4: {
6971
6900
  if (tag !== 32) {
6972
6901
  break;
6973
6902
  }
6974
- message.totalMileageOutside = long_1.default.fromString(reader.uint64().toString(), true);
6903
+ message.totalDurationOutside = long_1.default.fromString(reader.uint64().toString(), true);
6975
6904
  continue;
6976
6905
  }
6977
6906
  case 5: {
6978
- if (tag !== 42) {
6907
+ if (tag !== 40) {
6979
6908
  break;
6980
6909
  }
6981
- const entry5 = exports.AreaSummaryReviewResponse_DevicesDetailEntry.decode(reader, reader.uint32());
6982
- if (entry5.value !== undefined) {
6983
- message.devicesDetail.set(entry5.key, entry5.value);
6984
- }
6910
+ message.totalMileageInside = long_1.default.fromString(reader.uint64().toString(), true);
6985
6911
  continue;
6986
6912
  }
6987
6913
  case 6: {
6988
- if (tag !== 50) {
6914
+ if (tag !== 48) {
6989
6915
  break;
6990
6916
  }
6991
- const entry6 = exports.AreaSummaryReviewResponse_AreasDetailEntry.decode(reader, reader.uint32());
6992
- if (entry6.value !== undefined) {
6993
- message.areasDetail.set(entry6.key, entry6.value);
6994
- }
6917
+ message.totalMileageOutside = long_1.default.fromString(reader.uint64().toString(), true);
6995
6918
  continue;
6996
6919
  }
6997
6920
  case 7: {
6998
- if (tag !== 58) {
6921
+ if (tag !== 56) {
6999
6922
  break;
7000
6923
  }
7001
- message.reports.push(exports.AreaSummaryReviewResponse_Review.decode(reader, reader.uint32()));
6924
+ message.totalInsideRecords = reader.uint32();
7002
6925
  continue;
7003
6926
  }
7004
6927
  case 8: {
7005
- if (tag !== 66) {
6928
+ if (tag !== 64) {
6929
+ break;
6930
+ }
6931
+ message.totalOutsideRecords = reader.uint32();
6932
+ continue;
6933
+ }
6934
+ case 9: {
6935
+ if (tag !== 74) {
7006
6936
  break;
7007
6937
  }
7008
- message.areas.push(exports.AreaSummaryReviewResponse_Area.decode(reader, reader.uint32()));
6938
+ message.reports.push(exports.AreaSummaryReviewResponse_Review.decode(reader, reader.uint32()));
7009
6939
  continue;
7010
6940
  }
7011
6941
  }
@@ -7018,73 +6948,65 @@ exports.AreaSummaryReviewResponse = {
7018
6948
  },
7019
6949
  fromJSON(object) {
7020
6950
  return {
7021
- totalDurationInside: isSet(object.totalDurationInside) ? long_1.default.fromValue(object.totalDurationInside) : long_1.default.UZERO,
7022
- totalDurationOutside: isSet(object.totalDurationOutside)
7023
- ? long_1.default.fromValue(object.totalDurationOutside)
6951
+ records: isSet(object.records) ? globalThis.Number(object.records) : 0,
6952
+ cost: isSet(object.cost) ? globalThis.Number(object.cost) : 0,
6953
+ totalDurationInside: isSet(object.total_duration_inside)
6954
+ ? long_1.default.fromValue(object.total_duration_inside)
7024
6955
  : long_1.default.UZERO,
7025
- totalMileageInside: isSet(object.totalMileageInside) ? long_1.default.fromValue(object.totalMileageInside) : long_1.default.UZERO,
7026
- totalMileageOutside: isSet(object.totalMileageOutside) ? long_1.default.fromValue(object.totalMileageOutside) : long_1.default.UZERO,
7027
- devicesDetail: isObject(object.devicesDetail)
7028
- ? Object.entries(object.devicesDetail).reduce((acc, [key, value]) => {
7029
- acc.set(long_1.default.fromValue(key), exports.AreaSummaryReviewResponse_Detail.fromJSON(value));
7030
- return acc;
7031
- }, new Map())
7032
- : new Map(),
7033
- areasDetail: isObject(object.areasDetail)
7034
- ? Object.entries(object.areasDetail).reduce((acc, [key, value]) => {
7035
- acc.set(long_1.default.fromValue(key), exports.AreaSummaryReviewResponse_Detail.fromJSON(value));
7036
- return acc;
7037
- }, new Map())
7038
- : new Map(),
6956
+ totalDurationOutside: isSet(object.total_duration_outside)
6957
+ ? long_1.default.fromValue(object.total_duration_outside)
6958
+ : long_1.default.UZERO,
6959
+ totalMileageInside: isSet(object.total_mileage_inside) ? long_1.default.fromValue(object.total_mileage_inside) : long_1.default.UZERO,
6960
+ totalMileageOutside: isSet(object.total_mileage_outside)
6961
+ ? long_1.default.fromValue(object.total_mileage_outside)
6962
+ : long_1.default.UZERO,
6963
+ totalInsideRecords: isSet(object.total_inside_records) ? globalThis.Number(object.total_inside_records) : 0,
6964
+ totalOutsideRecords: isSet(object.total_outside_records) ? globalThis.Number(object.total_outside_records) : 0,
7039
6965
  reports: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.reports)
7040
6966
  ? object.reports.map((e) => exports.AreaSummaryReviewResponse_Review.fromJSON(e))
7041
6967
  : [],
7042
- areas: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.areas)
7043
- ? object.areas.map((e) => exports.AreaSummaryReviewResponse_Area.fromJSON(e))
7044
- : [],
7045
6968
  };
7046
6969
  },
7047
6970
  toJSON(message) {
7048
- var _a, _b, _c, _d;
6971
+ var _a;
7049
6972
  const obj = {};
6973
+ if (message.records !== 0) {
6974
+ obj.records = Math.round(message.records);
6975
+ }
6976
+ if (message.cost !== 0) {
6977
+ obj.cost = Math.round(message.cost);
6978
+ }
7050
6979
  if (!message.totalDurationInside.equals(long_1.default.UZERO)) {
7051
- obj.totalDurationInside = (message.totalDurationInside || long_1.default.UZERO).toString();
6980
+ obj.total_duration_inside = (message.totalDurationInside || long_1.default.UZERO).toString();
7052
6981
  }
7053
6982
  if (!message.totalDurationOutside.equals(long_1.default.UZERO)) {
7054
- obj.totalDurationOutside = (message.totalDurationOutside || long_1.default.UZERO).toString();
6983
+ obj.total_duration_outside = (message.totalDurationOutside || long_1.default.UZERO).toString();
7055
6984
  }
7056
6985
  if (!message.totalMileageInside.equals(long_1.default.UZERO)) {
7057
- obj.totalMileageInside = (message.totalMileageInside || long_1.default.UZERO).toString();
6986
+ obj.total_mileage_inside = (message.totalMileageInside || long_1.default.UZERO).toString();
7058
6987
  }
7059
6988
  if (!message.totalMileageOutside.equals(long_1.default.UZERO)) {
7060
- obj.totalMileageOutside = (message.totalMileageOutside || long_1.default.UZERO).toString();
6989
+ obj.total_mileage_outside = (message.totalMileageOutside || long_1.default.UZERO).toString();
7061
6990
  }
7062
- if ((_a = message.devicesDetail) === null || _a === void 0 ? void 0 : _a.size) {
7063
- obj.devicesDetail = {};
7064
- message.devicesDetail.forEach((v, k) => {
7065
- obj.devicesDetail[longToNumber(k)] = exports.AreaSummaryReviewResponse_Detail.toJSON(v);
7066
- });
6991
+ if (message.totalInsideRecords !== 0) {
6992
+ obj.total_inside_records = Math.round(message.totalInsideRecords);
7067
6993
  }
7068
- if ((_b = message.areasDetail) === null || _b === void 0 ? void 0 : _b.size) {
7069
- obj.areasDetail = {};
7070
- message.areasDetail.forEach((v, k) => {
7071
- obj.areasDetail[longToNumber(k)] = exports.AreaSummaryReviewResponse_Detail.toJSON(v);
7072
- });
6994
+ if (message.totalOutsideRecords !== 0) {
6995
+ obj.total_outside_records = Math.round(message.totalOutsideRecords);
7073
6996
  }
7074
- if ((_c = message.reports) === null || _c === void 0 ? void 0 : _c.length) {
6997
+ if ((_a = message.reports) === null || _a === void 0 ? void 0 : _a.length) {
7075
6998
  obj.reports = message.reports.map((e) => exports.AreaSummaryReviewResponse_Review.toJSON(e));
7076
6999
  }
7077
- if ((_d = message.areas) === null || _d === void 0 ? void 0 : _d.length) {
7078
- obj.areas = message.areas.map((e) => exports.AreaSummaryReviewResponse_Area.toJSON(e));
7079
- }
7080
7000
  return obj;
7081
7001
  },
7082
7002
  create(base) {
7083
7003
  return exports.AreaSummaryReviewResponse.fromPartial(base !== null && base !== void 0 ? base : {});
7084
7004
  },
7085
7005
  fromPartial(object) {
7086
- var _a, _b;
7006
+ var _a, _b, _c, _d, _e;
7087
7007
  const message = createBaseAreaSummaryReviewResponse();
7008
+ message.records = (_a = object.records) !== null && _a !== void 0 ? _a : 0;
7009
+ message.cost = (_b = object.cost) !== null && _b !== void 0 ? _b : 0;
7088
7010
  message.totalDurationInside = (object.totalDurationInside !== undefined && object.totalDurationInside !== null)
7089
7011
  ? long_1.default.fromValue(object.totalDurationInside)
7090
7012
  : long_1.default.UZERO;
@@ -7097,28 +7019,9 @@ exports.AreaSummaryReviewResponse = {
7097
7019
  message.totalMileageOutside = (object.totalMileageOutside !== undefined && object.totalMileageOutside !== null)
7098
7020
  ? long_1.default.fromValue(object.totalMileageOutside)
7099
7021
  : long_1.default.UZERO;
7100
- message.devicesDetail = (() => {
7101
- var _a;
7102
- const m = new Map();
7103
- ((_a = object.devicesDetail) !== null && _a !== void 0 ? _a : new Map()).forEach((value, key) => {
7104
- if (value !== undefined) {
7105
- m.set(key, exports.AreaSummaryReviewResponse_Detail.fromPartial(value));
7106
- }
7107
- });
7108
- return m;
7109
- })();
7110
- message.areasDetail = (() => {
7111
- var _a;
7112
- const m = new Map();
7113
- ((_a = object.areasDetail) !== null && _a !== void 0 ? _a : new Map()).forEach((value, key) => {
7114
- if (value !== undefined) {
7115
- m.set(key, exports.AreaSummaryReviewResponse_Detail.fromPartial(value));
7116
- }
7117
- });
7118
- return m;
7119
- })();
7120
- message.reports = ((_a = object.reports) === null || _a === void 0 ? void 0 : _a.map((e) => exports.AreaSummaryReviewResponse_Review.fromPartial(e))) || [];
7121
- message.areas = ((_b = object.areas) === null || _b === void 0 ? void 0 : _b.map((e) => exports.AreaSummaryReviewResponse_Area.fromPartial(e))) || [];
7022
+ message.totalInsideRecords = (_c = object.totalInsideRecords) !== null && _c !== void 0 ? _c : 0;
7023
+ message.totalOutsideRecords = (_d = object.totalOutsideRecords) !== null && _d !== void 0 ? _d : 0;
7024
+ message.reports = ((_e = object.reports) === null || _e === void 0 ? void 0 : _e.map((e) => exports.AreaSummaryReviewResponse_Review.fromPartial(e))) || [];
7122
7025
  return message;
7123
7026
  },
7124
7027
  };
@@ -7126,14 +7029,15 @@ function createBaseAreaSummaryReviewResponse_Review() {
7126
7029
  return {
7127
7030
  deviceId: long_1.default.UZERO,
7128
7031
  areaId: long_1.default.UZERO,
7129
- startedAt: undefined,
7130
- finishedAt: undefined,
7032
+ started: undefined,
7033
+ finished: undefined,
7131
7034
  mileage: long_1.default.UZERO,
7132
7035
  duration: long_1.default.UZERO,
7133
7036
  maxSpeed: 0,
7134
7037
  totalSpeed: long_1.default.UZERO,
7135
7038
  countSpeed: 0,
7136
7039
  type: 0,
7040
+ area: undefined,
7137
7041
  };
7138
7042
  }
7139
7043
  exports.AreaSummaryReviewResponse_Review = {
@@ -7144,11 +7048,11 @@ exports.AreaSummaryReviewResponse_Review = {
7144
7048
  if (!message.areaId.equals(long_1.default.UZERO)) {
7145
7049
  writer.uint32(16).uint64(message.areaId.toString());
7146
7050
  }
7147
- if (message.startedAt !== undefined) {
7148
- timestamp_1.Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(26).fork()).join();
7051
+ if (message.started !== undefined) {
7052
+ dataModel_1.Data.encode(message.started, writer.uint32(26).fork()).join();
7149
7053
  }
7150
- if (message.finishedAt !== undefined) {
7151
- timestamp_1.Timestamp.encode(toTimestamp(message.finishedAt), writer.uint32(34).fork()).join();
7054
+ if (message.finished !== undefined) {
7055
+ dataModel_1.Data.encode(message.finished, writer.uint32(34).fork()).join();
7152
7056
  }
7153
7057
  if (!message.mileage.equals(long_1.default.UZERO)) {
7154
7058
  writer.uint32(40).uint64(message.mileage.toString());
@@ -7168,11 +7072,14 @@ exports.AreaSummaryReviewResponse_Review = {
7168
7072
  if (message.type !== 0) {
7169
7073
  writer.uint32(80).int32(message.type);
7170
7074
  }
7075
+ if (message.area !== undefined) {
7076
+ area_1.Area.encode(message.area, writer.uint32(90).fork()).join();
7077
+ }
7171
7078
  return writer;
7172
7079
  },
7173
7080
  decode(input, length) {
7174
7081
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
7175
- let end = length === undefined ? reader.len : reader.pos + length;
7082
+ const end = length === undefined ? reader.len : reader.pos + length;
7176
7083
  const message = createBaseAreaSummaryReviewResponse_Review();
7177
7084
  while (reader.pos < end) {
7178
7085
  const tag = reader.uint32();
@@ -7195,14 +7102,14 @@ exports.AreaSummaryReviewResponse_Review = {
7195
7102
  if (tag !== 26) {
7196
7103
  break;
7197
7104
  }
7198
- message.startedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
7105
+ message.started = dataModel_1.Data.decode(reader, reader.uint32());
7199
7106
  continue;
7200
7107
  }
7201
7108
  case 4: {
7202
7109
  if (tag !== 34) {
7203
7110
  break;
7204
7111
  }
7205
- message.finishedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
7112
+ message.finished = dataModel_1.Data.decode(reader, reader.uint32());
7206
7113
  continue;
7207
7114
  }
7208
7115
  case 5: {
@@ -7247,6 +7154,13 @@ exports.AreaSummaryReviewResponse_Review = {
7247
7154
  message.type = reader.int32();
7248
7155
  continue;
7249
7156
  }
7157
+ case 11: {
7158
+ if (tag !== 90) {
7159
+ break;
7160
+ }
7161
+ message.area = area_1.Area.decode(reader, reader.uint32());
7162
+ continue;
7163
+ }
7250
7164
  }
7251
7165
  if ((tag & 7) === 4 || tag === 0) {
7252
7166
  break;
@@ -7257,31 +7171,32 @@ exports.AreaSummaryReviewResponse_Review = {
7257
7171
  },
7258
7172
  fromJSON(object) {
7259
7173
  return {
7260
- deviceId: isSet(object.deviceId) ? long_1.default.fromValue(object.deviceId) : long_1.default.UZERO,
7261
- areaId: isSet(object.areaId) ? long_1.default.fromValue(object.areaId) : long_1.default.UZERO,
7262
- startedAt: isSet(object.startedAt) ? fromJsonTimestamp(object.startedAt) : undefined,
7263
- finishedAt: isSet(object.finishedAt) ? fromJsonTimestamp(object.finishedAt) : undefined,
7174
+ deviceId: isSet(object.device_id) ? long_1.default.fromValue(object.device_id) : long_1.default.UZERO,
7175
+ areaId: isSet(object.area_id) ? long_1.default.fromValue(object.area_id) : long_1.default.UZERO,
7176
+ started: isSet(object.started) ? dataModel_1.Data.fromJSON(object.started) : undefined,
7177
+ finished: isSet(object.finished) ? dataModel_1.Data.fromJSON(object.finished) : undefined,
7264
7178
  mileage: isSet(object.mileage) ? long_1.default.fromValue(object.mileage) : long_1.default.UZERO,
7265
7179
  duration: isSet(object.duration) ? long_1.default.fromValue(object.duration) : long_1.default.UZERO,
7266
- maxSpeed: isSet(object.maxSpeed) ? globalThis.Number(object.maxSpeed) : 0,
7267
- totalSpeed: isSet(object.totalSpeed) ? long_1.default.fromValue(object.totalSpeed) : long_1.default.UZERO,
7268
- countSpeed: isSet(object.countSpeed) ? globalThis.Number(object.countSpeed) : 0,
7269
- type: isSet(object.type) ? areaSummaryReviewResponse_trafficTypeFromJSON(object.type) : 0,
7180
+ maxSpeed: isSet(object.max_speed) ? globalThis.Number(object.max_speed) : 0,
7181
+ totalSpeed: isSet(object.total_speed) ? long_1.default.fromValue(object.total_speed) : long_1.default.UZERO,
7182
+ countSpeed: isSet(object.count_speed) ? globalThis.Number(object.count_speed) : 0,
7183
+ type: isSet(object.traffic_type) ? areaSummaryReviewResponse_trafficTypeFromJSON(object.traffic_type) : 0,
7184
+ area: isSet(object.area) ? area_1.Area.fromJSON(object.area) : undefined,
7270
7185
  };
7271
7186
  },
7272
7187
  toJSON(message) {
7273
7188
  const obj = {};
7274
7189
  if (!message.deviceId.equals(long_1.default.UZERO)) {
7275
- obj.deviceId = (message.deviceId || long_1.default.UZERO).toString();
7190
+ obj.device_id = (message.deviceId || long_1.default.UZERO).toString();
7276
7191
  }
7277
7192
  if (!message.areaId.equals(long_1.default.UZERO)) {
7278
- obj.areaId = (message.areaId || long_1.default.UZERO).toString();
7193
+ obj.area_id = (message.areaId || long_1.default.UZERO).toString();
7279
7194
  }
7280
- if (message.startedAt !== undefined) {
7281
- obj.startedAt = message.startedAt.toISOString();
7195
+ if (message.started !== undefined) {
7196
+ obj.started = dataModel_1.Data.toJSON(message.started);
7282
7197
  }
7283
- if (message.finishedAt !== undefined) {
7284
- obj.finishedAt = message.finishedAt.toISOString();
7198
+ if (message.finished !== undefined) {
7199
+ obj.finished = dataModel_1.Data.toJSON(message.finished);
7285
7200
  }
7286
7201
  if (!message.mileage.equals(long_1.default.UZERO)) {
7287
7202
  obj.mileage = (message.mileage || long_1.default.UZERO).toString();
@@ -7290,16 +7205,19 @@ exports.AreaSummaryReviewResponse_Review = {
7290
7205
  obj.duration = (message.duration || long_1.default.UZERO).toString();
7291
7206
  }
7292
7207
  if (message.maxSpeed !== 0) {
7293
- obj.maxSpeed = Math.round(message.maxSpeed);
7208
+ obj.max_speed = Math.round(message.maxSpeed);
7294
7209
  }
7295
7210
  if (!message.totalSpeed.equals(long_1.default.UZERO)) {
7296
- obj.totalSpeed = (message.totalSpeed || long_1.default.UZERO).toString();
7211
+ obj.total_speed = (message.totalSpeed || long_1.default.UZERO).toString();
7297
7212
  }
7298
7213
  if (message.countSpeed !== 0) {
7299
- obj.countSpeed = Math.round(message.countSpeed);
7214
+ obj.count_speed = Math.round(message.countSpeed);
7300
7215
  }
7301
7216
  if (message.type !== 0) {
7302
- obj.type = areaSummaryReviewResponse_trafficTypeToJSON(message.type);
7217
+ obj.traffic_type = areaSummaryReviewResponse_trafficTypeToJSON(message.type);
7218
+ }
7219
+ if (message.area !== undefined) {
7220
+ obj.area = area_1.Area.toJSON(message.area);
7303
7221
  }
7304
7222
  return obj;
7305
7223
  },
@@ -7307,7 +7225,7 @@ exports.AreaSummaryReviewResponse_Review = {
7307
7225
  return exports.AreaSummaryReviewResponse_Review.fromPartial(base !== null && base !== void 0 ? base : {});
7308
7226
  },
7309
7227
  fromPartial(object) {
7310
- var _a, _b, _c, _d, _e;
7228
+ var _a, _b, _c;
7311
7229
  const message = createBaseAreaSummaryReviewResponse_Review();
7312
7230
  message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
7313
7231
  ? long_1.default.fromValue(object.deviceId)
@@ -7315,519 +7233,90 @@ exports.AreaSummaryReviewResponse_Review = {
7315
7233
  message.areaId = (object.areaId !== undefined && object.areaId !== null)
7316
7234
  ? long_1.default.fromValue(object.areaId)
7317
7235
  : long_1.default.UZERO;
7318
- message.startedAt = (_a = object.startedAt) !== null && _a !== void 0 ? _a : undefined;
7319
- message.finishedAt = (_b = object.finishedAt) !== null && _b !== void 0 ? _b : undefined;
7236
+ message.started = (object.started !== undefined && object.started !== null)
7237
+ ? dataModel_1.Data.fromPartial(object.started)
7238
+ : undefined;
7239
+ message.finished = (object.finished !== undefined && object.finished !== null)
7240
+ ? dataModel_1.Data.fromPartial(object.finished)
7241
+ : undefined;
7320
7242
  message.mileage = (object.mileage !== undefined && object.mileage !== null)
7321
7243
  ? long_1.default.fromValue(object.mileage)
7322
7244
  : long_1.default.UZERO;
7323
7245
  message.duration = (object.duration !== undefined && object.duration !== null)
7324
7246
  ? long_1.default.fromValue(object.duration)
7325
7247
  : long_1.default.UZERO;
7326
- message.maxSpeed = (_c = object.maxSpeed) !== null && _c !== void 0 ? _c : 0;
7248
+ message.maxSpeed = (_a = object.maxSpeed) !== null && _a !== void 0 ? _a : 0;
7327
7249
  message.totalSpeed = (object.totalSpeed !== undefined && object.totalSpeed !== null)
7328
7250
  ? long_1.default.fromValue(object.totalSpeed)
7329
7251
  : long_1.default.UZERO;
7330
- message.countSpeed = (_d = object.countSpeed) !== null && _d !== void 0 ? _d : 0;
7331
- message.type = (_e = object.type) !== null && _e !== void 0 ? _e : 0;
7252
+ message.countSpeed = (_b = object.countSpeed) !== null && _b !== void 0 ? _b : 0;
7253
+ message.type = (_c = object.type) !== null && _c !== void 0 ? _c : 0;
7254
+ message.area = (object.area !== undefined && object.area !== null) ? area_1.Area.fromPartial(object.area) : undefined;
7332
7255
  return message;
7333
7256
  },
7334
7257
  };
7335
- function createBaseAreaSummaryReviewResponse_Area() {
7336
- return {
7337
- id: long_1.default.UZERO,
7338
- name: undefined,
7339
- organizationId: "",
7340
- geoJson: "",
7341
- userCreatedId: undefined,
7342
- userUpdatedId: undefined,
7343
- categoryId: undefined,
7344
- color: undefined,
7345
- type: "",
7346
- createdAt: undefined,
7347
- updatedAt: undefined,
7348
- };
7258
+ function createBaseShiftSummaryResponse() {
7259
+ return { Reports: [], tripRecords: long_1.default.UZERO, tripMilliseconds: long_1.default.ZERO, startedAt: "", finishedAt: "" };
7349
7260
  }
7350
- exports.AreaSummaryReviewResponse_Area = {
7261
+ exports.ShiftSummaryResponse = {
7351
7262
  encode(message, writer = new wire_1.BinaryWriter()) {
7352
- if (!message.id.equals(long_1.default.UZERO)) {
7353
- writer.uint32(8).uint64(message.id.toString());
7354
- }
7355
- if (message.name !== undefined) {
7356
- writer.uint32(18).string(message.name);
7357
- }
7358
- if (message.organizationId !== "") {
7359
- writer.uint32(26).string(message.organizationId);
7360
- }
7361
- if (message.geoJson !== "") {
7362
- writer.uint32(34).string(message.geoJson);
7363
- }
7364
- if (message.userCreatedId !== undefined) {
7365
- writer.uint32(40).uint64(message.userCreatedId.toString());
7366
- }
7367
- if (message.userUpdatedId !== undefined) {
7368
- writer.uint32(48).uint64(message.userUpdatedId.toString());
7369
- }
7370
- if (message.categoryId !== undefined) {
7371
- writer.uint32(56).uint64(message.categoryId.toString());
7263
+ for (const v of message.Reports) {
7264
+ exports.ShiftSummaryResponse_Summary.encode(v, writer.uint32(10).fork()).join();
7372
7265
  }
7373
- if (message.color !== undefined) {
7374
- writer.uint32(66).string(message.color);
7266
+ if (!message.tripRecords.equals(long_1.default.UZERO)) {
7267
+ writer.uint32(16).uint64(message.tripRecords.toString());
7375
7268
  }
7376
- if (message.type !== "") {
7377
- writer.uint32(74).string(message.type);
7269
+ if (!message.tripMilliseconds.equals(long_1.default.ZERO)) {
7270
+ writer.uint32(24).sint64(message.tripMilliseconds.toString());
7378
7271
  }
7379
- if (message.createdAt !== undefined) {
7380
- timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(82).fork()).join();
7272
+ if (message.startedAt !== "") {
7273
+ writer.uint32(34).string(message.startedAt);
7381
7274
  }
7382
- if (message.updatedAt !== undefined) {
7383
- timestamp_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(90).fork()).join();
7275
+ if (message.finishedAt !== "") {
7276
+ writer.uint32(42).string(message.finishedAt);
7384
7277
  }
7385
7278
  return writer;
7386
7279
  },
7387
7280
  decode(input, length) {
7388
7281
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
7389
- let end = length === undefined ? reader.len : reader.pos + length;
7390
- const message = createBaseAreaSummaryReviewResponse_Area();
7282
+ const end = length === undefined ? reader.len : reader.pos + length;
7283
+ const message = createBaseShiftSummaryResponse();
7391
7284
  while (reader.pos < end) {
7392
7285
  const tag = reader.uint32();
7393
7286
  switch (tag >>> 3) {
7394
7287
  case 1: {
7395
- if (tag !== 8) {
7288
+ if (tag !== 10) {
7396
7289
  break;
7397
7290
  }
7398
- message.id = long_1.default.fromString(reader.uint64().toString(), true);
7291
+ message.Reports.push(exports.ShiftSummaryResponse_Summary.decode(reader, reader.uint32()));
7399
7292
  continue;
7400
7293
  }
7401
7294
  case 2: {
7402
- if (tag !== 18) {
7295
+ if (tag !== 16) {
7403
7296
  break;
7404
7297
  }
7405
- message.name = reader.string();
7298
+ message.tripRecords = long_1.default.fromString(reader.uint64().toString(), true);
7406
7299
  continue;
7407
7300
  }
7408
7301
  case 3: {
7409
- if (tag !== 26) {
7302
+ if (tag !== 24) {
7410
7303
  break;
7411
7304
  }
7412
- message.organizationId = reader.string();
7305
+ message.tripMilliseconds = long_1.default.fromString(reader.sint64().toString());
7413
7306
  continue;
7414
7307
  }
7415
7308
  case 4: {
7416
7309
  if (tag !== 34) {
7417
7310
  break;
7418
7311
  }
7419
- message.geoJson = reader.string();
7312
+ message.startedAt = reader.string();
7420
7313
  continue;
7421
7314
  }
7422
7315
  case 5: {
7423
- if (tag !== 40) {
7424
- break;
7425
- }
7426
- message.userCreatedId = long_1.default.fromString(reader.uint64().toString(), true);
7427
- continue;
7428
- }
7429
- case 6: {
7430
- if (tag !== 48) {
7431
- break;
7432
- }
7433
- message.userUpdatedId = long_1.default.fromString(reader.uint64().toString(), true);
7434
- continue;
7435
- }
7436
- case 7: {
7437
- if (tag !== 56) {
7316
+ if (tag !== 42) {
7438
7317
  break;
7439
7318
  }
7440
- message.categoryId = long_1.default.fromString(reader.uint64().toString(), true);
7441
- continue;
7442
- }
7443
- case 8: {
7444
- if (tag !== 66) {
7445
- break;
7446
- }
7447
- message.color = reader.string();
7448
- continue;
7449
- }
7450
- case 9: {
7451
- if (tag !== 74) {
7452
- break;
7453
- }
7454
- message.type = reader.string();
7455
- continue;
7456
- }
7457
- case 10: {
7458
- if (tag !== 82) {
7459
- break;
7460
- }
7461
- message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
7462
- continue;
7463
- }
7464
- case 11: {
7465
- if (tag !== 90) {
7466
- break;
7467
- }
7468
- message.updatedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
7469
- continue;
7470
- }
7471
- }
7472
- if ((tag & 7) === 4 || tag === 0) {
7473
- break;
7474
- }
7475
- reader.skip(tag & 7);
7476
- }
7477
- return message;
7478
- },
7479
- fromJSON(object) {
7480
- return {
7481
- id: isSet(object.id) ? long_1.default.fromValue(object.id) : long_1.default.UZERO,
7482
- name: isSet(object.name) ? globalThis.String(object.name) : undefined,
7483
- organizationId: isSet(object.organizationId) ? globalThis.String(object.organizationId) : "",
7484
- geoJson: isSet(object.geoJson) ? globalThis.String(object.geoJson) : "",
7485
- userCreatedId: isSet(object.userCreatedId) ? long_1.default.fromValue(object.userCreatedId) : undefined,
7486
- userUpdatedId: isSet(object.userUpdatedId) ? long_1.default.fromValue(object.userUpdatedId) : undefined,
7487
- categoryId: isSet(object.categoryId) ? long_1.default.fromValue(object.categoryId) : undefined,
7488
- color: isSet(object.color) ? globalThis.String(object.color) : undefined,
7489
- type: isSet(object.type) ? globalThis.String(object.type) : "",
7490
- createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
7491
- updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined,
7492
- };
7493
- },
7494
- toJSON(message) {
7495
- const obj = {};
7496
- if (!message.id.equals(long_1.default.UZERO)) {
7497
- obj.id = (message.id || long_1.default.UZERO).toString();
7498
- }
7499
- if (message.name !== undefined) {
7500
- obj.name = message.name;
7501
- }
7502
- if (message.organizationId !== "") {
7503
- obj.organizationId = message.organizationId;
7504
- }
7505
- if (message.geoJson !== "") {
7506
- obj.geoJson = message.geoJson;
7507
- }
7508
- if (message.userCreatedId !== undefined) {
7509
- obj.userCreatedId = (message.userCreatedId || long_1.default.UZERO).toString();
7510
- }
7511
- if (message.userUpdatedId !== undefined) {
7512
- obj.userUpdatedId = (message.userUpdatedId || long_1.default.UZERO).toString();
7513
- }
7514
- if (message.categoryId !== undefined) {
7515
- obj.categoryId = (message.categoryId || long_1.default.UZERO).toString();
7516
- }
7517
- if (message.color !== undefined) {
7518
- obj.color = message.color;
7519
- }
7520
- if (message.type !== "") {
7521
- obj.type = message.type;
7522
- }
7523
- if (message.createdAt !== undefined) {
7524
- obj.createdAt = message.createdAt.toISOString();
7525
- }
7526
- if (message.updatedAt !== undefined) {
7527
- obj.updatedAt = message.updatedAt.toISOString();
7528
- }
7529
- return obj;
7530
- },
7531
- create(base) {
7532
- return exports.AreaSummaryReviewResponse_Area.fromPartial(base !== null && base !== void 0 ? base : {});
7533
- },
7534
- fromPartial(object) {
7535
- var _a, _b, _c, _d, _e, _f, _g;
7536
- const message = createBaseAreaSummaryReviewResponse_Area();
7537
- message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
7538
- message.name = (_a = object.name) !== null && _a !== void 0 ? _a : undefined;
7539
- message.organizationId = (_b = object.organizationId) !== null && _b !== void 0 ? _b : "";
7540
- message.geoJson = (_c = object.geoJson) !== null && _c !== void 0 ? _c : "";
7541
- message.userCreatedId = (object.userCreatedId !== undefined && object.userCreatedId !== null)
7542
- ? long_1.default.fromValue(object.userCreatedId)
7543
- : undefined;
7544
- message.userUpdatedId = (object.userUpdatedId !== undefined && object.userUpdatedId !== null)
7545
- ? long_1.default.fromValue(object.userUpdatedId)
7546
- : undefined;
7547
- message.categoryId = (object.categoryId !== undefined && object.categoryId !== null)
7548
- ? long_1.default.fromValue(object.categoryId)
7549
- : undefined;
7550
- message.color = (_d = object.color) !== null && _d !== void 0 ? _d : undefined;
7551
- message.type = (_e = object.type) !== null && _e !== void 0 ? _e : "";
7552
- message.createdAt = (_f = object.createdAt) !== null && _f !== void 0 ? _f : undefined;
7553
- message.updatedAt = (_g = object.updatedAt) !== null && _g !== void 0 ? _g : undefined;
7554
- return message;
7555
- },
7556
- };
7557
- function createBaseAreaSummaryReviewResponse_Detail() {
7558
- return { duration: long_1.default.UZERO, mileage: long_1.default.UZERO };
7559
- }
7560
- exports.AreaSummaryReviewResponse_Detail = {
7561
- encode(message, writer = new wire_1.BinaryWriter()) {
7562
- if (!message.duration.equals(long_1.default.UZERO)) {
7563
- writer.uint32(8).uint64(message.duration.toString());
7564
- }
7565
- if (!message.mileage.equals(long_1.default.UZERO)) {
7566
- writer.uint32(16).uint64(message.mileage.toString());
7567
- }
7568
- return writer;
7569
- },
7570
- decode(input, length) {
7571
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
7572
- let end = length === undefined ? reader.len : reader.pos + length;
7573
- const message = createBaseAreaSummaryReviewResponse_Detail();
7574
- while (reader.pos < end) {
7575
- const tag = reader.uint32();
7576
- switch (tag >>> 3) {
7577
- case 1: {
7578
- if (tag !== 8) {
7579
- break;
7580
- }
7581
- message.duration = long_1.default.fromString(reader.uint64().toString(), true);
7582
- continue;
7583
- }
7584
- case 2: {
7585
- if (tag !== 16) {
7586
- break;
7587
- }
7588
- message.mileage = long_1.default.fromString(reader.uint64().toString(), true);
7589
- continue;
7590
- }
7591
- }
7592
- if ((tag & 7) === 4 || tag === 0) {
7593
- break;
7594
- }
7595
- reader.skip(tag & 7);
7596
- }
7597
- return message;
7598
- },
7599
- fromJSON(object) {
7600
- return {
7601
- duration: isSet(object.duration) ? long_1.default.fromValue(object.duration) : long_1.default.UZERO,
7602
- mileage: isSet(object.mileage) ? long_1.default.fromValue(object.mileage) : long_1.default.UZERO,
7603
- };
7604
- },
7605
- toJSON(message) {
7606
- const obj = {};
7607
- if (!message.duration.equals(long_1.default.UZERO)) {
7608
- obj.duration = (message.duration || long_1.default.UZERO).toString();
7609
- }
7610
- if (!message.mileage.equals(long_1.default.UZERO)) {
7611
- obj.mileage = (message.mileage || long_1.default.UZERO).toString();
7612
- }
7613
- return obj;
7614
- },
7615
- create(base) {
7616
- return exports.AreaSummaryReviewResponse_Detail.fromPartial(base !== null && base !== void 0 ? base : {});
7617
- },
7618
- fromPartial(object) {
7619
- const message = createBaseAreaSummaryReviewResponse_Detail();
7620
- message.duration = (object.duration !== undefined && object.duration !== null)
7621
- ? long_1.default.fromValue(object.duration)
7622
- : long_1.default.UZERO;
7623
- message.mileage = (object.mileage !== undefined && object.mileage !== null)
7624
- ? long_1.default.fromValue(object.mileage)
7625
- : long_1.default.UZERO;
7626
- return message;
7627
- },
7628
- };
7629
- function createBaseAreaSummaryReviewResponse_DevicesDetailEntry() {
7630
- return { key: long_1.default.UZERO, value: undefined };
7631
- }
7632
- exports.AreaSummaryReviewResponse_DevicesDetailEntry = {
7633
- encode(message, writer = new wire_1.BinaryWriter()) {
7634
- if (!message.key.equals(long_1.default.UZERO)) {
7635
- writer.uint32(8).uint64(message.key.toString());
7636
- }
7637
- if (message.value !== undefined) {
7638
- exports.AreaSummaryReviewResponse_Detail.encode(message.value, writer.uint32(18).fork()).join();
7639
- }
7640
- return writer;
7641
- },
7642
- decode(input, length) {
7643
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
7644
- let end = length === undefined ? reader.len : reader.pos + length;
7645
- const message = createBaseAreaSummaryReviewResponse_DevicesDetailEntry();
7646
- while (reader.pos < end) {
7647
- const tag = reader.uint32();
7648
- switch (tag >>> 3) {
7649
- case 1: {
7650
- if (tag !== 8) {
7651
- break;
7652
- }
7653
- message.key = long_1.default.fromString(reader.uint64().toString(), true);
7654
- continue;
7655
- }
7656
- case 2: {
7657
- if (tag !== 18) {
7658
- break;
7659
- }
7660
- message.value = exports.AreaSummaryReviewResponse_Detail.decode(reader, reader.uint32());
7661
- continue;
7662
- }
7663
- }
7664
- if ((tag & 7) === 4 || tag === 0) {
7665
- break;
7666
- }
7667
- reader.skip(tag & 7);
7668
- }
7669
- return message;
7670
- },
7671
- fromJSON(object) {
7672
- return {
7673
- key: isSet(object.key) ? long_1.default.fromValue(object.key) : long_1.default.UZERO,
7674
- value: isSet(object.value) ? exports.AreaSummaryReviewResponse_Detail.fromJSON(object.value) : undefined,
7675
- };
7676
- },
7677
- toJSON(message) {
7678
- const obj = {};
7679
- if (!message.key.equals(long_1.default.UZERO)) {
7680
- obj.key = (message.key || long_1.default.UZERO).toString();
7681
- }
7682
- if (message.value !== undefined) {
7683
- obj.value = exports.AreaSummaryReviewResponse_Detail.toJSON(message.value);
7684
- }
7685
- return obj;
7686
- },
7687
- create(base) {
7688
- return exports.AreaSummaryReviewResponse_DevicesDetailEntry.fromPartial(base !== null && base !== void 0 ? base : {});
7689
- },
7690
- fromPartial(object) {
7691
- const message = createBaseAreaSummaryReviewResponse_DevicesDetailEntry();
7692
- message.key = (object.key !== undefined && object.key !== null) ? long_1.default.fromValue(object.key) : long_1.default.UZERO;
7693
- message.value = (object.value !== undefined && object.value !== null)
7694
- ? exports.AreaSummaryReviewResponse_Detail.fromPartial(object.value)
7695
- : undefined;
7696
- return message;
7697
- },
7698
- };
7699
- function createBaseAreaSummaryReviewResponse_AreasDetailEntry() {
7700
- return { key: long_1.default.UZERO, value: undefined };
7701
- }
7702
- exports.AreaSummaryReviewResponse_AreasDetailEntry = {
7703
- encode(message, writer = new wire_1.BinaryWriter()) {
7704
- if (!message.key.equals(long_1.default.UZERO)) {
7705
- writer.uint32(8).uint64(message.key.toString());
7706
- }
7707
- if (message.value !== undefined) {
7708
- exports.AreaSummaryReviewResponse_Detail.encode(message.value, writer.uint32(18).fork()).join();
7709
- }
7710
- return writer;
7711
- },
7712
- decode(input, length) {
7713
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
7714
- let end = length === undefined ? reader.len : reader.pos + length;
7715
- const message = createBaseAreaSummaryReviewResponse_AreasDetailEntry();
7716
- while (reader.pos < end) {
7717
- const tag = reader.uint32();
7718
- switch (tag >>> 3) {
7719
- case 1: {
7720
- if (tag !== 8) {
7721
- break;
7722
- }
7723
- message.key = long_1.default.fromString(reader.uint64().toString(), true);
7724
- continue;
7725
- }
7726
- case 2: {
7727
- if (tag !== 18) {
7728
- break;
7729
- }
7730
- message.value = exports.AreaSummaryReviewResponse_Detail.decode(reader, reader.uint32());
7731
- continue;
7732
- }
7733
- }
7734
- if ((tag & 7) === 4 || tag === 0) {
7735
- break;
7736
- }
7737
- reader.skip(tag & 7);
7738
- }
7739
- return message;
7740
- },
7741
- fromJSON(object) {
7742
- return {
7743
- key: isSet(object.key) ? long_1.default.fromValue(object.key) : long_1.default.UZERO,
7744
- value: isSet(object.value) ? exports.AreaSummaryReviewResponse_Detail.fromJSON(object.value) : undefined,
7745
- };
7746
- },
7747
- toJSON(message) {
7748
- const obj = {};
7749
- if (!message.key.equals(long_1.default.UZERO)) {
7750
- obj.key = (message.key || long_1.default.UZERO).toString();
7751
- }
7752
- if (message.value !== undefined) {
7753
- obj.value = exports.AreaSummaryReviewResponse_Detail.toJSON(message.value);
7754
- }
7755
- return obj;
7756
- },
7757
- create(base) {
7758
- return exports.AreaSummaryReviewResponse_AreasDetailEntry.fromPartial(base !== null && base !== void 0 ? base : {});
7759
- },
7760
- fromPartial(object) {
7761
- const message = createBaseAreaSummaryReviewResponse_AreasDetailEntry();
7762
- message.key = (object.key !== undefined && object.key !== null) ? long_1.default.fromValue(object.key) : long_1.default.UZERO;
7763
- message.value = (object.value !== undefined && object.value !== null)
7764
- ? exports.AreaSummaryReviewResponse_Detail.fromPartial(object.value)
7765
- : undefined;
7766
- return message;
7767
- },
7768
- };
7769
- function createBaseShiftSummaryResponse() {
7770
- return { Reports: [], tripRecords: long_1.default.UZERO, tripMilliseconds: long_1.default.ZERO, startedAt: "", finishedAt: "" };
7771
- }
7772
- exports.ShiftSummaryResponse = {
7773
- encode(message, writer = new wire_1.BinaryWriter()) {
7774
- for (const v of message.Reports) {
7775
- exports.ShiftSummaryResponse_Summary.encode(v, writer.uint32(10).fork()).join();
7776
- }
7777
- if (!message.tripRecords.equals(long_1.default.UZERO)) {
7778
- writer.uint32(16).uint64(message.tripRecords.toString());
7779
- }
7780
- if (!message.tripMilliseconds.equals(long_1.default.ZERO)) {
7781
- writer.uint32(24).sint64(message.tripMilliseconds.toString());
7782
- }
7783
- if (message.startedAt !== "") {
7784
- writer.uint32(34).string(message.startedAt);
7785
- }
7786
- if (message.finishedAt !== "") {
7787
- writer.uint32(42).string(message.finishedAt);
7788
- }
7789
- return writer;
7790
- },
7791
- decode(input, length) {
7792
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
7793
- let end = length === undefined ? reader.len : reader.pos + length;
7794
- const message = createBaseShiftSummaryResponse();
7795
- while (reader.pos < end) {
7796
- const tag = reader.uint32();
7797
- switch (tag >>> 3) {
7798
- case 1: {
7799
- if (tag !== 10) {
7800
- break;
7801
- }
7802
- message.Reports.push(exports.ShiftSummaryResponse_Summary.decode(reader, reader.uint32()));
7803
- continue;
7804
- }
7805
- case 2: {
7806
- if (tag !== 16) {
7807
- break;
7808
- }
7809
- message.tripRecords = long_1.default.fromString(reader.uint64().toString(), true);
7810
- continue;
7811
- }
7812
- case 3: {
7813
- if (tag !== 24) {
7814
- break;
7815
- }
7816
- message.tripMilliseconds = long_1.default.fromString(reader.sint64().toString());
7817
- continue;
7818
- }
7819
- case 4: {
7820
- if (tag !== 34) {
7821
- break;
7822
- }
7823
- message.startedAt = reader.string();
7824
- continue;
7825
- }
7826
- case 5: {
7827
- if (tag !== 42) {
7828
- break;
7829
- }
7830
- message.finishedAt = reader.string();
7319
+ message.finishedAt = reader.string();
7831
7320
  continue;
7832
7321
  }
7833
7322
  }
@@ -8009,7 +7498,7 @@ exports.ShiftSummaryResponse_Summary = {
8009
7498
  },
8010
7499
  decode(input, length) {
8011
7500
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
8012
- let end = length === undefined ? reader.len : reader.pos + length;
7501
+ const end = length === undefined ? reader.len : reader.pos + length;
8013
7502
  const message = createBaseShiftSummaryResponse_Summary();
8014
7503
  while (reader.pos < end) {
8015
7504
  const tag = reader.uint32();
@@ -8405,7 +7894,7 @@ exports.ShiftRequest = {
8405
7894
  },
8406
7895
  decode(input, length) {
8407
7896
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
8408
- let end = length === undefined ? reader.len : reader.pos + length;
7897
+ const end = length === undefined ? reader.len : reader.pos + length;
8409
7898
  const message = createBaseShiftRequest();
8410
7899
  while (reader.pos < end) {
8411
7900
  const tag = reader.uint32();
@@ -8491,7 +7980,7 @@ exports.ShiftResponse = {
8491
7980
  },
8492
7981
  decode(input, length) {
8493
7982
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
8494
- let end = length === undefined ? reader.len : reader.pos + length;
7983
+ const end = length === undefined ? reader.len : reader.pos + length;
8495
7984
  const message = createBaseShiftResponse();
8496
7985
  while (reader.pos < end) {
8497
7986
  const tag = reader.uint32();
@@ -8678,7 +8167,7 @@ exports.ShiftResponse_Shift = {
8678
8167
  },
8679
8168
  decode(input, length) {
8680
8169
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
8681
- let end = length === undefined ? reader.len : reader.pos + length;
8170
+ const end = length === undefined ? reader.len : reader.pos + length;
8682
8171
  const message = createBaseShiftResponse_Shift();
8683
8172
  while (reader.pos < end) {
8684
8173
  const tag = reader.uint32();
@@ -9130,7 +8619,7 @@ exports.ShiftSummaryRequest = {
9130
8619
  },
9131
8620
  decode(input, length) {
9132
8621
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
9133
- let end = length === undefined ? reader.len : reader.pos + length;
8622
+ const end = length === undefined ? reader.len : reader.pos + length;
9134
8623
  const message = createBaseShiftSummaryRequest();
9135
8624
  while (reader.pos < end) {
9136
8625
  const tag = reader.uint32();
@@ -9224,7 +8713,7 @@ exports.DeviceDataCountRequest = {
9224
8713
  },
9225
8714
  decode(input, length) {
9226
8715
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
9227
- let end = length === undefined ? reader.len : reader.pos + length;
8716
+ const end = length === undefined ? reader.len : reader.pos + length;
9228
8717
  const message = createBaseDeviceDataCountRequest();
9229
8718
  while (reader.pos < end) {
9230
8719
  const tag = reader.uint32();
@@ -9310,7 +8799,7 @@ exports.DeviceDataCountResponse = {
9310
8799
  },
9311
8800
  decode(input, length) {
9312
8801
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
9313
- let end = length === undefined ? reader.len : reader.pos + length;
8802
+ const end = length === undefined ? reader.len : reader.pos + length;
9314
8803
  const message = createBaseDeviceDataCountResponse();
9315
8804
  while (reader.pos < end) {
9316
8805
  const tag = reader.uint32();
@@ -9370,7 +8859,7 @@ exports.DeviceDataCountResponse_DeviceDataCount = {
9370
8859
  },
9371
8860
  decode(input, length) {
9372
8861
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
9373
- let end = length === undefined ? reader.len : reader.pos + length;
8862
+ const end = length === undefined ? reader.len : reader.pos + length;
9374
8863
  const message = createBaseDeviceDataCountResponse_DeviceDataCount();
9375
8864
  while (reader.pos < end) {
9376
8865
  const tag = reader.uint32();
@@ -9437,7 +8926,7 @@ exports.DailyTrafficResponse = {
9437
8926
  },
9438
8927
  decode(input, length) {
9439
8928
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
9440
- let end = length === undefined ? reader.len : reader.pos + length;
8929
+ const end = length === undefined ? reader.len : reader.pos + length;
9441
8930
  const message = createBaseDailyTrafficResponse();
9442
8931
  while (reader.pos < end) {
9443
8932
  const tag = reader.uint32();
@@ -9506,7 +8995,7 @@ exports.DailyTrafficResponse_Traffic = {
9506
8995
  },
9507
8996
  decode(input, length) {
9508
8997
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
9509
- let end = length === undefined ? reader.len : reader.pos + length;
8998
+ const end = length === undefined ? reader.len : reader.pos + length;
9510
8999
  const message = createBaseDailyTrafficResponse_Traffic();
9511
9000
  while (reader.pos < end) {
9512
9001
  const tag = reader.uint32();
@@ -9614,7 +9103,7 @@ exports.DailyTrafficResponse_DailyTraffic = {
9614
9103
  },
9615
9104
  decode(input, length) {
9616
9105
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
9617
- let end = length === undefined ? reader.len : reader.pos + length;
9106
+ const end = length === undefined ? reader.len : reader.pos + length;
9618
9107
  const message = createBaseDailyTrafficResponse_DailyTraffic();
9619
9108
  while (reader.pos < end) {
9620
9109
  const tag = reader.uint32();
@@ -9708,7 +9197,7 @@ exports.DailyTrafficRequest = {
9708
9197
  },
9709
9198
  decode(input, length) {
9710
9199
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
9711
- let end = length === undefined ? reader.len : reader.pos + length;
9200
+ const end = length === undefined ? reader.len : reader.pos + length;
9712
9201
  const message = createBaseDailyTrafficRequest();
9713
9202
  while (reader.pos < end) {
9714
9203
  const tag = reader.uint32();
@@ -9820,7 +9309,7 @@ exports.RouteStopPoint = {
9820
9309
  },
9821
9310
  decode(input, length) {
9822
9311
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
9823
- let end = length === undefined ? reader.len : reader.pos + length;
9312
+ const end = length === undefined ? reader.len : reader.pos + length;
9824
9313
  const message = createBaseRouteStopPoint();
9825
9314
  while (reader.pos < end) {
9826
9315
  const tag = reader.uint32();
@@ -9933,7 +9422,7 @@ exports.RouteStopResponse = {
9933
9422
  },
9934
9423
  decode(input, length) {
9935
9424
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
9936
- let end = length === undefined ? reader.len : reader.pos + length;
9425
+ const end = length === undefined ? reader.len : reader.pos + length;
9937
9426
  const message = createBaseRouteStopResponse();
9938
9427
  while (reader.pos < end) {
9939
9428
  const tag = reader.uint32();
@@ -10036,7 +9525,7 @@ exports.RouteStopRequest = {
10036
9525
  },
10037
9526
  decode(input, length) {
10038
9527
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
10039
- let end = length === undefined ? reader.len : reader.pos + length;
9528
+ const end = length === undefined ? reader.len : reader.pos + length;
10040
9529
  const message = createBaseRouteStopRequest();
10041
9530
  while (reader.pos < end) {
10042
9531
  const tag = reader.uint32();
@@ -10162,7 +9651,7 @@ exports.RouteReviewRequest = {
10162
9651
  },
10163
9652
  decode(input, length) {
10164
9653
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
10165
- let end = length === undefined ? reader.len : reader.pos + length;
9654
+ const end = length === undefined ? reader.len : reader.pos + length;
10166
9655
  const message = createBaseRouteReviewRequest();
10167
9656
  while (reader.pos < end) {
10168
9657
  const tag = reader.uint32();
@@ -10293,7 +9782,7 @@ exports.RouteReviewResponse = {
10293
9782
  },
10294
9783
  decode(input, length) {
10295
9784
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
10296
- let end = length === undefined ? reader.len : reader.pos + length;
9785
+ const end = length === undefined ? reader.len : reader.pos + length;
10297
9786
  const message = createBaseRouteReviewResponse();
10298
9787
  while (reader.pos < end) {
10299
9788
  const tag = reader.uint32();
@@ -10428,7 +9917,7 @@ exports.AreaReviewRequest = {
10428
9917
  },
10429
9918
  decode(input, length) {
10430
9919
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
10431
- let end = length === undefined ? reader.len : reader.pos + length;
9920
+ const end = length === undefined ? reader.len : reader.pos + length;
10432
9921
  const message = createBaseAreaReviewRequest();
10433
9922
  while (reader.pos < end) {
10434
9923
  const tag = reader.uint32();
@@ -10545,7 +10034,7 @@ exports.AreaReviewResponse = {
10545
10034
  },
10546
10035
  decode(input, length) {
10547
10036
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
10548
- let end = length === undefined ? reader.len : reader.pos + length;
10037
+ const end = length === undefined ? reader.len : reader.pos + length;
10549
10038
  const message = createBaseAreaReviewResponse();
10550
10039
  while (reader.pos < end) {
10551
10040
  const tag = reader.uint32();
@@ -10628,7 +10117,7 @@ exports.AreaReviewResponse_AreaReview = {
10628
10117
  },
10629
10118
  decode(input, length) {
10630
10119
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
10631
- let end = length === undefined ? reader.len : reader.pos + length;
10120
+ const end = length === undefined ? reader.len : reader.pos + length;
10632
10121
  const message = createBaseAreaReviewResponse_AreaReview();
10633
10122
  while (reader.pos < end) {
10634
10123
  const tag = reader.uint32();
@@ -10769,7 +10258,7 @@ exports.DeviceDataRequest = {
10769
10258
  },
10770
10259
  decode(input, length) {
10771
10260
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
10772
- let end = length === undefined ? reader.len : reader.pos + length;
10261
+ const end = length === undefined ? reader.len : reader.pos + length;
10773
10262
  const message = createBaseDeviceDataRequest();
10774
10263
  while (reader.pos < end) {
10775
10264
  const tag = reader.uint32();
@@ -10861,7 +10350,7 @@ exports.DeviceDataResponse = {
10861
10350
  },
10862
10351
  decode(input, length) {
10863
10352
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
10864
- let end = length === undefined ? reader.len : reader.pos + length;
10353
+ const end = length === undefined ? reader.len : reader.pos + length;
10865
10354
  const message = createBaseDeviceDataResponse();
10866
10355
  while (reader.pos < end) {
10867
10356
  const tag = reader.uint32();
@@ -10931,7 +10420,7 @@ exports.LogResponse = {
10931
10420
  },
10932
10421
  decode(input, length) {
10933
10422
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
10934
- let end = length === undefined ? reader.len : reader.pos + length;
10423
+ const end = length === undefined ? reader.len : reader.pos + length;
10935
10424
  const message = createBaseLogResponse();
10936
10425
  while (reader.pos < end) {
10937
10426
  const tag = reader.uint32();
@@ -11076,7 +10565,7 @@ exports.LogRequest = {
11076
10565
  },
11077
10566
  decode(input, length) {
11078
10567
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
11079
- let end = length === undefined ? reader.len : reader.pos + length;
10568
+ const end = length === undefined ? reader.len : reader.pos + length;
11080
10569
  const message = createBaseLogRequest();
11081
10570
  while (reader.pos < end) {
11082
10571
  const tag = reader.uint32();
@@ -11215,7 +10704,7 @@ exports.TrafficRequest = {
11215
10704
  },
11216
10705
  decode(input, length) {
11217
10706
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
11218
- let end = length === undefined ? reader.len : reader.pos + length;
10707
+ const end = length === undefined ? reader.len : reader.pos + length;
11219
10708
  const message = createBaseTrafficRequest();
11220
10709
  while (reader.pos < end) {
11221
10710
  const tag = reader.uint32();
@@ -11313,7 +10802,7 @@ exports.TrafficResponse = {
11313
10802
  },
11314
10803
  decode(input, length) {
11315
10804
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
11316
- let end = length === undefined ? reader.len : reader.pos + length;
10805
+ const end = length === undefined ? reader.len : reader.pos + length;
11317
10806
  const message = createBaseTrafficResponse();
11318
10807
  while (reader.pos < end) {
11319
10808
  const tag = reader.uint32();
@@ -11392,7 +10881,7 @@ exports.TrafficResponse_Traffic = {
11392
10881
  },
11393
10882
  decode(input, length) {
11394
10883
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
11395
- let end = length === undefined ? reader.len : reader.pos + length;
10884
+ const end = length === undefined ? reader.len : reader.pos + length;
11396
10885
  const message = createBaseTrafficResponse_Traffic();
11397
10886
  while (reader.pos < end) {
11398
10887
  const tag = reader.uint32();
@@ -11518,7 +11007,7 @@ exports.AttendanceRequest = {
11518
11007
  },
11519
11008
  decode(input, length) {
11520
11009
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
11521
- let end = length === undefined ? reader.len : reader.pos + length;
11010
+ const end = length === undefined ? reader.len : reader.pos + length;
11522
11011
  const message = createBaseAttendanceRequest();
11523
11012
  while (reader.pos < end) {
11524
11013
  const tag = reader.uint32();
@@ -11618,7 +11107,7 @@ exports.AttendanceXRequest = {
11618
11107
  },
11619
11108
  decode(input, length) {
11620
11109
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
11621
- let end = length === undefined ? reader.len : reader.pos + length;
11110
+ const end = length === undefined ? reader.len : reader.pos + length;
11622
11111
  const message = createBaseAttendanceXRequest();
11623
11112
  while (reader.pos < end) {
11624
11113
  const tag = reader.uint32();
@@ -11730,7 +11219,7 @@ exports.AttendanceResponse = {
11730
11219
  },
11731
11220
  decode(input, length) {
11732
11221
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
11733
- let end = length === undefined ? reader.len : reader.pos + length;
11222
+ const end = length === undefined ? reader.len : reader.pos + length;
11734
11223
  const message = createBaseAttendanceResponse();
11735
11224
  while (reader.pos < end) {
11736
11225
  const tag = reader.uint32();
@@ -11796,7 +11285,7 @@ exports.AttendanceResponse_Event = {
11796
11285
  },
11797
11286
  decode(input, length) {
11798
11287
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
11799
- let end = length === undefined ? reader.len : reader.pos + length;
11288
+ const end = length === undefined ? reader.len : reader.pos + length;
11800
11289
  const message = createBaseAttendanceResponse_Event();
11801
11290
  while (reader.pos < end) {
11802
11291
  const tag = reader.uint32();
@@ -11960,7 +11449,7 @@ exports.AttendanceResponse_Attendance = {
11960
11449
  },
11961
11450
  decode(input, length) {
11962
11451
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
11963
- let end = length === undefined ? reader.len : reader.pos + length;
11452
+ const end = length === undefined ? reader.len : reader.pos + length;
11964
11453
  const message = createBaseAttendanceResponse_Attendance();
11965
11454
  while (reader.pos < end) {
11966
11455
  const tag = reader.uint32();
@@ -12255,7 +11744,7 @@ exports.TripsRequest = {
12255
11744
  },
12256
11745
  decode(input, length) {
12257
11746
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
12258
- let end = length === undefined ? reader.len : reader.pos + length;
11747
+ const end = length === undefined ? reader.len : reader.pos + length;
12259
11748
  const message = createBaseTripsRequest();
12260
11749
  while (reader.pos < end) {
12261
11750
  const tag = reader.uint32();
@@ -12341,7 +11830,7 @@ exports.TripsResponse = {
12341
11830
  },
12342
11831
  decode(input, length) {
12343
11832
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
12344
- let end = length === undefined ? reader.len : reader.pos + length;
11833
+ const end = length === undefined ? reader.len : reader.pos + length;
12345
11834
  const message = createBaseTripsResponse();
12346
11835
  while (reader.pos < end) {
12347
11836
  const tag = reader.uint32();
@@ -12407,7 +11896,7 @@ exports.TripsSummaryRequest = {
12407
11896
  },
12408
11897
  decode(input, length) {
12409
11898
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
12410
- let end = length === undefined ? reader.len : reader.pos + length;
11899
+ const end = length === undefined ? reader.len : reader.pos + length;
12411
11900
  const message = createBaseTripsSummaryRequest();
12412
11901
  while (reader.pos < end) {
12413
11902
  const tag = reader.uint32();
@@ -12519,7 +12008,7 @@ exports.TripsSummaryResponse = {
12519
12008
  },
12520
12009
  decode(input, length) {
12521
12010
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
12522
- let end = length === undefined ? reader.len : reader.pos + length;
12011
+ const end = length === undefined ? reader.len : reader.pos + length;
12523
12012
  const message = createBaseTripsSummaryResponse();
12524
12013
  while (reader.pos < end) {
12525
12014
  const tag = reader.uint32();
@@ -12636,16 +12125,6 @@ function fromJsonTimestamp(o) {
12636
12125
  function numberToLong(number) {
12637
12126
  return long_1.default.fromNumber(number);
12638
12127
  }
12639
- function longToNumber(int64) {
12640
- const num = globalThis.Number(int64.toString());
12641
- if (num > globalThis.Number.MAX_SAFE_INTEGER) {
12642
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
12643
- }
12644
- if (num < globalThis.Number.MIN_SAFE_INTEGER) {
12645
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
12646
- }
12647
- return num;
12648
- }
12649
12128
  function isObject(value) {
12650
12129
  return typeof value === "object" && value !== null;
12651
12130
  }