| 1 | import type { JsonObject } from '../../JsonType.js' |
| 2 | |
| 3 | export interface OCPP16ChargingProfile extends JsonObject { |
| 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 |
| 13 | } |
| 14 | |
| 15 | export interface OCPP16ChargingSchedule extends JsonObject { |
| 16 | startSchedule?: Date |
| 17 | duration?: number |
| 18 | chargingRateUnit: OCPP16ChargingRateUnitType |
| 19 | chargingSchedulePeriod: OCPP16ChargingSchedulePeriod[] |
| 20 | minChargeRate?: number |
| 21 | } |
| 22 | |
| 23 | export interface OCPP16ChargingSchedulePeriod extends JsonObject { |
| 24 | startPeriod: number |
| 25 | limit: number |
| 26 | numberPhases?: number |
| 27 | } |
| 28 | |
| 29 | export enum OCPP16ChargingRateUnitType { |
| 30 | WATT = 'W', |
| 31 | AMPERE = 'A', |
| 32 | } |
| 33 | |
| 34 | export enum OCPP16ChargingProfileKindType { |
| 35 | ABSOLUTE = 'Absolute', |
| 36 | RECURRING = 'Recurring', |
| 37 | RELATIVE = 'Relative', |
| 38 | } |
| 39 | |
| 40 | export enum OCPP16ChargingProfilePurposeType { |
| 41 | CHARGE_POINT_MAX_PROFILE = 'ChargePointMaxProfile', |
| 42 | TX_DEFAULT_PROFILE = 'TxDefaultProfile', |
| 43 | TX_PROFILE = 'TxProfile', |
| 44 | } |
| 45 | |
| 46 | export enum OCPP16RecurrencyKindType { |
| 47 | DAILY = 'Daily', |
| 48 | WEEKLY = 'Weekly', |
| 49 | } |