@thetimes/times-public-api-types 1.0.5326 → 1.0.5355
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 +29 -29
- package/mutations/article-input.d.ts +18 -18
- package/mutations/article-slice-input.d.ts +1 -1
- package/mutations/article-tag-input.d.ts +2 -2
- package/mutations/article-tag-remove-result.d.ts +1 -1
- package/mutations/article-tag-upsert-result.d.ts +1 -1
- package/mutations/article-upsert-result.d.ts +1 -1
- package/mutations/author-create-input.d.ts +1 -1
- package/mutations/author-update-input.d.ts +1 -1
- package/mutations/bookmark-save-input.d.ts +1 -1
- package/mutations/bookmark-unsave-input.d.ts +1 -1
- package/mutations/collection-input.d.ts +2 -2
- package/mutations/collection-update-result.d.ts +1 -1
- package/mutations/daily-universal-register-input.d.ts +2 -2
- package/mutations/draft-article-input.d.ts +1 -1
- package/mutations/draft-article-slice-input.d.ts +1 -1
- package/mutations/draft-article-tag-remove-result.d.ts +1 -1
- package/mutations/draft-article-upsert-result.d.ts +1 -1
- package/mutations/draft-slice-input.d.ts +3 -3
- package/mutations/draft-tile-input.d.ts +1 -1
- package/mutations/edition-input.d.ts +1 -1
- package/mutations/edition-upsert-result.d.ts +1 -1
- package/mutations/page-input.d.ts +2 -2
- package/mutations/page-tile-input.d.ts +6 -6
- package/mutations/page-upsert-result.d.ts +1 -1
- package/mutations/puff-input.d.ts +4 -4
- package/mutations/puzzle-input.d.ts +1 -1
- package/mutations/section-input.d.ts +8 -8
- package/mutations/section-update-result.d.ts +1 -1
- package/mutations/slice-input.d.ts +26 -26
- package/mutations/slice-update-result.d.ts +1 -1
- package/mutations/standard-page-slice-input.d.ts +3 -3
- package/mutations/synonym-input.d.ts +1 -1
- package/mutations/tag-merge-result.d.ts +1 -1
- package/mutations/tag-split-result.d.ts +1 -1
- package/mutations/tag-update-input.d.ts +1 -1
- package/mutations/tag-update-result.d.ts +1 -1
- package/mutations/tile-input.d.ts +1 -1
- package/mutations/topic-create-result.d.ts +1 -1
- package/mutations/topic-input.d.ts +2 -2
- package/mutations/topic-remove-result.d.ts +1 -1
- package/mutations/topic-tag-link-result.d.ts +1 -1
- package/mutations/topic-tag-remove-result.d.ts +1 -1
- package/mutations/topic-update-input.d.ts +1 -1
- package/mutations/topic-update-result.d.ts +1 -1
- package/package.json +2 -2
- package/queries/article-synonym-connection.d.ts +2 -2
- package/queries/article-tag-connection.d.ts +2 -2
- package/queries/article-topic-connection.d.ts +1 -1
- package/queries/article.d.ts +10 -10
- package/queries/articles.d.ts +1 -1
- package/queries/author.d.ts +3 -3
- package/queries/bookmark.d.ts +2 -2
- package/queries/bylines.d.ts +2 -2
- package/queries/collection.d.ts +2 -2
- package/queries/colour.d.ts +2 -2
- package/queries/daily-universal-register.d.ts +2 -2
- package/queries/draft-article-topic-connection.d.ts +1 -1
- package/queries/draft-article.d.ts +3 -3
- package/queries/draft-articles.d.ts +1 -1
- package/queries/draft-slice.d.ts +4 -4
- package/queries/draft-tile.d.ts +1 -1
- package/queries/edition.d.ts +1 -1
- package/queries/interactive.d.ts +1 -1
- package/queries/layout.d.ts +4 -4
- package/queries/link.d.ts +5 -5
- package/queries/media.d.ts +7 -7
- package/queries/menu.d.ts +3 -3
- package/queries/page-tile.d.ts +5 -5
- package/queries/page.d.ts +3 -3
- package/queries/puff.d.ts +5 -5
- package/queries/puzzle.d.ts +1 -1
- package/queries/puzzles.d.ts +1 -1
- package/queries/query.d.ts +17 -17
- package/queries/section.d.ts +6 -6
- package/queries/slice.d.ts +35 -35
- package/queries/standard-page-slice.d.ts +3 -3
- package/queries/synonym-connection.d.ts +1 -1
- package/queries/synonym.d.ts +2 -2
- package/queries/tag-article-connection.d.ts +2 -2
- package/queries/tag-connection.d.ts +1 -1
- package/queries/tag-draft-article-connection.d.ts +2 -2
- package/queries/tag.d.ts +1 -1
- package/queries/tile.d.ts +1 -1
- package/queries/topic-article-connection.d.ts +1 -1
- package/queries/topic-draft-article-connection.d.ts +1 -1
- package/queries/topic-tag-connection.d.ts +2 -2
- package/queries/topic.d.ts +6 -6
- package/queries/user.d.ts +1 -1
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
import { TileInput } from "./tile-input";
|
|
2
2
|
import { PuffInput, PuffLiteInput } from "./puff-input";
|
|
3
3
|
import { CollectionInput } from "./collection-input";
|
|
4
|
-
export
|
|
4
|
+
export type StandardSliceInput = {
|
|
5
5
|
items: TileInput[];
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type CommentLeadAndCartoonSliceInput = {
|
|
8
8
|
lead: TileInput;
|
|
9
9
|
cartoon: TileInput;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type InTheNewsSliceInput = {
|
|
12
12
|
items: PuffLiteInput[];
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type LetterThundererPodcastSliceInput = {
|
|
15
15
|
letter: TileInput;
|
|
16
16
|
thunderer: TileInput;
|
|
17
17
|
podcast: TileInput;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type CommentTwoAndNotebookSliceInput = {
|
|
20
20
|
main1: TileInput;
|
|
21
21
|
main2: TileInput;
|
|
22
22
|
notebook: TileInput;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type ContainerSliceInput = {
|
|
25
25
|
collection: CollectionInput;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type FocusSliceInput = {
|
|
28
28
|
main: TileInput;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type LeadersSliceInput = {
|
|
31
31
|
leader1: TileInput;
|
|
32
32
|
leader2: TileInput;
|
|
33
33
|
leader3: TileInput;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type LeadOneAndFourSliceInput = {
|
|
36
36
|
lead: TileInput;
|
|
37
37
|
support1: TileInput;
|
|
38
38
|
support2: TileInput;
|
|
39
39
|
support3: TileInput;
|
|
40
40
|
support4: TileInput;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
42
|
+
export type SupplementLeadAndFourStackSliceInput = {
|
|
43
43
|
lead: TileInput;
|
|
44
44
|
support1: TileInput;
|
|
45
45
|
support2: TileInput;
|
|
46
46
|
support3: TileInput;
|
|
47
47
|
support4: TileInput;
|
|
48
48
|
};
|
|
49
|
-
export
|
|
49
|
+
export type LeadOneAndOneSliceInput = {
|
|
50
50
|
lead: TileInput;
|
|
51
51
|
support: TileInput;
|
|
52
52
|
leadBullet1?: TileInput | null;
|
|
53
53
|
leadBullet2?: TileInput | null;
|
|
54
54
|
leadBullet3?: TileInput | null;
|
|
55
55
|
};
|
|
56
|
-
export
|
|
56
|
+
export type LeadOneAndTwoSliceInput = {
|
|
57
57
|
lead: TileInput;
|
|
58
58
|
support1: TileInput;
|
|
59
59
|
support2: TileInput;
|
|
60
60
|
};
|
|
61
|
-
export
|
|
61
|
+
export type LeadOneFullWidthSliceInput = {
|
|
62
62
|
lead: TileInput;
|
|
63
63
|
};
|
|
64
|
-
export
|
|
64
|
+
export type LeadOneNoPicAndOneAndPortraitSliceInput = {
|
|
65
65
|
lead: TileInput;
|
|
66
66
|
support: TileInput;
|
|
67
67
|
portrait: TileInput;
|
|
68
68
|
};
|
|
69
|
-
export
|
|
69
|
+
export type LeadTwoNoPicAndTwoSliceInput = {
|
|
70
70
|
lead1: TileInput;
|
|
71
71
|
lead2: TileInput;
|
|
72
72
|
support1: TileInput;
|
|
@@ -75,59 +75,59 @@ export declare type LeadTwoNoPicAndTwoSliceInput = {
|
|
|
75
75
|
lead1Bullet2?: TileInput | null;
|
|
76
76
|
lead1Bullet3?: TileInput | null;
|
|
77
77
|
};
|
|
78
|
-
export
|
|
78
|
+
export type ObituariesLeadAndTwoSliceInput = {
|
|
79
79
|
lead: TileInput;
|
|
80
80
|
support1: TileInput;
|
|
81
81
|
support2: TileInput;
|
|
82
82
|
};
|
|
83
|
-
export
|
|
83
|
+
export type OpinionOneAndTwoSliceInput = {
|
|
84
84
|
opinion: TileInput;
|
|
85
85
|
support1: TileInput;
|
|
86
86
|
support2: TileInput;
|
|
87
87
|
};
|
|
88
|
-
export
|
|
88
|
+
export type PuffSliceInput = {
|
|
89
89
|
items: PuffInput[];
|
|
90
90
|
};
|
|
91
|
-
export
|
|
91
|
+
export type SecondaryFourSliceInput = {
|
|
92
92
|
secondary1: TileInput;
|
|
93
93
|
secondary2: TileInput;
|
|
94
94
|
secondary3: TileInput;
|
|
95
95
|
secondary4: TileInput;
|
|
96
96
|
};
|
|
97
|
-
export
|
|
97
|
+
export type SecondaryOneSliceInput = {
|
|
98
98
|
secondary: TileInput;
|
|
99
99
|
};
|
|
100
|
-
export
|
|
100
|
+
export type SecondaryOneAndColumnistSliceInput = {
|
|
101
101
|
secondary: TileInput;
|
|
102
102
|
columnist: TileInput;
|
|
103
103
|
};
|
|
104
|
-
export
|
|
104
|
+
export type SecondaryOneAndFourSliceInput = {
|
|
105
105
|
secondary: TileInput;
|
|
106
106
|
support1: TileInput;
|
|
107
107
|
support2: TileInput;
|
|
108
108
|
support3: TileInput;
|
|
109
109
|
support4: TileInput;
|
|
110
110
|
};
|
|
111
|
-
export
|
|
111
|
+
export type SupplementSecondaryOneAndFourSliceInput = {
|
|
112
112
|
secondary: TileInput;
|
|
113
113
|
support1: TileInput;
|
|
114
114
|
support2: TileInput;
|
|
115
115
|
support3: TileInput;
|
|
116
116
|
support4: TileInput;
|
|
117
117
|
};
|
|
118
|
-
export
|
|
118
|
+
export type SecondaryTwoAndTwoSliceInput = {
|
|
119
119
|
secondary1: TileInput;
|
|
120
120
|
secondary2: TileInput;
|
|
121
121
|
support1: TileInput;
|
|
122
122
|
support2: TileInput;
|
|
123
123
|
};
|
|
124
|
-
export
|
|
124
|
+
export type SecondaryTwoNoPicAndTwoSliceInput = {
|
|
125
125
|
secondary1: TileInput;
|
|
126
126
|
secondary2: TileInput;
|
|
127
127
|
support1: TileInput;
|
|
128
128
|
support2: TileInput;
|
|
129
129
|
};
|
|
130
|
-
export
|
|
130
|
+
export type TwoPicAndSixNoPicSliceInput = {
|
|
131
131
|
lead1: TileInput;
|
|
132
132
|
lead2: TileInput;
|
|
133
133
|
support1: TileInput;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Slug } from "../common";
|
|
2
2
|
import { PageTileInput } from "./page-tile-input";
|
|
3
|
-
export
|
|
3
|
+
export type PageSliceInput = {
|
|
4
4
|
name: string;
|
|
5
5
|
children: PageTileInput[];
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type TopicAuthorSliceInput = {
|
|
8
8
|
topic: Slug;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type StandardPageSliceInput = {
|
|
11
11
|
pageSlice?: PageSliceInput | null;
|
|
12
12
|
topicAuthorSlice?: TopicAuthorSliceInput | null;
|
|
13
13
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { UUID, RichText } from "../common";
|
|
2
2
|
import { ImageInput } from "./article-input";
|
|
3
|
-
export
|
|
3
|
+
export type TopicInput = {
|
|
4
4
|
name: string;
|
|
5
5
|
slug: string;
|
|
6
6
|
description?: RichText | null;
|
|
7
7
|
leadImage?: ImageInput | null;
|
|
8
8
|
metaDescription: string | null;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type TopicTagInput = {
|
|
11
11
|
id: UUID;
|
|
12
12
|
scoreThreshold: number;
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thetimes/times-public-api-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5355",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.d.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"**/*.d.ts"
|
|
14
14
|
],
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"typescript": "^
|
|
16
|
+
"typescript": "^4.1.6"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@thetimes/methode-parser": "^7.0.21"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Connection, Edge } from "../common";
|
|
2
2
|
import { Synonym } from "./synonym";
|
|
3
|
-
|
|
3
|
+
type ArticleSynonymEdge = Edge<Synonym> & {
|
|
4
4
|
score: number;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type ArticleSynonymConnection = Connection<Synonym> & {
|
|
7
7
|
edges: ArticleSynonymEdge[];
|
|
8
8
|
};
|
|
9
9
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Connection, Edge } from "../common";
|
|
2
2
|
import { Tag } from "./tag";
|
|
3
|
-
|
|
3
|
+
type ArticleTagEdge = Edge<Tag> & {
|
|
4
4
|
combinedScore: number;
|
|
5
5
|
scoreOverride: number | null;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type ArticleTagConnection = Connection<Tag> & {
|
|
8
8
|
edges: ArticleTagEdge[];
|
|
9
9
|
};
|
|
10
10
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Topic } from "./topic";
|
|
2
2
|
import { PageInfo } from "../common";
|
|
3
|
-
export
|
|
3
|
+
export type ArticleTopicConnection = {
|
|
4
4
|
nodes: Array<Pick<Topic, "id" | "name" | "slug" | "description" | "createdAt" | "updatedAt">>;
|
|
5
5
|
pageInfo: PageInfo;
|
|
6
6
|
totalCount: number;
|
package/queries/article.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ 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
|
-
export
|
|
13
|
+
export type Article = {
|
|
14
14
|
authors: Author[];
|
|
15
15
|
byline: Markup | null;
|
|
16
16
|
bylines: Array<TextByline | AuthorByline> | null;
|
|
@@ -71,29 +71,29 @@ export declare type Article = {
|
|
|
71
71
|
workDesk: WorkDeskName | null;
|
|
72
72
|
longRead: boolean;
|
|
73
73
|
};
|
|
74
|
-
export
|
|
75
|
-
export
|
|
76
|
-
export
|
|
77
|
-
export
|
|
74
|
+
export type WorkDeskName = SectionName;
|
|
75
|
+
export type SectionName = "bricksmortar" | "business" | "comment" | "culture" | "home" | "money" | "news" | "newsreview" | "puzzle" | "register" | "saturdayreview" | "sport" | "style" | "thedish" | "thegame" | "thesundaytimesmagazine" | "thetimesmagazine" | "times2" | "travel" | "weekend" | "world";
|
|
76
|
+
export type ThemeTemplate = "magazinecomment" | "magazinestandard" | "indepth" | "mainstandard" | "maincomment" | "takeoverpage";
|
|
77
|
+
export type ContentArgs = {
|
|
78
78
|
maxWordCount?: number;
|
|
79
79
|
maxCharCount?: number;
|
|
80
80
|
};
|
|
81
|
-
export
|
|
81
|
+
export type SummaryArgs = {
|
|
82
82
|
maxCharCount?: number;
|
|
83
83
|
};
|
|
84
|
-
export
|
|
84
|
+
export type TopicArgs = {
|
|
85
85
|
maxCount?: number;
|
|
86
86
|
};
|
|
87
|
-
export
|
|
87
|
+
export type EmbeddedContent = {
|
|
88
88
|
content: string;
|
|
89
89
|
head: string | null;
|
|
90
90
|
scripts: EmbeddedComponentResource[];
|
|
91
91
|
};
|
|
92
|
-
export
|
|
92
|
+
export type EmbeddedComponentResource = {
|
|
93
93
|
name: string;
|
|
94
94
|
url: string;
|
|
95
95
|
};
|
|
96
|
-
export
|
|
96
|
+
export type TileArgs = {
|
|
97
97
|
articleId: UUID | null;
|
|
98
98
|
first?: number | null;
|
|
99
99
|
desc?: boolean | null;
|
package/queries/articles.d.ts
CHANGED
package/queries/author.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Markup, Slug, URL, UUID } from "../common";
|
|
2
2
|
import { Article } from "./article";
|
|
3
|
-
export
|
|
3
|
+
export type Author = {
|
|
4
4
|
id: UUID;
|
|
5
5
|
articles: AuthorArticles | null;
|
|
6
6
|
biography: Markup | null;
|
|
@@ -13,11 +13,11 @@ export declare type Author = {
|
|
|
13
13
|
slug: Slug | null;
|
|
14
14
|
metaDescription: string | null;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type AuthorArticles = {
|
|
17
17
|
count: number | null;
|
|
18
18
|
list: Article[] | null;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type AuthorArticlesListArgs = {
|
|
21
21
|
first: number | null;
|
|
22
22
|
skip: number | null;
|
|
23
23
|
};
|
package/queries/bookmark.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { UUID } from "../common";
|
|
2
|
-
export
|
|
2
|
+
export type Bookmark = {
|
|
3
3
|
id: UUID;
|
|
4
4
|
metadata?: string;
|
|
5
5
|
timestamp?: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type PageOfBookmarks = {
|
|
8
8
|
bookmarks: Bookmark[];
|
|
9
9
|
total: number;
|
|
10
10
|
};
|
package/queries/bylines.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Markup } from "../common";
|
|
2
2
|
import { Image } from "./media";
|
|
3
3
|
import { Author } from "./author";
|
|
4
|
-
export
|
|
4
|
+
export type TextByline = {
|
|
5
5
|
byline: Markup;
|
|
6
6
|
image: Image;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type AuthorByline = TextByline & {
|
|
9
9
|
author: Author;
|
|
10
10
|
};
|
package/queries/collection.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { UUID } from "../common";
|
|
|
2
2
|
import { CustomLink, Link, TopicLink } from "./link";
|
|
3
3
|
import { StandardSectionSlice } from "./slice";
|
|
4
4
|
import { StandardPageSlice } from "./standard-page-slice";
|
|
5
|
-
|
|
6
|
-
export
|
|
5
|
+
type CollectionLink = Link | TopicLink | CustomLink;
|
|
6
|
+
export type Collection = {
|
|
7
7
|
title: string | null;
|
|
8
8
|
link: CollectionLink;
|
|
9
9
|
slices: StandardSectionSlice[];
|
package/queries/colour.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TinyInt, UnitInterval } from "../common";
|
|
2
|
-
|
|
2
|
+
type RGBA = {
|
|
3
3
|
red: TinyInt;
|
|
4
4
|
green: TinyInt;
|
|
5
5
|
blue: TinyInt;
|
|
6
6
|
alpha: UnitInterval;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type Colour = {
|
|
9
9
|
rgba: RGBA;
|
|
10
10
|
};
|
|
11
11
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Markup } from "../common";
|
|
2
|
-
export
|
|
2
|
+
export type DailyUniversalRegisterItem = {
|
|
3
3
|
title: String;
|
|
4
4
|
byline: Markup | null;
|
|
5
5
|
content: Markup;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type DailyUniversalRegister = {
|
|
8
8
|
briefing: DailyUniversalRegisterItem;
|
|
9
9
|
onThisDay: DailyUniversalRegisterItem;
|
|
10
10
|
natureNotes: DailyUniversalRegisterItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Topic } from "./topic";
|
|
2
2
|
import { PageInfo } from "../common";
|
|
3
|
-
export
|
|
3
|
+
export type DraftArticleTopicConnection = {
|
|
4
4
|
nodes: Array<Pick<Topic, "id" | "name" | "slug" | "description" | "createdAt" | "updatedAt">>;
|
|
5
5
|
pageInfo: PageInfo;
|
|
6
6
|
totalCount: number;
|
|
@@ -9,7 +9,7 @@ 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
|
-
export
|
|
12
|
+
export type DraftArticle = {
|
|
13
13
|
authors: Author[];
|
|
14
14
|
byline: Markup | null;
|
|
15
15
|
bylines: Array<TextByline | AuthorByline> | null;
|
|
@@ -60,10 +60,10 @@ export declare type DraftArticle = {
|
|
|
60
60
|
template: ThemeTemplate | null;
|
|
61
61
|
workDesk: WorkDeskName | null;
|
|
62
62
|
};
|
|
63
|
-
export
|
|
63
|
+
export type DraftArticleTopicArgs = {
|
|
64
64
|
maxCount?: number;
|
|
65
65
|
};
|
|
66
|
-
export
|
|
66
|
+
export type DraftEmbeddedContent = {
|
|
67
67
|
authorised: EmbeddedContent;
|
|
68
68
|
unauthorised: EmbeddedContent;
|
|
69
69
|
};
|
package/queries/draft-slice.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { DraftTile } from "./draft-tile";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type DraftArticleSlice = DraftStandardSlice | DraftLeadOneAndTwoSlice | DraftOpinionOneAndTwoSlice;
|
|
3
|
+
export type DraftStandardSlice = {
|
|
4
4
|
items: DraftTile[];
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type DraftLeadOneAndTwoSlice = DraftStandardSlice & {
|
|
7
7
|
lead: DraftTile;
|
|
8
8
|
support1: DraftTile;
|
|
9
9
|
support2: DraftTile;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type DraftOpinionOneAndTwoSlice = DraftStandardSlice & {
|
|
12
12
|
opinion: DraftTile;
|
|
13
13
|
support1: DraftTile;
|
|
14
14
|
support2: DraftTile;
|
package/queries/draft-tile.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Media } from "./media";
|
|
|
2
2
|
import { Markup, UUID } from "../common";
|
|
3
3
|
import { DraftArticle } from "./draft-article";
|
|
4
4
|
import { Article } from "./article";
|
|
5
|
-
export
|
|
5
|
+
export type DraftTile = {
|
|
6
6
|
articleId: UUID | null;
|
|
7
7
|
draftArticleId: UUID | null;
|
|
8
8
|
article: DraftArticle | Article;
|
package/queries/edition.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UUID, PublicationName, ShortDate, Region, BigInt } from "../common";
|
|
2
2
|
import { Section } from "./section";
|
|
3
3
|
import { ImagesPaged } from "./media";
|
|
4
|
-
export
|
|
4
|
+
export type Edition = {
|
|
5
5
|
id: UUID;
|
|
6
6
|
updateText: string | null;
|
|
7
7
|
date: ShortDate;
|
package/queries/interactive.d.ts
CHANGED
package/queries/layout.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { UUID } from "../common";
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export type Layout = LeadAndTwo | OpinionAndTwo | Default;
|
|
3
|
+
type LeadAndTwo = {
|
|
4
4
|
template: "LEAD_AND_TWO";
|
|
5
5
|
main: UUID | null;
|
|
6
6
|
lead: UUID | null;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type OpinionAndTwo = {
|
|
9
9
|
template: "OPINION_AND_TWO";
|
|
10
10
|
main: UUID | null;
|
|
11
11
|
opinion: UUID | null;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type Default = {
|
|
14
14
|
template: "DEFAULT";
|
|
15
15
|
};
|
|
16
16
|
export {};
|
package/queries/link.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Slug, URL, UUID } from "../common";
|
|
2
2
|
import { Article } from "./article";
|
|
3
|
-
export
|
|
3
|
+
export type Link = {
|
|
4
4
|
url: URL | null;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type ArticleLink = {
|
|
7
7
|
articleId: UUID;
|
|
8
8
|
article: Article;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type Anchor = {
|
|
11
11
|
value: string | null;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type TopicLink = {
|
|
14
14
|
topic: Slug;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type CustomLink = {
|
|
17
17
|
url: URL | null;
|
|
18
18
|
text: string | null;
|
|
19
19
|
};
|