From: Jérôme Benoit Date: Thu, 19 Mar 2026 14:42:59 +0000 (+0100) Subject: fix(ocpp): remove type re-export from services barrel X-Git-Tag: ocpp-server@v3.2.0~34 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=31852b7db6b9ac7165c563e5a684fd0c1f1f0857;p=e-mobility-charging-stations-simulator.git 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. --- 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'