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',
42 RESERVE_NOW
= 'ReserveNow',
43 CANCEL_RESERVATION
= 'CancelReservation',
46 export type OCPP16HeartbeatRequest
= EmptyObject
;
48 export interface OCPP16BootNotificationRequest
extends JsonObject
{
49 chargePointVendor
: string;
50 chargePointModel
: string;
51 chargePointSerialNumber
?: string;
52 chargeBoxSerialNumber
?: string;
53 firmwareVersion
?: string;
57 meterSerialNumber
?: string;
60 export interface OCPP16StatusNotificationRequest
extends JsonObject
{
62 errorCode
: OCPP16ChargePointErrorCode
;
63 status: OCPP16ChargePointStatus
;
67 vendorErrorCode
?: string;
70 export type OCPP16ClearCacheRequest
= EmptyObject
;
72 type OCPP16ConfigurationKey
= string | OCPP16StandardParametersKey
| OCPP16VendorParametersKey
;
74 export interface ChangeConfigurationRequest
extends JsonObject
{
75 key
: OCPP16ConfigurationKey
;
79 export interface RemoteStartTransactionRequest
extends JsonObject
{
82 chargingProfile
?: OCPP16ChargingProfile
;
85 export interface RemoteStopTransactionRequest
extends JsonObject
{
86 transactionId
: number;
89 export interface UnlockConnectorRequest
extends JsonObject
{
93 export interface GetConfigurationRequest
extends JsonObject
{
94 key
?: OCPP16ConfigurationKey
[];
102 export interface ResetRequest
extends JsonObject
{
106 export interface OCPP16GetCompositeScheduleRequest
extends JsonObject
{
109 chargingRateUnit
?: OCPP16ChargingRateUnitType
;
112 export interface SetChargingProfileRequest
extends JsonObject
{
114 csChargingProfiles
: OCPP16ChargingProfile
;
117 export enum OCPP16AvailabilityType
{
118 Inoperative
= 'Inoperative',
119 Operative
= 'Operative',
122 export interface OCPP16ChangeAvailabilityRequest
extends JsonObject
{
124 type: OCPP16AvailabilityType
;
127 export interface OCPP16ClearChargingProfileRequest
extends JsonObject
{
129 connectorId
?: number;
130 chargingProfilePurpose
?: OCPP16ChargingProfilePurposeType
;
134 export interface OCPP16UpdateFirmwareRequest
extends JsonObject
{
138 retryInterval
?: number;
141 export enum OCPP16FirmwareStatus
{
142 Downloaded
= 'Downloaded',
143 DownloadFailed
= 'DownloadFailed',
144 Downloading
= 'Downloading',
146 InstallationFailed
= 'InstallationFailed',
147 Installing
= 'Installing',
148 Installed
= 'Installed',
151 export type OCPP16FirmwareStatusNotificationRequest
= {
152 status: OCPP16FirmwareStatus
;
155 export interface GetDiagnosticsRequest
extends JsonObject
{
158 retryInterval
?: number;
163 export interface OCPP16DiagnosticsStatusNotificationRequest
extends JsonObject
{
164 status: OCPP16DiagnosticsStatus
;
167 export enum OCPP16MessageTrigger
{
168 BootNotification
= 'BootNotification',
169 DiagnosticsStatusNotification
= 'DiagnosticsStatusNotification',
170 FirmwareStatusNotification
= 'FirmwareStatusNotification',
171 Heartbeat
= 'Heartbeat',
172 MeterValues
= 'MeterValues',
173 StatusNotification
= 'StatusNotification',
176 export interface OCPP16TriggerMessageRequest
extends JsonObject
{
177 requestedMessage
: OCPP16MessageTrigger
;
178 connectorId
?: number;
181 export enum OCPP16DataTransferVendorId
{}
183 export interface OCPP16DataTransferRequest
extends JsonObject
{
189 export interface OCPP16ReserveNowRequest
extends JsonObject
{
193 parentIdTag
?: string;
194 reservationId
: number;
197 export interface OCPP16CancelReservationRequest
extends JsonObject
{
198 reservationId
: number;