@financial-times/cp-content-pipeline-schema 2.10.2 → 2.11.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/CHANGELOG.md +18 -0
- package/lib/generated/index.d.ts +34 -2
- package/lib/model/CapiResponse.d.ts +1 -0
- package/lib/model/CapiResponse.js +3 -0
- package/lib/model/CapiResponse.js.map +1 -1
- package/lib/model/Topper.d.ts +1 -1
- package/lib/model/Topper.js +3 -0
- package/lib/model/Topper.js.map +1 -1
- package/lib/model/schemas/capi/base-schema.js.map +1 -1
- package/lib/resolvers/index.d.ts +22 -10
- package/lib/resolvers/topper.d.ts +22 -10
- package/lib/resolvers/topper.js +3 -0
- package/lib/resolvers/topper.js.map +1 -1
- package/package.json +1 -2
- package/src/generated/index.ts +36 -2
- package/src/model/CapiResponse.ts +4 -0
- package/src/model/Topper.ts +5 -0
- package/src/model/schemas/capi/base-schema.ts +4 -4
- package/src/resolvers/topper.ts +5 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/typedefs/topper.graphql +40 -14
package/typedefs/topper.graphql
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface Topper {
|
|
1
|
+
interface Topper {
|
|
2
2
|
"The headline text of the topper."
|
|
3
3
|
headline: String!
|
|
4
4
|
|
|
@@ -35,7 +35,7 @@ interface TopperWithImages {
|
|
|
35
35
|
interface TopperWithTheme {
|
|
36
36
|
"Whether the headline should be large."
|
|
37
37
|
isLargeHeadline: Boolean
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
"The layout of the topper, eg. 'split-text-left'."
|
|
40
40
|
layout: String
|
|
41
41
|
}
|
|
@@ -114,10 +114,10 @@ type SplitTextTopper implements Topper & TopperWithImages & TopperWithTheme & To
|
|
|
114
114
|
|
|
115
115
|
"A fallback image to be used if the 'images' are not availableimages: [Image!]!."
|
|
116
116
|
fallbackImage: Image
|
|
117
|
-
|
|
117
|
+
|
|
118
118
|
"Whether the headline should be large."
|
|
119
119
|
isLargeHeadline: Boolean
|
|
120
|
-
|
|
120
|
+
|
|
121
121
|
"The layout of the topper, eg. 'split-text-left'."
|
|
122
122
|
layout: String
|
|
123
123
|
|
|
@@ -161,7 +161,7 @@ type FullBleedTopper implements Topper & TopperWithImages & TopperWithTheme & To
|
|
|
161
161
|
|
|
162
162
|
"Whether the headline should be large."
|
|
163
163
|
isLargeHeadline: Boolean
|
|
164
|
-
|
|
164
|
+
|
|
165
165
|
"The layout of the topper, eg. 'split-text-left'."
|
|
166
166
|
layout: String
|
|
167
167
|
|
|
@@ -196,10 +196,10 @@ type PodcastTopper implements Topper & TopperWithTheme & TopperWithHeadshot & To
|
|
|
196
196
|
|
|
197
197
|
"Whether the headline should be large."
|
|
198
198
|
isLargeHeadline: Boolean
|
|
199
|
-
|
|
199
|
+
|
|
200
200
|
"The layout of the topper, eg. 'split-text-left'."
|
|
201
201
|
layout: String
|
|
202
|
-
|
|
202
|
+
|
|
203
203
|
"The url of the headshot image, eg. for columns with one key author."
|
|
204
204
|
headshot(width: Int, dpr: Int, url: String): String
|
|
205
205
|
|
|
@@ -237,10 +237,10 @@ type OpinionTopper implements Topper & TopperWithTheme & TopperWithHeadshot {
|
|
|
237
237
|
|
|
238
238
|
"Whether the headline should be large."
|
|
239
239
|
isLargeHeadline: Boolean
|
|
240
|
-
|
|
240
|
+
|
|
241
241
|
"The layout of the topper, eg. 'split-text-left'."
|
|
242
242
|
layout: String
|
|
243
|
-
|
|
243
|
+
|
|
244
244
|
"The url of the headshot image, eg. for columns with one key author."
|
|
245
245
|
headshot(width: Int, dpr: Int, url: String): String
|
|
246
246
|
|
|
@@ -275,10 +275,10 @@ type BrandedTopper implements Topper & TopperWithTheme & TopperWithBrand {
|
|
|
275
275
|
|
|
276
276
|
"Whether the headline should be large."
|
|
277
277
|
isLargeHeadline: Boolean
|
|
278
|
-
|
|
278
|
+
|
|
279
279
|
"The layout of the topper, eg. 'split-text-left'."
|
|
280
280
|
layout: String
|
|
281
|
-
|
|
281
|
+
|
|
282
282
|
"The concept object of the brand, eg. {'type': 'BRAND', 'prefLabel': 'FT Magazine', ...}."
|
|
283
283
|
brandConcept: Concept
|
|
284
284
|
}
|
|
@@ -316,7 +316,7 @@ type DeepPortraitTopper implements Topper & TopperWithImages & TopperWithTheme &
|
|
|
316
316
|
|
|
317
317
|
"Whether the headline should be large."
|
|
318
318
|
isLargeHeadline: Boolean
|
|
319
|
-
|
|
319
|
+
|
|
320
320
|
"The layout of the topper, eg. 'split-text-left'."
|
|
321
321
|
layout: String
|
|
322
322
|
|
|
@@ -357,10 +357,10 @@ type DeepLandscapeTopper implements Topper & TopperWithImages & TopperWithTheme
|
|
|
357
357
|
|
|
358
358
|
"Whether the headline should be large."
|
|
359
359
|
isLargeHeadline: Boolean
|
|
360
|
-
|
|
360
|
+
|
|
361
361
|
"The layout of the topper, eg. 'split-text-left'."
|
|
362
362
|
layout: String
|
|
363
|
-
|
|
363
|
+
|
|
364
364
|
"The concept object of the brand, eg. {'type': 'BRAND', 'prefLabel': 'FT Magazine', ...}."
|
|
365
365
|
brandConcept: Concept
|
|
366
366
|
}
|
|
@@ -399,3 +399,29 @@ type TopperWithFlourish implements Topper {
|
|
|
399
399
|
"The flourish object to be displayed, eg. {'type': 'visualisation', ...}."
|
|
400
400
|
leadFlourish: LeadFlourish
|
|
401
401
|
}
|
|
402
|
+
|
|
403
|
+
type PartnerContentTopper implements Topper {
|
|
404
|
+
"The headline text of the topper."
|
|
405
|
+
headline: String!
|
|
406
|
+
|
|
407
|
+
"An abstract syntax tree of the introduction text."
|
|
408
|
+
intro: RichText
|
|
409
|
+
|
|
410
|
+
"The background colour of the topper."
|
|
411
|
+
backgroundColour: TopperBackgroundColour
|
|
412
|
+
|
|
413
|
+
"Whether the topper should have a background box."
|
|
414
|
+
backgroundBox: Boolean
|
|
415
|
+
|
|
416
|
+
"Whether the topper should have a text shadow."
|
|
417
|
+
textShadow: Boolean
|
|
418
|
+
|
|
419
|
+
"The concept object to be displayed, eg. {'type': 'TOPIC', 'prefLabel': 'Non-dom tax status', ...}."
|
|
420
|
+
displayConcept: Concept
|
|
421
|
+
|
|
422
|
+
"The concept object of the genre, eg. {'type': 'GENRE', 'prefLabel': 'Opinion', ...}."
|
|
423
|
+
genreConcept: Concept
|
|
424
|
+
|
|
425
|
+
"The variant of the follow button to be displayed on the topper."
|
|
426
|
+
followButtonVariant: FollowButtonVariant
|
|
427
|
+
}
|