-import { LRUCacheWithDelete as LRUCache } from 'mnemonist';
+import { LRUMapWithDelete as LRUCache } from 'mnemonist';
import { Bootstrap } from './Bootstrap';
import type { ChargingStationConfiguration, ChargingStationTemplate } from '../types';
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',
-}
-
export type ChargingStationInfo = Omit<
ChargingStationTemplate,
| 'AutomaticTransactionGenerator'
maximumPower?: number; // Always in Watt
maximumAmperage?: number; // Always in Ampere
firmwareStatus?: FirmwareStatus;
- x509Certificates?: Record<x509CertificateType, string>;
};
export type ChargingStationInfoConfiguration = {
outgoingCommands?: Record<RequestCommand, boolean>;
};
+enum x509CertificateType {
+ V2GRootCertificate = 'V2GRootCertificate',
+ MORootCertificate = 'MORootCertificate',
+ CSMSRootCertificate = 'CSMSRootCertificate',
+ ManufacturerRootCertificate = 'ManufacturerRootCertificate',
+ ChargingStationCertificate = 'ChargingStationCertificate',
+ V2GCertificate = 'V2GCertificate',
+}
+
export type ChargingStationTemplate = {
templateHash?: string;
supervisionUrls?: string | string[];
AutomaticTransactionGenerator?: AutomaticTransactionGeneratorConfiguration;
Evses?: Record<string, EvseTemplate>;
Connectors?: Record<string, ConnectorStatus>;
+ x509Certificates?: Record<x509CertificateType, string>;
};