@thetimes/times-public-api-types 1.0.12311 → 1.0.12388
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common.d.ts +8 -0
- package/index.d.ts +1 -0
- package/mutations/article-input.d.ts +13 -0
- package/mutations/article-summarisation-update-result.d.ts +4 -0
- package/mutations/draft-article-input.d.ts +2 -1
- package/package.json +1 -1
- package/queries/article.d.ts +2 -1
- package/queries/draft-article.d.ts +2 -1
package/common.d.ts
CHANGED
|
@@ -95,6 +95,14 @@ export type AudioNarration = {
|
|
|
95
95
|
defaultVariantId: string;
|
|
96
96
|
variants: Variant[];
|
|
97
97
|
};
|
|
98
|
+
export type ArticleSummarisationSummaryType = {
|
|
99
|
+
title: string;
|
|
100
|
+
description: string;
|
|
101
|
+
content: Markup;
|
|
102
|
+
};
|
|
103
|
+
export type ArticleSummarisation = {
|
|
104
|
+
summaryTypes: ArticleSummarisationSummaryType[];
|
|
105
|
+
};
|
|
98
106
|
export type PageInfo = {
|
|
99
107
|
startCursor: Cursor | null;
|
|
100
108
|
endCursor: Cursor | null;
|
package/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export * from "./mutations/article-audio-narration-update-result";
|
|
|
57
57
|
export * from "./mutations/article-category-update-result";
|
|
58
58
|
export * from "./mutations/article-input";
|
|
59
59
|
export * from "./mutations/article-slice-input";
|
|
60
|
+
export * from "./mutations/article-summarisation-update-result";
|
|
60
61
|
export * from "./mutations/article-tag-input";
|
|
61
62
|
export * from "./mutations/article-tag-remove-result";
|
|
62
63
|
export * from "./mutations/article-tag-upsert-result";
|
|
@@ -66,6 +66,19 @@ export type ArticleInput = {
|
|
|
66
66
|
liveBlog?: LiveBlogInput | null;
|
|
67
67
|
storylineMenuId?: UUID | null;
|
|
68
68
|
audioNarration?: AudioNarration | null;
|
|
69
|
+
articleSummarisation?: ArticleSummarisationInput | null;
|
|
70
|
+
};
|
|
71
|
+
export type ArticleSummarisationInput = {
|
|
72
|
+
summaryTypes: ArticleSummarisationSummaryTypeInput[];
|
|
73
|
+
};
|
|
74
|
+
export type ArticleSummarisationSummaryTypeInput = {
|
|
75
|
+
title: string;
|
|
76
|
+
description: string;
|
|
77
|
+
content: ArticleSummarisationRichTextFragmentInput[];
|
|
78
|
+
};
|
|
79
|
+
export type ArticleSummarisationRichTextFragmentInput = {
|
|
80
|
+
blockId?: string | null;
|
|
81
|
+
richText: RichText;
|
|
69
82
|
};
|
|
70
83
|
export type MediaInput = {
|
|
71
84
|
image?: ImageInput | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Slug, Markup, UUID, PublicationName, DateTime, DataSource, CommentSortOrder } from "../common";
|
|
2
|
-
import { BylineInput, EmbeddedContentInput, ExpirableFlagInput, MediaInput, ContentFragmentInput, ArticleCategoryInput } from "./article-input";
|
|
2
|
+
import { BylineInput, EmbeddedContentInput, ExpirableFlagInput, MediaInput, ContentFragmentInput, ArticleCategoryInput, ArticleSummarisationInput } from "./article-input";
|
|
3
3
|
import { ArticleContentType, ArticleStatus, SectionName, ThemeTemplate, WorkDeskName } from "../queries/article";
|
|
4
4
|
import { Colour } from "../queries/colour";
|
|
5
5
|
import { DraftArticleSliceInput } from "./draft-article-slice-input";
|
|
@@ -50,4 +50,5 @@ export type DraftArticleInput = {
|
|
|
50
50
|
contentType?: ArticleContentType | null;
|
|
51
51
|
status?: ArticleStatus | null;
|
|
52
52
|
scheduledTime?: DateTime | null;
|
|
53
|
+
articleSummarisation?: ArticleSummarisationInput | null;
|
|
53
54
|
};
|
package/package.json
CHANGED
package/queries/article.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Flag, Markup, PublicationName, UUID, URL, ExpirableFlag, DataSource, CommentSortOrder, AudioNarration } from "../common";
|
|
1
|
+
import { Flag, Markup, PublicationName, UUID, URL, ExpirableFlag, DataSource, CommentSortOrder, AudioNarration, ArticleSummarisation } from "../common";
|
|
2
2
|
import { Media, Image } from "./media";
|
|
3
3
|
import { Layout } from "./layout";
|
|
4
4
|
import { ArticleSlice } from "./slice";
|
|
@@ -84,6 +84,7 @@ export type Article = {
|
|
|
84
84
|
liveBlog: LiveBlog | null;
|
|
85
85
|
storylineMenu: StorylineMenu | null;
|
|
86
86
|
audioNarration?: AudioNarration | null;
|
|
87
|
+
articleSummarisation?: ArticleSummarisation | null;
|
|
87
88
|
};
|
|
88
89
|
export type WorkDeskName = SectionName;
|
|
89
90
|
export type SectionName = "bricksmortar" | "business" | "comment" | "culture" | "home" | "money" | "news" | "newsreview" | "puzzle" | "register" | "saturdayreview" | "sport" | "style" | "thedish" | "thegame" | "thesundaytimesmagazine" | "thetimesmagazine" | "times2" | "travel" | "weekend" | "world";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Markup, PublicationName, UUID, URL, ExpirableFlag, DataSource } from "../common";
|
|
1
|
+
import { Markup, PublicationName, UUID, URL, ExpirableFlag, DataSource, ArticleSummarisation } from "../common";
|
|
2
2
|
import { Media, Image } from "./media";
|
|
3
3
|
import { Topic } from "./topic";
|
|
4
4
|
import { Author } from "./author";
|
|
@@ -68,6 +68,7 @@ export type DraftArticle = {
|
|
|
68
68
|
carousel: Media[] | null;
|
|
69
69
|
contentType: ArticleContentType | null;
|
|
70
70
|
status: ArticleStatus | null;
|
|
71
|
+
articleSummarisation?: ArticleSummarisation | null;
|
|
71
72
|
};
|
|
72
73
|
export type DraftArticleTopicArgs = {
|
|
73
74
|
maxCount?: number;
|