1 import { ChargingProfilePurposeType
, OCPP16ChargingProfile
} from
'./ChargingProfile';
3 import { OCPP16ChargePointErrorCode
} from
'./ChargePointErrorCode';
4 import { OCPP16ChargePointStatus
} from
'./ChargePointStatus';
5 import { OCPP16StandardParametersKey
} from
'./Configuration';
7 export enum OCPP16RequestCommand
{
8 BOOT_NOTIFICATION
= 'BootNotification',
9 HEARTBEAT
= 'Heartbeat',
10 STATUS_NOTIFICATION
= 'StatusNotification',
11 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
12 AUTHORIZE
= 'Authorize',
13 START_TRANSACTION
= 'StartTransaction',
14 STOP_TRANSACTION
= 'StopTransaction',
15 METER_VALUES
= 'MeterValues'
18 export enum OCPP16IncomingRequestCommand
{
20 CLEAR_CACHE
= 'ClearCache',
21 CHANGE_AVAILABILITY
= 'ChangeAvailability',
22 UNLOCK_CONNECTOR
= 'UnlockConnector',
23 GET_CONFIGURATION
= 'GetConfiguration',
24 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
25 SET_CHARGING_PROFILE
= 'SetChargingProfile',
26 CLEAR_CHARGING_PROFILE
= 'ClearChargingProfile',
27 REMOTE_START_TRANSACTION
= 'RemoteStartTransaction',
28 REMOTE_STOP_TRANSACTION
= 'RemoteStopTransaction'
31 // eslint-disable-next-line @typescript-eslint/no-empty-interface
32 export interface HeartbeatRequest
{ }
34 export interface OCPP16BootNotificationRequest
{
35 chargeBoxSerialNumber
?: string;
36 chargePointModel
: string;
37 chargePointSerialNumber
?: string;
38 chargePointVendor
: string;
39 firmwareVersion
?: string;
42 meterSerialNumber
?: string;
46 export interface StatusNotificationRequest
{
48 errorCode
: OCPP16ChargePointErrorCode
;
50 status: OCPP16ChargePointStatus
;
53 vendorErrorCode
?: string;
56 export interface ChangeConfigurationRequest
{
57 key
: string | OCPP16StandardParametersKey
;
61 export interface RemoteStartTransactionRequest
{
64 chargingProfile
?: OCPP16ChargingProfile
;
67 export interface RemoteStopTransactionRequest
{
68 transactionId
: number;
71 export interface UnlockConnectorRequest
{
75 export interface GetConfigurationRequest
{
76 key
?: string | OCPP16StandardParametersKey
[];
79 export enum ResetType
{
84 export interface ResetRequest
{
88 export interface SetChargingProfileRequest
{
90 csChargingProfiles
: OCPP16ChargingProfile
;
93 export enum OCPP16AvailabilityType
{
94 INOPERATIVE
= 'Inoperative',
95 OPERATIVE
= 'Operative'
98 export interface ChangeAvailabilityRequest
{
100 type: OCPP16AvailabilityType
;
103 export interface ClearChargingProfileRequest
{
105 connectorId
?: number;
106 chargingProfilePurpose
?: ChargingProfilePurposeType
;