Strict null type check fixes
[e-mobility-charging-stations-simulator.git] / src / types / ConnectorStatus.ts
index c63dd3db98311b7496a6b07c56d4c10f0cd32f7a..d7698107b9cc2146677db9624f66ae174d8c9dd8 100644 (file)
@@ -1,13 +1,13 @@
-import { AvailabilityType } from './ocpp/Requests';
-import { ChargePointStatus } from './ocpp/ChargePointStatus';
-import { ChargingProfile } from './ocpp/ChargingProfile';
-import { MeterValue } from './ocpp/MeterValues';
-import { SampledValueTemplate } from './MeasurandPerPhaseSampledValueTemplates';
+import type { SampledValueTemplate } from './MeasurandPerPhaseSampledValueTemplates';
+import type { ChargingProfile } from './ocpp/ChargingProfile';
+import type { ConnectorStatusEnum } from './ocpp/ConnectorStatusEnum';
+import type { MeterValue } from './ocpp/MeterValues';
+import type { AvailabilityType } from './ocpp/Requests';
 
-export interface ConnectorStatus {
+export type ConnectorStatus = {
   availability: AvailabilityType;
-  bootStatus?: ChargePointStatus;
-  status?: ChargePointStatus;
+  bootStatus?: ConnectorStatusEnum;
+  status?: ConnectorStatusEnum;
   MeterValues: SampledValueTemplate[];
   authorizeIdTag?: string;
   idTagAuthorized?: boolean;
@@ -22,4 +22,4 @@ export interface ConnectorStatus {
   transactionEnergyActiveImportRegisterValue?: number; // In Wh
   transactionBeginMeterValue?: MeterValue;
   chargingProfiles?: ChargingProfile[];
-}
+};