UNPKG

@agility/content-fetch

Version:
30 lines (29 loc) 1.69 kB
/** * Represents an item in a sitemap response * @typedef {Object} SitemapFlatItem * @memberof AgilityFetch.Types * @property {number} pageID - The unique ID of the page in Agility in this language. * @property {string} title - A human-friendly title for the page, typically used for SEO and displayed in the browser tab/bar. * @property {string} name - The URL friendly name of the page. * @property {string} path - The URL path of the page. * @property {string} menuText - An alternate page title, often used when generating dynamic menus. * @property {string} pageType - Describes what type of page this is - values include *static*, *dynamic*, *dynamic_node*, *folder*, and *link* * @property {AgilityFetch.Types.SystemProperties} properties - The system properties of this page item. * @property {string} [redirectUrl] - If this page is a *link*, then this property will show the intended destination redirect. * @property {number} [dynamicItemContentID] - If this page is a dynamic page, then this property will show the associated contentID of the dynamic content item. * @property {AgilityFetch.Types.SitemapVisibility} visible - Object that contains properties pertaining to the intended visibility of this page for seo and menus. */ import { SystemProperties } from "./SystemProperties"; import { SitemapVisibility } from "./SitemapVisibility"; export interface SitemapFlatItem { pageID: number; title: string; name: string; path: string; menuText: string; pageType: "static" | "dynamic" | "dynamic_node" | "folder" | "link"; properties: SystemProperties; redirectUrl?: string; dynamicItemContentID?: number; visible: SitemapVisibility; }