UNPKG

tilda-client

Version:
39 lines (38 loc) 1.39 kB
import { TildaProject, TildaPage, TildaPageData, TildaProjectData, TildaProjectExport, TildaPageExport } from '.'; export declare class TildaClient { private readonly publicKey; private readonly secretKey; constructor(publicKey: string, secretKey: string); /** * @returns The list of available projects */ getProjectsList(): Promise<TildaProject[]>; /** * @returns The information about the project */ getProject(projectId: string): Promise<TildaProjectData>; /** * @returns The information about the project for export */ getProjectExport(projectId: string): Promise<TildaProjectExport>; /** * @returns The list of available pages in the project */ getPagesList(projectId: string): Promise<TildaPage[]>; /** * @returns The information about the page (+ body html-code) */ getPage(pageId: string): Promise<TildaPageData>; /** * @returns The information about the page (+ fullpage html-code) */ getPageFull(pageId: string): Promise<TildaPageData>; /** * @returns The information about the page for export (+ body html-code) */ getPageExport(pageId: string): Promise<TildaPageExport>; /** * @returns The information about the page for export (+ fullpage html-code) */ getPageFullExport(pageId: string): Promise<TildaPageExport>; }