X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=0cd0e45f1e49707de532e5adab330ba3878c01f2;hb=f911a4af34e676a49f542aec31cbef8075fb65ef;hp=3945e8925f94ebbafd9ce5435b10b12466649e45;hpb=c60ed4b8646f72758a27b62003e51568d3966d29;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index 3945e892..0cd0e45f 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -1,13 +1,18 @@ -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 { OCPPProtocol } from './ocpp/OCPPProtocol'; -import type { OCPPVersion } from './ocpp/OCPPVersion'; -import type { IncomingRequestCommand, MessageTrigger, RequestCommand } from './ocpp/Requests'; +import type { + AutomaticTransactionGeneratorConfiguration, + ChargingStationOcppConfiguration, + ConnectorStatus, + FirmwareStatus, + IncomingRequestCommand, + MessageTrigger, + OCPPProtocol, + OCPPVersion, + RequestCommand, +} from './internal'; export enum CurrentType { AC = 'AC', @@ -35,6 +40,15 @@ export enum Voltage { export type WsOptions = ClientOptions & ClientRequestArgs; +export type FirmwareUpgrade = { + versionUpgrade?: { + patternGroup?: number; + step?: number; + }; + reset?: boolean; + failureStatus?: FirmwareStatus; +}; + type CommandsSupport = { incomingCommands: Record; outgoingCommands?: Record; @@ -53,6 +67,7 @@ export type ChargingStationTemplate = { ocppPersistentConfiguration?: boolean; stationInfoPersistentConfiguration?: boolean; wsOptions?: WsOptions; + // FIXME: rename to idTagFile authorizationFile?: string; baseName: string; nameSuffix?: string; @@ -61,7 +76,9 @@ export type ChargingStationTemplate = { chargePointVendor: string; chargePointSerialNumberPrefix?: string; chargeBoxSerialNumberPrefix?: string; + firmwareVersionPattern?: string; firmwareVersion?: string; + firmwareUpgrade?: FirmwareUpgrade; iccid?: string; imsi?: string; meterSerialNumberPrefix?: string;