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 CHANGE_AVAILABILITY
= 'ChangeAvailability',
20 UNLOCK_CONNECTOR
= 'UnlockConnector',
21 GET_CONFIGURATION
= 'GetConfiguration',
22 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
23 SET_CHARGING_PROFILE
= 'SetChargingProfile',
24 REMOTE_START_TRANSACTION
= 'RemoteStartTransaction',
25 REMOTE_STOP_TRANSACTION
= 'RemoteStopTransaction'
28 // eslint-disable-next-line @typescript-eslint/no-empty-interface
29 export interface HeartbeatRequest
{ }
31 export interface BootNotificationRequest
{
32 chargeBoxSerialNumber
?: string;
33 chargePointModel
: string;
34 chargePointSerialNumber
?: string;
35 chargePointVendor
: string;
36 firmwareVersion
?: string;
39 meterSerialNumber
?: string;
43 export interface StatusNotificationRequest
{
45 errorCode
: ChargePointErrorCode
;
47 status: ChargePointStatus
;
50 vendorErrorCode
?: string;
53 export interface ChangeConfigurationRequest
{
54 key
: string | StandardParametersKey
;
58 export interface RemoteStartTransactionRequest
{
61 chargingProfile
?: ChargingProfile
;
64 export interface RemoteStopTransactionRequest
{
65 transactionId
: number;
68 export interface UnlockConnectorRequest
{
72 export interface GetConfigurationRequest
{
73 key
?: string | StandardParametersKey
[];
76 export enum ResetType
{
81 export interface ResetRequest
{
85 export interface SetChargingProfileRequest
{
87 csChargingProfiles
: ChargingProfile
;
90 export enum AvailabilityType
{
91 INOPERATIVE
= 'Inoperative',
92 OPERATIVE
= 'Operative'
95 export interface ChangeAvailabilityRequest
{
97 type: AvailabilityType
;