-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;
- /** @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<x509CertificateType, 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
+}
-export type ChargingStationInfoConfiguration = {
- stationInfo?: ChargingStationInfo;
-};
+export interface ChargingStationInfoConfiguration {
+ stationInfo?: ChargingStationInfo
+}