export * from './ocpp/1.6/Requests';
export * from './ocpp/1.6/Responses';
export * from './ocpp/1.6/Transaction';
+export * from './ocpp/2.0/Common';
export * from './ocpp/2.0/Requests';
export * from './ocpp/2.0/Responses';
export * from './ocpp/2.0/Variables';
--- /dev/null
+import type { JsonObject } from '../../internal';
+
+export enum BootReasonEnumType {
+ ApplicationReset = 'ApplicationReset',
+ FirmwareUpdate = 'FirmwareUpdate',
+ LocalReset = 'LocalReset',
+ PowerUp = 'PowerUp',
+ RemoteReset = 'RemoteReset',
+ ScheduledReset = 'ScheduledReset',
+ Triggered = 'Triggered',
+ Unknown = 'Unknown',
+ Watchdog = 'Watchdog',
+}
+
+export enum OCPP20ConnectorStatusEnumType {
+ AVAILABLE = 'Available',
+ OCCUPIED = 'Occupied',
+ RESERVED = 'Reserved',
+ UNAVAILABLE = 'Unavailable',
+ FAULTED = 'Faulted',
+}
+
+export type StatusInfoType = {
+ reasonCode: string;
+ additionalInfo?: string;
+} & JsonObject;
+
+export type EVSEType = {
+ id: number;
+ connectorId?: string;
+} & JsonObject;
-import type { EmptyObject, JsonObject } from '../../internal';
+import type {
+ BootReasonEnumType,
+ EmptyObject,
+ JsonObject,
+ OCPP20ConnectorStatusEnumType,
+ OCPP20SetVariableDataType,
+} from '../../internal';
export enum OCPP20RequestCommand {
BOOT_NOTIFICATION = 'BootNotification',
REQUEST_STOP_TRANSACTION = 'RequestStopTransaction',
}
-export enum BootReasonEnumType {
- ApplicationReset = 'ApplicationReset',
- FirmwareUpdate = 'FirmwareUpdate',
- LocalReset = 'LocalReset',
- PowerUp = 'PowerUp',
- RemoteReset = 'RemoteReset',
- ScheduledReset = 'ScheduledReset',
- Triggered = 'Triggered',
- Unknown = 'Unknown',
- Watchdog = 'Watchdog',
-}
-
-export type ModemType = {
+type ModemType = {
iccid?: string;
imsi?: string;
} & JsonObject;
-export type ChargingStationType = {
+type ChargingStationType = {
serialNumber?: string;
model: string;
vendorName: string;
export type OCPP20ClearCacheRequest = EmptyObject;
-export enum OCPP20ConnectorStatusEnumType {
- AVAILABLE = 'Available',
- OCCUPIED = 'Occupied',
- RESERVED = 'Reserved',
- UNAVAILABLE = 'Unavailable',
- FAULTED = 'Faulted',
-}
-
export type OCPP20StatusNotificationRequest = {
timestamp: Date;
connectorStatus: OCPP20ConnectorStatusEnumType;
evseId: number;
connectorId: number;
} & JsonObject;
+
+export type OCPP20SetVariablesRequest = {
+ setVariableData: OCPP20SetVariableDataType[];
+} & JsonObject;
EmptyObject,
GenericStatus,
JsonObject,
+ OCPP20SetVariableResultType,
RegistrationStatusEnumType,
+ StatusInfoType,
} from '../../internal';
-export type StatusInfoType = {
- reasonCode: string;
- additionalInfo?: string;
-} & JsonObject;
-
export type OCPP20BootNotificationResponse = {
currentTime: Date;
status: RegistrationStatusEnumType;
} & JsonObject;
export type OCPP20StatusNotificationResponse = EmptyObject;
+
+export type OCPP20SetVariablesResponse = {
+ setVariableResult: OCPP20SetVariableResultType[];
+} & JsonObject;
-export enum OCPP20ComponentName {
+import type { EVSEType, JsonObject, StatusInfoType } from '../../internal';
+
+enum OCPP20ComponentName {
AlignedDataCtrlr = 'AlignedDataCtrlr',
AuthCacheCtrlr = 'AuthCacheCtrlr',
AuthCtrlr = 'AuthCtrlr',
export enum OCPP20VendorVariableName {
ConnectionUrl = 'ConnectionUrl',
}
+
+enum AttributeEnumType {
+ Actual = 'Actual',
+ Target = 'Target',
+ MinSet = 'MinSet',
+ MaxSet = 'MaxSet',
+}
+
+type ComponentType = {
+ name: string | OCPP20ComponentName;
+ instance?: string;
+ evse?: EVSEType;
+} & JsonObject;
+
+type VariableType = {
+ name: string | OCPP20RequiredVariableName | OCPP20OptionalVariableName | OCPP20VendorVariableName;
+ instance?: string;
+} & JsonObject;
+
+export type OCPP20SetVariableDataType = {
+ attributeType?: AttributeEnumType;
+ attributeValue: string;
+ component: ComponentType;
+ variable: VariableType;
+} & JsonObject;
+
+enum SetVariableStatusEnumType {
+ Accepted = 'Accepted',
+ Rejected = 'Rejected',
+ UnknownComponent = 'UnknownComponent',
+ UnknownVariable = 'UnknownVariable',
+ NotSupportedAttributeType = 'NotSupportedAttributeType',
+ RebootRequired = 'RebootRequired',
+}
+
+export type OCPP20SetVariableResultType = {
+ attributeType?: AttributeEnumType;
+ attributeStatus: SetVariableStatusEnumType;
+ component: ComponentType;
+ variable: VariableType;
+ attributeStatusInfo?: StatusInfoType;
+} & JsonObject;
+
+type OCPP20ComponentVariableType = {
+ component: ComponentType;
+ variable?: VariableType;
+} & JsonObject;