energy-flow-control--types-and-enums 1.0.247 → 1.0.249
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 +5 -1
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.EnumIdentityProvider = exports.EnumExternalMaxPowerIsControllerType = exports.EnumTrippingCharacteristic = 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;
|
|
3
|
+
exports.EnumTariffPlanState = exports.EnumIdentityProvider = exports.EnumExternalMaxPowerIsControllerType = exports.EnumTrippingCharacteristic = 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";
|
|
@@ -231,3 +231,9 @@ var EnumIdentityProvider;
|
|
|
231
231
|
EnumIdentityProvider["GOOGLE"] = "GOOGLE";
|
|
232
232
|
EnumIdentityProvider["MICROSOFT"] = "MICROSOFT";
|
|
233
233
|
})(EnumIdentityProvider || (exports.EnumIdentityProvider = EnumIdentityProvider = {}));
|
|
234
|
+
var EnumTariffPlanState;
|
|
235
|
+
(function (EnumTariffPlanState) {
|
|
236
|
+
EnumTariffPlanState["DRAFT"] = "DRAFT";
|
|
237
|
+
EnumTariffPlanState["USABLE"] = "USABLE";
|
|
238
|
+
EnumTariffPlanState["DEPRECATED"] = "DEPRECATED";
|
|
239
|
+
})(EnumTariffPlanState || (exports.EnumTariffPlanState = EnumTariffPlanState = {}));
|
package/src/types/index.d.ts
CHANGED
|
@@ -24,11 +24,14 @@ import {
|
|
|
24
24
|
EnumRowSlots,
|
|
25
25
|
EnumSolarForecastApi,
|
|
26
26
|
EnumTariffConsumptionType,
|
|
27
|
+
EnumTariffPlanState,
|
|
27
28
|
EnumThermometerModel,
|
|
28
29
|
EnumUserStatus,
|
|
29
30
|
EnumValueReadingSourceType,
|
|
30
31
|
} from '../enums'
|
|
31
32
|
|
|
33
|
+
export type Nullable<T> = { [K in keyof T]: T[K] | null }
|
|
34
|
+
|
|
32
35
|
export interface IProsumer extends ITimeTravelProps {
|
|
33
36
|
type: EnumProsumerType
|
|
34
37
|
model: EnumProsumerModel
|
|
@@ -109,6 +112,7 @@ export interface ITariffPlanPrice extends ITimeTravelProps {
|
|
|
109
112
|
|
|
110
113
|
export interface ITariffPlan extends ITimeTravelProps {
|
|
111
114
|
name: string
|
|
115
|
+
state: EnumTariffPlanState
|
|
112
116
|
startsAt: Date | null
|
|
113
117
|
endsAt: Date | null
|
|
114
118
|
|
|
@@ -122,7 +126,7 @@ export interface IAuthenticationConfig {
|
|
|
122
126
|
}
|
|
123
127
|
}
|
|
124
128
|
|
|
125
|
-
export type INewTariffPlan = Omit<ITariffPlan, 'positions' | keyof ITimeTravelProps
|
|
129
|
+
export type INewTariffPlan = Nullable<Omit<ITariffPlan, 'positions' | keyof ITimeTravelProps>> & {
|
|
126
130
|
positions: Omit<ITariffPlanPrice, 'tariffPlanId' | keyof ITimeTravelProps> []
|
|
127
131
|
}
|
|
128
132
|
|