X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationInfo.ts;h=4ebdc150720488c5d37837c4161055d5f52979d6;hb=57c0ba059e47d46ad545d9783920b53ee56c7184;hp=0e8b172217a9379ef7d41737849b85c372e7e318;hpb=cc6e8ab5f669ff49b1d476efffc509be8128bccc;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationInfo.ts b/src/types/ChargingStationInfo.ts index 0e8b1722..4ebdc150 100644 --- a/src/types/ChargingStationInfo.ts +++ b/src/types/ChargingStationInfo.ts @@ -1,14 +1,33 @@ -import ChargingStationTemplate from './ChargingStationTemplate'; +import type { ChargingStationTemplate } from './ChargingStationTemplate.js' +import type { FirmwareStatus } from './ocpp/Requests.js' -export default interface ChargingStationInfo extends ChargingStationTemplate { - chargingStationId?: string; - chargeBoxSerialNumber?: string; - chargePointSerialNumber?: string; - maximumPower?: number; // Always in Watt - powerDivider?: number; - maximumAmperage?: number; // Always in Ampere +export type ChargingStationInfo = Omit< +ChargingStationTemplate, +| 'Connectors' +| 'Evses' +| 'Configuration' +| 'AutomaticTransactionGenerator' +| 'numberOfConnectors' +| 'power' +| 'powerUnit' +| 'chargeBoxSerialNumberPrefix' +| 'chargePointSerialNumberPrefix' +| 'meterSerialNumberPrefix' +> & { + hashId: string + templateIndex: number + templateName: string + /** @deprecated Use hashId instead */ + infoHash?: string + chargingStationId?: string + chargeBoxSerialNumber?: string + chargePointSerialNumber?: string + meterSerialNumber?: string + maximumPower?: number // Always in Watt + maximumAmperage?: number // Always in Ampere + firmwareStatus?: FirmwareStatus } export interface ChargingStationInfoConfiguration { - stationInfo?: ChargingStationInfo; + stationInfo?: ChargingStationInfo }