@fatehan/tsrp 1.4.44 → 1.4.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/fatehan/activities/camera.d.ts +0 -2
  2. package/dist/fatehan/activities/camera.d.ts.map +1 -1
  3. package/dist/fatehan/activities/camera.js +0 -257
  4. package/dist/fatehan/activities/workflow.d.ts +20 -30
  5. package/dist/fatehan/activities/workflow.d.ts.map +1 -1
  6. package/dist/fatehan/activities/workflow.js +0 -718
  7. package/dist/fatehan/apis/client.d.ts +10 -12
  8. package/dist/fatehan/apis/client.d.ts.map +1 -1
  9. package/dist/fatehan/apis/client.js +23 -1015
  10. package/dist/fatehan/areas/area.d.ts +11 -15
  11. package/dist/fatehan/areas/area.d.ts.map +1 -1
  12. package/dist/fatehan/areas/area.js +0 -271
  13. package/dist/fatehan/devices/devices.d.ts +3 -7
  14. package/dist/fatehan/devices/devices.d.ts.map +1 -1
  15. package/dist/fatehan/devices/devices.js +0 -911
  16. package/dist/fatehan/devices/maintenance.d.ts +3 -7
  17. package/dist/fatehan/devices/maintenance.d.ts.map +1 -1
  18. package/dist/fatehan/devices/maintenance.js +0 -189
  19. package/dist/fatehan/financial/financial.d.ts +14 -16
  20. package/dist/fatehan/financial/financial.d.ts.map +1 -1
  21. package/dist/fatehan/financial/financial.js +0 -538
  22. package/dist/fatehan/google/protobuf/descriptor.d.ts +0 -42
  23. package/dist/fatehan/google/protobuf/descriptor.d.ts.map +1 -1
  24. package/dist/fatehan/google/protobuf/descriptor.js +0 -1864
  25. package/dist/fatehan/google/protobuf/duration.d.ts +0 -2
  26. package/dist/fatehan/google/protobuf/duration.d.ts.map +1 -1
  27. package/dist/fatehan/google/protobuf/duration.js +0 -19
  28. package/dist/fatehan/google/protobuf/field_mask.d.ts +0 -2
  29. package/dist/fatehan/google/protobuf/field_mask.d.ts.map +1 -1
  30. package/dist/fatehan/google/protobuf/field_mask.js +0 -12
  31. package/dist/fatehan/google/protobuf/timestamp.d.ts +0 -2
  32. package/dist/fatehan/google/protobuf/timestamp.d.ts.map +1 -1
  33. package/dist/fatehan/google/protobuf/timestamp.js +0 -19
  34. package/dist/fatehan/identities/authentication.d.ts +13 -15
  35. package/dist/fatehan/identities/authentication.d.ts.map +1 -1
  36. package/dist/fatehan/identities/authentication.js +0 -339
  37. package/dist/fatehan/identities/identities.d.ts +6 -12
  38. package/dist/fatehan/identities/identities.d.ts.map +1 -1
  39. package/dist/fatehan/identities/identities.js +0 -4069
  40. package/dist/fatehan/models/fusion.d.ts +5 -7
  41. package/dist/fatehan/models/fusion.d.ts.map +1 -1
  42. package/dist/fatehan/models/fusion.js +0 -494
  43. package/dist/fatehan/models/models.d.ts +6 -10
  44. package/dist/fatehan/models/models.d.ts.map +1 -1
  45. package/dist/fatehan/models/models.js +1 -554
  46. package/dist/fatehan/notifies/notify.d.ts +10 -24
  47. package/dist/fatehan/notifies/notify.d.ts.map +1 -1
  48. package/dist/fatehan/notifies/notify.js +0 -1096
  49. package/dist/fatehan/packets/dataModel.d.ts +18 -48
  50. package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
  51. package/dist/fatehan/packets/dataModel.js +34 -7015
  52. package/dist/fatehan/packets/dataModule.d.ts +2 -6
  53. package/dist/fatehan/packets/dataModule.d.ts.map +1 -1
  54. package/dist/fatehan/packets/dataModule.js +0 -167
  55. package/dist/fatehan/packets/messages.d.ts +5 -9
  56. package/dist/fatehan/packets/messages.d.ts.map +1 -1
  57. package/dist/fatehan/packets/messages.js +0 -280
  58. package/dist/fatehan/reports/report.d.ts +87 -115
  59. package/dist/fatehan/reports/report.d.ts.map +1 -1
  60. package/dist/fatehan/reports/report.js +3 -3112
  61. package/dist/fatehan/services/api.d.ts +14 -14
  62. package/dist/fatehan/services/api.d.ts.map +1 -1
  63. package/dist/fatehan/services/api.js +29 -1254
  64. package/dist/fatehan/services/repositories.d.ts +6 -8
  65. package/dist/fatehan/services/repositories.d.ts.map +1 -1
  66. package/dist/fatehan/services/repositories.js +0 -191
  67. package/dist/fatehan/trips/trip.d.ts +18 -30
  68. package/dist/fatehan/trips/trip.d.ts.map +1 -1
  69. package/dist/fatehan/trips/trip.js +0 -1662
  70. package/dist/fatehan/utils/buf/validate/validate.d.ts +0 -6
  71. package/dist/fatehan/utils/buf/validate/validate.d.ts.map +1 -1
  72. package/dist/fatehan/utils/buf/validate/validate.js +0 -1318
  73. package/package.json +1 -1
