X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationInfo.ts;h=12327cd891b918cee810e3843f180503f0f41547;hb=16c46962f43a692c996b1c89a94dc572fea52d63;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..12327cd8 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 }