X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationInfo.ts;h=0d23c1cf1131de6507a0670f01b26495f1dc8504;hb=2b490d73f321440ab8970263d29cd35c4d43997f;hp=46f537ad417b9d8db0a24f0cc052a911ab6cf686;hpb=9ac86a7ea04eb1155c2a720b36f6bf33ba336767;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationInfo.ts b/src/types/ChargingStationInfo.ts index 46f537ad..0d23c1cf 100644 --- a/src/types/ChargingStationInfo.ts +++ b/src/types/ChargingStationInfo.ts @@ -1,8 +1,26 @@ -import ChargingStationTemplate from './ChargingStationTemplate'; +import type { ChargingStationTemplate, FirmwareStatus } from './internal'; -export default interface ChargingStationInfo extends ChargingStationTemplate { - name?: string; +export type ChargingStationInfo = Omit< + ChargingStationTemplate, + | 'AutomaticTransactionGenerator' + | 'Configuration' + | 'power' + | 'powerUnit' + | 'chargeBoxSerialNumberPrefix' + | 'chargePointSerialNumberPrefix' + | 'meterSerialNumberPrefix' +> & { + hashId: string; + infoHash?: string; + chargingStationId?: string; chargeBoxSerialNumber?: string; - maxPower?: number; - powerDivider?: number; -} + chargePointSerialNumber?: string; + meterSerialNumber?: string; + maximumPower?: number; // Always in Watt + maximumAmperage?: number; // Always in Ampere + firmwareStatus?: FirmwareStatus; +}; + +export type ChargingStationInfoConfiguration = { + stationInfo?: ChargingStationInfo; +};