X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationInfo.ts;h=fff8a1ad69e6805034807c9df1052bf4b560cf43;hb=ba0564367ed4a5677bc4c45ab0d1cbed708ebef5;hp=033dcb513fcb4d6a27d40241500e528e9ce17ab8;hpb=36a16ec2649a0652c443f4ef519e0d0f31b67fa4;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationInfo.ts b/src/types/ChargingStationInfo.ts index 033dcb51..fff8a1ad 100644 --- a/src/types/ChargingStationInfo.ts +++ b/src/types/ChargingStationInfo.ts @@ -1,8 +1,40 @@ -import ChargingStationTemplate from './ChargingStationTemplate'; +import type { ChargingStationTemplate } from './ChargingStationTemplate'; +import type { FirmwareStatus } from './ocpp/Requests'; -export default interface ChargingStationInfo extends ChargingStationTemplate { +enum x509CertificateType { + V2GRootCertificate = 'V2GRootCertificate', + MORootCertificate = 'MORootCertificate', + CSMSRootCertificate = 'CSMSRootCertificate', + ManufacturerRootCertificate = 'ManufacturerRootCertificate', + ChargingStationCertificate = 'ChargingStationCertificate', + V2GCertificate = 'V2GCertificate', +} + +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; - maxPower?: number; - powerDivider?: number; -} + chargePointSerialNumber?: string; + meterSerialNumber?: string; + maximumPower?: number; // Always in Watt + maximumAmperage?: number; // Always in Ampere + firmwareStatus?: FirmwareStatus; + x509Certificates?: Record; +}; + +export type ChargingStationInfoConfiguration = { + stationInfo?: ChargingStationInfo; +};