1 import { OCPP16AvailabilityType
, OCPP16BootNotificationRequest
, OCPP16IncomingRequestCommand
, OCPP16RequestCommand
} from
'./1.6/Requests';
3 import { MessageType
} from
'./MessageType';
4 import OCPPError from
'../../charging-station/OcppError';
6 export default interface Requests
{
10 export type BootNotificationRequest
= OCPP16BootNotificationRequest
;
12 export type AvailabilityType
= OCPP16AvailabilityType
;
14 export const AvailabilityType
= {
15 ...OCPP16AvailabilityType
18 export type RequestCommand
= OCPP16RequestCommand
;
20 export const RequestCommand
= {
21 ...OCPP16RequestCommand
24 export type IncomingRequestCommand
= OCPP16IncomingRequestCommand
;
26 export const IncomingRequestCommand
= {
27 ...OCPP16IncomingRequestCommand
30 export type Request
= [(payload
: Record
<string, unknown
>, requestPayload
: Record
<string, unknown
>) => void, (error
: OCPPError
) => void, Record
<string, unknown
>];
32 export type IncomingRequest
= [MessageType
, string, IncomingRequestCommand
, Record
<string, unknown
>, Record
<string, unknown
>];