X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationInfo.ts;h=4ebdc150720488c5d37837c4161055d5f52979d6;hb=0b1828224edf798044ef54672ddfc69598cd99a5;hp=fff8a1ad69e6805034807c9df1052bf4b560cf43;hpb=69074173770c04bc5e5aa744b655edf9491daa46;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationInfo.ts b/src/types/ChargingStationInfo.ts index fff8a1ad..4ebdc150 100644 --- a/src/types/ChargingStationInfo.ts +++ b/src/types/ChargingStationInfo.ts @@ -1,40 +1,33 @@ -import type { ChargingStationTemplate } from './ChargingStationTemplate'; -import type { FirmwareStatus } from './ocpp/Requests'; - -enum x509CertificateType { - V2GRootCertificate = 'V2GRootCertificate', - MORootCertificate = 'MORootCertificate', - CSMSRootCertificate = 'CSMSRootCertificate', - ManufacturerRootCertificate = 'ManufacturerRootCertificate', - ChargingStationCertificate = 'ChargingStationCertificate', - V2GCertificate = 'V2GCertificate', -} +import type { ChargingStationTemplate } from './ChargingStationTemplate.js' +import type { FirmwareStatus } from './ocpp/Requests.js' export type ChargingStationInfo = Omit< - ChargingStationTemplate, - | 'AutomaticTransactionGenerator' - | 'Configuration' - | 'Connectors' - | 'Evses' - | 'power' - | 'powerUnit' - | 'chargeBoxSerialNumberPrefix' - | 'chargePointSerialNumberPrefix' - | 'meterSerialNumberPrefix' +ChargingStationTemplate, +| 'Connectors' +| 'Evses' +| 'Configuration' +| 'AutomaticTransactionGenerator' +| 'numberOfConnectors' +| 'power' +| 'powerUnit' +| 'chargeBoxSerialNumberPrefix' +| 'chargePointSerialNumberPrefix' +| 'meterSerialNumberPrefix' > & { - hashId: string; + 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; - x509Certificates?: Record; -}; + 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 +}