Refine connector id validation error message
[e-mobility-charging-stations-simulator.git] / src / types / ChargingStationInfo.ts
index 28895067edf6adb954291fc097d90b872098b3aa..6509887030e2640cd4a1576cd6472e37a193201a 100644 (file)
@@ -1,9 +1,25 @@
-import ChargingStationTemplate from './ChargingStationTemplate';
+import type { ChargingStationTemplate } from './ChargingStationTemplate';
 
-export default interface ChargingStationInfo extends ChargingStationTemplate {
+export type ChargingStationInfo = Omit<
+  ChargingStationTemplate,
+  | 'AutomaticTransactionGenerator'
+  | 'Configuration'
+  | 'power'
+  | 'powerUnit'
+  | 'chargeBoxSerialNumberPrefix'
+  | 'chargePointSerialNumberPrefix'
+  | 'meterSerialNumberPrefix'
+> & {
+  hashId: string;
+  infoHash?: string;
   chargingStationId?: string;
   chargeBoxSerialNumber?: string;
   chargePointSerialNumber?: string;
-  maxPower?: number; // Always in Watt
-  powerDivider?: number;
-}
+  meterSerialNumber?: string;
+  maximumPower?: number; // Always in Watt
+  maximumAmperage?: number; // Always in Ampere
+};
+
+export type ChargingStationInfoConfiguration = {
+  stationInfo?: ChargingStationInfo;
+};