@thetimes/times-public-api-types 1.0.11635 → 1.0.11657
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/index.d.ts +2 -0
- package/mutations/article-input.d.ts +2 -0
- package/mutations/live-blog-input.d.ts +24 -0
- package/package.json +1 -1
- package/queries/article.d.ts +3 -0
- package/queries/live-blog.d.ts +24 -0
package/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from "./queries/edition";
|
|
|
27
27
|
export * from "./queries/interactive";
|
|
28
28
|
export * from "./queries/layout";
|
|
29
29
|
export * from "./queries/link";
|
|
30
|
+
export * from "./queries/live-blog";
|
|
30
31
|
export * from "./queries/media";
|
|
31
32
|
export * from "./queries/menu";
|
|
32
33
|
export * from "./queries/page-tile";
|
|
@@ -82,6 +83,7 @@ export * from "./mutations/draft-slice-input";
|
|
|
82
83
|
export * from "./mutations/draft-tile-input";
|
|
83
84
|
export * from "./mutations/edition-input";
|
|
84
85
|
export * from "./mutations/edition-upsert-result";
|
|
86
|
+
export * from "./mutations/live-blog-input";
|
|
85
87
|
export * from "./mutations/page-delete-input";
|
|
86
88
|
export * from "./mutations/page-delete-result";
|
|
87
89
|
export * from "./mutations/page-input";
|
|
@@ -3,6 +3,7 @@ import { SectionName, ThemeTemplate, EmbeddedComponentResource, WorkDeskName, Ar
|
|
|
3
3
|
import { Ratio } from "../queries/media";
|
|
4
4
|
import { ArticleSliceInput } from "./article-slice-input";
|
|
5
5
|
import { Colour } from "../queries/colour";
|
|
6
|
+
import { LiveBlogInput } from "./live-blog-input";
|
|
6
7
|
export type ExpirableFlagInput = {
|
|
7
8
|
type: Flag;
|
|
8
9
|
duration: number | null;
|
|
@@ -62,6 +63,7 @@ export type ArticleInput = {
|
|
|
62
63
|
contentType?: ArticleContentType | null;
|
|
63
64
|
carousel?: MediaInput[] | null;
|
|
64
65
|
status?: ArticleStatus | null;
|
|
66
|
+
liveBlog?: LiveBlogInput | null;
|
|
65
67
|
audioNarration?: AudioNarration | null;
|
|
66
68
|
};
|
|
67
69
|
export type MediaInput = {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UUID, DateTime, Markup } from "../common";
|
|
2
|
+
import { LiveBlogStatus } from "../queries/live-blog";
|
|
3
|
+
import { ContentFragmentInput } from "./article-input";
|
|
4
|
+
export type LiveBlogInput = {
|
|
5
|
+
uuid: UUID;
|
|
6
|
+
status: LiveBlogStatus;
|
|
7
|
+
coverageStartTime?: DateTime | null;
|
|
8
|
+
flashlinesEnabled?: boolean;
|
|
9
|
+
activeFlashline?: string | null;
|
|
10
|
+
completedFlashline?: string | null;
|
|
11
|
+
viewMoreEnabled?: boolean;
|
|
12
|
+
viewMoreLimit?: number | null;
|
|
13
|
+
entries: LiveBlogEntryInput[];
|
|
14
|
+
};
|
|
15
|
+
export type LiveBlogEntryInput = {
|
|
16
|
+
uuid: UUID;
|
|
17
|
+
title?: string | null;
|
|
18
|
+
byline?: Markup | null;
|
|
19
|
+
publishedTime: DateTime;
|
|
20
|
+
updatedTime: DateTime;
|
|
21
|
+
isPinned?: boolean;
|
|
22
|
+
isKeyEvent?: boolean;
|
|
23
|
+
content: ContentFragmentInput[];
|
|
24
|
+
};
|
package/package.json
CHANGED
package/queries/article.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { Tag } from "./tag";
|
|
|
11
11
|
import { ArticleTopicConnection } from "./article-topic-connection";
|
|
12
12
|
import { ArticleSynonymConnection } from "./article-synonym-connection";
|
|
13
13
|
import { ArticleCategoryConnection } from "./article-category-connection";
|
|
14
|
+
import { LiveBlog } from "./live-blog";
|
|
14
15
|
export type Article = {
|
|
15
16
|
associatedDesks: string[] | null;
|
|
16
17
|
authors: Author[];
|
|
@@ -79,6 +80,7 @@ export type Article = {
|
|
|
79
80
|
carousel: Media[] | null;
|
|
80
81
|
contentType: ArticleContentType | null;
|
|
81
82
|
status: ArticleStatus | null;
|
|
83
|
+
liveBlog: LiveBlog | null;
|
|
82
84
|
audioNarration?: AudioNarration | null;
|
|
83
85
|
};
|
|
84
86
|
export type WorkDeskName = SectionName;
|
|
@@ -87,6 +89,7 @@ export type ThemeTemplate = "magazinecomment" | "magazinestandard" | "indepth" |
|
|
|
87
89
|
export type ContentArgs = {
|
|
88
90
|
maxWordCount?: number;
|
|
89
91
|
maxCharCount?: number;
|
|
92
|
+
excludeLiveBlogEntries?: boolean;
|
|
90
93
|
};
|
|
91
94
|
export type SummaryArgs = {
|
|
92
95
|
maxCharCount?: number;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UUID, Markup, Connection } from "../common";
|
|
2
|
+
export type LiveBlogStatus = "PENDING" | "LIVE" | "COMPLETED";
|
|
3
|
+
export type LiveBlog = {
|
|
4
|
+
id: UUID;
|
|
5
|
+
status: LiveBlogStatus;
|
|
6
|
+
coverageStartTime: Date | null;
|
|
7
|
+
flashlinesEnabled: boolean;
|
|
8
|
+
activeFlashline: string | null;
|
|
9
|
+
completedFlashline: string | null;
|
|
10
|
+
viewMoreEnabled: boolean;
|
|
11
|
+
viewMoreLimit: number | null;
|
|
12
|
+
entries: LiveBlogEntryConnection;
|
|
13
|
+
};
|
|
14
|
+
export type LiveBlogEntry = {
|
|
15
|
+
id: UUID;
|
|
16
|
+
title: string | null;
|
|
17
|
+
byline: Markup | null;
|
|
18
|
+
publishedTime: Date;
|
|
19
|
+
updatedTime: Date;
|
|
20
|
+
isPinned: boolean;
|
|
21
|
+
isKeyEvent: boolean;
|
|
22
|
+
content: Markup;
|
|
23
|
+
};
|
|
24
|
+
export type LiveBlogEntryConnection = Connection<LiveBlogEntry>;
|