UNPKG

@botonic/plugin-contentful

Version:

Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet

35 lines (34 loc) 2.27 kB
import { ContentfulOptions } from '../plugin'; import { SearchCandidate } from '../search'; import { CMS, ContentType, PagingOptions, TopContentType } from './cms'; import { Asset, Button, Carousel, Chitchat, CommonFields, Content, Custom, DateRangeContent, Document, Element, Handoff, Image, Input, Payload, Queue, ScheduleContent, StartUp, Text, TopContent, Url, Video } from './contents'; import { Context } from './context'; export declare class LogCMS implements CMS { readonly cms: CMS; private readonly logger; constructor(cms: CMS, options: ContentfulOptions, logger?: (doing: string) => void); carousel(id: string, context?: Context): Promise<Carousel>; document(id: string, context?: Context): Promise<Document>; text(id: string, context?: Context): Promise<Text>; chitchat(id: string, context?: Context): Promise<Chitchat>; startUp(id: string, context?: Context): Promise<StartUp>; url(id: string, context?: Context): Promise<Url>; payload(id: string, context?: Context): Promise<Payload>; image(id: string, context?: Context): Promise<Image>; video(id: string, context?: Context): Promise<Video>; queue(id: string, context?: Context): Promise<Queue>; button(id: string, context?: Context): Promise<Button>; element(id: string, context?: Context): Promise<Element>; handoff(id: string, context?: Context): Promise<Handoff>; input(id: string, context?: Context): Promise<Input>; custom(id: string, context?: Context): Promise<Custom>; content(id: string, context?: Context, referencesToInclude?: number): Promise<Content>; contentsWithKeywords(context?: Context, paging?: PagingOptions): Promise<SearchCandidate[]>; topContents<T extends TopContent>(model: TopContentType, context?: Context, filter?: (cf: CommonFields) => boolean, paging?: PagingOptions): Promise<T[]>; contents<T extends Content>(contentType: ContentType, context?: Context, paging?: PagingOptions): Promise<T[]>; assets(context?: Context): Promise<Asset[]>; schedule(id: string, context?: Context): Promise<ScheduleContent>; dateRange(id: string, context?: Context): Promise<DateRangeContent>; asset(id: string, context?: Context): Promise<Asset>; private logContentDelivery; }