Content Types
interface ContentType { id: number; campaignId: number; type: string; title: string; zone: string; }
Custom Content
interface CustomContent extends ContentType { type: 'custom'; content: string; }
Featured Items Content
interface FeaturedItemsContent extends ContentType { type: 'featured-items'; items: Array<SearchResultsItem>; }
For more information, see Search Models.
Image Content
interface ImageContent extends ContentType { type: 'image'; image: { url: string; height?: number; width?: number; altText?: string; title?: string; }; link?: { url: string; target?: string; }; }
Popular Queries Content
interface PopularQueriesContentItem { query: string; count: number; weight: number; } interface PopularQueriesContent extends ContentType { type: 'popular-queries'; items: Array<PopularQueriesContentItem>; }
Content Zones
interface ContentZoneItem { mobile: ContentType; tablet: ContentType; desktop: ContentType; }
interface ContentZone { name: string; items: Array<ContentZoneItem>; }
interface ContentZones { [zone: string]: ContentZone; }