@@ -33,8 +33,8 @@ export interface AlertsListDevice {
33
33
  dateSend: number;
34
34
  vals: string;
35
35
  relId: number;
36
- createdAt?: Date | undefined;
37
- updatedAt?: Date | undefined;
36
+ createdAt: Date | undefined;
37
+ updatedAt: Date | undefined;
38
38
  identificationNo?: string | undefined;
39
39
  }
40
40
  export interface CommandDevice {
@@ -63,7 +63,7 @@ export interface FusionNotify {
63
63
  userId: Long;
64
64
  title: string;
65
65
  body: string;
66
- data?: FusionNotify_Body | undefined;
66
+ data: FusionNotify_Body | undefined;
67
67
  image?: string | undefined;
68
68
  sound?: number | undefined;
69
69
  token?: string | undefined;
@@ -118,8 +118,8 @@ export interface FusionMaintenance {
118
118
  currentMileage: Long;
119
119
  currentEngineTime: Long;
120
120
  expiredReason?: string | undefined;
121
- createdAt?: Date | undefined;
122
- updatedAt?: Date | undefined;
121
+ createdAt: Date | undefined;
122
+ updatedAt: Date | undefined;
123
123
  }
124
124
  export declare const WorkCycleDevice: MessageFns<WorkCycleDevice>;
125
125
  export declare const WorkCycleDeviceList: MessageFns<WorkCycleDeviceList>;
@@ -142,8 +142,6 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
142
142
  export interface MessageFns<T> {
143
143
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
144
144
  decode(input: BinaryReader | Uint8Array, length?: number): T;
145
- fromJSON(object: any): T;
146
- toJSON(message: T): unknown;
147
145
  create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
148
146
  fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I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AAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
@@ -108,42 +108,6 @@ export const WorkCycleDevice = {
108
108
  }
109
109
  return message;
110
110
  },
111
- fromJSON(object) {
112
- return {
113
- deviceId: isSet(object.device_id) ? Long.fromValue(object.device_id) : undefined,
114
- movable: isSet(object.movable) ? globalThis.Boolean(object.movable) : false,
115
- radius: isSet(object.radius) ? globalThis.Number(object.radius) : 0,
116
- groupId: isSet(object.group_id) ? globalThis.Number(object.group_id) : 0,
117
- organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : Long.UZERO,
118
- name: isSet(object.name) ? globalThis.String(object.name) : undefined,
119
- areaId: isSet(object.area_id) ? Long.fromValue(object.area_id) : undefined,
120
- };
121
- },
122
- toJSON(message) {
123
- const obj = {};
124
- if (message.deviceId !== undefined) {
125
- obj.device_id = (message.deviceId || Long.UZERO).toString();
126
- }
127
- if (message.movable !== false) {
128
- obj.movable = message.movable;
129
- }
130
- if (message.radius !== 0) {
131
- obj.radius = Math.round(message.radius);
132
- }
133
- if (message.groupId !== 0) {
134
- obj.group_id = Math.round(message.groupId);
135
- }
136
- if (!message.organizationId.equals(Long.UZERO)) {
137
- obj.organization_id = (message.organizationId || Long.UZERO).toString();
138
- }
139
- if (message.name !== undefined) {
140
- obj.name = message.name;
141
- }
142
- if (message.areaId !== undefined) {
143
- obj.area_id = (message.areaId || Long.UZERO).toString();
144
- }
145
- return obj;
146
- },
147
111
  create(base) {
148
112
  return WorkCycleDevice.fromPartial(base ?? {});
149
113
  },
@@ -197,18 +161,6 @@ export const WorkCycleDeviceList = {
197
161
  }
198
162
  return message;
199
163
  },
200
- fromJSON(object) {
201
- return {
202
- list: globalThis.Array.isArray(object?.list) ? object.list.map((e) => WorkCycleDevice.fromJSON(e)) : [],
203
- };
204
- },
205
- toJSON(message) {
206
- const obj = {};
207
- if (message.list?.length) {
208
- obj.list = message.list.map((e) => WorkCycleDevice.toJSON(e));
209
- }
210
- return obj;
211
- },
212
164
  create(base) {
213
165
  return WorkCycleDeviceList.fromPartial(base ?? {});
214
166
  },
@@ -483,102 +435,6 @@ export const AlertsListDevice = {
483
435
  }
484
436
  return message;
485
437
  },
