1 import type { EmptyObject
} from
'../../EmptyObject';
2 import type { JsonObject
} from
'../../JsonType';
3 import type { OCPP16ChargePointErrorCode
} from
'./ChargePointErrorCode';
4 import type { OCPP16ChargePointStatus
} from
'./ChargePointStatus';
5 import type { ChargingProfilePurposeType
, OCPP16ChargingProfile
} from
'./ChargingProfile';
6 import type { OCPP16StandardParametersKey
} from
'./Configuration';
7 import type { OCPP16DiagnosticsStatus
} from
'./DiagnosticsStatus';
9 export enum OCPP16RequestCommand
{
10 BOOT_NOTIFICATION
= 'BootNotification',
11 HEARTBEAT
= 'Heartbeat',
12 STATUS_NOTIFICATION
= 'StatusNotification',
13 AUTHORIZE
= 'Authorize',
14 START_TRANSACTION
= 'StartTransaction',
15 STOP_TRANSACTION
= 'StopTransaction',
16 METER_VALUES
= 'MeterValues',
17 DIAGNOSTICS_STATUS_NOTIFICATION
= 'DiagnosticsStatusNotification',
20 export type OCPP16HeartbeatRequest
= EmptyObject
;
22 export interface OCPP16BootNotificationRequest
extends JsonObject
{
23 chargePointVendor
: string;
24 chargePointModel
: string;
25 chargePointSerialNumber
?: string;
26 chargeBoxSerialNumber
?: string;
27 firmwareVersion
?: string;
31 meterSerialNumber
?: string;
34 export interface OCPP16StatusNotificationRequest
extends JsonObject
{
36 errorCode
: OCPP16ChargePointErrorCode
;
38 status: OCPP16ChargePointStatus
;
41 vendorErrorCode
?: string;
44 export enum OCPP16IncomingRequestCommand
{
46 CLEAR_CACHE
= 'ClearCache',
47 CHANGE_AVAILABILITY
= 'ChangeAvailability',
48 UNLOCK_CONNECTOR
= 'UnlockConnector',
49 GET_CONFIGURATION
= 'GetConfiguration',
50 CHANGE_CONFIGURATION
= 'ChangeConfiguration',
51 SET_CHARGING_PROFILE
= 'SetChargingProfile',
52 CLEAR_CHARGING_PROFILE
= 'ClearChargingProfile',
53 REMOTE_START_TRANSACTION
= 'RemoteStartTransaction',
54 REMOTE_STOP_TRANSACTION
= 'RemoteStopTransaction',
55 GET_DIAGNOSTICS
= 'GetDiagnostics',
56 TRIGGER_MESSAGE
= 'TriggerMessage',
59 export type OCPP16ClearCacheRequest
= EmptyObject
;
61 export interface ChangeConfigurationRequest
extends JsonObject
{
62 key
: string | OCPP16StandardParametersKey
;
66 export interface RemoteStartTransactionRequest
extends JsonObject
{
69 chargingProfile
?: OCPP16ChargingProfile
;
72 export interface RemoteStopTransactionRequest
extends JsonObject
{
73 transactionId
: number;
76 export interface UnlockConnectorRequest
extends JsonObject
{
80 export interface GetConfigurationRequest
extends JsonObject
{
81 key
?: string | OCPP16StandardParametersKey
[];
84 export enum ResetType
{
89 export interface ResetRequest
extends JsonObject
{
93 export interface SetChargingProfileRequest
extends JsonObject
{
95 csChargingProfiles
: OCPP16ChargingProfile
;
98 export enum OCPP16AvailabilityType
{
99 INOPERATIVE
= 'Inoperative',
100 OPERATIVE
= 'Operative',
103 export interface ChangeAvailabilityRequest
extends JsonObject
{
105 type: OCPP16AvailabilityType
;
108 export interface ClearChargingProfileRequest
extends JsonObject
{
110 connectorId
?: number;
111 chargingProfilePurpose
?: ChargingProfilePurposeType
;
115 export interface GetDiagnosticsRequest
extends JsonObject
{
118 retryInterval
?: number;
123 export interface DiagnosticsStatusNotificationRequest
extends JsonObject
{
124 status: OCPP16DiagnosticsStatus
;
127 export enum MessageTrigger
{
128 BootNotification
= 'BootNotification',
129 DiagnosticsStatusNotification
= 'DiagnosticsStatusNotification',
130 FirmwareStatusNotification
= 'FirmwareStatusNotification',
131 Heartbeat
= 'Heartbeat',
132 MeterValues
= 'MeterValues',
133 StatusNotification
= 'StatusNotification',
136 export interface OCPP16TriggerMessageRequest
extends JsonObject
{
137 requestedMessage
: MessageTrigger
;
138 connectorId
?: number;