refactor(simulator): consolidate connector status transition
[e-mobility-charging-stations-simulator.git] / src / types / ChargingStationInfo.ts
index 29ff6fb719b6f550d600a5275e7d5ff99cb4be9a..4f5336233dde7819e6f75a54caf505538876df35 100644 (file)
@@ -1,5 +1,13 @@
-import type { ChargingStationTemplate } from './ChargingStationTemplate';
-import type { FirmwareStatus } from './ocpp/Requests';
+import type { ChargingStationTemplate, FirmwareStatus } from './internal';
+
+enum x509CertificateType {
+  V2GRootCertificate = 'V2GRootCertificate',
+  MORootCertificate = 'MORootCertificate',
+  CSMSRootCertificate = 'CSMSRootCertificate',
+  ManufacturerRootCertificate = 'ManufacturerRootCertificate',
+  ChargingStationCertificate = 'ChargingStationCertificate',
+  V2GCertificate = 'V2GCertificate',
+}
 
 export type ChargingStationInfo = Omit<
   ChargingStationTemplate,
@@ -20,6 +28,7 @@ export type ChargingStationInfo = Omit<
   maximumPower?: number; // Always in Watt
   maximumAmperage?: number; // Always in Ampere
   firmwareStatus?: FirmwareStatus;
+  x509Certificates?: Record<x509CertificateType, string>;
 };
 
 export type ChargingStationInfoConfiguration = {