import type { UploadedFile, UploadedImage } from '@prezly/uploads'; import type { OEmbedInfo } from './common'; import type { Contact } from './Contact'; import type { CountryRef } from './Country'; import type { CoverageIntegrationRun } from './CoverageIntegrationRun'; import type { CultureRef } from './Culture'; import type { NewsroomRef } from './Newsroom'; import type { Story } from './Story'; import type { UserRef } from './User'; export interface CoverageEntry { uuid: string; /** * @deprecated Please use `uuid` as identifier. * @see uuid */ id: number; integration_run: CoverageIntegrationRun | null; display_name: string; is_deleted: boolean; headline: string; user: UserRef; story: Story | null; /** * Tells whether the story reference has been manually set, or automatically matched. * `none` means no information (which is only used for null references). */ story_reference_origin: 'manual' | 'auto' | 'none'; /** * Number of displayed story suggestions (if the automatic matching was not sure enough about it). */ suggested_stories_count: number; newsroom: NewsroomRef | null; author_contact: Contact | null; organisation_contact: Contact | null; url: string | null; note_content_html: string; note_content_json: string; note_content_text: string; attachment: UploadedFile | UploadedImage | null; attachment_oembed: OEmbedInfo | null; screenshot: UploadedImage | null; published_at: string | null; created_at: string; updated_at: string; edited_at: string | null; /** * @deprecated Please don't rely on this prop. It will be removed in future. */ avatar_url: string | null; /** * @deprecated Please don't rely on this prop. It will be removed in future. */ view_url: string; type: CoverageEntry.Type; country: CountryRef | null; culture: CultureRef | null; pdf_url: string | null; management_url: string | null; provider: CoverageEntry.Provider | null; fragment_duration: number | null; fragment_start_time: string | null; fragment_end_time: string | null; page: number | null; sentiment: CoverageEntry.Sentiment | null; /** * Available in Get Coverage endpoint. */ article_content_preview?: string | null; } export declare namespace CoverageEntry { enum Type { ONLINE = "online", SOCIAL = "social", PRINT = "print", RADIO = "radio", TELEVISION = "television" } enum Provider { AMMCO = "ammco", AUXIPRESS = "auxipress", BELGA = "belga", FEED = "feed", GOOGLE_ALERTS = "google_alerts", KANTAR = "kantar", KNEWIN = "knewin", MANUAL = "manual", MEDIAWEB = "mediaweb", MELTWATER = "meltwater", NETFEEDR = "netfeedr", OPOINT = "opoint" } enum Sentiment { POSITIVE = "positive", NEGATIVE = "negative", NEUTRAL = "neutral" } }