@financial-times/cp-content-pipeline-schema 2.9.1 → 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.
Files changed (89) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/lib/generated/index.d.ts +87 -2
  3. package/lib/model/CapiResponse.d.ts +6 -0
  4. package/lib/model/CapiResponse.js +9 -3
  5. package/lib/model/CapiResponse.js.map +1 -1
  6. package/lib/model/CapiResponse.test.js +3 -3
  7. package/lib/model/CapiResponse.test.js.map +1 -1
  8. package/lib/model/Clip.js +1 -1
  9. package/lib/model/Clip.js.map +1 -1
  10. package/lib/model/FlourishSource.d.ts +22 -0
  11. package/lib/model/FlourishSource.js +89 -0
  12. package/lib/model/FlourishSource.js.map +1 -0
  13. package/lib/model/FlourishSource.test.d.ts +1 -0
  14. package/lib/model/FlourishSource.test.js +67 -0
  15. package/lib/model/FlourishSource.test.js.map +1 -0
  16. package/lib/model/Image.test.js +11 -11
  17. package/lib/model/Image.test.js.map +1 -1
  18. package/lib/model/LeadFlourish.d.ts +13 -0
  19. package/lib/model/LeadFlourish.js +35 -0
  20. package/lib/model/LeadFlourish.js.map +1 -0
  21. package/lib/model/LeadFlourish.test.d.ts +1 -0
  22. package/lib/model/LeadFlourish.test.js +62 -0
  23. package/lib/model/LeadFlourish.test.js.map +1 -0
  24. package/lib/model/RichText.test.js +4 -4
  25. package/lib/model/RichText.test.js.map +1 -1
  26. package/lib/model/Topper.d.ts +4 -1
  27. package/lib/model/Topper.js +17 -2
  28. package/lib/model/Topper.js.map +1 -1
  29. package/lib/model/Topper.test.js +21 -0
  30. package/lib/model/Topper.test.js.map +1 -1
  31. package/lib/model/schemas/capi/article.d.ts +28 -0
  32. package/lib/model/schemas/capi/article.js +1 -0
  33. package/lib/model/schemas/capi/article.js.map +1 -1
  34. package/lib/model/schemas/capi/base-schema.d.ts +41 -0
  35. package/lib/model/schemas/capi/base-schema.js +8 -1
  36. package/lib/model/schemas/capi/base-schema.js.map +1 -1
  37. package/lib/model/schemas/capi/content-package.d.ts +28 -0
  38. package/lib/model/schemas/capi/content-package.js +1 -0
  39. package/lib/model/schemas/capi/content-package.js.map +1 -1
  40. package/lib/model/schemas/capi/live-blog-package.d.ts +5 -0
  41. package/lib/model/schemas/capi/placeholder.d.ts +5 -0
  42. package/lib/resolvers/content-tree/bodyXMLToTree.js +8 -2
  43. package/lib/resolvers/content-tree/bodyXMLToTree.js.map +1 -1
  44. package/lib/resolvers/content-tree/references/Flourish.d.ts +8 -2
  45. package/lib/resolvers/content-tree/references/Flourish.js +15 -40
  46. package/lib/resolvers/content-tree/references/Flourish.js.map +1 -1
  47. package/lib/resolvers/content-tree/references/Flourish.test.js +0 -30
  48. package/lib/resolvers/content-tree/references/Flourish.test.js.map +1 -1
  49. package/lib/resolvers/content-tree/tagMappings.js +7 -7
  50. package/lib/resolvers/content-tree/tagMappings.js.map +1 -1
  51. package/lib/resolvers/content-tree/tagMappings.test.js.map +1 -1
  52. package/lib/resolvers/index.d.ts +36 -9
  53. package/lib/resolvers/index.js +2 -0
  54. package/lib/resolvers/index.js.map +1 -1
  55. package/lib/resolvers/leadFlourish.d.ts +16 -0
  56. package/lib/resolvers/leadFlourish.js +28 -0
  57. package/lib/resolvers/leadFlourish.js.map +1 -0
  58. package/lib/resolvers/topper.d.ts +23 -9
  59. package/lib/resolvers/topper.js +6 -0
  60. package/lib/resolvers/topper.js.map +1 -1
  61. package/package.json +1 -1
  62. package/queries/article.graphql +26 -0
  63. package/src/generated/index.ts +93 -2
  64. package/src/model/CapiResponse.test.ts +3 -3
  65. package/src/model/CapiResponse.ts +12 -3
  66. package/src/model/Clip.ts +1 -1
  67. package/src/model/FlourishSource.test.ts +93 -0
  68. package/src/model/FlourishSource.ts +103 -0
  69. package/src/model/Image.test.ts +11 -11
  70. package/src/model/LeadFlourish.test.ts +71 -0
  71. package/src/model/LeadFlourish.ts +30 -0
  72. package/src/model/RichText.test.ts +4 -4
  73. package/src/model/Topper.test.ts +26 -0
  74. package/src/model/Topper.ts +20 -2
  75. package/src/model/schemas/capi/article.ts +1 -0
  76. package/src/model/schemas/capi/base-schema.ts +8 -0
  77. package/src/model/schemas/capi/content-package.ts +1 -0
  78. package/src/resolvers/content-tree/bodyXMLToTree.ts +13 -6
  79. package/src/resolvers/content-tree/references/Flourish.test.ts +2 -49
  80. package/src/resolvers/content-tree/references/Flourish.ts +15 -59
  81. package/src/resolvers/content-tree/tagMappings.test.ts +1 -1
  82. package/src/resolvers/content-tree/tagMappings.ts +7 -7
  83. package/src/resolvers/index.ts +2 -0
  84. package/src/resolvers/leadFlourish.ts +31 -0
  85. package/src/resolvers/topper.ts +10 -0
  86. package/src/types/internal-content.d.ts +2 -0
  87. package/tsconfig.tsbuildinfo +1 -1
  88. package/typedefs/leadFlouish.graphql +29 -0
  89. 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
+ }
@@ -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
+ }