Commit | Line | Data |
---|---|---|
66a7748d | 1 | import type { JsonObject } from '../../JsonType.js' |
c3ee95af | 2 | |
e3822d6f | 3 | export interface OCPP16ChargingProfile extends JsonObject { |
66a7748d JB |
4 | chargingProfileId: number |
5 | transactionId?: number | |
6 | stackLevel: number | |
7 | chargingProfilePurpose: OCPP16ChargingProfilePurposeType | |
8 | chargingProfileKind: OCPP16ChargingProfileKindType | |
9 | recurrencyKind?: OCPP16RecurrencyKindType | |
10 | validFrom?: Date | |
11 | validTo?: Date | |
12 | chargingSchedule: OCPP16ChargingSchedule | |
f738a0e9 JB |
13 | } |
14 | ||
41189456 | 15 | export interface OCPP16ChargingSchedule extends JsonObject { |
66a7748d JB |
16 | startSchedule?: Date |
17 | duration?: number | |
18 | chargingRateUnit: OCPP16ChargingRateUnitType | |
19 | chargingSchedulePeriod: OCPP16ChargingSchedulePeriod[] | |
20 | minChargeRate?: number | |
f738a0e9 JB |
21 | } |
22 | ||
e3822d6f | 23 | export interface OCPP16ChargingSchedulePeriod extends JsonObject { |
66a7748d JB |
24 | startPeriod: number |
25 | limit: number | |
26 | numberPhases?: number | |
f738a0e9 JB |
27 | } |
28 | ||
cfa9539e | 29 | export enum OCPP16ChargingRateUnitType { |
f738a0e9 | 30 | WATT = 'W', |
a223d9be | 31 | AMPERE = 'A' |
f738a0e9 JB |
32 | } |
33 | ||
0ac97927 | 34 | export enum OCPP16ChargingProfileKindType { |
f738a0e9 JB |
35 | ABSOLUTE = 'Absolute', |
36 | RECURRING = 'Recurring', | |
a223d9be | 37 | RELATIVE = 'Relative' |
f738a0e9 JB |
38 | } |
39 | ||
0ac97927 | 40 | export enum OCPP16ChargingProfilePurposeType { |
f738a0e9 JB |
41 | CHARGE_POINT_MAX_PROFILE = 'ChargePointMaxProfile', |
42 | TX_DEFAULT_PROFILE = 'TxDefaultProfile', | |
a223d9be | 43 | TX_PROFILE = 'TxProfile' |
f738a0e9 JB |
44 | } |
45 | ||
0ac97927 | 46 | export enum OCPP16RecurrencyKindType { |
f738a0e9 | 47 | DAILY = 'Daily', |
a223d9be | 48 | WEEKLY = 'Weekly' |
f738a0e9 | 49 | } |