X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationInfo.ts;h=6509887030e2640cd4a1576cd6472e37a193201a;hb=8eb3b688c4b6fb3e946f38d474a5125caf1d056a;hp=4f9697a67a0be01889e5ebf9a3ab080f020aa872;hpb=6c1761d470507ea23d186be61b94ca7375c5144a;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationInfo.ts b/src/types/ChargingStationInfo.ts index 4f9697a6..65098870 100644 --- a/src/types/ChargingStationInfo.ts +++ b/src/types/ChargingStationInfo.ts @@ -1,16 +1,16 @@ -import type ChargingStationTemplate from './ChargingStationTemplate'; +import type { ChargingStationTemplate } from './ChargingStationTemplate'; -export default interface ChargingStationInfo - extends Omit< - ChargingStationTemplate, - | 'AutomaticTransactionGenerator' - | 'Configuration' - | 'power' - | 'powerUnit' - | 'chargeBoxSerialNumberPrefix' - | 'chargePointSerialNumberPrefix' - | 'meterSerialNumberPrefix' - > { +export type ChargingStationInfo = Omit< + ChargingStationTemplate, + | 'AutomaticTransactionGenerator' + | 'Configuration' + | 'power' + | 'powerUnit' + | 'chargeBoxSerialNumberPrefix' + | 'chargePointSerialNumberPrefix' + | 'meterSerialNumberPrefix' +> & { + hashId: string; infoHash?: string; chargingStationId?: string; chargeBoxSerialNumber?: string; @@ -18,8 +18,8 @@ export default interface ChargingStationInfo meterSerialNumber?: string; maximumPower?: number; // Always in Watt maximumAmperage?: number; // Always in Ampere -} +}; -export interface ChargingStationInfoConfiguration { +export type ChargingStationInfoConfiguration = { stationInfo?: ChargingStationInfo; -} +};