@thetimes/times-public-api-types 1.0.5579 → 1.0.5614
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 +1 -0
- package/index.d.ts +6 -0
- package/mutations/article-input.d.ts +6 -1
- package/mutations/category-hierarchy-input.d.ts +4 -0
- package/mutations/category-hierarchy-upsert-result.d.ts +3 -0
- package/mutations/category-input.d.ts +7 -0
- package/mutations/draft-article-input.d.ts +2 -1
- package/package.json +1 -1
- package/queries/article-category-connection.d.ts +7 -0
- package/queries/article.d.ts +2 -0
- package/queries/category.d.ts +10 -0
- package/queries/draft-article-category-connection.d.ts +7 -0
- package/queries/draft-article.d.ts +2 -0
package/common.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export type UUID = string & {
|
|
|
12
12
|
export type BigInt = number & {
|
|
13
13
|
_: "Revision";
|
|
14
14
|
};
|
|
15
|
+
export type CategoryType = "PRIMARY" | "SECONDARY";
|
|
15
16
|
export type DataSource = "NEWSPRESS" | "METHODE" | null;
|
|
16
17
|
export type PageSliceType = "PAGE_SLICE" | "TOPIC_AUTHOR_SLICE" | null;
|
|
17
18
|
export type PageTileType = "ARTICLE_REFERENCE" | "TOPIC_ARTICLE_REFERENCE" | "CUSTOM_COMPONENT" | "EXTERNAL_REFERENCE" | null;
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./common";
|
|
2
|
+
export * from "./queries/article-category-connection";
|
|
2
3
|
export * from "./queries/article-synonym-connection";
|
|
3
4
|
export * from "./queries/article-tag-connection";
|
|
4
5
|
export * from "./queries/article-topic-connection";
|
|
@@ -7,9 +8,11 @@ export * from "./queries/articles";
|
|
|
7
8
|
export * from "./queries/author";
|
|
8
9
|
export * from "./queries/bookmark";
|
|
9
10
|
export * from "./queries/bylines";
|
|
11
|
+
export * from "./queries/category";
|
|
10
12
|
export * from "./queries/collection";
|
|
11
13
|
export * from "./queries/colour";
|
|
12
14
|
export * from "./queries/daily-universal-register";
|
|
15
|
+
export * from "./queries/draft-article-category-connection";
|
|
13
16
|
export * from "./queries/draft-article-topic-connection";
|
|
14
17
|
export * from "./queries/draft-article";
|
|
15
18
|
export * from "./queries/draft-articles";
|
|
@@ -52,6 +55,9 @@ export * from "./mutations/author-create-input";
|
|
|
52
55
|
export * from "./mutations/author-update-input";
|
|
53
56
|
export * from "./mutations/bookmark-save-input";
|
|
54
57
|
export * from "./mutations/bookmark-unsave-input";
|
|
58
|
+
export * from "./mutations/category-hierarchy-input";
|
|
59
|
+
export * from "./mutations/category-hierarchy-upsert-result";
|
|
60
|
+
export * from "./mutations/category-input";
|
|
55
61
|
export * from "./mutations/collection-input";
|
|
56
62
|
export * from "./mutations/collection-update-result";
|
|
57
63
|
export * from "./mutations/daily-universal-register-input";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateTime, Dictionary, Flag, Markup, PublicationName, RichText, Slug, UUID, URL, UnsignedInt, DataSource } from "../common";
|
|
1
|
+
import { DateTime, Dictionary, Flag, Markup, PublicationName, RichText, Slug, UUID, URL, UnsignedInt, DataSource, CategoryType } from "../common";
|
|
2
2
|
import { SectionName, ThemeTemplate, EmbeddedComponentResource, WorkDeskName } from "../queries/article";
|
|
3
3
|
import { Ratio } from "../queries/media";
|
|
4
4
|
import { ArticleSliceInput } from "./article-slice-input";
|
|
@@ -12,12 +12,17 @@ export type BylineInput = {
|
|
|
12
12
|
byline: Markup;
|
|
13
13
|
author?: Slug | null;
|
|
14
14
|
};
|
|
15
|
+
export type ArticleCategoryInput = {
|
|
16
|
+
id: number;
|
|
17
|
+
type: CategoryType;
|
|
18
|
+
};
|
|
15
19
|
export type ArticleInput = {
|
|
16
20
|
leadAsset?: MediaInput | null;
|
|
17
21
|
listingAsset?: MediaInput | null;
|
|
18
22
|
byline: Markup;
|
|
19
23
|
bylines?: BylineInput[] | null;
|
|
20
24
|
catchline?: string | null;
|
|
25
|
+
categories?: ArticleCategoryInput[] | null;
|
|
21
26
|
dataSource: DataSource;
|
|
22
27
|
escenicId?: number | null;
|
|
23
28
|
authors: Slug[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Slug, Markup, UUID, PublicationName, DateTime, DataSource } from "../common";
|
|
2
|
-
import { BylineInput, EmbeddedContentInput, ExpirableFlagInput, MediaInput, ContentFragmentInput } from "./article-input";
|
|
2
|
+
import { BylineInput, EmbeddedContentInput, ExpirableFlagInput, MediaInput, ContentFragmentInput, ArticleCategoryInput } from "./article-input";
|
|
3
3
|
import { SectionName, ThemeTemplate, WorkDeskName } from "../queries/article";
|
|
4
4
|
import { Colour } from "../queries/colour";
|
|
5
5
|
import { DraftArticleSliceInput } from "./draft-article-slice-input";
|
|
@@ -8,6 +8,7 @@ export type DraftArticleInput = {
|
|
|
8
8
|
byline?: Markup | null;
|
|
9
9
|
bylines?: BylineInput[] | null;
|
|
10
10
|
catchline?: string | null;
|
|
11
|
+
categories?: ArticleCategoryInput[] | null;
|
|
11
12
|
embeddedContent?: EmbeddedContentInput | null;
|
|
12
13
|
escenicId?: number | null;
|
|
13
14
|
expirableFlags: ExpirableFlagInput[];
|
package/package.json
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Category } from "./category";
|
|
2
|
+
import { PageInfo } from "../common";
|
|
3
|
+
export type ArticleCategoryConnection = {
|
|
4
|
+
nodes: Array<Pick<Category, "id" | "categoryType" | "title" | "slug" | "parent" | "createdAt" | "updatedAt">>;
|
|
5
|
+
pageInfo: PageInfo;
|
|
6
|
+
totalCount: number;
|
|
7
|
+
};
|
package/queries/article.d.ts
CHANGED
|
@@ -10,12 +10,14 @@ import { Tile } from "./tile";
|
|
|
10
10
|
import { Tag } from "./tag";
|
|
11
11
|
import { ArticleTopicConnection } from "./article-topic-connection";
|
|
12
12
|
import { ArticleSynonymConnection } from "./article-synonym-connection";
|
|
13
|
+
import { ArticleCategoryConnection } from "./article-category-connection";
|
|
13
14
|
export type Article = {
|
|
14
15
|
authors: Author[];
|
|
15
16
|
byline: Markup | null;
|
|
16
17
|
bylines: Array<TextByline | AuthorByline> | null;
|
|
17
18
|
backgroundColour: Colour | null;
|
|
18
19
|
catchline: string | null;
|
|
20
|
+
categoryConnection: ArticleCategoryConnection;
|
|
19
21
|
commentsEnabled: boolean | null;
|
|
20
22
|
commentsPreModerated: boolean;
|
|
21
23
|
commentCount: number | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Category } from "./category";
|
|
2
|
+
import { PageInfo } from "../common";
|
|
3
|
+
export type DraftArticleCategoryConnection = {
|
|
4
|
+
nodes: Array<Pick<Category, "id" | "categoryType" | "title" | "slug" | "parent" | "createdAt" | "updatedAt">>;
|
|
5
|
+
pageInfo: PageInfo;
|
|
6
|
+
totalCount: number;
|
|
7
|
+
};
|
|
@@ -9,12 +9,14 @@ import { DraftArticleSlice } from "./draft-slice";
|
|
|
9
9
|
import { Tag } from "./tag";
|
|
10
10
|
import { DraftArticleTopicConnection } from "./draft-article-topic-connection";
|
|
11
11
|
import { ArticleSynonymConnection } from "./article-synonym-connection";
|
|
12
|
+
import { DraftArticleCategoryConnection } from "./draft-article-category-connection";
|
|
12
13
|
export type DraftArticle = {
|
|
13
14
|
authors: Author[];
|
|
14
15
|
byline: Markup | null;
|
|
15
16
|
bylines: Array<TextByline | AuthorByline> | null;
|
|
16
17
|
backgroundColour: Colour | null;
|
|
17
18
|
catchline: string | null;
|
|
19
|
+
categoryConnection: DraftArticleCategoryConnection;
|
|
18
20
|
commentsEnabled: boolean | null;
|
|
19
21
|
commentsPreModerated: boolean;
|
|
20
22
|
commercialTags: string[] | null;
|