energy-flow-control--types-and-enums 1.0.78 → 1.0.79
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 -4
- package/src/index.js +12 -7
- package/src/types/index.d.ts +35 -9
package/package.json
CHANGED
package/src/enums/index.ts
CHANGED
|
@@ -57,8 +57,13 @@ export enum EnumWallBoxState {
|
|
|
57
57
|
ENDED = 100
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export enum
|
|
61
|
-
CLEARED = '
|
|
62
|
-
|
|
63
|
-
CANCELLED = '
|
|
60
|
+
export enum EnumBillingState {
|
|
61
|
+
CLEARED = 'CLEARED',
|
|
62
|
+
ESTIMATED = 'ESTIMATED',
|
|
63
|
+
CANCELLED = 'CANCELLED',
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export enum EnumBookingReason {
|
|
67
|
+
PAYMENT_RECEIPT = 'PAYMENT_RECEIPT',
|
|
68
|
+
INVOICE = 'INVOICE',
|
|
64
69
|
}
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.EnumBookingReason = exports.EnumBillingState = exports.EnumWallBoxState = exports.EnumTariffConsumptionType = exports.EnumThermometerModel = exports.EnumRemotelyControlledSwitchModel = exports.EnumEnergyMeterModel = exports.EnumEquipmentType = exports.EnumProsumerModel = exports.EnumProsumerType = exports.EnumEquipmentState = void 0;
|
|
4
4
|
var EnumEquipmentState;
|
|
5
5
|
(function (EnumEquipmentState) {
|
|
6
6
|
EnumEquipmentState["ON"] = "ON";
|
|
@@ -58,9 +58,14 @@ var EnumWallBoxState;
|
|
|
58
58
|
EnumWallBoxState[EnumWallBoxState["ERROR"] = 4] = "ERROR";
|
|
59
59
|
EnumWallBoxState[EnumWallBoxState["ENDED"] = 100] = "ENDED";
|
|
60
60
|
})(EnumWallBoxState || (exports.EnumWallBoxState = EnumWallBoxState = {}));
|
|
61
|
-
var
|
|
62
|
-
(function (
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
})(
|
|
61
|
+
var EnumBillingState;
|
|
62
|
+
(function (EnumBillingState) {
|
|
63
|
+
EnumBillingState["CLEARED"] = "CLEARED";
|
|
64
|
+
EnumBillingState["ESTIMATED"] = "ESTIMATED";
|
|
65
|
+
EnumBillingState["CANCELLED"] = "CANCELLED";
|
|
66
|
+
})(EnumBillingState || (exports.EnumBillingState = EnumBillingState = {}));
|
|
67
|
+
var EnumBookingReason;
|
|
68
|
+
(function (EnumBookingReason) {
|
|
69
|
+
EnumBookingReason["PAYMENT_RECEIPT"] = "PAYMENT_RECEIPT";
|
|
70
|
+
EnumBookingReason["INVOICE"] = "INVOICE";
|
|
71
|
+
})(EnumBookingReason || (exports.EnumBookingReason = EnumBookingReason = {}));
|
package/src/types/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
+
EnumBillingState,
|
|
3
|
+
EnumBookingReason,
|
|
2
4
|
EnumEnergyMeterModel,
|
|
3
5
|
EnumEquipmentState,
|
|
4
6
|
EnumEquipmentType,
|
|
@@ -237,7 +239,7 @@ export interface ICustomer {
|
|
|
237
239
|
accommodationUnits: IBuildingAccommodation[]
|
|
238
240
|
}
|
|
239
241
|
|
|
240
|
-
export interface
|
|
242
|
+
export interface IAccommodationUnitBillDetail {
|
|
241
243
|
id: number
|
|
242
244
|
billingPeriodId: number
|
|
243
245
|
customerId: number
|
|
@@ -249,14 +251,38 @@ export interface IBillingData {
|
|
|
249
251
|
pvCost: number
|
|
250
252
|
}
|
|
251
253
|
|
|
252
|
-
export interface
|
|
254
|
+
export interface IBill {
|
|
253
255
|
customerId: number
|
|
254
|
-
|
|
255
|
-
|
|
256
|
+
period: {
|
|
257
|
+
from: Date
|
|
258
|
+
till: Date
|
|
259
|
+
}
|
|
260
|
+
billDate: Date
|
|
261
|
+
consumptionInKwh: {
|
|
262
|
+
grid: number
|
|
263
|
+
pv: number
|
|
264
|
+
}
|
|
265
|
+
costs: {
|
|
266
|
+
grid: number
|
|
267
|
+
pv: number
|
|
268
|
+
}
|
|
269
|
+
state: EnumBillingState
|
|
270
|
+
}
|
|
256
271
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
272
|
+
export interface IVehicleChargingBill extends IBill {
|
|
273
|
+
userId: number
|
|
274
|
+
wallBoxId: number
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export interface IAccommodationUnitBill extends IBill {
|
|
278
|
+
energyMeters: IAccommodationUnitBillDetail[]
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export interface IPayment {
|
|
282
|
+
customerId: number
|
|
283
|
+
paymentDate: Date
|
|
284
|
+
bookingDate: Date
|
|
285
|
+
amount: number
|
|
286
|
+
bookingReason: EnumBookingReason
|
|
287
|
+
subject: string | null
|
|
262
288
|
}
|