Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
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>;
}
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;
}