X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationInfo.ts;h=0f4fe97dd33eeb33c5b0034b1993b0e9b5ee07fd;hb=f938317f2902366a85a8f76de55ee51f1d4a662a;hp=03273e2af61aa6b11934f14cb825b8da14c5e7d8;hpb=83e00df1c1ba02de8b637ca4cb0464eb909ebb18;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationInfo.ts b/src/types/ChargingStationInfo.ts index 03273e2a..0f4fe97d 100644 --- a/src/types/ChargingStationInfo.ts +++ b/src/types/ChargingStationInfo.ts @@ -1,26 +1,30 @@ -import type ChargingStationTemplate from './ChargingStationTemplate'; +import type { ChargingStationTemplate } from './ChargingStationTemplate.js' +import type { FirmwareStatus } from './ocpp/Requests.js' -export default interface ChargingStationInfo - extends 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 - maximumAmperage?: number; // Always in Ampere +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 + chargePointSerialNumber?: string + meterSerialNumber?: string + maximumPower?: number // Always in Watt + maximumAmperage?: number // Always in Ampere + firmwareStatus?: FirmwareStatus } -export type ChargingStationInfoConfiguration = { - stationInfo?: ChargingStationInfo; -}; +export interface ChargingStationInfoConfiguration { + stationInfo?: ChargingStationInfo +}