@financial-times/cp-content-pipeline-schema 3.12.2 → 3.13.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 (58) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/lib/datasources/origami-image.js +3 -3
  3. package/lib/datasources/origami-image.js.map +1 -1
  4. package/lib/generated/index.d.ts +11 -11
  5. package/lib/helpers/imageService.js +1 -1
  6. package/lib/helpers/imageService.js.map +1 -1
  7. package/lib/index.d.ts +1 -1
  8. package/lib/model/Clip.d.ts +3 -1
  9. package/lib/model/Clip.js +4 -2
  10. package/lib/model/Clip.js.map +1 -1
  11. package/lib/model/Clip.test.js +26 -37
  12. package/lib/model/Clip.test.js.map +1 -1
  13. package/lib/model/Concept.js +1 -1
  14. package/lib/model/Concept.js.map +1 -1
  15. package/lib/model/FlourishSource.js +2 -2
  16. package/lib/model/FlourishSource.js.map +1 -1
  17. package/lib/model/Image.js +1 -1
  18. package/lib/model/Image.js.map +1 -1
  19. package/lib/model/Image.test.js +5 -5
  20. package/lib/model/Image.test.js.map +1 -1
  21. package/lib/model/LeadFlourish.js +1 -1
  22. package/lib/model/LeadFlourish.js.map +1 -1
  23. package/lib/model/Person.js +1 -1
  24. package/lib/model/Person.js.map +1 -1
  25. package/lib/model/Person.test.js +2 -2
  26. package/lib/model/Person.test.js.map +1 -1
  27. package/lib/model/Picture.test.js +4 -2
  28. package/lib/model/Picture.test.js.map +1 -1
  29. package/lib/model/Topper.js +1 -1
  30. package/lib/model/Topper.js.map +1 -1
  31. package/lib/model/Topper.test.js +3 -2
  32. package/lib/model/Topper.test.js.map +1 -1
  33. package/lib/resolvers/content-tree/references/ClipSet.d.ts +2 -1
  34. package/lib/resolvers/content-tree/references/ClipSet.js +2 -2
  35. package/lib/resolvers/content-tree/references/ClipSet.js.map +1 -1
  36. package/lib/resolvers/content-tree/references/RawImage.js +1 -1
  37. package/lib/resolvers/content-tree/references/RawImage.js.map +1 -1
  38. package/package.json +1 -1
  39. package/src/datasources/origami-image.ts +3 -3
  40. package/src/generated/index.ts +11 -11
  41. package/src/helpers/imageService.ts +1 -1
  42. package/src/index.ts +1 -1
  43. package/src/model/Clip.test.ts +164 -145
  44. package/src/model/Clip.ts +7 -3
  45. package/src/model/Concept.ts +1 -1
  46. package/src/model/FlourishSource.ts +3 -6
  47. package/src/model/Image.test.ts +5 -7
  48. package/src/model/Image.ts +1 -1
  49. package/src/model/LeadFlourish.ts +1 -1
  50. package/src/model/Person.test.ts +2 -2
  51. package/src/model/Person.ts +1 -1
  52. package/src/model/Picture.test.ts +4 -2
  53. package/src/model/Topper.test.ts +4 -2
  54. package/src/model/Topper.ts +1 -1
  55. package/src/resolvers/content-tree/references/ClipSet.ts +3 -2
  56. package/src/resolvers/content-tree/references/RawImage.ts +1 -1
  57. package/tsconfig.tsbuildinfo +1 -1
  58. package/typedefs/image.graphql +11 -11
