@thetimes/times-public-api-types 1.0.5342 → 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
package/queries/media.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { URL, UUID, UnitInterval } from "../common";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type Ratio = string;
|
|
3
|
+
export type Crop = {
|
|
4
4
|
ratio: Ratio | null;
|
|
5
5
|
url: URL | null;
|
|
6
6
|
relativeHorizontalOffset: UnitInterval | null;
|
|
@@ -9,7 +9,7 @@ export declare type Crop = {
|
|
|
9
9
|
relativeHeight: UnitInterval | null;
|
|
10
10
|
chpId: string | null;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type Image = {
|
|
13
13
|
id: UUID;
|
|
14
14
|
title: string | null;
|
|
15
15
|
caption: string | null;
|
|
@@ -17,10 +17,10 @@ export declare type Image = {
|
|
|
17
17
|
crop: Crop | null;
|
|
18
18
|
crops: Crop[];
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type ImagesPaged = {
|
|
21
21
|
list: [Image];
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type Video = {
|
|
24
24
|
id: UUID;
|
|
25
25
|
caption: string | null;
|
|
26
26
|
brightcoveAccountId: string | null;
|
|
@@ -33,7 +33,7 @@ export declare type Video = {
|
|
|
33
33
|
title: string | null;
|
|
34
34
|
is360: boolean | null;
|
|
35
35
|
};
|
|
36
|
-
export
|
|
37
|
-
export
|
|
36
|
+
export type Media = Image | Video;
|
|
37
|
+
export type ImageArgs = {
|
|
38
38
|
ratio: string;
|
|
39
39
|
};
|
package/queries/menu.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { URL, UUID } from "../common";
|
|
2
2
|
import { Link } from "./link";
|
|
3
3
|
import { Page } from "./page";
|
|
4
|
-
export
|
|
4
|
+
export type MenuItemParent = {
|
|
5
5
|
id: UUID;
|
|
6
6
|
type: string;
|
|
7
7
|
url: URL;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type MenuItem = {
|
|
10
10
|
id: UUID;
|
|
11
11
|
title: string;
|
|
12
12
|
type: string;
|
|
@@ -14,7 +14,7 @@ export declare type MenuItem = {
|
|
|
14
14
|
link: Link;
|
|
15
15
|
page: Page | null;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type Menu = {
|
|
18
18
|
id: UUID;
|
|
19
19
|
type: string;
|
|
20
20
|
link: Link;
|
package/queries/page-tile.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { UUID, URL } from "../common";
|
|
2
2
|
import { Article } from "./article";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type PageTile = ArticleReference | CustomComponent | ExternalReference;
|
|
4
|
+
export type ArticleReference = {
|
|
5
5
|
articleId: UUID;
|
|
6
6
|
article: Article;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type CustomComponent = {
|
|
9
9
|
name: string;
|
|
10
10
|
url: string;
|
|
11
11
|
parameters: string;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type ExternalReference = {
|
|
14
14
|
headline: string;
|
|
15
15
|
url: string;
|
|
16
16
|
label: string;
|
|
17
17
|
image: PageImage | null;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type PageImage = {
|
|
20
20
|
url: URL;
|
|
21
21
|
};
|
package/queries/page.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Slug, UUID } from "../common";
|
|
2
2
|
import { Collection } from "./collection";
|
|
3
|
-
export
|
|
3
|
+
export type Page = {
|
|
4
4
|
id: UUID;
|
|
5
5
|
title: string;
|
|
6
6
|
titleSeo: string;
|
|
@@ -11,7 +11,7 @@ export declare type Page = {
|
|
|
11
11
|
socialCardImage: string;
|
|
12
12
|
body: Array<PageBlock | null> | null;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type PageArgs = {
|
|
15
15
|
page: Page;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type PageBlock = Collection;
|
package/queries/puff.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Colour } from "./colour";
|
|
2
2
|
import { ArticleLink, Link, Anchor } from "./link";
|
|
3
3
|
import { Image } from "./media";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type PuffMainLinkRef = ArticleLink | Link;
|
|
5
|
+
type PuffSecondaryLinkRef = ArticleLink | Link | Anchor;
|
|
6
|
+
type PuffSecondaryLink = {
|
|
7
7
|
label: string | null;
|
|
8
8
|
link: PuffSecondaryLinkRef | null;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type Puff = {
|
|
11
11
|
title: string;
|
|
12
12
|
colour: Colour;
|
|
13
13
|
mainLink: PuffMainLinkRef;
|
|
@@ -16,7 +16,7 @@ export declare type Puff = {
|
|
|
16
16
|
strapline: string | null;
|
|
17
17
|
leadImage: Image | null;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type PuffLite = {
|
|
20
20
|
title: string;
|
|
21
21
|
strapline: string;
|
|
22
22
|
mainLink: PuffMainLinkRef;
|
package/queries/puzzle.d.ts
CHANGED
package/queries/puzzles.d.ts
CHANGED
package/queries/query.d.ts
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { Slug, DateTime, ID, Cursor, UUID, DateFilter, Region, ShortDate } from "../common";
|
|
2
2
|
import { Edition } from "./edition";
|
|
3
3
|
import { GraphQLResolveInfo } from "graphql";
|
|
4
|
-
export
|
|
4
|
+
export type AuthorArgs = {
|
|
5
5
|
slug: Slug;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type ArticlesArgs = ListingArgs & {
|
|
8
8
|
parentId?: ID | null;
|
|
9
9
|
updatedBefore?: DateTime | null;
|
|
10
10
|
escenicId?: number | null;
|
|
11
11
|
graphQLResolveInfo?: GraphQLResolveInfo | null;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type DraftArticlesArgs = {
|
|
14
14
|
ids?: UUID[];
|
|
15
15
|
publishedBefore?: DateTime | null;
|
|
16
16
|
publishedSince?: DateTime | null;
|
|
17
17
|
updatedSince?: DateTime | null;
|
|
18
18
|
updatedBefore?: DateTime | null;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type EditionsArgs = ListingArgs & {
|
|
21
21
|
date?: ShortDate | null;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type PuzzlesArgs = {
|
|
24
24
|
editionDateSince?: ShortDate | null;
|
|
25
25
|
editionDateBefore?: ShortDate | null;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type PuzzleArgs = {
|
|
28
28
|
shortIdentifier: String;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type SectionArgs = {
|
|
31
31
|
includeFrontPage?: boolean;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type SlicesArgs = {
|
|
34
34
|
enableContainers?: boolean;
|
|
35
35
|
includePuffSlices?: Boolean;
|
|
36
36
|
};
|
|
37
|
-
export
|
|
37
|
+
export type TagsArgs = CursorPaginationArgs & {
|
|
38
38
|
ids?: UUID[];
|
|
39
39
|
dateFilter?: DateFilter;
|
|
40
40
|
term?: string;
|
|
41
41
|
isOverflow?: boolean;
|
|
42
42
|
};
|
|
43
|
-
export
|
|
43
|
+
export type EditionPaginationArgs = PaginationArgs & {
|
|
44
44
|
group: EditionGroupOptions;
|
|
45
45
|
region: Region;
|
|
46
46
|
};
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
|
|
47
|
+
export type EditionGroupOptions = "date";
|
|
48
|
+
export type ArticlesPaginationArgs = PaginationArgs;
|
|
49
|
+
export type DraftArticlesPaginationArgs = PaginationArgs;
|
|
50
|
+
type ListingArgs = {
|
|
51
51
|
ids?: ID[] | null;
|
|
52
52
|
updatedSince?: DateTime | null;
|
|
53
53
|
updatedSysdateSince?: DateTime | null;
|
|
@@ -55,16 +55,16 @@ declare type ListingArgs = {
|
|
|
55
55
|
publishedSince?: DateTime | null;
|
|
56
56
|
shortIdentifier?: string | null;
|
|
57
57
|
};
|
|
58
|
-
export
|
|
58
|
+
export type PaginationArgs = {
|
|
59
59
|
first: number;
|
|
60
60
|
skip: number;
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
type CursorPaginationArgs = {
|
|
63
63
|
first?: number;
|
|
64
64
|
cursor?: Cursor;
|
|
65
65
|
desc?: boolean;
|
|
66
66
|
};
|
|
67
|
-
export
|
|
67
|
+
export type EditionsPagedResult = {
|
|
68
68
|
list: [Edition];
|
|
69
69
|
};
|
|
70
70
|
export {};
|
package/queries/section.d.ts
CHANGED
|
@@ -2,24 +2,24 @@ import { UUID, Slug } from "../common";
|
|
|
2
2
|
import { Colour } from "./colour";
|
|
3
3
|
import { Image } from "./media";
|
|
4
4
|
import { StandardSectionSlice, MagazineSectionSlice, PuzzleSectionSlice, FrontPageSectionSlice } from "./slice";
|
|
5
|
-
|
|
5
|
+
type BasicSection = {
|
|
6
6
|
id: UUID;
|
|
7
7
|
title: string | null;
|
|
8
8
|
slug: Slug;
|
|
9
9
|
colour: Colour;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type StandardSection = BasicSection & {
|
|
12
12
|
slices: StandardSectionSlice[];
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type PuzzleSection = BasicSection & {
|
|
15
15
|
slices: PuzzleSectionSlice[];
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type MagazineSection = BasicSection & {
|
|
18
18
|
slices: MagazineSectionSlice[];
|
|
19
19
|
cover: Image;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type FrontPageSection = BasicSection & {
|
|
22
22
|
slices: FrontPageSectionSlice[];
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type Section = StandardSection | PuzzleSection | MagazineSection;
|
|
25
25
|
export {};
|
package/queries/slice.d.ts
CHANGED
|
@@ -4,73 +4,73 @@ import { Section } from "./section";
|
|
|
4
4
|
import { DailyUniversalRegister } from "./daily-universal-register";
|
|
5
5
|
import { Puzzle } from "./puzzle";
|
|
6
6
|
import { Collection } from "./collection";
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
7
|
+
export type ArticleSlice = StandardSlice | LeadOneAndTwoSlice | OpinionOneAndTwoSlice;
|
|
8
|
+
export type StandardSectionSlice = StandardSlice | CommentLeadAndCartoonSlice | LetterThundererPodcastSlice | CommentTwoAndNotebookSlice | FocusSlice | LeadersSlice | LeadOneAndFourSlice | SupplementLeadAndFourStackSlice | LeadOneAndOneSlice | LeadOneAndTwoSlice | LeadOneFullWidthSlice | LeadOneNoPicAndOneAndPortraitSlice | LeadTwoNoPicAndTwoSlice | ObituariesLeadAndTwoSlice | OpinionOneAndTwoSlice | SecondaryFourSlice | SecondaryOneSlice | SecondaryOneAndColumnistSlice | SecondaryOneAndFourSlice | SupplementSecondaryOneAndFourSlice | SecondaryTwoAndTwoSlice | SecondaryTwoNoPicAndTwoSlice | TwoPicAndSixNoPicSlice | PuffSlice | DailyUniversalRegister | ContainerSlice;
|
|
9
|
+
export type MagazineSectionSlice = StandardSlice | CommentLeadAndCartoonSlice | LetterThundererPodcastSlice | CommentTwoAndNotebookSlice | FocusSlice | LeadersSlice | LeadOneAndFourSlice | SupplementLeadAndFourStackSlice | LeadOneAndOneSlice | LeadOneAndTwoSlice | LeadOneFullWidthSlice | LeadOneNoPicAndOneAndPortraitSlice | LeadTwoNoPicAndTwoSlice | ObituariesLeadAndTwoSlice | OpinionOneAndTwoSlice | SecondaryFourSlice | SecondaryOneSlice | SecondaryOneAndColumnistSlice | SecondaryOneAndFourSlice | SupplementSecondaryOneAndFourSlice | SecondaryTwoAndTwoSlice | SecondaryTwoNoPicAndTwoSlice | TwoPicAndSixNoPicSlice | PuffSlice | ContainerSlice;
|
|
10
|
+
export type PuzzleSectionSlice = Puzzle | PuffSlice;
|
|
11
|
+
export type FrontPageSectionSlice = InTheNewsSlice | LeadTwoFrontSlice | LeadTwoNoPicAndTwoFrontSlice | LeadOneAndOneFrontSlice | LeadOneFullWidthFrontSlice;
|
|
12
|
+
export type StandardSlice = {
|
|
13
13
|
items: Tile[];
|
|
14
14
|
sections: Section[];
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type CommentLeadAndCartoonSlice = StandardSlice & {
|
|
17
17
|
lead: Tile;
|
|
18
18
|
cartoon: Tile;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
21
|
-
export
|
|
20
|
+
export type InTheNewsSlice = PuffSlice;
|
|
21
|
+
export type LetterThundererPodcastSlice = StandardSlice & {
|
|
22
22
|
letter: Tile;
|
|
23
23
|
thunderer: Tile;
|
|
24
24
|
podcast: Tile;
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export type CommentTwoAndNotebookSlice = StandardSlice & {
|
|
27
27
|
main1: Tile;
|
|
28
28
|
main2: Tile;
|
|
29
29
|
notebook: Tile;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type FocusSlice = StandardSlice & {
|
|
32
32
|
main: Tile;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type LeadersSlice = StandardSlice & {
|
|
35
35
|
leader1: Tile;
|
|
36
36
|
leader2: Tile;
|
|
37
37
|
leader3: Tile;
|
|
38
38
|
};
|
|
39
|
-
export
|
|
39
|
+
export type LeadOneAndFourSlice = StandardSlice & {
|
|
40
40
|
lead: Tile;
|
|
41
41
|
support1: Tile;
|
|
42
42
|
support2: Tile;
|
|
43
43
|
support3: Tile;
|
|
44
44
|
support4: Tile;
|
|
45
45
|
};
|
|
46
|
-
export
|
|
46
|
+
export type SupplementLeadAndFourStackSlice = StandardSlice & {
|
|
47
47
|
lead: Tile;
|
|
48
48
|
support1: Tile;
|
|
49
49
|
support2: Tile;
|
|
50
50
|
support3: Tile;
|
|
51
51
|
support4: Tile;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
53
|
+
export type LeadOneAndOneSlice = StandardSlice & {
|
|
54
54
|
lead: Tile;
|
|
55
55
|
support: Tile;
|
|
56
56
|
leadBullet1: Tile | null;
|
|
57
57
|
leadBullet2: Tile | null;
|
|
58
58
|
leadBullet3: Tile | null;
|
|
59
59
|
};
|
|
60
|
-
export
|
|
60
|
+
export type LeadOneAndTwoSlice = StandardSlice & {
|
|
61
61
|
lead: Tile;
|
|
62
62
|
support1: Tile;
|
|
63
63
|
support2: Tile;
|
|
64
64
|
};
|
|
65
|
-
export
|
|
65
|
+
export type LeadOneFullWidthSlice = StandardSlice & {
|
|
66
66
|
lead: Tile;
|
|
67
67
|
};
|
|
68
|
-
export
|
|
68
|
+
export type LeadOneNoPicAndOneAndPortraitSlice = StandardSlice & {
|
|
69
69
|
lead: Tile;
|
|
70
70
|
support: Tile;
|
|
71
71
|
portrait: Tile;
|
|
72
72
|
};
|
|
73
|
-
export
|
|
73
|
+
export type LeadTwoNoPicAndTwoSlice = StandardSlice & {
|
|
74
74
|
lead1: Tile;
|
|
75
75
|
lead2: Tile;
|
|
76
76
|
support1: Tile;
|
|
@@ -79,56 +79,56 @@ export declare type LeadTwoNoPicAndTwoSlice = StandardSlice & {
|
|
|
79
79
|
lead1Bullet2: Tile | null;
|
|
80
80
|
lead1Bullet3: Tile | null;
|
|
81
81
|
};
|
|
82
|
-
export
|
|
82
|
+
export type ObituariesLeadAndTwoSlice = StandardSlice & {
|
|
83
83
|
lead: Tile;
|
|
84
84
|
support1: Tile;
|
|
85
85
|
support2: Tile;
|
|
86
86
|
};
|
|
87
|
-
export
|
|
87
|
+
export type OpinionOneAndTwoSlice = StandardSlice & {
|
|
88
88
|
opinion: Tile;
|
|
89
89
|
support1: Tile;
|
|
90
90
|
support2: Tile;
|
|
91
91
|
};
|
|
92
|
-
export
|
|
92
|
+
export type SecondaryFourSlice = StandardSlice & {
|
|
93
93
|
secondary1: Tile;
|
|
94
94
|
secondary2: Tile;
|
|
95
95
|
secondary3: Tile;
|
|
96
96
|
secondary4: Tile;
|
|
97
97
|
};
|
|
98
|
-
export
|
|
98
|
+
export type SecondaryOneSlice = StandardSlice & {
|
|
99
99
|
secondary: Tile;
|
|
100
100
|
};
|
|
101
|
-
export
|
|
101
|
+
export type SecondaryOneAndColumnistSlice = StandardSlice & {
|
|
102
102
|
secondary: Tile;
|
|
103
103
|
columnist: Tile;
|
|
104
104
|
};
|
|
105
|
-
export
|
|
105
|
+
export type SecondaryOneAndFourSlice = StandardSlice & {
|
|
106
106
|
secondary: Tile;
|
|
107
107
|
support1: Tile;
|
|
108
108
|
support2: Tile;
|
|
109
109
|
support3: Tile;
|
|
110
110
|
support4: Tile;
|
|
111
111
|
};
|
|
112
|
-
export
|
|
112
|
+
export type SupplementSecondaryOneAndFourSlice = StandardSlice & {
|
|
113
113
|
secondary: Tile;
|
|
114
114
|
support1: Tile;
|
|
115
115
|
support2: Tile;
|
|
116
116
|
support3: Tile;
|
|
117
117
|
support4: Tile;
|
|
118
118
|
};
|
|
119
|
-
export
|
|
119
|
+
export type SecondaryTwoAndTwoSlice = StandardSlice & {
|
|
120
120
|
secondary1: Tile;
|
|
121
121
|
secondary2: Tile;
|
|
122
122
|
support1: Tile;
|
|
123
123
|
support2: Tile;
|
|
124
124
|
};
|
|
125
|
-
export
|
|
125
|
+
export type SecondaryTwoNoPicAndTwoSlice = StandardSlice & {
|
|
126
126
|
secondary1: Tile;
|
|
127
127
|
secondary2: Tile;
|
|
128
128
|
support1: Tile;
|
|
129
129
|
support2: Tile;
|
|
130
130
|
};
|
|
131
|
-
export
|
|
131
|
+
export type TwoPicAndSixNoPicSlice = StandardSlice & {
|
|
132
132
|
lead1: Tile;
|
|
133
133
|
lead2: Tile;
|
|
134
134
|
support1: Tile;
|
|
@@ -138,26 +138,26 @@ export declare type TwoPicAndSixNoPicSlice = StandardSlice & {
|
|
|
138
138
|
support5: Tile;
|
|
139
139
|
support6: Tile;
|
|
140
140
|
};
|
|
141
|
-
export
|
|
141
|
+
export type PuffSlice = {
|
|
142
142
|
items: Puff[];
|
|
143
143
|
};
|
|
144
|
-
export
|
|
144
|
+
export type ContainerSlice = StandardSlice & {
|
|
145
145
|
collection: Collection;
|
|
146
146
|
};
|
|
147
|
-
export
|
|
147
|
+
export type LeadTwoNoPicAndTwoFrontSlice = StandardSlice & {
|
|
148
148
|
lead1: Tile;
|
|
149
149
|
lead2: Tile;
|
|
150
150
|
support1: Tile;
|
|
151
151
|
support2: Tile;
|
|
152
152
|
};
|
|
153
|
-
export
|
|
153
|
+
export type LeadTwoFrontSlice = StandardSlice & {
|
|
154
154
|
lead1: Tile;
|
|
155
155
|
lead2: Tile;
|
|
156
156
|
};
|
|
157
|
-
export
|
|
157
|
+
export type LeadOneAndOneFrontSlice = StandardSlice & {
|
|
158
158
|
lead: Tile;
|
|
159
159
|
support: Tile;
|
|
160
160
|
};
|
|
161
|
-
export
|
|
161
|
+
export type LeadOneFullWidthFrontSlice = StandardSlice & {
|
|
162
162
|
lead: Tile;
|
|
163
163
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Slug } from "../common";
|
|
2
2
|
import { PageTile } from "./page-tile";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type StandardPageSlice = PageSlice | TopicAuthorSlice;
|
|
4
|
+
export type PageSlice = {
|
|
5
5
|
name: string;
|
|
6
6
|
children: PageTile[];
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type TopicAuthorSlice = {
|
|
9
9
|
topic: Slug;
|
|
10
10
|
articles: PageTile[];
|
|
11
11
|
};
|
package/queries/synonym.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UUID } from "../common";
|
|
2
|
-
export
|
|
2
|
+
export type Synonym = {
|
|
3
3
|
id: UUID;
|
|
4
4
|
tagId: UUID;
|
|
5
5
|
name: string;
|
|
6
6
|
type: SynonymType;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type SynonymType = "UNKNOWN" | "PERSON" | "LOCATION" | "ORGANIZATION" | "EVENT" | "WORK_OF_ART" | "CONSUMER_GOOD" | "OTHER" | "CONCEPT" | "BRAND" | "SPORT" | "IDENTIFIER" | "CATEGORY" | "SUBJECT" | "GROUP" | "BAND" | "TEAM" | "COMPETITION" | "COUNTRY" | "CAMPAIGN" | "CONTENT_TYPE";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Connection, Edge } from "../common";
|
|
2
2
|
import { Article } from "./article";
|
|
3
|
-
|
|
3
|
+
type TagArticleEdge = Edge<Article> & {
|
|
4
4
|
combinedScore: number;
|
|
5
5
|
scoreOverride: number | null;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type TagArticleConnection = Connection<Article> & {
|
|
8
8
|
edges: TagArticleEdge[];
|
|
9
9
|
};
|
|
10
10
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Connection, Edge } from "../common";
|
|
2
2
|
import { DraftArticle } from "./draft-article";
|
|
3
|
-
|
|
3
|
+
type TagDraftArticleEdge = Edge<DraftArticle> & {
|
|
4
4
|
combinedScore: number;
|
|
5
5
|
scoreOverride: number | null;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type TagDraftArticleConnection = Connection<DraftArticle> & {
|
|
8
8
|
edges: TagDraftArticleEdge[];
|
|
9
9
|
};
|
|
10
10
|
export {};
|
package/queries/tag.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { SynonymConnection } from "./synonym-connection";
|
|
|
3
3
|
import { TagArticleConnection } from "./tag-article-connection";
|
|
4
4
|
import { TagDraftArticleConnection } from "./tag-draft-article-connection";
|
|
5
5
|
import { Synonym } from "./synonym";
|
|
6
|
-
export
|
|
6
|
+
export type Tag = {
|
|
7
7
|
id: UUID;
|
|
8
8
|
primarySynonym: Synonym;
|
|
9
9
|
description: string | null;
|
package/queries/tile.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Article } from "./article";
|
|
|
2
2
|
import { Media } from "./media";
|
|
3
3
|
import { Markup, UUID } from "../common";
|
|
4
4
|
import { ArticleSlice } from "./slice";
|
|
5
|
-
export
|
|
5
|
+
export type Tile = {
|
|
6
6
|
articleId: UUID;
|
|
7
7
|
article: Article;
|
|
8
8
|
headline: string | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Cursor, PageInfo } from "../common";
|
|
2
2
|
import { Tag } from "./tag";
|
|
3
|
-
export
|
|
3
|
+
export type TopicTagConnection = {
|
|
4
4
|
edges: TopicTagEdge[];
|
|
5
5
|
nodes: Tag[];
|
|
6
6
|
pageInfo: PageInfo;
|
|
7
7
|
totalCount: number;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type TopicTagEdge = {
|
|
10
10
|
node: Tag;
|
|
11
11
|
cursor: Cursor;
|
|
12
12
|
scoreThreshold: number;
|
package/queries/topic.d.ts
CHANGED
|
@@ -5,15 +5,15 @@ import { DraftArticle } from "./draft-article";
|
|
|
5
5
|
import { TopicArticleConnection } from "./topic-article-connection";
|
|
6
6
|
import { TopicDraftArticleConnection } from "./topic-draft-article-connection";
|
|
7
7
|
import { Image } from "./media";
|
|
8
|
-
export
|
|
8
|
+
export type TopicArticleIds = {
|
|
9
9
|
ids: UUID[];
|
|
10
10
|
count: number;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type TopicDraftArticleIds = {
|
|
13
13
|
ids: UUID[];
|
|
14
14
|
count: number;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type Topic = {
|
|
17
17
|
id: UUID | null;
|
|
18
18
|
articles: TopicArticles;
|
|
19
19
|
draftArticles: TopicDraftArticles;
|
|
@@ -28,15 +28,15 @@ export declare type Topic = {
|
|
|
28
28
|
leadImage: Image | null;
|
|
29
29
|
metaDescription: string | null;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type TopicArticles = {
|
|
32
32
|
count: number;
|
|
33
33
|
list: Article[];
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type TopicDraftArticles = {
|
|
36
36
|
count: number;
|
|
37
37
|
list: DraftArticle[];
|
|
38
38
|
};
|
|
39
|
-
export
|
|
39
|
+
export type TopicConnection = {
|
|
40
40
|
nodes: Topic[];
|
|
41
41
|
pageInfo: PageInfo;
|
|
42
42
|
totalCount: number;
|
package/queries/user.d.ts
CHANGED