@thetimes/times-public-api-types 1.0.12497 → 1.0.12517

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 CHANGED
@@ -27,8 +27,10 @@ export type EmptyCategoryArticleReferencePageTileType = "EMPTY_CATEGORY_ARTICLE_
27
27
  export type EmptyInheritedArticleReferencePageTileType = "EMPTY_INHERITED_ARTICLE_REFERENCE";
28
28
  export type ExternalReferencePageTileType = "EXTERNAL_REFERENCE";
29
29
  export type CategoryArticleReferencePageTileType = "CATEGORY_ARTICLE_REFERENCE";
30
+ export type AuthorArticleReferencePageTileType = "AUTHOR_ARTICLE_REFERENCE";
31
+ export type EmptyAuthorArticleReferencePageTileType = "EMPTY_AUTHOR_ARTICLE_REFERENCE";
30
32
  export type InheritedArticleReferencePageTileType = "INHERITED_ARTICLE_REFERENCE";
31
- export type PageTileType = ArticleReferencePageTileType | TopicArticleReferencePageTileType | CustomComponentPageTileType | EmptyArticleReferencePageTileType | EmptyTopicArticleReferencePageTileType | EmptyCategoryArticleReferencePageTileType | EmptyInheritedArticleReferencePageTileType | ExternalReferencePageTileType | CategoryArticleReferencePageTileType | InheritedArticleReferencePageTileType | null;
33
+ export type PageTileType = ArticleReferencePageTileType | TopicArticleReferencePageTileType | CustomComponentPageTileType | EmptyArticleReferencePageTileType | EmptyTopicArticleReferencePageTileType | EmptyCategoryArticleReferencePageTileType | EmptyInheritedArticleReferencePageTileType | ExternalReferencePageTileType | CategoryArticleReferencePageTileType | AuthorArticleReferencePageTileType | EmptyAuthorArticleReferencePageTileType | InheritedArticleReferencePageTileType | null;
32
34
  export declare enum CollectionLinkTypes {
33
35
  PAGE_LINK = "PAGE_LINK",
34
36
  TOPIC_LINK = "TOPIC_LINK",
@@ -9,6 +9,7 @@ export type CollectionInput = {
9
9
  children?: StandardPageSliceInput[] | null;
10
10
  topic?: Slug | null;
11
11
  category?: Slug | null;
12
+ author?: Slug | null;
12
13
  designTheme?: string | null;
13
14
  group?: CollectionGroupInput | null;
14
15
  inheritedPageUuid?: UUID | null;
@@ -5,6 +5,7 @@ export type PageTileInput = {
5
5
  customComponent?: CustomComponentInput | null;
6
6
  externalRef?: ExternalRefInput | null;
7
7
  categoryArticleRef?: CategoryArticleRefInput | null;
8
+ authorArticleRef?: AuthorArticleRefInput | null;
8
9
  inheritedArticleRef?: InheritedArticleRefInput | null;
9
10
  };
10
11
  export type ArticleRefInput = {
@@ -21,6 +22,11 @@ export type CategoryArticleRefInput = {
21
22
  category: Slug;
22
23
  isComment: boolean;
23
24
  };
25
+ export type AuthorArticleRefInput = {
26
+ id?: UUID;
27
+ author: Slug;
28
+ isComment: boolean;
29
+ };
24
30
  export type InheritedArticleRefInput = {
25
31
  id?: UUID;
26
32
  isComment: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thetimes/times-public-api-types",
3
- "version": "1.0.12497",
3
+ "version": "1.0.12517",
4
4
  "description": "",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
@@ -66,3 +66,32 @@ export type Schedule = {
66
66
  date?: string | null;
67
67
  shows?: Show[] | null;
68
68
  };
69
+ export type PodcastStream = {
70
+ url?: string | null;
71
+ duration?: string | null;
72
+ };
73
+ export type PodcastEpisode = {
74
+ id?: string | null;
75
+ title?: string | null;
76
+ description?: string | null;
77
+ publicationDate?: string | null;
78
+ stream?: PodcastStream | null;
79
+ image?: Image | null;
80
+ };
81
+ export type PodcastEpisodes = {
82
+ items?: PodcastEpisode[] | null;
83
+ };
84
+ export type PodcastSummary = {
85
+ id?: string | null;
86
+ description?: string | null;
87
+ brands?: string[] | null;
88
+ title?: string | null;
89
+ image?: Image | null;
90
+ };
91
+ export type PodcastDetail = {
92
+ id?: string | null;
93
+ description?: string | null;
94
+ title?: string | null;
95
+ image?: Image | null;
96
+ episodes?: PodcastEpisodes | null;
97
+ };
@@ -1,13 +1,16 @@
1
1
  import { UUID, URL, Slug } from "../common";
2
2
  import { Article } from "./article";
3
3
  import { Author } from "./author";
4
- export type PageTile = ArticleReference | CustomComponent | ExternalReference | EmptyTopicReference | EmptyCategoryReference | EmptyInheritanceReference;
4
+ export type PageTile = ArticleReference | CustomComponent | ExternalReference | EmptyTopicReference | EmptyCategoryReference | EmptyAuthorReference | EmptyInheritanceReference;
5
5
  export type EmptyTopicReference = {
6
6
  topic: Slug;
7
7
  };
8
8
  export type EmptyCategoryReference = {
9
9
  category: Slug;
10
10
  };
11
+ export type EmptyAuthorReference = {
12
+ author: Slug;
13
+ };
11
14
  export type EmptyInheritanceReference = {
12
15
  sourcePageTitle: string;
13
16
  sourceCollectionTitle: string;