@financial-times/cp-content-pipeline-schema 3.17.0 → 3.19.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 (48) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/generated/index.d.ts +23 -2
  3. package/lib/helpers/qualityWorkaround.d.ts +2 -0
  4. package/lib/helpers/qualityWorkaround.js +37 -0
  5. package/lib/helpers/qualityWorkaround.js.map +1 -0
  6. package/lib/model/Clip.d.ts +1 -17
  7. package/lib/model/Clip.js +27 -8
  8. package/lib/model/Clip.js.map +1 -1
  9. package/lib/model/Clip.test.js +77 -0
  10. package/lib/model/Clip.test.js.map +1 -1
  11. package/lib/model/Topper.d.ts +1 -0
  12. package/lib/model/Topper.js +6 -1
  13. package/lib/model/Topper.js.map +1 -1
  14. package/lib/model/schemas/capi/article.d.ts +18 -0
  15. package/lib/model/schemas/capi/audio.d.ts +14 -0
  16. package/lib/model/schemas/capi/base-schema.d.ts +42 -0
  17. package/lib/model/schemas/capi/base-schema.js +2 -0
  18. package/lib/model/schemas/capi/base-schema.js.map +1 -1
  19. package/lib/model/schemas/capi/content-package.d.ts +14 -0
  20. package/lib/model/schemas/capi/custom-code-component.d.ts +18 -0
  21. package/lib/model/schemas/capi/index.d.ts +96 -0
  22. package/lib/model/schemas/capi/live-blog-package.d.ts +18 -0
  23. package/lib/model/schemas/capi/placeholder.d.ts +18 -0
  24. package/lib/model/schemas/capi/video.d.ts +14 -0
  25. package/lib/resolvers/clip.d.ts +4 -9
  26. package/lib/resolvers/clip.js +3 -0
  27. package/lib/resolvers/clip.js.map +1 -1
  28. package/lib/resolvers/index.d.ts +6 -9
  29. package/lib/resolvers/topper.d.ts +2 -0
  30. package/lib/resolvers/topper.js +4 -2
  31. package/lib/resolvers/topper.js.map +1 -1
  32. package/lib/types/clip.d.ts +21 -0
  33. package/lib/types/clip.js +3 -0
  34. package/lib/types/clip.js.map +1 -0
  35. package/package.json +1 -1
  36. package/queries/article.graphql +6 -0
  37. package/src/generated/index.ts +23 -2
  38. package/src/helpers/qualityWorkaround.ts +44 -0
  39. package/src/model/Clip.test.ts +95 -0
  40. package/src/model/Clip.ts +33 -27
  41. package/src/model/Topper.ts +7 -1
  42. package/src/model/schemas/capi/base-schema.ts +2 -0
  43. package/src/resolvers/clip.ts +3 -0
  44. package/src/resolvers/topper.ts +4 -2
  45. package/src/types/clip.ts +23 -0
  46. package/tsconfig.tsbuildinfo +1 -1
  47. package/typedefs/clip.graphql +9 -0
  48. package/typedefs/topper.graphql +8 -2
@@ -19,6 +19,15 @@ type ClipSource {
19
19
 
20
20
  "The video encoding format of the source, eg. h264."
21
21
  videoCodec: String
22
+
23
+ "The encoding quality of the video media"
24
+ quality: String
25
+
26
+ "The encoding settings intention for the video media"
27
+ dppx: Int
28
+
29
+ "The width of the source immediately narrower than this one."
30
+ previousSourceWidth: Int
22
31
  }
23
32
 
24
33
  type Clip {
@@ -204,7 +204,10 @@ type PodcastTopper implements Topper & TopperWithTheme & TopperWithHeadshot & To
204
204
  headshot(width: Int, dpr: Int, url: String): String
205
205
 
206
206
  "The concept object describing details of the column author."
207
- columnist: Concept
207
+ columnist: Concept @deprecated(reason: "use columnists instead")
208
+
209
+ "The concept object describing details of the column author(s)."
210
+ columnists: [Concept!]
208
211
 
209
212
  "The concept object of the brand, eg. {'type': 'BRAND', 'prefLabel': 'FT Magazine', ...}."
210
213
  brandConcept: Concept
@@ -245,7 +248,10 @@ type OpinionTopper implements Topper & TopperWithTheme & TopperWithHeadshot {
245
248
  headshot(width: Int, dpr: Int, url: String): String
246
249
 
247
250
  "The concept object describing details of the column author."
248
- columnist: Concept
251
+ columnist: Concept @deprecated(reason: "use columnists instead")
252
+
253
+ "The concept object describing details of the column author(s)."
254
+ columnists: [Concept!]
249
255
  }
250
256
 
251
257
  type BrandedTopper implements Topper & TopperWithTheme & TopperWithBrand {