]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ocpp): extract connector status operations into dedicated module
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 1 Apr 2026 15:13:47 +0000 (17:13 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 1 Apr 2026 15:13:47 +0000 (17:13 +0200)
commita5376f40c7ed130804cf6bd1b99183474d7599b9
treea544e257751e8914aac2ce371659f911f866ead8
parent2bf962409626f42ce26f4288d5ab313374d6bdb8
refactor(ocpp): extract connector status operations into dedicated module

Move sendAndSetConnectorStatus, restoreConnectorStatus, and
checkConnectorStatusTransition into OCPPConnectorStatusOperations.ts
to enforce the operations/utils semantic separation without creating
circular dependencies. The new module depends only on Constants
(leaf modules), not on version-specific ServiceUtils.
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts
src/charging-station/ocpp/1.6/OCPP16RequestService.ts
src/charging-station/ocpp/1.6/OCPP16ResponseService.ts
src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/2.0/OCPP20ResponseService.ts
src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts
src/charging-station/ocpp/OCPPConnectorStatusOperations.ts [new file with mode: 0644]
src/charging-station/ocpp/OCPPServiceUtils.ts
src/charging-station/ocpp/index.ts
tests/charging-station/ocpp/OCPPConnectorStatusOperations.test.ts [moved from tests/charging-station/ocpp/OCPPServiceUtils-connectorStatus.test.ts with 97% similarity]