energy-flow-control--types-and-enums 1.0.217 → 1.0.219
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 +6 -0
- package/src/index.js +7 -1
- package/src/types/index.d.ts +7 -0
package/package.json
CHANGED
package/src/enums/index.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnumValueReadingSourceType = exports.EnumPriceComponent = exports.EnumNoSupplyReason = exports.EnumUserStatus = exports.EnumSolarForecastApi = exports.EnumAppValueCollectionName = exports.EnumRowSlots = exports.EnumBillingPeriodState = exports.EnumPricingModel = exports.EnumCarOemModel = exports.EnumCarOem = exports.EnumEventSeverity = exports.EnumEventSource = exports.EnumGeneratorSetType = exports.EnumEquipmentType = exports.TimeInterval = exports.EnumCameraModel = exports.EnumCustomerContractState = exports.EnumPvStringState = exports.EnumHttpProtocol = exports.EnumInvoiceTopic = exports.EnumBookingReason = exports.EnumInvoiceState = exports.EnumWallBoxState = exports.EnumTariffConsumptionType = exports.EnumThermometerModel = exports.EnumRemotelyControlledSwitchModel = exports.EnumEnergyMeterModel = exports.EnumProsumerEquipmentType = exports.EnumProsumerModel = exports.EnumProsumerType = exports.EnumEquipmentState = void 0;
|
|
3
|
+
exports.EnumPhase = exports.EnumValueReadingSourceType = exports.EnumPriceComponent = exports.EnumNoSupplyReason = exports.EnumUserStatus = exports.EnumSolarForecastApi = exports.EnumAppValueCollectionName = exports.EnumRowSlots = exports.EnumBillingPeriodState = exports.EnumPricingModel = exports.EnumCarOemModel = exports.EnumCarOem = exports.EnumEventSeverity = exports.EnumEventSource = exports.EnumGeneratorSetType = exports.EnumEquipmentType = exports.TimeInterval = exports.EnumCameraModel = exports.EnumCustomerContractState = exports.EnumPvStringState = exports.EnumHttpProtocol = exports.EnumInvoiceTopic = exports.EnumBookingReason = exports.EnumInvoiceState = exports.EnumWallBoxState = exports.EnumTariffConsumptionType = exports.EnumThermometerModel = exports.EnumRemotelyControlledSwitchModel = exports.EnumEnergyMeterModel = exports.EnumProsumerEquipmentType = exports.EnumProsumerModel = exports.EnumProsumerType = exports.EnumEquipmentState = void 0;
|
|
4
4
|
var EnumEquipmentState;
|
|
5
5
|
(function (EnumEquipmentState) {
|
|
6
6
|
EnumEquipmentState["ON"] = "ON";
|
|
@@ -201,3 +201,9 @@ var EnumValueReadingSourceType;
|
|
|
201
201
|
EnumValueReadingSourceType["ENERGY_METER"] = "ENERGY_METER";
|
|
202
202
|
EnumValueReadingSourceType["PV_STRING"] = "PV_STRING";
|
|
203
203
|
})(EnumValueReadingSourceType || (exports.EnumValueReadingSourceType = EnumValueReadingSourceType = {}));
|
|
204
|
+
var EnumPhase;
|
|
205
|
+
(function (EnumPhase) {
|
|
206
|
+
EnumPhase["ONE"] = "ONE";
|
|
207
|
+
EnumPhase["TWO"] = "TWO";
|
|
208
|
+
EnumPhase["THREE"] = "THREE";
|
|
209
|
+
})(EnumPhase || (exports.EnumPhase = EnumPhase = {}));
|
package/src/types/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
EnumInvoiceState,
|
|
13
13
|
EnumInvoiceTopic,
|
|
14
14
|
EnumNoSupplyReason,
|
|
15
|
+
EnumPhase,
|
|
15
16
|
EnumPriceComponent,
|
|
16
17
|
EnumPricingModel,
|
|
17
18
|
EnumProsumerEquipmentType,
|
|
@@ -176,6 +177,7 @@ export interface ILiveDataEnergyMeter {
|
|
|
176
177
|
powerInW: number
|
|
177
178
|
consumptionInKwh: number | null
|
|
178
179
|
feedInInKwh: number | null
|
|
180
|
+
currents: ICurrent[]
|
|
179
181
|
}
|
|
180
182
|
|
|
181
183
|
interface ILiveDataControllableConsumer {
|
|
@@ -635,3 +637,8 @@ export interface IValueReading {
|
|
|
635
637
|
reading: number
|
|
636
638
|
unit: string | null
|
|
637
639
|
}
|
|
640
|
+
|
|
641
|
+
export interface ICurrent {
|
|
642
|
+
phase: EnumPhase
|
|
643
|
+
valueInA: number
|
|
644
|
+
}
|