From 51d1eaf71f90136f548d988274db071e43857b03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 17 Mar 2026 01:05:02 +0100 Subject: [PATCH] refactor: re-export OCPPAuthServiceFactory in ocpp barrel and fix cross-sub-component imports --- src/charging-station/ChargingStation.ts | 2 +- src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts | 2 +- src/charging-station/ocpp/index.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index a70705da..75987af1 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -144,7 +144,6 @@ import { warnTemplateKeysDeprecation, } from './Helpers.js' import { IdTagsCache } from './IdTagsCache.js' -import { OCPPAuthServiceFactory } from './ocpp/auth/services/OCPPAuthServiceFactory.js' import { buildMeterValue, buildTransactionEndMeterValue, @@ -158,6 +157,7 @@ import { OCPP20ServiceUtils, OCPP20TransactionEventEnumType, OCPP20TriggerReasonEnumType, + OCPPAuthServiceFactory, type OCPPIncomingRequestService, type OCPPRequestService, sendAndSetConnectorStatus, diff --git a/src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts b/src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts index ab9c5b72..67492407 100644 --- a/src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts +++ b/src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts @@ -135,7 +135,7 @@ import { hasPendingReservations, resetConnectorStatus, } from '../../Helpers.js' -import { OCPPAuthServiceFactory } from '../auth/services/OCPPAuthServiceFactory.js' +import { OCPPAuthServiceFactory } from '../auth/index.js' import { OCPPIncomingRequestService } from '../OCPPIncomingRequestService.js' import { buildMeterValue, diff --git a/src/charging-station/ocpp/index.ts b/src/charging-station/ocpp/index.ts index f7319867..0aab4035 100644 --- a/src/charging-station/ocpp/index.ts +++ b/src/charging-station/ocpp/index.ts @@ -10,6 +10,7 @@ export { OCPP20RequestService } from './2.0/OCPP20RequestService.js' export { OCPP20ResponseService } from './2.0/OCPP20ResponseService.js' export { OCPP20ServiceUtils } from './2.0/OCPP20ServiceUtils.js' export { OCPP20VariableManager } from './2.0/OCPP20VariableManager.js' +export { OCPPAuthServiceFactory } from './auth/services/OCPPAuthServiceFactory.js' export { OCPPIncomingRequestService } from './OCPPIncomingRequestService.js' export { OCPPRequestService } from './OCPPRequestService.js' export { -- 2.43.0