import { ContentReturnType, PopulatedUser, WithComments, WithContent, WithLikeable, WithTimestamps, WithViewable } from './_shared-types'; import { LabThumbnail } from './lab-thumbnail.type'; /** * Represents a news article or announcement published by the lab. */ export type LabNewsroomNews = WithTimestamps & WithContent & WithViewable & WithLikeable & WithComments & { /** Unique news article ID. */ id: string; /** Hub identifier used in URLs. */ _hid: string; /** Canonical URL to the news article. */ _url: string; _year: number; _month: number; _date: number; /** List of author IDs who contributed. */ authorIds: string[]; /** Timestamp indicating when the article was published. */ timestamp: number; /** Title of the news article. */ title: string; /** Related topic tags. */ topics: string[]; /** Thumbnail image for the news article. */ thumbnail: LabThumbnail; featured: boolean; draft: boolean; /** * Virtuals */ authors?: PopulatedUser[]; };