@financial-times/cp-content-pipeline-client 0.2.0
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/.toolkitrc.yml +27 -0
- package/CHANGELOG.md +47 -0
- package/README.md +25 -0
- package/codegen.yml +15 -0
- package/lib/generated/index.d.ts +2076 -0
- package/lib/generated/index.js +350 -0
- package/lib/generated/index.js.map +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +33 -0
- package/lib/index.js.map +1 -0
- package/loader.js +11 -0
- package/package.json +35 -0
- package/queries/article.graphql +290 -0
- package/src/generated/index.ts +720 -0
- package/src/generated/readme.md +3 -0
- package/src/index.ts +28 -0
- package/tsconfig.json +15 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,720 @@
|
|
|
1
|
+
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
import * as Dom from 'graphql-request/dist/types.dom';
|
|
3
|
+
import gql from 'graphql-tag';
|
|
4
|
+
export type Maybe<T> = T;
|
|
5
|
+
export type InputMaybe<T> = T;
|
|
6
|
+
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
|
7
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
8
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
9
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
10
|
+
export type Scalars = {
|
|
11
|
+
ID: string;
|
|
12
|
+
String: string;
|
|
13
|
+
Boolean: boolean;
|
|
14
|
+
Int: number;
|
|
15
|
+
Float: number;
|
|
16
|
+
JSON: any;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export enum AccessLevel {
|
|
20
|
+
Free = 'free',
|
|
21
|
+
Premium = 'premium',
|
|
22
|
+
Registered = 'registered',
|
|
23
|
+
Subscribed = 'subscribed'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type AltStandfirst = {
|
|
27
|
+
readonly __typename?: 'AltStandfirst';
|
|
28
|
+
readonly promotionalStandfirst?: Maybe<Scalars['String']>;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type AltTitle = {
|
|
32
|
+
readonly __typename?: 'AltTitle';
|
|
33
|
+
readonly promotionalTitle?: Maybe<Scalars['String']>;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type BasicTopper = Topper & {
|
|
37
|
+
readonly __typename?: 'BasicTopper';
|
|
38
|
+
readonly backgroundColour?: Maybe<TopperBackgroundColour>;
|
|
39
|
+
readonly displayConcept?: Maybe<Concept>;
|
|
40
|
+
readonly headline: Scalars['String'];
|
|
41
|
+
readonly intro?: Maybe<RichText>;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type BrandedTopper = Topper & TopperWithTheme & {
|
|
45
|
+
readonly __typename?: 'BrandedTopper';
|
|
46
|
+
readonly backgroundColour?: Maybe<TopperBackgroundColour>;
|
|
47
|
+
readonly brandConcept?: Maybe<Concept>;
|
|
48
|
+
readonly displayConcept?: Maybe<Concept>;
|
|
49
|
+
readonly headline: Scalars['String'];
|
|
50
|
+
readonly intro?: Maybe<RichText>;
|
|
51
|
+
readonly isLargeHeadline?: Maybe<Scalars['Boolean']>;
|
|
52
|
+
readonly layout?: Maybe<Scalars['String']>;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type Concept = {
|
|
56
|
+
readonly __typename?: 'Concept';
|
|
57
|
+
readonly apiUrl: Scalars['String'];
|
|
58
|
+
readonly directType?: Maybe<Scalars['String']>;
|
|
59
|
+
readonly id: Scalars['String'];
|
|
60
|
+
readonly predicate: Scalars['String'];
|
|
61
|
+
readonly prefLabel: Scalars['String'];
|
|
62
|
+
readonly type: Scalars['String'];
|
|
63
|
+
readonly types: ReadonlyArray<Scalars['String']>;
|
|
64
|
+
readonly url: Scalars['String'];
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
export type ConceptUrlArgs = {
|
|
69
|
+
relative?: InputMaybe<Scalars['Boolean']>;
|
|
70
|
+
vanity?: InputMaybe<Scalars['Boolean']>;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export type Content = {
|
|
74
|
+
readonly __typename?: 'Content';
|
|
75
|
+
readonly altStandfirst?: Maybe<AltStandfirst>;
|
|
76
|
+
readonly altTitle?: Maybe<AltTitle>;
|
|
77
|
+
readonly body: RichText;
|
|
78
|
+
readonly bodyXML: Scalars['String'];
|
|
79
|
+
readonly byline: StructuredContent;
|
|
80
|
+
readonly firstPublishedDate: Scalars['String'];
|
|
81
|
+
readonly id: Scalars['String'];
|
|
82
|
+
readonly indicators: Indicators;
|
|
83
|
+
readonly mainImage?: Maybe<Image>;
|
|
84
|
+
readonly metaAltLink?: Maybe<Concept>;
|
|
85
|
+
readonly metaLink?: Maybe<Concept>;
|
|
86
|
+
readonly metaPrefixText?: Maybe<Scalars['String']>;
|
|
87
|
+
readonly metaSuffixText?: Maybe<Scalars['String']>;
|
|
88
|
+
readonly publishedDate: Scalars['String'];
|
|
89
|
+
readonly standfirst?: Maybe<Scalars['String']>;
|
|
90
|
+
readonly title: Scalars['String'];
|
|
91
|
+
readonly topper?: Maybe<Topper>;
|
|
92
|
+
readonly type: Scalars['String'];
|
|
93
|
+
readonly url: Scalars['String'];
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
export type ContentUrlArgs = {
|
|
98
|
+
relative?: InputMaybe<Scalars['Boolean']>;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export type FtContent = {
|
|
102
|
+
readonly __typename?: 'FTContent';
|
|
103
|
+
readonly type?: Maybe<Scalars['String']>;
|
|
104
|
+
readonly url?: Maybe<Scalars['String']>;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export type FullBleedTopper = Topper & TopperWithImages & TopperWithTheme & {
|
|
108
|
+
readonly __typename?: 'FullBleedTopper';
|
|
109
|
+
readonly backgroundColour?: Maybe<TopperBackgroundColour>;
|
|
110
|
+
readonly displayConcept?: Maybe<Concept>;
|
|
111
|
+
readonly headline: Scalars['String'];
|
|
112
|
+
readonly images?: Maybe<TopperImages>;
|
|
113
|
+
readonly intro?: Maybe<RichText>;
|
|
114
|
+
readonly isLargeHeadline?: Maybe<Scalars['Boolean']>;
|
|
115
|
+
readonly layout?: Maybe<Scalars['String']>;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export type Image = {
|
|
119
|
+
readonly __typename?: 'Image';
|
|
120
|
+
readonly alt: Scalars['String'];
|
|
121
|
+
readonly binaryUrl?: Maybe<Scalars['String']>;
|
|
122
|
+
readonly caption: Scalars['String'];
|
|
123
|
+
readonly copyright?: Maybe<Scalars['String']>;
|
|
124
|
+
readonly maxDisplayWidth?: Maybe<Scalars['String']>;
|
|
125
|
+
readonly minDisplayWidth?: Maybe<Scalars['String']>;
|
|
126
|
+
readonly originalHeight?: Maybe<Scalars['Int']>;
|
|
127
|
+
readonly originalWidth?: Maybe<Scalars['Int']>;
|
|
128
|
+
readonly sources: ReadonlyArray<ImageSource>;
|
|
129
|
+
readonly type?: Maybe<ImageType>;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
export type ImageMaxDisplayWidthArgs = {
|
|
134
|
+
width?: InputMaybe<Scalars['Int']>;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
export type ImageMinDisplayWidthArgs = {
|
|
139
|
+
width?: InputMaybe<Scalars['Int']>;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
export type ImageSourcesArgs = {
|
|
144
|
+
maxDpr?: InputMaybe<Scalars['Int']>;
|
|
145
|
+
width?: InputMaybe<Scalars['Int']>;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
export type ImageSet = {
|
|
149
|
+
readonly __typename?: 'ImageSet';
|
|
150
|
+
readonly picture: Picture;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export type ImageSource = {
|
|
154
|
+
readonly __typename?: 'ImageSource';
|
|
155
|
+
readonly dpr?: Maybe<Scalars['Int']>;
|
|
156
|
+
readonly url: Scalars['String'];
|
|
157
|
+
readonly width?: Maybe<Scalars['Int']>;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export enum ImageType {
|
|
161
|
+
Graphic = 'Graphic',
|
|
162
|
+
Image = 'Image'
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export type Indicators = {
|
|
166
|
+
readonly __typename?: 'Indicators';
|
|
167
|
+
readonly accessLevel?: Maybe<AccessLevel>;
|
|
168
|
+
readonly isColumn?: Maybe<Scalars['Boolean']>;
|
|
169
|
+
readonly isEditorsChoice?: Maybe<Scalars['Boolean']>;
|
|
170
|
+
readonly isExclusive?: Maybe<Scalars['Boolean']>;
|
|
171
|
+
readonly isOpinion?: Maybe<Scalars['Boolean']>;
|
|
172
|
+
readonly isPodcast?: Maybe<Scalars['Boolean']>;
|
|
173
|
+
readonly isScoop?: Maybe<Scalars['Boolean']>;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
export type LayoutImage = {
|
|
177
|
+
readonly __typename?: 'LayoutImage';
|
|
178
|
+
readonly picture: Picture;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export type Link = {
|
|
182
|
+
readonly __typename?: 'Link';
|
|
183
|
+
readonly href?: Maybe<Scalars['String']>;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export type OpinionTopper = Topper & TopperWithHeadshot & TopperWithTheme & {
|
|
187
|
+
readonly __typename?: 'OpinionTopper';
|
|
188
|
+
readonly backgroundColour?: Maybe<TopperBackgroundColour>;
|
|
189
|
+
readonly columnist?: Maybe<Concept>;
|
|
190
|
+
readonly displayConcept?: Maybe<Concept>;
|
|
191
|
+
readonly headline: Scalars['String'];
|
|
192
|
+
readonly headshot?: Maybe<Scalars['String']>;
|
|
193
|
+
readonly intro?: Maybe<RichText>;
|
|
194
|
+
readonly isLargeHeadline?: Maybe<Scalars['Boolean']>;
|
|
195
|
+
readonly layout?: Maybe<Scalars['String']>;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
export type OpinionTopperHeadshotArgs = {
|
|
200
|
+
dpr?: InputMaybe<Scalars['Int']>;
|
|
201
|
+
width?: InputMaybe<Scalars['Int']>;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export type Picture = {
|
|
205
|
+
readonly alt: Scalars['String'];
|
|
206
|
+
readonly caption?: Maybe<Scalars['String']>;
|
|
207
|
+
readonly imageType: ImageType;
|
|
208
|
+
readonly images?: Maybe<PictureImages>;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export type PictureFullBleed = Picture & {
|
|
212
|
+
readonly __typename?: 'PictureFullBleed';
|
|
213
|
+
readonly alt: Scalars['String'];
|
|
214
|
+
readonly caption?: Maybe<Scalars['String']>;
|
|
215
|
+
readonly imageType: ImageType;
|
|
216
|
+
readonly images?: Maybe<PictureImages>;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
export type PictureImages = {
|
|
220
|
+
readonly __typename?: 'PictureImages';
|
|
221
|
+
readonly large?: Maybe<Image>;
|
|
222
|
+
readonly small?: Maybe<Image>;
|
|
223
|
+
readonly standard: Image;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
export type PictureInline = Picture & {
|
|
227
|
+
readonly __typename?: 'PictureInline';
|
|
228
|
+
readonly alt: Scalars['String'];
|
|
229
|
+
readonly caption?: Maybe<Scalars['String']>;
|
|
230
|
+
readonly imageType: ImageType;
|
|
231
|
+
readonly images?: Maybe<PictureImages>;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export type PictureStandard = Picture & {
|
|
235
|
+
readonly __typename?: 'PictureStandard';
|
|
236
|
+
readonly alt: Scalars['String'];
|
|
237
|
+
readonly caption?: Maybe<Scalars['String']>;
|
|
238
|
+
readonly imageType: ImageType;
|
|
239
|
+
readonly images?: Maybe<PictureImages>;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
export type Query = {
|
|
243
|
+
readonly __typename?: 'Query';
|
|
244
|
+
readonly content: Content;
|
|
245
|
+
readonly contentFromJSON: Content;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
export type QueryContentArgs = {
|
|
250
|
+
uuid: Scalars['String'];
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
export type QueryContentFromJsonArgs = {
|
|
255
|
+
content: Scalars['JSON'];
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
export type Recommended = {
|
|
259
|
+
readonly __typename?: 'Recommended';
|
|
260
|
+
readonly teaser: Content;
|
|
261
|
+
readonly title: Scalars['String'];
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export type Reference = FtContent | ImageSet | LayoutImage | Link | Recommended;
|
|
265
|
+
|
|
266
|
+
export type RichText = {
|
|
267
|
+
readonly __typename?: 'RichText';
|
|
268
|
+
readonly raw: Scalars['String'];
|
|
269
|
+
readonly source: Source;
|
|
270
|
+
readonly structured: StructuredContent;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
export enum Source {
|
|
274
|
+
Standfirst = 'standfirst',
|
|
275
|
+
Summary = 'summary'
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export type SplitTextTopper = Topper & TopperWithImages & TopperWithTheme & {
|
|
279
|
+
readonly __typename?: 'SplitTextTopper';
|
|
280
|
+
readonly backgroundColour?: Maybe<TopperBackgroundColour>;
|
|
281
|
+
readonly displayConcept?: Maybe<Concept>;
|
|
282
|
+
readonly headline: Scalars['String'];
|
|
283
|
+
readonly images?: Maybe<TopperImages>;
|
|
284
|
+
readonly intro?: Maybe<RichText>;
|
|
285
|
+
readonly isLargeHeadline?: Maybe<Scalars['Boolean']>;
|
|
286
|
+
readonly layout?: Maybe<Scalars['String']>;
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
export type StructuredContent = {
|
|
290
|
+
readonly __typename?: 'StructuredContent';
|
|
291
|
+
readonly references: ReadonlyArray<Reference>;
|
|
292
|
+
readonly tree: Scalars['JSON'];
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
export type Topper = {
|
|
296
|
+
readonly backgroundColour?: Maybe<TopperBackgroundColour>;
|
|
297
|
+
readonly displayConcept?: Maybe<Concept>;
|
|
298
|
+
readonly headline: Scalars['String'];
|
|
299
|
+
readonly intro?: Maybe<RichText>;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
export enum TopperBackgroundColour {
|
|
303
|
+
Black = 'black',
|
|
304
|
+
Claret = 'claret',
|
|
305
|
+
Crimson = 'crimson',
|
|
306
|
+
Oxford = 'oxford',
|
|
307
|
+
Paper = 'paper',
|
|
308
|
+
Sky = 'sky',
|
|
309
|
+
Slate = 'slate',
|
|
310
|
+
Wheat = 'wheat',
|
|
311
|
+
White = 'white'
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export type TopperImages = {
|
|
315
|
+
readonly __typename?: 'TopperImages';
|
|
316
|
+
readonly fallback?: Maybe<Image>;
|
|
317
|
+
readonly square?: Maybe<Image>;
|
|
318
|
+
readonly standard?: Maybe<Image>;
|
|
319
|
+
readonly wide?: Maybe<Image>;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
export type TopperWithHeadshot = {
|
|
323
|
+
readonly headshot?: Maybe<Scalars['String']>;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
export type TopperWithHeadshotHeadshotArgs = {
|
|
328
|
+
dpr?: InputMaybe<Scalars['Int']>;
|
|
329
|
+
width?: InputMaybe<Scalars['Int']>;
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
export type TopperWithImages = {
|
|
333
|
+
readonly images?: Maybe<TopperImages>;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
export type TopperWithTheme = {
|
|
337
|
+
readonly isLargeHeadline?: Maybe<Scalars['Boolean']>;
|
|
338
|
+
readonly layout?: Maybe<Scalars['String']>;
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
export type ConceptFragment = { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string };
|
|
342
|
+
|
|
343
|
+
export type DisplayConceptFragment = { readonly __typename?: 'Content', readonly metaPrefixText?: string, readonly metaLink?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string }, readonly metaAltLink?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } };
|
|
344
|
+
|
|
345
|
+
export type StructuredTreeFragment = { readonly __typename?: 'StructuredContent', readonly tree: any };
|
|
346
|
+
|
|
347
|
+
export type TeaserFragment = { readonly __typename?: 'Content', readonly title: string, readonly id: string, readonly url: string, readonly type: string, readonly publishedDate: string, readonly firstPublishedDate: string, readonly metaPrefixText?: string, readonly relativeUrl: string, readonly image?: { readonly __typename?: 'Image', readonly url?: string, readonly width?: number, readonly height?: number }, readonly indicators: { readonly __typename?: 'Indicators', readonly accessLevel?: AccessLevel, readonly isOpinion?: boolean, readonly isColumn?: boolean, readonly isPodcast?: boolean, readonly isEditorsChoice?: boolean, readonly isExclusive?: boolean, readonly isScoop?: boolean }, readonly metaLink?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string }, readonly metaAltLink?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } };
|
|
348
|
+
|
|
349
|
+
export type ImageSourceFragment = { readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string };
|
|
350
|
+
|
|
351
|
+
export type TopperImagesFragment = { readonly __typename?: 'TopperImages', readonly standard?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalHeight?: number, readonly originalWidth?: number, readonly copyright?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly square?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalHeight?: number, readonly originalWidth?: number, readonly copyright?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly fallback?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalHeight?: number, readonly originalWidth?: number, readonly copyright?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly wide?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalHeight?: number, readonly originalWidth?: number, readonly copyright?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } };
|
|
352
|
+
|
|
353
|
+
type Topper_BasicTopper_Fragment = { readonly __typename: 'BasicTopper', readonly headline: string, readonly backgroundColour?: TopperBackgroundColour, readonly intro?: { readonly __typename?: 'RichText', readonly source: Source, readonly structured: { readonly __typename?: 'StructuredContent', readonly tree: any } }, readonly displayConcept?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } };
|
|
354
|
+
|
|
355
|
+
type Topper_BrandedTopper_Fragment = { readonly __typename: 'BrandedTopper', readonly isLargeHeadline?: boolean, readonly layout?: string, readonly headline: string, readonly backgroundColour?: TopperBackgroundColour, readonly brandConcept?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string }, readonly intro?: { readonly __typename?: 'RichText', readonly source: Source, readonly structured: { readonly __typename?: 'StructuredContent', readonly tree: any } }, readonly displayConcept?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } };
|
|
356
|
+
|
|
357
|
+
type Topper_FullBleedTopper_Fragment = { readonly __typename: 'FullBleedTopper', readonly isLargeHeadline?: boolean, readonly layout?: string, readonly headline: string, readonly backgroundColour?: TopperBackgroundColour, readonly images?: { readonly __typename?: 'TopperImages', readonly standard?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly square?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly wide?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly fallback?: { readonly __typename?: 'Image', readonly copyright?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } }, readonly intro?: { readonly __typename?: 'RichText', readonly source: Source, readonly structured: { readonly __typename?: 'StructuredContent', readonly tree: any } }, readonly displayConcept?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } };
|
|
358
|
+
|
|
359
|
+
type Topper_OpinionTopper_Fragment = { readonly __typename: 'OpinionTopper', readonly headshot?: string, readonly isLargeHeadline?: boolean, readonly layout?: string, readonly headline: string, readonly backgroundColour?: TopperBackgroundColour, readonly columnist?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string }, readonly intro?: { readonly __typename?: 'RichText', readonly source: Source, readonly structured: { readonly __typename?: 'StructuredContent', readonly tree: any } }, readonly displayConcept?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } };
|
|
360
|
+
|
|
361
|
+
type Topper_SplitTextTopper_Fragment = { readonly __typename: 'SplitTextTopper', readonly isLargeHeadline?: boolean, readonly layout?: string, readonly headline: string, readonly backgroundColour?: TopperBackgroundColour, readonly images?: { readonly __typename?: 'TopperImages', readonly standard?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly square?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly fallback?: { readonly __typename?: 'Image', readonly copyright?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } }, readonly intro?: { readonly __typename?: 'RichText', readonly source: Source, readonly structured: { readonly __typename?: 'StructuredContent', readonly tree: any } }, readonly displayConcept?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } };
|
|
362
|
+
|
|
363
|
+
export type TopperFragment = Topper_BasicTopper_Fragment | Topper_BrandedTopper_Fragment | Topper_FullBleedTopper_Fragment | Topper_OpinionTopper_Fragment | Topper_SplitTextTopper_Fragment;
|
|
364
|
+
|
|
365
|
+
export type ImageFragment = { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalHeight?: number, readonly originalWidth?: number, readonly copyright?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> };
|
|
366
|
+
|
|
367
|
+
type Picture_PictureFullBleed_Fragment = { readonly __typename: 'PictureFullBleed', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly small?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly large?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } };
|
|
368
|
+
|
|
369
|
+
type Picture_PictureInline_Fragment = { readonly __typename: 'PictureInline', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } };
|
|
370
|
+
|
|
371
|
+
type Picture_PictureStandard_Fragment = { readonly __typename: 'PictureStandard', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly S?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly L: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } };
|
|
372
|
+
|
|
373
|
+
export type PictureFragment = Picture_PictureFullBleed_Fragment | Picture_PictureInline_Fragment | Picture_PictureStandard_Fragment;
|
|
374
|
+
|
|
375
|
+
export type ImageSetFragment = { readonly __typename?: 'ImageSet', readonly picture: { readonly __typename: 'PictureFullBleed', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly small?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly large?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureInline', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureStandard', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly S?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly L: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } };
|
|
376
|
+
|
|
377
|
+
export type LayoutImageFragment = { readonly __typename?: 'LayoutImage', readonly picture: { readonly __typename: 'PictureFullBleed', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly small?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly large?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureInline', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureStandard', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly S?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly L: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } };
|
|
378
|
+
|
|
379
|
+
export type RecommendedFragment = { readonly __typename?: 'Recommended', readonly title: string, readonly teaser: { readonly __typename?: 'Content', readonly title: string, readonly id: string, readonly url: string, readonly type: string, readonly publishedDate: string, readonly firstPublishedDate: string, readonly metaPrefixText?: string, readonly relativeUrl: string, readonly image?: { readonly __typename?: 'Image', readonly url?: string, readonly width?: number, readonly height?: number }, readonly indicators: { readonly __typename?: 'Indicators', readonly accessLevel?: AccessLevel, readonly isOpinion?: boolean, readonly isColumn?: boolean, readonly isPodcast?: boolean, readonly isEditorsChoice?: boolean, readonly isExclusive?: boolean, readonly isScoop?: boolean }, readonly metaLink?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string }, readonly metaAltLink?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } } };
|
|
380
|
+
|
|
381
|
+
type ArticleReferences_FtContent_Fragment = { readonly __typename: 'FTContent' };
|
|
382
|
+
|
|
383
|
+
type ArticleReferences_ImageSet_Fragment = { readonly __typename: 'ImageSet', readonly picture: { readonly __typename: 'PictureFullBleed', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly small?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly large?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureInline', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureStandard', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly S?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly L: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } };
|
|
384
|
+
|
|
385
|
+
type ArticleReferences_LayoutImage_Fragment = { readonly __typename: 'LayoutImage', readonly picture: { readonly __typename: 'PictureFullBleed', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly small?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly large?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureInline', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureStandard', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly S?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly L: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } };
|
|
386
|
+
|
|
387
|
+
type ArticleReferences_Link_Fragment = { readonly __typename: 'Link' };
|
|
388
|
+
|
|
389
|
+
type ArticleReferences_Recommended_Fragment = { readonly __typename: 'Recommended', readonly title: string, readonly teaser: { readonly __typename?: 'Content', readonly title: string, readonly id: string, readonly url: string, readonly type: string, readonly publishedDate: string, readonly firstPublishedDate: string, readonly metaPrefixText?: string, readonly relativeUrl: string, readonly image?: { readonly __typename?: 'Image', readonly url?: string, readonly width?: number, readonly height?: number }, readonly indicators: { readonly __typename?: 'Indicators', readonly accessLevel?: AccessLevel, readonly isOpinion?: boolean, readonly isColumn?: boolean, readonly isPodcast?: boolean, readonly isEditorsChoice?: boolean, readonly isExclusive?: boolean, readonly isScoop?: boolean }, readonly metaLink?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string }, readonly metaAltLink?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } } };
|
|
390
|
+
|
|
391
|
+
export type ArticleReferencesFragment = ArticleReferences_FtContent_Fragment | ArticleReferences_ImageSet_Fragment | ArticleReferences_LayoutImage_Fragment | ArticleReferences_Link_Fragment | ArticleReferences_Recommended_Fragment;
|
|
392
|
+
|
|
393
|
+
export type StructuredContentFragment = { readonly __typename?: 'StructuredContent', readonly tree: any, readonly references: ReadonlyArray<{ readonly __typename: 'FTContent' } | { readonly __typename: 'ImageSet', readonly picture: { readonly __typename: 'PictureFullBleed', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly small?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly large?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureInline', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureStandard', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly S?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly L: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } } | { readonly __typename: 'LayoutImage', readonly picture: { readonly __typename: 'PictureFullBleed', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly small?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly large?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureInline', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureStandard', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly S?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly L: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } } | { readonly __typename: 'Link' } | { readonly __typename: 'Recommended', readonly title: string, readonly teaser: { readonly __typename?: 'Content', readonly title: string, readonly id: string, readonly url: string, readonly type: string, readonly publishedDate: string, readonly firstPublishedDate: string, readonly metaPrefixText?: string, readonly relativeUrl: string, readonly image?: { readonly __typename?: 'Image', readonly url?: string, readonly width?: number, readonly height?: number }, readonly indicators: { readonly __typename?: 'Indicators', readonly accessLevel?: AccessLevel, readonly isOpinion?: boolean, readonly isColumn?: boolean, readonly isPodcast?: boolean, readonly isEditorsChoice?: boolean, readonly isExclusive?: boolean, readonly isScoop?: boolean }, readonly metaLink?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string }, readonly metaAltLink?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } } }> };
|
|
394
|
+
|
|
395
|
+
export type ArticleQueryVariables = Exact<{
|
|
396
|
+
uuid: Scalars['String'];
|
|
397
|
+
useVanities: Scalars['Boolean'];
|
|
398
|
+
}>;
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
export type ArticleQuery = { readonly __typename?: 'Query', readonly content: { readonly __typename?: 'Content', readonly title: string, readonly byline: { readonly __typename?: 'StructuredContent', readonly tree: any }, readonly topper?: { readonly __typename: 'BasicTopper', readonly headline: string, readonly backgroundColour?: TopperBackgroundColour, readonly intro?: { readonly __typename?: 'RichText', readonly source: Source, readonly structured: { readonly __typename?: 'StructuredContent', readonly tree: any } }, readonly displayConcept?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } } | { readonly __typename: 'BrandedTopper', readonly isLargeHeadline?: boolean, readonly layout?: string, readonly headline: string, readonly backgroundColour?: TopperBackgroundColour, readonly brandConcept?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string }, readonly intro?: { readonly __typename?: 'RichText', readonly source: Source, readonly structured: { readonly __typename?: 'StructuredContent', readonly tree: any } }, readonly displayConcept?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } } | { readonly __typename: 'FullBleedTopper', readonly isLargeHeadline?: boolean, readonly layout?: string, readonly headline: string, readonly backgroundColour?: TopperBackgroundColour, readonly images?: { readonly __typename?: 'TopperImages', readonly standard?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly square?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly wide?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly fallback?: { readonly __typename?: 'Image', readonly copyright?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } }, readonly intro?: { readonly __typename?: 'RichText', readonly source: Source, readonly structured: { readonly __typename?: 'StructuredContent', readonly tree: any } }, readonly displayConcept?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } } | { readonly __typename: 'OpinionTopper', readonly headshot?: string, readonly isLargeHeadline?: boolean, readonly layout?: string, readonly headline: string, readonly backgroundColour?: TopperBackgroundColour, readonly columnist?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string }, readonly intro?: { readonly __typename?: 'RichText', readonly source: Source, readonly structured: { readonly __typename?: 'StructuredContent', readonly tree: any } }, readonly displayConcept?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } } | { readonly __typename: 'SplitTextTopper', readonly isLargeHeadline?: boolean, readonly layout?: string, readonly headline: string, readonly backgroundColour?: TopperBackgroundColour, readonly images?: { readonly __typename?: 'TopperImages', readonly standard?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly square?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly fallback?: { readonly __typename?: 'Image', readonly copyright?: string, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } }, readonly intro?: { readonly __typename?: 'RichText', readonly source: Source, readonly structured: { readonly __typename?: 'StructuredContent', readonly tree: any } }, readonly displayConcept?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } }, readonly body: { readonly __typename?: 'RichText', readonly structured: { readonly __typename?: 'StructuredContent', readonly tree: any, readonly references: ReadonlyArray<{ readonly __typename: 'FTContent' } | { readonly __typename: 'ImageSet', readonly picture: { readonly __typename: 'PictureFullBleed', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly small?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly large?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureInline', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureStandard', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly S?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly L: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } } | { readonly __typename: 'LayoutImage', readonly picture: { readonly __typename: 'PictureFullBleed', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly small?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly large?: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureInline', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } | { readonly __typename: 'PictureStandard', readonly alt: string, readonly caption?: string, readonly imageType: ImageType, readonly images?: { readonly __typename?: 'PictureImages', readonly standard: { readonly __typename?: 'Image', readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly S?: { readonly __typename?: 'Image', readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> }, readonly L: { readonly __typename?: 'Image', readonly minDisplayWidth?: string, readonly maxDisplayWidth?: string, readonly originalWidth?: number, readonly originalHeight?: number, readonly sources: ReadonlyArray<{ readonly __typename?: 'ImageSource', readonly dpr?: number, readonly width?: number, readonly url: string }> } } } } | { readonly __typename: 'Link' } | { readonly __typename: 'Recommended', readonly title: string, readonly teaser: { readonly __typename?: 'Content', readonly title: string, readonly id: string, readonly url: string, readonly type: string, readonly publishedDate: string, readonly firstPublishedDate: string, readonly metaPrefixText?: string, readonly relativeUrl: string, readonly image?: { readonly __typename?: 'Image', readonly url?: string, readonly width?: number, readonly height?: number }, readonly indicators: { readonly __typename?: 'Indicators', readonly accessLevel?: AccessLevel, readonly isOpinion?: boolean, readonly isColumn?: boolean, readonly isPodcast?: boolean, readonly isEditorsChoice?: boolean, readonly isExclusive?: boolean, readonly isScoop?: boolean }, readonly metaLink?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string }, readonly metaAltLink?: { readonly __typename?: 'Concept', readonly id: string, readonly prefLabel: string, readonly url: string, readonly relativeUrl: string } } }> } } } };
|
|
402
|
+
|
|
403
|
+
export const ImageSourceFragmentDoc = gql`
|
|
404
|
+
fragment ImageSource on ImageSource {
|
|
405
|
+
dpr
|
|
406
|
+
width
|
|
407
|
+
url
|
|
408
|
+
}
|
|
409
|
+
`;
|
|
410
|
+
export const ImageFragmentDoc = gql`
|
|
411
|
+
fragment Image on Image {
|
|
412
|
+
sources {
|
|
413
|
+
...ImageSource
|
|
414
|
+
}
|
|
415
|
+
minDisplayWidth
|
|
416
|
+
maxDisplayWidth
|
|
417
|
+
originalHeight
|
|
418
|
+
originalWidth
|
|
419
|
+
copyright
|
|
420
|
+
}
|
|
421
|
+
${ImageSourceFragmentDoc}`;
|
|
422
|
+
export const TopperImagesFragmentDoc = gql`
|
|
423
|
+
fragment TopperImages on TopperImages {
|
|
424
|
+
standard {
|
|
425
|
+
...Image
|
|
426
|
+
}
|
|
427
|
+
square {
|
|
428
|
+
...Image
|
|
429
|
+
}
|
|
430
|
+
fallback {
|
|
431
|
+
...Image
|
|
432
|
+
}
|
|
433
|
+
wide {
|
|
434
|
+
...Image
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
${ImageFragmentDoc}`;
|
|
438
|
+
export const StructuredTreeFragmentDoc = gql`
|
|
439
|
+
fragment StructuredTree on StructuredContent {
|
|
440
|
+
tree
|
|
441
|
+
}
|
|
442
|
+
`;
|
|
443
|
+
export const ConceptFragmentDoc = gql`
|
|
444
|
+
fragment Concept on Concept {
|
|
445
|
+
id
|
|
446
|
+
prefLabel
|
|
447
|
+
url(vanity: $useVanities)
|
|
448
|
+
relativeUrl: url(relative: true, vanity: $useVanities)
|
|
449
|
+
}
|
|
450
|
+
`;
|
|
451
|
+
export const TopperFragmentDoc = gql`
|
|
452
|
+
fragment Topper on Topper {
|
|
453
|
+
__typename
|
|
454
|
+
headline
|
|
455
|
+
intro {
|
|
456
|
+
source
|
|
457
|
+
structured {
|
|
458
|
+
...StructuredTree
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
displayConcept {
|
|
462
|
+
...Concept
|
|
463
|
+
}
|
|
464
|
+
backgroundColour
|
|
465
|
+
... on SplitTextTopper {
|
|
466
|
+
images {
|
|
467
|
+
standard {
|
|
468
|
+
sources(width: 800) {
|
|
469
|
+
...ImageSource
|
|
470
|
+
}
|
|
471
|
+
minDisplayWidth(width: 1440)
|
|
472
|
+
}
|
|
473
|
+
square {
|
|
474
|
+
sources(width: 720) {
|
|
475
|
+
...ImageSource
|
|
476
|
+
}
|
|
477
|
+
maxDisplayWidth(width: 1440)
|
|
478
|
+
}
|
|
479
|
+
fallback {
|
|
480
|
+
sources(width: 1440) {
|
|
481
|
+
...ImageSource
|
|
482
|
+
}
|
|
483
|
+
copyright
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
... on FullBleedTopper {
|
|
488
|
+
images {
|
|
489
|
+
standard {
|
|
490
|
+
sources(width: 1220) {
|
|
491
|
+
...ImageSource
|
|
492
|
+
}
|
|
493
|
+
minDisplayWidth(width: 491)
|
|
494
|
+
maxDisplayWidth(width: 1220)
|
|
495
|
+
}
|
|
496
|
+
square {
|
|
497
|
+
sources(width: 490) {
|
|
498
|
+
...ImageSource
|
|
499
|
+
}
|
|
500
|
+
maxDisplayWidth(width: 490)
|
|
501
|
+
}
|
|
502
|
+
wide {
|
|
503
|
+
sources(width: 1440) {
|
|
504
|
+
...ImageSource
|
|
505
|
+
}
|
|
506
|
+
minDisplayWidth(width: 1440)
|
|
507
|
+
}
|
|
508
|
+
fallback {
|
|
509
|
+
sources(width: 1440) {
|
|
510
|
+
...ImageSource
|
|
511
|
+
}
|
|
512
|
+
copyright
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
... on OpinionTopper {
|
|
517
|
+
headshot(dpr: 2, width: 150)
|
|
518
|
+
columnist {
|
|
519
|
+
...Concept
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
... on BrandedTopper {
|
|
523
|
+
brandConcept {
|
|
524
|
+
...Concept
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
... on TopperWithTheme {
|
|
528
|
+
isLargeHeadline
|
|
529
|
+
layout
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
${StructuredTreeFragmentDoc}
|
|
533
|
+
${ConceptFragmentDoc}
|
|
534
|
+
${ImageSourceFragmentDoc}`;
|
|
535
|
+
export const DisplayConceptFragmentDoc = gql`
|
|
536
|
+
fragment DisplayConcept on Content {
|
|
537
|
+
metaPrefixText
|
|
538
|
+
metaLink {
|
|
539
|
+
...Concept
|
|
540
|
+
}
|
|
541
|
+
metaAltLink {
|
|
542
|
+
...Concept
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
${ConceptFragmentDoc}`;
|
|
546
|
+
export const TeaserFragmentDoc = gql`
|
|
547
|
+
fragment Teaser on Content {
|
|
548
|
+
title
|
|
549
|
+
id
|
|
550
|
+
url
|
|
551
|
+
relativeUrl: url(relative: true)
|
|
552
|
+
type
|
|
553
|
+
publishedDate
|
|
554
|
+
firstPublishedDate
|
|
555
|
+
...DisplayConcept
|
|
556
|
+
image: mainImage {
|
|
557
|
+
url: binaryUrl
|
|
558
|
+
width: originalWidth
|
|
559
|
+
height: originalHeight
|
|
560
|
+
}
|
|
561
|
+
indicators {
|
|
562
|
+
accessLevel
|
|
563
|
+
isOpinion
|
|
564
|
+
isColumn
|
|
565
|
+
isPodcast
|
|
566
|
+
isEditorsChoice
|
|
567
|
+
isExclusive
|
|
568
|
+
isScoop
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
${DisplayConceptFragmentDoc}`;
|
|
572
|
+
export const RecommendedFragmentDoc = gql`
|
|
573
|
+
fragment Recommended on Recommended {
|
|
574
|
+
title
|
|
575
|
+
teaser {
|
|
576
|
+
...Teaser
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
${TeaserFragmentDoc}`;
|
|
580
|
+
export const PictureFragmentDoc = gql`
|
|
581
|
+
fragment Picture on Picture {
|
|
582
|
+
__typename
|
|
583
|
+
alt
|
|
584
|
+
caption
|
|
585
|
+
imageType
|
|
586
|
+
... on PictureStandard {
|
|
587
|
+
images {
|
|
588
|
+
standard {
|
|
589
|
+
sources(width: 700) {
|
|
590
|
+
...ImageSource
|
|
591
|
+
}
|
|
592
|
+
originalWidth
|
|
593
|
+
originalHeight
|
|
594
|
+
}
|
|
595
|
+
S: small {
|
|
596
|
+
sources(width: 490) {
|
|
597
|
+
...ImageSource
|
|
598
|
+
}
|
|
599
|
+
maxDisplayWidth(width: 490)
|
|
600
|
+
originalWidth
|
|
601
|
+
originalHeight
|
|
602
|
+
}
|
|
603
|
+
L: standard {
|
|
604
|
+
sources(width: 540) {
|
|
605
|
+
...ImageSource
|
|
606
|
+
}
|
|
607
|
+
minDisplayWidth(width: 980)
|
|
608
|
+
maxDisplayWidth(width: 1219)
|
|
609
|
+
originalWidth
|
|
610
|
+
originalHeight
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
... on PictureInline {
|
|
615
|
+
images {
|
|
616
|
+
standard {
|
|
617
|
+
sources(width: 350) {
|
|
618
|
+
...ImageSource
|
|
619
|
+
}
|
|
620
|
+
originalWidth
|
|
621
|
+
originalHeight
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
... on PictureFullBleed {
|
|
626
|
+
images {
|
|
627
|
+
standard {
|
|
628
|
+
sources(width: 700) {
|
|
629
|
+
...ImageSource
|
|
630
|
+
}
|
|
631
|
+
originalWidth
|
|
632
|
+
originalHeight
|
|
633
|
+
}
|
|
634
|
+
small {
|
|
635
|
+
sources(width: 490) {
|
|
636
|
+
...ImageSource
|
|
637
|
+
}
|
|
638
|
+
maxDisplayWidth(width: 490)
|
|
639
|
+
originalWidth
|
|
640
|
+
originalHeight
|
|
641
|
+
}
|
|
642
|
+
large {
|
|
643
|
+
sources(width: 1200) {
|
|
644
|
+
...ImageSource
|
|
645
|
+
}
|
|
646
|
+
minDisplayWidth
|
|
647
|
+
maxDisplayWidth
|
|
648
|
+
originalWidth
|
|
649
|
+
originalHeight
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
${ImageSourceFragmentDoc}`;
|
|
655
|
+
export const ImageSetFragmentDoc = gql`
|
|
656
|
+
fragment ImageSet on ImageSet {
|
|
657
|
+
picture {
|
|
658
|
+
...Picture
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
${PictureFragmentDoc}`;
|
|
662
|
+
export const LayoutImageFragmentDoc = gql`
|
|
663
|
+
fragment LayoutImage on LayoutImage {
|
|
664
|
+
picture {
|
|
665
|
+
...Picture
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
${PictureFragmentDoc}`;
|
|
669
|
+
export const ArticleReferencesFragmentDoc = gql`
|
|
670
|
+
fragment ArticleReferences on Reference {
|
|
671
|
+
__typename
|
|
672
|
+
...Recommended
|
|
673
|
+
...ImageSet
|
|
674
|
+
...LayoutImage
|
|
675
|
+
}
|
|
676
|
+
${RecommendedFragmentDoc}
|
|
677
|
+
${ImageSetFragmentDoc}
|
|
678
|
+
${LayoutImageFragmentDoc}`;
|
|
679
|
+
export const StructuredContentFragmentDoc = gql`
|
|
680
|
+
fragment StructuredContent on StructuredContent {
|
|
681
|
+
...StructuredTree
|
|
682
|
+
references {
|
|
683
|
+
...ArticleReferences
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
${StructuredTreeFragmentDoc}
|
|
687
|
+
${ArticleReferencesFragmentDoc}`;
|
|
688
|
+
export const ArticleDocument = gql`
|
|
689
|
+
query Article($uuid: String!, $useVanities: Boolean!) {
|
|
690
|
+
content(uuid: $uuid) {
|
|
691
|
+
title
|
|
692
|
+
byline {
|
|
693
|
+
tree
|
|
694
|
+
}
|
|
695
|
+
topper {
|
|
696
|
+
...Topper
|
|
697
|
+
}
|
|
698
|
+
body {
|
|
699
|
+
structured {
|
|
700
|
+
...StructuredContent
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
${TopperFragmentDoc}
|
|
706
|
+
${StructuredContentFragmentDoc}`;
|
|
707
|
+
|
|
708
|
+
export type SdkFunctionWrapper = <T>(action: (requestHeaders?:Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action();
|
|
712
|
+
|
|
713
|
+
export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {
|
|
714
|
+
return {
|
|
715
|
+
Article(variables: ArticleQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<ArticleQuery> {
|
|
716
|
+
return withWrapper((wrappedRequestHeaders) => client.request<ArticleQuery>(ArticleDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'Article', 'query');
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
export type Sdk = ReturnType<typeof getSdk>;
|