X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FResponses.ts;h=43250047ade5952a2d818aa7c8a0c97e5aa271b3;hb=aa428a31b4c462d38925ce60a215507c4b406b38;hp=baefc637ba389df281b8136323137b6312891451;hpb=b3ec7bc1553759e915e590df6a91f0849f03514d;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/Responses.ts b/src/types/ocpp/Responses.ts index baefc637..43250047 100644 --- a/src/types/ocpp/Responses.ts +++ b/src/types/ocpp/Responses.ts @@ -1,3 +1,6 @@ +import type ChargingStation from '../../charging-station/ChargingStation'; +import type { JsonType } from '../JsonType'; +import type { OCPP16MeterValuesResponse } from './1.6/MeterValues'; import { OCPP16AvailabilityStatus, OCPP16BootNotificationResponse, @@ -10,17 +13,15 @@ import { OCPP16TriggerMessageStatus, OCPP16UnlockStatus, } from './1.6/Responses'; - -import { ErrorType } from './ErrorType'; -import { JsonType } from '../JsonType'; -import { MessageType } from './MessageType'; -import { OCPP16MeterValuesResponse } from './1.6/MeterValues'; +import type { ErrorType } from './ErrorType'; +import type { MessageType } from './MessageType'; export type Response = [MessageType.CALL_RESULT_MESSAGE, string, JsonType]; export type ErrorResponse = [MessageType.CALL_ERROR_MESSAGE, string, ErrorType, string, JsonType]; export type ResponseHandler = ( + chargingStation: ChargingStation, payload: JsonType, requestPayload?: JsonType ) => void | Promise;