@thetimes/times-public-api-types 1.0.6488 → 1.0.6504

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 } from "../common";
2
- import { SectionName, ThemeTemplate, EmbeddedComponentResource, WorkDeskName } from "../queries/article";
2
+ import { SectionName, ThemeTemplate, EmbeddedComponentResource, WorkDeskName, ArticleContentType } 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";
@@ -56,6 +56,7 @@ export type ArticleInput = {
56
56
  sharingEnabled: boolean;
57
57
  textColour?: Colour | null;
58
58
  workDesk?: WorkDeskName | null;
59
+ contentType?: ArticleContentType | null;
59
60
  };
60
61
  export type MediaInput = {
61
62
  image?: ImageInput | null;
@@ -1,6 +1,6 @@
1
1
  import { Slug, Markup, UUID, PublicationName, DateTime, DataSource } from "../common";
2
2
  import { BylineInput, EmbeddedContentInput, ExpirableFlagInput, MediaInput, ContentFragmentInput, ArticleCategoryInput } from "./article-input";
3
- import { SectionName, ThemeTemplate, WorkDeskName } from "../queries/article";
3
+ import { ArticleContentType, 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 = {
@@ -43,4 +43,5 @@ export type DraftArticleInput = {
43
43
  sharingEnabled: boolean;
44
44
  textColour?: Colour | null;
45
45
  workDesk?: WorkDeskName | null;
46
+ contentType?: ArticleContentType | null;
46
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thetimes/times-public-api-types",
3
- "version": "1.0.6488",
3
+ "version": "1.0.6504",
4
4
  "description": "",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
@@ -72,6 +72,7 @@ export type Article = {
72
72
  template: ThemeTemplate | null;
73
73
  workDesk: WorkDeskName | null;
74
74
  longRead: boolean;
75
+ contentType: ArticleContentType | null;
75
76
  };
76
77
  export type WorkDeskName = SectionName;
77
78
  export type SectionName = "bricksmortar" | "business" | "comment" | "culture" | "home" | "money" | "news" | "newsreview" | "puzzle" | "register" | "saturdayreview" | "sport" | "style" | "thedish" | "thegame" | "thesundaytimesmagazine" | "thetimesmagazine" | "times2" | "travel" | "weekend" | "world";
@@ -100,3 +101,4 @@ export type TileArgs = {
100
101
  first?: number | null;
101
102
  desc?: boolean | null;
102
103
  };
104
+ export type ArticleContentType = "news" | "analysis" | "comment" | "qna" | "explainer" | "timeline" | "interview" | "feature" | "review" | "match" | "report" | "video" | "special" | "podcast" | "investigation" | "preview" | "live" | "recipe" | "listicle";
@@ -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 { EmbeddedContent, SectionName, ThemeTemplate, WorkDeskName } from "./article";
7
+ import { ArticleContentType, 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";
@@ -61,6 +61,7 @@ export type DraftArticle = {
61
61
  url: URL | null;
62
62
  template: ThemeTemplate | null;
63
63
  workDesk: WorkDeskName | null;
64
+ contentType: ArticleContentType | null;
64
65
  };
65
66
  export type DraftArticleTopicArgs = {
66
67
  maxCount?: number;