]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
refactor: replace const enum with enum for cross-module runtime compatibility
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 17 Mar 2026 11:23:51 +0000 (12:23 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 17 Mar 2026 11:23:51 +0000 (12:23 +0100)
src/types/ocpp/1.6/Requests.ts
src/types/ocpp/ErrorType.ts
src/types/ocpp/MessageType.ts
src/types/ocpp/OCPPVersion.ts

index 644e0d4c3bf4e566da19b827289790e4795701af..f31ce904dcc1e175bc1ff094a072513ffe08f697 100644 (file)
@@ -67,7 +67,7 @@ export enum OCPP16RequestCommand {
   STOP_TRANSACTION = 'StopTransaction',
 }
 
-export const enum ResetType {
+export enum ResetType {
   HARD = 'Hard',
   SOFT = 'Soft',
 }
index d6367e1617174792f1bf7ff1e408297e21a1e7e0..40a6e7353ac25979ca10bff45a06d1d8cb2b2440 100644 (file)
@@ -1,4 +1,4 @@
-export const enum ErrorType {
+export enum ErrorType {
   // Payload for Action is syntactically incorrect or not conform the PDU structure for Action
   FORMAT_VIOLATION = 'FormatViolation',
   /** @deprecated use FORMAT_VIOLATION instead */
index 0ac13fa2ec7a6629f6d3c2b94c17e00d9c66b353..1346ee82bc4c9f18ed93396f5b1ddfef1d8e4621 100644 (file)
@@ -1,4 +1,4 @@
-export const enum MessageType {
+export enum MessageType {
   CALL_MESSAGE = 2, // Caller to Callee
   CALL_RESULT_MESSAGE = 3, // Callee to Caller
   CALL_ERROR_MESSAGE = 4, // Callee to Caller
index 2bc8210c580687a4410a8eba1e42a8d7853fba71..a19fc28033e6afe9f9475cbd8d12334185ad3b04 100644 (file)
@@ -1,4 +1,4 @@
-export const enum OCPPVersion {
+export enum OCPPVersion {
   VERSION_16 = '1.6',
   VERSION_20 = '2.0',
   VERSION_201 = '2.0.1',