@webiny/api-page-builder-so-ddb-es
Version:
The DynamoDB + Elasticsearch storage operations Webiny Page Builder API.
15 lines (14 loc) • 720 B
TypeScript
import { SearchBody as esSearchBody } from "elastic-ts";
import { PageStorageOperationsListWhere } from "@webiny/api-page-builder/types";
import { PageElasticsearchFieldPlugin } from "../../plugins/definitions/PageElasticsearchFieldPlugin";
import { PluginsContainer } from "@webiny/plugins";
interface CreateElasticsearchBodyParams {
plugins: PluginsContainer;
where: PageStorageOperationsListWhere;
limit: number;
after: string | null;
sort: string[];
fieldPlugins: Record<string, PageElasticsearchFieldPlugin>;
}
export declare const createElasticsearchQueryBody: (params: Omit<CreateElasticsearchBodyParams, "fieldPlugins">) => esSearchBody & Pick<Required<esSearchBody>, "sort">;
export {};