energy-flow-control--types-and-enums 1.0.200 → 1.0.202
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 +7 -1
- package/src/index.js +8 -2
- package/src/types/index.d.ts +8 -6
package/package.json
CHANGED
package/src/enums/index.ts
CHANGED
|
@@ -33,7 +33,7 @@ export enum EnumEnergyMeterModel {
|
|
|
33
33
|
TASMOTA_IR = 'TASMOTA_IR',
|
|
34
34
|
WARP_CHARGER_3 = 'WARP_CHARGER_3',
|
|
35
35
|
DAHEIMLADEN = 'DAHEIMLADEN',
|
|
36
|
-
|
|
36
|
+
VICTRON_CERBO_GX = 'VICTRON_CERBO_GX',
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export enum EnumRemotelyControlledSwitchModel {
|
|
@@ -178,3 +178,9 @@ export enum EnumUserStatus {
|
|
|
178
178
|
ACTIVE = 'ACTIVE',
|
|
179
179
|
DEACTIVATED = 'DEACTIVATED'
|
|
180
180
|
}
|
|
181
|
+
|
|
182
|
+
export enum EnumNoSupplyReason {
|
|
183
|
+
NO_FREELY_AVAILABLE_ENERGY_AND_POWER = 'NO_FREELY_AVAILABLE_ENERGY_AND_POWER',
|
|
184
|
+
NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_KEEP_RUNNING = 'NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_KEEP_RUNNING',
|
|
185
|
+
NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_START_RUNNING = 'NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_START_RUNNING',
|
|
186
|
+
}
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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.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";
|
|
@@ -35,7 +35,7 @@ var EnumEnergyMeterModel;
|
|
|
35
35
|
EnumEnergyMeterModel["TASMOTA_IR"] = "TASMOTA_IR";
|
|
36
36
|
EnumEnergyMeterModel["WARP_CHARGER_3"] = "WARP_CHARGER_3";
|
|
37
37
|
EnumEnergyMeterModel["DAHEIMLADEN"] = "DAHEIMLADEN";
|
|
38
|
-
EnumEnergyMeterModel["
|
|
38
|
+
EnumEnergyMeterModel["VICTRON_CERBO_GX"] = "VICTRON_CERBO_GX";
|
|
39
39
|
})(EnumEnergyMeterModel || (exports.EnumEnergyMeterModel = EnumEnergyMeterModel = {}));
|
|
40
40
|
var EnumRemotelyControlledSwitchModel;
|
|
41
41
|
(function (EnumRemotelyControlledSwitchModel) {
|
|
@@ -180,3 +180,9 @@ var EnumUserStatus;
|
|
|
180
180
|
EnumUserStatus["ACTIVE"] = "ACTIVE";
|
|
181
181
|
EnumUserStatus["DEACTIVATED"] = "DEACTIVATED";
|
|
182
182
|
})(EnumUserStatus || (exports.EnumUserStatus = EnumUserStatus = {}));
|
|
183
|
+
var EnumNoSupplyReason;
|
|
184
|
+
(function (EnumNoSupplyReason) {
|
|
185
|
+
EnumNoSupplyReason["NO_FREELY_AVAILABLE_ENERGY_AND_POWER"] = "NO_FREELY_AVAILABLE_ENERGY_AND_POWER";
|
|
186
|
+
EnumNoSupplyReason["NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_KEEP_RUNNING"] = "NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_KEEP_RUNNING";
|
|
187
|
+
EnumNoSupplyReason["NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_START_RUNNING"] = "NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_START_RUNNING";
|
|
188
|
+
})(EnumNoSupplyReason || (exports.EnumNoSupplyReason = EnumNoSupplyReason = {}));
|
package/src/types/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
EnumEventSource,
|
|
12
12
|
EnumInvoiceState,
|
|
13
13
|
EnumInvoiceTopic,
|
|
14
|
+
EnumNoSupplyReason,
|
|
14
15
|
EnumPricingModel,
|
|
15
16
|
EnumProsumerEquipmentType,
|
|
16
17
|
EnumProsumerModel,
|
|
@@ -153,11 +154,15 @@ export interface ILiveDataEnergyMeter {
|
|
|
153
154
|
feedInInKwh: number | null
|
|
154
155
|
}
|
|
155
156
|
|
|
156
|
-
|
|
157
|
+
interface ILiveDataControllableConsumer{
|
|
157
158
|
id: number
|
|
158
|
-
step: number
|
|
159
159
|
powerInW: number
|
|
160
160
|
consumptionInKwh: number | null
|
|
161
|
+
noSupplyReason: EnumNoSupplyReason | null
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface ILiveDataHeatRod extends ILiveDataControllableConsumer{
|
|
165
|
+
step: number
|
|
161
166
|
feedInInKwh: number | null
|
|
162
167
|
comment: string | null
|
|
163
168
|
temperature: {
|
|
@@ -181,11 +186,8 @@ export interface ILiveDataChargingProcess {
|
|
|
181
186
|
customerId: number
|
|
182
187
|
}
|
|
183
188
|
|
|
184
|
-
export interface ILiveDataWallBox {
|
|
185
|
-
id: number
|
|
186
|
-
powerInW: number
|
|
189
|
+
export interface ILiveDataWallBox extends ILiveDataControllableConsumer{
|
|
187
190
|
maxAllowedPowerInW: number
|
|
188
|
-
consumptionInKwh: number | null
|
|
189
191
|
isConnected: boolean
|
|
190
192
|
isAuthorised: boolean
|
|
191
193
|
isCharging: boolean
|