@teslemetry/tesla-protocol 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/command/car_server.cjs +1266 -129
- package/dist/command/car_server.d.cts +129 -1
- package/dist/command/car_server.d.mts +129 -1
- package/dist/command/car_server.mjs +1245 -130
- package/dist/command/vcsec.cjs +1 -1
- package/dist/command/vcsec.d.cts +1 -1
- package/dist/command/vcsec.d.mts +1 -1
- package/dist/command/vcsec.mjs +1 -1
- package/dist/command/vehicle.cjs +1 -1
- package/dist/command/vehicle.d.cts +1 -1
- package/dist/command/vehicle.d.mts +1 -1
- package/dist/command/vehicle.mjs +1 -1
- package/dist/telemetry/vehicle_data.cjs +5 -0
- package/dist/telemetry/vehicle_data.d.cts +2 -0
- package/dist/telemetry/vehicle_data.d.mts +2 -0
- package/dist/telemetry/vehicle_data.mjs +5 -0
- package/package.json +1 -1
package/dist/command/vcsec.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_command_errors = require("./errors.cjs");
|
|
3
2
|
const require_command_keys = require("./keys.cjs");
|
|
3
|
+
const require_command_errors = require("./errors.cjs");
|
|
4
4
|
let _bufbuild_protobuf_wire = require("@bufbuild/protobuf/wire");
|
|
5
5
|
//#region src/command/vcsec.ts
|
|
6
6
|
const protobufPackage = "VCSEC";
|
package/dist/command/vcsec.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NominalError } from "./errors.cjs";
|
|
2
1
|
import { Role } from "./keys.cjs";
|
|
2
|
+
import { NominalError } from "./errors.cjs";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
4
4
|
//#region src/command/vcsec.d.ts
|
|
5
5
|
declare const protobufPackage = "VCSEC";
|
package/dist/command/vcsec.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NominalError } from "./errors.mjs";
|
|
2
1
|
import { Role } from "./keys.mjs";
|
|
2
|
+
import { NominalError } from "./errors.mjs";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
4
4
|
//#region src/command/vcsec.d.ts
|
|
5
5
|
declare const protobufPackage = "VCSEC";
|
package/dist/command/vcsec.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NominalError } from "./errors.mjs";
|
|
2
1
|
import { roleFromJSON, roleToJSON } from "./keys.mjs";
|
|
2
|
+
import { NominalError } from "./errors.mjs";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
4
4
|
//#region src/command/vcsec.ts
|
|
5
5
|
const protobufPackage = "VCSEC";
|
package/dist/command/vehicle.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_command_common = require("./common.cjs");
|
|
3
3
|
const require_command_google_protobuf_timestamp = require("./google/protobuf/timestamp.cjs");
|
|
4
|
-
const require_command_managed_charging = require("./managed_charging.cjs");
|
|
5
4
|
const require_command_vcsec = require("./vcsec.cjs");
|
|
5
|
+
const require_command_managed_charging = require("./managed_charging.cjs");
|
|
6
6
|
let _bufbuild_protobuf_wire = require("@bufbuild/protobuf/wire");
|
|
7
7
|
//#region src/command/vehicle.ts
|
|
8
8
|
const protobufPackage = "CarServer";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccessoryLightbarType, ChargePortLatchState, ChargeSchedule, ChargingAlert, ChassisType, FasciaType, GtwDiagLevel, LatLong, MediaPlaybackStatus, OffPeakChargingTimes, PreconditionSchedule, PreconditioningTimes, RearSeatHeaterType, StwHeatLevel, SuspensionActuationState, SuspensionLevel, Void, ZoneLightRequest } from "./common.cjs";
|
|
2
|
-
import { ChargeOnSolarNoChargeReason } from "./managed_charging.cjs";
|
|
3
2
|
import { ClosureStateE } from "./vcsec.cjs";
|
|
3
|
+
import { ChargeOnSolarNoChargeReason } from "./managed_charging.cjs";
|
|
4
4
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
5
5
|
//#region src/command/vehicle.d.ts
|
|
6
6
|
declare const protobufPackage = "CarServer";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccessoryLightbarType, ChargePortLatchState, ChargeSchedule, ChargingAlert, ChassisType, FasciaType, GtwDiagLevel, LatLong, MediaPlaybackStatus, OffPeakChargingTimes, PreconditionSchedule, PreconditioningTimes, RearSeatHeaterType, StwHeatLevel, SuspensionActuationState, SuspensionLevel, Void, ZoneLightRequest } from "./common.mjs";
|
|
2
|
-
import { ChargeOnSolarNoChargeReason } from "./managed_charging.mjs";
|
|
3
2
|
import { ClosureStateE } from "./vcsec.mjs";
|
|
3
|
+
import { ChargeOnSolarNoChargeReason } from "./managed_charging.mjs";
|
|
4
4
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
5
5
|
//#region src/command/vehicle.d.ts
|
|
6
6
|
declare const protobufPackage = "CarServer";
|
package/dist/command/vehicle.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChargePortLatchState, ChargeSchedule, ChargingAlert, LatLong, OffPeakChargingTimes, PreconditionSchedule, PreconditioningTimes, Void, accessoryLightbarTypeFromJSON, accessoryLightbarTypeToJSON, chassisTypeFromJSON, chassisTypeToJSON, fasciaTypeFromJSON, fasciaTypeToJSON, gtwDiagLevelFromJSON, gtwDiagLevelToJSON, mediaPlaybackStatusFromJSON, mediaPlaybackStatusToJSON, rearSeatHeaterTypeFromJSON, rearSeatHeaterTypeToJSON, stwHeatLevelFromJSON, stwHeatLevelToJSON, suspensionActuationStateFromJSON, suspensionActuationStateToJSON, suspensionLevelFromJSON, suspensionLevelToJSON, zoneLightRequestFromJSON, zoneLightRequestToJSON } from "./common.mjs";
|
|
2
2
|
import { Timestamp } from "./google/protobuf/timestamp.mjs";
|
|
3
|
-
import { chargeOnSolarNoChargeReasonFromJSON, chargeOnSolarNoChargeReasonToJSON } from "./managed_charging.mjs";
|
|
4
3
|
import { closureStateEFromJSON, closureStateEToJSON } from "./vcsec.mjs";
|
|
4
|
+
import { chargeOnSolarNoChargeReasonFromJSON, chargeOnSolarNoChargeReasonToJSON } from "./managed_charging.mjs";
|
|
5
5
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
6
6
|
//#region src/command/vehicle.ts
|
|
7
7
|
const protobufPackage = "CarServer";
|
|
@@ -1582,6 +1582,8 @@ let BuckleStatus = /* @__PURE__ */ function(BuckleStatus) {
|
|
|
1582
1582
|
BuckleStatus[BuckleStatus["BuckleStatusUnlatched"] = 1] = "BuckleStatusUnlatched";
|
|
1583
1583
|
BuckleStatus[BuckleStatus["BuckleStatusLatched"] = 2] = "BuckleStatusLatched";
|
|
1584
1584
|
BuckleStatus[BuckleStatus["BuckleStatusFaulted"] = 3] = "BuckleStatusFaulted";
|
|
1585
|
+
/** BuckleStatusSNA - TESLEMETRY-EXT (from our own observations and contributions from the community) */
|
|
1586
|
+
BuckleStatus[BuckleStatus["BuckleStatusSNA"] = 4] = "BuckleStatusSNA";
|
|
1585
1587
|
BuckleStatus[BuckleStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1586
1588
|
return BuckleStatus;
|
|
1587
1589
|
}({});
|
|
@@ -1595,6 +1597,8 @@ function buckleStatusFromJSON(object) {
|
|
|
1595
1597
|
case "BuckleStatusLatched": return 2;
|
|
1596
1598
|
case 3:
|
|
1597
1599
|
case "BuckleStatusFaulted": return 3;
|
|
1600
|
+
case 4:
|
|
1601
|
+
case "BuckleStatusSNA": return 4;
|
|
1598
1602
|
default: return -1;
|
|
1599
1603
|
}
|
|
1600
1604
|
}
|
|
@@ -1604,6 +1608,7 @@ function buckleStatusToJSON(object) {
|
|
|
1604
1608
|
case 1: return "BuckleStatusUnlatched";
|
|
1605
1609
|
case 2: return "BuckleStatusLatched";
|
|
1606
1610
|
case 3: return "BuckleStatusFaulted";
|
|
1611
|
+
case 4: return "BuckleStatusSNA";
|
|
1607
1612
|
default: return "UNRECOGNIZED";
|
|
1608
1613
|
}
|
|
1609
1614
|
}
|
|
@@ -440,6 +440,8 @@ declare enum BuckleStatus {
|
|
|
440
440
|
BuckleStatusUnlatched = 1,
|
|
441
441
|
BuckleStatusLatched = 2,
|
|
442
442
|
BuckleStatusFaulted = 3,
|
|
443
|
+
/** BuckleStatusSNA - TESLEMETRY-EXT (from our own observations and contributions from the community) */
|
|
444
|
+
BuckleStatusSNA = 4,
|
|
443
445
|
UNRECOGNIZED = -1
|
|
444
446
|
}
|
|
445
447
|
declare function buckleStatusFromJSON(object: any): BuckleStatus;
|
|
@@ -440,6 +440,8 @@ declare enum BuckleStatus {
|
|
|
440
440
|
BuckleStatusUnlatched = 1,
|
|
441
441
|
BuckleStatusLatched = 2,
|
|
442
442
|
BuckleStatusFaulted = 3,
|
|
443
|
+
/** BuckleStatusSNA - TESLEMETRY-EXT (from our own observations and contributions from the community) */
|
|
444
|
+
BuckleStatusSNA = 4,
|
|
443
445
|
UNRECOGNIZED = -1
|
|
444
446
|
}
|
|
445
447
|
declare function buckleStatusFromJSON(object: any): BuckleStatus;
|
|
@@ -1581,6 +1581,8 @@ let BuckleStatus = /* @__PURE__ */ function(BuckleStatus) {
|
|
|
1581
1581
|
BuckleStatus[BuckleStatus["BuckleStatusUnlatched"] = 1] = "BuckleStatusUnlatched";
|
|
1582
1582
|
BuckleStatus[BuckleStatus["BuckleStatusLatched"] = 2] = "BuckleStatusLatched";
|
|
1583
1583
|
BuckleStatus[BuckleStatus["BuckleStatusFaulted"] = 3] = "BuckleStatusFaulted";
|
|
1584
|
+
/** BuckleStatusSNA - TESLEMETRY-EXT (from our own observations and contributions from the community) */
|
|
1585
|
+
BuckleStatus[BuckleStatus["BuckleStatusSNA"] = 4] = "BuckleStatusSNA";
|
|
1584
1586
|
BuckleStatus[BuckleStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1585
1587
|
return BuckleStatus;
|
|
1586
1588
|
}({});
|
|
@@ -1594,6 +1596,8 @@ function buckleStatusFromJSON(object) {
|
|
|
1594
1596
|
case "BuckleStatusLatched": return 2;
|
|
1595
1597
|
case 3:
|
|
1596
1598
|
case "BuckleStatusFaulted": return 3;
|
|
1599
|
+
case 4:
|
|
1600
|
+
case "BuckleStatusSNA": return 4;
|
|
1597
1601
|
default: return -1;
|
|
1598
1602
|
}
|
|
1599
1603
|
}
|
|
@@ -1603,6 +1607,7 @@ function buckleStatusToJSON(object) {
|
|
|
1603
1607
|
case 1: return "BuckleStatusUnlatched";
|
|
1604
1608
|
case 2: return "BuckleStatusLatched";
|
|
1605
1609
|
case 3: return "BuckleStatusFaulted";
|
|
1610
|
+
case 4: return "BuckleStatusSNA";
|
|
1606
1611
|
default: return "UNRECOGNIZED";
|
|
1607
1612
|
}
|
|
1608
1613
|
}
|
package/package.json
CHANGED