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