X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=c855f5f89738b0c42d6acf465cacaad1a875a341;hb=ff4b895e48c7e0c0ba57aa9e811ece2a9877340f;hp=c97079d536802242aeda8835c68e0f7c07ab5148;hpb=5fdab605ce885d9a9fb21ac47c6d0766bd3673bb;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index c97079d5..c855f5f8 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -1,20 +1,23 @@ import ChargingStationConfiguration from './ChargingStationConfiguration'; -import Connectors from './Connectors'; +import { ConnectorStatus } from './Connectors'; +import { OCPPProtocol } from './ocpp/OCPPProtocol'; +import { OCPPVersion } from './ocpp/OCPPVersion'; -export enum PowerOutType { +export enum CurrentType { AC = 'AC', DC = 'DC', } -export enum PowerUnit { +export enum PowerUnits { WATT = 'W', 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 { @@ -26,35 +29,46 @@ export interface AutomaticTransactionGenerator { probabilityOfStart: number; stopAfterHours: number; stopOnConnectionFailure: boolean; - requireAuthorize: boolean + requireAuthorize?: boolean } export default interface ChargingStationTemplate { supervisionURL?: string; + supervisionUser?: string; + supervisionPassword?: string; + ocppVersion?: OCPPVersion; + ocppProtocol?: OCPPProtocol; authorizationFile?: string; baseName: string; nameSuffix?: string; - fixedName?: string; + fixedName?: boolean; chargePointModel: string; chargePointVendor: string; chargeBoxSerialNumberPrefix?: string; firmwareVersion?: string; power: number | number[]; powerSharedByConnectors?: boolean; - powerUnit: PowerUnit; - 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; }