X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationInfo.ts;h=6509887030e2640cd4a1576cd6472e37a193201a;hb=8eb3b688c4b6fb3e946f38d474a5125caf1d056a;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..65098870 100644 --- a/src/types/ChargingStationInfo.ts +++ b/src/types/ChargingStationInfo.ts @@ -1,14 +1,25 @@ -import ChargingStationTemplate from './ChargingStationTemplate'; +import type { ChargingStationTemplate } from './ChargingStationTemplate'; -export default interface ChargingStationInfo extends ChargingStationTemplate { +export type ChargingStationInfo = Omit< + ChargingStationTemplate, + | 'AutomaticTransactionGenerator' + | 'Configuration' + | 'power' + | 'powerUnit' + | 'chargeBoxSerialNumberPrefix' + | 'chargePointSerialNumberPrefix' + | 'meterSerialNumberPrefix' +> & { + hashId: string; + infoHash?: string; chargingStationId?: string; chargeBoxSerialNumber?: string; chargePointSerialNumber?: string; + meterSerialNumber?: string; maximumPower?: number; // Always in Watt - powerDivider?: number; maximumAmperage?: number; // Always in Ampere -} +}; -export interface ChargingStationInfoConfiguration { +export type ChargingStationInfoConfiguration = { stationInfo?: ChargingStationInfo; -} +};