refactor: align set information namespace
[e-mobility-charging-stations-simulator.git] / src / types / ChargingStationInfo.ts
index 4f5336233dde7819e6f75a54caf505538876df35..2f9a07fc9c13ac5637af0a73caae1b7ddb4c6e19 100644 (file)
@@ -1,18 +1,12 @@
-import type { ChargingStationTemplate, FirmwareStatus } from './internal';
-
-enum x509CertificateType {
-  V2GRootCertificate = 'V2GRootCertificate',
-  MORootCertificate = 'MORootCertificate',
-  CSMSRootCertificate = 'CSMSRootCertificate',
-  ManufacturerRootCertificate = 'ManufacturerRootCertificate',
-  ChargingStationCertificate = 'ChargingStationCertificate',
-  V2GCertificate = 'V2GCertificate',
-}
+import type { ChargingStationTemplate } from './ChargingStationTemplate';
+import type { FirmwareStatus } from './ocpp/Requests';
 
 export type ChargingStationInfo = Omit<
   ChargingStationTemplate,
   | 'AutomaticTransactionGenerator'
   | 'Configuration'
+  | 'Connectors'
+  | 'Evses'
   | 'power'
   | 'powerUnit'
   | 'chargeBoxSerialNumberPrefix'
@@ -20,6 +14,7 @@ export type ChargingStationInfo = Omit<
   | 'meterSerialNumberPrefix'
 > & {
   hashId: string;
+  /** @deprecated Use hashId instead */
   infoHash?: string;
   chargingStationId?: string;
   chargeBoxSerialNumber?: string;
@@ -28,7 +23,6 @@ export type ChargingStationInfo = Omit<
   maximumPower?: number; // Always in Watt
   maximumAmperage?: number; // Always in Ampere
   firmwareStatus?: FirmwareStatus;
-  x509Certificates?: Record<x509CertificateType, string>;
 };
 
 export type ChargingStationInfoConfiguration = {