X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationInfo.ts;h=d4e4f8db675c606a613b0488d2b5dede109ae8ce;hb=b1396a2e5ab5f52238df71daeb9da0ef6b12807a;hp=28895067edf6adb954291fc097d90b872098b3aa;hpb=43bb4cd9ccb69bbf6b22fc6d8b58c79792a1d865;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationInfo.ts b/src/types/ChargingStationInfo.ts index 28895067..d4e4f8db 100644 --- a/src/types/ChargingStationInfo.ts +++ b/src/types/ChargingStationInfo.ts @@ -1,9 +1,31 @@ -import ChargingStationTemplate from './ChargingStationTemplate'; +import type { ChargingStationTemplate } from './ChargingStationTemplate.js' +import type { FirmwareStatus } from './ocpp/Requests.js' -export default interface ChargingStationInfo extends ChargingStationTemplate { - chargingStationId?: string; - chargeBoxSerialNumber?: string; - chargePointSerialNumber?: string; - maxPower?: number; // Always in Watt - powerDivider?: number; +export type ChargingStationInfo = Omit< +ChargingStationTemplate, +| 'AutomaticTransactionGenerator' +| 'Configuration' +| 'Connectors' +| 'Evses' +| 'power' +| 'powerUnit' +| 'chargeBoxSerialNumberPrefix' +| 'chargePointSerialNumberPrefix' +| 'meterSerialNumberPrefix' +> & { + hashId: string + templateName: 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 interface ChargingStationInfoConfiguration { + stationInfo?: ChargingStationInfo }