import { Markup, PublicationName, UUID, URL, ExpirableFlag, DataSource, ArticleSummarisation } from "../common"; import { Media, Image } from "./media"; import { Topic } from "./topic"; import { Author } from "./author"; import { Colour } from "./colour"; import { TextByline, AuthorByline } from "./bylines"; import { ArticleContentType, ArticleStatus, EmbeddedContent, SectionName, ThemeTemplate, WorkDeskName } from "./article"; import { DraftArticleSlice } from "./draft-slice"; import { Tag } from "./tag"; import { DraftArticleTopicConnection } from "./draft-article-topic-connection"; import { ArticleSynonymConnection } from "./article-synonym-connection"; import { DraftArticleCategoryConnection } from "./draft-article-category-connection"; export type DraftArticle = { associatedDesks: string[] | null; authors: Author[]; byline: Markup | null; bylines: Array | null; backgroundColour: Colour | null; catchline: string | null; categoryConnection: DraftArticleCategoryConnection; commentsEnabled: boolean | null; commentsPreModerated: boolean; commercialTags: string[] | null; commercialSectionTags: string[] | null; content: Markup | null; dataSource: DataSource; dropcapsDisabled: boolean; embeddedContent: DraftEmbeddedContent | null; escenicId: number | null; hasVideo: boolean; headline: string | null; id: UUID; inlineImages: [Image]; keywords: string[]; label: string | null; leadAsset: Media | null; listingAsset: Media | null; paywalledContent: Markup | null; parentId: string | null; publicationName: PublicationName; publishedTime: Date | null; savingEnabled: boolean; section: SectionName | null; seoDescription: string | null; commercialSection: string | null; sharingEnabled: boolean; shortIdentifier: string | null; slug: string | null; standfirst: string | null; strapline: string | null; updatedTime: Date | null; upNext: DraftArticleSlice | null; relatedArticleSlice: DraftArticleSlice | null; tags: Tag[] | null; expirableFlags: ExpirableFlag[] | null; scheduledTime: Date | null; shortHeadline: string | null; summary: Markup | null; synonyms: ArticleSynonymConnection; textColour: Colour | null; topics: Topic[]; topicConnection: DraftArticleTopicConnection; tagsUpdatedTime: Date | null; url: URL | null; categoryPath: string | null; template: ThemeTemplate | null; workDesk: WorkDeskName | null; carousel: Media[] | null; contentType: ArticleContentType | null; status: ArticleStatus | null; articleSummarisation?: ArticleSummarisation | null; shouldShowBylinesImages?: boolean | null; }; export type DraftArticleTopicArgs = { maxCount?: number; }; export type DraftEmbeddedContent = { authorised: EmbeddedContent; unauthorised: EmbeddedContent; };