1 import { ChargePointErrorCode
} from
'./ChargePointErrorCode';
2 import { ChargePointStatus
} from
'./ChargePointStatus';
3 import { ChargingProfile
} from
'./ChargingProfile';
4 import { MessageType
} from
'../MessageType';
5 import OCPPError from
'../../../charging-station/OcppError';
7 export default interface Requests
{
11 export type Request
= [(payload
?, requestPayload
?) => void, (error
?: OCPPError
) => void, Record
<string, unknown
>];
13 export type IncomingRequest
= [MessageType
, string, IncomingRequestCommand
, string, string];
15 export enum RequestCommand
{
16 BOOT_NOTIFICATION
= 'BootNotification',
17 HEARTBEAT
= 'Heartbeat',
18 STATUS_NOTIFICATION
= 'StatusNotification',
19 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
20 START_TRANSACTION
= 'StartTransaction',
21 STOP_TRANSACTION
= 'StopTransaction',
22 METERVALUES
= 'MeterValues'
25 export enum IncomingRequestCommand
{
27 CLEAR_CACHE
= 'ClearCache',
28 UNLOCK_CONNECTOR
= 'UnlockConnector',
29 GET_CONFIGURATION
= 'GetConfiguration',
30 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
31 SET_CHARGING_PROFILE
= 'SetChargingProfile',
32 REMOTE_START_TRANSACTION
= 'RemoteStartTransaction',
33 REMOTE_STOP_TRANSACTION
= 'RemoteStopTransaction'
36 // eslint-disable-next-line @typescript-eslint/no-empty-interface
37 export interface HeartbeatRequest
{}
39 export interface BootNotificationRequest
{
40 chargeBoxSerialNumber
?: string;
41 chargePointModel
: string;
42 chargePointSerialNumber
?: string;
43 chargePointVendor
: string;
44 firmwareVersion
?: string;
47 meterSerialNumber
?: string;
51 export interface StatusNotificationRequest
{
53 errorCode
: ChargePointErrorCode
;
55 status: ChargePointStatus
;
58 vendorErrorCode
?: string;
61 export interface ChangeConfigurationRequest
{
66 export interface RemoteStartTransactionRequest
{
69 chargingProfile
?: ChargingProfile
;
72 export interface RemoteStopTransactionRequest
{
73 transactionId
: number;
76 export interface UnlockConnectorRequest
{
80 export interface GetConfigurationRequest
{
84 export enum ResetType
{
89 export interface ResetRequest
{
93 export interface SetChargingProfileRequest
{
95 csChargingProfiles
: ChargingProfile
;