X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=8d0b044e6b265ec18abe2c5e8d27d048134ed059;hb=72495c24c4e750fce20245faca4609dd4eacd7ba;hp=44aea77fcaadd3aa67dc256c0c8c32195dc45fc2;hpb=7decf1b6ce8390d7f379c7d935134724b3baff4e;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index 44aea77f..8d0b044e 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,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,18 @@ export interface AutomaticTransactionGenerator { probabilityOfStart: number; stopAfterHours: number; stopOnConnectionFailure: boolean; - requireAuthorize: boolean + requireAuthorize?: boolean } export default interface ChargingStationTemplate { - supervisionURL?: string; + supervisionUrl?: string; + supervisionUrlOcppConfiguration?: boolean; + supervisionUrlOcppKey?: string; + supervisionUser?: string; + supervisionPassword?: string; ocppVersion?: OCPPVersion; ocppProtocol?: OCPPProtocol; + wsOptions?: ClientOptions & ClientRequestArgs; authorizationFile?: string; baseName: string; nameSuffix?: string; @@ -46,19 +54,26 @@ export default interface ChargingStationTemplate { power: number | number[]; powerSharedByConnectors?: boolean; powerUnit: PowerUnits; - currentOutType?: CurrentOutType; + 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; }