X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=e3594d02200701ce1502659300e265a8d07278fc;hb=899cb106c44c0b7a56266b5470a22c0cc773cc44;hp=c6640771e673933d1d67ac252801ff22fbd9a638;hpb=d4c84337227e85dfbf20ff23d153e6bd1f685b87;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index c6640771..e3594d02 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -1,10 +1,11 @@ -import type { ClientRequestArgs } from 'http'; +import type { ClientRequestArgs } from 'node:http'; import type { ClientOptions } from 'ws'; import type { AutomaticTransactionGeneratorConfiguration } from './AutomaticTransactionGenerator'; import type { ChargingStationOcppConfiguration } from './ChargingStationOcppConfiguration'; import type { ConnectorStatus } from './ConnectorStatus'; +import type { EvseTemplate } from './Evse'; import type { OCPPProtocol } from './ocpp/OCPPProtocol'; import type { OCPPVersion } from './ocpp/OCPPVersion'; import type { @@ -40,14 +41,13 @@ export enum Voltage { export type WsOptions = ClientOptions & ClientRequestArgs; -type FirmwareUpgrade = { - versionUpgrade: { - patternGroup?: number | number[]; +export type FirmwareUpgrade = { + versionUpgrade?: { + patternGroup?: number; step?: number; }; reset?: boolean; - resetDelay?: number; - failureMessage?: FirmwareStatus; + failureStatus?: FirmwareStatus; }; type CommandsSupport = { @@ -68,7 +68,7 @@ export type ChargingStationTemplate = { ocppPersistentConfiguration?: boolean; stationInfoPersistentConfiguration?: boolean; wsOptions?: WsOptions; - authorizationFile?: string; + idTagsFile?: string; baseName: string; nameSuffix?: string; fixedName?: boolean; @@ -113,5 +113,6 @@ export type ChargingStationTemplate = { messageTriggerSupport?: Record; Configuration?: ChargingStationOcppConfiguration; AutomaticTransactionGenerator?: AutomaticTransactionGeneratorConfiguration; - Connectors: Record; + Evses?: Record; + Connectors?: Record; };