@botonic/plugin-contentful
Version:
## What Does This Plugin Do?
19 lines (18 loc) • 813 B
TypeScript
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 StartUpDelivery extends DeliveryWithReference {
protected delivery: DeliveryApi;
private readonly button;
constructor(delivery: DeliveryApi, button: ButtonDelivery, resumeErrors: boolean);
startUp(id: string, context: cms.Context): Promise<cms.StartUp>;
fromEntry(entry: contentful.Entry<StartUpFields>, context: cms.Context): Promise<cms.StartUp>;
}
export interface StartUpFields extends CommonEntryFields {
pic?: contentful.Asset;
text?: string;
buttons?: contentful.Entry<any>[];
}