486
- fromJSON(object) {
487
- return {
488
- alertListId: isSet(object.alertListId) ? globalThis.Number(object.alertListId) : 0,
489
- dateCreate: isSet(object.dateCreate) ? globalThis.Number(object.dateCreate) : 0,
490
- userId: isSet(object.userId) ? globalThis.Number(object.userId) : 0,
491
- imei: isSet(object.imei) ? Long.fromValue(object.imei) : Long.UZERO,
492
- content: isSet(object.content) ? globalThis.String(object.content) : "",
493
- alertRead: isSet(object.alertRead) ? globalThis.Number(object.alertRead) : 0,
494
- alertId: isSet(object.alertId) ? globalThis.Number(object.alertId) : 0,
495
- title: isSet(object.title) ? globalThis.String(object.title) : "",
496
- disabled: isSet(object.disabled) ? globalThis.Number(object.disabled) : 0,
497
- latitude: isSet(object.latitude) ? globalThis.Number(object.latitude) : 0,
498
- longitude: isSet(object.longitude) ? globalThis.Number(object.longitude) : 0,
499
- latitudeEnd: isSet(object.latitudeEnd) ? globalThis.Number(object.latitudeEnd) : 0,
500
- longitudeEnd: isSet(object.longitudeEnd) ? globalThis.Number(object.longitudeEnd) : 0,
501
- dateEnd: isSet(object.dateEnd) ? globalThis.Number(object.dateEnd) : 0,
502
- dateRead: isSet(object.dateRead) ? globalThis.Number(object.dateRead) : 0,
503
- alertSend: isSet(object.alertSend) ? globalThis.Number(object.alertSend) : 0,
504
- dateSend: isSet(object.dateSend) ? globalThis.Number(object.dateSend) : 0,
505
- vals: isSet(object.vals) ? globalThis.String(object.vals) : "",
506
- relId: isSet(object.relId) ? globalThis.Number(object.relId) : 0,
507
- createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
508
- updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined,
509
- identificationNo: isSet(object.identificationNo) ? globalThis.String(object.identificationNo) : undefined,
510
- };
511
- },
512
- toJSON(message) {
513
- const obj = {};
514
- if (message.alertListId !== 0) {
515
- obj.alertListId = Math.round(message.alertListId);
516
- }
517
- if (message.dateCreate !== 0) {
518
- obj.dateCreate = Math.round(message.dateCreate);
519
- }
520
- if (message.userId !== 0) {
521
- obj.userId = Math.round(message.userId);
522
- }
523
- if (!message.imei.equals(Long.UZERO)) {
524
- obj.imei = (message.imei || Long.UZERO).toString();
525
- }
526
- if (message.content !== "") {
527
- obj.content = message.content;
528
- }
529
- if (message.alertRead !== 0) {
530
- obj.alertRead = Math.round(message.alertRead);
531
- }
532
- if (message.alertId !== 0) {
533
- obj.alertId = Math.round(message.alertId);
534
- }
535
- if (message.title !== "") {
536
- obj.title = message.title;
537
- }
538
- if (message.disabled !== 0) {
539
- obj.disabled = Math.round(message.disabled);
540
- }
541
- if (message.latitude !== 0) {
542
- obj.latitude = message.latitude;
543
- }
544
- if (message.longitude !== 0) {
545
- obj.longitude = message.longitude;
546
- }
547
- if (message.latitudeEnd !== 0) {
548
- obj.latitudeEnd = message.latitudeEnd;
549
- }
550
- if (message.longitudeEnd !== 0) {
551
- obj.longitudeEnd = message.longitudeEnd;
552
- }
553
- if (message.dateEnd !== 0) {
554
- obj.dateEnd = Math.round(message.dateEnd);
555
- }
556
- if (message.dateRead !== 0) {
557
- obj.dateRead = Math.round(message.dateRead);
558
- }
559
- if (message.alertSend !== 0) {
560
- obj.alertSend = Math.round(message.alertSend);
561
- }
562
- if (message.dateSend !== 0) {
563
- obj.dateSend = Math.round(message.dateSend);
564
- }
565
- if (message.vals !== "") {
566
- obj.vals = message.vals;
567
- }
568
- if (message.relId !== 0) {
569
- obj.relId = Math.round(message.relId);
570
- }
571
- if (message.createdAt !== undefined) {
572
- obj.createdAt = message.createdAt.toISOString();
573
- }
574
- if (message.updatedAt !== undefined) {
575
- obj.updatedAt = message.updatedAt.toISOString();
576
- }
577
- if (message.identificationNo !== undefined) {
578
- obj.identificationNo = message.identificationNo;
579
- }
580
- return obj;
581
- },
582
438
  create(base) {
583
439
  return AlertsListDevice.fromPartial(base ?? {});
584
440
  },
