]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ocpp): remove static alias forwarding from OCPPServiceUtils class
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 30 Mar 2026 20:33:31 +0000 (22:33 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 30 Mar 2026 20:33:31 +0000 (22:33 +0200)
commitc8d9ecb59e3d3188a665080ea413249f2d1665a5
tree4874c3fa02074561c9454817380028ff0600f7c0
parentcebc17583b0d5ec09c5e3d41a6c204a84afe134e
refactor(ocpp): remove static alias forwarding from OCPPServiceUtils class

Replace OCPPServiceUtils static property aliases with direct function
imports. All 7 aliases (buildTransactionEndMeterValue, mapStopReasonToOCPP20,
restoreConnectorStatus, sendAndSetConnectorStatus, stopRunningTransactions,
buildSampledValue, getSampledValueTemplate) were trivial forwarding to
standalone functions already defined in the same file.

Consumers now import these functions directly, reducing indirection and
moving toward dissolving the extraneous utility class.
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/OCPPServiceUtils.ts
tests/charging-station/ocpp/1.6/OCPP16ServiceUtils.test.ts