X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FConnectors.ts;h=ad669c8715000d0d1253cad04111dd7ad236ca21;hb=48132636528412b0d48b22baf35414ab2e917bd1;hp=14415180b7c53331b3bbefc79328961c63406d8c;hpb=4a1857a25fbcc203def0c0b1a6c5ebcb19602fe6;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/Connectors.ts b/src/types/Connectors.ts index 14415180..ad669c87 100644 --- a/src/types/Connectors.ts +++ b/src/types/Connectors.ts @@ -1,22 +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; + transactionIdTag?: string; energyActiveImportRegisterValue?: number; // In Wh transactionEnergyActiveImportRegisterValue?: number; // In Wh - chargingProfiles?: ChargingProfile[] + transactionBeginMeterValue?: MeterValue; + chargingProfiles?: ChargingProfile[]; } -export default interface Connectors { - [id: string]: Connector; -} +export type Connectors = Record;