@@ -797,74 +653,6 @@ export const CommandDevice = {
797
653
  }
798
654
  return message;
799
655
  },
800
- fromJSON(object) {
801
- return {
802
- cdId: isSet(object.cdId) ? globalThis.Number(object.cdId) : 0,
803
- commandId: isSet(object.commandId) ? globalThis.Number(object.commandId) : 0,
804
- imei: isSet(object.imei) ? Long.fromValue(object.imei) : Long.UZERO,
805
- userId: isSet(object.userId) ? globalThis.Number(object.userId) : 0,
806
- dateCreate: isSet(object.dateCreate) ? globalThis.Number(object.dateCreate) : 0,
807
- status: isSet(object.status) ? globalThis.Number(object.status) : 0,
808
- command: isSet(object.command) ? globalThis.String(object.command) : "",
809
- commandParse: isSet(object.commandParse) ? globalThis.String(object.commandParse) : undefined,
810
- dateSend: isSet(object.dateSend) ? globalThis.Number(object.dateSend) : 0,
811
- response: isSet(object.response) ? globalThis.String(object.response) : undefined,
812
- responseParse: isSet(object.responseParse) ? globalThis.String(object.responseParse) : undefined,
813
- dateResponse: isSet(object.dateResponse) ? globalThis.Number(object.dateResponse) : 0,
814
- timeOut: isSet(object.timeOut) ? globalThis.Number(object.timeOut) : 0,
815
- type: isSet(object.type) ? globalThis.Number(object.type) : 0,
816
- deviceId: isSet(object.deviceId) ? Long.fromValue(object.deviceId) : Long.UZERO,
817
- };
818
- },
819
- toJSON(message) {
820
- const obj = {};
821
- if (message.cdId !== 0) {
822
- obj.cdId = Math.round(message.cdId);
823
- }
824
- if (message.commandId !== 0) {
825
- obj.commandId = Math.round(message.commandId);
826
- }
827
- if (!message.imei.equals(Long.UZERO)) {
828
- obj.imei = (message.imei || Long.UZERO).toString();
829
- }
830
- if (message.userId !== 0) {
831
- obj.userId = Math.round(message.userId);
832
- }
833
- if (message.dateCreate !== 0) {
834
- obj.dateCreate = Math.round(message.dateCreate);
835
- }
836
- if (message.status !== 0) {
837
- obj.status = Math.round(message.status);
838
- }
839
- if (message.command !== "") {
840
- obj.command = message.command;
841
- }
842
- if (message.commandParse !== undefined) {
843
- obj.commandParse = message.commandParse;
844
- }
845
- if (message.dateSend !== 0) {
846
- obj.dateSend = Math.round(message.dateSend);
847
- }
848
- if (message.response !== undefined) {
849
- obj.response = message.response;
850
- }
851
- if (message.responseParse !== undefined) {
852
- obj.responseParse = message.responseParse;
853
- }
854
- if (message.dateResponse !== 0) {
855
- obj.dateResponse = Math.round(message.dateResponse);
856
- }
857
- if (message.timeOut !== 0) {
858
- obj.timeOut = Math.round(message.timeOut);
859
- }
860
- if (message.type !== 0) {
861
- obj.type = Math.round(message.type);
862
- }
863
- if (!message.deviceId.equals(Long.UZERO)) {
864
- obj.deviceId = (message.deviceId || Long.UZERO).toString();
865
- }
866
- return obj;
867
- },
868
656
  create(base) {
869
657
  return CommandDevice.fromPartial(base ?? {});
870
658
  },
