X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F1.6%2FChargingProfile.ts;h=744696c586306f52bca08fd23b2d9f28e37db6c2;hb=a223d9be48ad8828e6aef060dd3c45d4f99ea9a9;hp=529bfd1da5eaf7cac6d566de0080316189bdfc1e;hpb=6c1761d470507ea23d186be61b94ca7375c5144a;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 529bfd1d..744696c5 100644 --- a/src/types/ocpp/1.6/ChargingProfile.ts +++ b/src/types/ocpp/1.6/ChargingProfile.ts @@ -1,50 +1,49 @@ -import type { 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; - validFrom?: Date; - validTo?: Date; - chargingSchedule: ChargingSchedule; + chargingProfileId: number + transactionId?: number + stackLevel: number + chargingProfilePurpose: OCPP16ChargingProfilePurposeType + chargingProfileKind: OCPP16ChargingProfileKindType + recurrencyKind?: OCPP16RecurrencyKindType + validFrom?: Date + validTo?: Date + chargingSchedule: OCPP16ChargingSchedule } -export interface ChargingSchedule extends JsonObject { - duration?: number; - startSchedule?: Date; - chargingRateUnit: OCPP16ChargingRateUnitType; - chargingSchedulePeriod: OCPP16ChargingSchedulePeriod[]; - minChargeRate?: number; +export interface OCPP16ChargingSchedule extends JsonObject { + startSchedule?: Date + duration?: number + chargingRateUnit: OCPP16ChargingRateUnitType + chargingSchedulePeriod: OCPP16ChargingSchedulePeriod[] + minChargeRate?: number } export interface OCPP16ChargingSchedulePeriod extends JsonObject { - startPeriod: number; - limit: number; - numberPhases?: number; + startPeriod: number + limit: number + numberPhases?: number } export enum OCPP16ChargingRateUnitType { WATT = 'W', - AMPERE = 'A', + AMPERE = 'A' } -export enum ChargingProfileKindType { +export enum OCPP16ChargingProfileKindType { ABSOLUTE = 'Absolute', RECURRING = 'Recurring', - RELATIVE = 'Relative', + RELATIVE = 'Relative' } -export enum ChargingProfilePurposeType { +export enum OCPP16ChargingProfilePurposeType { CHARGE_POINT_MAX_PROFILE = 'ChargePointMaxProfile', TX_DEFAULT_PROFILE = 'TxDefaultProfile', - TX_PROFILE = 'TxProfile', + TX_PROFILE = 'TxProfile' } -export enum RecurrencyKindType { +export enum OCPP16RecurrencyKindType { DAILY = 'Daily', - WEEKLY = 'Weekly', - MONTHLY = 'Monthly', + WEEKLY = 'Weekly' }