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