@fatehan/tsrp 1.5.0 → 1.5.4

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.
Files changed (82) hide show
  1. package/dist/fatehan/activities/workflow.d.ts +8 -0
  2. package/dist/fatehan/activities/workflow.d.ts.map +1 -1
  3. package/dist/fatehan/activities/workflow.js +66 -3
  4. package/dist/fatehan/apis/client.d.ts +1 -1
  5. package/dist/fatehan/apis/client.js +3 -3
  6. package/dist/fatehan/areas/area.js +2 -2
  7. package/dist/fatehan/devices/devices.d.ts.map +1 -1
  8. package/dist/fatehan/devices/devices.js +4 -4
  9. package/dist/fatehan/devices/maintenance.js +2 -2
  10. package/dist/fatehan/financial/financial.js +2 -2
  11. package/dist/fatehan/google/protobuf/descriptor.d.ts +13 -1
  12. package/dist/fatehan/google/protobuf/descriptor.d.ts.map +1 -1
  13. package/dist/fatehan/google/protobuf/descriptor.js +19 -12
  14. package/dist/fatehan/google/protobuf/duration.js +2 -2
  15. package/dist/fatehan/google/protobuf/field_mask.d.ts +16 -18
  16. package/dist/fatehan/google/protobuf/field_mask.d.ts.map +1 -1
  17. package/dist/fatehan/google/protobuf/field_mask.js +2 -2
  18. package/dist/fatehan/google/protobuf/timestamp.d.ts +9 -8
  19. package/dist/fatehan/google/protobuf/timestamp.d.ts.map +1 -1
  20. package/dist/fatehan/google/protobuf/timestamp.js +2 -2
  21. package/dist/fatehan/identities/authentication.d.ts +82 -6
  22. package/dist/fatehan/identities/authentication.d.ts.map +1 -1
  23. package/dist/fatehan/identities/authentication.js +575 -47
  24. package/dist/fatehan/identities/identities.d.ts +153 -192
  25. package/dist/fatehan/identities/identities.d.ts.map +1 -1
  26. package/dist/fatehan/identities/identities.js +155 -194
  27. package/dist/fatehan/models/fusion.js +2 -2
  28. package/dist/fatehan/models/models.d.ts.map +1 -1
  29. package/dist/fatehan/models/models.js +4 -4
  30. package/dist/fatehan/notifies/notify.d.ts.map +1 -1
  31. package/dist/fatehan/notifies/notify.js +13 -13
  32. package/dist/fatehan/packets/{messages.d.ts → commands.d.ts} +58 -1
  33. package/dist/fatehan/packets/commands.d.ts.map +1 -0
  34. package/dist/fatehan/packets/{messages.js → commands.js} +588 -3
  35. package/dist/fatehan/packets/dataModel.d.ts +188 -127
  36. package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
  37. package/dist/fatehan/packets/dataModel.js +1642 -1006
  38. package/dist/fatehan/packets/dataModule.d.ts.map +1 -1
  39. package/dist/fatehan/packets/dataModule.js +11 -9
  40. package/dist/fatehan/packets/forge.d.ts +117 -0
  41. package/dist/fatehan/packets/forge.d.ts.map +1 -0
  42. package/dist/fatehan/packets/forge.js +1079 -0
  43. package/dist/fatehan/services/api.d.ts +812 -26
  44. package/dist/fatehan/services/api.d.ts.map +1 -1
  45. package/dist/fatehan/services/api.js +8446 -252
  46. package/dist/fatehan/services/repositories.js +2 -2
  47. package/dist/fatehan/stream/stream.d.ts +224 -0
  48. package/dist/fatehan/stream/stream.d.ts.map +1 -0
  49. package/dist/fatehan/stream/stream.js +1416 -0
  50. package/dist/fatehan/trips/trip.d.ts +159 -159
  51. package/dist/fatehan/trips/trip.d.ts.map +1 -1
  52. package/dist/fatehan/trips/trip.js +189 -189
  53. package/dist/fatehan/utils/buf/validate/validate.d.ts.map +1 -1
  54. package/dist/fatehan/utils/buf/validate/validate.js +42 -122
  55. package/dist/services.d.ts +65 -0
  56. package/dist/services.d.ts.map +1 -0
  57. package/dist/services.js +205 -0
  58. package/dist/system.io.js +5 -5
  59. package/package.json +12 -12
  60. package/dist/api.d.ts +0 -36
  61. package/dist/api.d.ts.map +0 -1
  62. package/dist/api.js +0 -146
  63. package/dist/fatehan/activities/camera.d.ts +0 -95
  64. package/dist/fatehan/activities/camera.d.ts.map +0 -1
  65. package/dist/fatehan/activities/camera.js +0 -811
  66. package/dist/fatehan/google/protobuf/any.d.ts +0 -146
  67. package/dist/fatehan/google/protobuf/any.d.ts.map +0 -1
  68. package/dist/fatehan/google/protobuf/any.js +0 -104
  69. package/dist/fatehan/google/status.d.ts +0 -53
  70. package/dist/fatehan/google/status.d.ts.map +0 -1
  71. package/dist/fatehan/google/status.js +0 -95
  72. package/dist/fatehan/packets/messages.d.ts.map +0 -1
  73. package/dist/fatehan/reports/report.d.ts +0 -830
  74. package/dist/fatehan/reports/report.d.ts.map +0 -1
  75. package/dist/fatehan/reports/report.js +0 -8380
  76. package/dist/index.d.ts +0 -2
  77. package/dist/index.d.ts.map +0 -1
  78. package/dist/index.js +0 -1
  79. package/dist/report.d.ts +0 -29
  80. package/dist/report.d.ts.map +0 -1
  81. package/dist/report.js +0 -139
  82. package/readme.md +0 -26
@@ -1,13 +1,14 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.7.5
4
- // protoc v6.31.1
3
+ // protoc-gen-ts_proto v2.11.6
4
+ // protoc v7.34.1
5
5
  // source: packets/dataModel.proto
6
6
  /* eslint-disable */
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
8
  import Long from "long";
9
9
  import { Timestamp } from "../google/protobuf/timestamp";
10
10
  import { DataModule } from "./dataModule";
11
+ import { ForgeException, JTTLiveRequest, JTTLiveStatusUpdate, JTTLiveUpdate, JTTPlaybackRequest, JTTPlaybackUpdate, JTTQueryFileRequest, JTTQueryFileResponse, RawStingWithProps, RequestAlertMediaUpload, } from "./forge";
11
12
  export const protobufPackage = "com.fatehan.packets";
12
13
  export var Alert;