@@ -942,26 +730,6 @@ export const FusionCar = {
942
730
  }
943
731
  return message;
944
732
  },
945
- fromJSON(object) {
946
- return {
947
- carId: isSet(object.carId) ? Long.fromValue(object.carId) : Long.UZERO,
948
- deviceName: isSet(object.deviceName) ? globalThis.String(object.deviceName) : "",
949
- powerVoltage: isSet(object.powerVoltage) ? globalThis.Number(object.powerVoltage) : 0,
950
- };
951
- },
952
- toJSON(message) {
953
- const obj = {};
954
- if (!message.carId.equals(Long.UZERO)) {
955
- obj.carId = (message.carId || Long.UZERO).toString();
956
- }
957
- if (message.deviceName !== "") {
958
- obj.deviceName = message.deviceName;
959
- }
960
- if (message.powerVoltage !== 0) {
961
- obj.powerVoltage = Math.round(message.powerVoltage);
962
- }
963
- return obj;
964
- },
965
733
  create(base) {
966
734
  return FusionCar.fromPartial(base ?? {});
967
735
  },
@@ -1073,42 +841,6 @@ export const FusionNotify = {
1073
841
  }
1074
842
  return message;
1075
843
  },
1076
- fromJSON(object) {
1077
- return {
1078
- userId: isSet(object.userID) ? Long.fromValue(object.userID) : Long.UZERO,
1079
- title: isSet(object.title) ? globalThis.String(object.title) : "",
1080
- body: isSet(object.body) ? globalThis.String(object.body) : "",
1081
- data: isSet(object.data) ? FusionNotify_Body.fromJSON(object.data) : undefined,
1082
- image: isSet(object.image) ? globalThis.String(object.image) : undefined,
1083
- sound: isSet(object.sound) ? globalThis.Number(object.sound) : undefined,
1084
- token: isSet(object.token) ? globalThis.String(object.token) : undefined,
1085
- };
1086
- },
1087
- toJSON(message) {
1088
- const obj = {};
1089
- if (!message.userId.equals(Long.UZERO)) {
1090
- obj.userID = (message.userId || Long.UZERO).toString();
1091
- }
1092
- if (message.title !== "") {
1093
- obj.title = message.title;
1094
- }
1095
- if (message.body !== "") {
1096
- obj.body = message.body;
1097
- }
1098
- if (message.data !== undefined) {
1099
- obj.data = FusionNotify_Body.toJSON(message.data);
1100
- }
1101
- if (message.image !== undefined) {
1102
- obj.image = message.image;
1103
- }
1104
- if (message.sound !== undefined) {
1105
- obj.sound = Math.round(message.sound);
1106
- }
1107
- if (message.token !== undefined) {
1108
- obj.token = message.token;
1109
- }
1110
- return obj;
1111
- },
1112
844
  create(base) {
1113
845
  return FusionNotify.fromPartial(base ?? {});
1114
846
  },
@@ -1316,74 +1048,6 @@ export const FusionNotify_Body = {
1316
1048
  }
1317
1049
  return message;
1318
1050
  },
