@thetimes/times-public-api-types 1.0.6957 → 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 +6 -1
- package/mutations/collection-input.d.ts +1 -0
- package/package.json +1 -1
- package/queries/collection.d.ts +2 -2
- package/queries/link.d.ts +5 -0
- package/queries/page.d.ts +1 -0
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
|
|
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;
|
package/package.json
CHANGED
package/queries/collection.d.ts
CHANGED
|
@@ -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
|
};
|