X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftypes%2FChargingStationInfo.ts;h=6509887030e2640cd4a1576cd6472e37a193201a;hb=32c4b77bdc1c2d53bb2c37dd363d091816178190;hp=cc7d1e3bac9197e2332ddc302b9eef3584772142;hpb=2484ac1e71dc33f01b965b5898b319de938cf90d;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationInfo.ts b/src/types/ChargingStationInfo.ts index cc7d1e3b..65098870 100644 --- a/src/types/ChargingStationInfo.ts +++ b/src/types/ChargingStationInfo.ts @@ -1,13 +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; - maxPower?: number; // Always in Watt - powerDivider?: number; -} + meterSerialNumber?: string; + maximumPower?: number; // Always in Watt + maximumAmperage?: number; // Always in Ampere +}; -export interface ChargingStationInfoConfiguration { +export type ChargingStationInfoConfiguration = { stationInfo?: ChargingStationInfo; -} +};