X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F2.0%2FVariables.ts;h=04a344564bcd202e3a6ab5dcef35798545b09620;hb=16c46962f43a692c996b1c89a94dc572fea52d63;hp=b5cd53e5620d001b9a1e39c71185b064b7fe9309;hpb=66a7748ddeda8c94d7562a1ce58d440319654a4c;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 b5cd53e5..04a34456 100644 --- a/src/types/ocpp/2.0/Variables.ts +++ b/src/types/ocpp/2.0/Variables.ts @@ -1,5 +1,5 @@ -import type { EVSEType, StatusInfoType } from './Common.js' import type { JsonObject } from '../../JsonType.js' +import type { EVSEType, StatusInfoType } from './Common.js' enum OCPP20ComponentName { AlignedDataCtrlr = 'AlignedDataCtrlr', @@ -69,11 +69,11 @@ enum AttributeEnumType { MaxSet = 'MaxSet' } -type ComponentType = { +interface ComponentType extends JsonObject { name: string | OCPP20ComponentName instance?: string evse?: EVSEType -} & JsonObject +} type VariableName = | string @@ -81,17 +81,17 @@ type VariableName = | OCPP20OptionalVariableName | OCPP20VendorVariableName -type VariableType = { +interface VariableType extends JsonObject { name: VariableName instance?: string -} & JsonObject +} -export type OCPP20SetVariableDataType = { +export interface OCPP20SetVariableDataType extends JsonObject { attributeType?: AttributeEnumType attributeValue: string component: ComponentType variable: VariableType -} & JsonObject +} enum SetVariableStatusEnumType { Accepted = 'Accepted', @@ -102,15 +102,15 @@ enum SetVariableStatusEnumType { RebootRequired = 'RebootRequired' } -export type OCPP20SetVariableResultType = { +export interface OCPP20SetVariableResultType extends JsonObject { attributeType?: AttributeEnumType attributeStatus: SetVariableStatusEnumType component: ComponentType variable: VariableType attributeStatusInfo?: StatusInfoType -} & JsonObject +} -export type OCPP20ComponentVariableType = { +export interface OCPP20ComponentVariableType extends JsonObject { component: ComponentType variable?: VariableType -} & JsonObject +}