Commit | Line | Data |
---|---|---|
c0560973 JB |
1 | import { OCPP16AvailabilityType, OCPP16BootNotificationRequest, OCPP16IncomingRequestCommand, OCPP16RequestCommand } from './1.6/Requests'; |
2 | ||
6a64534b | 3 | import { MessageType } from './MessageType'; |
47e22477 | 4 | import { OCPP16DiagnosticsStatus } from './1.6/DiagnosticsStatus'; |
14763b46 | 5 | import OCPPError from '../../charging-station/ocpp/OCPPError'; |
6a64534b | 6 | |
c0560973 JB |
7 | export type BootNotificationRequest = OCPP16BootNotificationRequest; |
8 | ||
7e3926cc | 9 | export type AvailabilityType = OCPP16AvailabilityType; |
c0560973 JB |
10 | |
11 | export const AvailabilityType = { | |
12 | ...OCPP16AvailabilityType | |
13 | }; | |
14 | ||
7e3926cc | 15 | export type RequestCommand = OCPP16RequestCommand; |
c0560973 JB |
16 | |
17 | export const RequestCommand = { | |
18 | ...OCPP16RequestCommand | |
19 | }; | |
20 | ||
7e3926cc | 21 | export type IncomingRequestCommand = OCPP16IncomingRequestCommand; |
9c13b3b5 JB |
22 | |
23 | export const IncomingRequestCommand = { | |
24 | ...OCPP16IncomingRequestCommand | |
25 | }; | |
c0560973 | 26 | |
47e22477 JB |
27 | export type DiagnosticsStatus = OCPP16DiagnosticsStatus; |
28 | ||
29 | export const DiagnosticsStatus = { | |
30 | ...OCPP16DiagnosticsStatus | |
31 | }; | |
32 | ||
32b02249 | 33 | export type Request = [MessageType, string, RequestCommand, Record<string, unknown>, Record<string, unknown>]; |
6a64534b | 34 | |
690e5af7 | 35 | export type IncomingRequest = [MessageType, string, IncomingRequestCommand, Record<string, unknown>, Record<string, unknown>]; |
32b02249 JB |
36 | |
37 | export type CachedRequest = [(payload: Record<string, unknown> | string, requestPayload: Record<string, unknown>) => void, (error: OCPPError) => void, RequestCommand | IncomingRequestCommand, Record<string, unknown>]; |