import type {
    IRouteLocationInterface,
    IRouteParamsInterface,
    IRouteRequestInterface,
    IRouteResponseInterface,
} from "@devowl-wp/api";
import { ERouteHttpVerb } from "@devowl-wp/api";

import type { UserLight } from "../../../../entity/user/user.js";

const routeLocationContentBlockerFunctionLastEditorsGet: IRouteLocationInterface = {
    path: "/template/content-blocker/functions/last-editors",
    method: ERouteHttpVerb.GET,
};

interface IRouteRequestContentBlockerFunctionLastEditorsGet extends IRouteRequestInterface {
    id: string;
}

interface IRouteParamsContentBlockerFunctionLastEditorsGet extends IRouteParamsInterface {}

interface IRouteResponseContentBlockerFunctionLastEditorsGet extends IRouteResponseInterface {
    lastEditors: UserLight[];
}

export {
    type IRouteParamsContentBlockerFunctionLastEditorsGet,
    type IRouteRequestContentBlockerFunctionLastEditorsGet,
    type IRouteResponseContentBlockerFunctionLastEditorsGet,
    routeLocationContentBlockerFunctionLastEditorsGet,
};
