X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftypes%2FChargingStationTemplate.ts;h=cd92616c11063cb4060013081ce8ffd45e974bc2;hb=96a52d088b4927e7bc51ea9282f502c2a6b67707;hp=0d063d51a05d0ce4f8d3d23facd9ca8c217de3b4;hpb=981ebfbeeb421a4b620aa61861f9ddb313a03f67;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index 0d063d51..cd92616c 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -7,7 +7,7 @@ import type { ChargingStationOcppConfiguration } from './ChargingStationOcppConf import type { ConnectorStatus } from './ConnectorStatus'; import type { OCPPProtocol } from './ocpp/OCPPProtocol'; import type { OCPPVersion } from './ocpp/OCPPVersion'; -import type { IncomingRequestCommand, RequestCommand } from './ocpp/Requests'; +import type { IncomingRequestCommand, MessageTrigger, RequestCommand } from './ocpp/Requests'; export enum CurrentType { AC = 'AC', @@ -35,6 +35,16 @@ export enum Voltage { export type WsOptions = ClientOptions & ClientRequestArgs; +type FirmwareUpgrade = { + versionUpgrade: { + patternGroup?: number | number[]; + to?: string; + }; + reset?: boolean; + resetDelay?: number; + checkIntegrity?: boolean; +}; + type CommandsSupport = { incomingCommands: Record; outgoingCommands?: Record; @@ -61,7 +71,9 @@ export type ChargingStationTemplate = { chargePointVendor: string; chargePointSerialNumberPrefix?: string; chargeBoxSerialNumberPrefix?: string; + firmwareVersionPattern?: string; firmwareVersion?: string; + firmwareUpgrade?: FirmwareUpgrade; iccid?: string; imsi?: string; meterSerialNumberPrefix?: string; @@ -93,6 +105,7 @@ export type ChargingStationTemplate = { phaseLineToLineVoltageMeterValues?: boolean; customValueLimitationMeterValues?: boolean; commandsSupport?: CommandsSupport; + messageTriggerSupport?: Record; Configuration?: ChargingStationOcppConfiguration; AutomaticTransactionGenerator?: AutomaticTransactionGeneratorConfiguration; Connectors: Record;