X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationInfo.ts;h=12327cd891b918cee810e3843f180503f0f41547;hb=5dcb9d4945027c6be39e4342f1627ea2da3813b7;hp=f83ba030ab8dd08ab7b8e03d0c77203d9f2a1a49;hpb=981ebfbeeb421a4b620aa61861f9ddb313a03f67;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationInfo.ts b/src/types/ChargingStationInfo.ts index f83ba030..12327cd8 100644 --- a/src/types/ChargingStationInfo.ts +++ b/src/types/ChargingStationInfo.ts @@ -1,26 +1,33 @@ -import type { ChargingStationTemplate } from './ChargingStationTemplate'; +import type { ChargingStationTemplate } from './ChargingStationTemplate.js' +import type { FirmwareStatus } from './ocpp/Requests.js' -export 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, +| 'Connectors' +| 'Evses' +| 'Configuration' +| 'AutomaticTransactionGenerator' +| 'numberOfConnectors' +| 'power' +| 'powerUnit' +| 'chargeBoxSerialNumberPrefix' +| 'chargePointSerialNumberPrefix' +| 'meterSerialNumberPrefix' +> & { + hashId: string + templateIndex: number + 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 type ChargingStationInfoConfiguration = { - stationInfo?: ChargingStationInfo; -}; +export interface ChargingStationInfoConfiguration { + stationInfo?: ChargingStationInfo +}