UNPKG

@webiny/api-page-builder-so-ddb-es

Version:

The DynamoDB + Elasticsearch storage operations Webiny Page Builder API.

35 lines (34 loc) 1.24 kB
import { Page } from "@webiny/api-page-builder/types"; import { PluginsContainer } from "@webiny/plugins"; /** * Map our system fields to the Elasticsearch data. * We need to add new fields if we add them into our system. */ export declare const getESPageData: (page: Page) => { __type: string; tenant: string; webinyVersion: string; id: string; pid: string; editor: string; locale: string; createdOn: string; savedOn: string; createdBy: import("@webiny/api-page-builder/types").CreatedBy; ownedBy: import("@webiny/api-page-builder/types").CreatedBy; category: string; version: number; title: string; titleLC: string; path: string; status: import("@webiny/api-page-builder/types").PageStatus; locked: boolean; publishedOn: string | null; tags: string[]; snippet: string | null; images: { general: import("@webiny/api-page-builder/types").File | undefined; }; }; export declare const getESLatestPageData: (plugins: PluginsContainer, page: Page, input?: Record<string, any>) => Record<string, any>; export declare const getESPublishedPageData: (plugins: PluginsContainer, page: Page, input?: Record<string, any>) => Record<string, any>;