fix: Handling of remote start transactions in reserved state
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 2.0 / Variables.ts
index 9de1dcc8a81bf1494061fedc4970863373229707..59b1b023bfbf6b0362590f6393ab435b77e0b0f8 100644 (file)
@@ -1,4 +1,5 @@
-import type { EVSEType, JsonObject, StatusInfoType } from '../../internal';
+import type { EVSEType, StatusInfoType } from './Common';
+import type { JsonObject } from '../../JsonType';
 
 enum OCPP20ComponentName {
   AlignedDataCtrlr = 'AlignedDataCtrlr',
@@ -74,8 +75,14 @@ type ComponentType = {
   evse?: EVSEType;
 } & JsonObject;
 
+type VariableName =
+  | string
+  | OCPP20RequiredVariableName
+  | OCPP20OptionalVariableName
+  | OCPP20VendorVariableName;
+
 type VariableType = {
-  name: string | OCPP20RequiredVariableName | OCPP20OptionalVariableName | OCPP20VendorVariableName;
+  name: VariableName;
   instance?: string;
 } & JsonObject;