@thetimes/times-public-api-types 1.0.11338 → 1.0.11598
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 +16 -0
- package/mutations/article-input.d.ts +2 -1
- package/mutations/article-update-links-result.d.ts +14 -1
- package/mutations/category-input.d.ts +1 -1
- package/package.json +1 -1
- package/queries/article.d.ts +3 -2
- package/queries/author.d.ts +1 -0
- package/queries/query.d.ts +3 -1
package/common.d.ts
CHANGED
|
@@ -78,6 +78,22 @@ export type Cursor = string & {
|
|
|
78
78
|
export type JsonObject = {
|
|
79
79
|
[key: string]: any;
|
|
80
80
|
};
|
|
81
|
+
export type AudioChunk = {
|
|
82
|
+
id: string;
|
|
83
|
+
url: string;
|
|
84
|
+
duration: number;
|
|
85
|
+
text: string;
|
|
86
|
+
};
|
|
87
|
+
export type Variant = {
|
|
88
|
+
id: string;
|
|
89
|
+
name: string;
|
|
90
|
+
audio: AudioChunk[];
|
|
91
|
+
};
|
|
92
|
+
export type AudioNarration = {
|
|
93
|
+
enabled: boolean;
|
|
94
|
+
defaultVariantId: string;
|
|
95
|
+
variants: Variant[];
|
|
96
|
+
};
|
|
81
97
|
export type PageInfo = {
|
|
82
98
|
startCursor: Cursor | null;
|
|
83
99
|
endCursor: Cursor | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateTime, Dictionary, Flag, Markup, PublicationName, RichText, Slug, UUID, URL, UnsignedInt, DataSource, CategoryType, CommentSortOrder } from "../common";
|
|
1
|
+
import { DateTime, Dictionary, Flag, Markup, PublicationName, RichText, Slug, UUID, URL, UnsignedInt, DataSource, CategoryType, CommentSortOrder, AudioNarration } from "../common";
|
|
2
2
|
import { SectionName, ThemeTemplate, EmbeddedComponentResource, WorkDeskName, ArticleContentType, ArticleStatus } from "../queries/article";
|
|
3
3
|
import { Ratio } from "../queries/media";
|
|
4
4
|
import { ArticleSliceInput } from "./article-slice-input";
|
|
@@ -62,6 +62,7 @@ export type ArticleInput = {
|
|
|
62
62
|
contentType?: ArticleContentType | null;
|
|
63
63
|
carousel?: MediaInput[] | null;
|
|
64
64
|
status?: ArticleStatus | null;
|
|
65
|
+
audioNarration?: AudioNarration | null;
|
|
65
66
|
};
|
|
66
67
|
export type MediaInput = {
|
|
67
68
|
image?: ImageInput | null;
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import { UUID } from "../common";
|
|
2
|
+
declare enum LinkType {
|
|
3
|
+
UUID = "uuid",
|
|
4
|
+
SHORT_ID = "shortId",
|
|
5
|
+
ESCENIC_ID = "escenicId",
|
|
6
|
+
EXTRAS = "extras",
|
|
7
|
+
AUTHOR_IMAGE = "authorImage"
|
|
8
|
+
}
|
|
9
|
+
type UpdatedArticle = {
|
|
10
|
+
articleId: UUID;
|
|
11
|
+
linkTypes: LinkType[];
|
|
12
|
+
};
|
|
1
13
|
export type ArticleUpdateLinksResult = {
|
|
2
|
-
|
|
14
|
+
updatedArticles: UpdatedArticle[];
|
|
3
15
|
};
|
|
16
|
+
export {};
|
package/package.json
CHANGED
package/queries/article.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Flag, Markup, PublicationName, UUID, URL, ExpirableFlag, DataSource, CommentSortOrder } from "../common";
|
|
1
|
+
import { Flag, Markup, PublicationName, UUID, URL, ExpirableFlag, DataSource, CommentSortOrder, AudioNarration } from "../common";
|
|
2
2
|
import { Media, Image } from "./media";
|
|
3
3
|
import { Layout } from "./layout";
|
|
4
4
|
import { ArticleSlice } from "./slice";
|
|
@@ -79,10 +79,11 @@ export type Article = {
|
|
|
79
79
|
carousel: Media[] | null;
|
|
80
80
|
contentType: ArticleContentType | null;
|
|
81
81
|
status: ArticleStatus | null;
|
|
82
|
+
audioNarration?: AudioNarration | null;
|
|
82
83
|
};
|
|
83
84
|
export type WorkDeskName = SectionName;
|
|
84
85
|
export type SectionName = "bricksmortar" | "business" | "comment" | "culture" | "home" | "money" | "news" | "newsreview" | "puzzle" | "register" | "saturdayreview" | "sport" | "style" | "thedish" | "thegame" | "thesundaytimesmagazine" | "thetimesmagazine" | "times2" | "travel" | "weekend" | "world";
|
|
85
|
-
export type ThemeTemplate = "magazinecomment" | "magazinestandard" | "indepth" | "mainstandard" | "maincomment" | "mainvideo" | "takeoverpage";
|
|
86
|
+
export type ThemeTemplate = "magazinecomment" | "magazinestandard" | "indepth" | "mainstandard" | "maincomment" | "mainvideo" | "mainrecipe" | "takeoverpage";
|
|
86
87
|
export type ContentArgs = {
|
|
87
88
|
maxWordCount?: number;
|
|
88
89
|
maxCharCount?: number;
|
package/queries/author.d.ts
CHANGED
package/queries/query.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { Slug, DateTime, ID, Cursor, UUID, DateFilter, Region, ShortDate, Public
|
|
|
2
2
|
import { Edition } from "./edition";
|
|
3
3
|
import { GraphQLResolveInfo } from "graphql";
|
|
4
4
|
export type AuthorArgs = {
|
|
5
|
-
slug
|
|
5
|
+
slug?: Slug;
|
|
6
|
+
id?: UUID;
|
|
6
7
|
};
|
|
7
8
|
export type ArticlesArgs = ListingArgs & {
|
|
8
9
|
parentId?: ID | null;
|
|
@@ -28,6 +29,7 @@ export type PuzzlesArgs = {
|
|
|
28
29
|
dateBefore?: ShortDate | null;
|
|
29
30
|
group?: String | null;
|
|
30
31
|
type?: String | null;
|
|
32
|
+
ids?: UUID[] | null;
|
|
31
33
|
};
|
|
32
34
|
export type PuzzleArgs = {
|
|
33
35
|
shortIdentifier: String;
|