@thetimes/times-public-api-types 1.0.6942 → 1.0.6975

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
@@ -16,7 +16,12 @@ export type CategoryType = "PRIMARY" | "SECONDARY";
16
16
  export type DataSource = "NEWSPRESS" | "METHODE" | null;
17
17
  export type PageSliceType = "PAGE_SLICE" | "PAGINATED_PAGE_SLICE" | "TOPIC_AUTHOR_SLICE" | null;
18
18
  export type PageTileType = "ARTICLE_REFERENCE" | "TOPIC_ARTICLE_REFERENCE" | "CUSTOM_COMPONENT" | "EXTERNAL_REFERENCE" | "CATEGORY_ARTICLE_REFERENCE" | "INHERITED_ARTICLE_REFERENCE" | null;
19
- export type CollectionLinkType = "TOPIC_LINK" | "CUSTOM_LINK";
19
+ export declare enum CollectionLinkTypes {
20
+ PAGE_LINK = "PAGE_LINK",
21
+ TOPIC_LINK = "TOPIC_LINK",
22
+ CUSTOM_LINK = "CUSTOM_LINK"
23
+ }
24
+ export type CollectionLinkType = "PAGE_LINK" | "TOPIC_LINK" | "CUSTOM_LINK";
20
25
  export type DateTime = Date;
21
26
  export type Dictionary = {
22
27
  [key: string]: string;
@@ -13,6 +13,7 @@ export type CollectionInput = {
13
13
  };
14
14
  export type CollectionLinkInput = {
15
15
  url: URL | null;
16
+ linkSlug?: Slug | null;
16
17
  linkTitle?: string | null;
17
18
  linkType?: CollectionLinkType;
18
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thetimes/times-public-api-types",
3
- "version": "1.0.6942",
3
+ "version": "1.0.6975",
4
4
  "description": "",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
@@ -1,8 +1,8 @@
1
1
  import { UUID } from "../common";
2
- import { CustomLink, Link, TopicLink } from "./link";
2
+ import { CustomLink, Link, PageLink, TopicLink } from "./link";
3
3
  import { StandardSectionSlice } from "./slice";
4
4
  import { StandardPageSlice } from "./standard-page-slice";
5
- type CollectionLink = Link | TopicLink | CustomLink;
5
+ type CollectionLink = Link | PageLink | TopicLink | CustomLink;
6
6
  export type Collection = {
7
7
  title: string | null;
8
8
  link: CollectionLink;
package/queries/link.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Slug, URL, UUID } from "../common";
2
2
  import { Article } from "./article";
3
+ import { Page } from "./page";
3
4
  export type Link = {
4
5
  url: URL | null;
5
6
  };
@@ -10,6 +11,10 @@ export type ArticleLink = {
10
11
  export type Anchor = {
11
12
  value: string | null;
12
13
  };
14
+ export type PageLink = {
15
+ linkPageId: number | null;
16
+ page: Page | null;
17
+ };
13
18
  export type TopicLink = {
14
19
  topic: Slug;
15
20
  };
package/queries/page.d.ts CHANGED
@@ -13,5 +13,6 @@ export type Page = {
13
13
  };
14
14
  export type PageArgs = {
15
15
  page: Page;
16
+ linkPageId: number;
16
17
  };
17
18
  export type PageBlock = Collection;