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 AUTHORIZE
= 'Authorize',
12 START_TRANSACTION
= 'StartTransaction',
13 STOP_TRANSACTION
= 'StopTransaction',
14 METERVALUES
= 'MeterValues'
17 export enum IncomingRequestCommand
{
19 CLEAR_CACHE
= 'ClearCache',
20 CHANGE_AVAILABILITY
= 'ChangeAvailability',
21 UNLOCK_CONNECTOR
= 'UnlockConnector',
22 GET_CONFIGURATION
= 'GetConfiguration',
23 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
24 SET_CHARGING_PROFILE
= 'SetChargingProfile',
25 REMOTE_START_TRANSACTION
= 'RemoteStartTransaction',
26 REMOTE_STOP_TRANSACTION
= 'RemoteStopTransaction'
29 // eslint-disable-next-line @typescript-eslint/no-empty-interface
30 export interface HeartbeatRequest
{ }
32 export interface BootNotificationRequest
{
33 chargeBoxSerialNumber
?: string;
34 chargePointModel
: string;
35 chargePointSerialNumber
?: string;
36 chargePointVendor
: string;
37 firmwareVersion
?: string;
40 meterSerialNumber
?: string;
44 export interface StatusNotificationRequest
{
46 errorCode
: ChargePointErrorCode
;
48 status: ChargePointStatus
;
51 vendorErrorCode
?: string;
54 export interface ChangeConfigurationRequest
{
55 key
: string | StandardParametersKey
;
59 export interface RemoteStartTransactionRequest
{
62 chargingProfile
?: ChargingProfile
;
65 export interface RemoteStopTransactionRequest
{
66 transactionId
: number;
69 export interface UnlockConnectorRequest
{
73 export interface GetConfigurationRequest
{
74 key
?: string | StandardParametersKey
[];
77 export enum ResetType
{
82 export interface ResetRequest
{
86 export interface SetChargingProfileRequest
{
88 csChargingProfiles
: ChargingProfile
;
91 export enum AvailabilityType
{
92 INOPERATIVE
= 'Inoperative',
93 OPERATIVE
= 'Operative'
96 export interface ChangeAvailabilityRequest
{
98 type: AvailabilityType
;