1319
- fromJSON(object) {
1320
- return {
1321
- type: isSet(object.type) ? globalThis.String(object.type) : "",
1322
- alertParam: isSet(object.alert_param) ? globalThis.String(object.alert_param) : undefined,
1323
- alertType: isSet(object.alert_type) ? globalThis.Number(object.alert_type) : 0,
1324
- alertRead: isSet(object.alert_read) ? globalThis.String(object.alert_read) : "",
1325
- icon: isSet(object.icon) ? globalThis.String(object.icon) : undefined,
1326
- unit: isSet(object.unit) ? globalThis.String(object.unit) : undefined,
1327
- vals: isSet(object.vals) ? globalThis.String(object.vals) : undefined,
1328
- alertListId: isSet(object.alert_list_id) ? globalThis.Number(object.alert_list_id) : undefined,
1329
- lat: isSet(object.lat) ? globalThis.Number(object.lat) : 0,
1330
- lng: isSet(object.lng) ? globalThis.Number(object.lng) : 0,
1331
- gpsTime: isSet(object.gps_time) ? Long.fromValue(object.gps_time) : Long.ZERO,
1332
- imei: isSet(object.imei) ? Long.fromValue(object.imei) : Long.UZERO,
1333
- deviceName: isSet(object.device_name) ? globalThis.String(object.device_name) : "",
1334
- relId: isSet(object.rel_id) ? Long.fromValue(object.rel_id) : undefined,
1335
- title: isSet(object.title) ? globalThis.String(object.title) : "",
1336
- };
1337
- },
1338
- toJSON(message) {
1339
- const obj = {};
1340
- if (message.type !== "") {
1341
- obj.type = message.type;
1342
- }
1343
- if (message.alertParam !== undefined) {
1344
- obj.alert_param = message.alertParam;
1345
- }
1346
- if (message.alertType !== 0) {
1347
- obj.alert_type = Math.round(message.alertType);
1348
- }
1349
- if (message.alertRead !== "") {
1350
- obj.alert_read = message.alertRead;
1351
- }
1352
- if (message.icon !== undefined) {
1353
- obj.icon = message.icon;
1354
- }
1355
- if (message.unit !== undefined) {
1356
- obj.unit = message.unit;
1357
- }
1358
- if (message.vals !== undefined) {
1359
- obj.vals = message.vals;
1360
- }
1361
- if (message.alertListId !== undefined) {
1362
- obj.alert_list_id = Math.round(message.alertListId);
1363
- }
1364
- if (message.lat !== 0) {
1365
- obj.lat = message.lat;
1366
- }
1367
- if (message.lng !== 0) {
1368
- obj.lng = message.lng;
1369
- }
1370
- if (!message.gpsTime.equals(Long.ZERO)) {
1371
- obj.gps_time = (message.gpsTime || Long.ZERO).toString();
1372
- }
1373
- if (!message.imei.equals(Long.UZERO)) {
1374
- obj.imei = (message.imei || Long.UZERO).toString();
1375
- }
1376
- if (message.deviceName !== "") {
1377
- obj.device_name = message.deviceName;
1378
- }
1379
- if (message.relId !== undefined) {
1380
- obj.rel_id = (message.relId || Long.UZERO).toString();
1381
- }
1382
- if (message.title !== "") {
1383
- obj.title = message.title;
1384
- }
1385
- return obj;
1386
- },
1387
1051
  create(base) {
1388
1052
  return FusionNotify_Body.fromPartial(base ?? {});
1389
1053
  },
@@ -1806,150 +1470,6 @@ export const FusionMaintenance = {
1806
1470
  }
1807
1471
  return message;
1808
1472
  },
