@thetimes/times-public-api-types 1.0.3654 → 1.0.3657
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/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./queries/articles";
|
|
|
7
7
|
export * from "./queries/author";
|
|
8
8
|
export * from "./queries/bookmark";
|
|
9
9
|
export * from "./queries/bylines";
|
|
10
|
+
export * from "./queries/collection";
|
|
10
11
|
export * from "./queries/colour";
|
|
11
12
|
export * from "./queries/daily-universal-register";
|
|
12
13
|
export * from "./queries/draft-article";
|
|
@@ -44,6 +45,7 @@ export * from "./mutations/author-create-input";
|
|
|
44
45
|
export * from "./mutations/author-update-input";
|
|
45
46
|
export * from "./mutations/bookmark-save-input";
|
|
46
47
|
export * from "./mutations/bookmark-unsave-input";
|
|
48
|
+
export * from "./mutations/collection-input";
|
|
47
49
|
export * from "./mutations/daily-universal-register-input";
|
|
48
50
|
export * from "./mutations/draft-article-input";
|
|
49
51
|
export * from "./mutations/draft-article-slice-input";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StandardSectionSliceInput } from "./section-input";
|
|
2
|
+
import { URL } from "../common";
|
|
3
|
+
export declare type CollectionInput = {
|
|
4
|
+
title: string | null;
|
|
5
|
+
link: CollectionLinkInput;
|
|
6
|
+
slices: StandardSectionSliceInput[];
|
|
7
|
+
};
|
|
8
|
+
export declare type CollectionLinkInput = {
|
|
9
|
+
url: URL | null;
|
|
10
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UUID, Slug } from "../common";
|
|
2
2
|
import { Colour } from "../queries/colour";
|
|
3
3
|
import { ImageInput } from "./article-input";
|
|
4
|
-
import { StandardSliceInput, CommentLeadAndCartoonSliceInput, LetterThundererPodcastSliceInput, CommentTwoAndNotebookSliceInput, FocusSliceInput, LeadersSliceInput, LeadOneAndFourSliceInput, LeadOneAndOneSliceInput, LeadOneAndTwoSliceInput, LeadOneFullWidthSliceInput, LeadOneNoPicAndOneAndPortraitSliceInput, LeadTwoNoPicAndTwoSliceInput, ObituariesLeadAndTwoSliceInput, OpinionOneAndTwoSliceInput, SecondaryFourSliceInput, SecondaryOneSliceInput, SecondaryOneAndColumnistSliceInput, SecondaryOneAndFourSliceInput, SecondaryTwoAndTwoSliceInput, SecondaryTwoNoPicAndTwoSliceInput, TwoPicAndSixNoPicSliceInput, PuffSliceInput, InTheNewsSliceInput, SupplementLeadAndFourStackSliceInput, SupplementSecondaryOneAndFourSliceInput } from "./slice-input";
|
|
4
|
+
import { StandardSliceInput, CommentLeadAndCartoonSliceInput, LetterThundererPodcastSliceInput, CommentTwoAndNotebookSliceInput, ContainerSliceInput, FocusSliceInput, LeadersSliceInput, LeadOneAndFourSliceInput, LeadOneAndOneSliceInput, LeadOneAndTwoSliceInput, LeadOneFullWidthSliceInput, LeadOneNoPicAndOneAndPortraitSliceInput, LeadTwoNoPicAndTwoSliceInput, ObituariesLeadAndTwoSliceInput, OpinionOneAndTwoSliceInput, SecondaryFourSliceInput, SecondaryOneSliceInput, SecondaryOneAndColumnistSliceInput, SecondaryOneAndFourSliceInput, SecondaryTwoAndTwoSliceInput, SecondaryTwoNoPicAndTwoSliceInput, TwoPicAndSixNoPicSliceInput, PuffSliceInput, InTheNewsSliceInput, SupplementLeadAndFourStackSliceInput, SupplementSecondaryOneAndFourSliceInput } from "./slice-input";
|
|
5
5
|
import { DailyUniversalRegisterInput } from "./daily-universal-register-input";
|
|
6
6
|
import { PuzzleInput } from "./puzzle-input";
|
|
7
7
|
export declare type SectionInput = {
|
|
@@ -30,6 +30,7 @@ export declare type MagazineSectionSliceInput = {
|
|
|
30
30
|
commentLeadAndCartoonSlice?: CommentLeadAndCartoonSliceInput | null;
|
|
31
31
|
letterThundererPodcastSlice?: LetterThundererPodcastSliceInput | null;
|
|
32
32
|
commentTwoAndNotebookSlice?: CommentTwoAndNotebookSliceInput | null;
|
|
33
|
+
containerSlice?: ContainerSliceInput | null;
|
|
33
34
|
focusSlice?: FocusSliceInput | null;
|
|
34
35
|
leadersSlice?: LeadersSliceInput | null;
|
|
35
36
|
leadOneAndFourSlice?: LeadOneAndFourSliceInput | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TileInput } from "./tile-input";
|
|
2
2
|
import { PuffInput, PuffLiteInput } from "./puff-input";
|
|
3
|
+
import { CollectionInput } from "./collection-input";
|
|
3
4
|
export declare type StandardSliceInput = {
|
|
4
5
|
items: TileInput[];
|
|
5
6
|
};
|
|
@@ -20,6 +21,9 @@ export declare type CommentTwoAndNotebookSliceInput = {
|
|
|
20
21
|
main2: TileInput;
|
|
21
22
|
notebook: TileInput;
|
|
22
23
|
};
|
|
24
|
+
export declare type ContainerSliceInput = {
|
|
25
|
+
collection: CollectionInput;
|
|
26
|
+
};
|
|
23
27
|
export declare type FocusSliceInput = {
|
|
24
28
|
main: TileInput;
|
|
25
29
|
};
|
package/package.json
CHANGED
package/queries/query.d.ts
CHANGED
|
@@ -25,6 +25,9 @@ export declare type PuzzlesArgs = {
|
|
|
25
25
|
export declare type SectionArgs = {
|
|
26
26
|
includeFrontPage?: boolean;
|
|
27
27
|
};
|
|
28
|
+
export declare type SlicesArgs = {
|
|
29
|
+
enableContainers?: boolean;
|
|
30
|
+
};
|
|
28
31
|
export declare type TagsArgs = CursorPaginationArgs & {
|
|
29
32
|
ids?: UUID[];
|
|
30
33
|
dateFilter?: DateFilter;
|
package/queries/slice.d.ts
CHANGED
|
@@ -3,9 +3,10 @@ import { Puff } from "./puff";
|
|
|
3
3
|
import { Section } from "./section";
|
|
4
4
|
import { DailyUniversalRegister } from "./daily-universal-register";
|
|
5
5
|
import { Puzzle } from "./puzzle";
|
|
6
|
+
import { Collection } from "./collection";
|
|
6
7
|
export declare type ArticleSlice = StandardSlice | LeadOneAndTwoSlice | OpinionOneAndTwoSlice;
|
|
7
|
-
export declare 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;
|
|
8
|
-
export declare 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;
|
|
8
|
+
export declare 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 declare 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;
|
|
9
10
|
export declare type PuzzleSectionSlice = Puzzle | PuffSlice;
|
|
10
11
|
export declare type FrontPageSectionSlice = InTheNewsSlice | LeadTwoFrontSlice | LeadTwoNoPicAndTwoFrontSlice | LeadOneAndOneFrontSlice | LeadOneFullWidthFrontSlice;
|
|
11
12
|
export declare type StandardSlice = {
|
|
@@ -140,6 +141,9 @@ export declare type TwoPicAndSixNoPicSlice = StandardSlice & {
|
|
|
140
141
|
export declare type PuffSlice = {
|
|
141
142
|
items: Puff[];
|
|
142
143
|
};
|
|
144
|
+
export declare type ContainerSlice = StandardSlice & {
|
|
145
|
+
collection: Collection;
|
|
146
|
+
};
|
|
143
147
|
export declare type LeadTwoNoPicAndTwoFrontSlice = StandardSlice & {
|
|
144
148
|
lead1: Tile;
|
|
145
149
|
lead2: Tile;
|