X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationInfo.ts;h=c66092c56f65d4347196b2d7236e9b67ab748697;hb=c4ab56bac3353a08b0b7e058e9edfcfc0e629c94;hp=46f537ad417b9d8db0a24f0cc052a911ab6cf686;hpb=9ac86a7ea04eb1155c2a720b36f6bf33ba336767;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationInfo.ts b/src/types/ChargingStationInfo.ts index 46f537ad..c66092c5 100644 --- a/src/types/ChargingStationInfo.ts +++ b/src/types/ChargingStationInfo.ts @@ -1,8 +1,30 @@ -import ChargingStationTemplate from './ChargingStationTemplate'; +import type { ChargingStationTemplate } from './ChargingStationTemplate'; +import type { FirmwareStatus } from './ocpp/Requests'; -export default interface ChargingStationInfo extends ChargingStationTemplate { - name?: string; +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; - maxPower?: number; - powerDivider?: number; + chargePointSerialNumber?: string; + meterSerialNumber?: string; + maximumPower?: number; // Always in Watt + maximumAmperage?: number; // Always in Ampere + firmwareStatus?: FirmwareStatus; +}; + +export interface ChargingStationInfoConfiguration { + stationInfo?: ChargingStationInfo; }