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

13 lines (12 loc) 813 B
import * as contentful from 'contentful'; import { CommonFields, Content, ContentType, Context, PagingOptions, TopContent, TopContentType } from '../../cms'; import { ResourceDelivery } from '../content-delivery'; /** * Retrieve multiple contents in a single call */ export declare class ContentsDelivery extends ResourceDelivery { contents<T extends Content>(contentType: ContentType, context: Context, factory: (entry: contentful.Entry<any>, ctxt: Context) => Promise<T>, paging: PagingOptions): Promise<T[]>; topContents<T extends TopContent>(model: TopContentType, context: Context, factory: (entry: contentful.Entry<any>, ctxt: Context) => Promise<T>, filter: ((cf: CommonFields) => boolean) | undefined, paging: PagingOptions): Promise<T[]>; private maxReferencesInclude; private query; }