X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=0286663bc486954cd99ee4f5a002ccf7486f548d;hb=de3dbcf58f56e0b7cc36762c6a03bdf908ca3df8;hp=0c90c62235da8362bd52f91da42ee00e5fac00a5;hpb=9bd87386d65158edef865cafd0daabff91822b87;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index 0c90c622..0286663b 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -1,9 +1,11 @@ import ChargingStationConfiguration from './ChargingStationConfiguration'; -import Connectors from './Connectors'; +import { ClientOptions } from 'ws'; +import { ClientRequestArgs } from 'http'; +import { ConnectorStatus } from './Connectors'; import { OCPPProtocol } from './ocpp/OCPPProtocol'; import { OCPPVersion } from './ocpp/OCPPVersion'; -export enum CurrentOutType { +export enum CurrentType { AC = 'AC', DC = 'DC', } @@ -13,7 +15,7 @@ export enum PowerUnits { KILO_WATT = 'kW', } -export enum VoltageOut { +export enum Voltage { VOLTAGE_110 = 110, VOLTAGE_230 = 230, VOLTAGE_400 = 400, @@ -34,8 +36,13 @@ export interface AutomaticTransactionGenerator { export default interface ChargingStationTemplate { supervisionURL?: string; + supervisionURLOCPPConfiguration?: boolean; + supervisionURLOCPPKey?: string; + supervisionUser?: string; + supervisionPassword?: string; ocppVersion?: OCPPVersion; ocppProtocol?: OCPPProtocol; + wsOptions?: ClientOptions & ClientRequestArgs; authorizationFile?: string; baseName: string; nameSuffix?: string; @@ -47,24 +54,26 @@ export default interface ChargingStationTemplate { power: number | number[]; powerSharedByConnectors?: boolean; powerUnit: PowerUnits; - currentOutType?: CurrentOutType; - voltageOut?: number; + currentOutType?: CurrentType; + voltageOut?: Voltage; numberOfPhases?: number; numberOfConnectors?: number | number[]; useConnectorId0?: boolean; randomConnectors?: boolean; resetTime?: number; + autoRegister: boolean; autoReconnectMaxRetries?: number; reconnectExponentialDelay?: boolean; registrationMaxRetries?: number; enableStatistics?: boolean; + mayAuthorizeAtRemoteStart: boolean; beginEndMeterValues?: boolean; outOfOrderEndMeterValues?: boolean; meteringPerTransaction?: boolean; transactionDataMeterValues?: boolean; mainVoltageMeterValues?: boolean; - phaseLineToLineVoltage?: boolean; + phaseLineToLineVoltageMeterValues?: boolean; Configuration?: ChargingStationConfiguration; AutomaticTransactionGenerator: AutomaticTransactionGenerator; - Connectors: Connectors; + Connectors: Record; }