X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F2.0%2FVariables.ts;h=2aa2ed3332b7486f853da09033f8dbfca4f19c71;hb=68220b423c52da387fdf41967dd8c738da0ff52e;hp=c08e00f0adb3b5f883acefeabc63f2a5ad27e54a;hpb=e1d9a0f4d6ff1a90048e9a694fd12b7031cc6961;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 c08e00f0..2aa2ed33 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'; -import type { JsonObject } from '../../JsonType'; +import type { EVSEType, StatusInfoType } from './Common.js' +import type { JsonObject } from '../../JsonType.js' enum OCPP20ComponentName { AlignedDataCtrlr = 'AlignedDataCtrlr', @@ -70,28 +70,28 @@ enum AttributeEnumType { } type ComponentType = { - name: string | OCPP20ComponentName; - instance?: string; - evse?: EVSEType; -} & JsonObject; + name: string | OCPP20ComponentName + instance?: string + evse?: EVSEType +} & JsonObject type VariableName = | string | OCPP20RequiredVariableName | OCPP20OptionalVariableName - | OCPP20VendorVariableName; + | OCPP20VendorVariableName type VariableType = { - name: VariableName; - instance?: string; -} & JsonObject; + name: VariableName + instance?: string +} & JsonObject export type OCPP20SetVariableDataType = { - attributeType?: AttributeEnumType; - attributeValue: string; - component: ComponentType; - variable: VariableType; -} & JsonObject; + attributeType?: AttributeEnumType + attributeValue: string + component: ComponentType + variable: VariableType +} & JsonObject enum SetVariableStatusEnumType { Accepted = 'Accepted', @@ -103,14 +103,14 @@ enum SetVariableStatusEnumType { } export type OCPP20SetVariableResultType = { - attributeType?: AttributeEnumType; - attributeStatus: SetVariableStatusEnumType; - component: ComponentType; - variable: VariableType; - attributeStatusInfo?: StatusInfoType; -} & JsonObject; + attributeType?: AttributeEnumType + attributeStatus: SetVariableStatusEnumType + component: ComponentType + variable: VariableType + attributeStatusInfo?: StatusInfoType +} & JsonObject export type OCPP20ComponentVariableType = { - component: ComponentType; - variable?: VariableType; -} & JsonObject; + component: ComponentType + variable?: VariableType +} & JsonObject