@enyo-energy/energy-app-sdk 0.0.130 → 0.0.131

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.
@@ -161,6 +161,7 @@ var EnyoDataBusMessageEnum;
161
161
  EnyoDataBusMessageEnum["AirConditioningTemperaturesUpdateV1"] = "AirConditioningTemperaturesUpdateV1";
162
162
  EnyoDataBusMessageEnum["StartAirConditioningV1"] = "StartAirConditioningV1";
163
163
  EnyoDataBusMessageEnum["StopAirConditioningV1"] = "StopAirConditioningV1";
164
+ EnyoDataBusMessageEnum["VehicleSocUpdateV1"] = "VehicleSocUpdateV1";
164
165
  })(EnyoDataBusMessageEnum || (exports.EnyoDataBusMessageEnum = EnyoDataBusMessageEnum = {}));
165
166
  /**
166
167
  * Possible answers an appliance can give when acknowledging a command.
@@ -200,7 +200,8 @@ export declare enum EnyoDataBusMessageEnum {
200
200
  AirConditioningValuesUpdateV1 = "AirConditioningValuesUpdateV1",
201
201
  AirConditioningTemperaturesUpdateV1 = "AirConditioningTemperaturesUpdateV1",
202
202
  StartAirConditioningV1 = "StartAirConditioningV1",
203
- StopAirConditioningV1 = "StopAirConditioningV1"
203
+ StopAirConditioningV1 = "StopAirConditioningV1",
204
+ VehicleSocUpdateV1 = "VehicleSocUpdateV1"
204
205
  }
205
206
  export type EnyoDataBusMessageResolution = '10s' | '30s' | '1m' | '15m' | '1h' | '1d' | 'dynamic';
206
207
  /**
@@ -1375,3 +1376,20 @@ export interface EnyoDataBusStopAirConditioningV1 extends EnyoDataBusMessage {
1375
1376
  reason?: EnyoDataBusCommandReason;
1376
1377
  };
1377
1378
  }
1379
+ /**
1380
+ * Informational message reporting the current state of charge of an electric vehicle.
1381
+ * Published whenever an updated SoC reading becomes available — typically while the
1382
+ * vehicle is plugged in or when the vehicle reports its SoC via a connected service.
1383
+ */
1384
+ export interface EnyoDataBusVehicleSocUpdateV1 extends EnyoDataBusMessage {
1385
+ type: 'message';
1386
+ message: EnyoDataBusMessageEnum.VehicleSocUpdateV1;
1387
+ data: {
1388
+ /** ID of the vehicle the SoC reading belongs to */
1389
+ vehicleId: string;
1390
+ /** Current state of charge of the vehicle's traction battery in percent (0-100) */
1391
+ socPercent: number;
1392
+ /** Total usable capacity of the vehicle's traction battery in kWh, if known */
1393
+ batterySizeKwh?: number;
1394
+ };
1395
+ }
@@ -9,4 +9,5 @@ export interface EnyoVehicle {
9
9
  licensePlate?: string;
10
10
  batterySizeKwh?: number;
11
11
  pinnedChargingCardId?: string;
12
+ socPercent?: number;
12
13
  }
@@ -9,7 +9,7 @@ exports.getSdkVersion = getSdkVersion;
9
9
  /**
10
10
  * Current version of the enyo Energy App SDK.
11
11
  */
12
- exports.SDK_VERSION = '0.0.130';
12
+ exports.SDK_VERSION = '0.0.131';
13
13
  /**
14
14
  * Gets the current SDK version.
15
15
  * @returns The semantic version string of the SDK
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.130";
8
+ export declare const SDK_VERSION = "0.0.131";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
@@ -200,7 +200,8 @@ export declare enum EnyoDataBusMessageEnum {
200
200
  AirConditioningValuesUpdateV1 = "AirConditioningValuesUpdateV1",
201
201
  AirConditioningTemperaturesUpdateV1 = "AirConditioningTemperaturesUpdateV1",
202
202
  StartAirConditioningV1 = "StartAirConditioningV1",
203
- StopAirConditioningV1 = "StopAirConditioningV1"
203
+ StopAirConditioningV1 = "StopAirConditioningV1",
204
+ VehicleSocUpdateV1 = "VehicleSocUpdateV1"
204
205
  }
205
206
  export type EnyoDataBusMessageResolution = '10s' | '30s' | '1m' | '15m' | '1h' | '1d' | 'dynamic';
206
207
  /**
@@ -1375,3 +1376,20 @@ export interface EnyoDataBusStopAirConditioningV1 extends EnyoDataBusMessage {
1375
1376
  reason?: EnyoDataBusCommandReason;
1376
1377
  };
1377
1378
  }
1379
+ /**
1380
+ * Informational message reporting the current state of charge of an electric vehicle.
1381
+ * Published whenever an updated SoC reading becomes available — typically while the
1382
+ * vehicle is plugged in or when the vehicle reports its SoC via a connected service.
1383
+ */
1384
+ export interface EnyoDataBusVehicleSocUpdateV1 extends EnyoDataBusMessage {
1385
+ type: 'message';
1386
+ message: EnyoDataBusMessageEnum.VehicleSocUpdateV1;
1387
+ data: {
1388
+ /** ID of the vehicle the SoC reading belongs to */
1389
+ vehicleId: string;
1390
+ /** Current state of charge of the vehicle's traction battery in percent (0-100) */
1391
+ socPercent: number;
1392
+ /** Total usable capacity of the vehicle's traction battery in kWh, if known */
1393
+ batterySizeKwh?: number;
1394
+ };
1395
+ }
@@ -158,6 +158,7 @@ export var EnyoDataBusMessageEnum;
158
158
  EnyoDataBusMessageEnum["AirConditioningTemperaturesUpdateV1"] = "AirConditioningTemperaturesUpdateV1";
159
159
  EnyoDataBusMessageEnum["StartAirConditioningV1"] = "StartAirConditioningV1";
160
160
  EnyoDataBusMessageEnum["StopAirConditioningV1"] = "StopAirConditioningV1";
161
+ EnyoDataBusMessageEnum["VehicleSocUpdateV1"] = "VehicleSocUpdateV1";
161
162
  })(EnyoDataBusMessageEnum || (EnyoDataBusMessageEnum = {}));
162
163
  /**
163
164
  * Possible answers an appliance can give when acknowledging a command.
@@ -9,4 +9,5 @@ export interface EnyoVehicle {
9
9
  licensePlate?: string;
10
10
  batterySizeKwh?: number;
11
11
  pinnedChargingCardId?: string;
12
+ socPercent?: number;
12
13
  }
package/dist/version.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.130";
8
+ export declare const SDK_VERSION = "0.0.131";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/dist/version.js CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export const SDK_VERSION = '0.0.130';
8
+ export const SDK_VERSION = '0.0.131';
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enyo-energy/energy-app-sdk",
3
- "version": "0.0.130",
3
+ "version": "0.0.131",
4
4
  "description": "enyo Energy App SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",