energy-flow-control--types-and-enums 1.0.78 → 1.0.80
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 +41 -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,44 @@ export interface IBillingData {
|
|
|
249
251
|
pvCost: number
|
|
250
252
|
}
|
|
251
253
|
|
|
252
|
-
export interface
|
|
254
|
+
export interface IInvoice {
|
|
255
|
+
id: number
|
|
253
256
|
customerId: number
|
|
254
|
-
|
|
255
|
-
|
|
257
|
+
subject: string
|
|
258
|
+
period: {
|
|
259
|
+
from: Date
|
|
260
|
+
till: Date
|
|
261
|
+
}
|
|
262
|
+
billDate: Date
|
|
263
|
+
consumptionInKwh: {
|
|
264
|
+
grid: number
|
|
265
|
+
pv: number
|
|
266
|
+
}
|
|
267
|
+
price: {
|
|
268
|
+
amount: number
|
|
269
|
+
tax: {
|
|
270
|
+
rate: number
|
|
271
|
+
name: string
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
state: EnumBillingState
|
|
275
|
+
}
|
|
256
276
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
277
|
+
export interface IVehicleChargingInvoice extends IInvoice {
|
|
278
|
+
userId: number
|
|
279
|
+
wallBoxId: number
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export interface IAccommodationUnitInvoice extends IInvoice {
|
|
283
|
+
energyMeters: IAccommodationUnitBillDetail[]
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface IPayment {
|
|
287
|
+
id: number
|
|
288
|
+
customerId: number
|
|
289
|
+
paymentDate: Date
|
|
290
|
+
bookingDate: Date
|
|
291
|
+
amount: number
|
|
292
|
+
bookingReason: EnumBookingReason
|
|
293
|
+
subject: string | null
|
|
262
294
|
}
|