@thetimes/times-public-api-types 1.0.9832 → 1.0.9877
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DateTime, Dictionary, Flag, Markup, PublicationName, RichText, Slug, UUID, URL, UnsignedInt, DataSource, CategoryType, CommentSortOrder } from "../common";
|
|
2
|
-
import { SectionName, ThemeTemplate, EmbeddedComponentResource, WorkDeskName, ArticleContentType } from "../queries/article";
|
|
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";
|
|
5
5
|
import { Colour } from "../queries/colour";
|
|
@@ -61,6 +61,7 @@ export type ArticleInput = {
|
|
|
61
61
|
workDesk?: WorkDeskName | null;
|
|
62
62
|
contentType?: ArticleContentType | null;
|
|
63
63
|
carousel?: MediaInput[] | null;
|
|
64
|
+
status?: ArticleStatus | null;
|
|
64
65
|
};
|
|
65
66
|
export type MediaInput = {
|
|
66
67
|
image?: ImageInput | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Slug, Markup, UUID, PublicationName, DateTime, DataSource, CommentSortOrder } from "../common";
|
|
2
2
|
import { BylineInput, EmbeddedContentInput, ExpirableFlagInput, MediaInput, ContentFragmentInput, ArticleCategoryInput } from "./article-input";
|
|
3
|
-
import { ArticleContentType, SectionName, ThemeTemplate, WorkDeskName } from "../queries/article";
|
|
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";
|
|
6
6
|
export type DraftArticleInput = {
|
|
@@ -48,5 +48,6 @@ export type DraftArticleInput = {
|
|
|
48
48
|
workDesk?: WorkDeskName | null;
|
|
49
49
|
carousel?: MediaInput[] | null;
|
|
50
50
|
contentType?: ArticleContentType | null;
|
|
51
|
+
status?: ArticleStatus | null;
|
|
51
52
|
scheduledTime?: DateTime | null;
|
|
52
53
|
};
|
package/package.json
CHANGED
package/queries/article.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export type Article = {
|
|
|
78
78
|
longRead: boolean;
|
|
79
79
|
carousel: Media[] | null;
|
|
80
80
|
contentType: ArticleContentType | null;
|
|
81
|
+
status: ArticleStatus | null;
|
|
81
82
|
};
|
|
82
83
|
export type WorkDeskName = SectionName;
|
|
83
84
|
export type SectionName = "bricksmortar" | "business" | "comment" | "culture" | "home" | "money" | "news" | "newsreview" | "puzzle" | "register" | "saturdayreview" | "sport" | "style" | "thedish" | "thegame" | "thesundaytimesmagazine" | "thetimesmagazine" | "times2" | "travel" | "weekend" | "world";
|
|
@@ -107,3 +108,4 @@ export type TileArgs = {
|
|
|
107
108
|
desc?: boolean | null;
|
|
108
109
|
};
|
|
109
110
|
export type ArticleContentType = "news" | "analysis" | "comment" | "qna" | "explainer" | "timeline" | "interview" | "feature" | "review" | "match" | "report" | "video" | "special" | "podcast" | "investigation" | "preview" | "live" | "recipe" | "listicle" | "indepth" | "profile" | "firstperson" | "inpictures" | "extract" | "visualstorytelling" | "obituary" | "dispatch" | "sketch";
|
|
111
|
+
export type ArticleStatus = "gone" | "noindex";
|
|
@@ -4,7 +4,7 @@ import { Topic } from "./topic";
|
|
|
4
4
|
import { Author } from "./author";
|
|
5
5
|
import { Colour } from "./colour";
|
|
6
6
|
import { TextByline, AuthorByline } from "./bylines";
|
|
7
|
-
import { ArticleContentType, EmbeddedContent, SectionName, ThemeTemplate, WorkDeskName } from "./article";
|
|
7
|
+
import { ArticleContentType, ArticleStatus, EmbeddedContent, SectionName, ThemeTemplate, WorkDeskName } from "./article";
|
|
8
8
|
import { DraftArticleSlice } from "./draft-slice";
|
|
9
9
|
import { Tag } from "./tag";
|
|
10
10
|
import { DraftArticleTopicConnection } from "./draft-article-topic-connection";
|
|
@@ -67,6 +67,7 @@ export type DraftArticle = {
|
|
|
67
67
|
workDesk: WorkDeskName | null;
|
|
68
68
|
carousel: Media[] | null;
|
|
69
69
|
contentType: ArticleContentType | null;
|
|
70
|
+
status: ArticleStatus | null;
|
|
70
71
|
};
|
|
71
72
|
export type DraftArticleTopicArgs = {
|
|
72
73
|
maxCount?: number;
|