1 import { ChargingProfilePurposeType
, OCPP16ChargingProfile
} from
'./ChargingProfile';
3 import { OCPP16ChargePointErrorCode
} from
'./ChargePointErrorCode';
4 import { OCPP16ChargePointStatus
} from
'./ChargePointStatus';
5 import { OCPP16DiagnosticsStatus
} from
'./DiagnosticsStatus';
6 import { OCPP16StandardParametersKey
} from
'./Configuration';
8 export enum OCPP16RequestCommand
{
9 BOOT_NOTIFICATION
= 'BootNotification',
10 HEARTBEAT
= 'Heartbeat',
11 STATUS_NOTIFICATION
= 'StatusNotification',
12 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
13 AUTHORIZE
= 'Authorize',
14 START_TRANSACTION
= 'StartTransaction',
15 STOP_TRANSACTION
= 'StopTransaction',
16 METER_VALUES
= 'MeterValues',
17 DIAGNOSTICS_STATUS_NOTIFICATION
= 'DiagnosticsStatusNotification'
20 export enum OCPP16IncomingRequestCommand
{
22 CLEAR_CACHE
= 'ClearCache',
23 CHANGE_AVAILABILITY
= 'ChangeAvailability',
24 UNLOCK_CONNECTOR
= 'UnlockConnector',
25 GET_CONFIGURATION
= 'GetConfiguration',
26 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
27 SET_CHARGING_PROFILE
= 'SetChargingProfile',
28 CLEAR_CHARGING_PROFILE
= 'ClearChargingProfile',
29 REMOTE_START_TRANSACTION
= 'RemoteStartTransaction',
30 REMOTE_STOP_TRANSACTION
= 'RemoteStopTransaction',
31 GET_DIAGNOSTICS
= 'GetDiagnostics'
34 // eslint-disable-next-line @typescript-eslint/no-empty-interface
35 export interface HeartbeatRequest
{ }
37 export interface OCPP16BootNotificationRequest
{
38 chargeBoxSerialNumber
?: string;
39 chargePointModel
: string;
40 chargePointSerialNumber
?: string;
41 chargePointVendor
: string;
42 firmwareVersion
?: string;
45 meterSerialNumber
?: string;
49 export interface StatusNotificationRequest
{
51 errorCode
: OCPP16ChargePointErrorCode
;
53 status: OCPP16ChargePointStatus
;
56 vendorErrorCode
?: string;
59 export interface ChangeConfigurationRequest
{
60 key
: string | OCPP16StandardParametersKey
;
64 export interface RemoteStartTransactionRequest
{
67 chargingProfile
?: OCPP16ChargingProfile
;
70 export interface RemoteStopTransactionRequest
{
71 transactionId
: number;
74 export interface UnlockConnectorRequest
{
78 export interface GetConfigurationRequest
{
79 key
?: string | OCPP16StandardParametersKey
[];
82 export enum ResetType
{
87 export interface ResetRequest
{
91 export interface SetChargingProfileRequest
{
93 csChargingProfiles
: OCPP16ChargingProfile
;
96 export enum OCPP16AvailabilityType
{
97 INOPERATIVE
= 'Inoperative',
98 OPERATIVE
= 'Operative'
101 export interface ChangeAvailabilityRequest
{
103 type: OCPP16AvailabilityType
;
106 export interface ClearChargingProfileRequest
{
108 connectorId
?: number;
109 chargingProfilePurpose
?: ChargingProfilePurposeType
;
113 export interface GetDiagnosticsRequest
{
116 retryInterval
?: number;
121 export interface DiagnosticsStatusNotificationRequest
{
122 status: OCPP16DiagnosticsStatus