@thetimes/times-public-api-types 1.0.13050 → 1.0.13136

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, AudioNarration } from "../common";
2
- import { SectionName, ThemeTemplate, EmbeddedComponentResource, WorkDeskName, ArticleContentType, ArticleStatus } from "../queries/article";
2
+ import { SectionName, ThemeTemplate, EmbeddedComponentResource, WorkDeskName, ArticleContentType, ArticleStatus, ArticleLocale } 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";
@@ -68,6 +68,10 @@ export type ArticleInput = {
68
68
  audioNarration?: AudioNarration | null;
69
69
  articleSummarisation?: ArticleSummarisationInput | null;
70
70
  shouldShowBylinesImages?: boolean | null;
71
+ /** locale tag for hreflang / edition clusters (e.g. "en-gb"). */
72
+ locale?: ArticleLocale | null;
73
+ /** UUID of the edition cluster anchor post; null when not clustered. */
74
+ editionClusterId?: UUID | null;
71
75
  };
72
76
  export type ArticleSummarisationInput = {
73
77
  summaryTypes: ArticleSummarisationSummaryTypeInput[];
@@ -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, ArticleSummarisationInput } from "./article-input";
3
- import { ArticleContentType, ArticleStatus, SectionName, ThemeTemplate, WorkDeskName } from "../queries/article";
3
+ import { ArticleContentType, ArticleStatus, SectionName, ThemeTemplate, WorkDeskName, ArticleLocale } from "../queries/article";
4
4
  import { Colour } from "../queries/colour";
5
5
  import { DraftArticleSliceInput } from "./draft-article-slice-input";
6
6
  export type DraftArticleInput = {
@@ -52,4 +52,8 @@ export type DraftArticleInput = {
52
52
  scheduledTime?: DateTime | null;
53
53
  articleSummarisation?: ArticleSummarisationInput | null;
54
54
  shouldShowBylinesImages?: boolean | null;
55
+ /** locale tag for hreflang / edition clusters (e.g. "en-gb"). */
56
+ locale?: ArticleLocale | null;
57
+ /** UUID of the edition cluster anchor post; null when not clustered. */
58
+ editionClusterId?: UUID | null;
55
59
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thetimes/times-public-api-types",
3
- "version": "1.0.13050",
3
+ "version": "1.0.13136",
4
4
  "description": "",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
@@ -117,3 +117,5 @@ export type TileArgs = {
117
117
  };
118
118
  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";
119
119
  export type ArticleStatus = "gone" | "noindex";
120
+ export type ArticleLocale = "en-gb" | "en-us" | "en-ie";
121
+ export declare const ALLOWED_LOCALES: ArticleLocale[];
@@ -9,6 +9,7 @@ export type ArticlesArgs = ListingArgs & {
9
9
  parentId?: ID | null;
10
10
  updatedBefore?: DateTime | null;
11
11
  escenicId?: number | null;
12
+ editionClusterIds?: UUID[] | null;
12
13
  graphQLResolveInfo?: GraphQLResolveInfo | null;
13
14
  };
14
15
  export type DraftArticlesArgs = {