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

import type { ITemplateMetaData } from "../../../entity/template/meta-data/meta-data.js";

const routeLocationContentBlockerMetaGet: IRouteLocationInterface = {
    path: "/template/content-blocker/meta",
    method: ERouteHttpVerb.GET,
};

interface IRouteRequestContentBlockerMetaGet extends IRouteRequestInterface {}

interface IRouteParamsContentBlockerMetaGet extends IRouteParamsInterface {
    allVersions?: boolean;
    filterIdentifiers?: string;
    includeDeleted?: boolean;
}

type IRouteResponseContentBlockerMetaGet = ITemplateMetaData[];

export {
    type IRouteParamsContentBlockerMetaGet,
    type IRouteRequestContentBlockerMetaGet,
    type IRouteResponseContentBlockerMetaGet,
    routeLocationContentBlockerMetaGet,
};
