X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationInfo.ts;h=c66092c56f65d4347196b2d7236e9b67ab748697;hb=eba56146807fea49f821d3b0b46a679b0b0af29a;hp=2baa72ef24ebb656ace0a380d41d844138f9d460;hpb=fec4d204dd05c108fb49312bb7a570d15a4eb4bb;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationInfo.ts b/src/types/ChargingStationInfo.ts index 2baa72ef..c66092c5 100644 --- a/src/types/ChargingStationInfo.ts +++ b/src/types/ChargingStationInfo.ts @@ -1,16 +1,20 @@ -import ChargingStationTemplate from './ChargingStationTemplate'; +import type { ChargingStationTemplate } from './ChargingStationTemplate'; +import type { FirmwareStatus } from './ocpp/Requests'; -export default interface ChargingStationInfo - extends Omit< - ChargingStationTemplate, - | 'AutomaticTransactionGenerator' - | 'Configuration' - | 'power' - | 'powerUnit' - | 'chargeBoxSerialNumberPrefix' - | 'chargePointSerialNumberPrefix' - | 'meterSerialNumberPrefix' - > { +export type ChargingStationInfo = Omit< + ChargingStationTemplate, + | 'AutomaticTransactionGenerator' + | 'Configuration' + | 'Connectors' + | 'Evses' + | 'power' + | 'powerUnit' + | 'chargeBoxSerialNumberPrefix' + | 'chargePointSerialNumberPrefix' + | 'meterSerialNumberPrefix' +> & { + hashId: string; + /** @deprecated Use hashId instead */ infoHash?: string; chargingStationId?: string; chargeBoxSerialNumber?: string; @@ -18,7 +22,8 @@ export default interface ChargingStationInfo meterSerialNumber?: string; maximumPower?: number; // Always in Watt maximumAmperage?: number; // Always in Ampere -} + firmwareStatus?: FirmwareStatus; +}; export interface ChargingStationInfoConfiguration { stationInfo?: ChargingStationInfo;