]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
fix(ocpp): remove type re-export from services barrel
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 19 Mar 2026 14:42:59 +0000 (15:42 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 19 Mar 2026 14:42:59 +0000 (15:42 +0100)
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
src/charging-station/ocpp/index.ts

index be7b228b8bbfb6cce59a5a30ebc63f7b6f5dde15..2d63905c85723cbe43a0b484d83f44c7bcc51638 100644 (file)
@@ -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,
index 47f32ffc6abc6e680c1207b4ad9053adad1bd9b4..ef64322b3511770e5399db776ee1a2ca81493a5c 100644 (file)
@@ -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'