X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FConnectors.ts;h=027ac645d7f22336e399b79d0793f7ef85b51ac4;hb=72495c24c4e750fce20245faca4609dd4eacd7ba;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..027ac645 100644 --- a/src/types/Connectors.ts +++ b/src/types/Connectors.ts @@ -1,22 +1,29 @@ +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 Connector { +export interface SampledValueTemplate extends SampledValue { + fluctuationPercent?: number; +} + +export interface ConnectorStatus { availability: AvailabilityType; bootStatus?: ChargePointStatus; status?: ChargePointStatus; - MeterValues: SampledValue[]; + MeterValues: SampledValueTemplate[]; + authorizeIdTag?: string; + idTagAuthorized?: boolean; + localAuthorizeIdTag?: string; + idTagLocalAuthorized?: boolean; + transactionRemoteStarted?: boolean; transactionStarted?: boolean; transactionId?: number; transactionSetInterval?: NodeJS.Timeout; - idTag?: string; - energyActiveImportRegisterValue?: number; - transactionEnergyActiveImportRegisterValue?: number; - chargingProfiles?: ChargingProfile[] -} - -export default interface Connectors { - [id: string]: Connector; + transactionIdTag?: string; + energyActiveImportRegisterValue?: number; // In Wh + transactionEnergyActiveImportRegisterValue?: number; // In Wh + transactionBeginMeterValue?: MeterValue; + chargingProfiles?: ChargingProfile[]; }