energy-flow-control--types-and-enums 1.0.212 → 1.0.214
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 +9 -0
- package/src/index.js +10 -1
- package/src/types/index.d.ts +12 -0
package/package.json
CHANGED
package/src/enums/index.ts
CHANGED
|
@@ -190,3 +190,12 @@ export enum EnumPriceComponent {
|
|
|
190
190
|
BASE_PRICE = 'BASE_PRICE',
|
|
191
191
|
WORKING_PRICE = 'WORKING_PRICE',
|
|
192
192
|
}
|
|
193
|
+
|
|
194
|
+
export enum EnumValueReadingSourceType {
|
|
195
|
+
PROSUMER = 'PROSUMER',
|
|
196
|
+
PROSUMER_EQUIPMENT = 'PROSUMER_EQUIPMENT',
|
|
197
|
+
CAMERA = 'CAMERA',
|
|
198
|
+
CAR = 'CAR',
|
|
199
|
+
ENERGY_METER = 'ENERGY_METER',
|
|
200
|
+
PV_STRING = 'PV_STRING',
|
|
201
|
+
}
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
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;
|
|
4
4
|
var EnumEquipmentState;
|
|
5
5
|
(function (EnumEquipmentState) {
|
|
6
6
|
EnumEquipmentState["ON"] = "ON";
|
|
@@ -192,3 +192,12 @@ var EnumPriceComponent;
|
|
|
192
192
|
EnumPriceComponent["BASE_PRICE"] = "BASE_PRICE";
|
|
193
193
|
EnumPriceComponent["WORKING_PRICE"] = "WORKING_PRICE";
|
|
194
194
|
})(EnumPriceComponent || (exports.EnumPriceComponent = EnumPriceComponent = {}));
|
|
195
|
+
var EnumValueReadingSourceType;
|
|
196
|
+
(function (EnumValueReadingSourceType) {
|
|
197
|
+
EnumValueReadingSourceType["PROSUMER"] = "PROSUMER";
|
|
198
|
+
EnumValueReadingSourceType["PROSUMER_EQUIPMENT"] = "PROSUMER_EQUIPMENT";
|
|
199
|
+
EnumValueReadingSourceType["CAMERA"] = "CAMERA";
|
|
200
|
+
EnumValueReadingSourceType["CAR"] = "CAR";
|
|
201
|
+
EnumValueReadingSourceType["ENERGY_METER"] = "ENERGY_METER";
|
|
202
|
+
EnumValueReadingSourceType["PV_STRING"] = "PV_STRING";
|
|
203
|
+
})(EnumValueReadingSourceType || (exports.EnumValueReadingSourceType = EnumValueReadingSourceType = {}));
|
package/src/types/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
EnumTariffConsumptionType,
|
|
25
25
|
EnumThermometerModel,
|
|
26
26
|
EnumUserStatus,
|
|
27
|
+
EnumValueReadingSourceType,
|
|
27
28
|
} from '../enums'
|
|
28
29
|
|
|
29
30
|
export interface IProsumer extends ITimeTravelProps {
|
|
@@ -140,12 +141,14 @@ export interface IBatteryData {
|
|
|
140
141
|
min: number
|
|
141
142
|
max: number
|
|
142
143
|
reservedAboveMin: number
|
|
144
|
+
freelyAvailable: number
|
|
143
145
|
}
|
|
144
146
|
inPercent: {
|
|
145
147
|
actual: number
|
|
146
148
|
min: number
|
|
147
149
|
max: number
|
|
148
150
|
reservedAboveMin: number
|
|
151
|
+
freelyAvailable: number
|
|
149
152
|
}
|
|
150
153
|
}
|
|
151
154
|
}
|
|
@@ -621,3 +624,12 @@ export interface IElectricityProviderInvoice extends ITimeTravelProps {
|
|
|
621
624
|
currencyCode: string
|
|
622
625
|
positions: IElectricityProviderInvoicePosition[]
|
|
623
626
|
}
|
|
627
|
+
|
|
628
|
+
export interface IValueReading {
|
|
629
|
+
id: number
|
|
630
|
+
time: Date
|
|
631
|
+
equipmentType: EnumValueReadingSourceType
|
|
632
|
+
equipmentId: number
|
|
633
|
+
reading: number
|
|
634
|
+
unit: string | null
|
|
635
|
+
}
|