OCPP16UnlockStatus,
} from './1.6/Responses';
-import { JsonType } from '../JsonType';
+import { ErrorType } from './ErrorType';
+import { JsonObject } from '../JsonType';
+import { MessageType } from './MessageType';
import { OCPP16MeterValuesResponse } from './1.6/MeterValues';
+export type Response = [MessageType.CALL_RESULT_MESSAGE, string, JsonObject];
+
+export type ErrorResponse = [MessageType.CALL_ERROR_MESSAGE, string, ErrorType, string, JsonObject];
+
export type ResponseHandler = (
- payload: JsonType | string,
- requestPayload?: JsonType
+ payload: JsonObject,
+ requestPayload?: JsonObject
) => void | Promise<void>;
export type BootNotificationResponse = OCPP16BootNotificationResponse;