X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FResponses.ts;h=d36a54780aff2861947fc0b470228382fbea04ec;hb=41a61e5b7df239abb8b5b597e64cc977e0c17d28;hp=8735dc8ae10f2cf72362fe0ee9388a773794a9c2;hpb=66dd344779f5258bbf4c76b386d005c0c2160b11;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/Responses.ts b/src/types/ocpp/Responses.ts index 8735dc8a..d36a5478 100644 --- a/src/types/ocpp/Responses.ts +++ b/src/types/ocpp/Responses.ts @@ -2,7 +2,6 @@ import type { OCPP16MeterValuesResponse } from './1.6/MeterValues'; import { OCPP16AvailabilityStatus, type OCPP16BootNotificationResponse, - type OCPP16CancelReservationResponse, OCPP16ChargingProfileStatus, OCPP16ClearChargingProfileStatus, OCPP16ConfigurationStatus, @@ -33,7 +32,7 @@ export type ErrorResponse = [MessageType.CALL_ERROR_MESSAGE, string, ErrorType, export type ResponseHandler = ( chargingStation: ChargingStation, payload: JsonType, - requestPayload?: JsonType + requestPayload?: JsonType, ) => void | Promise; export type BootNotificationResponse = @@ -111,8 +110,9 @@ export const ReservationStatus = { ...OCPP16ReservationStatus, }; +export type CancelReservationStatus = GenericStatus; export const CancelReservationStatus = { ...GenericStatus, }; -export type CancelReservationResponse = OCPP16CancelReservationResponse; +export type CancelReservationResponse = GenericResponse;