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

25 lines (24 loc) 1.08 kB
import * as contentful from 'contentful'; import * as cms from '../../cms'; import { DeliveryApi } from '../delivery-api'; import { CommonEntryFields } from '../delivery-utils'; import { ButtonDelivery } from './button'; import { DeliveryWithReference } from './reference'; export declare class CarouselDelivery extends DeliveryWithReference { readonly button: ButtonDelivery; constructor(delivery: DeliveryApi, button: ButtonDelivery, resumeErrors: boolean); carousel(id: string, context: cms.Context): Promise<cms.Carousel>; fromEntry(entry: contentful.Entry<CarouselFields>, context: cms.Context): Promise<cms.Carousel>; element(id: string, context: cms.Context): Promise<cms.Element>; elementFromEntry(entry: contentful.Entry<ElementFields>, context: cms.Context): Promise<cms.Element>; } interface ElementFields { title?: string; subtitle?: string; pic?: contentful.Asset; buttons?: contentful.Entry<any>[]; } export interface CarouselFields extends CommonEntryFields { elements: contentful.Entry<ElementFields>[]; } export {};