This is a preview of unreleased docs from main. View the published docs
Skip to main content

Interface: RecommendationItem

Defined in: types.ts:1234

One recommended article.

Field names are camelCase here and snake_case on the wire; the recommendations module is the only place that converts.

Properties​

PropertyTypeDescriptionDefined in
imageUrlstring | null-types.ts:1240
pagePathstringRoot-relative path of the article, e.g. "/news/food/story-slug".types.ts:1236
publishedAtstring | nullISO 8601 publish timestamp, or null for undated articles.types.ts:1242
scorenumberRanking score. Comparable within a strategy but not across them, so never sort a mixed list by it.types.ts:1247
sectionstringContent section, or "" when the catalog has none for this article.types.ts:1239
strategystringWhich rung of the serving ladder produced this item, e.g. "taste".types.ts:1249
titlestring-types.ts:1237