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

import type { ResponseRouteSettings } from "./settings.get.js";

const locationRestSettingsPatch: RouteLocationInterface = {
    path: "/settings",
    method: RouteHttpVerb.PATCH,
};

type RequestRouteSettingsPatch = Partial<ResponseRouteSettings>;

interface ParamsRouteSettingsPatch extends RouteParamsInterface {}

interface ResponseRouteSettingsPatch extends ResponseRouteSettings {}

export {
    locationRestSettingsPatch,
    type RequestRouteSettingsPatch,
    type ParamsRouteSettingsPatch,
    type ResponseRouteSettingsPatch,
};
