1 import { ChargePointErrorCode
} from
'./ChargePointErrorCode';
2 import { ChargePointStatus
} from
'./ChargePointStatus';
3 import { ChargingProfile
} from
'./ChargingProfile';
4 import { StandardParametersKey
} from
'./Configuration';
6 export enum RequestCommand
{
7 BOOT_NOTIFICATION
= 'BootNotification',
8 HEARTBEAT
= 'Heartbeat',
9 STATUS_NOTIFICATION
= 'StatusNotification',
10 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
11 START_TRANSACTION
= 'StartTransaction',
12 STOP_TRANSACTION
= 'StopTransaction',
13 METERVALUES
= 'MeterValues'
16 export enum IncomingRequestCommand
{
18 CLEAR_CACHE
= 'ClearCache',
19 UNLOCK_CONNECTOR
= 'UnlockConnector',
20 GET_CONFIGURATION
= 'GetConfiguration',
21 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
22 SET_CHARGING_PROFILE
= 'SetChargingProfile',
23 REMOTE_START_TRANSACTION
= 'RemoteStartTransaction',
24 REMOTE_STOP_TRANSACTION
= 'RemoteStopTransaction'
27 // eslint-disable-next-line @typescript-eslint/no-empty-interface
28 export interface HeartbeatRequest
{ }
30 export interface BootNotificationRequest
{
31 chargeBoxSerialNumber
?: string;
32 chargePointModel
: string;
33 chargePointSerialNumber
?: string;
34 chargePointVendor
: string;
35 firmwareVersion
?: string;
38 meterSerialNumber
?: string;
42 export interface StatusNotificationRequest
{
44 errorCode
: ChargePointErrorCode
;
46 status: ChargePointStatus
;
49 vendorErrorCode
?: string;
52 export interface ChangeConfigurationRequest
{
53 key
: string | StandardParametersKey
;
57 export interface RemoteStartTransactionRequest
{
60 chargingProfile
?: ChargingProfile
;
63 export interface RemoteStopTransactionRequest
{
64 transactionId
: number;
67 export interface UnlockConnectorRequest
{
71 export interface GetConfigurationRequest
{
72 key
?: string | StandardParametersKey
[];
75 export enum ResetType
{
80 export interface ResetRequest
{
84 export interface SetChargingProfileRequest
{
86 csChargingProfiles
: ChargingProfile
;