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 routeLocationServiceFunctionLastEditorsGet: IRouteLocationInterface = {
    path: "/template/service/functions/last-editors",
    method: ERouteHttpVerb.GET,
};

interface IRouteRequestServiceFunctionLastEditorsGet extends IRouteRequestInterface {
    id: string;
}

interface IRouteParamsServiceFunctionLastEditorsGet extends IRouteParamsInterface {}

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

export {
    type IRouteParamsServiceFunctionLastEditorsGet,
    type IRouteRequestServiceFunctionLastEditorsGet,
    type IRouteResponseServiceFunctionLastEditorsGet,
    routeLocationServiceFunctionLastEditorsGet,
};
