From 31852b7db6b9ac7165c563e5a684fd0c1f1f0857 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 19 Mar 2026 15:42:59 +0100 Subject: [PATCH] fix(ocpp): remove type re-export from services barrel Move OCPP20TransactionEventEnumType and OCPP20TriggerReasonEnumType imports in ChargingStation.ts from the services barrel (ocpp/index.ts) to the types barrel (types/index.ts) where they belong. --- src/charging-station/ChargingStation.ts | 4 ++-- src/charging-station/ocpp/index.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index be7b228b..2d63905c 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -46,6 +46,8 @@ import { type MeterValuesRequest, type MeterValuesResponse, type OCPP20MeterValue, + OCPP20TransactionEventEnumType, + OCPP20TriggerReasonEnumType, OCPPVersion, type OutgoingRequest, PowerUnits, @@ -159,8 +161,6 @@ import { OCPP20RequestService, OCPP20ResponseService, OCPP20ServiceUtils, - OCPP20TransactionEventEnumType, - OCPP20TriggerReasonEnumType, OCPPAuthServiceFactory, type OCPPIncomingRequestService, type OCPPRequestService, diff --git a/src/charging-station/ocpp/index.ts b/src/charging-station/ocpp/index.ts index 47f32ffc..ef64322b 100644 --- a/src/charging-station/ocpp/index.ts +++ b/src/charging-station/ocpp/index.ts @@ -1,4 +1,3 @@ -export { OCPP20TransactionEventEnumType, OCPP20TriggerReasonEnumType } from '../../types/index.js' export { OCPP16IncomingRequestService } from './1.6/OCPP16IncomingRequestService.js' export { OCPP16RequestService } from './1.6/OCPP16RequestService.js' export { OCPP16ResponseService } from './1.6/OCPP16ResponseService.js' -- 2.43.0