1809
- fromJSON(object) {
1810
- return {
1811
- mcId: isSet(object.mc_id) ? globalThis.Number(object.mc_id) : 0,
1812
- carId: isSet(object.car_id) ? globalThis.Number(object.car_id) : 0,
1813
- maintenanceId: isSet(object.maintenance_id) ? globalThis.Number(object.maintenance_id) : 0,
1814
- projectId: isSet(object.project_id) ? globalThis.Number(object.project_id) : 0,
1815
- userId: isSet(object.user_id) ? globalThis.Number(object.user_id) : 0,
1816
- dateSet: isSet(object.date_set) ? globalThis.Number(object.date_set) : 0,
1817
- price: isSet(object.price) ? globalThis.Number(object.price) : 0,
1818
- expireable: isSet(object.expireable) ? globalThis.Boolean(object.expireable) : false,
1819
- expireDate: isSet(object.expire_date) ? globalThis.Number(object.expire_date) : 0,
1820
- expireEnginTime: isSet(object.expire_engin_time) ? globalThis.Number(object.expire_engin_time) : 0,
1821
- expireOdo: isSet(object.expire_odo) ? globalThis.Number(object.expire_odo) : 0,
1822
- expired: isSet(object.expired) ? globalThis.Number(object.expired) : 0,
1823
- carEnginTime: isSet(object.car_engin_time) ? globalThis.Number(object.car_engin_time) : 0,
1824
- carOdo: isSet(object.car_odo) ? globalThis.Number(object.car_odo) : 0,
1825
- dateCreate: isSet(object.date_create) ? globalThis.Number(object.date_create) : 0,
1826
- renewable: isSet(object.renewable) ? globalThis.Number(object.renewable) : 0,
1827
- dateRenew: isSet(object.date_renew) ? globalThis.Number(object.date_renew) : 0,
1828
- renewId: isSet(object.renew_id) ? globalThis.Number(object.renew_id) : 0,
1829
- sent: isSet(object.sent) ? globalThis.Number(object.sent) : 0,
1830
- dateExpired: isSet(object.date_expired) ? globalThis.Number(object.date_expired) : 0,
1831
- parts: isSet(object.parts) ? globalThis.String(object.parts) : undefined,
1832
- serviceProviderId: isSet(object.service_provider_id) ? globalThis.Number(object.service_provider_id) : 0,
1833
- lat: isSet(object.lat) ? globalThis.Number(object.lat) : undefined,
1834
- lng: isSet(object.lng) ? globalThis.Number(object.lng) : undefined,
1835
- photo: isSet(object.photo) ? globalThis.String(object.photo) : undefined,
1836
- userCreatorId: isSet(object.user_creator_id) ? globalThis.Number(object.user_creator_id) : 0,
1837
- expireDateWarranty: isSet(object.expire_date_warranty) ? globalThis.Number(object.expire_date_warranty) : 0,
1838
- description: isSet(object.description) ? globalThis.String(object.description) : undefined,
1839
- dateEnd: isSet(object.date_end) ? globalThis.Number(object.date_end) : 0,
1840
- currentMileage: isSet(object.current_mileage) ? Long.fromValue(object.current_mileage) : Long.UZERO,
1841
- currentEngineTime: isSet(object.current_engine_time) ? Long.fromValue(object.current_engine_time) : Long.UZERO,
1842
- expiredReason: isSet(object.expired_reason) ? globalThis.String(object.expired_reason) : undefined,
1843
- createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
1844
- updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
1845
- };
1846
- },
1847
- toJSON(message) {
1848
- const obj = {};
1849
- if (message.mcId !== 0) {
1850
- obj.mc_id = Math.round(message.mcId);
1851
- }
1852
- if (message.carId !== 0) {
1853
- obj.car_id = Math.round(message.carId);
1854
- }
1855
- if (message.maintenanceId !== 0) {
1856
- obj.maintenance_id = Math.round(message.maintenanceId);
1857
- }
1858
- if (message.projectId !== 0) {
1859
- obj.project_id = Math.round(message.projectId);
1860
- }
1861
- if (message.userId !== 0) {
1862
- obj.user_id = Math.round(message.userId);
1863
- }
1864
- if (message.dateSet !== 0) {
1865
- obj.date_set = Math.round(message.dateSet);
1866
- }
1867
- if (message.price !== 0) {
1868
- obj.price = Math.round(message.price);
1869
- }
1870
- if (message.expireable !== false) {
1871
- obj.expireable = message.expireable;
1872
- }
1873
- if (message.expireDate !== 0) {
1874
- obj.expire_date = Math.round(message.expireDate);
1875
- }
1876
- if (message.expireEnginTime !== 0) {
1877
- obj.expire_engin_time = Math.round(message.expireEnginTime);
1878
- }
1879
- if (message.expireOdo !== 0) {
1880
- obj.expire_odo = Math.round(message.expireOdo);
1881
- }
1882
- if (message.expired !== 0) {
1883
- obj.expired = Math.round(message.expired);
1884
- }
1885
- if (message.carEnginTime !== 0) {
1886
- obj.car_engin_time = Math.round(message.carEnginTime);
1887
- }
1888
- if (message.carOdo !== 0) {
1889
- obj.car_odo = Math.round(message.carOdo);
1890
- }
1891
- if (message.dateCreate !== 0) {
1892
- obj.date_create = Math.round(message.dateCreate);
1893
- }
1894
- if (message.renewable !== 0) {
1895
- obj.renewable = Math.round(message.renewable);
1896
- }
1897
- if (message.dateRenew !== 0) {
1898
- obj.date_renew = Math.round(message.dateRenew);
1899
- }
1900
- if (message.renewId !== 0) {
1901
- obj.renew_id = Math.round(message.renewId);
1902
- }
1903
- if (message.sent !== 0) {
1904
- obj.sent = Math.round(message.sent);
1905
- }
1906
- if (message.dateExpired !== 0) {
1907
- obj.date_expired = Math.round(message.dateExpired);
1908
- }
1909
- if (message.parts !== undefined) {
1910
- obj.parts = message.parts;
1911
- }
1912
- if (message.serviceProviderId !== 0) {
1913
- obj.service_provider_id = Math.round(message.serviceProviderId);
1914
- }
1915
- if (message.lat !== undefined) {
1916
- obj.lat = message.lat;
1917
- }
1918
- if (message.lng !== undefined) {
1919
- obj.lng = message.lng;
1920
- }
1921
- if (message.photo !== undefined) {
1922
- obj.photo = message.photo;
1923
- }
1924
- if (message.userCreatorId !== 0) {
1925
- obj.user_creator_id = Math.round(message.userCreatorId);
1926
- }
1927
- if (message.expireDateWarranty !== 0) {
1928
- obj.expire_date_warranty = Math.round(message.expireDateWarranty);
1929
- }
1930
- if (message.description !== undefined) {
1931
- obj.description = message.description;
1932
- }
1933
- if (message.dateEnd !== 0) {
1934
- obj.date_end = Math.round(message.dateEnd);
1935
- }
1936
- if (!message.currentMileage.equals(Long.UZERO)) {
1937
- obj.current_mileage = (message.currentMileage || Long.UZERO).toString();
1938
- }
1939
- if (!message.currentEngineTime.equals(Long.UZERO)) {
1940
- obj.current_engine_time = (message.currentEngineTime || Long.UZERO).toString();
1941
- }
1942
- if (message.expiredReason !== undefined) {
1943
- obj.expired_reason = message.expiredReason;
1944
- }
1945
- if (message.createdAt !== undefined) {
1946
- obj.created_at = message.createdAt.toISOString();
1947
- }
1948
- if (message.updatedAt !== undefined) {
1949
- obj.updated_at = message.updatedAt.toISOString();
1950
- }
1951
- return obj;
1952
- },
1953
1473
  create(base) {
1954
1474
  return FusionMaintenance.fromPartial(base ?? {});
1955
1475
  },
