refactor(simulator): align casing on enums between key and value
[e-mobility-charging-stations-simulator.git] / src / types / ConnectorStatus.ts
index 6eab4106ba0fb54e93a8a60f9597daa7e75019f0..02ee914e8759557f942cf2e671df737064674be0 100644 (file)
@@ -1,13 +1,15 @@
-import { SampledValueTemplate } from './MeasurandPerPhaseSampledValueTemplates';
-import { ChargePointStatus } from './ocpp/ChargePointStatus';
-import { ChargingProfile } from './ocpp/ChargingProfile';
-import { MeterValue } from './ocpp/MeterValues';
-import { AvailabilityType } from './ocpp/Requests';
+import type {
+  AvailabilityType,
+  ChargingProfile,
+  ConnectorStatusEnum,
+  MeterValue,
+  SampledValueTemplate,
+} from './internal';
 
-export interface ConnectorStatus {
+export type ConnectorStatus = {
   availability: AvailabilityType;
-  bootStatus?: ChargePointStatus;
-  status?: ChargePointStatus;
+  bootStatus?: ConnectorStatusEnum;
+  status?: ConnectorStatusEnum;
   MeterValues: SampledValueTemplate[];
   authorizeIdTag?: string;
   idTagAuthorized?: boolean;
@@ -22,4 +24,4 @@ export interface ConnectorStatus {
   transactionEnergyActiveImportRegisterValue?: number; // In Wh
   transactionBeginMeterValue?: MeterValue;
   chargingProfiles?: ChargingProfile[];
-}
+};