X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FConnectors.ts;h=36ba52313d5b18dbb6d0d09b079375cd89bc1336;hb=6ce0bca57a96ef920df4e0786d8f28b0b89a36ef;hp=8e04989c7fc828daeea6f0c71efa3a908aa780de;hpb=10570d974fe84597ed0067bb41edc104ffa64167;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/Connectors.ts b/src/types/Connectors.ts index 8e04989c..36ba5231 100644 --- a/src/types/Connectors.ts +++ b/src/types/Connectors.ts @@ -1,15 +1,28 @@ -import { ChargePointStatus } from './ChargePointStatus'; -import MeterValue from './MeterValue'; +import { MeterValue, SampledValue } from './ocpp/MeterValues'; + +import { AvailabilityType } from './ocpp/Requests'; +import { ChargePointStatus } from './ocpp/ChargePointStatus'; +import { ChargingProfile } from './ocpp/ChargingProfile'; + +export interface SampledValueTemplate extends SampledValue { + fluctuationPercent?: number; +} export interface Connector { + availability: AvailabilityType; bootStatus?: ChargePointStatus; status?: ChargePointStatus; - MeterValues: MeterValue[]; + MeterValues: SampledValueTemplate[]; + authorizeIdTag?: string; + authorized?: boolean; transactionStarted?: boolean; transactionId?: number; transactionSetInterval?: NodeJS.Timeout; - idTag?: string; - lastEnergyActiveImportRegisterValue?: number; + transactionIdTag?: string; + energyActiveImportRegisterValue?: number; // In Wh + transactionEnergyActiveImportRegisterValue?: number; // In Wh + transactionBeginMeterValue?: MeterValue; + chargingProfiles?: ChargingProfile[]; } export default interface Connectors {