X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F1.6%2FChargingProfile.ts;h=89cf8e4d8545308d0e841f9647dde94beac746ff;hb=f5a1ff8ce8f87a149791c2c98fe7c5e8a20b5392;hp=b33bf0665d33204d3c9a3d2bdb8fa08d15a7f11c;hpb=3e0905a14af7b7e0a96e859d6c4c615044845d54;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/1.6/ChargingProfile.ts b/src/types/ocpp/1.6/ChargingProfile.ts index b33bf066..89cf8e4d 100644 --- a/src/types/ocpp/1.6/ChargingProfile.ts +++ b/src/types/ocpp/1.6/ChargingProfile.ts @@ -1,20 +1,20 @@ -import { JsonObject } from '../../JsonType'; +import type { JsonObject } from '../../JsonType.js'; export interface OCPP16ChargingProfile extends JsonObject { chargingProfileId: number; transactionId?: number; stackLevel: number; - chargingProfilePurpose: ChargingProfilePurposeType; - chargingProfileKind: ChargingProfileKindType; - recurrencyKind?: RecurrencyKindType; + chargingProfilePurpose: OCPP16ChargingProfilePurposeType; + chargingProfileKind: OCPP16ChargingProfileKindType; + recurrencyKind?: OCPP16RecurrencyKindType; validFrom?: Date; validTo?: Date; - chargingSchedule: ChargingSchedule; + chargingSchedule: OCPP16ChargingSchedule; } -export interface ChargingSchedule extends JsonObject { - duration?: number; +export interface OCPP16ChargingSchedule extends JsonObject { startSchedule?: Date; + duration?: number; chargingRateUnit: OCPP16ChargingRateUnitType; chargingSchedulePeriod: OCPP16ChargingSchedulePeriod[]; minChargeRate?: number; @@ -31,20 +31,19 @@ export enum OCPP16ChargingRateUnitType { AMPERE = 'A', } -export enum ChargingProfileKindType { +export enum OCPP16ChargingProfileKindType { ABSOLUTE = 'Absolute', RECURRING = 'Recurring', RELATIVE = 'Relative', } -export enum ChargingProfilePurposeType { +export enum OCPP16ChargingProfilePurposeType { CHARGE_POINT_MAX_PROFILE = 'ChargePointMaxProfile', TX_DEFAULT_PROFILE = 'TxDefaultProfile', TX_PROFILE = 'TxProfile', } -export enum RecurrencyKindType { +export enum OCPP16RecurrencyKindType { DAILY = 'Daily', WEEKLY = 'Weekly', - MONTHLY = 'Monthly', }