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

const locationRestJobsRetryPost: RouteLocationInterface = {
    path: "/jobs/retry",
    method: RouteHttpVerb.POST,
};

interface RequestRouteJobsRetryPost extends RouteRequestInterface {
    type: string;
}

interface ParamsRouteJobsRetryPost extends RouteParamsInterface {}

interface ResponseRouteJobsRetryPost extends RouteResponseInterface {
    updated: false | number;
}

export {
    locationRestJobsRetryPost,
    type RequestRouteJobsRetryPost,
    type ParamsRouteJobsRetryPost,
    type ResponseRouteJobsRetryPost,
};
