@financial-times/cp-content-pipeline-schema 2.9.2 → 2.10.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 +13 -0
- package/lib/generated/index.d.ts +87 -2
- package/lib/model/CapiResponse.d.ts +6 -0
- package/lib/model/CapiResponse.js +5 -0
- package/lib/model/CapiResponse.js.map +1 -1
- package/lib/model/FlourishSource.d.ts +22 -0
- package/lib/model/FlourishSource.js +89 -0
- package/lib/model/FlourishSource.js.map +1 -0
- package/lib/model/FlourishSource.test.d.ts +1 -0
- package/lib/model/FlourishSource.test.js +67 -0
- package/lib/model/FlourishSource.test.js.map +1 -0
- package/lib/model/LeadFlourish.d.ts +13 -0
- package/lib/model/LeadFlourish.js +35 -0
- package/lib/model/LeadFlourish.js.map +1 -0
- package/lib/model/LeadFlourish.test.d.ts +1 -0
- package/lib/model/LeadFlourish.test.js +62 -0
- package/lib/model/LeadFlourish.test.js.map +1 -0
- package/lib/model/Topper.d.ts +4 -1
- package/lib/model/Topper.js +15 -0
- package/lib/model/Topper.js.map +1 -1
- package/lib/model/Topper.test.js +21 -0
- package/lib/model/Topper.test.js.map +1 -1
- package/lib/model/schemas/capi/article.d.ts +28 -0
- package/lib/model/schemas/capi/article.js +1 -0
- package/lib/model/schemas/capi/article.js.map +1 -1
- package/lib/model/schemas/capi/base-schema.d.ts +41 -0
- package/lib/model/schemas/capi/base-schema.js +8 -1
- package/lib/model/schemas/capi/base-schema.js.map +1 -1
- package/lib/model/schemas/capi/content-package.d.ts +28 -0
- package/lib/model/schemas/capi/content-package.js +1 -0
- package/lib/model/schemas/capi/content-package.js.map +1 -1
- package/lib/model/schemas/capi/live-blog-package.d.ts +5 -0
- package/lib/model/schemas/capi/placeholder.d.ts +5 -0
- package/lib/resolvers/content-tree/references/Flourish.d.ts +8 -2
- package/lib/resolvers/content-tree/references/Flourish.js +15 -40
- package/lib/resolvers/content-tree/references/Flourish.js.map +1 -1
- package/lib/resolvers/content-tree/references/Flourish.test.js +0 -30
- package/lib/resolvers/content-tree/references/Flourish.test.js.map +1 -1
- package/lib/resolvers/index.d.ts +36 -9
- package/lib/resolvers/index.js +2 -0
- package/lib/resolvers/index.js.map +1 -1
- package/lib/resolvers/leadFlourish.d.ts +16 -0
- package/lib/resolvers/leadFlourish.js +28 -0
- package/lib/resolvers/leadFlourish.js.map +1 -0
- package/lib/resolvers/topper.d.ts +23 -9
- package/lib/resolvers/topper.js +6 -0
- package/lib/resolvers/topper.js.map +1 -1
- package/package.json +1 -1
- package/queries/article.graphql +26 -0
- package/src/generated/index.ts +93 -2
- package/src/model/CapiResponse.ts +6 -0
- package/src/model/FlourishSource.test.ts +93 -0
- package/src/model/FlourishSource.ts +103 -0
- package/src/model/LeadFlourish.test.ts +71 -0
- package/src/model/LeadFlourish.ts +30 -0
- package/src/model/Topper.test.ts +26 -0
- package/src/model/Topper.ts +18 -0
- package/src/model/schemas/capi/article.ts +1 -0
- package/src/model/schemas/capi/base-schema.ts +8 -0
- package/src/model/schemas/capi/content-package.ts +1 -0
- package/src/resolvers/content-tree/references/Flourish.test.ts +2 -49
- package/src/resolvers/content-tree/references/Flourish.ts +15 -59
- package/src/resolvers/index.ts +2 -0
- package/src/resolvers/leadFlourish.ts +31 -0
- package/src/resolvers/topper.ts +10 -0
- package/src/types/internal-content.d.ts +2 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/typedefs/leadFlouish.graphql +29 -0
- package/typedefs/topper.graphql +35 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type FlourishSource {
|
|
2
|
+
"The Origami image service url"
|
|
3
|
+
url: String
|
|
4
|
+
|
|
5
|
+
"The type of the source, e.g. visualisation for leadFlourish "
|
|
6
|
+
type: String
|
|
7
|
+
|
|
8
|
+
"The format of the source, eg. 'standard'."
|
|
9
|
+
format: String
|
|
10
|
+
|
|
11
|
+
"The width of the source."
|
|
12
|
+
width: Int
|
|
13
|
+
|
|
14
|
+
"The height of the source."
|
|
15
|
+
height: Int
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type LeadFlourish {
|
|
19
|
+
"The type of the chart, eg. 'visualisation'."
|
|
20
|
+
type: String
|
|
21
|
+
|
|
22
|
+
"The id of the Flourish chart."
|
|
23
|
+
id: String
|
|
24
|
+
|
|
25
|
+
"The description of the Flourish chart."
|
|
26
|
+
description: String
|
|
27
|
+
|
|
28
|
+
fallbackImage: FlourishSource!
|
|
29
|
+
}
|
package/typedefs/topper.graphql
CHANGED
|
@@ -364,3 +364,38 @@ type DeepLandscapeTopper implements Topper & TopperWithImages & TopperWithTheme
|
|
|
364
364
|
"The concept object of the brand, eg. {'type': 'BRAND', 'prefLabel': 'FT Magazine', ...}."
|
|
365
365
|
brandConcept: Concept
|
|
366
366
|
}
|
|
367
|
+
|
|
368
|
+
type TopperWithFlourish implements Topper {
|
|
369
|
+
"The headline text of the topper."
|
|
370
|
+
headline: String!
|
|
371
|
+
|
|
372
|
+
"An abstract syntax tree of the introduction text."
|
|
373
|
+
intro: RichText
|
|
374
|
+
|
|
375
|
+
"The concept object to be displayed, eg. {'type': 'TOPIC', 'prefLabel': 'Non-dom tax status', ...}."
|
|
376
|
+
displayConcept: Concept
|
|
377
|
+
|
|
378
|
+
"The concept object of the genre, eg. {'type': 'GENRE', 'prefLabel': 'Opinion', ...}."
|
|
379
|
+
genreConcept: Concept
|
|
380
|
+
|
|
381
|
+
"The variant of the follow button to be displayed on the topper."
|
|
382
|
+
followButtonVariant: FollowButtonVariant
|
|
383
|
+
|
|
384
|
+
"The background colour of the topper."
|
|
385
|
+
backgroundColour: TopperBackgroundColour
|
|
386
|
+
|
|
387
|
+
"Whether the topper should have a background box."
|
|
388
|
+
backgroundBox: Boolean
|
|
389
|
+
|
|
390
|
+
"Whether the topper should have a text shadow."
|
|
391
|
+
textShadow: Boolean
|
|
392
|
+
|
|
393
|
+
"The layout type of the topper, eg. 'flourish'."
|
|
394
|
+
layout: String
|
|
395
|
+
|
|
396
|
+
"The layout width of the topper, eg. 'full-grid'."
|
|
397
|
+
layoutWidth: String
|
|
398
|
+
|
|
399
|
+
"The flourish object to be displayed, eg. {'type': 'visualisation', ...}."
|
|
400
|
+
leadFlourish: LeadFlourish
|
|
401
|
+
}
|