energy-flow-control--types-and-enums 1.0.273 → 1.0.275

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "energy-flow-control--types-and-enums",
3
- "version": "1.0.273",
3
+ "version": "1.0.275",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -286,6 +286,7 @@ export enum EnumUnit {
286
286
 
287
287
  export enum EnumMetricChannel {
288
288
  BATTERY_SOC = 'battery.SoC',
289
+ BATTERY_TEMPERATURE = 'battery.temperature',
289
290
  TEMPERATURE = 'temperature',
290
291
  RELAY_1_SWITCH = 'switch.1',
291
292
  RELAY_2_SWITCH = 'switch.2',
package/src/index.js CHANGED
@@ -288,6 +288,7 @@ var EnumUnit;
288
288
  var EnumMetricChannel;
289
289
  (function (EnumMetricChannel) {
290
290
  EnumMetricChannel["BATTERY_SOC"] = "battery.SoC";
291
+ EnumMetricChannel["BATTERY_TEMPERATURE"] = "battery.temperature";
291
292
  EnumMetricChannel["TEMPERATURE"] = "temperature";
292
293
  EnumMetricChannel["RELAY_1_SWITCH"] = "switch.1";
293
294
  EnumMetricChannel["RELAY_2_SWITCH"] = "switch.2";
@@ -741,7 +741,7 @@ export interface IMetric {
741
741
  label: string
742
742
  }
743
743
 
744
- interface IMetricReading {
744
+ export interface IMetricReading {
745
745
  id: number
746
746
  metricId: number
747
747
  unit: EnumUnit,
@@ -750,6 +750,14 @@ interface IMetricReading {
750
750
  value: number
751
751
  }
752
752
 
753
+ export interface IMetricReadingValue {
754
+ pos: number
755
+ metricId: number
756
+ datetime: Date
757
+ unit: EnumUnit,
758
+ value: number
759
+ }
760
+
753
761
  export interface IEnergyMeterData {
754
762
  inboundMeterReadingAtStartOfPeriod: number
755
763
  inboundMeterReadingAtEndOfPeriod: number