energy-flow-control--types-and-enums 1.0.202 → 1.0.204
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 +5 -0
- package/src/index.js +6 -1
- package/src/types/index.d.ts +25 -3
package/package.json
CHANGED
package/src/enums/index.ts
CHANGED
|
@@ -184,3 +184,8 @@ export enum EnumNoSupplyReason {
|
|
|
184
184
|
NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_KEEP_RUNNING = 'NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_KEEP_RUNNING',
|
|
185
185
|
NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_START_RUNNING = 'NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_START_RUNNING',
|
|
186
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.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.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";
|
|
@@ -186,3 +186,8 @@ var EnumNoSupplyReason;
|
|
|
186
186
|
EnumNoSupplyReason["NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_KEEP_RUNNING"] = "NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_KEEP_RUNNING";
|
|
187
187
|
EnumNoSupplyReason["NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_START_RUNNING"] = "NOT_ENOUGH_FREELY_AVAILABLE_ENERGY_TO_START_RUNNING";
|
|
188
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
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
EnumInvoiceState,
|
|
13
13
|
EnumInvoiceTopic,
|
|
14
14
|
EnumNoSupplyReason,
|
|
15
|
+
EnumPriceComponent,
|
|
15
16
|
EnumPricingModel,
|
|
16
17
|
EnumProsumerEquipmentType,
|
|
17
18
|
EnumProsumerModel,
|
|
@@ -154,14 +155,14 @@ export interface ILiveDataEnergyMeter {
|
|
|
154
155
|
feedInInKwh: number | null
|
|
155
156
|
}
|
|
156
157
|
|
|
157
|
-
interface ILiveDataControllableConsumer{
|
|
158
|
+
interface ILiveDataControllableConsumer {
|
|
158
159
|
id: number
|
|
159
160
|
powerInW: number
|
|
160
161
|
consumptionInKwh: number | null
|
|
161
162
|
noSupplyReason: EnumNoSupplyReason | null
|
|
162
163
|
}
|
|
163
164
|
|
|
164
|
-
export interface ILiveDataHeatRod extends ILiveDataControllableConsumer{
|
|
165
|
+
export interface ILiveDataHeatRod extends ILiveDataControllableConsumer {
|
|
165
166
|
step: number
|
|
166
167
|
feedInInKwh: number | null
|
|
167
168
|
comment: string | null
|
|
@@ -186,7 +187,7 @@ export interface ILiveDataChargingProcess {
|
|
|
186
187
|
customerId: number
|
|
187
188
|
}
|
|
188
189
|
|
|
189
|
-
export interface ILiveDataWallBox extends ILiveDataControllableConsumer{
|
|
190
|
+
export interface ILiveDataWallBox extends ILiveDataControllableConsumer {
|
|
190
191
|
maxAllowedPowerInW: number
|
|
191
192
|
isConnected: boolean
|
|
192
193
|
isAuthorised: boolean
|
|
@@ -577,3 +578,24 @@ export interface IUser extends ITimeTravelProps {
|
|
|
577
578
|
customerIds: number[]
|
|
578
579
|
isAdmin: boolean
|
|
579
580
|
}
|
|
581
|
+
|
|
582
|
+
export interface IElectricityProviderInvoicePosition extends ITimeTravelProps {
|
|
583
|
+
invoiceId: number
|
|
584
|
+
periodStart: Date
|
|
585
|
+
periodEnd: Date
|
|
586
|
+
readingFrom: number | null
|
|
587
|
+
readingTo: number | null
|
|
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
|
+
}
|