X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=eabe60d09ff3930b4303e0edda4e2854608a5daf;hb=cb9a9a02105dfb078b2786108abc7af5d031955e;hp=f4a175d1a9bf601f401e9824eaebf3ad95d30179;hpb=a02da55fb94060c8066bb885d0e76321e6f03d03;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index f4a175d1..eabe60d0 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 './ConnectorStatus'; import { OCPPProtocol } from './ocpp/OCPPProtocol'; import { OCPPVersion } from './ocpp/OCPPVersion'; -export enum PowerOutType { +export enum CurrentType { AC = 'AC', DC = 'DC', } @@ -13,10 +15,11 @@ export enum PowerUnits { KILO_WATT = 'kW', } -export enum VoltageOut { +export enum Voltage { VOLTAGE_110 = 110, VOLTAGE_230 = 230, - VOLTAGE_400 = 400 + VOLTAGE_400 = 400, + VOLTAGE_800 = 800, } export interface AutomaticTransactionGenerator { @@ -28,13 +31,19 @@ export interface AutomaticTransactionGenerator { probabilityOfStart: number; stopAfterHours: number; stopOnConnectionFailure: boolean; - requireAuthorize: boolean + requireAuthorize?: boolean; } export default interface ChargingStationTemplate { - supervisionURL?: string; + supervisionUrls?: string | string[]; + supervisionUrlOcppConfiguration?: boolean; + supervisionUrlOcppKey?: string; + supervisionUser?: string; + supervisionPassword?: string; ocppVersion?: OCPPVersion; ocppProtocol?: OCPPProtocol; + ocppStrictCompliance?: boolean; + wsOptions?: ClientOptions & ClientRequestArgs; authorizationFile?: string; baseName: string; nameSuffix?: string; @@ -45,20 +54,27 @@ export default interface ChargingStationTemplate { firmwareVersion?: string; power: number | number[]; powerSharedByConnectors?: boolean; - powerUnits: PowerUnits; - powerOutType?: PowerOutType; + powerUnit: PowerUnits; + currentOutType?: CurrentType; + voltageOut?: Voltage; numberOfPhases?: number; numberOfConnectors?: number | number[]; useConnectorId0?: boolean; randomConnectors?: boolean; resetTime?: number; - connectionTimeout?: number; + autoRegister: boolean; autoReconnectMaxRetries?: number; reconnectExponentialDelay?: boolean; registrationMaxRetries?: number; enableStatistics?: boolean; - voltageOut?: number; + mayAuthorizeAtRemoteStart: boolean; + beginEndMeterValues?: boolean; + outOfOrderEndMeterValues?: boolean; + meteringPerTransaction?: boolean; + transactionDataMeterValues?: boolean; + mainVoltageMeterValues?: boolean; + phaseLineToLineVoltageMeterValues?: boolean; Configuration?: ChargingStationConfiguration; AutomaticTransactionGenerator: AutomaticTransactionGenerator; - Connectors: Connectors; + Connectors: Record; }