@financial-times/cp-content-pipeline-schema 1.4.4 → 1.5.1

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 (67) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/lib/fixtures/capiObject.js +1 -1
  3. package/lib/fixtures/capiObject.js.map +1 -1
  4. package/lib/fixtures/clipSet.d.ts +2 -0
  5. package/lib/fixtures/clipSet.js +70 -0
  6. package/lib/fixtures/clipSet.js.map +1 -0
  7. package/lib/generated/index.d.ts +120 -3
  8. package/lib/model/CapiResponse.d.ts +2 -2
  9. package/lib/model/CapiResponse.js +1 -1
  10. package/lib/model/CapiResponse.js.map +1 -1
  11. package/lib/model/Clip.d.ts +28 -0
  12. package/lib/model/Clip.js +51 -0
  13. package/lib/model/Clip.js.map +1 -0
  14. package/lib/model/schemas/capi/article.d.ts +602 -9
  15. package/lib/model/schemas/capi/audio.d.ts +31 -31
  16. package/lib/model/schemas/capi/base-schema.d.ts +1355 -14
  17. package/lib/model/schemas/capi/base-schema.js +41 -2
  18. package/lib/model/schemas/capi/base-schema.js.map +1 -1
  19. package/lib/model/schemas/capi/content-package.d.ts +3 -3
  20. package/lib/model/schemas/capi/live-blog-package.d.ts +602 -9
  21. package/lib/model/schemas/capi/placeholder.d.ts +602 -9
  22. package/lib/resolvers/clip.d.ts +10 -0
  23. package/lib/resolvers/clip.js +13 -0
  24. package/lib/resolvers/clip.js.map +1 -0
  25. package/lib/resolvers/content-tree/Workarounds.d.ts +10 -2
  26. package/lib/resolvers/content-tree/nodePredicates.d.ts +3 -3
  27. package/lib/resolvers/content-tree/references/ClipSet.d.ts +27 -0
  28. package/lib/resolvers/content-tree/references/ClipSet.js +43 -0
  29. package/lib/resolvers/content-tree/references/ClipSet.js.map +1 -0
  30. package/lib/resolvers/content-tree/references/ImageSet.js +3 -2
  31. package/lib/resolvers/content-tree/references/ImageSet.js.map +1 -1
  32. package/lib/resolvers/content-tree/references/Reference.d.ts +1 -1
  33. package/lib/resolvers/content-tree/references/ScrollyImage.js +3 -2
  34. package/lib/resolvers/content-tree/references/ScrollyImage.js.map +1 -1
  35. package/lib/resolvers/content-tree/references/index.d.ts +4 -1
  36. package/lib/resolvers/content-tree/references/index.js +4 -0
  37. package/lib/resolvers/content-tree/references/index.js.map +1 -1
  38. package/lib/resolvers/content-tree/tagMappings.js +9 -0
  39. package/lib/resolvers/content-tree/tagMappings.js.map +1 -1
  40. package/lib/resolvers/index.d.ts +9 -0
  41. package/lib/resolvers/index.js +2 -0
  42. package/lib/resolvers/index.js.map +1 -1
  43. package/lib/resolvers/scalars.d.ts +2 -0
  44. package/lib/resolvers/scalars.js +6 -1
  45. package/lib/resolvers/scalars.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/fixtures/capiObject.ts +1 -1
  48. package/src/fixtures/clipSet.ts +72 -0
  49. package/src/generated/index.ts +128 -3
  50. package/src/model/CapiResponse.ts +3 -2
  51. package/src/model/Clip.ts +75 -0
  52. package/src/model/__snapshots__/RichText.test.ts.snap +25 -0
  53. package/src/model/schemas/capi/base-schema.ts +45 -1
  54. package/src/resolvers/clip.ts +13 -0
  55. package/src/resolvers/content-tree/Workarounds.ts +13 -2
  56. package/src/resolvers/content-tree/references/ClipSet.ts +64 -0
  57. package/src/resolvers/content-tree/references/ImageSet.ts +9 -5
  58. package/src/resolvers/content-tree/references/ScrollyImage.ts +9 -5
  59. package/src/resolvers/content-tree/references/index.ts +6 -0
  60. package/src/resolvers/content-tree/tagMappings.ts +10 -0
  61. package/src/resolvers/index.ts +2 -0
  62. package/src/resolvers/scalars.ts +8 -0
  63. package/src/types/internal-content.d.ts +4 -0
  64. package/tsconfig.tsbuildinfo +1 -1
  65. package/typedefs/clip.graphql +28 -0
  66. package/typedefs/references/clipSet.graphql +19 -0
  67. package/typedefs/scalars.graphql +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.5.1](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-schema-v1.5.0...cp-content-pipeline-schema-v1.5.1) (2023-11-01)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * make embeds type optional ([2867b72](https://github.com/Financial-Times/cp-content-pipeline/commit/2867b72794e513e1520c3a0adc96102d467ac85d))
9
+
10
+ ## [1.5.0](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-schema-v1.4.4...cp-content-pipeline-schema-v1.5.0) (2023-10-31)
11
+
12
+
13
+ ### Features
14
+
15
+ * add accessibility to ClipSet schema ([9eb2dde](https://github.com/Financial-Times/cp-content-pipeline/commit/9eb2dde1377965f315b9c702b4abb683cc37d12e))
16
+ * add clip and clipset schema ([a765b91](https://github.com/Financial-Times/cp-content-pipeline/commit/a765b917fc3f3ffa05b52662687239a27ec29d0c))
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * correct dataLayout attribute ([59bee9a](https://github.com/Financial-Times/cp-content-pipeline/commit/59bee9a018f703b5e94cf87ca68492ddf25a7532))
22
+ * get this working with old clips ([ca5944a](https://github.com/Financial-Times/cp-content-pipeline/commit/ca5944a74683c23102287f452a684bdf2b84e1a7))
23
+ * make poster optional ([af793fd](https://github.com/Financial-Times/cp-content-pipeline/commit/af793fd10dc7034a91bba35e2ca550d535fe6303))
24
+ * resolve v1 caption, description, credits ([b3ec137](https://github.com/Financial-Times/cp-content-pipeline/commit/b3ec1374bfda8d899c18d6cfebbe52bc79b89a0a))
25
+ * sort dataSource to avoid video not showing ([724ef51](https://github.com/Financial-Times/cp-content-pipeline/commit/724ef510e45a604e2bd29836b1a6bd6f4f160076))
26
+
3
27
  ## [1.4.4](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-schema-v1.4.3...cp-content-pipeline-schema-v1.4.4) (2023-10-26)
4
28
 
5
29
 
@@ -9,7 +9,7 @@ exports.baseCapiObject = {
9
9
  title: 'Kwarteng faces test persuading UK watchdog of fiscal plans',
10
10
  standfirst: '',
11
11
  byline: 'Chris Giles in London',
12
- bodyXML: `<body><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/c45f7393-62c8-4a6b-b53d-641725351851" data-embedded="true"></ft-content><p><a href="https://amzn.to/3V3cwPP"><strong>Eliot After The Waste Land</strong></a><strong> (Eliot Biographies, 2)<br/></strong>by Robert Crawford, <em>Jonathan Cape £25</em></p><p>After a six-year wait, Robert Crawford follows up <em>Young Eliot</em> (2016) with his <a href="https://www.ft.com/content/210d7f37-115e-4197-b392-ffb094ed2699">second (and final) volume</a> on the life of TS Eliot in time for the centenary of “The Waste Land”. Here, he explores Eliot’s marriage, religious life and draws on the 1,131 letters written to American friend Emily Hale that were only released from embargo in 2020 to probe the poet’s later years with tact and empathy.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/bf48b0fc-ad4b-4ce9-a734-faf3e9aab225" data-embedded="true"></ft-content><p><a href="https://amzn.to/3UFKeul"><strong>All the Knowledge in the World</strong></a><strong>: The Extraordinary History of the Encyclopaedia<br/></strong>by Simon Garfield, <em>Weidenfeld &amp; Nicolson £18.99</em></p><p>Simon Garfield, author of quirky histories on everything from fonts to maps, surveys the publishing phenomenon that is the encyclopedia. Tracing its origins from Ancient Greece right up to its modern incarnation in Wikipedia, his handsome book offers an erudite and amusing exploration of the human quest for knowledge.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/cc74e2ec-3314-4b9f-81c1-bcfdf9dbaf99" data-embedded="true"></ft-content><p><a href="https://amzn.to/3VbW1AB"><strong>The Waste Land</strong></a><strong>: A Biography of a Poem<br/></strong>by Matthew Hollis, <em>Faber £20</em></p><p>In the 100 years since TS Eliot penned his famous poem, it has taken on a life of its own. So it’s fitting, perhaps, that Matthew Hollis treats Eliot’s work to its own biography. This richly analytical book locates the poem’s genesis in the aftermath of the first world war and the “nightmare agony” of Eliot’s disastrous marriage.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/7393690b-e02e-4cdb-a263-57e7d1a6eedf" data-embedded="true"></ft-content><p><a href="https://amzn.to/3OgAT9M"><strong>Endless Flight</strong></a><strong>: The Life of Joseph Roth<br/></strong>by Keiron Pim, <em>Granta £25</em></p><p>“I paint the portrait of the age,” Joseph Roth once claimed. Certainly, his work as a journalist from 1917-1939, dissecting central and eastern Europe in more than a thousand essays and anticipating the collapse of democracy on the continent as well as 19 novels provides an exceptional anatomy of a tumultuous period of history. Keiron Pim’s <a href="https://www.ft.com/content/fee9056b-277e-41b4-9572-9fbac39f957b">biography</a> goes some way to introducing the great Austro-Hungarian writer to a new age.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/6e7b048f-d08f-43f7-b1fa-95e98c8ca811" data-embedded="true"></ft-content><p><a href="https://amzn.to/3hX8PfS"><strong>Super-Infinite</strong></a><strong>: The Transformations of John Donne<br/></strong>by Katherine Rundell, <em>Faber £16.99</em></p><p>Katherine Rundell, a Fellow of All Souls College, Oxford, has produced a remarkable life of John Donne, the great poet of love, sex and death. Winner of this year’s Baillie Gifford Prize, her <a href="https://www.ft.com/content/c229396d-5448-44fa-b423-b018695d65d8">biography</a> of the man who was at once soldier, poet, prisoner and priest is sensitive and witty, capturing the essence of a tricky subject. </p><experimental><div class="n-content-layout" data-layout-name="card" data-layout-width="true"><div class="n-content-layout__container"><h2 theme-style="3">Books of the Year 2022</h2><div class="n-content-layout__slot" data-slot-width="true"><h4></h4><div class="n-content-layout__slot" data-slot-width="true"><img alt="" data-copyright="" data-image-type="image" longdesc="" src="https://d1e00ek4ebabms.cloudfront.net/production/43c41a77-ab10-40ed-a2a2-efa99ef32a10.jpg"/></div></div><div class="n-content-layout__slot" data-slot-width="true"><h4></h4><div class="n-content-layout__slot" data-slot-width="true"><p>All this week, FT writers and critics share <a href="https://www.ft.com/content/2dd61d03-13ac-4278-8214-678c1d9a33c1">their favourites</a>. Some highlights are: <br/><br/><strong>Monday:</strong> <a href="https://www.ft.com/content/416e1e1d-22e7-439b-9388-5d0cd56f5a9c">Business</a> by Andrew Hill<br/><strong>Tuesday:</strong> <a href="https://www.ft.com/content/db8aaeb6-141f-4a7c-b364-2296fb0d8065">Environment</a> by Pilita Clark<br/><strong>Wednesday:</strong> <a href="https://www.ft.com/content/634c1974-bc76-4f56-9548-274816dcc638">Economics</a> by Martin Wolf<br/><strong>Thursday:</strong> Fiction by Laura Battle<br/><strong>Friday:</strong> Politics by Gideon Rachman<br/><strong>Saturday:</strong> Critics’ choice</p></div></div></div></div></experimental><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/fde6576e-ab0c-41ec-8e18-bcdb3d6c21c0" data-embedded="true"></ft-content><p><a href="https://amzn.to/3gn2kCl"><strong>The Book of Phobias and Manias</strong></a><strong>: A History of the World in 99 Obsessions<br/></strong>by Kate Summerscale, <em>Profile £16.99</em></p><p>This neat compendium from the prizewinning author of <em>The Suspicions of Mr Whicher</em> charts a broad and intriguing range of fears and madness. Although these phobias and manias are alphabetised, Kate Summerscale suggests groupings (textures, animals, communal crazes) that — accompanied by a lightly erudite introduction — illuminate some of the darker corners of our collective psyche.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/a07a6f3b-41cf-47c7-9b79-1c755ebfe54c" data-embedded="true"></ft-content><p><a href="https://amzn.to/3hX9oq0"><strong>Papyrus</strong></a><strong>: The Invention of Books in the Ancient World<br/></strong>by Irene Vallejo, <em>Hodder &amp; Stoughton £25</em></p><p>Described as “a masterpiece” by Mario Vargas Llosa when it was first published in Spain in 2019, this bestselling phenomenon is now available in English. In it, Irene Vallejo recounts the birth of literary culture in the ancient world while interweaving dynamic, thrilling tales that underscore and celebrate the power of words to change the world.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/60b81603-654d-46ac-85ef-5865eb7bc1e8" data-embedded="true"></ft-content><p><a href="https://amzn.to/3EIwiKD"><strong>Magnificent Rebels</strong></a><strong>: The First Romantics and the Invention of the Self</strong><br/>by Andrea Wulf, <em>John Murray £25/Knopf $35</em></p><p>Between 1794-1806, the cream of Germany’s intelligentsia descended on the tiny university town of Jena. There, Johann Wolfgang von Goethe mingled with philosophers Friedrich Schelling and Georg Wilhelm Friedrich Hegel, the scientist-explorer Alexander von Humboldt and the playwright Friedrich Schiller during the first flush of Romanticism. Andrea Wulf’s wonderful <a href="https://www.ft.com/content/391e2bcd-f14e-44e5-b6de-40990ce7272f">book</a> brings to life the “Jena set” and a golden age of German culture. </p><experimental><div class="n-content-layout" data-layout-name="card" data-layout-width="fullWidth"><div class="n-content-layout__container"><h3>Tell us what you think</h3><div class="n-content-layout__slot" data-slot-width="true"><p>What are your favourites from this list — and what books have we missed? Tell us in the comments below</p></div></div></div></experimental><p><em>Join our online book group on Facebook at </em><a href="https://www.facebook.com/groups/139838140082304/"><em>FT Books Café</em></a></p></body>`,
12
+ bodyXML: `<body><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/c45f7393-62c8-4a6b-b53d-641725351851" data-embedded="true"></ft-content><p><a href="https://amzn.to/3V3cwPP"><strong>Eliot After The Waste Land</strong></a><strong> (Eliot Biographies, 2)<br/></strong>by Robert Crawford, <em>Jonathan Cape £25</em></p><p>After a six-year wait, Robert Crawford follows up <em>Young Eliot</em> (2016) with his <a href="https://www.ft.com/content/210d7f37-115e-4197-b392-ffb094ed2699">second (and final) volume</a> on the life of TS Eliot in time for the centenary of “The Waste Land”. Here, he explores Eliot’s marriage, religious life and draws on the 1,131 letters written to American friend Emily Hale that were only released from embargo in 2020 to probe the poet’s later years with tact and empathy.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/bf48b0fc-ad4b-4ce9-a734-faf3e9aab225" data-embedded="true"></ft-content><p><a href="https://amzn.to/3UFKeul"><strong>All the Knowledge in the World</strong></a><strong>: The Extraordinary History of the Encyclopaedia<br/></strong>by Simon Garfield, <em>Weidenfeld &amp; Nicolson £18.99</em></p><p>Simon Garfield, author of quirky histories on everything from fonts to maps, surveys the publishing phenomenon that is the encyclopedia. Tracing its origins from Ancient Greece right up to its modern incarnation in Wikipedia, his handsome book offers an erudite and amusing exploration of the human quest for knowledge.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/cc74e2ec-3314-4b9f-81c1-bcfdf9dbaf99" data-embedded="true"></ft-content><p><a href="https://amzn.to/3VbW1AB"><strong>The Waste Land</strong></a><strong>: A Biography of a Poem<br/></strong>by Matthew Hollis, <em>Faber £20</em></p><p>In the 100 years since TS Eliot penned his famous poem, it has taken on a life of its own. So it’s fitting, perhaps, that Matthew Hollis treats Eliot’s work to its own biography. This richly analytical book locates the poem’s genesis in the aftermath of the first world war and the “nightmare agony” of Eliot’s disastrous marriage.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/7393690b-e02e-4cdb-a263-57e7d1a6eedf" data-embedded="true"></ft-content><p><a href="https://amzn.to/3OgAT9M"><strong>Endless Flight</strong></a><strong>: The Life of Joseph Roth<br/></strong>by Keiron Pim, <em>Granta £25</em></p><p>“I paint the portrait of the age,” Joseph Roth once claimed. Certainly, his work as a journalist from 1917-1939, dissecting central and eastern Europe in more than a thousand essays and anticipating the collapse of democracy on the continent as well as 19 novels provides an exceptional anatomy of a tumultuous period of history. Keiron Pim’s <a href="https://www.ft.com/content/fee9056b-277e-41b4-9572-9fbac39f957b">biography</a> goes some way to introducing the great Austro-Hungarian writer to a new age.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/6e7b048f-d08f-43f7-b1fa-95e98c8ca811" data-embedded="true"></ft-content><p><a href="https://amzn.to/3hX8PfS"><strong>Super-Infinite</strong></a><strong>: The Transformations of John Donne<br/></strong>by Katherine Rundell, <em>Faber £16.99</em></p><p>Katherine Rundell, a Fellow of All Souls College, Oxford, has produced a remarkable life of John Donne, the great poet of love, sex and death. Winner of this year’s Baillie Gifford Prize, her <a href="https://www.ft.com/content/c229396d-5448-44fa-b423-b018695d65d8">biography</a> of the man who was at once soldier, poet, prisoner and priest is sensitive and witty, capturing the essence of a tricky subject. </p><experimental><div class="n-content-layout" data-layout-name="card" data-layout-width="true"><div class="n-content-layout__container"><h2 theme-style="3">Books of the Year 2022</h2><div class="n-content-layout__slot" data-slot-width="true"><h4></h4><div class="n-content-layout__slot" data-slot-width="true"><img alt="" data-copyright="" data-image-type="image" longdesc="" src="https://d1e00ek4ebabms.cloudfront.net/production/43c41a77-ab10-40ed-a2a2-efa99ef32a10.jpg"/></div></div><div class="n-content-layout__slot" data-slot-width="true"><h4></h4><div class="n-content-layout__slot" data-slot-width="true"><p>All this week, FT writers and critics share <a href="https://www.ft.com/content/2dd61d03-13ac-4278-8214-678c1d9a33c1">their favourites</a>. Some highlights are: <br/><br/><strong>Monday:</strong> <a href="https://www.ft.com/content/416e1e1d-22e7-439b-9388-5d0cd56f5a9c">Business</a> by Andrew Hill<br/><strong>Tuesday:</strong> <a href="https://www.ft.com/content/db8aaeb6-141f-4a7c-b364-2296fb0d8065">Environment</a> by Pilita Clark<br/><strong>Wednesday:</strong> <a href="https://www.ft.com/content/634c1974-bc76-4f56-9548-274816dcc638">Economics</a> by Martin Wolf<br/><strong>Thursday:</strong> Fiction by Laura Battle<br/><strong>Friday:</strong> Politics by Gideon Rachman<br/><strong>Saturday:</strong> Critics’ choice</p></div></div></div></div></experimental><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/fde6576e-ab0c-41ec-8e18-bcdb3d6c21c0" data-embedded="true"></ft-content><p><a href="https://amzn.to/3gn2kCl"><strong>The Book of Phobias and Manias</strong></a><strong>: A History of the World in 99 Obsessions<br/></strong>by Kate Summerscale, <em>Profile £16.99</em></p><p>This neat compendium from the prizewinning author of <em>The Suspicions of Mr Whicher</em> charts a broad and intriguing range of fears and madness. Although these phobias and manias are alphabetised, Kate Summerscale suggests groupings (textures, animals, communal crazes) that — accompanied by a lightly erudite introduction — illuminate some of the darker corners of our collective psyche.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/a07a6f3b-41cf-47c7-9b79-1c755ebfe54c" data-embedded="true"></ft-content><p><a href="https://amzn.to/3hX9oq0"><strong>Papyrus</strong></a><strong>: The Invention of Books in the Ancient World<br/></strong>by Irene Vallejo, <em>Hodder &amp; Stoughton £25</em></p><p>Described as “a masterpiece” by Mario Vargas Llosa when it was first published in Spain in 2019, this bestselling phenomenon is now available in English. In it, Irene Vallejo recounts the birth of literary culture in the ancient world while interweaving dynamic, thrilling tales that underscore and celebrate the power of words to change the world.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/60b81603-654d-46ac-85ef-5865eb7bc1e8" data-embedded="true"></ft-content><p><a href="https://amzn.to/3EIwiKD"><strong>Magnificent Rebels</strong></a><strong>: The First Romantics and the Invention of the Self</strong><br/>by Andrea Wulf, <em>John Murray £25/Knopf $35</em></p><ft-content type="http://www.ft.com/ontology/content/ClipSet" url="http://api-t.ft.com/content/f17fe25b-cdea-4d5f-a6af-40e56e33e888" autoplay="true" data-layout="in-line" loop="true" muted="true"></ft-content><p>Between 1794-1806, the cream of Germany’s intelligentsia descended on the tiny university town of Jena. There, Johann Wolfgang von Goethe mingled with philosophers Friedrich Schelling and Georg Wilhelm Friedrich Hegel, the scientist-explorer Alexander von Humboldt and the playwright Friedrich Schiller during the first flush of Romanticism. Andrea Wulf’s wonderful <a href="https://www.ft.com/content/391e2bcd-f14e-44e5-b6de-40990ce7272f">book</a> brings to life the “Jena set” and a golden age of German culture. </p><experimental><div class="n-content-layout" data-layout-name="card" data-layout-width="fullWidth"><div class="n-content-layout__container"><h3>Tell us what you think</h3><div class="n-content-layout__slot" data-slot-width="true"><p>What are your favourites from this list — and what books have we missed? Tell us in the comments below</p></div></div></div></experimental><p><em>Join our online book group on Facebook at </em><a href="https://www.facebook.com/groups/139838140082304/"><em>FT Books Café</em></a></p></body>`,
13
13
  annotations: [
14
14
  {
15
15
  apiUrl: 'http://api.ft.com/things/9bfe954c-e0ec-4716-ae91-24bd0f7860c9',
@@ -1 +1 @@
1
- {"version":3,"file":"capiObject.js","sourceRoot":"","sources":["../../src/fixtures/capiObject.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAoB;IAC7C,EAAE,EAAE,8DAA8D;IAClE,IAAI,EAAE,4CAA4C;IAClD,KAAK,EAAE,CAAC,4CAA4C,CAAC;IACrD,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,4DAA4D;IACnE,UAAU,EAAE,EAAE;IACd,MAAM,EAAE,uBAAuB;IAC/B,OAAO,EAAE,g5PAAg5P;IACz5P,WAAW,EAAE;QACX;YACE,MAAM,EAAE,+DAA+D;YACvE,UAAU,EAAE,kCAAkC;YAC9C,EAAE,EAAE,+DAA+D;YACnE,SAAS,EAAE,6CAA6C;YACxD,SAAS,EAAE,qBAAqB;YAChC,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,uCAAuC;gBACvC,4CAA4C;gBAC5C,kCAAkC;aACnC;SACF;QACD;YACE,MAAM,EAAE,+DAA+D;YACvE,UAAU,EAAE,kCAAkC;YAC9C,EAAE,EAAE,+DAA+D;YACnE,SAAS,EAAE,0CAA0C;YACrD,SAAS,EAAE,sBAAsB;YACjC,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,uCAAuC;gBACvC,4CAA4C;gBAC5C,kCAAkC;aACnC;SACF;QACD;YACE,EAAE,EAAE,+DAA+D;YACnE,SAAS,EAAE,iDAAiD;YAC5D,SAAS,EAAE,aAAa;YACxB,MAAM,EAAE,EAAE;YACV,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,EAAE;SACV;KACF;IACD,SAAS,EAAE;QACT,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,0CAAmD;QACzD,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,uCAAuC;KACnD;IACD,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,SAAkB;IAC/B,MAAM,EAAE,EAAE;IACV,aAAa,EAAE,EAAE;IACjB,kBAAkB,EAAE,EAAE;CACvB,CAAA"}
1
+ {"version":3,"file":"capiObject.js","sourceRoot":"","sources":["../../src/fixtures/capiObject.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAoB;IAC7C,EAAE,EAAE,8DAA8D;IAClE,IAAI,EAAE,4CAA4C;IAClD,KAAK,EAAE,CAAC,4CAA4C,CAAC;IACrD,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,4DAA4D;IACnE,UAAU,EAAE,EAAE;IACd,MAAM,EAAE,uBAAuB;IAC/B,OAAO,EAAE,imQAAimQ;IAC1mQ,WAAW,EAAE;QACX;YACE,MAAM,EAAE,+DAA+D;YACvE,UAAU,EAAE,kCAAkC;YAC9C,EAAE,EAAE,+DAA+D;YACnE,SAAS,EAAE,6CAA6C;YACxD,SAAS,EAAE,qBAAqB;YAChC,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,uCAAuC;gBACvC,4CAA4C;gBAC5C,kCAAkC;aACnC;SACF;QACD;YACE,MAAM,EAAE,+DAA+D;YACvE,UAAU,EAAE,kCAAkC;YAC9C,EAAE,EAAE,+DAA+D;YACnE,SAAS,EAAE,0CAA0C;YACrD,SAAS,EAAE,sBAAsB;YACjC,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,uCAAuC;gBACvC,4CAA4C;gBAC5C,kCAAkC;aACnC;SACF;QACD;YACE,EAAE,EAAE,+DAA+D;YACnE,SAAS,EAAE,iDAAiD;YAC5D,SAAS,EAAE,aAAa;YACxB,MAAM,EAAE,EAAE;YACV,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,EAAE;SACV;KACF;IACD,SAAS,EAAE;QACT,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,0CAAmD;QACzD,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,uCAAuC;KACnD;IACD,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,SAAkB;IAC/B,MAAM,EAAE,EAAE;IACV,aAAa,EAAE,EAAE;IACjB,kBAAkB,EAAE,EAAE;CACvB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { ClipSet as ClipSetType } from '../types/internal-content';
2
+ export declare const ClipSet: ClipSetType;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClipSet = void 0;
4
+ exports.ClipSet = {
5
+ accessibility: {
6
+ captions: [
7
+ {
8
+ mediaType: 'text/vtt',
9
+ url: 'https://next-media-api.ft.com/captions/16862228218010.vtt',
10
+ },
11
+ ],
12
+ transcript: '<p>Hydrogen is this magic molecule which is the lightest, the most energetic and the most abundant in the universe. ... </p>',
13
+ },
14
+ description: "The global push for net zero carbon emissions is one of humanity's greatest challenges. ...",
15
+ displayTitle: 'Ukranians fight back',
16
+ contentWarning: ['graphic violence', 'animal cruelty'],
17
+ id: 'http://www.ft.com/thing/f17fe25b-cdea-4d5f-a6af-40e56e33e888',
18
+ members: [
19
+ {
20
+ format: 'standardInline',
21
+ id: 'https://api.ft.com/content/4d000e07-d679-4e3b-bd6d-afa3461243a8',
22
+ type: 'http://www.ft.com/ontology/content/Clip',
23
+ dataSource: [
24
+ {
25
+ audioCodec: 'mp3',
26
+ binaryUrl: 'https://next-media-api.ft.com/renditions/16868569859480/0x0.mp3',
27
+ duration: 1057,
28
+ mediaType: 'audio/mpeg',
29
+ pixelHeight: 720,
30
+ pixelWidth: 1280,
31
+ videoCodec: 'h264',
32
+ },
33
+ ],
34
+ poster: {
35
+ id: 'https://api.ft.com/content/2f730c3c-1fb2-4131-9697-c534fe1ee488',
36
+ type: 'http://www.ft.com/ontology/content/ImageSet',
37
+ description: 'Picture for video',
38
+ members: [],
39
+ },
40
+ },
41
+ {
42
+ format: 'mobile',
43
+ id: 'https://api.ft.com/content/b529ba2b-d424-4f85-a93f-8413636dac82',
44
+ type: 'http://www.ft.com/ontology/content/Clip',
45
+ dataSource: [
46
+ {
47
+ audioCodec: 'mp3',
48
+ binaryUrl: 'https://next-media-api.ft.com/renditions/16868569859480/0x0.mp3',
49
+ duration: 1057,
50
+ mediaType: 'audio/mpeg',
51
+ pixelHeight: 720,
52
+ pixelWidth: 1280,
53
+ videoCodec: 'h264',
54
+ },
55
+ ],
56
+ poster: {
57
+ id: 'https://api.ft.com/content/2f730c3c-1fb2-4131-9697-c534fe1ee488',
58
+ type: 'http://www.ft.com/ontology/content/ImageSet',
59
+ description: 'Picture for video',
60
+ members: [],
61
+ },
62
+ },
63
+ ],
64
+ noAudio: false,
65
+ publishedDate: '2023-06-14T03:59:47.543Z',
66
+ source: 'YouGov',
67
+ subtitle: 'Drone hits Moscow tower block',
68
+ type: 'http://www.ft.com/ontology/content/ClipSet',
69
+ };
70
+ //# sourceMappingURL=clipSet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clipSet.js","sourceRoot":"","sources":["../../src/fixtures/clipSet.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAgB;IAClC,aAAa,EAAE;QACb,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE,UAAU;gBACrB,GAAG,EAAE,2DAA2D;aACjE;SACF;QACD,UAAU,EACR,8HAA8H;KACjI;IACD,WAAW,EACT,6FAA6F;IAC/F,YAAY,EAAE,sBAAsB;IACpC,cAAc,EAAE,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;IACtD,EAAE,EAAE,8DAA8D;IAClE,OAAO,EAAE;QACP;YACE,MAAM,EAAE,gBAAgB;YACxB,EAAE,EAAE,iEAAiE;YACrE,IAAI,EAAE,yCAAyC;YAC/C,UAAU,EAAE;gBACV;oBACE,UAAU,EAAE,KAAK;oBACjB,SAAS,EACP,iEAAiE;oBACnE,QAAQ,EAAE,IAAI;oBACd,SAAS,EAAE,YAAY;oBACvB,WAAW,EAAE,GAAG;oBAChB,UAAU,EAAE,IAAI;oBAChB,UAAU,EAAE,MAAM;iBACnB;aACF;YACD,MAAM,EAAE;gBACN,EAAE,EAAE,iEAAiE;gBACrE,IAAI,EAAE,6CAA6C;gBACnD,WAAW,EAAE,mBAAmB;gBAChC,OAAO,EAAE,EAAE;aACZ;SACF;QACD;YACE,MAAM,EAAE,QAAQ;YAChB,EAAE,EAAE,iEAAiE;YACrE,IAAI,EAAE,yCAAyC;YAC/C,UAAU,EAAE;gBACV;oBACE,UAAU,EAAE,KAAK;oBACjB,SAAS,EACP,iEAAiE;oBACnE,QAAQ,EAAE,IAAI;oBACd,SAAS,EAAE,YAAY;oBACvB,WAAW,EAAE,GAAG;oBAChB,UAAU,EAAE,IAAI;oBAChB,UAAU,EAAE,MAAM;iBACnB;aACF;YACD,MAAM,EAAE;gBACN,EAAE,EAAE,iEAAiE;gBACrE,IAAI,EAAE,6CAA6C;gBACnD,WAAW,EAAE,mBAAmB;gBAChC,OAAO,EAAE,EAAE;aACZ;SACF;KACF;IACD,OAAO,EAAE,KAAK;IACd,aAAa,EAAE,0BAA0B;IACzC,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,+BAA+B;IACzC,IAAI,EAAE,4CAA4C;CACnD,CAAA"}
@@ -2,12 +2,13 @@ import type { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } f
2
2
  import type { Concept as ConceptModel } from '../model/Concept';
3
3
  import type { CapiResponse } from '../model/CapiResponse';
4
4
  import type { Image as ImageModel } from '../model/Image';
5
+ import type { Clip as ClipModel } from '../model/Clip';
5
6
  import type { Picture as PictureModel } from '../model/Picture';
6
7
  import type { RichText as RichTextModel } from '../model/RichText';
7
8
  import type { Topper as TopperModel } from '../model/Topper';
8
9
  import type { ContentTree } from '@financial-times/content-tree';
9
10
  import type { ReferenceWithCAPIData } from '../resolvers/content-tree/references';
10
- import type { Video as VideoNode, RawImage as RawImageNode } from '../resolvers/content-tree/Workarounds';
11
+ import type { Video as VideoNode, ClipSet as ClipSetNode, OldClip as OldClipNode, RawImage as RawImageNode } from '../resolvers/content-tree/Workarounds';
11
12
  import type { QueryContext } from '../';
12
13
  export type Maybe<T> = T | null;
13
14
  export type InputMaybe<T> = Maybe<T>;
@@ -64,6 +65,10 @@ export type Scalars = {
64
65
  input: 'yes' | 'no' | 'verify' | 'withContributorPayment' | 'unknown';
65
66
  output: 'yes' | 'no' | 'verify' | 'withContributorPayment' | 'unknown';
66
67
  };
68
+ ClipFormat: {
69
+ input: 'standard-inline' | 'mobile';
70
+ output: 'standard-inline' | 'mobile';
71
+ };
67
72
  ContentType: {
68
73
  input: 'Article' | 'Placeholder' | 'Video' | 'Audio' | 'LiveBlogPackage' | 'LiveBlogPost' | 'ContentPackage' | 'Content' | 'MediaResource';
69
74
  output: 'Article' | 'Placeholder' | 'Video' | 'Audio' | 'LiveBlogPackage' | 'LiveBlogPost' | 'ContentPackage' | 'Content' | 'MediaResource';
@@ -97,6 +102,10 @@ export type Scalars = {
97
102
  output: 'paper' | 'wheat' | 'white' | 'black' | 'claret' | 'oxford' | 'slate' | 'crimson' | 'sky' | 'matisse';
98
103
  };
99
104
  };
105
+ export type Accessibility = {
106
+ readonly captions?: Maybe<ReadonlyArray<Maybe<Caption>>>;
107
+ readonly transcript?: Maybe<Scalars['String']['output']>;
108
+ };
100
109
  export type AltStandfirst = {
101
110
  readonly promotionalStandfirst?: Maybe<Scalars['String']['output']>;
102
111
  };
@@ -188,6 +197,45 @@ export type BrandedTopper = Topper & TopperWithBrand & TopperWithTheme & {
188
197
  readonly layout?: Maybe<Scalars['String']['output']>;
189
198
  readonly textShadow?: Maybe<Scalars['Boolean']['output']>;
190
199
  };
200
+ export type Caption = {
201
+ readonly mediaType?: Maybe<Scalars['String']['output']>;
202
+ readonly url?: Maybe<Scalars['String']['output']>;
203
+ };
204
+ export type Clip = {
205
+ readonly dataSource: ReadonlyArray<ClipSource>;
206
+ readonly format?: Maybe<Scalars['ClipFormat']['output']>;
207
+ readonly id: Scalars['String']['output'];
208
+ readonly poster?: Maybe<Scalars['String']['output']>;
209
+ readonly type?: Maybe<Scalars['String']['output']>;
210
+ };
211
+ export type ClipSet = Reference & {
212
+ readonly accessibility?: Maybe<Accessibility>;
213
+ readonly autoplay?: Maybe<Scalars['Boolean']['output']>;
214
+ readonly caption?: Maybe<Scalars['String']['output']>;
215
+ readonly clips?: Maybe<ReadonlyArray<Maybe<Clip>>>;
216
+ readonly contentWarning?: Maybe<ReadonlyArray<Maybe<Scalars['String']['output']>>>;
217
+ readonly credits?: Maybe<Scalars['String']['output']>;
218
+ readonly dataLayout?: Maybe<Scalars['String']['output']>;
219
+ readonly description?: Maybe<Scalars['String']['output']>;
220
+ readonly displayTitle?: Maybe<Scalars['String']['output']>;
221
+ readonly id: Scalars['String']['output'];
222
+ readonly loop?: Maybe<Scalars['Boolean']['output']>;
223
+ readonly muted?: Maybe<Scalars['Boolean']['output']>;
224
+ readonly noAudio?: Maybe<Scalars['Boolean']['output']>;
225
+ readonly publishedDate?: Maybe<Scalars['String']['output']>;
226
+ readonly source?: Maybe<Scalars['String']['output']>;
227
+ readonly subtitle?: Maybe<Scalars['String']['output']>;
228
+ readonly type: Scalars['String']['output'];
229
+ };
230
+ export type ClipSource = {
231
+ readonly audioCodec?: Maybe<Scalars['String']['output']>;
232
+ readonly binaryUrl: Scalars['String']['output'];
233
+ readonly duration?: Maybe<Scalars['Int']['output']>;
234
+ readonly mediaType: Scalars['String']['output'];
235
+ readonly pixelHeight?: Maybe<Scalars['Int']['output']>;
236
+ readonly pixelWidth?: Maybe<Scalars['Int']['output']>;
237
+ readonly videoCodec?: Maybe<Scalars['String']['output']>;
238
+ };
191
239
  export type Concept = {
192
240
  readonly apiUrl?: Maybe<Scalars['String']['output']>;
193
241
  readonly directType?: Maybe<Scalars['String']['output']>;
@@ -887,7 +935,7 @@ export type ResolversInterfaceTypes<RefType extends Record<string, unknown>> = R
887
935
  fallbackImage: RefType['Image'];
888
936
  images: ReadonlyArray<RefType['Image']>;
889
937
  });
890
- Reference: (ReferenceWithCAPIData<ContentTree.Flourish>) | (ReferenceWithCAPIData<ContentTree.ImageSet>) | (ReferenceWithCAPIData<ContentTree.LayoutImage>) | (ReferenceWithCAPIData<ContentTree.ImageSet>) | (ReferenceWithCAPIData<RawImageNode>) | (ReferenceWithCAPIData<ContentTree.Recommended>) | (ReferenceWithCAPIData<ContentTree.ScrollyImage>) | (ReferenceWithCAPIData<ContentTree.Tweet>) | (ReferenceWithCAPIData<VideoNode>);
938
+ Reference: (ReferenceWithCAPIData<ClipSetNode | OldClipNode>) | (ReferenceWithCAPIData<ContentTree.Flourish>) | (ReferenceWithCAPIData<ContentTree.ImageSet>) | (ReferenceWithCAPIData<ContentTree.LayoutImage>) | (ReferenceWithCAPIData<ContentTree.ImageSet>) | (ReferenceWithCAPIData<RawImageNode>) | (ReferenceWithCAPIData<ContentTree.Recommended>) | (ReferenceWithCAPIData<ContentTree.ScrollyImage>) | (ReferenceWithCAPIData<ContentTree.Tweet>) | (ReferenceWithCAPIData<VideoNode>);
891
939
  Topper: (Omit<BasicTopper, 'displayConcept' | 'genreConcept' | 'intro'> & {
892
940
  displayConcept?: Maybe<RefType['Concept']>;
893
941
  genreConcept?: Maybe<RefType['Concept']>;
@@ -1036,6 +1084,7 @@ export type ResolversInterfaceTypes<RefType extends Record<string, unknown>> = R
1036
1084
  /** Mapping between all available schema types and the resolvers types */
1037
1085
  export type ResolversTypes = ResolversObject<{
1038
1086
  AccessLevel: ResolverTypeWrapper<Scalars['AccessLevel']['output']>;
1087
+ Accessibility: ResolverTypeWrapper<Accessibility>;
1039
1088
  AltStandfirst: ResolverTypeWrapper<AltStandfirst>;
1040
1089
  AltTitle: ResolverTypeWrapper<AltTitle>;
1041
1090
  Article: ResolverTypeWrapper<CapiResponse>;
@@ -1053,6 +1102,11 @@ export type ResolversTypes = ResolversObject<{
1053
1102
  intro?: Maybe<ResolversTypes['RichText']>;
1054
1103
  }>;
1055
1104
  CanBeSyndicated: ResolverTypeWrapper<Scalars['CanBeSyndicated']['output']>;
1105
+ Caption: ResolverTypeWrapper<Caption>;
1106
+ Clip: ResolverTypeWrapper<ClipModel>;
1107
+ ClipFormat: ResolverTypeWrapper<Scalars['ClipFormat']['output']>;
1108
+ ClipSet: ResolverTypeWrapper<ReferenceWithCAPIData<ClipSetNode | OldClipNode>>;
1109
+ ClipSource: ResolverTypeWrapper<ClipSource>;
1056
1110
  Concept: ResolverTypeWrapper<ConceptModel>;
1057
1111
  Content: ResolverTypeWrapper<ResolversInterfaceTypes<ResolversTypes>['Content']>;
1058
1112
  ContentPackage: ResolverTypeWrapper<CapiResponse>;
@@ -1162,6 +1216,7 @@ export type ResolversTypes = ResolversObject<{
1162
1216
  /** Mapping between all available schema types and the resolvers parents */
1163
1217
  export type ResolversParentTypes = ResolversObject<{
1164
1218
  AccessLevel: Scalars['AccessLevel']['output'];
1219
+ Accessibility: Accessibility;
1165
1220
  AltStandfirst: AltStandfirst;
1166
1221
  AltTitle: AltTitle;
1167
1222
  Article: CapiResponse;
@@ -1179,6 +1234,11 @@ export type ResolversParentTypes = ResolversObject<{
1179
1234
  intro?: Maybe<ResolversParentTypes['RichText']>;
1180
1235
  };
1181
1236
  CanBeSyndicated: Scalars['CanBeSyndicated']['output'];
1237
+ Caption: Caption;
1238
+ Clip: ClipModel;
1239
+ ClipFormat: Scalars['ClipFormat']['output'];
1240
+ ClipSet: ReferenceWithCAPIData<ClipSetNode | OldClipNode>;
1241
+ ClipSource: ClipSource;
1182
1242
  Concept: ConceptModel;
1183
1243
  Content: ResolversInterfaceTypes<ResolversParentTypes>['Content'];
1184
1244
  ContentPackage: CapiResponse;
@@ -1288,6 +1348,11 @@ export type ResolversParentTypes = ResolversObject<{
1288
1348
  export interface AccessLevelScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['AccessLevel'], any> {
1289
1349
  name: 'AccessLevel';
1290
1350
  }
1351
+ export type AccessibilityResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['Accessibility'] = ResolversParentTypes['Accessibility']> = ResolversObject<{
1352
+ captions?: Resolver<Maybe<ReadonlyArray<Maybe<ResolversTypes['Caption']>>>, ParentType, ContextType>;
1353
+ transcript?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1354
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1355
+ }>;
1291
1356
  export type AltStandfirstResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['AltStandfirst'] = ResolversParentTypes['AltStandfirst']> = ResolversObject<{
1292
1357
  promotionalStandfirst?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1293
1358
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
@@ -1374,6 +1439,52 @@ export type BrandedTopperResolvers<ContextType = QueryContext, ParentType extend
1374
1439
  export interface CanBeSyndicatedScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['CanBeSyndicated'], any> {
1375
1440
  name: 'CanBeSyndicated';
1376
1441
  }
1442
+ export type CaptionResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['Caption'] = ResolversParentTypes['Caption']> = ResolversObject<{
1443
+ mediaType?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1444
+ url?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1445
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1446
+ }>;
1447
+ export type ClipResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['Clip'] = ResolversParentTypes['Clip']> = ResolversObject<{
1448
+ dataSource?: Resolver<ReadonlyArray<ResolversTypes['ClipSource']>, ParentType, ContextType>;
1449
+ format?: Resolver<Maybe<ResolversTypes['ClipFormat']>, ParentType, ContextType>;
1450
+ id?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
1451
+ poster?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1452
+ type?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1453
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1454
+ }>;
1455
+ export interface ClipFormatScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['ClipFormat'], any> {
1456
+ name: 'ClipFormat';
1457
+ }
1458
+ export type ClipSetResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['ClipSet'] = ResolversParentTypes['ClipSet']> = ResolversObject<{
1459
+ accessibility?: Resolver<Maybe<ResolversTypes['Accessibility']>, ParentType, ContextType>;
1460
+ autoplay?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
1461
+ caption?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1462
+ clips?: Resolver<Maybe<ReadonlyArray<Maybe<ResolversTypes['Clip']>>>, ParentType, ContextType>;
1463
+ contentWarning?: Resolver<Maybe<ReadonlyArray<Maybe<ResolversTypes['String']>>>, ParentType, ContextType>;
1464
+ credits?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1465
+ dataLayout?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1466
+ description?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1467
+ displayTitle?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1468
+ id?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
1469
+ loop?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
1470
+ muted?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
1471
+ noAudio?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
1472
+ publishedDate?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1473
+ source?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1474
+ subtitle?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1475
+ type?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
1476
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1477
+ }>;
1478
+ export type ClipSourceResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['ClipSource'] = ResolversParentTypes['ClipSource']> = ResolversObject<{
1479
+ audioCodec?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1480
+ binaryUrl?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
1481
+ duration?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
1482
+ mediaType?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
1483
+ pixelHeight?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
1484
+ pixelWidth?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
1485
+ videoCodec?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1486
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1487
+ }>;
1377
1488
  export type ConceptResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['Concept'] = ResolversParentTypes['Concept']> = ResolversObject<{
1378
1489
  apiUrl?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
1379
1490
  directType?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
@@ -1857,7 +1968,7 @@ export type RecommendedResolvers<ContextType = QueryContext, ParentType extends
1857
1968
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1858
1969
  }>;
1859
1970
  export type ReferenceResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['Reference'] = ResolversParentTypes['Reference']> = ResolversObject<{
1860
- __resolveType?: TypeResolveFn<'Flourish' | 'ImageSet' | 'LayoutImage' | 'MainImage' | 'RawImage' | 'Recommended' | 'ScrollyImage' | 'Tweet' | 'VideoReference', ParentType, ContextType>;
1971
+ __resolveType?: TypeResolveFn<'ClipSet' | 'Flourish' | 'ImageSet' | 'LayoutImage' | 'MainImage' | 'RawImage' | 'Recommended' | 'ScrollyImage' | 'Tweet' | 'VideoReference', ParentType, ContextType>;
1861
1972
  type?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
1862
1973
  }>;
1863
1974
  export type RichTextResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['RichText'] = ResolversParentTypes['RichText']> = ResolversObject<{
@@ -1993,6 +2104,7 @@ export type VideoReferenceResolvers<ContextType = QueryContext, ParentType exten
1993
2104
  }>;
1994
2105
  export type Resolvers<ContextType = QueryContext> = ResolversObject<{
1995
2106
  AccessLevel?: GraphQLScalarType;
2107
+ Accessibility?: AccessibilityResolvers<ContextType>;
1996
2108
  AltStandfirst?: AltStandfirstResolvers<ContextType>;
1997
2109
  AltTitle?: AltTitleResolvers<ContextType>;
1998
2110
  Article?: ArticleResolvers<ContextType>;
@@ -2000,6 +2112,11 @@ export type Resolvers<ContextType = QueryContext> = ResolversObject<{
2000
2112
  BasicTopper?: BasicTopperResolvers<ContextType>;
2001
2113
  BrandedTopper?: BrandedTopperResolvers<ContextType>;
2002
2114
  CanBeSyndicated?: GraphQLScalarType;
2115
+ Caption?: CaptionResolvers<ContextType>;
2116
+ Clip?: ClipResolvers<ContextType>;
2117
+ ClipFormat?: GraphQLScalarType;
2118
+ ClipSet?: ClipSetResolvers<ContextType>;
2119
+ ClipSource?: ClipSourceResolvers<ContextType>;
2003
2120
  Concept?: ConceptResolvers<ContextType>;
2004
2121
  Content?: ContentResolvers<ContextType>;
2005
2122
  ContentPackage?: ContentPackageResolvers<ContextType>;
@@ -1,4 +1,4 @@
1
- import type { ImageSet, ContentTypeSchemas } from '../types/internal-content';
1
+ import type { ImageSet, ContentTypeSchemas, ClipSet } from '../types/internal-content';
2
2
  import type { QueryContext } from '..';
3
3
  import { CAPIImage } from './Image';
4
4
  import { Concept } from './Concept';
@@ -66,7 +66,7 @@ export declare class CapiResponse {
66
66
  title: string;
67
67
  }>;
68
68
  bodyXML(): string | null;
69
- embeds(): ImageSet[];
69
+ embeds(): (ImageSet | ClipSet)[];
70
70
  byline(): string | null;
71
71
  annotations(): Concept[];
72
72
  types(): string[];
@@ -64,7 +64,7 @@ class CapiResponse {
64
64
  /*
65
65
  * Check if the incoming data matches the types defined in our data source schema
66
66
  * Our data source schema should handle all possible response from CAPI
67
- * As there is no agreed schema provided by CAPI there is a chance it will out of date / incorrect at times
67
+ * As there is no agreed schema provided by CAPI there is a chance it will be out of date / incorrect at times
68
68
  * Manual updates will be required at times to keep it in sync with the responses we receive
69
69
  */
70
70
  const schemaResponse = model.schema().safeParse(content);
@@ -1 +1 @@
1
- {"version":3,"file":"CapiResponse.js","sourceRoot":"","sources":["../../src/model/CapiResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,mFAAuD;AACvD,6FAA0D;AAC1D,4DAAkC;AAClC,2DAAiE;AAGjE,kEAAkC;AAElC,mCAAmC;AACnC,uCAAmC;AACnC,iEAAwC;AACxC,kDAAiD;AACjD,yCAAwC;AACxC,kDAK6B;AAC7B,8DAGmC;AAGnC,qCAAiC;AAyBjC,SAAS,yBAAyB,CAChC,MAA0B,EAC1B,MAAqB,EACrB,OAAiB,EAAE,EACnB,YAAsB,EAAE;IAExB,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7B,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CACpD,KAAK,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAC1C,CAAA;QACD,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CACvC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,uBAAuB,CAAC,CACtD,CAAA;QAED,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE;YAC5B,SAAS,CAAC,IAAI,CACZ,GAAG,IAAI,CAAC,IAAI,CACV,GAAG,CACJ,sCAAsC,MAAM,qBAAqB;gBAChE,aAAa;qBACV,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;oBACjB,MAAM,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,IAAI,CAAC,OAAO,CAAC,CAAA;KACrD;IAED,OAAO,IAAI,CAAA;AACb,CAAC,2EAMiB,UAAkB;IAClC,OAAO,6BAA6B,UAAU,EAAE,CAAA;AAClD,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { Clip as ClipMetadata } from '../types/internal-content';
2
+ import { LiteralUnionScalarValues } from '../resolvers/literal-union';
3
+ import { ClipFormat } from '../resolvers/scalars';
4
+ export type ClipSource = {
5
+ binaryUrl: string;
6
+ mediaType: string;
7
+ audioCodec?: string;
8
+ duration?: number;
9
+ pixelHeight?: number;
10
+ pixelWidth?: number;
11
+ videoCodec?: string;
12
+ };
13
+ export interface ClipVideo {
14
+ id(): string;
15
+ type(): string;
16
+ format(): LiteralUnionScalarValues<typeof ClipFormat>;
17
+ poster(): string;
18
+ dataSource(): ClipSource[];
19
+ }
20
+ export declare class Clip implements ClipVideo {
21
+ private clip;
22
+ constructor(clip: ClipMetadata);
23
+ type(): string;
24
+ id(): string;
25
+ format(): LiteralUnionScalarValues<typeof ClipFormat>;
26
+ dataSource(): ClipSource[];
27
+ poster(): string;
28
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Clip = void 0;
4
+ const metadata_1 = require("../helpers/metadata");
5
+ const literal_union_1 = require("../resolvers/literal-union");
6
+ const scalars_1 = require("../resolvers/scalars");
7
+ class Clip {
8
+ constructor(clip) {
9
+ this.clip = clip;
10
+ }
11
+ type() {
12
+ return 'clip';
13
+ }
14
+ id() {
15
+ const uuid = (0, metadata_1.uuidFromUrl)(this.clip.id);
16
+ if (!uuid) {
17
+ throw new Error(`${this.clip.id} is not a valid Content API Clip ID`);
18
+ }
19
+ return uuid;
20
+ }
21
+ format() {
22
+ if (this.clip.format) {
23
+ const capiFormat = this.clip.format;
24
+ if (capiFormat === 'standardInline') {
25
+ return 'standard-inline';
26
+ }
27
+ if ((0, literal_union_1.validLiteralUnionValue)(this.clip.format, scalars_1.ClipFormat.values)) {
28
+ return capiFormat;
29
+ }
30
+ }
31
+ return 'standard-inline';
32
+ }
33
+ dataSource() {
34
+ // Order clip dataSource to have an order of video formats first then audio/mpeg, as the browser will first check if it can play the MIME type of the first source
35
+ const dataSource = this.clip.dataSource.slice().sort((a, b) => {
36
+ if (a.mediaType === 'video/mp4' && b.mediaType !== 'video/mp4') {
37
+ return -1;
38
+ }
39
+ if (a.mediaType !== 'video/mp4' && b.mediaType === 'video/mp4') {
40
+ return 1;
41
+ }
42
+ return 0;
43
+ });
44
+ return dataSource;
45
+ }
46
+ poster() {
47
+ return this.clip.poster?.members[0].binaryUrl ?? '';
48
+ }
49
+ }
50
+ exports.Clip = Clip;
51
+ //# sourceMappingURL=Clip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Clip.js","sourceRoot":"","sources":["../../src/model/Clip.ts"],"names":[],"mappings":";;;AAAA,kDAAiD;AAEjD,8DAGmC;AACnC,kDAAiD;AAoBjD,MAAa,IAAI;IACf,YAAoB,IAAkB;QAAlB,SAAI,GAAJ,IAAI,CAAc;IAAG,CAAC;IAE1C,IAAI;QACF,OAAO,MAAM,CAAA;IACf,CAAC;IAED,EAAE;QACA,MAAM,IAAI,GAAG,IAAA,sBAAW,EAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACtC,IAAI,CAAC,IAAI,EAAE;YACT,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,qCAAqC,CAAC,CAAA;SACtE;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAED,MAAM;QACJ,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YACpB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAA;YAEnC,IAAI,UAAU,KAAK,gBAAgB,EAAE;gBACnC,OAAO,iBAAiB,CAAA;aACzB;YAED,IAAI,IAAA,sCAAsB,EAAC,IAAI,CAAC,IAAI,CAAC,MAAM,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