@@ -1,5 +1,5 @@
1
1
  type ImageSource {
2
- "The url of the image source, eg. 'https://www.ft.com/__origami/service/image/v2/images/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=next&fit=scale-down&width=700'."
2
+ "The url of the image source, eg. 'https://images.ft.com/v3/image/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=cp-content-pipeline-api&fit=scale-down&width=700'."
3
3
  url: String!
4
4
 
5
5
  "The width of the image source in pixels."
@@ -22,7 +22,7 @@ interface Image {
22
22
  "An array of image sources, ie. different images to render based on input width resulting in responsive images."
23
23
  sourceSet(width: Int, maxDpr: Int): [ImageSource!]!
24
24
 
25
- "The url of the image, eg. 'https://www.ft.com/__origami/service/image/v2/images/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=next&fit=scale-down&width=700'."
25
+ "The url of the image, eg. 'https://images.ft.com/v3/image/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=cp-content-pipeline-api&fit=scale-down&width=700'."
26
26
  url: String!
27
27
 
28
28
  "Text describing the content of the image, usually hidden from the user unless the image is not available. It is to be read by screen readers."
@@ -54,7 +54,7 @@ type ImageStandardInline implements Image {
54
54
  "An array of image sources, ie. different images to render based on input width resulting in responsive images."
55
55
  sourceSet(width: Int, maxDpr: Int): [ImageSource!]!
56
56
 
57
- "The url of the image, eg. 'https://www.ft.com/__origami/service/image/v2/images/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=next&fit=scale-down&width=700'."
57
+ "The url of the image, eg. 'https://images.ft.com/v3/image/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=cp-content-pipeline-api&fit=scale-down&width=700'."
58
58
  url: String!
59
59
 
60
60
  "Text describing the content of the image, usually hidden from the user unless the image is not available. It is to be read by screen readers."
@@ -86,7 +86,7 @@ type ImageDesktop implements Image {
86
86
  "An array of image sources, ie. different images to render based on input width resulting in responsive images."
87
87
  sourceSet(width: Int, maxDpr: Int): [ImageSource!]!
88
88
 
89
- "The url of the image, eg. 'https://www.ft.com/__origami/service/image/v2/images/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=next&fit=scale-down&width=700'."
89
+ "The url of the image, eg. 'https://images.ft.com/v3/image/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=cp-content-pipeline-api&fit=scale-down&width=700'."
90
90
  url: String!
91
91
 
92
92
  "Text describing the content of the image, usually hidden from the user unless the image is not available. It is to be read by screen readers."
@@ -118,7 +118,7 @@ type ImageMobile implements Image {
118
118
  "An array of image sources, ie. different images to render based on input width resulting in responsive images."
119
119
  sourceSet(width: Int, maxDpr: Int): [ImageSource!]!
120
120
 
121
- "The url of the image, eg. 'https://www.ft.com/__origami/service/image/v2/images/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=next&fit=scale-down&width=700'."
121
+ "The url of the image, eg. 'https://images.ft.com/v3/image/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=cp-content-pipeline-api&fit=scale-down&width=700'."
122
122
  url: String!
123
123
 
124
124
  "Text describing the content of the image, usually hidden from the user unless the image is not available. It is to be read by screen readers."
@@ -150,7 +150,7 @@ type ImageStandard implements Image {
150
150
  "An array of image sources, ie. different images to render based on input width resulting in responsive images."
151
151
  sourceSet(width: Int, maxDpr: Int): [ImageSource!]!
152
152
 
153
- "The url of the image, eg. 'https://www.ft.com/__origami/service/image/v2/images/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=next&fit=scale-down&width=700'."
153
+ "The url of the image, eg. 'https://images.ft.com/v3/image/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=cp-content-pipeline-api&fit=scale-down&width=700'."
154
154
  url: String!
155
155
 
156
156
  "Text describing the content of the image, usually hidden from the user unless the image is not available. It is to be read by screen readers."
@@ -182,7 +182,7 @@ type ImageSquare implements Image {
182
182
  "An array of image sources, ie. different images to render based on input width resulting in responsive images."
183
183
  sourceSet(width: Int, maxDpr: Int): [ImageSource!]!
184
184
 
185
- "The url of the image, eg. 'https://www.ft.com/__origami/service/image/v2/images/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=next&fit=scale-down&width=700'."
185
+ "The url of the image, eg. 'https://images.ft.com/v3/image/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=cp-content-pipeline-api&fit=scale-down&width=700'."
186
186
  url: String!
187
187
 
188
188
  "Text describing the content of the image, usually hidden from the user unless the image is not available. It is to be read by screen readers."
@@ -214,7 +214,7 @@ type ImageWide implements Image {
214
214
  "An array of image sources, ie. different images to render based on input width resulting in responsive images."
215
215
  sourceSet(width: Int, maxDpr: Int): [ImageSource!]!
216
216
 
217
- "The url of the image, eg. 'https://www.ft.com/__origami/service/image/v2/images/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=next&fit=scale-down&width=700'."
217
+ "The url of the image, eg. 'https://images.ft.com/v3/image/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=cp-content-pipeline-api&fit=scale-down&width=700'."
218
218
  url: String!
219
219
 
220
220
  "Text describing the content of the image, usually hidden from the user unless the image is not available. It is to be read by screen readers."
@@ -246,7 +246,7 @@ type ImageSquareFTEdit implements Image {
246
246
  "An array of image sources, ie. different images to render based on input width resulting in responsive images."
247
247
  sourceSet(width: Int, maxDpr: Int): [ImageSource!]!
248
248
 
249
- "The url of the image, eg. 'https://www.ft.com/__origami/service/image/v2/images/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=next&fit=scale-down&width=700'."
249
+ "The url of the image, eg. 'https://images.ft.com/v3/image/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=cp-content-pipeline-api&fit=scale-down&width=700'."
250
250
  url: String!
251
251
 
252
252
  "Text describing the content of the image, usually hidden from the user unless the image is not available. It is to be read by screen readers."
@@ -278,7 +278,7 @@ type ImagePortrait implements Image {
278
278
  "An array of image sources, ie. different images to render based on input width resulting in responsive images."
279
279
  sourceSet(width: Int, maxDpr: Int): [ImageSource!]!
280
280
 
281
- "The url of the image, eg. 'https://www.ft.com/__origami/service/image/v2/images/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=next&fit=scale-down&width=700'."
281
+ "The url of the image, eg. 'https://images.ft.com/v3/image/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=cp-content-pipeline-api&fit=scale-down&width=700'."
282
282
  url: String!
283
283
 
284
284
  "Text describing the content of the image, usually hidden from the user unless the image is not available. It is to be read by screen readers."
@@ -310,7 +310,7 @@ type ImageLandscape implements Image {
310
310
  "An array of image sources, ie. different images to render based on input width resulting in responsive images."
311
311
  sourceSet(width: Int, maxDpr: Int): [ImageSource!]!
312
312
 
313
- "The url of the image, eg. 'https://www.ft.com/__origami/service/image/v2/images/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=next&fit=scale-down&width=700'."
313
+ "The url of the image, eg. 'https://images.ft.com/v3/image/raw/ftcms%3Aimage%3A0e7e7b6e-4e7b-11e9-bde6-79e4b4311f90?source=cp-content-pipeline-api&fit=scale-down&width=700'."
314
314
  url: String!
315
315
 
316
316
  "Text describing the content of the image, usually hidden from the user unless the image is not available. It is to be read by screen readers."