1 import { ChargingProfile
, ChargingProfilePurposeType
} from
'./ChargingProfile';
3 import { ChargePointErrorCode
} from
'./ChargePointErrorCode';
4 import { ChargePointStatus
} from
'./ChargePointStatus';
5 import { StandardParametersKey
} from
'./Configuration';
7 export enum RequestCommand
{
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 METERVALUES
= 'MeterValues'
18 export enum IncomingRequestCommand
{
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 BootNotificationRequest
{
35 chargeBoxSerialNumber
?: string;
36 chargePointModel
: string;
37 chargePointSerialNumber
?: string;
38 chargePointVendor
: string;
39 firmwareVersion
?: string;
42 meterSerialNumber
?: string;
46 export interface StatusNotificationRequest
{
48 errorCode
: ChargePointErrorCode
;
50 status: ChargePointStatus
;
53 vendorErrorCode
?: string;
56 export interface ChangeConfigurationRequest
{
57 key
: string | StandardParametersKey
;
61 export interface RemoteStartTransactionRequest
{
64 chargingProfile
?: ChargingProfile
;
67 export interface RemoteStopTransactionRequest
{
68 transactionId
: number;
71 export interface UnlockConnectorRequest
{
75 export interface GetConfigurationRequest
{
76 key
?: string | StandardParametersKey
[];
79 export enum ResetType
{
84 export interface ResetRequest
{
88 export interface SetChargingProfileRequest
{
90 csChargingProfiles
: ChargingProfile
;
93 export enum AvailabilityType
{
94 INOPERATIVE
= 'Inoperative',
95 OPERATIVE
= 'Operative'
98 export interface ChangeAvailabilityRequest
{
100 type: AvailabilityType
;
103 export interface ClearChargingProfileRequest
{
105 connectorId
?: number;
106 chargingProfilePurpose
?: ChargingProfilePurposeType
;