energy-flow-control--types-and-enums 1.0.201 → 1.0.203
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 +11 -0
- package/src/index.js +12 -1
- package/src/types/index.d.ts +30 -6
package/package.json
CHANGED
package/src/enums/index.ts
CHANGED
|
@@ -178,3 +178,14 @@ 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
|
+
}
|
|
187
|
+
|
|
188
|
+
export enum EnumPriceComponent {
|
|
189
|
+
BASE_PRICE = 'BASE_PRICE',
|
|
190
|
+
WORKING_PRICE = 'WORKING_PRICE',
|
|
191
|
+
}
|
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.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";
|
|
@@ -180,3 +180,14 @@ 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 = {}));
|
|
189
|
+
var EnumPriceComponent;
|
|
190
|
+
(function (EnumPriceComponent) {
|
|
191
|
+
EnumPriceComponent["BASE_PRICE"] = "BASE_PRICE";
|
|
192
|
+
EnumPriceComponent["WORKING_PRICE"] = "WORKING_PRICE";
|
|
193
|
+
})(EnumPriceComponent || (exports.EnumPriceComponent = EnumPriceComponent = {}));
|
package/src/types/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ import {
|
|
|
11
11
|
EnumEventSource,
|
|
12
12
|
EnumInvoiceState,
|
|
13
13
|
EnumInvoiceTopic,
|
|
14
|
+
EnumNoSupplyReason,
|
|
15
|
+
EnumPriceComponent,
|
|
14
16
|
EnumPricingModel,
|
|
15
17
|
EnumProsumerEquipmentType,
|
|
16
18
|
EnumProsumerModel,
|
|
@@ -153,11 +155,15 @@ export interface ILiveDataEnergyMeter {
|
|
|
153
155
|
feedInInKwh: number | null
|
|
154
156
|
}
|
|
155
157
|
|
|
156
|
-
|
|
158
|
+
interface ILiveDataControllableConsumer {
|
|
157
159
|
id: number
|
|
158
|
-
step: number
|
|
159
160
|
powerInW: number
|
|
160
161
|
consumptionInKwh: number | null
|
|
162
|
+
noSupplyReason: EnumNoSupplyReason | null
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export interface ILiveDataHeatRod extends ILiveDataControllableConsumer {
|
|
166
|
+
step: number
|
|
161
167
|
feedInInKwh: number | null
|
|
162
168
|
comment: string | null
|
|
163
169
|
temperature: {
|
|
@@ -181,11 +187,8 @@ export interface ILiveDataChargingProcess {
|
|
|
181
187
|
customerId: number
|
|
182
188
|
}
|
|
183
189
|
|
|
184
|
-
export interface ILiveDataWallBox {
|
|
185
|
-
id: number
|
|
186
|
-
powerInW: number
|
|
190
|
+
export interface ILiveDataWallBox extends ILiveDataControllableConsumer {
|
|
187
191
|
maxAllowedPowerInW: number
|
|
188
|
-
consumptionInKwh: number | null
|
|
189
192
|
isConnected: boolean
|
|
190
193
|
isAuthorised: boolean
|
|
191
194
|
isCharging: boolean
|
|
@@ -575,3 +578,24 @@ export interface IUser extends ITimeTravelProps {
|
|
|
575
578
|
customerIds: number[]
|
|
576
579
|
isAdmin: boolean
|
|
577
580
|
}
|
|
581
|
+
|
|
582
|
+
export interface IElectricityProviderInvoicePosition extends ITimeTravelProps {
|
|
583
|
+
invoiceId: number
|
|
584
|
+
periodStart: Date
|
|
585
|
+
periodEnd: Date
|
|
586
|
+
readingFrom: number
|
|
587
|
+
readingTo: number
|
|
588
|
+
priceComponent: EnumPriceComponent
|
|
589
|
+
amount: number
|
|
590
|
+
taxRate: number
|
|
591
|
+
comment: string | null
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export interface IElectricityProviderInvoice extends ITimeTravelProps {
|
|
595
|
+
providerName: string
|
|
596
|
+
invoiceId: string
|
|
597
|
+
invoiceDate: Date
|
|
598
|
+
totalAmount: number
|
|
599
|
+
currencyCode: string
|
|
600
|
+
positions: IElectricityProviderInvoicePosition[]
|
|
601
|
+
}
|