X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationInfo.ts;h=fff8a1ad69e6805034807c9df1052bf4b560cf43;hb=ba0564367ed4a5677bc4c45ab0d1cbed708ebef5;hp=cc7d1e3bac9197e2332ddc302b9eef3584772142;hpb=2484ac1e71dc33f01b965b5898b319de938cf90d;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationInfo.ts b/src/types/ChargingStationInfo.ts index cc7d1e3b..fff8a1ad 100644 --- a/src/types/ChargingStationInfo.ts +++ b/src/types/ChargingStationInfo.ts @@ -1,13 +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; chargePointSerialNumber?: string; - maxPower?: number; // Always in Watt - powerDivider?: number; -} + meterSerialNumber?: string; + maximumPower?: number; // Always in Watt + maximumAmperage?: number; // Always in Ampere + firmwareStatus?: FirmwareStatus; + x509Certificates?: Record; +}; -export interface ChargingStationInfoConfiguration { +export type ChargingStationInfoConfiguration = { stationInfo?: ChargingStationInfo; -} +};