-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',
}
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',
}
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