import type { RouteLocationInterface, RouteParamsInterface, RouteRequestInterface } from "@devowl-wp/utils";
import { RouteHttpVerb } from "@devowl-wp/utils";

import type { ResponseRouteRevisionCurrentGet } from "./revisionCurrent.get.js";

const locationRestRevisionCurrentPut: RouteLocationInterface = {
    path: "/revision/current",
    method: RouteHttpVerb.PUT,
};

interface RequestRouteRevisionCurrentPut extends RouteRequestInterface {
    needs_retrigger?: boolean;
}

interface ParamsRouteRevisionCurrentPut extends RouteParamsInterface {}

interface ResponseRouteRevisionCurrentPut extends ResponseRouteRevisionCurrentGet {}

export {
    locationRestRevisionCurrentPut,
    type RequestRouteRevisionCurrentPut,
    type ParamsRouteRevisionCurrentPut,
    type ResponseRouteRevisionCurrentPut,
};
