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

import type { IServiceTemplate } from "../../../entity/template/service/service.js";

const routeLocationServicePut: IRouteLocationInterface = {
    path: "/template/service",
    method: ERouteHttpVerb.PUT,
};

interface IRouteRequestServicePut extends IRouteRequestInterface {
    serviceTemplate: IServiceTemplate;
}

interface IRouteParamsServicePut extends IRouteParamsInterface {}

type IRouteResponseServicePut = IServiceTemplate;

export {
    routeLocationServicePut,
    type IRouteRequestServicePut,
    type IRouteParamsServicePut,
    type IRouteResponseServicePut,
};
