@fatehan/tsrp 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fatehan/areas/area.d.ts +33 -7
- package/dist/fatehan/areas/area.d.ts.map +1 -1
- package/dist/fatehan/areas/area.js +444 -35
- package/dist/fatehan/models/fusion.d.ts +14 -1
- package/dist/fatehan/models/fusion.d.ts.map +1 -1
- package/dist/fatehan/models/fusion.js +186 -2
- package/dist/fatehan/models/models.d.ts +2 -1
- package/dist/fatehan/models/models.d.ts.map +1 -1
- package/dist/fatehan/models/models.js +18 -2
- package/dist/fatehan/models/operation.d.ts +1 -1
- package/dist/fatehan/models/operation.d.ts.map +1 -1
- package/dist/fatehan/models/operation.js +1 -1
- package/dist/fatehan/notifies/notify.d.ts +1 -1
- package/dist/fatehan/notifies/notify.d.ts.map +1 -1
- package/dist/fatehan/notifies/notify.js +1 -1
- package/dist/fatehan/packets/dataModel.d.ts +77 -8
- package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModel.js +568 -42
- package/dist/fatehan/packets/messages.d.ts +1 -1
- package/dist/fatehan/packets/messages.d.ts.map +1 -1
- package/dist/fatehan/packets/messages.js +1 -1
- package/dist/fatehan/reports/report.d.ts +17 -1
- package/dist/fatehan/reports/report.d.ts.map +1 -1
- package/dist/fatehan/reports/report.js +232 -3
- package/dist/fatehan/trips/trip.d.ts +1 -1
- package/dist/fatehan/trips/trip.d.ts.map +1 -1
- package/dist/fatehan/trips/trip.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.test.js +12 -1
- package/package.json +2 -2
- package/readme.md +6 -3
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: packets/dataModel.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.JTT808MediaRetrieval0802_Item = exports.JTT808MediaRetrieval0802 = exports.DeviceStatus = exports.Task_AlertIdNumberEntry = exports.Task = exports.DeviceData = exports.FusionDevice = exports.OdysseyDevice = void 0;
|
|
8
|
+
exports.ConcoxLikeR31 = exports.Jtt808SignalingDataMessage1212 = exports.Jtt1078EventMediaDataUpload = exports.Jtt1078EventMediaInfoUpload = exports.Jtt10780x0001Answer = exports.Jtt808SignalingDataMessage1210_Attachment = exports.Jtt808SignalingDataMessage1210 = exports.Jtt808SignalingDataMessage1211 = exports.AdditionalInformation = exports.Packet = exports.Authorize = exports.Data = exports.Log = exports.Compact_AlertValuesEntry = exports.Compact = exports.ADAS = exports.CanAdaptersElements_LcCan = exports.CanAdaptersElements_Cisf = exports.CanAdaptersElements_Usf = exports.CanAdaptersElements_Asf = exports.CanAdaptersElements_Isf = exports.CanAdaptersElements_Csf = exports.CanAdaptersElements_Ssf = exports.CanAdaptersElements = exports.BleSensorsIoElements = exports.ObdOemElements = exports.ObdElements = exports.EventualIoElements = exports.IoElement_MSP500 = exports.IoElement_Driver = exports.IoElement_Ble = exports.IoElement_Eye = exports.IoElement_LLS = exports.IoElement_DallasTemperature = exports.IoElement = exports.OdysseyDevice_TripType = exports.OdysseyDevice_ObjectType = exports.AdditionalInformation_Key = exports.Packet_AnswerType = exports.Packet_CustomPacketType = exports.Packet_Type = exports.Log_Type = exports.ADAS_DeviationType = exports.ADAS_RoadSignType = exports.EventualIoElements_ZoneEvent = exports.FileFormat = exports.FileType = exports.Protocol = exports.Alert = exports.protobufPackage = void 0;
|
|
9
|
+
exports.JTT808MediaRetrieval0802_Item = exports.JTT808MediaRetrieval0802 = exports.DeviceStatus = exports.Task_AlertIdNumberEntry = exports.Task = exports.DeviceData = exports.FusionDevice = exports.OdysseyDevice = exports.Client = exports.ConcoxRecording0x8d = exports.Concox = void 0;
|
|
10
10
|
exports.alertFromJSON = alertFromJSON;
|
|
11
11
|
exports.alertToJSON = alertToJSON;
|
|
12
|
+
exports.protocolFromJSON = protocolFromJSON;
|
|
13
|
+
exports.protocolToJSON = protocolToJSON;
|
|
12
14
|
exports.fileTypeFromJSON = fileTypeFromJSON;
|
|
13
15
|
exports.fileTypeToJSON = fileTypeToJSON;
|
|
14
16
|
exports.fileFormatFromJSON = fileFormatFromJSON;
|
|
@@ -19,6 +21,8 @@ exports.aDAS_RoadSignTypeFromJSON = aDAS_RoadSignTypeFromJSON;
|
|
|
19
21
|
exports.aDAS_RoadSignTypeToJSON = aDAS_RoadSignTypeToJSON;
|
|
20
22
|
exports.aDAS_DeviationTypeFromJSON = aDAS_DeviationTypeFromJSON;
|
|
21
23
|
exports.aDAS_DeviationTypeToJSON = aDAS_DeviationTypeToJSON;
|
|
24
|
+
exports.log_TypeFromJSON = log_TypeFromJSON;
|
|
25
|
+
exports.log_TypeToJSON = log_TypeToJSON;
|
|
22
26
|
exports.packet_TypeFromJSON = packet_TypeFromJSON;
|
|
23
27
|
exports.packet_TypeToJSON = packet_TypeToJSON;
|
|
24
28
|
exports.packet_CustomPacketTypeFromJSON = packet_CustomPacketTypeFromJSON;
|
|
@@ -34,7 +38,7 @@ exports.odysseyDevice_TripTypeToJSON = odysseyDevice_TripTypeToJSON;
|
|
|
34
38
|
/* eslint-disable */
|
|
35
39
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
36
40
|
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
37
|
-
exports.protobufPackage = "fatehan";
|
|
41
|
+
exports.protobufPackage = "com.fatehan.packets";
|
|
38
42
|
var Alert;
|
|
39
43
|
(function (Alert) {
|
|
40
44
|
Alert[Alert["Normal"] = 0] = "Normal";
|
|
@@ -1086,6 +1090,217 @@ function alertToJSON(object) {
|
|
|
1086
1090
|
return "UNRECOGNIZED";
|
|
1087
1091
|
}
|
|
1088
1092
|
}
|
|
1093
|
+
var Protocol;
|
|
1094
|
+
(function (Protocol) {
|
|
1095
|
+
Protocol[Protocol["PROTOCOL_UNKNOWN"] = 0] = "PROTOCOL_UNKNOWN";
|
|
1096
|
+
Protocol[Protocol["PROTOCOL_COBAN"] = 1] = "PROTOCOL_COBAN";
|
|
1097
|
+
Protocol[Protocol["PROTOCOL_COBAN_WR"] = 2] = "PROTOCOL_COBAN_WR";
|
|
1098
|
+
Protocol[Protocol["PROTOCOL_ACCURATE"] = 3] = "PROTOCOL_ACCURATE";
|
|
1099
|
+
Protocol[Protocol["PROTOCOL_A9"] = 4] = "PROTOCOL_A9";
|
|
1100
|
+
Protocol[Protocol["PROTOCOL_CONCOX"] = 5] = "PROTOCOL_CONCOX";
|
|
1101
|
+
Protocol[Protocol["PROTOCOL_DOLPHIN"] = 6] = "PROTOCOL_DOLPHIN";
|
|
1102
|
+
Protocol[Protocol["PROTOCOL_GT07"] = 7] = "PROTOCOL_GT07";
|
|
1103
|
+
Protocol[Protocol["PROTOCOL_JTT808"] = 8] = "PROTOCOL_JTT808";
|
|
1104
|
+
Protocol[Protocol["PROTOCOL_R16"] = 9] = "PROTOCOL_R16";
|
|
1105
|
+
Protocol[Protocol["PROTOCOL_R31"] = 10] = "PROTOCOL_R31";
|
|
1106
|
+
Protocol[Protocol["PROTOCOL_R56"] = 11] = "PROTOCOL_R56";
|
|
1107
|
+
Protocol[Protocol["PROTOCOL_S11"] = 12] = "PROTOCOL_S11";
|
|
1108
|
+
Protocol[Protocol["PROTOCOL_PROTOCOL_S15"] = 13] = "PROTOCOL_PROTOCOL_S15";
|
|
1109
|
+
Protocol[Protocol["PROTOCOL_SAYEH"] = 14] = "PROTOCOL_SAYEH";
|
|
1110
|
+
Protocol[Protocol["PROTOCOL_SINOTRACK"] = 15] = "PROTOCOL_SINOTRACK";
|
|
1111
|
+
Protocol[Protocol["PROTOCOL_TELTONIKA"] = 16] = "PROTOCOL_TELTONIKA";
|
|
1112
|
+
Protocol[Protocol["PROTOCOL_TOPIN"] = 17] = "PROTOCOL_TOPIN";
|
|
1113
|
+
Protocol[Protocol["PROTOCOL_WEFINDER"] = 18] = "PROTOCOL_WEFINDER";
|
|
1114
|
+
Protocol[Protocol["PROTOCOL_RUBTELLA"] = 19] = "PROTOCOL_RUBTELLA";
|
|
1115
|
+
Protocol[Protocol["PROTOCOL_LANDER"] = 20] = "PROTOCOL_LANDER";
|
|
1116
|
+
Protocol[Protocol["PROTOCOL_RAMMA"] = 21] = "PROTOCOL_RAMMA";
|
|
1117
|
+
Protocol[Protocol["PROTOCOL_SINERE"] = 22] = "PROTOCOL_SINERE";
|
|
1118
|
+
Protocol[Protocol["PROTOCOL_GALLO_SKY"] = 23] = "PROTOCOL_GALLO_SKY";
|
|
1119
|
+
Protocol[Protocol["PROTOCOL_GITINAMA"] = 24] = "PROTOCOL_GITINAMA";
|
|
1120
|
+
Protocol[Protocol["PROTOCOL_BCE"] = 25] = "PROTOCOL_BCE";
|
|
1121
|
+
Protocol[Protocol["PROTOCOL_TOP_FLY_TECH"] = 26] = "PROTOCOL_TOP_FLY_TECH";
|
|
1122
|
+
Protocol[Protocol["PROTOCOL_QUICK"] = 27] = "PROTOCOL_QUICK";
|
|
1123
|
+
Protocol[Protocol["PROTOCOL_RADSHID"] = 28] = "PROTOCOL_RADSHID";
|
|
1124
|
+
Protocol[Protocol["PROTOCOL_MEITRACK"] = 29] = "PROTOCOL_MEITRACK";
|
|
1125
|
+
Protocol[Protocol["PROTOCOL_GT30X"] = 30] = "PROTOCOL_GT30X";
|
|
1126
|
+
Protocol[Protocol["PROTOCOL_WP"] = 31] = "PROTOCOL_WP";
|
|
1127
|
+
Protocol[Protocol["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1128
|
+
})(Protocol || (exports.Protocol = Protocol = {}));
|
|
1129
|
+
function protocolFromJSON(object) {
|
|
1130
|
+
switch (object) {
|
|
1131
|
+
case 0:
|
|
1132
|
+
case "PROTOCOL_UNKNOWN":
|
|
1133
|
+
return Protocol.PROTOCOL_UNKNOWN;
|
|
1134
|
+
case 1:
|
|
1135
|
+
case "PROTOCOL_COBAN":
|
|
1136
|
+
return Protocol.PROTOCOL_COBAN;
|
|
1137
|
+
case 2:
|
|
1138
|
+
case "PROTOCOL_COBAN_WR":
|
|
1139
|
+
return Protocol.PROTOCOL_COBAN_WR;
|
|
1140
|
+
case 3:
|
|
1141
|
+
case "PROTOCOL_ACCURATE":
|
|
1142
|
+
return Protocol.PROTOCOL_ACCURATE;
|
|
1143
|
+
case 4:
|
|
1144
|
+
case "PROTOCOL_A9":
|
|
1145
|
+
return Protocol.PROTOCOL_A9;
|
|
1146
|
+
case 5:
|
|
1147
|
+
case "PROTOCOL_CONCOX":
|
|
1148
|
+
return Protocol.PROTOCOL_CONCOX;
|
|
1149
|
+
case 6:
|
|
1150
|
+
case "PROTOCOL_DOLPHIN":
|
|
1151
|
+
return Protocol.PROTOCOL_DOLPHIN;
|
|
1152
|
+
case 7:
|
|
1153
|
+
case "PROTOCOL_GT07":
|
|
1154
|
+
return Protocol.PROTOCOL_GT07;
|
|
1155
|
+
case 8:
|
|
1156
|
+
case "PROTOCOL_JTT808":
|
|
1157
|
+
return Protocol.PROTOCOL_JTT808;
|
|
1158
|
+
case 9:
|
|
1159
|
+
case "PROTOCOL_R16":
|
|
1160
|
+
return Protocol.PROTOCOL_R16;
|
|
1161
|
+
case 10:
|
|
1162
|
+
case "PROTOCOL_R31":
|
|
1163
|
+
return Protocol.PROTOCOL_R31;
|
|
1164
|
+
case 11:
|
|
1165
|
+
case "PROTOCOL_R56":
|
|
1166
|
+
return Protocol.PROTOCOL_R56;
|
|
1167
|
+
case 12:
|
|
1168
|
+
case "PROTOCOL_S11":
|
|
1169
|
+
return Protocol.PROTOCOL_S11;
|
|
1170
|
+
case 13:
|
|
1171
|
+
case "PROTOCOL_PROTOCOL_S15":
|
|
1172
|
+
return Protocol.PROTOCOL_PROTOCOL_S15;
|
|
1173
|
+
case 14:
|
|
1174
|
+
case "PROTOCOL_SAYEH":
|
|
1175
|
+
return Protocol.PROTOCOL_SAYEH;
|
|
1176
|
+
case 15:
|
|
1177
|
+
case "PROTOCOL_SINOTRACK":
|
|
1178
|
+
return Protocol.PROTOCOL_SINOTRACK;
|
|
1179
|
+
case 16:
|
|
1180
|
+
case "PROTOCOL_TELTONIKA":
|
|
1181
|
+
return Protocol.PROTOCOL_TELTONIKA;
|
|
1182
|
+
case 17:
|
|
1183
|
+
case "PROTOCOL_TOPIN":
|
|
1184
|
+
return Protocol.PROTOCOL_TOPIN;
|
|
1185
|
+
case 18:
|
|
1186
|
+
case "PROTOCOL_WEFINDER":
|
|
1187
|
+
return Protocol.PROTOCOL_WEFINDER;
|
|
1188
|
+
case 19:
|
|
1189
|
+
case "PROTOCOL_RUBTELLA":
|
|
1190
|
+
return Protocol.PROTOCOL_RUBTELLA;
|
|
1191
|
+
case 20:
|
|
1192
|
+
case "PROTOCOL_LANDER":
|
|
1193
|
+
return Protocol.PROTOCOL_LANDER;
|
|
1194
|
+
case 21:
|
|
1195
|
+
case "PROTOCOL_RAMMA":
|
|
1196
|
+
return Protocol.PROTOCOL_RAMMA;
|
|
1197
|
+
case 22:
|
|
1198
|
+
case "PROTOCOL_SINERE":
|
|
1199
|
+
return Protocol.PROTOCOL_SINERE;
|
|
1200
|
+
case 23:
|
|
1201
|
+
case "PROTOCOL_GALLO_SKY":
|
|
1202
|
+
return Protocol.PROTOCOL_GALLO_SKY;
|
|
1203
|
+
case 24:
|
|
1204
|
+
case "PROTOCOL_GITINAMA":
|
|
1205
|
+
return Protocol.PROTOCOL_GITINAMA;
|
|
1206
|
+
case 25:
|
|
1207
|
+
case "PROTOCOL_BCE":
|
|
1208
|
+
return Protocol.PROTOCOL_BCE;
|
|
1209
|
+
case 26:
|
|
1210
|
+
case "PROTOCOL_TOP_FLY_TECH":
|
|
1211
|
+
return Protocol.PROTOCOL_TOP_FLY_TECH;
|
|
1212
|
+
case 27:
|
|
1213
|
+
case "PROTOCOL_QUICK":
|
|
1214
|
+
return Protocol.PROTOCOL_QUICK;
|
|
1215
|
+
case 28:
|
|
1216
|
+
case "PROTOCOL_RADSHID":
|
|
1217
|
+
return Protocol.PROTOCOL_RADSHID;
|
|
1218
|
+
case 29:
|
|
1219
|
+
case "PROTOCOL_MEITRACK":
|
|
1220
|
+
return Protocol.PROTOCOL_MEITRACK;
|
|
1221
|
+
case 30:
|
|
1222
|
+
case "PROTOCOL_GT30X":
|
|
1223
|
+
return Protocol.PROTOCOL_GT30X;
|
|
1224
|
+
case 31:
|
|
1225
|
+
case "PROTOCOL_WP":
|
|
1226
|
+
return Protocol.PROTOCOL_WP;
|
|
1227
|
+
case -1:
|
|
1228
|
+
case "UNRECOGNIZED":
|
|
1229
|
+
default:
|
|
1230
|
+
return Protocol.UNRECOGNIZED;
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
function protocolToJSON(object) {
|
|
1234
|
+
switch (object) {
|
|
1235
|
+
case Protocol.PROTOCOL_UNKNOWN:
|
|
1236
|
+
return "PROTOCOL_UNKNOWN";
|
|
1237
|
+
case Protocol.PROTOCOL_COBAN:
|
|
1238
|
+
return "PROTOCOL_COBAN";
|
|
1239
|
+
case Protocol.PROTOCOL_COBAN_WR:
|
|
1240
|
+
return "PROTOCOL_COBAN_WR";
|
|
1241
|
+
case Protocol.PROTOCOL_ACCURATE:
|
|
1242
|
+
return "PROTOCOL_ACCURATE";
|
|
1243
|
+
case Protocol.PROTOCOL_A9:
|
|
1244
|
+
return "PROTOCOL_A9";
|
|
1245
|
+
case Protocol.PROTOCOL_CONCOX:
|
|
1246
|
+
return "PROTOCOL_CONCOX";
|
|
1247
|
+
case Protocol.PROTOCOL_DOLPHIN:
|
|
1248
|
+
return "PROTOCOL_DOLPHIN";
|
|
1249
|
+
case Protocol.PROTOCOL_GT07:
|
|
1250
|
+
return "PROTOCOL_GT07";
|
|
1251
|
+
case Protocol.PROTOCOL_JTT808:
|
|
1252
|
+
return "PROTOCOL_JTT808";
|
|
1253
|
+
case Protocol.PROTOCOL_R16:
|
|
1254
|
+
return "PROTOCOL_R16";
|
|
1255
|
+
case Protocol.PROTOCOL_R31:
|
|
1256
|
+
return "PROTOCOL_R31";
|
|
1257
|
+
case Protocol.PROTOCOL_R56:
|
|
1258
|
+
return "PROTOCOL_R56";
|
|
1259
|
+
case Protocol.PROTOCOL_S11:
|
|
1260
|
+
return "PROTOCOL_S11";
|
|
1261
|
+
case Protocol.PROTOCOL_PROTOCOL_S15:
|
|
1262
|
+
return "PROTOCOL_PROTOCOL_S15";
|
|
1263
|
+
case Protocol.PROTOCOL_SAYEH:
|
|
1264
|
+
return "PROTOCOL_SAYEH";
|
|
1265
|
+
case Protocol.PROTOCOL_SINOTRACK:
|
|
1266
|
+
return "PROTOCOL_SINOTRACK";
|
|
1267
|
+
case Protocol.PROTOCOL_TELTONIKA:
|
|
1268
|
+
return "PROTOCOL_TELTONIKA";
|
|
1269
|
+
case Protocol.PROTOCOL_TOPIN:
|
|
1270
|
+
return "PROTOCOL_TOPIN";
|
|
1271
|
+
case Protocol.PROTOCOL_WEFINDER:
|
|
1272
|
+
return "PROTOCOL_WEFINDER";
|
|
1273
|
+
case Protocol.PROTOCOL_RUBTELLA:
|
|
1274
|
+
return "PROTOCOL_RUBTELLA";
|
|
1275
|
+
case Protocol.PROTOCOL_LANDER:
|
|
1276
|
+
return "PROTOCOL_LANDER";
|
|
1277
|
+
case Protocol.PROTOCOL_RAMMA:
|
|
1278
|
+
return "PROTOCOL_RAMMA";
|
|
1279
|
+
case Protocol.PROTOCOL_SINERE:
|
|
1280
|
+
return "PROTOCOL_SINERE";
|
|
1281
|
+
case Protocol.PROTOCOL_GALLO_SKY:
|
|
1282
|
+
return "PROTOCOL_GALLO_SKY";
|
|
1283
|
+
case Protocol.PROTOCOL_GITINAMA:
|
|
1284
|
+
return "PROTOCOL_GITINAMA";
|
|
1285
|
+
case Protocol.PROTOCOL_BCE:
|
|
1286
|
+
return "PROTOCOL_BCE";
|
|
1287
|
+
case Protocol.PROTOCOL_TOP_FLY_TECH:
|
|
1288
|
+
return "PROTOCOL_TOP_FLY_TECH";
|
|
1289
|
+
case Protocol.PROTOCOL_QUICK:
|
|
1290
|
+
return "PROTOCOL_QUICK";
|
|
1291
|
+
case Protocol.PROTOCOL_RADSHID:
|
|
1292
|
+
return "PROTOCOL_RADSHID";
|
|
1293
|
+
case Protocol.PROTOCOL_MEITRACK:
|
|
1294
|
+
return "PROTOCOL_MEITRACK";
|
|
1295
|
+
case Protocol.PROTOCOL_GT30X:
|
|
1296
|
+
return "PROTOCOL_GT30X";
|
|
1297
|
+
case Protocol.PROTOCOL_WP:
|
|
1298
|
+
return "PROTOCOL_WP";
|
|
1299
|
+
case Protocol.UNRECOGNIZED:
|
|
1300
|
+
default:
|
|
1301
|
+
return "UNRECOGNIZED";
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1089
1304
|
var FileType;
|
|
1090
1305
|
(function (FileType) {
|
|
1091
1306
|
FileType[FileType["NoneType"] = 0] = "NoneType";
|
|
@@ -1355,36 +1570,121 @@ function aDAS_DeviationTypeToJSON(object) {
|
|
|
1355
1570
|
return "UNRECOGNIZED";
|
|
1356
1571
|
}
|
|
1357
1572
|
}
|
|
1573
|
+
var Log_Type;
|
|
1574
|
+
(function (Log_Type) {
|
|
1575
|
+
Log_Type[Log_Type["UNKNOWN"] = 0] = "UNKNOWN";
|
|
1576
|
+
Log_Type[Log_Type["AUTHORIZE"] = 1] = "AUTHORIZE";
|
|
1577
|
+
Log_Type[Log_Type["DATA"] = 2] = "DATA";
|
|
1578
|
+
Log_Type[Log_Type["HEARTBEAT"] = 3] = "HEARTBEAT";
|
|
1579
|
+
Log_Type[Log_Type["ANSWER"] = 4] = "ANSWER";
|
|
1580
|
+
Log_Type[Log_Type["CUSTOM"] = 5] = "CUSTOM";
|
|
1581
|
+
Log_Type[Log_Type["FAILED"] = 6] = "FAILED";
|
|
1582
|
+
Log_Type[Log_Type["RESPONSE"] = 7] = "RESPONSE";
|
|
1583
|
+
Log_Type[Log_Type["COMMAND"] = 8] = "COMMAND";
|
|
1584
|
+
Log_Type[Log_Type["CONNECT"] = 9] = "CONNECT";
|
|
1585
|
+
Log_Type[Log_Type["DISCONNECT"] = 10] = "DISCONNECT";
|
|
1586
|
+
Log_Type[Log_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1587
|
+
})(Log_Type || (exports.Log_Type = Log_Type = {}));
|
|
1588
|
+
function log_TypeFromJSON(object) {
|
|
1589
|
+
switch (object) {
|
|
1590
|
+
case 0:
|
|
1591
|
+
case "UNKNOWN":
|
|
1592
|
+
return Log_Type.UNKNOWN;
|
|
1593
|
+
case 1:
|
|
1594
|
+
case "AUTHORIZE":
|
|
1595
|
+
return Log_Type.AUTHORIZE;
|
|
1596
|
+
case 2:
|
|
1597
|
+
case "DATA":
|
|
1598
|
+
return Log_Type.DATA;
|
|
1599
|
+
case 3:
|
|
1600
|
+
case "HEARTBEAT":
|
|
1601
|
+
return Log_Type.HEARTBEAT;
|
|
1602
|
+
case 4:
|
|
1603
|
+
case "ANSWER":
|
|
1604
|
+
return Log_Type.ANSWER;
|
|
1605
|
+
case 5:
|
|
1606
|
+
case "CUSTOM":
|
|
1607
|
+
return Log_Type.CUSTOM;
|
|
1608
|
+
case 6:
|
|
1609
|
+
case "FAILED":
|
|
1610
|
+
return Log_Type.FAILED;
|
|
1611
|
+
case 7:
|
|
1612
|
+
case "RESPONSE":
|
|
1613
|
+
return Log_Type.RESPONSE;
|
|
1614
|
+
case 8:
|
|
1615
|
+
case "COMMAND":
|
|
1616
|
+
return Log_Type.COMMAND;
|
|
1617
|
+
case 9:
|
|
1618
|
+
case "CONNECT":
|
|
1619
|
+
return Log_Type.CONNECT;
|
|
1620
|
+
case 10:
|
|
1621
|
+
case "DISCONNECT":
|
|
1622
|
+
return Log_Type.DISCONNECT;
|
|
1623
|
+
case -1:
|
|
1624
|
+
case "UNRECOGNIZED":
|
|
1625
|
+
default:
|
|
1626
|
+
return Log_Type.UNRECOGNIZED;
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
function log_TypeToJSON(object) {
|
|
1630
|
+
switch (object) {
|
|
1631
|
+
case Log_Type.UNKNOWN:
|
|
1632
|
+
return "UNKNOWN";
|
|
1633
|
+
case Log_Type.AUTHORIZE:
|
|
1634
|
+
return "AUTHORIZE";
|
|
1635
|
+
case Log_Type.DATA:
|
|
1636
|
+
return "DATA";
|
|
1637
|
+
case Log_Type.HEARTBEAT:
|
|
1638
|
+
return "HEARTBEAT";
|
|
1639
|
+
case Log_Type.ANSWER:
|
|
1640
|
+
return "ANSWER";
|
|
1641
|
+
case Log_Type.CUSTOM:
|
|
1642
|
+
return "CUSTOM";
|
|
1643
|
+
case Log_Type.FAILED:
|
|
1644
|
+
return "FAILED";
|
|
1645
|
+
case Log_Type.RESPONSE:
|
|
1646
|
+
return "RESPONSE";
|
|
1647
|
+
case Log_Type.COMMAND:
|
|
1648
|
+
return "COMMAND";
|
|
1649
|
+
case Log_Type.CONNECT:
|
|
1650
|
+
return "CONNECT";
|
|
1651
|
+
case Log_Type.DISCONNECT:
|
|
1652
|
+
return "DISCONNECT";
|
|
1653
|
+
case Log_Type.UNRECOGNIZED:
|
|
1654
|
+
default:
|
|
1655
|
+
return "UNRECOGNIZED";
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1358
1658
|
var Packet_Type;
|
|
1359
1659
|
(function (Packet_Type) {
|
|
1360
|
-
Packet_Type[Packet_Type["
|
|
1361
|
-
Packet_Type[Packet_Type["
|
|
1362
|
-
Packet_Type[Packet_Type["
|
|
1363
|
-
Packet_Type[Packet_Type["
|
|
1364
|
-
Packet_Type[Packet_Type["
|
|
1365
|
-
Packet_Type[Packet_Type["
|
|
1660
|
+
Packet_Type[Packet_Type["FAILED"] = 0] = "FAILED";
|
|
1661
|
+
Packet_Type[Packet_Type["AUTHORIZE"] = 1] = "AUTHORIZE";
|
|
1662
|
+
Packet_Type[Packet_Type["DATA"] = 2] = "DATA";
|
|
1663
|
+
Packet_Type[Packet_Type["HEARTBEAT"] = 3] = "HEARTBEAT";
|
|
1664
|
+
Packet_Type[Packet_Type["ANSWER"] = 4] = "ANSWER";
|
|
1665
|
+
Packet_Type[Packet_Type["CUSTOM"] = 5] = "CUSTOM";
|
|
1366
1666
|
Packet_Type[Packet_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1367
1667
|
})(Packet_Type || (exports.Packet_Type = Packet_Type = {}));
|
|
1368
1668
|
function packet_TypeFromJSON(object) {
|
|
1369
1669
|
switch (object) {
|
|
1370
1670
|
case 0:
|
|
1371
|
-
case "
|
|
1372
|
-
return Packet_Type.
|
|
1671
|
+
case "FAILED":
|
|
1672
|
+
return Packet_Type.FAILED;
|
|
1373
1673
|
case 1:
|
|
1374
|
-
case "
|
|
1375
|
-
return Packet_Type.
|
|
1674
|
+
case "AUTHORIZE":
|
|
1675
|
+
return Packet_Type.AUTHORIZE;
|
|
1376
1676
|
case 2:
|
|
1377
|
-
case "
|
|
1378
|
-
return Packet_Type.
|
|
1677
|
+
case "DATA":
|
|
1678
|
+
return Packet_Type.DATA;
|
|
1379
1679
|
case 3:
|
|
1380
|
-
case "
|
|
1381
|
-
return Packet_Type.
|
|
1680
|
+
case "HEARTBEAT":
|
|
1681
|
+
return Packet_Type.HEARTBEAT;
|
|
1382
1682
|
case 4:
|
|
1383
|
-
case "
|
|
1384
|
-
return Packet_Type.
|
|
1683
|
+
case "ANSWER":
|
|
1684
|
+
return Packet_Type.ANSWER;
|
|
1385
1685
|
case 5:
|
|
1386
|
-
case "
|
|
1387
|
-
return Packet_Type.
|
|
1686
|
+
case "CUSTOM":
|
|
1687
|
+
return Packet_Type.CUSTOM;
|
|
1388
1688
|
case -1:
|
|
1389
1689
|
case "UNRECOGNIZED":
|
|
1390
1690
|
default:
|
|
@@ -1393,18 +1693,18 @@ function packet_TypeFromJSON(object) {
|
|
|
1393
1693
|
}
|
|
1394
1694
|
function packet_TypeToJSON(object) {
|
|
1395
1695
|
switch (object) {
|
|
1396
|
-
case Packet_Type.
|
|
1397
|
-
return "
|
|
1398
|
-
case Packet_Type.
|
|
1399
|
-
return "
|
|
1400
|
-
case Packet_Type.
|
|
1401
|
-
return "
|
|
1402
|
-
case Packet_Type.
|
|
1403
|
-
return "
|
|
1404
|
-
case Packet_Type.
|
|
1405
|
-
return "
|
|
1406
|
-
case Packet_Type.
|
|
1407
|
-
return "
|
|
1696
|
+
case Packet_Type.FAILED:
|
|
1697
|
+
return "FAILED";
|
|
1698
|
+
case Packet_Type.AUTHORIZE:
|
|
1699
|
+
return "AUTHORIZE";
|
|
1700
|
+
case Packet_Type.DATA:
|
|
1701
|
+
return "DATA";
|
|
1702
|
+
case Packet_Type.HEARTBEAT:
|
|
1703
|
+
return "HEARTBEAT";
|
|
1704
|
+
case Packet_Type.ANSWER:
|
|
1705
|
+
return "ANSWER";
|
|
1706
|
+
case Packet_Type.CUSTOM:
|
|
1707
|
+
return "CUSTOM";
|
|
1408
1708
|
case Packet_Type.UNRECOGNIZED:
|
|
1409
1709
|
default:
|
|
1410
1710
|
return "UNRECOGNIZED";
|
|
@@ -1423,6 +1723,8 @@ var Packet_CustomPacketType;
|
|
|
1423
1723
|
Packet_CustomPacketType[Packet_CustomPacketType["ConcoxIMSINumber"] = 8] = "ConcoxIMSINumber";
|
|
1424
1724
|
Packet_CustomPacketType[Packet_CustomPacketType["ConcoxICCIdNumber"] = 9] = "ConcoxICCIdNumber";
|
|
1425
1725
|
Packet_CustomPacketType[Packet_CustomPacketType["ConcoxRecordingProtocolPackage0x8d"] = 10] = "ConcoxRecordingProtocolPackage0x8d";
|
|
1726
|
+
Packet_CustomPacketType[Packet_CustomPacketType["DolphinBufferPayload"] = 12] = "DolphinBufferPayload";
|
|
1727
|
+
Packet_CustomPacketType[Packet_CustomPacketType["DolphinNewBuffer"] = 13] = "DolphinNewBuffer";
|
|
1426
1728
|
Packet_CustomPacketType[Packet_CustomPacketType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1427
1729
|
})(Packet_CustomPacketType || (exports.Packet_CustomPacketType = Packet_CustomPacketType = {}));
|
|
1428
1730
|
function packet_CustomPacketTypeFromJSON(object) {
|
|
@@ -1460,6 +1762,12 @@ function packet_CustomPacketTypeFromJSON(object) {
|
|
|
1460
1762
|
case 10:
|
|
1461
1763
|
case "ConcoxRecordingProtocolPackage0x8d":
|
|
1462
1764
|
return Packet_CustomPacketType.ConcoxRecordingProtocolPackage0x8d;
|
|
1765
|
+
case 12:
|
|
1766
|
+
case "DolphinBufferPayload":
|
|
1767
|
+
return Packet_CustomPacketType.DolphinBufferPayload;
|
|
1768
|
+
case 13:
|
|
1769
|
+
case "DolphinNewBuffer":
|
|
1770
|
+
return Packet_CustomPacketType.DolphinNewBuffer;
|
|
1463
1771
|
case -1:
|
|
1464
1772
|
case "UNRECOGNIZED":
|
|
1465
1773
|
default:
|
|
@@ -1490,6 +1798,10 @@ function packet_CustomPacketTypeToJSON(object) {
|
|
|
1490
1798
|
return "ConcoxICCIdNumber";
|
|
1491
1799
|
case Packet_CustomPacketType.ConcoxRecordingProtocolPackage0x8d:
|
|
1492
1800
|
return "ConcoxRecordingProtocolPackage0x8d";
|
|
1801
|
+
case Packet_CustomPacketType.DolphinBufferPayload:
|
|
1802
|
+
return "DolphinBufferPayload";
|
|
1803
|
+
case Packet_CustomPacketType.DolphinNewBuffer:
|
|
1804
|
+
return "DolphinNewBuffer";
|
|
1493
1805
|
case Packet_CustomPacketType.UNRECOGNIZED:
|
|
1494
1806
|
default:
|
|
1495
1807
|
return "UNRECOGNIZED";
|
|
@@ -1564,7 +1876,7 @@ var AdditionalInformation_Key;
|
|
|
1564
1876
|
AdditionalInformation_Key[AdditionalInformation_Key["JTT808SerialNumber"] = 9] = "JTT808SerialNumber";
|
|
1565
1877
|
AdditionalInformation_Key[AdditionalInformation_Key["JTT808Attachment"] = 10] = "JTT808Attachment";
|
|
1566
1878
|
AdditionalInformation_Key[AdditionalInformation_Key["JTT808AlarmType"] = 13] = "JTT808AlarmType";
|
|
1567
|
-
AdditionalInformation_Key[AdditionalInformation_Key["
|
|
1879
|
+
AdditionalInformation_Key[AdditionalInformation_Key["DolphinTerminalId"] = 14] = "DolphinTerminalId";
|
|
1568
1880
|
AdditionalInformation_Key[AdditionalInformation_Key["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1569
1881
|
})(AdditionalInformation_Key || (exports.AdditionalInformation_Key = AdditionalInformation_Key = {}));
|
|
1570
1882
|
function additionalInformation_KeyFromJSON(object) {
|
|
@@ -1605,9 +1917,9 @@ function additionalInformation_KeyFromJSON(object) {
|
|
|
1605
1917
|
case 13:
|
|
1606
1918
|
case "JTT808AlarmType":
|
|
1607
1919
|
return AdditionalInformation_Key.JTT808AlarmType;
|
|
1608
|
-
case
|
|
1609
|
-
case "
|
|
1610
|
-
return AdditionalInformation_Key.
|
|
1920
|
+
case 14:
|
|
1921
|
+
case "DolphinTerminalId":
|
|
1922
|
+
return AdditionalInformation_Key.DolphinTerminalId;
|
|
1611
1923
|
case -1:
|
|
1612
1924
|
case "UNRECOGNIZED":
|
|
1613
1925
|
default:
|
|
@@ -1640,8 +1952,8 @@ function additionalInformation_KeyToJSON(object) {
|
|
|
1640
1952
|
return "JTT808Attachment";
|
|
1641
1953
|
case AdditionalInformation_Key.JTT808AlarmType:
|
|
1642
1954
|
return "JTT808AlarmType";
|
|
1643
|
-
case AdditionalInformation_Key.
|
|
1644
|
-
return "
|
|
1955
|
+
case AdditionalInformation_Key.DolphinTerminalId:
|
|
1956
|
+
return "DolphinTerminalId";
|
|
1645
1957
|
case AdditionalInformation_Key.UNRECOGNIZED:
|
|
1646
1958
|
default:
|
|
1647
1959
|
return "UNRECOGNIZED";
|
|
@@ -1785,6 +2097,7 @@ function createBaseIoElement() {
|
|
|
1785
2097
|
doorCar: undefined,
|
|
1786
2098
|
realtime: undefined,
|
|
1787
2099
|
positioning: undefined,
|
|
2100
|
+
adminPhoneNumber: undefined,
|
|
1788
2101
|
};
|
|
1789
2102
|
}
|
|
1790
2103
|
exports.IoElement = {
|
|
@@ -2011,6 +2324,9 @@ exports.IoElement = {
|
|
|
2011
2324
|
if (message.positioning !== undefined) {
|
|
2012
2325
|
writer.uint32(592).bool(message.positioning);
|
|
2013
2326
|
}
|
|
2327
|
+
if (message.adminPhoneNumber !== undefined) {
|
|
2328
|
+
writer.uint32(600).uint64(message.adminPhoneNumber);
|
|
2329
|
+
}
|
|
2014
2330
|
return writer;
|
|
2015
2331
|
},
|
|
2016
2332
|
decode(input, length) {
|
|
@@ -2538,6 +2854,13 @@ exports.IoElement = {
|
|
|
2538
2854
|
message.positioning = reader.bool();
|
|
2539
2855
|
continue;
|
|
2540
2856
|
}
|
|
2857
|
+
case 75: {
|
|
2858
|
+
if (tag !== 600) {
|
|
2859
|
+
break;
|
|
2860
|
+
}
|
|
2861
|
+
message.adminPhoneNumber = longToNumber(reader.uint64());
|
|
2862
|
+
continue;
|
|
2863
|
+
}
|
|
2541
2864
|
}
|
|
2542
2865
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2543
2866
|
break;
|
|
@@ -2628,6 +2951,7 @@ exports.IoElement = {
|
|
|
2628
2951
|
doorCar: isSet(object.door_car) ? globalThis.Boolean(object.door_car) : undefined,
|
|
2629
2952
|
realtime: isSet(object.realtime) ? globalThis.Boolean(object.realtime) : undefined,
|
|
2630
2953
|
positioning: isSet(object.positioning) ? globalThis.Boolean(object.positioning) : undefined,
|
|
2954
|
+
adminPhoneNumber: isSet(object.admin_phone_number) ? globalThis.Number(object.admin_phone_number) : undefined,
|
|
2631
2955
|
};
|
|
2632
2956
|
},
|
|
2633
2957
|
toJSON(message) {
|
|
@@ -2854,13 +3178,16 @@ exports.IoElement = {
|
|
|
2854
3178
|
if (message.positioning !== undefined) {
|
|
2855
3179
|
obj.positioning = message.positioning;
|
|
2856
3180
|
}
|
|
3181
|
+
if (message.adminPhoneNumber !== undefined) {
|
|
3182
|
+
obj.admin_phone_number = Math.round(message.adminPhoneNumber);
|
|
3183
|
+
}
|
|
2857
3184
|
return obj;
|
|
2858
3185
|
},
|
|
2859
3186
|
create(base) {
|
|
2860
3187
|
return exports.IoElement.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2861
3188
|
},
|
|
2862
3189
|
fromPartial(object) {
|
|
2863
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43;
|
|
3190
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44;
|
|
2864
3191
|
const message = createBaseIoElement();
|
|
2865
3192
|
message.gsm = (_a = object.gsm) !== null && _a !== void 0 ? _a : undefined;
|
|
2866
3193
|
message.sleepMode = (_b = object.sleepMode) !== null && _b !== void 0 ? _b : undefined;
|
|
@@ -2942,6 +3269,7 @@ exports.IoElement = {
|
|
|
2942
3269
|
message.doorCar = (_41 = object.doorCar) !== null && _41 !== void 0 ? _41 : undefined;
|
|
2943
3270
|
message.realtime = (_42 = object.realtime) !== null && _42 !== void 0 ? _42 : undefined;
|
|
2944
3271
|
message.positioning = (_43 = object.positioning) !== null && _43 !== void 0 ? _43 : undefined;
|
|
3272
|
+
message.adminPhoneNumber = (_44 = object.adminPhoneNumber) !== null && _44 !== void 0 ? _44 : undefined;
|
|
2945
3273
|
return message;
|
|
2946
3274
|
},
|
|
2947
3275
|
};
|
|
@@ -14109,6 +14437,174 @@ exports.Compact_AlertValuesEntry = {
|
|
|
14109
14437
|
return message;
|
|
14110
14438
|
},
|
|
14111
14439
|
};
|
|
14440
|
+
function createBaseLog() {
|
|
14441
|
+
return {
|
|
14442
|
+
id: "",
|
|
14443
|
+
imei: 0,
|
|
14444
|
+
type: 0,
|
|
14445
|
+
customType: undefined,
|
|
14446
|
+
datetime: undefined,
|
|
14447
|
+
port: 0,
|
|
14448
|
+
protocol: 0,
|
|
14449
|
+
payload: new Uint8Array(0),
|
|
14450
|
+
};
|
|
14451
|
+
}
|
|
14452
|
+
exports.Log = {
|
|
14453
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14454
|
+
if (message.id !== "") {
|
|
14455
|
+
writer.uint32(10).string(message.id);
|
|
14456
|
+
}
|
|
14457
|
+
if (message.imei !== 0) {
|
|
14458
|
+
writer.uint32(16).uint64(message.imei);
|
|
14459
|
+
}
|
|
14460
|
+
if (message.type !== 0) {
|
|
14461
|
+
writer.uint32(24).int32(message.type);
|
|
14462
|
+
}
|
|
14463
|
+
if (message.customType !== undefined) {
|
|
14464
|
+
writer.uint32(34).string(message.customType);
|
|
14465
|
+
}
|
|
14466
|
+
if (message.datetime !== undefined) {
|
|
14467
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.datetime), writer.uint32(42).fork()).join();
|
|
14468
|
+
}
|
|
14469
|
+
if (message.port !== 0) {
|
|
14470
|
+
writer.uint32(48).uint32(message.port);
|
|
14471
|
+
}
|
|
14472
|
+
if (message.protocol !== 0) {
|
|
14473
|
+
writer.uint32(56).int32(message.protocol);
|
|
14474
|
+
}
|
|
14475
|
+
if (message.payload.length !== 0) {
|
|
14476
|
+
writer.uint32(66).bytes(message.payload);
|
|
14477
|
+
}
|
|
14478
|
+
return writer;
|
|
14479
|
+
},
|
|
14480
|
+
decode(input, length) {
|
|
14481
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14482
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
14483
|
+
const message = createBaseLog();
|
|
14484
|
+
while (reader.pos < end) {
|
|
14485
|
+
const tag = reader.uint32();
|
|
14486
|
+
switch (tag >>> 3) {
|
|
14487
|
+
case 1: {
|
|
14488
|
+
if (tag !== 10) {
|
|
14489
|
+
break;
|
|
14490
|
+
}
|
|
14491
|
+
message.id = reader.string();
|
|
14492
|
+
continue;
|
|
14493
|
+
}
|
|
14494
|
+
case 2: {
|
|
14495
|
+
if (tag !== 16) {
|
|
14496
|
+
break;
|
|
14497
|
+
}
|
|
14498
|
+
message.imei = longToNumber(reader.uint64());
|
|
14499
|
+
continue;
|
|
14500
|
+
}
|
|
14501
|
+
case 3: {
|
|
14502
|
+
if (tag !== 24) {
|
|
14503
|
+
break;
|
|
14504
|
+
}
|
|
14505
|
+
message.type = reader.int32();
|
|
14506
|
+
continue;
|
|
14507
|
+
}
|
|
14508
|
+
case 4: {
|
|
14509
|
+
if (tag !== 34) {
|
|
14510
|
+
break;
|
|
14511
|
+
}
|
|
14512
|
+
message.customType = reader.string();
|
|
14513
|
+
continue;
|
|
14514
|
+
}
|
|
14515
|
+
case 5: {
|
|
14516
|
+
if (tag !== 42) {
|
|
14517
|
+
break;
|
|
14518
|
+
}
|
|
14519
|
+
message.datetime = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
14520
|
+
continue;
|
|
14521
|
+
}
|
|
14522
|
+
case 6: {
|
|
14523
|
+
if (tag !== 48) {
|
|
14524
|
+
break;
|
|
14525
|
+
}
|
|
14526
|
+
message.port = reader.uint32();
|
|
14527
|
+
continue;
|
|
14528
|
+
}
|
|
14529
|
+
case 7: {
|
|
14530
|
+
if (tag !== 56) {
|
|
14531
|
+
break;
|
|
14532
|
+
}
|
|
14533
|
+
message.protocol = reader.int32();
|
|
14534
|
+
continue;
|
|
14535
|
+
}
|
|
14536
|
+
case 8: {
|
|
14537
|
+
if (tag !== 66) {
|
|
14538
|
+
break;
|
|
14539
|
+
}
|
|
14540
|
+
message.payload = reader.bytes();
|
|
14541
|
+
continue;
|
|
14542
|
+
}
|
|
14543
|
+
}
|
|
14544
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14545
|
+
break;
|
|
14546
|
+
}
|
|
14547
|
+
reader.skip(tag & 7);
|
|
14548
|
+
}
|
|
14549
|
+
return message;
|
|
14550
|
+
},
|
|
14551
|
+
fromJSON(object) {
|
|
14552
|
+
return {
|
|
14553
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
14554
|
+
imei: isSet(object.imei) ? globalThis.Number(object.imei) : 0,
|
|
14555
|
+
type: isSet(object.type) ? log_TypeFromJSON(object.type) : 0,
|
|
14556
|
+
customType: isSet(object.custom_name) ? globalThis.String(object.custom_name) : undefined,
|
|
14557
|
+
datetime: isSet(object.datetime) ? fromJsonTimestamp(object.datetime) : undefined,
|
|
14558
|
+
port: isSet(object.port) ? globalThis.Number(object.port) : 0,
|
|
14559
|
+
protocol: isSet(object.protocol) ? protocolFromJSON(object.protocol) : 0,
|
|
14560
|
+
payload: isSet(object.payload) ? bytesFromBase64(object.payload) : new Uint8Array(0),
|
|
14561
|
+
};
|
|
14562
|
+
},
|
|
14563
|
+
toJSON(message) {
|
|
14564
|
+
const obj = {};
|
|
14565
|
+
if (message.id !== "") {
|
|
14566
|
+
obj.id = message.id;
|
|
14567
|
+
}
|
|
14568
|
+
if (message.imei !== 0) {
|
|
14569
|
+
obj.imei = Math.round(message.imei);
|
|
14570
|
+
}
|
|
14571
|
+
if (message.type !== 0) {
|
|
14572
|
+
obj.type = log_TypeToJSON(message.type);
|
|
14573
|
+
}
|
|
14574
|
+
if (message.customType !== undefined) {
|
|
14575
|
+
obj.custom_name = message.customType;
|
|
14576
|
+
}
|
|
14577
|
+
if (message.datetime !== undefined) {
|
|
14578
|
+
obj.datetime = message.datetime.toISOString();
|
|
14579
|
+
}
|
|
14580
|
+
if (message.port !== 0) {
|
|
14581
|
+
obj.port = Math.round(message.port);
|
|
14582
|
+
}
|
|
14583
|
+
if (message.protocol !== 0) {
|
|
14584
|
+
obj.protocol = protocolToJSON(message.protocol);
|
|
14585
|
+
}
|
|
14586
|
+
if (message.payload.length !== 0) {
|
|
14587
|
+
obj.payload = base64FromBytes(message.payload);
|
|
14588
|
+
}
|
|
14589
|
+
return obj;
|
|
14590
|
+
},
|
|
14591
|
+
create(base) {
|
|
14592
|
+
return exports.Log.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
14593
|
+
},
|
|
14594
|
+
fromPartial(object) {
|
|
14595
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
14596
|
+
const message = createBaseLog();
|
|
14597
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
14598
|
+
message.imei = (_b = object.imei) !== null && _b !== void 0 ? _b : 0;
|
|
14599
|
+
message.type = (_c = object.type) !== null && _c !== void 0 ? _c : 0;
|
|
14600
|
+
message.customType = (_d = object.customType) !== null && _d !== void 0 ? _d : undefined;
|
|
14601
|
+
message.datetime = (_e = object.datetime) !== null && _e !== void 0 ? _e : undefined;
|
|
14602
|
+
message.port = (_f = object.port) !== null && _f !== void 0 ? _f : 0;
|
|
14603
|
+
message.protocol = (_g = object.protocol) !== null && _g !== void 0 ? _g : 0;
|
|
14604
|
+
message.payload = (_h = object.payload) !== null && _h !== void 0 ? _h : new Uint8Array(0);
|
|
14605
|
+
return message;
|
|
14606
|
+
},
|
|
14607
|
+
};
|
|
14112
14608
|
function createBaseData() {
|
|
14113
14609
|
return {
|
|
14114
14610
|
deviceId: 0,
|
|
@@ -14569,7 +15065,7 @@ exports.Packet = {
|
|
|
14569
15065
|
},
|
|
14570
15066
|
};
|
|
14571
15067
|
function createBaseAdditionalInformation() {
|
|
14572
|
-
return { key: 0, val: new Uint8Array(0) };
|
|
15068
|
+
return { key: 0, val: new Uint8Array(0), uint32Value: undefined, stringValue: undefined };
|
|
14573
15069
|
}
|
|
14574
15070
|
exports.AdditionalInformation = {
|
|
14575
15071
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -14579,6 +15075,12 @@ exports.AdditionalInformation = {
|
|
|
14579
15075
|
if (message.val.length !== 0) {
|
|
14580
15076
|
writer.uint32(18).bytes(message.val);
|
|
14581
15077
|
}
|
|
15078
|
+
if (message.uint32Value !== undefined) {
|
|
15079
|
+
writer.uint32(24).uint32(message.uint32Value);
|
|
15080
|
+
}
|
|
15081
|
+
if (message.stringValue !== undefined) {
|
|
15082
|
+
writer.uint32(34).string(message.stringValue);
|
|
15083
|
+
}
|
|
14582
15084
|
return writer;
|
|
14583
15085
|
},
|
|
14584
15086
|
decode(input, length) {
|
|
@@ -14602,6 +15104,20 @@ exports.AdditionalInformation = {
|
|
|
14602
15104
|
message.val = reader.bytes();
|
|
14603
15105
|
continue;
|
|
14604
15106
|
}
|
|
15107
|
+
case 3: {
|
|
15108
|
+
if (tag !== 24) {
|
|
15109
|
+
break;
|
|
15110
|
+
}
|
|
15111
|
+
message.uint32Value = reader.uint32();
|
|
15112
|
+
continue;
|
|
15113
|
+
}
|
|
15114
|
+
case 4: {
|
|
15115
|
+
if (tag !== 34) {
|
|
15116
|
+
break;
|
|
15117
|
+
}
|
|
15118
|
+
message.stringValue = reader.string();
|
|
15119
|
+
continue;
|
|
15120
|
+
}
|
|
14605
15121
|
}
|
|
14606
15122
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14607
15123
|
break;
|
|
@@ -14614,6 +15130,8 @@ exports.AdditionalInformation = {
|
|
|
14614
15130
|
return {
|
|
14615
15131
|
key: isSet(object.key) ? additionalInformation_KeyFromJSON(object.key) : 0,
|
|
14616
15132
|
val: isSet(object.val) ? bytesFromBase64(object.val) : new Uint8Array(0),
|
|
15133
|
+
uint32Value: isSet(object.uint32Value) ? globalThis.Number(object.uint32Value) : undefined,
|
|
15134
|
+
stringValue: isSet(object.stringValue) ? globalThis.String(object.stringValue) : undefined,
|
|
14617
15135
|
};
|
|
14618
15136
|
},
|
|
14619
15137
|
toJSON(message) {
|
|
@@ -14624,16 +15142,24 @@ exports.AdditionalInformation = {
|
|
|
14624
15142
|
if (message.val.length !== 0) {
|
|
14625
15143
|
obj.val = base64FromBytes(message.val);
|
|
14626
15144
|
}
|
|
15145
|
+
if (message.uint32Value !== undefined) {
|
|
15146
|
+
obj.uint32Value = Math.round(message.uint32Value);
|
|
15147
|
+
}
|
|
15148
|
+
if (message.stringValue !== undefined) {
|
|
15149
|
+
obj.stringValue = message.stringValue;
|
|
15150
|
+
}
|
|
14627
15151
|
return obj;
|
|
14628
15152
|
},
|
|
14629
15153
|
create(base) {
|
|
14630
15154
|
return exports.AdditionalInformation.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
14631
15155
|
},
|
|
14632
15156
|
fromPartial(object) {
|
|
14633
|
-
var _a, _b;
|
|
15157
|
+
var _a, _b, _c, _d;
|
|
14634
15158
|
const message = createBaseAdditionalInformation();
|
|
14635
15159
|
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : 0;
|
|
14636
15160
|
message.val = (_b = object.val) !== null && _b !== void 0 ? _b : new Uint8Array(0);
|
|
15161
|
+
message.uint32Value = (_c = object.uint32Value) !== null && _c !== void 0 ? _c : undefined;
|
|
15162
|
+
message.stringValue = (_d = object.stringValue) !== null && _d !== void 0 ? _d : undefined;
|
|
14637
15163
|
return message;
|
|
14638
15164
|
},
|
|
14639
15165
|
};
|