13
14
  (function (Alert) {
@@ -185,58 +186,76 @@ export var Alert;
185
186
  Alert[Alert["INVALID_ALERT"] = 404] = "INVALID_ALERT";
186
187
  /** COBAN_DOOR_OPEN - todo :: must be remove after shutdown of the fusion */
187
188
  Alert[Alert["COBAN_DOOR_OPEN"] = 405] = "COBAN_DOOR_OPEN";
189
+ Alert[Alert["LOCK_ROPE_CUT"] = 406] = "LOCK_ROPE_CUT";
190
+ Alert[Alert["REQUIRES_ACK"] = 407] = "REQUIRES_ACK";
191
+ Alert[Alert["LOCK_ROPE_INSERTED"] = 408] = "LOCK_ROPE_INSERTED";
192
+ Alert[Alert["MOTOR_LOCKED"] = 409] = "MOTOR_LOCKED";
193
+ Alert[Alert["LONG_TIME_UNLOCK"] = 410] = "LONG_TIME_UNLOCK";
194
+ Alert[Alert["WRONG_PASSWORD"] = 411] = "WRONG_PASSWORD";
195
+ Alert[Alert["ILLEGAL_RFID"] = 412] = "ILLEGAL_RFID";
196
+ Alert[Alert["COVER_CLOSED"] = 413] = "COVER_CLOSED";
197
+ Alert[Alert["MOTOR_STUCK"] = 414] = "MOTOR_STUCK";
198
+ Alert[Alert["RFID_UNLOCK"] = 415] = "RFID_UNLOCK";
199
+ Alert[Alert["RFID_BINDING"] = 416] = "RFID_BINDING";
200
+ Alert[Alert["PASSWORD_STATIC_UNLOCK"] = 417] = "PASSWORD_STATIC_UNLOCK";
201
+ Alert[Alert["DEVICE_LOCKED"] = 418] = "DEVICE_LOCKED";
202
+ Alert[Alert["PASSWORD_DYNAMIC_UNLOCK"] = 419] = "PASSWORD_DYNAMIC_UNLOCK";
203
+ Alert[Alert["BLUETOOTH_UNLOCK"] = 420] = "BLUETOOTH_UNLOCK";
204
+ Alert[Alert["LOCK_ROPE_PULL_OUT"] = 421] = "LOCK_ROPE_PULL_OUT";
188
205
  Alert[Alert["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
189
206
  })(Alert || (Alert = {}));
190
207
  export var Protocol;
191
208
  (function (Protocol) {
192
- Protocol[Protocol["PROTOCOL_UNSPECIFIED"] = 0] = "PROTOCOL_UNSPECIFIED";
193
- Protocol[Protocol["PROTOCOL_COBAN"] = 1] = "PROTOCOL_COBAN";
194
- Protocol[Protocol["PROTOCOL_COBAN_WR"] = 2] = "PROTOCOL_COBAN_WR";
195
- Protocol[Protocol["PROTOCOL_ACCURATE"] = 3] = "PROTOCOL_ACCURATE";
196
- Protocol[Protocol["PROTOCOL_A9"] = 4] = "PROTOCOL_A9";
197
- Protocol[Protocol["PROTOCOL_CONCOX"] = 5] = "PROTOCOL_CONCOX";
198
- Protocol[Protocol["PROTOCOL_DOLPHIN"] = 6] = "PROTOCOL_DOLPHIN";
199
- Protocol[Protocol["PROTOCOL_GT07"] = 7] = "PROTOCOL_GT07";
200
- Protocol[Protocol["PROTOCOL_JTT808"] = 8] = "PROTOCOL_JTT808";
201
- Protocol[Protocol["PROTOCOL_R16"] = 9] = "PROTOCOL_R16";
202
- Protocol[Protocol["PROTOCOL_R31"] = 10] = "PROTOCOL_R31";
203
- Protocol[Protocol["PROTOCOL_R56"] = 11] = "PROTOCOL_R56";
204
- Protocol[Protocol["PROTOCOL_S11"] = 12] = "PROTOCOL_S11";
205
- Protocol[Protocol["PROTOCOL_S15"] = 13] = "PROTOCOL_S15";
206
- Protocol[Protocol["PROTOCOL_SAYEH"] = 14] = "PROTOCOL_SAYEH";
207
- Protocol[Protocol["PROTOCOL_SINOTRACK"] = 15] = "PROTOCOL_SINOTRACK";
208
- Protocol[Protocol["PROTOCOL_TELTONIKA"] = 16] = "PROTOCOL_TELTONIKA";
209
- Protocol[Protocol["PROTOCOL_TOPIN"] = 17] = "PROTOCOL_TOPIN";
210
- Protocol[Protocol["PROTOCOL_WEFINDER"] = 18] = "PROTOCOL_WEFINDER";
211
- Protocol[Protocol["PROTOCOL_RUBTELLA"] = 19] = "PROTOCOL_RUBTELLA";
212
- Protocol[Protocol["PROTOCOL_LANDER"] = 20] = "PROTOCOL_LANDER";
213
- Protocol[Protocol["PROTOCOL_RAMMA"] = 21] = "PROTOCOL_RAMMA";
214
- Protocol[Protocol["PROTOCOL_SINERE"] = 22] = "PROTOCOL_SINERE";
215
- Protocol[Protocol["PROTOCOL_GALLO_SKY"] = 23] = "PROTOCOL_GALLO_SKY";
216
- Protocol[Protocol["PROTOCOL_GITINAMA"] = 24] = "PROTOCOL_GITINAMA";
217
- Protocol[Protocol["PROTOCOL_BCE"] = 25] = "PROTOCOL_BCE";
218
- Protocol[Protocol["PROTOCOL_TOP_FLY_TECH"] = 26] = "PROTOCOL_TOP_FLY_TECH";
219
- Protocol[Protocol["PROTOCOL_QUICK"] = 27] = "PROTOCOL_QUICK";
220
- Protocol[Protocol["PROTOCOL_RADSHID"] = 28] = "PROTOCOL_RADSHID";
221
- Protocol[Protocol["PROTOCOL_MEITRACK"] = 29] = "PROTOCOL_MEITRACK";
222
- Protocol[Protocol["PROTOCOL_GT30X"] = 30] = "PROTOCOL_GT30X";
223
- Protocol[Protocol["PROTOCOL_WP"] = 31] = "PROTOCOL_WP";
224
- Protocol[Protocol["PROTOCOL_SR03"] = 32] = "PROTOCOL_SR03";
225
- Protocol[Protocol["PROTOCOL_TELTONIKA650"] = 33] = "PROTOCOL_TELTONIKA650";
226
- Protocol[Protocol["PROTOCOL_SR04B"] = 34] = "PROTOCOL_SR04B";
227
- Protocol[Protocol["PROTOCOL_NAV_TELECOM"] = 35] = "PROTOCOL_NAV_TELECOM";
228
- Protocol[Protocol["PROTOCOL_VTRACK2"] = 36] = "PROTOCOL_VTRACK2";
229
- Protocol[Protocol["PROTOCOL_ET06L"] = 37] = "PROTOCOL_ET06L";
230
- Protocol[Protocol["PROTOCOL_ATN"] = 38] = "PROTOCOL_ATN";
231
- Protocol[Protocol["PROTOCOL_ARIO_AVL"] = 39] = "PROTOCOL_ARIO_AVL";
232
- Protocol[Protocol["PROTOCOL_HAMIGPS"] = 40] = "PROTOCOL_HAMIGPS";
233
- Protocol[Protocol["PROTOCOL_RUPTELLA"] = 41] = "PROTOCOL_RUPTELLA";
234
- Protocol[Protocol["PROTOCOL_ZINGJONG"] = 42] = "PROTOCOL_ZINGJONG";
235
- Protocol[Protocol["PROTOCOL_RADSHID_OLD"] = 43] = "PROTOCOL_RADSHID_OLD";
236
- Protocol[Protocol["PROTOCOL_COBAN_2025"] = 44] = "PROTOCOL_COBAN_2025";
237
- Protocol[Protocol["PROTOCOL_S200"] = 45] = "PROTOCOL_S200";
238
- Protocol[Protocol["PROTOCOL_S250"] = 46] = "PROTOCOL_S250";
239
- Protocol[Protocol["PROTOCOL_SR17"] = 47] = "PROTOCOL_SR17";
209
+ Protocol[Protocol["UNKNOWN"] = 0] = "UNKNOWN";
210
+ Protocol[Protocol["COBAN"] = 1] = "COBAN";
211
+ Protocol[Protocol["COBAN_WR"] = 2] = "COBAN_WR";
212
+ Protocol[Protocol["ACCURATE"] = 3] = "ACCURATE";
213
+ Protocol[Protocol["A9"] = 4] = "A9";
214
+ Protocol[Protocol["CONCOX"] = 5] = "CONCOX";
215
+ Protocol[Protocol["DOLPHIN"] = 6] = "DOLPHIN";
216
+ Protocol[Protocol["GT07"] = 7] = "GT07";
217
+ Protocol[Protocol["JTT808"] = 8] = "JTT808";
218
+ Protocol[Protocol["R16"] = 9] = "R16";
219
+ Protocol[Protocol["R31"] = 10] = "R31";
220
+ Protocol[Protocol["R56"] = 11] = "R56";
221
+ Protocol[Protocol["S11"] = 12] = "S11";
222
+ Protocol[Protocol["S15"] = 13] = "S15";
223
+ Protocol[Protocol["SAYEH"] = 14] = "SAYEH";
224
+ Protocol[Protocol["SINOTRACK"] = 15] = "SINOTRACK";
225
+ Protocol[Protocol["TELTONIKA"] = 16] = "TELTONIKA";
226
+ Protocol[Protocol["TOPIN"] = 17] = "TOPIN";
227
+ Protocol[Protocol["WEFINDER"] = 18] = "WEFINDER";
228
+ Protocol[Protocol["RUBTELLA"] = 19] = "RUBTELLA";
229
+ Protocol[Protocol["LANDER"] = 20] = "LANDER";
230
+ Protocol[Protocol["RAMMA"] = 21] = "RAMMA";
231
+ Protocol[Protocol["SINERE"] = 22] = "SINERE";
232
+ Protocol[Protocol["GALLO_SKY"] = 23] = "GALLO_SKY";
233
+ Protocol[Protocol["GITINAMA"] = 24] = "GITINAMA";
234
+ Protocol[Protocol["BCE"] = 25] = "BCE";
235
+ Protocol[Protocol["TOP_FLY_TECH"] = 26] = "TOP_FLY_TECH";
236
+ Protocol[Protocol["QUICK"] = 27] = "QUICK";
237
+ Protocol[Protocol["RADSHID"] = 28] = "RADSHID";
238
+ Protocol[Protocol["MEITRACK"] = 29] = "MEITRACK";
239
+ Protocol[Protocol["GT30X"] = 30] = "GT30X";
240
+ Protocol[Protocol["WP"] = 31] = "WP";
241
+ Protocol[Protocol["SR03"] = 32] = "SR03";
242
+ Protocol[Protocol["TELTONIKA650"] = 33] = "TELTONIKA650";
243
+ Protocol[Protocol["SR04B"] = 34] = "SR04B";
244
+ Protocol[Protocol["NAV_TELECOM"] = 35] = "NAV_TELECOM";
245
+ Protocol[Protocol["VTRACK2"] = 36] = "VTRACK2";
246
+ Protocol[Protocol["ET06L"] = 37] = "ET06L";
247
+ Protocol[Protocol["ATN"] = 38] = "ATN";
248
+ Protocol[Protocol["ARIO_AVL"] = 39] = "ARIO_AVL";
249
+ Protocol[Protocol["HAMIGPS"] = 40] = "HAMIGPS";
250
+ Protocol[Protocol["RUPTELLA"] = 41] = "RUPTELLA";
251
+ Protocol[Protocol["ZINGJONG"] = 42] = "ZINGJONG";
252
+ Protocol[Protocol["RADSHID_OLD"] = 43] = "RADSHID_OLD";
253
+ Protocol[Protocol["COBAN_2025"] = 44] = "COBAN_2025";
254
+ Protocol[Protocol["S200"] = 45] = "S200";
255
+ Protocol[Protocol["S250"] = 46] = "S250";
256
+ Protocol[Protocol["SR17"] = 47] = "SR17";
257
+ Protocol[Protocol["ARIO_4G_AVL"] = 48] = "ARIO_4G_AVL";
258
+ Protocol[Protocol["JT701"] = 49] = "JT701";
240
259
  Protocol[Protocol["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
241
260
  })(Protocol || (Protocol = {}));
242
261
  export var FileType;
@@ -299,45 +318,30 @@ export var Packet_Type;
299
318
  Packet_Type[Packet_Type["EXCEPTION"] = 6] = "EXCEPTION";
300
319
  Packet_Type[Packet_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
301
320
  })(Packet_Type || (Packet_Type = {}));
321
+ /** Deprecated: Use custom oneof instead */
302
322
  export var Packet_CustomPacketType;
303
323
  (function (Packet_CustomPacketType) {
324
+ /** CUSTOM_PACKET_TYPE_UNSPECIFIED - Deprecated: Use custom oneof instead */
304
325
  Packet_CustomPacketType[Packet_CustomPacketType["CUSTOM_PACKET_TYPE_UNSPECIFIED"] = 0] = "CUSTOM_PACKET_TYPE_UNSPECIFIED";
326
+ /** MULTIMEDIA_EVENT_INFORMATION_UPLOADING - Deprecated: Use custom oneof instead */
305
327
  Packet_CustomPacketType[Packet_CustomPacketType["MULTIMEDIA_EVENT_INFORMATION_UPLOADING"] = 1] = "MULTIMEDIA_EVENT_INFORMATION_UPLOADING";
306
- Packet_CustomPacketType[Packet_CustomPacketType["MULTIMEDIA_DATA_UPLOAD"] = 3] = "MULTIMEDIA_DATA_UPLOAD";
307
- Packet_CustomPacketType[Packet_CustomPacketType["JTT808_SIGNALING_DATA_MESSAGE1210"] = 4] = "JTT808_SIGNALING_DATA_MESSAGE1210";
308
- Packet_CustomPacketType[Packet_CustomPacketType["JTT808_SIGNALING_DATA_MESSAGE1211"] = 5] = "JTT808_SIGNALING_DATA_MESSAGE1211";
309
- Packet_CustomPacketType[Packet_CustomPacketType["JTT808_SIGNALING_DATA_MESSAGE1212"] = 6] = "JTT808_SIGNALING_DATA_MESSAGE1212";
310
- Packet_CustomPacketType[Packet_CustomPacketType["JTT808_MEDIA_RETRIEVAL0802"] = 11] = "JTT808_MEDIA_RETRIEVAL0802";
328
+ /** CONCOX_LBS_INFORMATION - Deprecated: Use custom oneof instead */
311
329
  Packet_CustomPacketType[Packet_CustomPacketType["CONCOX_LBS_INFORMATION"] = 7] = "CONCOX_LBS_INFORMATION";
330
+ /** CONCOX_IMSI_NUMBER - Deprecated: Use custom oneof instead */
312
331
  Packet_CustomPacketType[Packet_CustomPacketType["CONCOX_IMSI_NUMBER"] = 8] = "CONCOX_IMSI_NUMBER";
332
+ /** CONCOX_ICCID_NUMBER - Deprecated: Use custom oneof instead */
313
333
  Packet_CustomPacketType[Packet_CustomPacketType["CONCOX_ICCID_NUMBER"] = 9] = "CONCOX_ICCID_NUMBER";
334
+ /** CONCOX_RECORDING_PROTOCOL_PACKAGE0X8D - Deprecated: Use custom oneof instead */
314
335
  Packet_CustomPacketType[Packet_CustomPacketType["CONCOX_RECORDING_PROTOCOL_PACKAGE0X8D"] = 10] = "CONCOX_RECORDING_PROTOCOL_PACKAGE0X8D";
336
+ /** DOLPHIN_BUFFER_PAYLOAD - Deprecated: Use custom oneof instead */
315
337
  Packet_CustomPacketType[Packet_CustomPacketType["DOLPHIN_BUFFER_PAYLOAD"] = 12] = "DOLPHIN_BUFFER_PAYLOAD";
338
+ /** DOLPHIN_NEW_BUFFER - Deprecated: Use custom oneof instead */
316
339
  Packet_CustomPacketType[Packet_CustomPacketType["DOLPHIN_NEW_BUFFER"] = 13] = "DOLPHIN_NEW_BUFFER";
317
340
  Packet_CustomPacketType[Packet_CustomPacketType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
318
341
  })(Packet_CustomPacketType || (Packet_CustomPacketType = {}));
319
- export var Packet_AnswerType;
320
- (function (Packet_AnswerType) {
321
- Packet_AnswerType[Packet_AnswerType["BYTE"] = 0] = "BYTE";
322
- Packet_AnswerType[Packet_AnswerType["STRING"] = 1] = "STRING";
323
- Packet_AnswerType[Packet_AnswerType["INT"] = 2] = "INT";
324
- Packet_AnswerType[Packet_AnswerType["TT10780X0001"] = 3] = "TT10780X0001";
325
- Packet_AnswerType[Packet_AnswerType["CONCOX_LIKE_R31"] = 4] = "CONCOX_LIKE_R31";
326
- Packet_AnswerType[Packet_AnswerType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
327
- })(Packet_AnswerType || (Packet_AnswerType = {}));
328
342
  export var AdditionalInformation_Key;
329
343
  (function (AdditionalInformation_Key) {
330
344
  AdditionalInformation_Key[AdditionalInformation_Key["KEY_UNSPECIFIED"] = 0] = "KEY_UNSPECIFIED";
331
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_ALARM_ID"] = 1] = "JTT808_ALARM_ID";
332
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_SPEED"] = 2] = "JTT808_SPEED";
333
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_LATITUDE"] = 3] = "JTT808_LATITUDE";
334
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_LONGITUDE"] = 4] = "JTT808_LONGITUDE";
335
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_ALTITUDE"] = 5] = "JTT808_ALTITUDE";
336
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_GPS_TIME"] = 6] = "JTT808_GPS_TIME";
337
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_ALARM_TERMINAL_ID"] = 7] = "JTT808_ALARM_TERMINAL_ID";
338
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_ALARM_TIME"] = 8] = "JTT808_ALARM_TIME";
339
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_SERIAL_NUMBER"] = 9] = "JTT808_SERIAL_NUMBER";
340
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_ATTACHMENT"] = 10] = "JTT808_ATTACHMENT";
341
345
  AdditionalInformation_Key[AdditionalInformation_Key["JTT808_ALARM_TYPE"] = 13] = "JTT808_ALARM_TYPE";
342
346
  AdditionalInformation_Key[AdditionalInformation_Key["DOLPHIN_TERMINAL_ID"] = 14] = "DOLPHIN_TERMINAL_ID";
343
347
  AdditionalInformation_Key[AdditionalInformation_Key["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
@@ -471,6 +475,8 @@ function createBaseIoElement() {
471
475
  connectivityQuality: undefined,
472
476
  totalDrivingTime: undefined,
473
477
  maxSpeedGps: undefined,
478
+ deviceLocked: undefined,
479
+ dynamicPassword: undefined,
474
480
  };
475
481
  }
476
482
  export const IoElement = {
@@ -793,6 +799,12 @@ export const IoElement = {
793
799
  if (message.maxSpeedGps !== undefined) {
794
800
  writer.uint32(848).uint32(message.maxSpeedGps);
795
801
  }
802
+ if (message.deviceLocked !== undefined) {
803
+ writer.uint32(856).bool(message.deviceLocked);
804
+ }
805
+ if (message.dynamicPassword !== undefined) {
806
+ writer.uint32(866).string(message.dynamicPassword);
807
+ }
796
808
  return writer;
797
809
  },
798
810
  decode(input, length) {
@@ -1544,6 +1556,20 @@ export const IoElement = {
1544
1556
  message.maxSpeedGps = reader.uint32();
1545
1557
  continue;
1546
1558
  }
1559
+ case 107: {
1560
+ if (tag !== 856) {
1561
+ break;
1562
+ }
1563
+ message.deviceLocked = reader.bool();
1564
+ continue;
1565
+ }
1566
+ case 108: {
1567
+ if (tag !== 866) {
1568
+ break;
1569
+ }
1570
+ message.dynamicPassword = reader.string();
1571
+ continue;
1572
+ }
1547
1573
  }
1548
1574
  if ((tag & 7) === 4 || tag === 0) {
1549
1575
  break;
@@ -1677,6 +1703,8 @@ export const IoElement = {
1677
1703
  message.connectivityQuality = object.connectivityQuality ?? undefined;
1678
1704
  message.totalDrivingTime = object.totalDrivingTime ?? undefined;
1679
1705
  message.maxSpeedGps = object.maxSpeedGps ?? undefined;
1706
+ message.deviceLocked = object.deviceLocked ?? undefined;
1707
+ message.dynamicPassword = object.dynamicPassword ?? undefined;
1680
1708
  return message;
1681
1709
  },
1682
1710
  };
@@ -11162,7 +11190,7 @@ export const Compact = {
11162
11190
  if (message.modules !== undefined) {
11163
11191
  DataModule.encode(message.modules, writer.uint32(114).fork()).join();
11164
11192
  }
11165
- Object.entries(message.alertValues).forEach(([key, value]) => {
11193
+ globalThis.Object.entries(message.alertValues).forEach(([key, value]) => {
11166
11194
  Compact_AlertValuesEntry.encode({ key: key, value }, writer.uint32(66).fork()).join();
11167
11195
  });
11168
11196
  if (message.adas !== undefined) {
@@ -11171,10 +11199,10 @@ export const Compact = {
11171
11199
  if (message.fms !== undefined) {
11172
11200
  FmsElement.encode(message.fms, writer.uint32(82).fork()).join();
11173
11201
  }
11174
- Object.entries(message.unknownIos).forEach(([key, value]) => {
11202
+ globalThis.Object.entries(message.unknownIos).forEach(([key, value]) => {
11175
11203
  Compact_UnknownIosEntry.encode({ key: key, value }, writer.uint32(90).fork()).join();
11176
11204
  });
11177
- Object.entries(message.customIos).forEach(([key, value]) => {
11205
+ globalThis.Object.entries(message.customIos).forEach(([key, value]) => {
11178
11206
  Compact_CustomIosEntry.encode({ key: key, value }, writer.uint32(106).fork()).join();
11179
11207
  });
11180
11208
  return writer;
@@ -11338,7 +11366,7 @@ export const Compact = {
11338
11366
  message.modules = (object.modules !== undefined && object.modules !== null)
11339
11367
  ? DataModule.fromPartial(object.modules)
11340
11368
  : undefined;
11341
- message.alertValues = Object.entries(object.alertValues ?? {}).reduce((acc, [key, value]) => {
11369
+ message.alertValues = globalThis.Object.entries(object.alertValues ?? {}).reduce((acc, [key, value]) => {
11342
11370
  if (value !== undefined) {
11343
11371
  acc[globalThis.Number(key)] = Long.fromValue(value);
11344
11372
  }
@@ -11346,13 +11374,13 @@ export const Compact = {
11346
11374
  }, {});
11347
11375
  message.adas = (object.adas !== undefined && object.adas !== null) ? ADAS.fromPartial(object.adas) : undefined;
11348
11376
  message.fms = (object.fms !== undefined && object.fms !== null) ? FmsElement.fromPartial(object.fms) : undefined;
11349
- message.unknownIos = Object.entries(object.unknownIos ?? {}).reduce((acc, [key, value]) => {
11377
+ message.unknownIos = globalThis.Object.entries(object.unknownIos ?? {}).reduce((acc, [key, value]) => {
11350
11378
  if (value !== undefined) {
11351
11379
  acc[globalThis.Number(key)] = value;
11352
11380
  }
11353
11381
  return acc;
11354
11382
  }, {});
11355
- message.customIos = Object.entries(object.customIos ?? {}).reduce((acc, [key, value]) => {
11383
+ message.customIos = globalThis.Object.entries(object.customIos ?? {}).reduce((acc, [key, value]) => {
11356
11384
  if (value !== undefined) {
11357
11385
  acc[globalThis.Number(key)] = value;
11358
11386
  }
@@ -11852,14 +11880,25 @@ function createBasePacket() {
11852
11880
  data: [],
11853
11881
  authorize: undefined,
11854
11882
  response: undefined,
11855
- answer: undefined,
11856
11883
  customType: 0,
11857
11884
  customPayload: undefined,
11858
- answerType: 0,
11885
+ answer: undefined,
11859
11886
  additional: [],
11860
11887
  concox: undefined,
11861
11888
  teltonika: undefined,
11889
+ jtt808Reply: undefined,
11890
+ joinTechReply: undefined,
11891
+ rawString: undefined,
11892
+ rawBinary: undefined,
11862
11893
  stream: undefined,
11894
+ forge: undefined,
11895
+ jttSignaling1210: undefined,
11896
+ jttSignaling1211: undefined,
11897
+ jttSignaling1212: undefined,
11898
+ jttEventMediaInfo: undefined,
11899
+ jttEventMediaData: undefined,
11900
+ jttAlarmData: undefined,
11901
+ jttMedia: undefined,
11863
11902
  errorMessage: undefined,
11864
11903
  };
11865
11904
  }
@@ -11877,17 +11916,14 @@ export const Packet = {
11877
11916
  if (message.response !== undefined) {
11878
11917
  writer.uint32(34).bytes(message.response);
11879
11918
  }
11880
- if (message.answer !== undefined) {
11881
- writer.uint32(42).bytes(message.answer);
11882
- }
11883
11919
  if (message.customType !== 0) {
11884
11920
  writer.uint32(48).int32(message.customType);
11885
11921
  }
11886
11922
  if (message.customPayload !== undefined) {
11887
11923
  writer.uint32(58).bytes(message.customPayload);
11888
11924
  }
11889
- if (message.answerType !== 0) {
11890
- writer.uint32(64).int32(message.answerType);
11925
+ if (message.answer !== undefined) {
11926
+ writer.uint32(42).bytes(message.answer);
11891
11927
  }
11892
11928
  for (const v of message.additional) {
11893
11929
  AdditionalInformation.encode(v, writer.uint32(74).fork()).join();
@@ -11898,9 +11934,45 @@ export const Packet = {
11898
11934
  if (message.teltonika !== undefined) {
11899
11935
  ReplyTeltonika.encode(message.teltonika, writer.uint32(98).fork()).join();
11900
11936
  }
11937
+ if (message.jtt808Reply !== undefined) {
11938
+ JTT808Reply.encode(message.jtt808Reply, writer.uint32(114).fork()).join();
11939
+ }
11940
+ if (message.joinTechReply !== undefined) {
11941
+ ReplyJoinTech.encode(message.joinTechReply, writer.uint32(194).fork()).join();
11942
+ }
11943
+ if (message.rawString !== undefined) {
11944
+ writer.uint32(178).string(message.rawString);
11945
+ }
11946
+ if (message.rawBinary !== undefined) {
11947
+ writer.uint32(186).bytes(message.rawBinary);
11948
+ }
11901
11949
  if (message.stream !== undefined) {
11902
11950
  Stream.encode(message.stream, writer.uint32(90).fork()).join();
11903
11951
  }
11952
+ if (message.forge !== undefined) {
11953
+ ForgeDecoder.encode(message.forge, writer.uint32(106).fork()).join();
11954
+ }
11955
+ if (message.jttSignaling1210 !== undefined) {
11956
+ JTT808SignalingDataMessage1210.encode(message.jttSignaling1210, writer.uint32(122).fork()).join();
11957
+ }
11958
+ if (message.jttSignaling1211 !== undefined) {
11959
+ JTT808SignalingDataMessage1211.encode(message.jttSignaling1211, writer.uint32(130).fork()).join();
11960
+ }
11961
+ if (message.jttSignaling1212 !== undefined) {
11962
+ JTT808SignalingDataMessage1212.encode(message.jttSignaling1212, writer.uint32(138).fork()).join();
11963
+ }
11964
+ if (message.jttEventMediaInfo !== undefined) {
11965
+ JTT808EventMediaInfoUpload.encode(message.jttEventMediaInfo, writer.uint32(146).fork()).join();
11966
+ }
11967
+ if (message.jttEventMediaData !== undefined) {
11968
+ JTT808EventMediaDataUpload.encode(message.jttEventMediaData, writer.uint32(154).fork()).join();
11969
+ }
11970
+ if (message.jttAlarmData !== undefined) {
11971
+ JTT808AlarmData.encode(message.jttAlarmData, writer.uint32(162).fork()).join();
11972
+ }
11973
+ if (message.jttMedia !== undefined) {
11974
+ JTT808MediaRetrieval0802.encode(message.jttMedia, writer.uint32(170).fork()).join();
11975
+ }
11904
11976
  if (message.errorMessage !== undefined) {
11905
11977
  writer.uint32(250).string(message.errorMessage);
11906
11978
  }
@@ -11941,13 +12013,6 @@ export const Packet = {
11941
12013
  message.response = reader.bytes();
11942
12014
  continue;
11943
12015
  }
11944
- case 5: {
11945
- if (tag !== 42) {
11946
- break;
11947
- }
11948
- message.answer = reader.bytes();
11949
- continue;
11950
- }
11951
12016
  case 6: {
11952
12017
  if (tag !== 48) {
11953
12018
  break;
@@ -11962,11 +12027,11 @@ export const Packet = {
11962
12027
  message.customPayload = reader.bytes();
11963
12028
  continue;
11964
12029
  }
11965
- case 8: {
11966
- if (tag !== 64) {
12030
+ case 5: {
12031
+ if (tag !== 42) {
11967
12032
  break;
11968
12033
  }
11969
- message.answerType = reader.int32();
12034
+ message.answer = reader.bytes();
11970
12035
  continue;
11971
12036
  }
11972
12037
  case 9: {
@@ -11990,6 +12055,34 @@ export const Packet = {
11990
12055
  message.teltonika = ReplyTeltonika.decode(reader, reader.uint32());
11991
12056
  continue;
11992
12057
  }
12058
+ case 14: {
12059
+ if (tag !== 114) {
12060
+ break;
12061
+ }
12062
+ message.jtt808Reply = JTT808Reply.decode(reader, reader.uint32());
12063
+ continue;
12064
+ }
12065
+ case 24: {
12066
+ if (tag !== 194) {
12067
+ break;
12068
+ }
12069
+ message.joinTechReply = ReplyJoinTech.decode(reader, reader.uint32());
12070
+ continue;
12071
+ }
12072
+ case 22: {
12073
+ if (tag !== 178) {
12074
+ break;
12075
+ }
12076
+ message.rawString = reader.string();
12077
+ continue;
12078
+ }
12079
+ case 23: {
12080
+ if (tag !== 186) {
12081
+ break;
12082
+ }
12083
+ message.rawBinary = reader.bytes();
12084
+ continue;
12085
+ }
11993
12086
  case 11: {
11994
12087
  if (tag !== 90) {
11995
12088
  break;
@@ -11997,6 +12090,62 @@ export const Packet = {
11997
12090
  message.stream = Stream.decode(reader, reader.uint32());
11998
12091
  continue;
11999
12092
  }
12093
+ case 13: {
12094
+ if (tag !== 106) {
12095
+ break;
12096
+ }
12097
+ message.forge = ForgeDecoder.decode(reader, reader.uint32());
12098
+ continue;
12099
+ }
12100
+ case 15: {
12101
+ if (tag !== 122) {
12102
+ break;
12103
+ }
12104
+ message.jttSignaling1210 = JTT808SignalingDataMessage1210.decode(reader, reader.uint32());
12105
+ continue;
12106
+ }
12107
+ case 16: {
12108
+ if (tag !== 130) {
12109
+ break;
12110
+ }
12111
+ message.jttSignaling1211 = JTT808SignalingDataMessage1211.decode(reader, reader.uint32());
12112
+ continue;
12113
+ }
12114
+ case 17: {
12115
+ if (tag !== 138) {
12116
+ break;
12117
+ }
12118
+ message.jttSignaling1212 = JTT808SignalingDataMessage1212.decode(reader, reader.uint32());
12119
+ continue;
12120
+ }
12121
+ case 18: {
12122
+ if (tag !== 146) {
12123
+ break;
12124
+ }
12125
+ message.jttEventMediaInfo = JTT808EventMediaInfoUpload.decode(reader, reader.uint32());
12126
+ continue;
12127
+ }
12128
+ case 19: {
12129
+ if (tag !== 154) {
12130
+ break;
12131
+ }
12132
+ message.jttEventMediaData = JTT808EventMediaDataUpload.decode(reader, reader.uint32());
12133
+ continue;
12134
+ }
12135
+ case 20: {
12136
+ if (tag !== 162) {
12137
+ break;
12138
+ }
12139
+ message.jttAlarmData = JTT808AlarmData.decode(reader, reader.uint32());
12140
+ continue;
12141
+ }
12142
+ case 21: {
12143
+ if (tag !== 170) {
12144
+ break;
12145
+ }
12146
+ message.jttMedia = JTT808MediaRetrieval0802.decode(reader, reader.uint32());
12147
+ continue;
12148
+ }
12000
12149
  case 31: {
12001
12150
  if (tag !== 250) {
12002
12151
  break;
@@ -12023,10 +12172,9 @@ export const Packet = {
12023
12172
  ? Authorize.fromPartial(object.authorize)
12024
12173
  : undefined;
12025
12174
  message.response = object.response ?? undefined;
12026
- message.answer = object.answer ?? undefined;
12027
12175
  message.customType = object.customType ?? 0;
12028
12176
  message.customPayload = object.customPayload ?? undefined;
12029
- message.answerType = object.answerType ?? 0;
12177
+ message.answer = object.answer ?? undefined;
12030
12178
  message.additional = object.additional?.map((e) => AdditionalInformation.fromPartial(e)) || [];
12031
12179
  message.concox = (object.concox !== undefined && object.concox !== null)
12032
12180
  ? ReplyConcox.fromPartial(object.concox)
@@ -12034,9 +12182,41 @@ export const Packet = {
12034
12182
  message.teltonika = (object.teltonika !== undefined && object.teltonika !== null)
12035
12183
  ? ReplyTeltonika.fromPartial(object.teltonika)
12036
12184
  : undefined;
12185
+ message.jtt808Reply = (object.jtt808Reply !== undefined && object.jtt808Reply !== null)
12186
+ ? JTT808Reply.fromPartial(object.jtt808Reply)
12187
+ : undefined;
12188
+ message.joinTechReply = (object.joinTechReply !== undefined && object.joinTechReply !== null)
12189
+ ? ReplyJoinTech.fromPartial(object.joinTechReply)
12190
+ : undefined;
12191
+ message.rawString = object.rawString ?? undefined;
12192
+ message.rawBinary = object.rawBinary ?? undefined;
12037
12193
  message.stream = (object.stream !== undefined && object.stream !== null)
12038
12194
  ? Stream.fromPartial(object.stream)
12039
12195
  : undefined;
12196
+ message.forge = (object.forge !== undefined && object.forge !== null)
12197
+ ? ForgeDecoder.fromPartial(object.forge)
12198
+ : undefined;
12199
+ message.jttSignaling1210 = (object.jttSignaling1210 !== undefined && object.jttSignaling1210 !== null)
12200
+ ? JTT808SignalingDataMessage1210.fromPartial(object.jttSignaling1210)
12201
+ : undefined;
12202
+ message.jttSignaling1211 = (object.jttSignaling1211 !== undefined && object.jttSignaling1211 !== null)
12203
+ ? JTT808SignalingDataMessage1211.fromPartial(object.jttSignaling1211)
12204
+ : undefined;
12205
+ message.jttSignaling1212 = (object.jttSignaling1212 !== undefined && object.jttSignaling1212 !== null)
12206
+ ? JTT808SignalingDataMessage1212.fromPartial(object.jttSignaling1212)
12207
+ : undefined;
12208
+ message.jttEventMediaInfo = (object.jttEventMediaInfo !== undefined && object.jttEventMediaInfo !== null)
12209
+ ? JTT808EventMediaInfoUpload.fromPartial(object.jttEventMediaInfo)
12210
+ : undefined;
12211
+ message.jttEventMediaData = (object.jttEventMediaData !== undefined && object.jttEventMediaData !== null)
12212
+ ? JTT808EventMediaDataUpload.fromPartial(object.jttEventMediaData)
12213
+ : undefined;
12214
+ message.jttAlarmData = (object.jttAlarmData !== undefined && object.jttAlarmData !== null)
12215
+ ? JTT808AlarmData.fromPartial(object.jttAlarmData)
12216
+ : undefined;
12217
+ message.jttMedia = (object.jttMedia !== undefined && object.jttMedia !== null)
12218
+ ? JTT808MediaRetrieval0802.fromPartial(object.jttMedia)
12219
+ : undefined;
12040
12220
  message.errorMessage = object.errorMessage ?? undefined;
12041
12221
  return message;
12042
12222
  },
@@ -12186,6 +12366,58 @@ export const ReplyConcox_Item = {
12186
12366
  return message;
12187
12367
  },
12188
12368
  };
12369
+ function createBaseReplyJoinTech() {
12370
+ return { commandWord: "", parameters: [] };
12371
+ }
12372
+ export const ReplyJoinTech = {
12373
+ encode(message, writer = new BinaryWriter()) {
12374
+ if (message.commandWord !== "") {
12375
+ writer.uint32(10).string(message.commandWord);
12376
+ }
12377
+ for (const v of message.parameters) {
12378
+ writer.uint32(18).string(v);
12379
+ }
12380
+ return writer;
12381
+ },
12382
+ decode(input, length) {
12383
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12384
+ const end = length === undefined ? reader.len : reader.pos + length;
12385
+ const message = createBaseReplyJoinTech();
12386
+ while (reader.pos < end) {
12387
+ const tag = reader.uint32();
12388
+ switch (tag >>> 3) {
12389
+ case 1: {
12390
+ if (tag !== 10) {
12391
+ break;
12392
+ }
12393
+ message.commandWord = reader.string();
12394
+ continue;
12395
+ }
12396
+ case 2: {
12397
+ if (tag !== 18) {
12398
+ break;
12399
+ }
12400
+ message.parameters.push(reader.string());
12401
+ continue;
12402
+ }
12403
+ }
12404
+ if ((tag & 7) === 4 || tag === 0) {
12405
+ break;
12406
+ }
12407
+ reader.skip(tag & 7);
12408
+ }
12409
+ return message;
12410
+ },
12411
+ create(base) {
12412
+ return ReplyJoinTech.fromPartial(base ?? {});
12413
+ },
12414
+ fromPartial(object) {
12415
+ const message = createBaseReplyJoinTech();
12416
+ message.commandWord = object.commandWord ?? "";
12417
+ message.parameters = object.parameters?.map((e) => e) || [];
12418
+ return message;
12419
+ },
12420
+ };
12189
12421
  function createBaseReplyTeltonika() {
12190
12422
  return { quantity1: 0, type: 0, responseSize: 0, response: new Uint8Array(0), quantity2: 0 };
12191
12423
  }
@@ -12271,6 +12503,69 @@ export const ReplyTeltonika = {
12271
12503
  return message;
12272
12504
  },
12273
12505
  };
12506
+ function createBaseJTT808Reply() {
12507
+ return { responseSerialNumber: 0, responseId: 0, result: 0 };
12508
+ }
12509
+ export const JTT808Reply = {
12510
+ encode(message, writer = new BinaryWriter()) {
12511
+ if (message.responseSerialNumber !== 0) {
12512
+ writer.uint32(8).uint32(message.responseSerialNumber);
12513
+ }
12514
+ if (message.responseId !== 0) {
12515
+ writer.uint32(16).uint32(message.responseId);
12516
+ }
12517
+ if (message.result !== 0) {
12518
+ writer.uint32(24).uint32(message.result);
12519
+ }
12520
+ return writer;
12521
+ },
12522
+ decode(input, length) {
12523
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12524
+ const end = length === undefined ? reader.len : reader.pos + length;
12525
+ const message = createBaseJTT808Reply();
12526
+ while (reader.pos < end) {
12527
+ const tag = reader.uint32();
12528
+ switch (tag >>> 3) {
12529
+ case 1: {
12530
+ if (tag !== 8) {
12531
+ break;
12532
+ }
12533
+ message.responseSerialNumber = reader.uint32();
12534
+ continue;
12535
+ }
12536
+ case 2: {
12537
+ if (tag !== 16) {
12538
+ break;
12539
+ }
12540
+ message.responseId = reader.uint32();
12541
+ continue;
12542
+ }
12543
+ case 3: {
12544
+ if (tag !== 24) {
12545
+ break;
12546
+ }
12547
+ message.result = reader.uint32();
12548
+ continue;
12549
+ }
12550
+ }
12551
+ if ((tag & 7) === 4 || tag === 0) {
12552
+ break;
12553
+ }
12554
+ reader.skip(tag & 7);
12555
+ }
12556
+ return message;
12557
+ },
12558
+ create(base) {
12559
+ return JTT808Reply.fromPartial(base ?? {});
12560
+ },
12561
+ fromPartial(object) {
12562
+ const message = createBaseJTT808Reply();
12563
+ message.responseSerialNumber = object.responseSerialNumber ?? 0;
12564
+ message.responseId = object.responseId ?? 0;
12565
+ message.result = object.result ?? 0;
12566
+ return message;
12567
+ },
12568
+ };
12274
12569
  function createBaseAdditionalInformation() {
12275
12570
  return { key: 0, val: new Uint8Array(0), uint32Value: undefined, stringValue: undefined };
12276
12571
  }
@@ -12345,148 +12640,78 @@ export const AdditionalInformation = {
12345
12640
  return message;
12346
12641
  },
12347
12642
  };
12348
- function createBaseJtt808SignalingDataMessage1211() {
12349
- return { name: "", type: 0, size: 0 };
12643
+ function createBaseConcoxRecording0x8d() {
12644
+ return { fileType: 0, fileSize: 0, totalFiles: 0, currentSequence: 0, currentLength: 0, payload: new Uint8Array(0) };
12350
12645
  }
12351
- export const Jtt808SignalingDataMessage1211 = {
12646
+ export const ConcoxRecording0x8d = {
12352
12647
  encode(message, writer = new BinaryWriter()) {
12353
- if (message.name !== "") {
12354
- writer.uint32(10).string(message.name);
12648
+ if (message.fileType !== 0) {
12649
+ writer.uint32(8).uint32(message.fileType);
12355
12650
  }
12356
- if (message.type !== 0) {
12357
- writer.uint32(16).int32(message.type);
12651
+ if (message.fileSize !== 0) {
12652
+ writer.uint32(16).uint32(message.fileSize);
12358
12653
  }
12359
- if (message.size !== 0) {
12360
- writer.uint32(24).uint32(message.size);
12654
+ if (message.totalFiles !== 0) {
12655
+ writer.uint32(24).uint32(message.totalFiles);
12656
+ }
12657
+ if (message.currentSequence !== 0) {
12658
+ writer.uint32(32).uint32(message.currentSequence);
12659
+ }
12660
+ if (message.currentLength !== 0) {
12661
+ writer.uint32(40).uint32(message.currentLength);
12662
+ }
12663
+ if (message.payload.length !== 0) {
12664
+ writer.uint32(50).bytes(message.payload);
12361
12665
  }
12362
12666
  return writer;
12363
12667
  },
12364
12668
  decode(input, length) {
12365
12669
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12366
12670
  const end = length === undefined ? reader.len : reader.pos + length;
12367
- const message = createBaseJtt808SignalingDataMessage1211();
12671
+ const message = createBaseConcoxRecording0x8d();
12368
12672
  while (reader.pos < end) {
12369
12673
  const tag = reader.uint32();
12370
12674
  switch (tag >>> 3) {
12371
12675
  case 1: {
12372
- if (tag !== 10) {
12676
+ if (tag !== 8) {
12373
12677
  break;
12374
12678
  }
12375
- message.name = reader.string();
12679
+ message.fileType = reader.uint32();
12376
12680
  continue;
12377
12681
  }
12378
12682
  case 2: {
12379
12683
  if (tag !== 16) {
12380
12684
  break;
12381
12685
  }
12382
- message.type = reader.int32();
12686
+ message.fileSize = reader.uint32();
12383
12687
  continue;
12384
12688
  }
12385
12689
  case 3: {
12386
12690
  if (tag !== 24) {
12387
12691
  break;
12388
12692
  }
12389
- message.size = reader.uint32();
12390
- continue;
12391
- }
12392
- }
12393
- if ((tag & 7) === 4 || tag === 0) {
12394
- break;
12395
- }
12396
- reader.skip(tag & 7);
12397
- }
12398
- return message;
12399
- },
12400
- create(base) {
12401
- return Jtt808SignalingDataMessage1211.fromPartial(base ?? {});
12402
- },
12403
- fromPartial(object) {
12404
- const message = createBaseJtt808SignalingDataMessage1211();
12405
- message.name = object.name ?? "";
12406
- message.type = object.type ?? 0;
12407
- message.size = object.size ?? 0;
12408
- return message;
12409
- },
12410
- };
12411
- function createBaseJtt808SignalingDataMessage1210() {
12412
- return {
12413
- terminalId: new Uint8Array(0),
12414
- alarmIdentification: new Uint8Array(0),
12415
- alarmNo: new Uint8Array(0),
12416
- infoType: 0,
12417
- attachmentCount: 0,
12418
- attachments: [],
12419
- };
12420
- }
12421
- export const Jtt808SignalingDataMessage1210 = {
12422
- encode(message, writer = new BinaryWriter()) {
12423
- if (message.terminalId.length !== 0) {
12424
- writer.uint32(10).bytes(message.terminalId);
12425
- }
12426
- if (message.alarmIdentification.length !== 0) {
12427
- writer.uint32(18).bytes(message.alarmIdentification);
12428
- }
12429
- if (message.alarmNo.length !== 0) {
12430
- writer.uint32(26).bytes(message.alarmNo);
12431
- }
12432
- if (message.infoType !== 0) {
12433
- writer.uint32(32).uint32(message.infoType);
12434
- }
12435
- if (message.attachmentCount !== 0) {
12436
- writer.uint32(40).uint32(message.attachmentCount);
12437
- }
12438
- for (const v of message.attachments) {
12439
- Jtt808SignalingDataMessage1210_Attachment.encode(v, writer.uint32(50).fork()).join();
12440
- }
12441
- return writer;
12442
- },
12443
- decode(input, length) {
12444
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12445
- const end = length === undefined ? reader.len : reader.pos + length;
12446
- const message = createBaseJtt808SignalingDataMessage1210();
12447
- while (reader.pos < end) {
12448
- const tag = reader.uint32();
12449
- switch (tag >>> 3) {
12450
- case 1: {
12451
- if (tag !== 10) {
12452
- break;
12453
- }
12454
- message.terminalId = reader.bytes();
12455
- continue;
12456
- }
12457
- case 2: {
12458
- if (tag !== 18) {
12459
- break;
12460
- }
12461
- message.alarmIdentification = reader.bytes();
12462
- continue;
12463
- }
12464
- case 3: {
12465
- if (tag !== 26) {
12466
- break;
12467
- }
12468
- message.alarmNo = reader.bytes();
12693
+ message.totalFiles = reader.uint32();
12469
12694
  continue;
12470
12695
  }
12471
12696
  case 4: {
12472
12697
  if (tag !== 32) {
12473
12698
  break;
12474
12699
  }
12475
- message.infoType = reader.uint32();
12700
+ message.currentSequence = reader.uint32();
12476
12701
  continue;
12477
12702
  }
12478
12703
  case 5: {
12479
12704
  if (tag !== 40) {
12480
12705
  break;
12481
12706
  }
12482
- message.attachmentCount = reader.uint32();
12707
+ message.currentLength = reader.uint32();
12483
12708
  continue;
12484
12709
  }
12485
12710
  case 6: {
12486
12711
  if (tag !== 50) {
12487
12712
  break;
12488
12713
  }
12489
- message.attachments.push(Jtt808SignalingDataMessage1210_Attachment.decode(reader, reader.uint32()));
12714
+ message.payload = reader.bytes();
12490
12715
  continue;
12491
12716
  }
12492
12717
  }
@@ -12498,37 +12723,42 @@ export const Jtt808SignalingDataMessage1210 = {
12498
12723
  return message;
12499
12724
  },
12500
12725
  create(base) {
12501
- return Jtt808SignalingDataMessage1210.fromPartial(base ?? {});
12726
+ return ConcoxRecording0x8d.fromPartial(base ?? {});
12502
12727
  },
12503
12728
  fromPartial(object) {
12504
- const message = createBaseJtt808SignalingDataMessage1210();
12505
- message.terminalId = object.terminalId ?? new Uint8Array(0);
12506
- message.alarmIdentification = object.alarmIdentification ?? new Uint8Array(0);
12507
- message.alarmNo = object.alarmNo ?? new Uint8Array(0);
12508
- message.infoType = object.infoType ?? 0;
12509
- message.attachmentCount = object.attachmentCount ?? 0;
12510
- message.attachments = object.attachments?.map((e) => Jtt808SignalingDataMessage1210_Attachment.fromPartial(e)) ||
12511
- [];
12729
+ const message = createBaseConcoxRecording0x8d();
12730
+ message.fileType = object.fileType ?? 0;
12731
+ message.fileSize = object.fileSize ?? 0;
12732
+ message.totalFiles = object.totalFiles ?? 0;
12733
+ message.currentSequence = object.currentSequence ?? 0;
12734
+ message.currentLength = object.currentLength ?? 0;
12735
+ message.payload = object.payload ?? new Uint8Array(0);
12512
12736
  return message;
12513
12737
  },
12514
12738
  };
12515
- function createBaseJtt808SignalingDataMessage1210_Attachment() {
12516
- return { name: "", size: 0 };
12739
+ function createBaseClient() {
12740
+ return { remoteIp: "", remotePort: 0, localIp: "", localPort: 0 };
12517
12741
  }
12518
- export const Jtt808SignalingDataMessage1210_Attachment = {
12742
+ export const Client = {
12519
12743
  encode(message, writer = new BinaryWriter()) {
12520
- if (message.name !== "") {
12521
- writer.uint32(10).string(message.name);
12744
+ if (message.remoteIp !== "") {
12745
+ writer.uint32(10).string(message.remoteIp);
12522
12746
  }
12523
- if (message.size !== 0) {
12524
- writer.uint32(16).uint32(message.size);
12747
+ if (message.remotePort !== 0) {
12748
+ writer.uint32(16).uint32(message.remotePort);
12749
+ }
12750
+ if (message.localIp !== "") {
12751
+ writer.uint32(26).string(message.localIp);
12752
+ }
12753
+ if (message.localPort !== 0) {
12754
+ writer.uint32(32).uint32(message.localPort);
12525
12755
  }
12526
12756
  return writer;
12527
12757
  },
12528
12758
  decode(input, length) {
12529
12759
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12530
12760
  const end = length === undefined ? reader.len : reader.pos + length;
12531
- const message = createBaseJtt808SignalingDataMessage1210_Attachment();
12761
+ const message = createBaseClient();
12532
12762
  while (reader.pos < end) {
12533
12763
  const tag = reader.uint32();
12534
12764
  switch (tag >>> 3) {
@@ -12536,76 +12766,28 @@ export const Jtt808SignalingDataMessage1210_Attachment = {
12536
12766
  if (tag !== 10) {
12537
12767
  break;
12538
12768
  }
12539
- message.name = reader.string();
12769
+ message.remoteIp = reader.string();
12540
12770
  continue;
12541
12771
  }
12542
12772
  case 2: {
12543
12773
  if (tag !== 16) {
12544
12774
  break;
12545
12775
  }
12546
- message.size = reader.uint32();
12547
- continue;
12548
- }
12549
- }
12550
- if ((tag & 7) === 4 || tag === 0) {
12551
- break;
12552
- }
12553
- reader.skip(tag & 7);
12554
- }
12555
- return message;
12556
- },
12557
- create(base) {
12558
- return Jtt808SignalingDataMessage1210_Attachment.fromPartial(base ?? {});
12559
- },
12560
- fromPartial(object) {
12561
- const message = createBaseJtt808SignalingDataMessage1210_Attachment();
12562
- message.name = object.name ?? "";
12563
- message.size = object.size ?? 0;
12564
- return message;
12565
- },
12566
- };
12567
- function createBaseJtt10780x0001Answer() {
12568
- return { responseSerialNumber: 0, responseId: 0, result: 0 };
12569
- }
12570
- export const Jtt10780x0001Answer = {
12571
- encode(message, writer = new BinaryWriter()) {
12572
- if (message.responseSerialNumber !== 0) {
12573
- writer.uint32(8).uint32(message.responseSerialNumber);
12574
- }
12575
- if (message.responseId !== 0) {
12576
- writer.uint32(16).uint32(message.responseId);
12577
- }
12578
- if (message.result !== 0) {
12579
- writer.uint32(24).uint32(message.result);
12580
- }
12581
- return writer;
12582
- },
12583
- decode(input, length) {
12584
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12585
- const end = length === undefined ? reader.len : reader.pos + length;
12586
- const message = createBaseJtt10780x0001Answer();
12587
- while (reader.pos < end) {
12588
- const tag = reader.uint32();
12589
- switch (tag >>> 3) {
12590
- case 1: {
12591
- if (tag !== 8) {
12592
- break;
12593
- }
12594
- message.responseSerialNumber = reader.uint32();
12776
+ message.remotePort = reader.uint32();
12595
12777
  continue;
12596
12778
  }
12597
- case 2: {
12598
- if (tag !== 16) {
12779
+ case 3: {
12780
+ if (tag !== 26) {
12599
12781
  break;
12600
12782
  }
12601
- message.responseId = reader.uint32();
12783
+ message.localIp = reader.string();
12602
12784
  continue;
12603
12785
  }
12604
- case 3: {
12605
- if (tag !== 24) {
12786
+ case 4: {
12787
+ if (tag !== 32) {
12606
12788
  break;
12607
12789
  }
12608
- message.result = reader.uint32();
12790
+ message.localPort = reader.uint32();
12609
12791
  continue;
12610
12792
  }
12611
12793
  }
@@ -12617,42 +12799,91 @@ export const Jtt10780x0001Answer = {
12617
12799
  return message;
12618
12800
  },
12619
12801
  create(base) {
12620
- return Jtt10780x0001Answer.fromPartial(base ?? {});
12802
+ return Client.fromPartial(base ?? {});
12621
12803
  },
12622
12804
  fromPartial(object) {
12623
- const message = createBaseJtt10780x0001Answer();
12624
- message.responseSerialNumber = object.responseSerialNumber ?? 0;
12625
- message.responseId = object.responseId ?? 0;
12626
- message.result = object.result ?? 0;
12805
+ const message = createBaseClient();
12806
+ message.remoteIp = object.remoteIp ?? "";
12807
+ message.remotePort = object.remotePort ?? 0;
12808
+ message.localIp = object.localIp ?? "";
12809
+ message.localPort = object.localPort ?? 0;
12627
12810
  return message;
12628
12811
  },
12629
12812
  };
12630
- function createBaseJtt1078EventMediaInfoUpload() {
12631
- return { mediaId: 0, mediaType: 0, mediaFormat: 0, eventItemCode: 0, channelId: 0 };
12813
+ function createBaseOdysseyDevice() {
12814
+ return {
12815
+ id: Long.UZERO,
12816
+ imei: Long.UZERO,
12817
+ objectId: undefined,
12818
+ objectType: 0,
12819
+ timezone: "",
12820
+ isUnlimited: false,
12821
+ tripType: 0,
12822
+ receiveAt: undefined,
12823
+ expiresAt: undefined,
12824
+ connectAt: undefined,
12825
+ createdAt: undefined,
12826
+ workflowTaskId: undefined,
12827
+ organizationId: undefined,
12828
+ generation: [],
12829
+ module: undefined,
12830
+ };
12632
12831
  }
12633
- export const Jtt1078EventMediaInfoUpload = {
12832
+ export const OdysseyDevice = {
12634
12833
  encode(message, writer = new BinaryWriter()) {
12635
- if (message.mediaId !== 0) {
12636
- writer.uint32(8).uint32(message.mediaId);
12834
+ if (!message.id.equals(Long.UZERO)) {
12835
+ writer.uint32(8).uint64(message.id.toString());
12637
12836
  }
12638
- if (message.mediaType !== 0) {
12639
- writer.uint32(16).uint32(message.mediaType);
12837
+ if (!message.imei.equals(Long.UZERO)) {
12838
+ writer.uint32(16).uint64(message.imei.toString());
12640
12839
  }
12641
- if (message.mediaFormat !== 0) {
12642
- writer.uint32(24).uint32(message.mediaFormat);
12840
+ if (message.objectId !== undefined) {
12841
+ writer.uint32(24).uint64(message.objectId.toString());
12643
12842
  }
12644
- if (message.eventItemCode !== 0) {
12645
- writer.uint32(32).uint32(message.eventItemCode);
12843
+ if (message.objectType !== 0) {
12844
+ writer.uint32(32).int32(message.objectType);
12646
12845
  }
12647
- if (message.channelId !== 0) {
12648
- writer.uint32(40).uint32(message.channelId);
12846
+ if (message.timezone !== "") {
12847
+ writer.uint32(42).string(message.timezone);
12848
+ }
12849
+ if (message.isUnlimited !== false) {
12850
+ writer.uint32(48).bool(message.isUnlimited);
12851
+ }
12852
+ if (message.tripType !== 0) {
12853
+ writer.uint32(56).int32(message.tripType);
12854
+ }
12855
+ if (message.receiveAt !== undefined) {
12856
+ Timestamp.encode(toTimestamp(message.receiveAt), writer.uint32(66).fork()).join();
12857
+ }
12858
+ if (message.expiresAt !== undefined) {
12859
+ Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(74).fork()).join();
12860
+ }
12861
+ if (message.connectAt !== undefined) {
12862
+ Timestamp.encode(toTimestamp(message.connectAt), writer.uint32(82).fork()).join();
12863
+ }
12864
+ if (message.createdAt !== undefined) {
12865
+ Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(90).fork()).join();
12866
+ }
12867
+ if (message.workflowTaskId !== undefined) {
12868
+ writer.uint32(96).uint64(message.workflowTaskId.toString());
12869
+ }
12870
+ if (message.organizationId !== undefined) {
12871
+ writer.uint32(104).uint64(message.organizationId.toString());
12872
+ }
12873
+ writer.uint32(114).fork();
12874
+ for (const v of message.generation) {
12875
+ writer.uint64(v.toString());
12876
+ }
12877
+ writer.join();
12878
+ if (message.module !== undefined) {
12879
+ DataModule.encode(message.module, writer.uint32(122).fork()).join();
12649
12880
  }
12650
12881
  return writer;
12651
12882
  },
12652
12883
  decode(input, length) {
12653
12884
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12654
12885
  const end = length === undefined ? reader.len : reader.pos + length;
12655
- const message = createBaseJtt1078EventMediaInfoUpload();
12886
+ const message = createBaseOdysseyDevice();
12656
12887
  while (reader.pos < end) {
12657
12888
  const tag = reader.uint32();
12658
12889
  switch (tag >>> 3) {
@@ -12660,35 +12891,112 @@ export const Jtt1078EventMediaInfoUpload = {
12660
12891
  if (tag !== 8) {
12661
12892
  break;
12662
12893
  }
12663
- message.mediaId = reader.uint32();
12894
+ message.id = Long.fromString(reader.uint64().toString(), true);
12664
12895
  continue;
12665
12896
  }
12666
12897
  case 2: {
12667
12898
  if (tag !== 16) {
12668
12899
  break;
12669
12900
  }
12670
- message.mediaType = reader.uint32();
12901
+ message.imei = Long.fromString(reader.uint64().toString(), true);
12671
12902
  continue;
12672
12903
  }
12673
12904
  case 3: {
12674
12905
  if (tag !== 24) {
12675
12906
  break;
12676
12907
  }
12677
- message.mediaFormat = reader.uint32();
12908
+ message.objectId = Long.fromString(reader.uint64().toString(), true);
12678
12909
  continue;
12679
12910
  }
12680
12911
  case 4: {
12681
12912
  if (tag !== 32) {
12682
12913
  break;
12683
12914
  }
12684
- message.eventItemCode = reader.uint32();
12915
+ message.objectType = reader.int32();
12685
12916
  continue;
12686
12917
  }
12687
12918
  case 5: {
12688
- if (tag !== 40) {
12919
+ if (tag !== 42) {
12689
12920
  break;
12690
12921
  }
12691
- message.channelId = reader.uint32();
12922
+ message.timezone = reader.string();
12923
+ continue;
12924
+ }
12925
+ case 6: {
12926
+ if (tag !== 48) {
12927
+ break;
12928
+ }
12929
+ message.isUnlimited = reader.bool();
12930
+ continue;
12931
+ }
12932
+ case 7: {
12933
+ if (tag !== 56) {
12934
+ break;
12935
+ }
12936
+ message.tripType = reader.int32();
12937
+ continue;
12938
+ }
12939
+ case 8: {
12940
+ if (tag !== 66) {
12941
+ break;
12942
+ }
12943
+ message.receiveAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
12944
+ continue;
12945
+ }
12946
+ case 9: {
12947
+ if (tag !== 74) {
12948
+ break;
12949
+ }
12950
+ message.expiresAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
12951
+ continue;
12952
+ }
12953
+ case 10: {
12954
+ if (tag !== 82) {
12955
+ break;
12956
+ }
12957
+ message.connectAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
12958
+ continue;
12959
+ }
12960
+ case 11: {
12961
+ if (tag !== 90) {
12962
+ break;
12963
+ }
12964
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
12965
+ continue;
12966
+ }
12967
+ case 12: {
12968
+ if (tag !== 96) {
12969
+ break;
12970
+ }
12971
+ message.workflowTaskId = Long.fromString(reader.uint64().toString(), true);
12972
+ continue;
12973
+ }
12974
+ case 13: {
12975
+ if (tag !== 104) {
12976
+ break;
12977
+ }
12978
+ message.organizationId = Long.fromString(reader.uint64().toString(), true);
12979
+ continue;
12980
+ }
12981
+ case 14: {
12982
+ if (tag === 112) {
12983
+ message.generation.push(Long.fromString(reader.uint64().toString(), true));
12984
+ continue;
12985
+ }
12986
+ if (tag === 114) {
12987
+ const end2 = reader.uint32() + reader.pos;
12988
+ while (reader.pos < end2) {
12989
+ message.generation.push(Long.fromString(reader.uint64().toString(), true));
12990
+ }
12991
+ continue;
12992
+ }
12993
+ break;
12994
+ }
12995
+ case 15: {
12996
+ if (tag !== 122) {
12997
+ break;
12998
+ }
12999
+ message.module = DataModule.decode(reader, reader.uint32());
12692
13000
  continue;
12693
13001
  }
12694
13002
  }
@@ -12700,47 +13008,110 @@ export const Jtt1078EventMediaInfoUpload = {
12700
13008
  return message;
12701
13009
  },
12702
13010
  create(base) {
12703
- return Jtt1078EventMediaInfoUpload.fromPartial(base ?? {});
13011
+ return OdysseyDevice.fromPartial(base ?? {});
12704
13012
  },
12705
13013
  fromPartial(object) {
12706
- const message = createBaseJtt1078EventMediaInfoUpload();
12707
- message.mediaId = object.mediaId ?? 0;
12708
- message.mediaType = object.mediaType ?? 0;
12709
- message.mediaFormat = object.mediaFormat ?? 0;
12710
- message.eventItemCode = object.eventItemCode ?? 0;
12711
- message.channelId = object.channelId ?? 0;
13014
+ const message = createBaseOdysseyDevice();
13015
+ message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
13016
+ message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13017
+ message.objectId = (object.objectId !== undefined && object.objectId !== null)
13018
+ ? Long.fromValue(object.objectId)
13019
+ : undefined;
13020
+ message.objectType = object.objectType ?? 0;
13021
+ message.timezone = object.timezone ?? "";
13022
+ message.isUnlimited = object.isUnlimited ?? false;
13023
+ message.tripType = object.tripType ?? 0;
13024
+ message.receiveAt = object.receiveAt ?? undefined;
13025
+ message.expiresAt = object.expiresAt ?? undefined;
13026
+ message.connectAt = object.connectAt ?? undefined;
13027
+ message.createdAt = object.createdAt ?? undefined;
13028
+ message.workflowTaskId = (object.workflowTaskId !== undefined && object.workflowTaskId !== null)
13029
+ ? Long.fromValue(object.workflowTaskId)
13030
+ : undefined;
13031
+ message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
13032
+ ? Long.fromValue(object.organizationId)
13033
+ : undefined;
13034
+ message.generation = object.generation?.map((e) => Long.fromValue(e)) || [];
13035
+ message.module = (object.module !== undefined && object.module !== null)
13036
+ ? DataModule.fromPartial(object.module)
13037
+ : undefined;
12712
13038
  return message;
12713
13039
  },
12714
13040
  };
12715
- function createBaseJtt1078EventMediaDataUpload() {
12716
- return { mediaId: 0, mediaType: 0, mediaFormat: 0, eventItemCode: 0, channelId: 0, payload: new Uint8Array(0) };
13041
+ function createBaseFusionDevice() {
13042
+ return {
13043
+ deviceId: Long.UZERO,
13044
+ carId: undefined,
13045
+ imei: Long.UZERO,
13046
+ ignitionSource: 0,
13047
+ timezone: undefined,
13048
+ fcmToken: undefined,
13049
+ isFreeUse: false,
13050
+ canReceiveFrom: Long.ZERO,
13051
+ expireTime: Long.ZERO,
13052
+ odoType: 0,
13053
+ firstConnect: Long.ZERO,
13054
+ tripType: 0,
13055
+ createdAt: Long.ZERO,
13056
+ organizationId: undefined,
13057
+ generation: [],
13058
+ };
12717
13059
  }
12718
- export const Jtt1078EventMediaDataUpload = {
13060
+ export const FusionDevice = {
12719
13061
  encode(message, writer = new BinaryWriter()) {
12720
- if (message.mediaId !== 0) {
12721
- writer.uint32(8).uint32(message.mediaId);
13062
+ if (!message.deviceId.equals(Long.UZERO)) {
13063
+ writer.uint32(8).uint64(message.deviceId.toString());
12722
13064
  }
12723
- if (message.mediaType !== 0) {
12724
- writer.uint32(16).uint32(message.mediaType);
13065
+ if (message.carId !== undefined) {
13066
+ writer.uint32(16).uint64(message.carId.toString());
12725
13067
  }
12726
- if (message.mediaFormat !== 0) {
12727
- writer.uint32(24).uint32(message.mediaFormat);
13068
+ if (!message.imei.equals(Long.UZERO)) {
13069
+ writer.uint32(24).uint64(message.imei.toString());
12728
13070
  }
12729
- if (message.eventItemCode !== 0) {
12730
- writer.uint32(32).uint32(message.eventItemCode);
13071
+ if (message.ignitionSource !== 0) {
13072
+ writer.uint32(32).int32(message.ignitionSource);
12731
13073
  }
12732
- if (message.channelId !== 0) {
12733
- writer.uint32(40).uint32(message.channelId);
13074
+ if (message.timezone !== undefined) {
13075
+ writer.uint32(42).string(message.timezone);
12734
13076
  }
12735
- if (message.payload.length !== 0) {
12736
- writer.uint32(50).bytes(message.payload);
13077
+ if (message.fcmToken !== undefined) {
13078
+ writer.uint32(50).string(message.fcmToken);
13079
+ }
13080
+ if (message.isFreeUse !== false) {
13081
+ writer.uint32(56).bool(message.isFreeUse);
13082
+ }
13083
+ if (!message.canReceiveFrom.equals(Long.ZERO)) {
13084
+ writer.uint32(64).int64(message.canReceiveFrom.toString());
13085
+ }
13086
+ if (!message.expireTime.equals(Long.ZERO)) {
13087
+ writer.uint32(72).int64(message.expireTime.toString());
13088
+ }
13089
+ if (message.odoType !== 0) {
13090
+ writer.uint32(80).uint32(message.odoType);
13091
+ }
13092
+ if (!message.firstConnect.equals(Long.ZERO)) {
13093
+ writer.uint32(88).int64(message.firstConnect.toString());
13094
+ }
13095
+ if (message.tripType !== 0) {
13096
+ writer.uint32(96).uint32(message.tripType);
13097
+ }
13098
+ if (!message.createdAt.equals(Long.ZERO)) {
13099
+ writer.uint32(104).int64(message.createdAt.toString());
13100
+ }
13101
+ if (message.organizationId !== undefined) {
13102
+ writer.uint32(120).uint64(message.organizationId.toString());
13103
+ }
13104
+ writer.uint32(130).fork();
13105
+ for (const v of message.generation) {
13106
+ writer.uint64(v.toString());
12737
13107
  }
13108
+ writer.join();
12738
13109
  return writer;
12739
13110
  },
12740
13111
  decode(input, length) {
12741
13112
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12742
13113
  const end = length === undefined ? reader.len : reader.pos + length;
12743
- const message = createBaseJtt1078EventMediaDataUpload();
13114
+ const message = createBaseFusionDevice();
12744
13115
  while (reader.pos < end) {
12745
13116
  const tag = reader.uint32();
12746
13117
  switch (tag >>> 3) {
@@ -12748,44 +13119,114 @@ export const Jtt1078EventMediaDataUpload = {
12748
13119
  if (tag !== 8) {
12749
13120
  break;
12750
13121
  }
12751
- message.mediaId = reader.uint32();
13122
+ message.deviceId = Long.fromString(reader.uint64().toString(), true);
12752
13123
  continue;
12753
13124
  }
12754
13125
  case 2: {
12755
13126
  if (tag !== 16) {
12756
13127
  break;
12757
13128
  }
12758
- message.mediaType = reader.uint32();
13129
+ message.carId = Long.fromString(reader.uint64().toString(), true);
12759
13130
  continue;
12760
13131
  }
12761
13132
  case 3: {
12762
13133
  if (tag !== 24) {
12763
13134
  break;
12764
13135
  }
12765
- message.mediaFormat = reader.uint32();
13136
+ message.imei = Long.fromString(reader.uint64().toString(), true);
12766
13137
  continue;
12767
13138
  }
12768
13139
  case 4: {
12769
13140
  if (tag !== 32) {
12770
13141
  break;
12771
13142
  }
12772
- message.eventItemCode = reader.uint32();
13143
+ message.ignitionSource = reader.int32();
12773
13144
  continue;
12774
13145
  }
12775
13146
  case 5: {
12776
- if (tag !== 40) {
13147
+ if (tag !== 42) {
12777
13148
  break;
12778
13149
  }
12779
- message.channelId = reader.uint32();
13150
+ message.timezone = reader.string();
12780
13151
  continue;
12781
13152
  }
12782
13153
  case 6: {
12783
13154
  if (tag !== 50) {
12784
13155
  break;
12785
13156
  }
12786
- message.payload = reader.bytes();
13157
+ message.fcmToken = reader.string();
13158
+ continue;
13159
+ }
13160
+ case 7: {
13161
+ if (tag !== 56) {
13162
+ break;
13163
+ }
13164
+ message.isFreeUse = reader.bool();
13165
+ continue;
13166
+ }
13167
+ case 8: {
13168
+ if (tag !== 64) {
13169
+ break;
13170
+ }
13171
+ message.canReceiveFrom = Long.fromString(reader.int64().toString());
13172
+ continue;
13173
+ }
13174
+ case 9: {
13175
+ if (tag !== 72) {
13176
+ break;
13177
+ }
13178
+ message.expireTime = Long.fromString(reader.int64().toString());
13179
+ continue;
13180
+ }
13181
+ case 10: {
13182
+ if (tag !== 80) {
13183
+ break;
13184
+ }
13185
+ message.odoType = reader.uint32();
13186
+ continue;
13187
+ }
13188
+ case 11: {
13189
+ if (tag !== 88) {
13190
+ break;
13191
+ }
13192
+ message.firstConnect = Long.fromString(reader.int64().toString());
13193
+ continue;
13194
+ }
13195
+ case 12: {
13196
+ if (tag !== 96) {
13197
+ break;
13198
+ }
13199
+ message.tripType = reader.uint32();
13200
+ continue;
13201
+ }
13202
+ case 13: {
13203
+ if (tag !== 104) {
13204
+ break;
13205
+ }
13206
+ message.createdAt = Long.fromString(reader.int64().toString());
13207
+ continue;
13208
+ }
13209
+ case 15: {
13210
+ if (tag !== 120) {
13211
+ break;
13212
+ }
13213
+ message.organizationId = Long.fromString(reader.uint64().toString(), true);
12787
13214
  continue;
12788
13215
  }
13216
+ case 16: {
13217
+ if (tag === 128) {
13218
+ message.generation.push(Long.fromString(reader.uint64().toString(), true));
13219
+ continue;
13220
+ }
13221
+ if (tag === 130) {
13222
+ const end2 = reader.uint32() + reader.pos;
13223
+ while (reader.pos < end2) {
13224
+ message.generation.push(Long.fromString(reader.uint64().toString(), true));
13225
+ }
13226
+ continue;
13227
+ }
13228
+ break;
13229
+ }
12789
13230
  }
12790
13231
  if ((tag & 7) === 4 || tag === 0) {
12791
13232
  break;
@@ -12795,39 +13236,145 @@ export const Jtt1078EventMediaDataUpload = {
12795
13236
  return message;
12796
13237
  },
12797
13238
  create(base) {
12798
- return Jtt1078EventMediaDataUpload.fromPartial(base ?? {});
13239
+ return FusionDevice.fromPartial(base ?? {});
12799
13240
  },
12800
13241
  fromPartial(object) {
12801
- const message = createBaseJtt1078EventMediaDataUpload();
12802
- message.mediaId = object.mediaId ?? 0;
12803
- message.mediaType = object.mediaType ?? 0;
12804
- message.mediaFormat = object.mediaFormat ?? 0;
12805
- message.eventItemCode = object.eventItemCode ?? 0;
12806
- message.channelId = object.channelId ?? 0;
12807
- message.payload = object.payload ?? new Uint8Array(0);
13242
+ const message = createBaseFusionDevice();
13243
+ message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
13244
+ ? Long.fromValue(object.deviceId)
13245
+ : Long.UZERO;
13246
+ message.carId = (object.carId !== undefined && object.carId !== null) ? Long.fromValue(object.carId) : undefined;
13247
+ message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13248
+ message.ignitionSource = object.ignitionSource ?? 0;
13249
+ message.timezone = object.timezone ?? undefined;
13250
+ message.fcmToken = object.fcmToken ?? undefined;
13251
+ message.isFreeUse = object.isFreeUse ?? false;
13252
+ message.canReceiveFrom = (object.canReceiveFrom !== undefined && object.canReceiveFrom !== null)
13253
+ ? Long.fromValue(object.canReceiveFrom)
13254
+ : Long.ZERO;
13255
+ message.expireTime = (object.expireTime !== undefined && object.expireTime !== null)
13256
+ ? Long.fromValue(object.expireTime)
13257
+ : Long.ZERO;
13258
+ message.odoType = object.odoType ?? 0;
13259
+ message.firstConnect = (object.firstConnect !== undefined && object.firstConnect !== null)
13260
+ ? Long.fromValue(object.firstConnect)
13261
+ : Long.ZERO;
13262
+ message.tripType = object.tripType ?? 0;
13263
+ message.createdAt = (object.createdAt !== undefined && object.createdAt !== null)
13264
+ ? Long.fromValue(object.createdAt)
13265
+ : Long.ZERO;
13266
+ message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
13267
+ ? Long.fromValue(object.organizationId)
13268
+ : undefined;
13269
+ message.generation = object.generation?.map((e) => Long.fromValue(e)) || [];
13270
+ return message;
13271
+ },
13272
+ };
13273
+ function createBaseDeviceData() {
13274
+ return { fusionDevice: undefined, odysseyDevice: undefined, fetchedAt: Long.ZERO };
13275
+ }
13276
+ export const DeviceData = {
13277
+ encode(message, writer = new BinaryWriter()) {
13278
+ if (message.fusionDevice !== undefined) {
13279
+ FusionDevice.encode(message.fusionDevice, writer.uint32(10).fork()).join();
13280
+ }
13281
+ if (message.odysseyDevice !== undefined) {
13282
+ OdysseyDevice.encode(message.odysseyDevice, writer.uint32(18).fork()).join();
13283
+ }
13284
+ if (!message.fetchedAt.equals(Long.ZERO)) {
13285
+ writer.uint32(24).int64(message.fetchedAt.toString());
13286
+ }
13287
+ return writer;
13288
+ },
13289
+ decode(input, length) {
13290
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13291
+ const end = length === undefined ? reader.len : reader.pos + length;
13292
+ const message = createBaseDeviceData();
13293
+ while (reader.pos < end) {
13294
+ const tag = reader.uint32();
13295
+ switch (tag >>> 3) {
13296
+ case 1: {
13297
+ if (tag !== 10) {
13298
+ break;
13299
+ }
13300
+ message.fusionDevice = FusionDevice.decode(reader, reader.uint32());
13301
+ continue;
13302
+ }
13303
+ case 2: {
13304
+ if (tag !== 18) {
13305
+ break;
13306
+ }
13307
+ message.odysseyDevice = OdysseyDevice.decode(reader, reader.uint32());
13308
+ continue;
13309
+ }
13310
+ case 3: {
13311
+ if (tag !== 24) {
13312
+ break;
13313
+ }
13314
+ message.fetchedAt = Long.fromString(reader.int64().toString());
13315
+ continue;
13316
+ }
13317
+ }
13318
+ if ((tag & 7) === 4 || tag === 0) {
13319
+ break;
13320
+ }
13321
+ reader.skip(tag & 7);
13322
+ }
13323
+ return message;
13324
+ },
13325
+ create(base) {
13326
+ return DeviceData.fromPartial(base ?? {});
13327
+ },
13328
+ fromPartial(object) {
13329
+ const message = createBaseDeviceData();
13330
+ message.fusionDevice = (object.fusionDevice !== undefined && object.fusionDevice !== null)
13331
+ ? FusionDevice.fromPartial(object.fusionDevice)
13332
+ : undefined;
13333
+ message.odysseyDevice = (object.odysseyDevice !== undefined && object.odysseyDevice !== null)
13334
+ ? OdysseyDevice.fromPartial(object.odysseyDevice)
13335
+ : undefined;
13336
+ message.fetchedAt = (object.fetchedAt !== undefined && object.fetchedAt !== null)
13337
+ ? Long.fromValue(object.fetchedAt)
13338
+ : Long.ZERO;
12808
13339
  return message;
12809
13340
  },
12810
13341
  };
12811
- function createBaseJtt808SignalingDataMessage1212() {
12812
- return { name: "", type: 0, size: 0 };
13342
+ function createBaseTask() {
13343
+ return {
13344
+ data: undefined,
13345
+ client: undefined,
13346
+ alertIdNumber: {},
13347
+ imei: Long.UZERO,
13348
+ deviceData: undefined,
13349
+ protocol: 0,
13350
+ };
12813
13351
  }
12814
- export const Jtt808SignalingDataMessage1212 = {
13352
+ export const Task = {
12815
13353
  encode(message, writer = new BinaryWriter()) {
12816
- if (message.name !== "") {
12817
- writer.uint32(10).string(message.name);
13354
+ if (message.data !== undefined) {
13355
+ Data.encode(message.data, writer.uint32(10).fork()).join();
12818
13356
  }
12819
- if (message.type !== 0) {
12820
- writer.uint32(16).int32(message.type);
13357
+ if (message.client !== undefined) {
13358
+ Client.encode(message.client, writer.uint32(18).fork()).join();
12821
13359
  }
12822
- if (message.size !== 0) {
12823
- writer.uint32(24).uint32(message.size);
13360
+ globalThis.Object.entries(message.alertIdNumber).forEach(([key, value]) => {
13361
+ Task_AlertIdNumberEntry.encode({ key: key, value }, writer.uint32(26).fork()).join();
13362
+ });
13363
+ if (!message.imei.equals(Long.UZERO)) {
13364
+ writer.uint32(32).uint64(message.imei.toString());
13365
+ }
13366
+ if (message.deviceData !== undefined) {
13367
+ DeviceData.encode(message.deviceData, writer.uint32(42).fork()).join();
13368
+ }
13369
+ if (message.protocol !== 0) {
13370
+ writer.uint32(48).int32(message.protocol);
12824
13371
  }
12825
13372
  return writer;
12826
13373
  },
12827
13374
  decode(input, length) {
12828
13375
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12829
13376
  const end = length === undefined ? reader.len : reader.pos + length;
12830
- const message = createBaseJtt808SignalingDataMessage1212();
13377
+ const message = createBaseTask();
12831
13378
  while (reader.pos < end) {
12832
13379
  const tag = reader.uint32();
12833
13380
  switch (tag >>> 3) {
@@ -12835,21 +13382,45 @@ export const Jtt808SignalingDataMessage1212 = {
12835
13382
  if (tag !== 10) {
12836
13383
  break;
12837
13384
  }
12838
- message.name = reader.string();
13385
+ message.data = Data.decode(reader, reader.uint32());
12839
13386
  continue;
12840
13387
  }
12841
13388
  case 2: {
12842
- if (tag !== 16) {
13389
+ if (tag !== 18) {
12843
13390
  break;
12844
13391
  }
12845
- message.type = reader.int32();
13392
+ message.client = Client.decode(reader, reader.uint32());
12846
13393
  continue;
12847
13394
  }
12848
13395
  case 3: {
12849
- if (tag !== 24) {
13396
+ if (tag !== 26) {
12850
13397
  break;
12851
13398
  }
12852
- message.size = reader.uint32();
13399
+ const entry3 = Task_AlertIdNumberEntry.decode(reader, reader.uint32());
13400
+ if (entry3.value !== undefined) {
13401
+ message.alertIdNumber[entry3.key] = entry3.value;
13402
+ }
13403
+ continue;
13404
+ }
13405
+ case 4: {
13406
+ if (tag !== 32) {
13407
+ break;
13408
+ }
13409
+ message.imei = Long.fromString(reader.uint64().toString(), true);
13410
+ continue;
13411
+ }
13412
+ case 5: {
13413
+ if (tag !== 42) {
13414
+ break;
13415
+ }
13416
+ message.deviceData = DeviceData.decode(reader, reader.uint32());
13417
+ continue;
13418
+ }
13419
+ case 6: {
13420
+ if (tag !== 48) {
13421
+ break;
13422
+ }
13423
+ message.protocol = reader.int32();
12853
13424
  continue;
12854
13425
  }
12855
13426
  }
@@ -12861,33 +13432,45 @@ export const Jtt808SignalingDataMessage1212 = {
12861
13432
  return message;
12862
13433
  },
12863
13434
  create(base) {
12864
- return Jtt808SignalingDataMessage1212.fromPartial(base ?? {});
13435
+ return Task.fromPartial(base ?? {});
12865
13436
  },
12866
13437
  fromPartial(object) {
12867
- const message = createBaseJtt808SignalingDataMessage1212();
12868
- message.name = object.name ?? "";
12869
- message.type = object.type ?? 0;
12870
- message.size = object.size ?? 0;
13438
+ const message = createBaseTask();
13439
+ message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
13440
+ message.client = (object.client !== undefined && object.client !== null)
13441
+ ? Client.fromPartial(object.client)
13442
+ : undefined;
13443
+ message.alertIdNumber = globalThis.Object.entries(object.alertIdNumber ?? {}).reduce((acc, [key, value]) => {
13444
+ if (value !== undefined) {
13445
+ acc[globalThis.Number(key)] = value;
13446
+ }
13447
+ return acc;
13448
+ }, {});
13449
+ message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13450
+ message.deviceData = (object.deviceData !== undefined && object.deviceData !== null)
13451
+ ? DeviceData.fromPartial(object.deviceData)
13452
+ : undefined;
13453
+ message.protocol = object.protocol ?? 0;
12871
13454
  return message;
12872
13455
  },
12873
13456
  };
12874
- function createBaseConcoxLikeR31() {
12875
- return { id: 0, command: "" };
13457
+ function createBaseTask_AlertIdNumberEntry() {
13458
+ return { key: 0, value: new Uint8Array(0) };
12876
13459
  }
12877
- export const ConcoxLikeR31 = {
13460
+ export const Task_AlertIdNumberEntry = {
12878
13461
  encode(message, writer = new BinaryWriter()) {
12879
- if (message.id !== 0) {
12880
- writer.uint32(8).uint32(message.id);
13462
+ if (message.key !== 0) {
13463
+ writer.uint32(8).int32(message.key);
12881
13464
  }
12882
- if (message.command !== "") {
12883
- writer.uint32(18).string(message.command);
13465
+ if (message.value.length !== 0) {
13466
+ writer.uint32(18).bytes(message.value);
12884
13467
  }
12885
13468
  return writer;
12886
13469
  },
12887
13470
  decode(input, length) {
12888
13471
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12889
13472
  const end = length === undefined ? reader.len : reader.pos + length;
12890
- const message = createBaseConcoxLikeR31();
13473
+ const message = createBaseTask_AlertIdNumberEntry();
12891
13474
  while (reader.pos < end) {
12892
13475
  const tag = reader.uint32();
12893
13476
  switch (tag >>> 3) {
@@ -12895,14 +13478,14 @@ export const ConcoxLikeR31 = {
12895
13478
  if (tag !== 8) {
12896
13479
  break;
12897
13480
  }
12898
- message.id = reader.uint32();
13481
+ message.key = reader.int32();
12899
13482
  continue;
12900
13483
  }
12901
13484
  case 2: {
12902
13485
  if (tag !== 18) {
12903
13486
  break;
12904
13487
  }
12905
- message.command = reader.string();
13488
+ message.value = reader.bytes();
12906
13489
  continue;
12907
13490
  }
12908
13491
  }
@@ -12914,44 +13497,71 @@ export const ConcoxLikeR31 = {
12914
13497
  return message;
12915
13498
  },
12916
13499
  create(base) {
12917
- return ConcoxLikeR31.fromPartial(base ?? {});
13500
+ return Task_AlertIdNumberEntry.fromPartial(base ?? {});
12918
13501
  },
12919
13502
  fromPartial(object) {
12920
- const message = createBaseConcoxLikeR31();
12921
- message.id = object.id ?? 0;
12922
- message.command = object.command ?? "";
13503
+ const message = createBaseTask_AlertIdNumberEntry();
13504
+ message.key = object.key ?? 0;
13505
+ message.value = object.value ?? new Uint8Array(0);
12923
13506
  return message;
12924
13507
  },
12925
13508
  };
12926
- function createBaseConcoxRecording0x8d() {
12927
- return { fileType: 0, fileSize: 0, totalFiles: 0, currentSequence: 0, currentLength: 0, payload: new Uint8Array(0) };
13509
+ function createBaseDeviceStatus() {
13510
+ return {
13511
+ deviceId: Long.UZERO,
13512
+ imei: Long.UZERO,
13513
+ data: undefined,
13514
+ client: undefined,
13515
+ online: false,
13516
+ lastOnline: undefined,
13517
+ logs: [],
13518
+ stat: 0,
13519
+ protocol: 0,
13520
+ odyssey: undefined,
13521
+ fusion: undefined,
13522
+ };
12928
13523
  }
12929
- export const ConcoxRecording0x8d = {
13524
+ export const DeviceStatus = {
12930
13525
  encode(message, writer = new BinaryWriter()) {
12931
- if (message.fileType !== 0) {
12932
- writer.uint32(8).uint32(message.fileType);
13526
+ if (!message.deviceId.equals(Long.UZERO)) {
13527
+ writer.uint32(8).uint64(message.deviceId.toString());
12933
13528
  }
12934
- if (message.fileSize !== 0) {
12935
- writer.uint32(16).uint32(message.fileSize);
13529
+ if (!message.imei.equals(Long.UZERO)) {
13530
+ writer.uint32(16).uint64(message.imei.toString());
12936
13531
  }
12937
- if (message.totalFiles !== 0) {
12938
- writer.uint32(24).uint32(message.totalFiles);
13532
+ if (message.data !== undefined) {
13533
+ Data.encode(message.data, writer.uint32(26).fork()).join();
12939
13534
  }
12940
- if (message.currentSequence !== 0) {
12941
- writer.uint32(32).uint32(message.currentSequence);
13535
+ if (message.client !== undefined) {
13536
+ Client.encode(message.client, writer.uint32(34).fork()).join();
12942
13537
  }
12943
- if (message.currentLength !== 0) {
12944
- writer.uint32(40).uint32(message.currentLength);
13538
+ if (message.online !== false) {
13539
+ writer.uint32(40).bool(message.online);
12945
13540
  }
12946
- if (message.payload.length !== 0) {
12947
- writer.uint32(50).bytes(message.payload);
13541
+ if (message.lastOnline !== undefined) {
13542
+ Timestamp.encode(toTimestamp(message.lastOnline), writer.uint32(50).fork()).join();
13543
+ }
13544
+ for (const v of message.logs) {
13545
+ Log.encode(v, writer.uint32(58).fork()).join();
13546
+ }
13547
+ if (message.stat !== 0) {
13548
+ writer.uint32(64).int32(message.stat);
13549
+ }
13550
+ if (message.protocol !== 0) {
13551
+ writer.uint32(72).int32(message.protocol);
13552
+ }
13553
+ if (message.odyssey !== undefined) {
13554
+ OdysseyDevice.encode(message.odyssey, writer.uint32(170).fork()).join();
13555
+ }
13556
+ if (message.fusion !== undefined) {
13557
+ FusionDevice.encode(message.fusion, writer.uint32(178).fork()).join();
12948
13558
  }
12949
13559
  return writer;
12950
13560
  },
12951
13561
  decode(input, length) {
12952
13562
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12953
13563
  const end = length === undefined ? reader.len : reader.pos + length;
12954
- const message = createBaseConcoxRecording0x8d();
13564
+ const message = createBaseDeviceStatus();
12955
13565
  while (reader.pos < end) {
12956
13566
  const tag = reader.uint32();
12957
13567
  switch (tag >>> 3) {
@@ -12959,118 +13569,77 @@ export const ConcoxRecording0x8d = {
12959
13569
  if (tag !== 8) {
12960
13570
  break;
12961
13571
  }
12962
- message.fileType = reader.uint32();
13572
+ message.deviceId = Long.fromString(reader.uint64().toString(), true);
12963
13573
  continue;
12964
13574
  }
12965
13575
  case 2: {
12966
13576
  if (tag !== 16) {
12967
13577
  break;
12968
13578
  }
12969
- message.fileSize = reader.uint32();
13579
+ message.imei = Long.fromString(reader.uint64().toString(), true);
12970
13580
  continue;
12971
13581
  }
12972
13582
  case 3: {
12973
- if (tag !== 24) {
13583
+ if (tag !== 26) {
12974
13584
  break;
12975
13585
  }
12976
- message.totalFiles = reader.uint32();
13586
+ message.data = Data.decode(reader, reader.uint32());
12977
13587
  continue;
12978
13588
  }
12979
13589
  case 4: {
12980
- if (tag !== 32) {
13590
+ if (tag !== 34) {
12981
13591
  break;
12982
13592
  }
12983
- message.currentSequence = reader.uint32();
13593
+ message.client = Client.decode(reader, reader.uint32());
12984
13594
  continue;
12985
13595
  }
12986
13596
  case 5: {
12987
13597
  if (tag !== 40) {
12988
13598
  break;
12989
13599
  }
12990
- message.currentLength = reader.uint32();
13600
+ message.online = reader.bool();
12991
13601
  continue;
12992
13602
  }
12993
13603
  case 6: {
12994
13604
  if (tag !== 50) {
12995
13605
  break;
12996
13606
  }
12997
- message.payload = reader.bytes();
13607
+ message.lastOnline = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
12998
13608
  continue;
12999
13609
  }
13000
- }
13001
- if ((tag & 7) === 4 || tag === 0) {
13002
- break;
13003
- }
13004
- reader.skip(tag & 7);
13005
- }
13006
- return message;
13007
- },
13008
- create(base) {
13009
- return ConcoxRecording0x8d.fromPartial(base ?? {});
13010
- },
13011
- fromPartial(object) {
13012
- const message = createBaseConcoxRecording0x8d();
13013
- message.fileType = object.fileType ?? 0;
13014
- message.fileSize = object.fileSize ?? 0;
13015
- message.totalFiles = object.totalFiles ?? 0;
13016
- message.currentSequence = object.currentSequence ?? 0;
13017
- message.currentLength = object.currentLength ?? 0;
13018
- message.payload = object.payload ?? new Uint8Array(0);
13019
- return message;
13020
- },
13021
- };
13022
- function createBaseClient() {
13023
- return { remoteIp: "", remotePort: 0, localIp: "", localPort: 0 };
13024
- }
13025
- export const Client = {
13026
- encode(message, writer = new BinaryWriter()) {
13027
- if (message.remoteIp !== "") {
13028
- writer.uint32(10).string(message.remoteIp);
13029
- }
13030
- if (message.remotePort !== 0) {
13031
- writer.uint32(16).uint32(message.remotePort);
13032
- }
13033
- if (message.localIp !== "") {
13034
- writer.uint32(26).string(message.localIp);
13035
- }
13036
- if (message.localPort !== 0) {
13037
- writer.uint32(32).uint32(message.localPort);
13038
- }
13039
- return writer;
13040
- },
13041
- decode(input, length) {
13042
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13043
- const end = length === undefined ? reader.len : reader.pos + length;
13044
- const message = createBaseClient();
13045
- while (reader.pos < end) {
13046
- const tag = reader.uint32();
13047
- switch (tag >>> 3) {
13048
- case 1: {
13049
- if (tag !== 10) {
13610
+ case 7: {
13611
+ if (tag !== 58) {
13050
13612
  break;
13051
13613
  }
13052
- message.remoteIp = reader.string();
13614
+ message.logs.push(Log.decode(reader, reader.uint32()));
13053
13615
  continue;
13054
13616
  }
13055
- case 2: {
13056
- if (tag !== 16) {
13617
+ case 8: {
13618
+ if (tag !== 64) {
13057
13619
  break;
13058
13620
  }
13059
- message.remotePort = reader.uint32();
13621
+ message.stat = reader.int32();
13060
13622
  continue;
13061
13623
  }
13062
- case 3: {
13063
- if (tag !== 26) {
13624
+ case 9: {
13625
+ if (tag !== 72) {
13064
13626
  break;
13065
13627
  }
13066
- message.localIp = reader.string();
13628
+ message.protocol = reader.int32();
13067
13629
  continue;
13068
13630
  }
13069
- case 4: {
13070
- if (tag !== 32) {
13631
+ case 21: {
13632
+ if (tag !== 170) {
13633
+ break;
13634
+ }
13635
+ message.odyssey = OdysseyDevice.decode(reader, reader.uint32());
13636
+ continue;
13637
+ }
13638
+ case 22: {
13639
+ if (tag !== 178) {
13071
13640
  break;
13072
13641
  }
13073
- message.localPort = reader.uint32();
13642
+ message.fusion = FusionDevice.decode(reader, reader.uint32());
13074
13643
  continue;
13075
13644
  }
13076
13645
  }
@@ -13082,204 +13651,155 @@ export const Client = {
13082
13651
  return message;
13083
13652
  },
13084
13653
  create(base) {
13085
- return Client.fromPartial(base ?? {});
13654
+ return DeviceStatus.fromPartial(base ?? {});
13086
13655
  },
13087
13656
  fromPartial(object) {
13088
- const message = createBaseClient();
13089
- message.remoteIp = object.remoteIp ?? "";
13090
- message.remotePort = object.remotePort ?? 0;
13091
- message.localIp = object.localIp ?? "";
13092
- message.localPort = object.localPort ?? 0;
13657
+ const message = createBaseDeviceStatus();
13658
+ message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
13659
+ ? Long.fromValue(object.deviceId)
13660
+ : Long.UZERO;
13661
+ message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13662
+ message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
13663
+ message.client = (object.client !== undefined && object.client !== null)
13664
+ ? Client.fromPartial(object.client)
13665
+ : undefined;
13666
+ message.online = object.online ?? false;
13667
+ message.lastOnline = object.lastOnline ?? undefined;
13668
+ message.logs = object.logs?.map((e) => Log.fromPartial(e)) || [];
13669
+ message.stat = object.stat ?? 0;
13670
+ message.protocol = object.protocol ?? 0;
13671
+ message.odyssey = (object.odyssey !== undefined && object.odyssey !== null)
13672
+ ? OdysseyDevice.fromPartial(object.odyssey)
13673
+ : undefined;
13674
+ message.fusion = (object.fusion !== undefined && object.fusion !== null)
13675
+ ? FusionDevice.fromPartial(object.fusion)
13676
+ : undefined;
13093
13677
  return message;
13094
13678
  },
13095
13679
  };
13096
- function createBaseOdysseyDevice() {
13680
+ function createBaseJTT808AlarmData() {
13097
13681
  return {
13098
- id: Long.UZERO,
13099
- imei: Long.UZERO,
13100
- objectId: undefined,
13101
- objectType: 0,
13102
- timezone: "",
13103
- isUnlimited: false,
13104
- tripType: 0,
13105
- receiveAt: undefined,
13106
- expiresAt: undefined,
13107
- connectAt: undefined,
13108
- createdAt: undefined,
13109
- workflowTaskId: undefined,
13110
- organizationId: undefined,
13111
- generation: [],
13112
- module: undefined,
13682
+ alarmId: new Uint8Array(0),
13683
+ terminalId: Long.UZERO,
13684
+ datetime: undefined,
13685
+ serialNo: 0,
13686
+ attachments: 0,
13687
+ speed: 0,
13688
+ latitude: 0,
13689
+ longitude: 0,
13690
+ gpsTime: undefined,
13691
+ alarmType: 0,
13113
13692
  };
13114
13693
  }
13115
- export const OdysseyDevice = {
13694
+ export const JTT808AlarmData = {
13116
13695
  encode(message, writer = new BinaryWriter()) {
13117
- if (!message.id.equals(Long.UZERO)) {
13118
- writer.uint32(8).uint64(message.id.toString());
13119
- }
13120
- if (!message.imei.equals(Long.UZERO)) {
13121
- writer.uint32(16).uint64(message.imei.toString());
13122
- }
13123
- if (message.objectId !== undefined) {
13124
- writer.uint32(24).uint64(message.objectId.toString());
13125
- }
13126
- if (message.objectType !== 0) {
13127
- writer.uint32(32).int32(message.objectType);
13696
+ if (message.alarmId.length !== 0) {
13697
+ writer.uint32(10).bytes(message.alarmId);
13128
13698
  }
13129
- if (message.timezone !== "") {
13130
- writer.uint32(42).string(message.timezone);
13131
- }
13132
- if (message.isUnlimited !== false) {
13133
- writer.uint32(48).bool(message.isUnlimited);
13134
- }
13135
- if (message.tripType !== 0) {
13136
- writer.uint32(56).int32(message.tripType);
13699
+ if (!message.terminalId.equals(Long.UZERO)) {
13700
+ writer.uint32(16).uint64(message.terminalId.toString());
13137
13701
  }
13138
- if (message.receiveAt !== undefined) {
13139
- Timestamp.encode(toTimestamp(message.receiveAt), writer.uint32(66).fork()).join();
13702
+ if (message.datetime !== undefined) {
13703
+ Timestamp.encode(toTimestamp(message.datetime), writer.uint32(26).fork()).join();
13140
13704
  }
13141
- if (message.expiresAt !== undefined) {
13142
- Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(74).fork()).join();
13705
+ if (message.serialNo !== 0) {
13706
+ writer.uint32(32).uint32(message.serialNo);
13143
13707
  }
13144
- if (message.connectAt !== undefined) {
13145
- Timestamp.encode(toTimestamp(message.connectAt), writer.uint32(82).fork()).join();
13708
+ if (message.attachments !== 0) {
13709
+ writer.uint32(40).uint32(message.attachments);
13146
13710
  }
13147
- if (message.createdAt !== undefined) {
13148
- Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(90).fork()).join();
13711
+ if (message.speed !== 0) {
13712
+ writer.uint32(48).uint32(message.speed);
13149
13713
  }
13150
- if (message.workflowTaskId !== undefined) {
13151
- writer.uint32(96).uint64(message.workflowTaskId.toString());
13714
+ if (message.latitude !== 0) {
13715
+ writer.uint32(56).uint32(message.latitude);
13152
13716
  }
13153
- if (message.organizationId !== undefined) {
13154
- writer.uint32(104).uint64(message.organizationId.toString());
13717
+ if (message.longitude !== 0) {
13718
+ writer.uint32(64).uint32(message.longitude);
13155
13719
  }
13156
- writer.uint32(114).fork();
13157
- for (const v of message.generation) {
13158
- writer.uint64(v.toString());
13720
+ if (message.gpsTime !== undefined) {
13721
+ Timestamp.encode(toTimestamp(message.gpsTime), writer.uint32(74).fork()).join();
13159
13722
  }
13160
- writer.join();
13161
- if (message.module !== undefined) {
13162
- DataModule.encode(message.module, writer.uint32(122).fork()).join();
13723
+ if (message.alarmType !== 0) {
13724
+ writer.uint32(80).int32(message.alarmType);
13163
13725
  }
13164
13726
  return writer;
13165
13727
  },
13166
13728
  decode(input, length) {
13167
13729
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13168
13730
  const end = length === undefined ? reader.len : reader.pos + length;
13169
- const message = createBaseOdysseyDevice();
13731
+ const message = createBaseJTT808AlarmData();
13170
13732
  while (reader.pos < end) {
13171
13733
  const tag = reader.uint32();
13172
13734
  switch (tag >>> 3) {
13173
13735
  case 1: {
13174
- if (tag !== 8) {
13736
+ if (tag !== 10) {
13175
13737
  break;
13176
13738
  }
13177
- message.id = Long.fromString(reader.uint64().toString(), true);
13739
+ message.alarmId = reader.bytes();
13178
13740
  continue;
13179
13741
  }
13180
13742
  case 2: {
13181
13743
  if (tag !== 16) {
13182
13744
  break;
13183
13745
  }
13184
- message.imei = Long.fromString(reader.uint64().toString(), true);
13746
+ message.terminalId = Long.fromString(reader.uint64().toString(), true);
13185
13747
  continue;
13186
13748
  }
13187
13749
  case 3: {
13188
- if (tag !== 24) {
13750
+ if (tag !== 26) {
13189
13751
  break;
13190
13752
  }
13191
- message.objectId = Long.fromString(reader.uint64().toString(), true);
13753
+ message.datetime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13192
13754
  continue;
13193
13755
  }
13194
13756
  case 4: {
13195
13757
  if (tag !== 32) {
13196
13758
  break;
13197
13759
  }
13198
- message.objectType = reader.int32();
13760
+ message.serialNo = reader.uint32();
13199
13761
  continue;
13200
13762
  }
13201
13763
  case 5: {
13202
- if (tag !== 42) {
13764
+ if (tag !== 40) {
13203
13765
  break;
13204
13766
  }
13205
- message.timezone = reader.string();
13767
+ message.attachments = reader.uint32();
13206
13768
  continue;
13207
13769
  }
13208
13770
  case 6: {
13209
13771
  if (tag !== 48) {
13210
13772
  break;
13211
13773
  }
13212
- message.isUnlimited = reader.bool();
13774
+ message.speed = reader.uint32();
13213
13775
  continue;
13214
13776
  }
13215
13777
  case 7: {
13216
13778
  if (tag !== 56) {
13217
13779
  break;
13218
13780
  }
13219
- message.tripType = reader.int32();
13781
+ message.latitude = reader.uint32();
13220
13782
  continue;
13221
13783
  }
13222
13784
  case 8: {
13223
- if (tag !== 66) {
13785
+ if (tag !== 64) {
13224
13786
  break;
13225
13787
  }
13226
- message.receiveAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13788
+ message.longitude = reader.uint32();
13227
13789
  continue;
13228
13790
  }
13229
13791
  case 9: {
13230
13792
  if (tag !== 74) {
13231
13793
  break;
13232
13794
  }
13233
- message.expiresAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13795
+ message.gpsTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13234
13796
  continue;
13235
13797
  }
13236
13798
  case 10: {
13237
- if (tag !== 82) {
13238
- break;
13239
- }
13240
- message.connectAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13241
- continue;
13242
- }
13243
- case 11: {
13244
- if (tag !== 90) {
13245
- break;
13246
- }
13247
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13248
- continue;
13249
- }
13250
- case 12: {
13251
- if (tag !== 96) {
13252
- break;
13253
- }
13254
- message.workflowTaskId = Long.fromString(reader.uint64().toString(), true);
13255
- continue;
13256
- }
13257
- case 13: {
13258
- if (tag !== 104) {
13259
- break;
13260
- }
13261
- message.organizationId = Long.fromString(reader.uint64().toString(), true);
13262
- continue;
13263
- }
13264
- case 14: {
13265
- if (tag === 112) {
13266
- message.generation.push(Long.fromString(reader.uint64().toString(), true));
13267
- continue;
13268
- }
13269
- if (tag === 114) {
13270
- const end2 = reader.uint32() + reader.pos;
13271
- while (reader.pos < end2) {
13272
- message.generation.push(Long.fromString(reader.uint64().toString(), true));
13273
- }
13274
- continue;
13275
- }
13276
- break;
13277
- }
13278
- case 15: {
13279
- if (tag !== 122) {
13799
+ if (tag !== 80) {
13280
13800
  break;
13281
13801
  }
13282
- message.module = DataModule.decode(reader, reader.uint32());
13802
+ message.alarmType = reader.int32();
13283
13803
  continue;
13284
13804
  }
13285
13805
  }
@@ -13291,110 +13811,45 @@ export const OdysseyDevice = {
13291
13811
  return message;
13292
13812
  },
13293
13813
  create(base) {
13294
- return OdysseyDevice.fromPartial(base ?? {});
13814
+ return JTT808AlarmData.fromPartial(base ?? {});
13295
13815
  },
13296
13816
  fromPartial(object) {
13297
- const message = createBaseOdysseyDevice();
13298
- message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
13299
- message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13300
- message.objectId = (object.objectId !== undefined && object.objectId !== null)
13301
- ? Long.fromValue(object.objectId)
13302
- : undefined;
13303
- message.objectType = object.objectType ?? 0;
13304
- message.timezone = object.timezone ?? "";
13305
- message.isUnlimited = object.isUnlimited ?? false;
13306
- message.tripType = object.tripType ?? 0;
13307
- message.receiveAt = object.receiveAt ?? undefined;
13308
- message.expiresAt = object.expiresAt ?? undefined;
13309
- message.connectAt = object.connectAt ?? undefined;
13310
- message.createdAt = object.createdAt ?? undefined;
13311
- message.workflowTaskId = (object.workflowTaskId !== undefined && object.workflowTaskId !== null)
13312
- ? Long.fromValue(object.workflowTaskId)
13313
- : undefined;
13314
- message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
13315
- ? Long.fromValue(object.organizationId)
13316
- : undefined;
13317
- message.generation = object.generation?.map((e) => Long.fromValue(e)) || [];
13318
- message.module = (object.module !== undefined && object.module !== null)
13319
- ? DataModule.fromPartial(object.module)
13320
- : undefined;
13817
+ const message = createBaseJTT808AlarmData();
13818
+ message.alarmId = object.alarmId ?? new Uint8Array(0);
13819
+ message.terminalId = (object.terminalId !== undefined && object.terminalId !== null)
13820
+ ? Long.fromValue(object.terminalId)
13821
+ : Long.UZERO;
13822
+ message.datetime = object.datetime ?? undefined;
13823
+ message.serialNo = object.serialNo ?? 0;
13824
+ message.attachments = object.attachments ?? 0;
13825
+ message.speed = object.speed ?? 0;
13826
+ message.latitude = object.latitude ?? 0;
13827
+ message.longitude = object.longitude ?? 0;
13828
+ message.gpsTime = object.gpsTime ?? undefined;
13829
+ message.alarmType = object.alarmType ?? 0;
13321
13830
  return message;
13322
13831
  },
13323
13832
  };
13324
- function createBaseFusionDevice() {
13325
- return {
13326
- deviceId: Long.UZERO,
13327
- carId: undefined,
13328
- imei: Long.UZERO,
13329
- ignitionSource: 0,
13330
- timezone: undefined,
13331
- fcmToken: undefined,
13332
- isFreeUse: false,
13333
- canReceiveFrom: Long.ZERO,
13334
- expireTime: Long.ZERO,
13335
- odoType: 0,
13336
- firstConnect: Long.ZERO,
13337
- tripType: 0,
13338
- createdAt: Long.ZERO,
13339
- organizationId: undefined,
13340
- generation: [],
13341
- };
13833
+ function createBaseJTT808MediaRetrieval0802() {
13834
+ return { serialNo: 0, mediaCounter: 0, items: [] };
13342
13835
  }
13343
- export const FusionDevice = {
13344
- encode(message, writer = new BinaryWriter()) {
13345
- if (!message.deviceId.equals(Long.UZERO)) {
13346
- writer.uint32(8).uint64(message.deviceId.toString());
13347
- }
13348
- if (message.carId !== undefined) {
13349
- writer.uint32(16).uint64(message.carId.toString());
13350
- }
13351
- if (!message.imei.equals(Long.UZERO)) {
13352
- writer.uint32(24).uint64(message.imei.toString());
13353
- }
13354
- if (message.ignitionSource !== 0) {
13355
- writer.uint32(32).int32(message.ignitionSource);
13356
- }
13357
- if (message.timezone !== undefined) {
13358
- writer.uint32(42).string(message.timezone);
13359
- }
13360
- if (message.fcmToken !== undefined) {
13361
- writer.uint32(50).string(message.fcmToken);
13362
- }
13363
- if (message.isFreeUse !== false) {
13364
- writer.uint32(56).bool(message.isFreeUse);
13365
- }
13366
- if (!message.canReceiveFrom.equals(Long.ZERO)) {
13367
- writer.uint32(64).int64(message.canReceiveFrom.toString());
13368
- }
13369
- if (!message.expireTime.equals(Long.ZERO)) {
13370
- writer.uint32(72).int64(message.expireTime.toString());
13371
- }
13372
- if (message.odoType !== 0) {
13373
- writer.uint32(80).uint32(message.odoType);
13374
- }
13375
- if (!message.firstConnect.equals(Long.ZERO)) {
13376
- writer.uint32(88).int64(message.firstConnect.toString());
13377
- }
13378
- if (message.tripType !== 0) {
13379
- writer.uint32(96).uint32(message.tripType);
13380
- }
13381
- if (!message.createdAt.equals(Long.ZERO)) {
13382
- writer.uint32(104).int64(message.createdAt.toString());
13836
+ export const JTT808MediaRetrieval0802 = {
13837
+ encode(message, writer = new BinaryWriter()) {
13838
+ if (message.serialNo !== 0) {
13839
+ writer.uint32(8).uint32(message.serialNo);
13383
13840
  }
13384
- if (message.organizationId !== undefined) {
13385
- writer.uint32(120).uint64(message.organizationId.toString());
13841
+ if (message.mediaCounter !== 0) {
13842
+ writer.uint32(16).uint32(message.mediaCounter);
13386
13843
  }
13387
- writer.uint32(130).fork();
13388
- for (const v of message.generation) {
13389
- writer.uint64(v.toString());
13844
+ for (const v of message.items) {
13845
+ JTT808MediaRetrieval0802_Item.encode(v, writer.uint32(26).fork()).join();
13390
13846
  }
13391
- writer.join();
13392
13847
  return writer;
13393
13848
  },
13394
13849
  decode(input, length) {
13395
13850
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13396
13851
  const end = length === undefined ? reader.len : reader.pos + length;
13397
- const message = createBaseFusionDevice();
13852
+ const message = createBaseJTT808MediaRetrieval0802();
13398
13853
  while (reader.pos < end) {
13399
13854
  const tag = reader.uint32();
13400
13855
  switch (tag >>> 3) {
@@ -13402,114 +13857,173 @@ export const FusionDevice = {
13402
13857
  if (tag !== 8) {
13403
13858
  break;
13404
13859
  }
13405
- message.deviceId = Long.fromString(reader.uint64().toString(), true);
13860
+ message.serialNo = reader.uint32();
13406
13861
  continue;
13407
13862
  }
13408
13863
  case 2: {
13409
13864
  if (tag !== 16) {
13410
13865
  break;
13411
13866
  }
13412
- message.carId = Long.fromString(reader.uint64().toString(), true);
13867
+ message.mediaCounter = reader.uint32();
13413
13868
  continue;
13414
13869
  }
13415
13870
  case 3: {
13416
- if (tag !== 24) {
13417
- break;
13418
- }
13419
- message.imei = Long.fromString(reader.uint64().toString(), true);
13420
- continue;
13421
- }
13422
- case 4: {
13423
- if (tag !== 32) {
13424
- break;
13425
- }
13426
- message.ignitionSource = reader.int32();
13427
- continue;
13428
- }
13429
- case 5: {
13430
- if (tag !== 42) {
13431
- break;
13432
- }
13433
- message.timezone = reader.string();
13434
- continue;
13435
- }
13436
- case 6: {
13437
- if (tag !== 50) {
13871
+ if (tag !== 26) {
13438
13872
  break;
13439
13873
  }
13440
- message.fcmToken = reader.string();
13874
+ message.items.push(JTT808MediaRetrieval0802_Item.decode(reader, reader.uint32()));
13441
13875
  continue;
13442
13876
  }
13443
- case 7: {
13444
- if (tag !== 56) {
13877
+ }
13878
+ if ((tag & 7) === 4 || tag === 0) {
13879
+ break;
13880
+ }
13881
+ reader.skip(tag & 7);
13882
+ }
13883
+ return message;
13884
+ },
13885
+ create(base) {
13886
+ return JTT808MediaRetrieval0802.fromPartial(base ?? {});
13887
+ },
13888
+ fromPartial(object) {
13889
+ const message = createBaseJTT808MediaRetrieval0802();
13890
+ message.serialNo = object.serialNo ?? 0;
13891
+ message.mediaCounter = object.mediaCounter ?? 0;
13892
+ message.items = object.items?.map((e) => JTT808MediaRetrieval0802_Item.fromPartial(e)) || [];
13893
+ return message;
13894
+ },
13895
+ };
13896
+ function createBaseJTT808MediaRetrieval0802_Item() {
13897
+ return { multimediaId: 0, multimediaType: 0, channelId: 0, eventItemEncoding: 0, location: undefined };
13898
+ }
13899
+ export const JTT808MediaRetrieval0802_Item = {
13900
+ encode(message, writer = new BinaryWriter()) {
13901
+ if (message.multimediaId !== 0) {
13902
+ writer.uint32(8).uint32(message.multimediaId);
13903
+ }
13904
+ if (message.multimediaType !== 0) {
13905
+ writer.uint32(16).uint32(message.multimediaType);
13906
+ }
13907
+ if (message.channelId !== 0) {
13908
+ writer.uint32(24).uint32(message.channelId);
13909
+ }
13910
+ if (message.eventItemEncoding !== 0) {
13911
+ writer.uint32(32).uint32(message.eventItemEncoding);
13912
+ }
13913
+ if (message.location !== undefined) {
13914
+ Data.encode(message.location, writer.uint32(42).fork()).join();
13915
+ }
13916
+ return writer;
13917
+ },
13918
+ decode(input, length) {
13919
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13920
+ const end = length === undefined ? reader.len : reader.pos + length;
13921
+ const message = createBaseJTT808MediaRetrieval0802_Item();
13922
+ while (reader.pos < end) {
13923
+ const tag = reader.uint32();
13924
+ switch (tag >>> 3) {
13925
+ case 1: {
13926
+ if (tag !== 8) {
13445
13927
  break;
13446
13928
  }
13447
- message.isFreeUse = reader.bool();
13929
+ message.multimediaId = reader.uint32();
13448
13930
  continue;
13449
13931
  }
13450
- case 8: {
13451
- if (tag !== 64) {
13932
+ case 2: {
13933
+ if (tag !== 16) {
13452
13934
  break;
13453
13935
  }
13454
- message.canReceiveFrom = Long.fromString(reader.int64().toString());
13936
+ message.multimediaType = reader.uint32();
13455
13937
  continue;
13456
13938
  }
13457
- case 9: {
13458
- if (tag !== 72) {
13939
+ case 3: {
13940
+ if (tag !== 24) {
13459
13941
  break;
13460
13942
  }
13461
- message.expireTime = Long.fromString(reader.int64().toString());
13943
+ message.channelId = reader.uint32();
13462
13944
  continue;
13463
13945
  }
13464
- case 10: {
13465
- if (tag !== 80) {
13946
+ case 4: {
13947
+ if (tag !== 32) {
13466
13948
  break;
13467
13949
  }
13468
- message.odoType = reader.uint32();
13950
+ message.eventItemEncoding = reader.uint32();
13469
13951
  continue;
13470
13952
  }
13471
- case 11: {
13472
- if (tag !== 88) {
13953
+ case 5: {
13954
+ if (tag !== 42) {
13473
13955
  break;
13474
13956
  }
13475
- message.firstConnect = Long.fromString(reader.int64().toString());
13957
+ message.location = Data.decode(reader, reader.uint32());
13476
13958
  continue;
13477
13959
  }
13478
- case 12: {
13479
- if (tag !== 96) {
13960
+ }
13961
+ if ((tag & 7) === 4 || tag === 0) {
13962
+ break;
13963
+ }
13964
+ reader.skip(tag & 7);
13965
+ }
13966
+ return message;
13967
+ },
13968
+ create(base) {
13969
+ return JTT808MediaRetrieval0802_Item.fromPartial(base ?? {});
13970
+ },
13971
+ fromPartial(object) {
13972
+ const message = createBaseJTT808MediaRetrieval0802_Item();
13973
+ message.multimediaId = object.multimediaId ?? 0;
13974
+ message.multimediaType = object.multimediaType ?? 0;
13975
+ message.channelId = object.channelId ?? 0;
13976
+ message.eventItemEncoding = object.eventItemEncoding ?? 0;
13977
+ message.location = (object.location !== undefined && object.location !== null)
13978
+ ? Data.fromPartial(object.location)
13979
+ : undefined;
13980
+ return message;
13981
+ },
13982
+ };
13983
+ function createBaseDeviceConnectionStatus() {
13984
+ return { deviceId: Long.UZERO, online: false, timestamp: undefined };
13985
+ }
13986
+ export const DeviceConnectionStatus = {
13987
+ encode(message, writer = new BinaryWriter()) {
13988
+ if (!message.deviceId.equals(Long.UZERO)) {
13989
+ writer.uint32(8).uint64(message.deviceId.toString());
13990
+ }
13991
+ if (message.online !== false) {
13992
+ writer.uint32(16).bool(message.online);
13993
+ }
13994
+ if (message.timestamp !== undefined) {
13995
+ Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).join();
13996
+ }
13997
+ return writer;
13998
+ },
13999
+ decode(input, length) {
14000
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
14001
+ const end = length === undefined ? reader.len : reader.pos + length;
14002
+ const message = createBaseDeviceConnectionStatus();
14003
+ while (reader.pos < end) {
14004
+ const tag = reader.uint32();
14005
+ switch (tag >>> 3) {
14006
+ case 1: {
14007
+ if (tag !== 8) {
13480
14008
  break;
13481
14009
  }
13482
- message.tripType = reader.uint32();
14010
+ message.deviceId = Long.fromString(reader.uint64().toString(), true);
13483
14011
  continue;
13484
14012
  }
13485
- case 13: {
13486
- if (tag !== 104) {
14013
+ case 2: {
14014
+ if (tag !== 16) {
13487
14015
  break;
13488
14016
  }
13489
- message.createdAt = Long.fromString(reader.int64().toString());
14017
+ message.online = reader.bool();
13490
14018
  continue;
13491
14019
  }
13492
- case 15: {
13493
- if (tag !== 120) {
14020
+ case 3: {
14021
+ if (tag !== 26) {
13494
14022
  break;
13495
14023
  }
13496
- message.organizationId = Long.fromString(reader.uint64().toString(), true);
14024
+ message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13497
14025
  continue;
13498
14026
  }
13499
- case 16: {
13500
- if (tag === 128) {
13501
- message.generation.push(Long.fromString(reader.uint64().toString(), true));
13502
- continue;
13503
- }
13504
- if (tag === 130) {
13505
- const end2 = reader.uint32() + reader.pos;
13506
- while (reader.pos < end2) {
13507
- message.generation.push(Long.fromString(reader.uint64().toString(), true));
13508
- }
13509
- continue;
13510
- }
13511
- break;
13512
- }
13513
14027
  }
13514
14028
  if ((tag & 7) === 4 || tag === 0) {
13515
14029
  break;
@@ -13519,82 +14033,108 @@ export const FusionDevice = {
13519
14033
  return message;
13520
14034
  },
13521
14035
  create(base) {
13522
- return FusionDevice.fromPartial(base ?? {});
14036
+ return DeviceConnectionStatus.fromPartial(base ?? {});
13523
14037
  },
13524
14038
  fromPartial(object) {
13525
- const message = createBaseFusionDevice();
14039
+ const message = createBaseDeviceConnectionStatus();
13526
14040
  message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
13527
14041
  ? Long.fromValue(object.deviceId)
13528
14042
  : Long.UZERO;
13529
- message.carId = (object.carId !== undefined && object.carId !== null) ? Long.fromValue(object.carId) : undefined;
13530
- message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13531
- message.ignitionSource = object.ignitionSource ?? 0;
13532
- message.timezone = object.timezone ?? undefined;
13533
- message.fcmToken = object.fcmToken ?? undefined;
13534
- message.isFreeUse = object.isFreeUse ?? false;
13535
- message.canReceiveFrom = (object.canReceiveFrom !== undefined && object.canReceiveFrom !== null)
13536
- ? Long.fromValue(object.canReceiveFrom)
13537
- : Long.ZERO;
13538
- message.expireTime = (object.expireTime !== undefined && object.expireTime !== null)
13539
- ? Long.fromValue(object.expireTime)
13540
- : Long.ZERO;
13541
- message.odoType = object.odoType ?? 0;
13542
- message.firstConnect = (object.firstConnect !== undefined && object.firstConnect !== null)
13543
- ? Long.fromValue(object.firstConnect)
13544
- : Long.ZERO;
13545
- message.tripType = object.tripType ?? 0;
13546
- message.createdAt = (object.createdAt !== undefined && object.createdAt !== null)
13547
- ? Long.fromValue(object.createdAt)
13548
- : Long.ZERO;
13549
- message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
13550
- ? Long.fromValue(object.organizationId)
13551
- : undefined;
13552
- message.generation = object.generation?.map((e) => Long.fromValue(e)) || [];
14043
+ message.online = object.online ?? false;
14044
+ message.timestamp = object.timestamp ?? undefined;
13553
14045
  return message;
13554
14046
  },
13555
14047
  };
13556
- function createBaseDeviceData() {
13557
- return { fusionDevice: undefined, odysseyDevice: undefined, fetchedAt: Long.ZERO };
14048
+ function createBaseForgeDecoder() {
14049
+ return {
14050
+ deviceId: Long.UZERO,
14051
+ serialNo: 0,
14052
+ protocol: 0,
14053
+ rawString: undefined,
14054
+ exception: undefined,
14055
+ jttLiveStatusUpdate: undefined,
14056
+ jttQueryFileResponse: undefined,
14057
+ };
13558
14058
  }
13559
- export const DeviceData = {
14059
+ export const ForgeDecoder = {
13560
14060
  encode(message, writer = new BinaryWriter()) {
13561
- if (message.fusionDevice !== undefined) {
13562
- FusionDevice.encode(message.fusionDevice, writer.uint32(10).fork()).join();
14061
+ if (!message.deviceId.equals(Long.UZERO)) {
14062
+ writer.uint32(8).uint64(message.deviceId.toString());
13563
14063
  }
13564
- if (message.odysseyDevice !== undefined) {
13565
- OdysseyDevice.encode(message.odysseyDevice, writer.uint32(18).fork()).join();
14064
+ if (message.serialNo !== 0) {
14065
+ writer.uint32(16).uint32(message.serialNo);
13566
14066
  }
13567
- if (!message.fetchedAt.equals(Long.ZERO)) {
13568
- writer.uint32(24).int64(message.fetchedAt.toString());
14067
+ if (message.protocol !== 0) {
14068
+ writer.uint32(24).int32(message.protocol);
14069
+ }
14070
+ if (message.rawString !== undefined) {
14071
+ writer.uint32(90).string(message.rawString);
14072
+ }
14073
+ if (message.exception !== undefined) {
14074
+ ForgeException.encode(message.exception, writer.uint32(98).fork()).join();
14075
+ }
14076
+ if (message.jttLiveStatusUpdate !== undefined) {
14077
+ JTTLiveStatusUpdate.encode(message.jttLiveStatusUpdate, writer.uint32(170).fork()).join();
14078
+ }
14079
+ if (message.jttQueryFileResponse !== undefined) {
14080
+ JTTQueryFileResponse.encode(message.jttQueryFileResponse, writer.uint32(178).fork()).join();
13569
14081
  }
13570
14082
  return writer;
13571
14083
  },
13572
14084
  decode(input, length) {
13573
14085
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13574
14086
  const end = length === undefined ? reader.len : reader.pos + length;
13575
- const message = createBaseDeviceData();
14087
+ const message = createBaseForgeDecoder();
13576
14088
  while (reader.pos < end) {
13577
14089
  const tag = reader.uint32();
13578
14090
  switch (tag >>> 3) {
13579
14091
  case 1: {
13580
- if (tag !== 10) {
14092
+ if (tag !== 8) {
13581
14093
  break;
13582
14094
  }
13583
- message.fusionDevice = FusionDevice.decode(reader, reader.uint32());
14095
+ message.deviceId = Long.fromString(reader.uint64().toString(), true);
13584
14096
  continue;
13585
14097
  }
13586
14098
  case 2: {
13587
- if (tag !== 18) {
14099
+ if (tag !== 16) {
13588
14100
  break;
13589
14101
  }
13590
- message.odysseyDevice = OdysseyDevice.decode(reader, reader.uint32());
14102
+ message.serialNo = reader.uint32();
13591
14103
  continue;
13592
14104
  }
13593
14105
  case 3: {
13594
14106
  if (tag !== 24) {
13595
14107
  break;
13596
14108
  }
13597
- message.fetchedAt = Long.fromString(reader.int64().toString());
14109
+ message.protocol = reader.int32();
14110
+ continue;
14111
+ }
14112
+ case 11: {
14113
+ if (tag !== 90) {
14114
+ break;
14115
+ }
14116
+ message.rawString = reader.string();
14117
+ continue;
14118
+ }
14119
+ case 12: {
14120
+ if (tag !== 98) {
14121
+ break;
14122
+ }
14123
+ message.exception = ForgeException.decode(reader, reader.uint32());
14124
+ continue;
14125
+ }
14126
+ case 21: {
14127
+ if (tag !== 170) {
14128
+ break;
14129
+ }
14130
+ message.jttLiveStatusUpdate = JTTLiveStatusUpdate.decode(reader, reader.uint32());
14131
+ continue;
14132
+ }
14133
+ case 22: {
14134
+ if (tag !== 178) {
14135
+ break;
14136
+ }
14137
+ message.jttQueryFileResponse = JTTQueryFileResponse.decode(reader, reader.uint32());
13598
14138
  continue;
13599
14139
  }
13600
14140
  }
@@ -13606,104 +14146,162 @@ export const DeviceData = {
13606
14146
  return message;
13607
14147
  },
13608
14148
  create(base) {
13609
- return DeviceData.fromPartial(base ?? {});
14149
+ return ForgeDecoder.fromPartial(base ?? {});
13610
14150
  },
13611
14151
  fromPartial(object) {
13612
- const message = createBaseDeviceData();
13613
- message.fusionDevice = (object.fusionDevice !== undefined && object.fusionDevice !== null)
13614
- ? FusionDevice.fromPartial(object.fusionDevice)
14152
+ const message = createBaseForgeDecoder();
14153
+ message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
14154
+ ? Long.fromValue(object.deviceId)
14155
+ : Long.UZERO;
14156
+ message.serialNo = object.serialNo ?? 0;
14157
+ message.protocol = object.protocol ?? 0;
14158
+ message.rawString = object.rawString ?? undefined;
14159
+ message.exception = (object.exception !== undefined && object.exception !== null)
14160
+ ? ForgeException.fromPartial(object.exception)
13615
14161
  : undefined;
13616
- message.odysseyDevice = (object.odysseyDevice !== undefined && object.odysseyDevice !== null)
13617
- ? OdysseyDevice.fromPartial(object.odysseyDevice)
14162
+ message.jttLiveStatusUpdate = (object.jttLiveStatusUpdate !== undefined && object.jttLiveStatusUpdate !== null)
14163
+ ? JTTLiveStatusUpdate.fromPartial(object.jttLiveStatusUpdate)
14164
+ : undefined;
14165
+ message.jttQueryFileResponse = (object.jttQueryFileResponse !== undefined && object.jttQueryFileResponse !== null)
14166
+ ? JTTQueryFileResponse.fromPartial(object.jttQueryFileResponse)
13618
14167
  : undefined;
13619
- message.fetchedAt = (object.fetchedAt !== undefined && object.fetchedAt !== null)
13620
- ? Long.fromValue(object.fetchedAt)
13621
- : Long.ZERO;
13622
14168
  return message;
13623
14169
  },
13624
14170
  };
13625
- function createBaseTask() {
14171
+ function createBaseForgeEncoder() {
13626
14172
  return {
13627
- data: undefined,
13628
- client: undefined,
13629
- alertIdNumber: {},
13630
- imei: Long.UZERO,
13631
- deviceData: undefined,
14173
+ deviceId: Long.UZERO,
14174
+ serialNo: 0,
13632
14175
  protocol: 0,
14176
+ rawString: undefined,
14177
+ rawStingWithProps: undefined,
14178
+ jttLiveVideoRequest: undefined,
14179
+ jttLiveVideoUpdate: undefined,
14180
+ jttQueryFileRequest: undefined,
14181
+ jttPlaybackRequest: undefined,
14182
+ jttPlaybackUpdate: undefined,
14183
+ jttMediaUploadRequest: undefined,
13633
14184
  };
13634
14185
  }
13635
- export const Task = {
14186
+ export const ForgeEncoder = {
13636
14187
  encode(message, writer = new BinaryWriter()) {
13637
- if (message.data !== undefined) {
13638
- Data.encode(message.data, writer.uint32(10).fork()).join();
14188
+ if (!message.deviceId.equals(Long.UZERO)) {
14189
+ writer.uint32(8).uint64(message.deviceId.toString());
13639
14190
  }
13640
- if (message.client !== undefined) {
13641
- Client.encode(message.client, writer.uint32(18).fork()).join();
14191
+ if (message.serialNo !== 0) {
14192
+ writer.uint32(16).uint32(message.serialNo);
13642
14193
  }
13643
- Object.entries(message.alertIdNumber).forEach(([key, value]) => {
13644
- Task_AlertIdNumberEntry.encode({ key: key, value }, writer.uint32(26).fork()).join();
13645
- });
13646
- if (!message.imei.equals(Long.UZERO)) {
13647
- writer.uint32(32).uint64(message.imei.toString());
14194
+ if (message.protocol !== 0) {
14195
+ writer.uint32(24).int32(message.protocol);
13648
14196
  }
13649
- if (message.deviceData !== undefined) {
13650
- DeviceData.encode(message.deviceData, writer.uint32(42).fork()).join();
14197
+ if (message.rawString !== undefined) {
14198
+ writer.uint32(90).string(message.rawString);
13651
14199
  }
13652
- if (message.protocol !== 0) {
13653
- writer.uint32(48).int32(message.protocol);
14200
+ if (message.rawStingWithProps !== undefined) {
14201
+ RawStingWithProps.encode(message.rawStingWithProps, writer.uint32(98).fork()).join();
14202
+ }
14203
+ if (message.jttLiveVideoRequest !== undefined) {
14204
+ JTTLiveRequest.encode(message.jttLiveVideoRequest, writer.uint32(170).fork()).join();
14205
+ }
14206
+ if (message.jttLiveVideoUpdate !== undefined) {
14207
+ JTTLiveUpdate.encode(message.jttLiveVideoUpdate, writer.uint32(178).fork()).join();
14208
+ }
14209
+ if (message.jttQueryFileRequest !== undefined) {
14210
+ JTTQueryFileRequest.encode(message.jttQueryFileRequest, writer.uint32(186).fork()).join();
14211
+ }
14212
+ if (message.jttPlaybackRequest !== undefined) {
14213
+ JTTPlaybackRequest.encode(message.jttPlaybackRequest, writer.uint32(194).fork()).join();
14214
+ }
14215
+ if (message.jttPlaybackUpdate !== undefined) {
14216
+ JTTPlaybackUpdate.encode(message.jttPlaybackUpdate, writer.uint32(202).fork()).join();
14217
+ }
14218
+ if (message.jttMediaUploadRequest !== undefined) {
14219
+ RequestAlertMediaUpload.encode(message.jttMediaUploadRequest, writer.uint32(210).fork()).join();
13654
14220
  }
13655
14221
  return writer;
13656
14222
  },
13657
14223
  decode(input, length) {
13658
14224
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13659
14225
  const end = length === undefined ? reader.len : reader.pos + length;
13660
- const message = createBaseTask();
14226
+ const message = createBaseForgeEncoder();
13661
14227
  while (reader.pos < end) {
13662
14228
  const tag = reader.uint32();
13663
14229
  switch (tag >>> 3) {
13664
14230
  case 1: {
13665
- if (tag !== 10) {
14231
+ if (tag !== 8) {
13666
14232
  break;
13667
14233
  }
13668
- message.data = Data.decode(reader, reader.uint32());
14234
+ message.deviceId = Long.fromString(reader.uint64().toString(), true);
13669
14235
  continue;
13670
14236
  }
13671
14237
  case 2: {
13672
- if (tag !== 18) {
14238
+ if (tag !== 16) {
13673
14239
  break;
13674
14240
  }
13675
- message.client = Client.decode(reader, reader.uint32());
14241
+ message.serialNo = reader.uint32();
13676
14242
  continue;
13677
14243
  }
13678
14244
  case 3: {
13679
- if (tag !== 26) {
14245
+ if (tag !== 24) {
13680
14246
  break;
13681
14247
  }
13682
- const entry3 = Task_AlertIdNumberEntry.decode(reader, reader.uint32());
13683
- if (entry3.value !== undefined) {
13684
- message.alertIdNumber[entry3.key] = entry3.value;
14248
+ message.protocol = reader.int32();
14249
+ continue;
14250
+ }
14251
+ case 11: {
14252
+ if (tag !== 90) {
14253
+ break;
13685
14254
  }
14255
+ message.rawString = reader.string();
13686
14256
  continue;
13687
14257
  }
13688
- case 4: {
13689
- if (tag !== 32) {
14258
+ case 12: {
14259
+ if (tag !== 98) {
13690
14260
  break;
13691
14261
  }
13692
- message.imei = Long.fromString(reader.uint64().toString(), true);
14262
+ message.rawStingWithProps = RawStingWithProps.decode(reader, reader.uint32());
13693
14263
  continue;
13694
14264
  }
13695
- case 5: {
13696
- if (tag !== 42) {
14265
+ case 21: {
14266
+ if (tag !== 170) {
13697
14267
  break;
13698
14268
  }
13699
- message.deviceData = DeviceData.decode(reader, reader.uint32());
14269
+ message.jttLiveVideoRequest = JTTLiveRequest.decode(reader, reader.uint32());
13700
14270
  continue;
13701
14271
  }
13702
- case 6: {
13703
- if (tag !== 48) {
14272
+ case 22: {
14273
+ if (tag !== 178) {
13704
14274
  break;
13705
14275
  }
13706
- message.protocol = reader.int32();
14276
+ message.jttLiveVideoUpdate = JTTLiveUpdate.decode(reader, reader.uint32());
14277
+ continue;
14278
+ }
14279
+ case 23: {
14280
+ if (tag !== 186) {
14281
+ break;
14282
+ }
14283
+ message.jttQueryFileRequest = JTTQueryFileRequest.decode(reader, reader.uint32());
14284
+ continue;
14285
+ }
14286
+ case 24: {
14287
+ if (tag !== 194) {
14288
+ break;
14289
+ }
14290
+ message.jttPlaybackRequest = JTTPlaybackRequest.decode(reader, reader.uint32());
14291
+ continue;
14292
+ }
14293
+ case 25: {
14294
+ if (tag !== 202) {
14295
+ break;
14296
+ }
14297
+ message.jttPlaybackUpdate = JTTPlaybackUpdate.decode(reader, reader.uint32());
14298
+ continue;
14299
+ }
14300
+ case 26: {
14301
+ if (tag !== 210) {
14302
+ break;
14303
+ }
14304
+ message.jttMediaUploadRequest = RequestAlertMediaUpload.decode(reader, reader.uint32());
13707
14305
  continue;
13708
14306
  }
13709
14307
  }
@@ -13715,60 +14313,83 @@ export const Task = {
13715
14313
  return message;
13716
14314
  },
13717
14315
  create(base) {
13718
- return Task.fromPartial(base ?? {});
14316
+ return ForgeEncoder.fromPartial(base ?? {});
13719
14317
  },
13720
14318
  fromPartial(object) {
13721
- const message = createBaseTask();
13722
- message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
13723
- message.client = (object.client !== undefined && object.client !== null)
13724
- ? Client.fromPartial(object.client)
14319
+ const message = createBaseForgeEncoder();
14320
+ message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
14321
+ ? Long.fromValue(object.deviceId)
14322
+ : Long.UZERO;
14323
+ message.serialNo = object.serialNo ?? 0;
14324
+ message.protocol = object.protocol ?? 0;
14325
+ message.rawString = object.rawString ?? undefined;
14326
+ message.rawStingWithProps = (object.rawStingWithProps !== undefined && object.rawStingWithProps !== null)
14327
+ ? RawStingWithProps.fromPartial(object.rawStingWithProps)
13725
14328
  : undefined;
13726
- message.alertIdNumber = Object.entries(object.alertIdNumber ?? {}).reduce((acc, [key, value]) => {
13727
- if (value !== undefined) {
13728
- acc[globalThis.Number(key)] = value;
13729
- }
13730
- return acc;
13731
- }, {});
13732
- message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13733
- message.deviceData = (object.deviceData !== undefined && object.deviceData !== null)
13734
- ? DeviceData.fromPartial(object.deviceData)
14329
+ message.jttLiveVideoRequest = (object.jttLiveVideoRequest !== undefined && object.jttLiveVideoRequest !== null)
14330
+ ? JTTLiveRequest.fromPartial(object.jttLiveVideoRequest)
13735
14331
  : undefined;
13736
- message.protocol = object.protocol ?? 0;
14332
+ message.jttLiveVideoUpdate = (object.jttLiveVideoUpdate !== undefined && object.jttLiveVideoUpdate !== null)
14333
+ ? JTTLiveUpdate.fromPartial(object.jttLiveVideoUpdate)
14334
+ : undefined;
14335
+ message.jttQueryFileRequest = (object.jttQueryFileRequest !== undefined && object.jttQueryFileRequest !== null)
14336
+ ? JTTQueryFileRequest.fromPartial(object.jttQueryFileRequest)
14337
+ : undefined;
14338
+ message.jttPlaybackRequest = (object.jttPlaybackRequest !== undefined && object.jttPlaybackRequest !== null)
14339
+ ? JTTPlaybackRequest.fromPartial(object.jttPlaybackRequest)
14340
+ : undefined;
14341
+ message.jttPlaybackUpdate = (object.jttPlaybackUpdate !== undefined && object.jttPlaybackUpdate !== null)
14342
+ ? JTTPlaybackUpdate.fromPartial(object.jttPlaybackUpdate)
14343
+ : undefined;
14344
+ message.jttMediaUploadRequest =
14345
+ (object.jttMediaUploadRequest !== undefined && object.jttMediaUploadRequest !== null)
14346
+ ? RequestAlertMediaUpload.fromPartial(object.jttMediaUploadRequest)
14347
+ : undefined;
13737
14348
  return message;
13738
14349
  },
13739
14350
  };
13740
- function createBaseTask_AlertIdNumberEntry() {
13741
- return { key: 0, value: new Uint8Array(0) };
14351
+ function createBaseJTT808SignalingDataMessage1211() {
14352
+ return { name: "", type: 0, size: 0 };
13742
14353
  }
13743
- export const Task_AlertIdNumberEntry = {
14354
+ export const JTT808SignalingDataMessage1211 = {
13744
14355
  encode(message, writer = new BinaryWriter()) {
13745
- if (message.key !== 0) {
13746
- writer.uint32(8).int32(message.key);
14356
+ if (message.name !== "") {
14357
+ writer.uint32(10).string(message.name);
13747
14358
  }
13748
- if (message.value.length !== 0) {
13749
- writer.uint32(18).bytes(message.value);
14359
+ if (message.type !== 0) {
14360
+ writer.uint32(16).int32(message.type);
14361
+ }
14362
+ if (message.size !== 0) {
14363
+ writer.uint32(24).uint32(message.size);
13750
14364
  }
13751
14365
  return writer;
13752
14366
  },
13753
14367
  decode(input, length) {
13754
14368
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13755
14369
  const end = length === undefined ? reader.len : reader.pos + length;
13756
- const message = createBaseTask_AlertIdNumberEntry();
14370
+ const message = createBaseJTT808SignalingDataMessage1211();
13757
14371
  while (reader.pos < end) {
13758
14372
  const tag = reader.uint32();
13759
14373
  switch (tag >>> 3) {
13760
14374
  case 1: {
13761
- if (tag !== 8) {
14375
+ if (tag !== 10) {
13762
14376
  break;
13763
14377
  }
13764
- message.key = reader.int32();
14378
+ message.name = reader.string();
13765
14379
  continue;
13766
14380
  }
13767
14381
  case 2: {
13768
- if (tag !== 18) {
14382
+ if (tag !== 16) {
13769
14383
  break;
13770
14384
  }
13771
- message.value = reader.bytes();
14385
+ message.type = reader.int32();
14386
+ continue;
14387
+ }
14388
+ case 3: {
14389
+ if (tag !== 24) {
14390
+ break;
14391
+ }
14392
+ message.size = reader.uint32();
13772
14393
  continue;
13773
14394
  }
13774
14395
  }
@@ -13780,149 +14401,152 @@ export const Task_AlertIdNumberEntry = {
13780
14401
  return message;
13781
14402
  },
13782
14403
  create(base) {
13783
- return Task_AlertIdNumberEntry.fromPartial(base ?? {});
14404
+ return JTT808SignalingDataMessage1211.fromPartial(base ?? {});
13784
14405
  },
13785
14406
  fromPartial(object) {
13786
- const message = createBaseTask_AlertIdNumberEntry();
13787
- message.key = object.key ?? 0;
13788
- message.value = object.value ?? new Uint8Array(0);
14407
+ const message = createBaseJTT808SignalingDataMessage1211();
14408
+ message.name = object.name ?? "";
14409
+ message.type = object.type ?? 0;
14410
+ message.size = object.size ?? 0;
13789
14411
  return message;
13790
14412
  },
13791
14413
  };
13792
- function createBaseDeviceStatus() {
14414
+ function createBaseJTT808SignalingDataMessage1210() {
13793
14415
  return {
13794
- deviceId: Long.UZERO,
13795
- imei: Long.UZERO,
13796
- data: undefined,
13797
- client: undefined,
13798
- online: false,
13799
- lastOnline: undefined,
13800
- logs: [],
13801
- stat: 0,
13802
- protocol: 0,
13803
- odyssey: undefined,
13804
- fusion: undefined,
14416
+ terminalId: new Uint8Array(0),
14417
+ alarmIdentification: new Uint8Array(0),
14418
+ alarmNo: new Uint8Array(0),
14419
+ infoType: 0,
14420
+ attachmentCount: 0,
14421
+ attachments: [],
13805
14422
  };
13806
14423
  }
13807
- export const DeviceStatus = {
14424
+ export const JTT808SignalingDataMessage1210 = {
13808
14425
  encode(message, writer = new BinaryWriter()) {
13809
- if (!message.deviceId.equals(Long.UZERO)) {
13810
- writer.uint32(8).uint64(message.deviceId.toString());
13811
- }
13812
- if (!message.imei.equals(Long.UZERO)) {
13813
- writer.uint32(16).uint64(message.imei.toString());
13814
- }
13815
- if (message.data !== undefined) {
13816
- Data.encode(message.data, writer.uint32(26).fork()).join();
13817
- }
13818
- if (message.client !== undefined) {
13819
- Client.encode(message.client, writer.uint32(34).fork()).join();
13820
- }
13821
- if (message.online !== false) {
13822
- writer.uint32(40).bool(message.online);
13823
- }
13824
- if (message.lastOnline !== undefined) {
13825
- Timestamp.encode(toTimestamp(message.lastOnline), writer.uint32(50).fork()).join();
14426
+ if (message.terminalId.length !== 0) {
14427
+ writer.uint32(10).bytes(message.terminalId);
13826
14428
  }
13827
- for (const v of message.logs) {
13828
- Log.encode(v, writer.uint32(58).fork()).join();
14429
+ if (message.alarmIdentification.length !== 0) {
14430
+ writer.uint32(18).bytes(message.alarmIdentification);
13829
14431
  }
13830
- if (message.stat !== 0) {
13831
- writer.uint32(64).int32(message.stat);
14432
+ if (message.alarmNo.length !== 0) {
14433
+ writer.uint32(26).bytes(message.alarmNo);
13832
14434
  }
13833
- if (message.protocol !== 0) {
13834
- writer.uint32(72).int32(message.protocol);
14435
+ if (message.infoType !== 0) {
14436
+ writer.uint32(32).uint32(message.infoType);
13835
14437
  }
13836
- if (message.odyssey !== undefined) {
13837
- OdysseyDevice.encode(message.odyssey, writer.uint32(170).fork()).join();
14438
+ if (message.attachmentCount !== 0) {
14439
+ writer.uint32(40).uint32(message.attachmentCount);
13838
14440
  }
13839
- if (message.fusion !== undefined) {
13840
- FusionDevice.encode(message.fusion, writer.uint32(178).fork()).join();
14441
+ for (const v of message.attachments) {
14442
+ JTT808SignalingDataMessage1210_Attachment.encode(v, writer.uint32(50).fork()).join();
13841
14443
  }
13842
14444
  return writer;
13843
14445
  },
13844
14446
  decode(input, length) {
13845
14447
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13846
14448
  const end = length === undefined ? reader.len : reader.pos + length;
13847
- const message = createBaseDeviceStatus();
14449
+ const message = createBaseJTT808SignalingDataMessage1210();
13848
14450
  while (reader.pos < end) {
13849
14451
  const tag = reader.uint32();
13850
14452
  switch (tag >>> 3) {
13851
14453
  case 1: {
13852
- if (tag !== 8) {
14454
+ if (tag !== 10) {
13853
14455
  break;
13854
14456
  }
13855
- message.deviceId = Long.fromString(reader.uint64().toString(), true);
14457
+ message.terminalId = reader.bytes();
13856
14458
  continue;
13857
14459
  }
13858
14460
  case 2: {
13859
- if (tag !== 16) {
14461
+ if (tag !== 18) {
13860
14462
  break;
13861
14463
  }
13862
- message.imei = Long.fromString(reader.uint64().toString(), true);
14464
+ message.alarmIdentification = reader.bytes();
13863
14465
  continue;
13864
14466
  }
13865
14467
  case 3: {
13866
14468
  if (tag !== 26) {
13867
14469
  break;
13868
14470
  }
13869
- message.data = Data.decode(reader, reader.uint32());
14471
+ message.alarmNo = reader.bytes();
13870
14472
  continue;
13871
14473
  }
13872
14474
  case 4: {
13873
- if (tag !== 34) {
14475
+ if (tag !== 32) {
13874
14476
  break;
13875
14477
  }
13876
- message.client = Client.decode(reader, reader.uint32());
14478
+ message.infoType = reader.uint32();
13877
14479
  continue;
13878
14480
  }
13879
14481
  case 5: {
13880
14482
  if (tag !== 40) {
13881
14483
  break;
13882
14484
  }
13883
- message.online = reader.bool();
14485
+ message.attachmentCount = reader.uint32();
13884
14486
  continue;
13885
14487
  }
13886
14488
  case 6: {
13887
14489
  if (tag !== 50) {
13888
14490
  break;
13889
14491
  }
13890
- message.lastOnline = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13891
- continue;
13892
- }
13893
- case 7: {
13894
- if (tag !== 58) {
13895
- break;
13896
- }
13897
- message.logs.push(Log.decode(reader, reader.uint32()));
13898
- continue;
13899
- }
13900
- case 8: {
13901
- if (tag !== 64) {
13902
- break;
13903
- }
13904
- message.stat = reader.int32();
13905
- continue;
13906
- }
13907
- case 9: {
13908
- if (tag !== 72) {
13909
- break;
13910
- }
13911
- message.protocol = reader.int32();
14492
+ message.attachments.push(JTT808SignalingDataMessage1210_Attachment.decode(reader, reader.uint32()));
13912
14493
  continue;
13913
14494
  }
13914
- case 21: {
13915
- if (tag !== 170) {
14495
+ }
14496
+ if ((tag & 7) === 4 || tag === 0) {
14497
+ break;
14498
+ }
14499
+ reader.skip(tag & 7);
14500
+ }
14501
+ return message;
14502
+ },
14503
+ create(base) {
14504
+ return JTT808SignalingDataMessage1210.fromPartial(base ?? {});
14505
+ },
14506
+ fromPartial(object) {
14507
+ const message = createBaseJTT808SignalingDataMessage1210();
14508
+ message.terminalId = object.terminalId ?? new Uint8Array(0);
14509
+ message.alarmIdentification = object.alarmIdentification ?? new Uint8Array(0);
14510
+ message.alarmNo = object.alarmNo ?? new Uint8Array(0);
14511
+ message.infoType = object.infoType ?? 0;
14512
+ message.attachmentCount = object.attachmentCount ?? 0;
14513
+ message.attachments = object.attachments?.map((e) => JTT808SignalingDataMessage1210_Attachment.fromPartial(e)) ||
14514
+ [];
14515
+ return message;
14516
+ },
14517
+ };
14518
+ function createBaseJTT808SignalingDataMessage1210_Attachment() {
14519
+ return { name: "", size: 0 };
14520
+ }
14521
+ export const JTT808SignalingDataMessage1210_Attachment = {
14522
+ encode(message, writer = new BinaryWriter()) {
14523
+ if (message.name !== "") {
14524
+ writer.uint32(10).string(message.name);
14525
+ }
14526
+ if (message.size !== 0) {
14527
+ writer.uint32(16).uint32(message.size);
14528
+ }
14529
+ return writer;
14530
+ },
14531
+ decode(input, length) {
14532
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
14533
+ const end = length === undefined ? reader.len : reader.pos + length;
14534
+ const message = createBaseJTT808SignalingDataMessage1210_Attachment();
14535
+ while (reader.pos < end) {
14536
+ const tag = reader.uint32();
14537
+ switch (tag >>> 3) {
14538
+ case 1: {
14539
+ if (tag !== 10) {
13916
14540
  break;
13917
14541
  }
13918
- message.odyssey = OdysseyDevice.decode(reader, reader.uint32());
14542
+ message.name = reader.string();
13919
14543
  continue;
13920
14544
  }
13921
- case 22: {
13922
- if (tag !== 178) {
14545
+ case 2: {
14546
+ if (tag !== 16) {
13923
14547
  break;
13924
14548
  }
13925
- message.fusion = FusionDevice.decode(reader, reader.uint32());
14549
+ message.size = reader.uint32();
13926
14550
  continue;
13927
14551
  }
13928
14552
  }
@@ -13934,52 +14558,41 @@ export const DeviceStatus = {
13934
14558
  return message;
13935
14559
  },
13936
14560
  create(base) {
13937
- return DeviceStatus.fromPartial(base ?? {});
14561
+ return JTT808SignalingDataMessage1210_Attachment.fromPartial(base ?? {});
13938
14562
  },
13939
14563
  fromPartial(object) {
13940
- const message = createBaseDeviceStatus();
13941
- message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
13942
- ? Long.fromValue(object.deviceId)
13943
- : Long.UZERO;
13944
- message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13945
- message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
13946
- message.client = (object.client !== undefined && object.client !== null)
13947
- ? Client.fromPartial(object.client)
13948
- : undefined;
13949
- message.online = object.online ?? false;
13950
- message.lastOnline = object.lastOnline ?? undefined;
13951
- message.logs = object.logs?.map((e) => Log.fromPartial(e)) || [];
13952
- message.stat = object.stat ?? 0;
13953
- message.protocol = object.protocol ?? 0;
13954
- message.odyssey = (object.odyssey !== undefined && object.odyssey !== null)
13955
- ? OdysseyDevice.fromPartial(object.odyssey)
13956
- : undefined;
13957
- message.fusion = (object.fusion !== undefined && object.fusion !== null)
13958
- ? FusionDevice.fromPartial(object.fusion)
13959
- : undefined;
14564
+ const message = createBaseJTT808SignalingDataMessage1210_Attachment();
14565
+ message.name = object.name ?? "";
14566
+ message.size = object.size ?? 0;
13960
14567
  return message;
13961
14568
  },
13962
14569
  };
13963
- function createBaseJTT808MediaRetrieval0802() {
13964
- return { serialNo: 0, mediaCounter: 0, items: [] };
14570
+ function createBaseJTT808EventMediaInfoUpload() {
14571
+ return { mediaId: 0, mediaType: 0, mediaFormat: 0, eventItemCode: 0, channelId: 0 };
13965
14572
  }
13966
- export const JTT808MediaRetrieval0802 = {
14573
+ export const JTT808EventMediaInfoUpload = {
13967
14574
  encode(message, writer = new BinaryWriter()) {
13968
- if (message.serialNo !== 0) {
13969
- writer.uint32(8).uint32(message.serialNo);
14575
+ if (message.mediaId !== 0) {
14576
+ writer.uint32(8).uint32(message.mediaId);
13970
14577
  }
13971
- if (message.mediaCounter !== 0) {
13972
- writer.uint32(16).uint32(message.mediaCounter);
14578
+ if (message.mediaType !== 0) {
14579
+ writer.uint32(16).uint32(message.mediaType);
13973
14580
  }
13974
- for (const v of message.items) {
13975
- JTT808MediaRetrieval0802_Item.encode(v, writer.uint32(26).fork()).join();
14581
+ if (message.mediaFormat !== 0) {
14582
+ writer.uint32(24).uint32(message.mediaFormat);
14583
+ }
14584
+ if (message.eventItemCode !== 0) {
14585
+ writer.uint32(32).uint32(message.eventItemCode);
14586
+ }
14587
+ if (message.channelId !== 0) {
14588
+ writer.uint32(40).uint32(message.channelId);
13976
14589
  }
13977
14590
  return writer;
13978
14591
  },
13979
14592
  decode(input, length) {
13980
14593
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13981
14594
  const end = length === undefined ? reader.len : reader.pos + length;
13982
- const message = createBaseJTT808MediaRetrieval0802();
14595
+ const message = createBaseJTT808EventMediaInfoUpload();
13983
14596
  while (reader.pos < end) {
13984
14597
  const tag = reader.uint32();
13985
14598
  switch (tag >>> 3) {
@@ -13987,21 +14600,35 @@ export const JTT808MediaRetrieval0802 = {
13987
14600
  if (tag !== 8) {
13988
14601
  break;
13989
14602
  }
13990
- message.serialNo = reader.uint32();
14603
+ message.mediaId = reader.uint32();
13991
14604
  continue;
13992
14605
  }
13993
14606
  case 2: {
13994
14607
  if (tag !== 16) {
13995
14608
  break;
13996
14609
  }
13997
- message.mediaCounter = reader.uint32();
14610
+ message.mediaType = reader.uint32();
13998
14611
  continue;
13999
14612
  }
14000
14613
  case 3: {
14001
- if (tag !== 26) {
14614
+ if (tag !== 24) {
14002
14615
  break;
14003
14616
  }
14004
- message.items.push(JTT808MediaRetrieval0802_Item.decode(reader, reader.uint32()));
14617
+ message.mediaFormat = reader.uint32();
14618
+ continue;
14619
+ }
14620
+ case 4: {
14621
+ if (tag !== 32) {
14622
+ break;
14623
+ }
14624
+ message.eventItemCode = reader.uint32();
14625
+ continue;
14626
+ }
14627
+ case 5: {
14628
+ if (tag !== 40) {
14629
+ break;
14630
+ }
14631
+ message.channelId = reader.uint32();
14005
14632
  continue;
14006
14633
  }
14007
14634
  }
@@ -14013,42 +14640,47 @@ export const JTT808MediaRetrieval0802 = {
14013
14640
  return message;
14014
14641
  },
14015
14642
  create(base) {
14016
- return JTT808MediaRetrieval0802.fromPartial(base ?? {});
14643
+ return JTT808EventMediaInfoUpload.fromPartial(base ?? {});
14017
14644
  },
14018
14645
  fromPartial(object) {
14019
- const message = createBaseJTT808MediaRetrieval0802();
14020
- message.serialNo = object.serialNo ?? 0;
14021
- message.mediaCounter = object.mediaCounter ?? 0;
14022
- message.items = object.items?.map((e) => JTT808MediaRetrieval0802_Item.fromPartial(e)) || [];
14646
+ const message = createBaseJTT808EventMediaInfoUpload();
14647
+ message.mediaId = object.mediaId ?? 0;
14648
+ message.mediaType = object.mediaType ?? 0;
14649
+ message.mediaFormat = object.mediaFormat ?? 0;
14650
+ message.eventItemCode = object.eventItemCode ?? 0;
14651
+ message.channelId = object.channelId ?? 0;
14023
14652
  return message;
14024
14653
  },
14025
14654
  };
14026
- function createBaseJTT808MediaRetrieval0802_Item() {
14027
- return { multimediaId: 0, multimediaType: 0, channelId: 0, eventItemEncoding: 0, location: undefined };
14655
+ function createBaseJTT808EventMediaDataUpload() {
14656
+ return { mediaId: 0, mediaType: 0, mediaFormat: 0, eventItemCode: 0, channelId: 0, payload: new Uint8Array(0) };
14028
14657
  }
14029
- export const JTT808MediaRetrieval0802_Item = {
14658
+ export const JTT808EventMediaDataUpload = {
14030
14659
  encode(message, writer = new BinaryWriter()) {
14031
- if (message.multimediaId !== 0) {
14032
- writer.uint32(8).uint32(message.multimediaId);
14660
+ if (message.mediaId !== 0) {
14661
+ writer.uint32(8).uint32(message.mediaId);
14033
14662
  }
14034
- if (message.multimediaType !== 0) {
14035
- writer.uint32(16).uint32(message.multimediaType);
14663
+ if (message.mediaType !== 0) {
14664
+ writer.uint32(16).uint32(message.mediaType);
14036
14665
  }
14037
- if (message.channelId !== 0) {
14038
- writer.uint32(24).uint32(message.channelId);
14666
+ if (message.mediaFormat !== 0) {
14667
+ writer.uint32(24).uint32(message.mediaFormat);
14039
14668
  }
14040
- if (message.eventItemEncoding !== 0) {
14041
- writer.uint32(32).uint32(message.eventItemEncoding);
14669
+ if (message.eventItemCode !== 0) {
14670
+ writer.uint32(32).uint32(message.eventItemCode);
14042
14671
  }
14043
- if (message.location !== undefined) {
14044
- Data.encode(message.location, writer.uint32(42).fork()).join();
14672
+ if (message.channelId !== 0) {
14673
+ writer.uint32(40).uint32(message.channelId);
14674
+ }
14675
+ if (message.payload.length !== 0) {
14676
+ writer.uint32(50).bytes(message.payload);
14045
14677
  }
14046
14678
  return writer;
14047
14679
  },
14048
14680
  decode(input, length) {
14049
14681
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
14050
14682
  const end = length === undefined ? reader.len : reader.pos + length;
14051
- const message = createBaseJTT808MediaRetrieval0802_Item();
14683
+ const message = createBaseJTT808EventMediaDataUpload();
14052
14684
  while (reader.pos < end) {
14053
14685
  const tag = reader.uint32();
14054
14686
  switch (tag >>> 3) {
@@ -14056,35 +14688,42 @@ export const JTT808MediaRetrieval0802_Item = {
14056
14688
  if (tag !== 8) {
14057
14689
  break;
14058
14690
  }
14059
- message.multimediaId = reader.uint32();
14691
+ message.mediaId = reader.uint32();
14060
14692
  continue;
14061
14693
  }
14062
14694
  case 2: {
14063
14695
  if (tag !== 16) {
14064
14696
  break;
14065
14697
  }
14066
- message.multimediaType = reader.uint32();
14698
+ message.mediaType = reader.uint32();
14067
14699
  continue;
14068
14700
  }
14069
14701
  case 3: {
14070
14702
  if (tag !== 24) {
14071
14703
  break;
14072
14704
  }
14073
- message.channelId = reader.uint32();
14705
+ message.mediaFormat = reader.uint32();
14074
14706
  continue;
14075
14707
  }
14076
14708
  case 4: {
14077
14709
  if (tag !== 32) {
14078
14710
  break;
14079
14711
  }
14080
- message.eventItemEncoding = reader.uint32();
14712
+ message.eventItemCode = reader.uint32();
14081
14713
  continue;
14082
14714
  }
14083
14715
  case 5: {
14084
- if (tag !== 42) {
14716
+ if (tag !== 40) {
14085
14717
  break;
14086
14718
  }
14087
- message.location = Data.decode(reader, reader.uint32());
14719
+ message.channelId = reader.uint32();
14720
+ continue;
14721
+ }
14722
+ case 6: {
14723
+ if (tag !== 50) {
14724
+ break;
14725
+ }
14726
+ message.payload = reader.bytes();
14088
14727
  continue;
14089
14728
  }
14090
14729
  }
@@ -14096,62 +14735,61 @@ export const JTT808MediaRetrieval0802_Item = {
14096
14735
  return message;
14097
14736
  },
14098
14737
  create(base) {
14099
- return JTT808MediaRetrieval0802_Item.fromPartial(base ?? {});
14738
+ return JTT808EventMediaDataUpload.fromPartial(base ?? {});
14100
14739
  },
14101
14740
  fromPartial(object) {
14102
- const message = createBaseJTT808MediaRetrieval0802_Item();
14103
- message.multimediaId = object.multimediaId ?? 0;
14104
- message.multimediaType = object.multimediaType ?? 0;
14741
+ const message = createBaseJTT808EventMediaDataUpload();
14742
+ message.mediaId = object.mediaId ?? 0;
14743
+ message.mediaType = object.mediaType ?? 0;
14744
+ message.mediaFormat = object.mediaFormat ?? 0;
14745
+ message.eventItemCode = object.eventItemCode ?? 0;
14105
14746
  message.channelId = object.channelId ?? 0;
14106
- message.eventItemEncoding = object.eventItemEncoding ?? 0;
14107
- message.location = (object.location !== undefined && object.location !== null)
14108
- ? Data.fromPartial(object.location)
14109
- : undefined;
14747
+ message.payload = object.payload ?? new Uint8Array(0);
14110
14748
  return message;
14111
14749
  },
14112
14750
  };
14113
- function createBaseDeviceConnectionStatus() {
14114
- return { deviceId: Long.UZERO, online: false, timestamp: undefined };
14751
+ function createBaseJTT808SignalingDataMessage1212() {
14752
+ return { name: "", type: 0, size: 0 };
14115
14753
  }
14116
- export const DeviceConnectionStatus = {
14754
+ export const JTT808SignalingDataMessage1212 = {
14117
14755
  encode(message, writer = new BinaryWriter()) {
14118
- if (!message.deviceId.equals(Long.UZERO)) {
14119
- writer.uint32(8).uint64(message.deviceId.toString());
14756
+ if (message.name !== "") {
14757
+ writer.uint32(10).string(message.name);
14120
14758
  }
14121
- if (message.online !== false) {
14122
- writer.uint32(16).bool(message.online);
14759
+ if (message.type !== 0) {
14760
+ writer.uint32(16).int32(message.type);
14123
14761
  }
14124
- if (message.timestamp !== undefined) {
14125
- Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).join();
14762
+ if (message.size !== 0) {
14763
+ writer.uint32(24).uint32(message.size);
14126
14764
  }
14127
14765
  return writer;
14128
14766
  },
14129
14767
  decode(input, length) {
14130
14768
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
14131
14769
  const end = length === undefined ? reader.len : reader.pos + length;
14132
- const message = createBaseDeviceConnectionStatus();
14770
+ const message = createBaseJTT808SignalingDataMessage1212();
14133
14771
  while (reader.pos < end) {
14134
14772
  const tag = reader.uint32();
14135
14773
  switch (tag >>> 3) {
14136
14774
  case 1: {
14137
- if (tag !== 8) {
14775
+ if (tag !== 10) {
14138
14776
  break;
14139
14777
  }
14140
- message.deviceId = Long.fromString(reader.uint64().toString(), true);
14778
+ message.name = reader.string();
14141
14779
  continue;
14142
14780
  }
14143
14781
  case 2: {
14144
14782
  if (tag !== 16) {
14145
14783
  break;
14146
14784
  }
14147
- message.online = reader.bool();
14785
+ message.type = reader.int32();
14148
14786
  continue;
14149
14787
  }
14150
14788
  case 3: {
14151
- if (tag !== 26) {
14789
+ if (tag !== 24) {
14152
14790
  break;
14153
14791
  }
14154
- message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
14792
+ message.size = reader.uint32();
14155
14793
  continue;
14156
14794
  }
14157
14795
  }
@@ -14163,15 +14801,13 @@ export const DeviceConnectionStatus = {
14163
14801
  return message;
14164
14802
  },
14165
14803
  create(base) {
14166
- return DeviceConnectionStatus.fromPartial(base ?? {});
14804
+ return JTT808SignalingDataMessage1212.fromPartial(base ?? {});
14167
14805
  },
14168
14806
  fromPartial(object) {
14169
- const message = createBaseDeviceConnectionStatus();
14170
- message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
14171
- ? Long.fromValue(object.deviceId)
14172
- : Long.UZERO;
14173
- message.online = object.online ?? false;
14174
- message.timestamp = object.timestamp ?? undefined;
14807
+ const message = createBaseJTT808SignalingDataMessage1212();
14808
+ message.name = object.name ?? "";
14809
+ message.type = object.type ?? 0;
14810
+ message.size = object.size ?? 0;
14175
14811
  return message;
14176
14812
  },
14177
14813
  };