X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=cd92616c11063cb4060013081ce8ffd45e974bc2;hb=96a52d088b4927e7bc51ea9282f502c2a6b67707;hp=acf70e499c8634e6067a6c4102a272c9644dd7d4;hpb=83e00df1c1ba02de8b637ca4cb0464eb909ebb18;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index acf70e49..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,12 +35,22 @@ 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; }; -export default interface ChargingStationTemplate { +export type ChargingStationTemplate = { templateHash?: string; supervisionUrls?: string | string[]; supervisionUrlOcppConfiguration?: boolean; @@ -61,7 +71,9 @@ export default interface ChargingStationTemplate { chargePointVendor: string; chargePointSerialNumberPrefix?: string; chargeBoxSerialNumberPrefix?: string; + firmwareVersionPattern?: string; firmwareVersion?: string; + firmwareUpgrade?: FirmwareUpgrade; iccid?: string; imsi?: string; meterSerialNumberPrefix?: string; @@ -93,7 +105,8 @@ export default interface ChargingStationTemplate { phaseLineToLineVoltageMeterValues?: boolean; customValueLimitationMeterValues?: boolean; commandsSupport?: CommandsSupport; + messageTriggerSupport?: Record; Configuration?: ChargingStationOcppConfiguration; AutomaticTransactionGenerator?: AutomaticTransactionGeneratorConfiguration; Connectors: Record; -} +};