X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=b3b05b669099b40167f8a4bfbe0a0a7d8eafdee5;hb=05745045efc825738ba9ba4b30d4d4ec932a5dd3;hp=9af61810866a8bc556fa4ef54946a290533b6757;hpb=32a1eb7ab66964e5beb8b79082782761329e0705;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index 9af61810..b3b05b66 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -1,5 +1,7 @@ import ChargingStationConfiguration from './ChargingStationConfiguration'; import Connectors from './Connectors'; +import { OCPPProtocol } from './ocpp/OCPPProtocol'; +import { OCPPVersion } from './ocpp/OCPPVersion'; export enum PowerOutType { AC = 'AC', @@ -11,6 +13,12 @@ export enum PowerUnit { KILO_WATT = 'kW', } +export enum VoltageOut { + VOLTAGE_110 = 110, + VOLTAGE_230 = 230, + VOLTAGE_400 = 400 +} + export interface AutomaticTransactionGenerator { enable: boolean; minDuration: number; @@ -19,13 +27,17 @@ export interface AutomaticTransactionGenerator { maxDelayBetweenTwoTransactions: number; probabilityOfStart: number; stopAfterHours: number; - stopOnConnectionFailure: boolean + stopOnConnectionFailure: boolean; + requireAuthorize: boolean } export default interface ChargingStationTemplate { supervisionURL?: string; + ocppVersion?: OCPPVersion; + ocppProtocol?: OCPPProtocol; authorizationFile?: string; baseName: string; + nameSuffix?: string; fixedName?: string; chargePointModel: string; chargePointVendor: string; @@ -42,8 +54,8 @@ export default interface ChargingStationTemplate { resetTime?: number; connectionTimeout?: number; autoReconnectMaxRetries?: number; - registrationMaxRetries?: number; reconnectExponentialDelay?: boolean; + registrationMaxRetries?: number; enableStatistics?: boolean; voltageOut?: number; Configuration?: ChargingStationConfiguration;