1 import type { OCPP16ChargePointErrorCode
} from
'./ChargePointErrorCode';
2 import type { OCPP16ChargePointStatus
} from
'./ChargePointStatus';
5 OCPP16ChargingProfilePurposeType
,
6 OCPP16ChargingRateUnitType
,
7 } from
'./ChargingProfile';
8 import type { OCPP16StandardParametersKey
, OCPP16VendorParametersKey
} from
'./Configuration';
9 import type { OCPP16DiagnosticsStatus
} from
'./DiagnosticsStatus';
10 import type { EmptyObject
} from
'../../EmptyObject';
11 import type { JsonObject
} from
'../../JsonType';
13 export enum OCPP16RequestCommand
{
14 BOOT_NOTIFICATION
= 'BootNotification',
15 HEARTBEAT
= 'Heartbeat',
16 STATUS_NOTIFICATION
= 'StatusNotification',
17 AUTHORIZE
= 'Authorize',
18 START_TRANSACTION
= 'StartTransaction',
19 STOP_TRANSACTION
= 'StopTransaction',
20 METER_VALUES
= 'MeterValues',
21 DIAGNOSTICS_STATUS_NOTIFICATION
= 'DiagnosticsStatusNotification',
22 FIRMWARE_STATUS_NOTIFICATION
= 'FirmwareStatusNotification',
23 DATA_TRANSFER
= 'DataTransfer',
26 export enum OCPP16IncomingRequestCommand
{
28 CLEAR_CACHE
= 'ClearCache',
29 CHANGE_AVAILABILITY
= 'ChangeAvailability',
30 UNLOCK_CONNECTOR
= 'UnlockConnector',
31 GET_CONFIGURATION
= 'GetConfiguration',
32 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
33 GET_COMPOSITE_SCHEDULE
= 'GetCompositeSchedule',
34 SET_CHARGING_PROFILE
= 'SetChargingProfile',
35 CLEAR_CHARGING_PROFILE
= 'ClearChargingProfile',
36 REMOTE_START_TRANSACTION
= 'RemoteStartTransaction',
37 REMOTE_STOP_TRANSACTION
= 'RemoteStopTransaction',
38 GET_DIAGNOSTICS
= 'GetDiagnostics',
39 TRIGGER_MESSAGE
= 'TriggerMessage',
40 DATA_TRANSFER
= 'DataTransfer',
41 UPDATE_FIRMWARE
= 'UpdateFirmware',
44 export type OCPP16HeartbeatRequest
= EmptyObject
;
46 export interface OCPP16BootNotificationRequest
extends JsonObject
{
47 chargePointVendor
: string;
48 chargePointModel
: string;
49 chargePointSerialNumber
?: string;
50 chargeBoxSerialNumber
?: string;
51 firmwareVersion
?: string;
55 meterSerialNumber
?: string;
58 export interface OCPP16StatusNotificationRequest
extends JsonObject
{
60 errorCode
: OCPP16ChargePointErrorCode
;
61 status: OCPP16ChargePointStatus
;
65 vendorErrorCode
?: string;
68 export type OCPP16ClearCacheRequest
= EmptyObject
;
70 type OCPP16ConfigurationKey
= string | OCPP16StandardParametersKey
| OCPP16VendorParametersKey
;
72 export interface ChangeConfigurationRequest
extends JsonObject
{
73 key
: OCPP16ConfigurationKey
;
77 export interface RemoteStartTransactionRequest
extends JsonObject
{
80 chargingProfile
?: OCPP16ChargingProfile
;
83 export interface RemoteStopTransactionRequest
extends JsonObject
{
84 transactionId
: number;
87 export interface UnlockConnectorRequest
extends JsonObject
{
91 export interface GetConfigurationRequest
extends JsonObject
{
92 key
?: OCPP16ConfigurationKey
[];
100 export interface ResetRequest
extends JsonObject
{
104 export interface OCPP16GetCompositeScheduleRequest
extends JsonObject
{
107 chargingRateUnit
?: OCPP16ChargingRateUnitType
;
110 export interface SetChargingProfileRequest
extends JsonObject
{
112 csChargingProfiles
: OCPP16ChargingProfile
;
115 export enum OCPP16AvailabilityType
{
116 Inoperative
= 'Inoperative',
117 Operative
= 'Operative',
120 export interface ChangeAvailabilityRequest
extends JsonObject
{
122 type: OCPP16AvailabilityType
;
125 export interface ClearChargingProfileRequest
extends JsonObject
{
127 connectorId
?: number;
128 chargingProfilePurpose
?: OCPP16ChargingProfilePurposeType
;
132 export interface OCPP16UpdateFirmwareRequest
extends JsonObject
{
136 retryInterval
?: number;
139 export enum OCPP16FirmwareStatus
{
140 Downloaded
= 'Downloaded',
141 DownloadFailed
= 'DownloadFailed',
142 Downloading
= 'Downloading',
144 InstallationFailed
= 'InstallationFailed',
145 Installing
= 'Installing',
146 Installed
= 'Installed',
149 export type OCPP16FirmwareStatusNotificationRequest
= {
150 status: OCPP16FirmwareStatus
;
153 export interface GetDiagnosticsRequest
extends JsonObject
{
156 retryInterval
?: number;
161 export interface OCPP16DiagnosticsStatusNotificationRequest
extends JsonObject
{
162 status: OCPP16DiagnosticsStatus
;
165 export enum OCPP16MessageTrigger
{
166 BootNotification
= 'BootNotification',
167 DiagnosticsStatusNotification
= 'DiagnosticsStatusNotification',
168 FirmwareStatusNotification
= 'FirmwareStatusNotification',
169 Heartbeat
= 'Heartbeat',
170 MeterValues
= 'MeterValues',
171 StatusNotification
= 'StatusNotification',
174 export interface OCPP16TriggerMessageRequest
extends JsonObject
{
175 requestedMessage
: OCPP16MessageTrigger
;
176 connectorId
?: number;
179 export enum OCPP16DataTransferVendorId
{}
181 export interface OCPP16DataTransferRequest
extends JsonObject
{
187 export interface OCPP16ReserveNowRequest
{
191 parentIdTag
?: string;
192 reservationId
: number;
195 export interface OCPP16CancelReservationRequest
{
196 reservationId
: number;