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 +1 -1
- package/src/enums/index.ts +1 -0
- package/src/index.js +1 -0
- package/src/types/index.d.ts +9 -1
package/package.json
CHANGED
package/src/enums/index.ts
CHANGED
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";
|
package/src/types/index.d.ts
CHANGED
|
@@ -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
|