export type OutgoingRequest = [MessageType.CALL_MESSAGE, string, RequestCommand, JsonType];
-export type RequestParams = {
+export interface RequestParams {
skipBufferingOnError?: boolean;
triggerMessage?: boolean;
throwError?: boolean;
-};
+}
export const IncomingRequestCommand = {
...OCPP16IncomingRequestCommand,
export type IncomingRequest = [MessageType.CALL_MESSAGE, string, IncomingRequestCommand, JsonType];
+export type IncomingRequestHandler = (
+ chargingStation: ChargingStation,
+ commandPayload: JsonType,
+) => JsonType | Promise<JsonType>;
+
export type ResponseCallback = (payload: JsonType, requestPayload: JsonType) => void;
export type ErrorCallback = (error: OCPPError, requestStatistic?: boolean) => void;
export type FirmwareStatusNotificationRequest = OCPP16FirmwareStatusNotificationRequest;
-export type IncomingRequestHandler = (
- chargingStation: ChargingStation,
- commandPayload: JsonType,
-) => JsonType | Promise<JsonType>;
-
export const AvailabilityType = {
...OCPP16AvailabilityType,
...OperationalStatusEnumType,