@@ -2006,20 +1526,6 @@ function fromTimestamp(t) {
2006
1526
  millis += (t.nanos || 0) / 1_000_000;
2007
1527
  return new globalThis.Date(millis);
2008
1528
  }
2009
- function fromJsonTimestamp(o) {
2010
- if (o instanceof globalThis.Date) {
2011
- return o;
2012
- }
2013
- else if (typeof o === "string") {
2014
- return new globalThis.Date(o);
2015
- }
2016
- else {
2017
- return fromTimestamp(Timestamp.fromJSON(o));
2018
- }
2019
- }
2020
1529
  function numberToLong(number) {
2021
1530
  return Long.fromNumber(number);
2022
1531
  }
2023
- function isSet(value) {
2024
- return value !== null && value !== undefined;
2025
- }
@@ -13,7 +13,7 @@ export interface Gallery {
13
13
  codec?: string | undefined;
14
14
  size: number;
15
15
  location?: Data | undefined;
16
- createdAt?: Date | undefined;
16
+ createdAt: Date | undefined;
17
17
  }
18
18
  export interface IoList {
19
19
  items: {
@@ -72,12 +72,12 @@ export interface ChargeLog {
72
72
  description?: string | undefined;
73
73
  ip?: string | undefined;
74
74
  userAgent?: string | undefined;
75
- previousExpiration?: Date | undefined;
76
- nextExpiration?: Date | undefined;
75
+ previousExpiration: Date | undefined;
76
+ nextExpiration: Date | undefined;
77
77
  isUnlimited: boolean;
78
78
  refund: boolean;
79
- createdAt?: Date | undefined;
80
- updatedAt?: Date | undefined;
79
+ createdAt: Date | undefined;
80
+ updatedAt: Date | undefined;
81
81
  }
82
82
  export declare enum ChargeLog_Type {
83
83
  None = 0,
@@ -89,12 +89,10 @@ export declare enum ChargeLog_Type {
89
89
  Refund = 6,
90
90
  UNRECOGNIZED = -1
91
91
  }
92
- export declare function chargeLog_TypeFromJSON(object: any): ChargeLog_Type;
93
- export declare function chargeLog_TypeToJSON(object: ChargeLog_Type): string;
94
92
  export interface TrialLog {
95
93
  id: Long;
96
94
  imei: Long;
97
- createdAt?: Date | undefined;
95
+ createdAt: Date | undefined;
98
96
  }
99
97
  export interface LiveLocation {
100
98
  id: Long;
@@ -156,8 +154,6 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
156
154
  export interface MessageFns<T> {
157
155
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
158
156
  decode(input: BinaryReader | Uint8Array, length?: number): T;
159
- fromJSON(object: any): T;
160
- toJSON(message: T): unknown;
161
157
  create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
162
158
  fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
163
159
  }