X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F2.0%2FVariables.ts;h=c08e00f0adb3b5f883acefeabc63f2a5ad27e54a;hb=041365be4e6cfcec381c895a203815dd933afff5;hp=9de1dcc8a81bf1494061fedc4970863373229707;hpb=28f1c5749ad4ee138c34c345a7bd812b40ccbcfa;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/2.0/Variables.ts b/src/types/ocpp/2.0/Variables.ts index 9de1dcc8..c08e00f0 100644 --- a/src/types/ocpp/2.0/Variables.ts +++ b/src/types/ocpp/2.0/Variables.ts @@ -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; @@ -103,7 +110,7 @@ export type OCPP20SetVariableResultType = { attributeStatusInfo?: StatusInfoType; } & JsonObject; -type OCPP20ComponentVariableType = { +export type OCPP20ComponentVariableType = { component: ComponentType; variable?: VariableType; } & JsonObject;