X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FConnectors.ts;h=36ba52313d5b18dbb6d0d09b079375cd89bc1336;hb=47e224777669f935f45d443b6da948e7977fd9b7;hp=845324562584c4179352bc759fea4fc8fe0f3633;hpb=29bf6658d0689f5df26575d3b171163fe1d52d04;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/Connectors.ts b/src/types/Connectors.ts index 84532456..36ba5231 100644 --- a/src/types/Connectors.ts +++ b/src/types/Connectors.ts @@ -1,15 +1,28 @@ -import { ChargePointStatus } from './ocpp/1.6/ChargePointStatus'; -import MeterValue from './ocpp/1.6/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 {