@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.
- package/CHANGELOG.md +10 -0
- package/lib/datasources/origami-image.js +3 -3
- package/lib/datasources/origami-image.js.map +1 -1
- package/lib/generated/index.d.ts +11 -11
- package/lib/helpers/imageService.js +1 -1
- package/lib/helpers/imageService.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/model/Clip.d.ts +3 -1
- package/lib/model/Clip.js +4 -2
- package/lib/model/Clip.js.map +1 -1
- package/lib/model/Clip.test.js +26 -37
- package/lib/model/Clip.test.js.map +1 -1
- package/lib/model/Concept.js +1 -1
- package/lib/model/Concept.js.map +1 -1
- package/lib/model/FlourishSource.js +2 -2
- package/lib/model/FlourishSource.js.map +1 -1
- package/lib/model/Image.js +1 -1
- package/lib/model/Image.js.map +1 -1
- package/lib/model/Image.test.js +5 -5
- package/lib/model/Image.test.js.map +1 -1
- package/lib/model/LeadFlourish.js +1 -1
- package/lib/model/LeadFlourish.js.map +1 -1
- package/lib/model/Person.js +1 -1
- package/lib/model/Person.js.map +1 -1
- package/lib/model/Person.test.js +2 -2
- package/lib/model/Person.test.js.map +1 -1
- package/lib/model/Picture.test.js +4 -2
- package/lib/model/Picture.test.js.map +1 -1
- package/lib/model/Topper.js +1 -1
- package/lib/model/Topper.js.map +1 -1
- package/lib/model/Topper.test.js +3 -2
- package/lib/model/Topper.test.js.map +1 -1
- package/lib/resolvers/content-tree/references/ClipSet.d.ts +2 -1
- package/lib/resolvers/content-tree/references/ClipSet.js +2 -2
- package/lib/resolvers/content-tree/references/ClipSet.js.map +1 -1
- package/lib/resolvers/content-tree/references/RawImage.js +1 -1
- package/lib/resolvers/content-tree/references/RawImage.js.map +1 -1
- package/package.json +1 -1
- package/src/datasources/origami-image.ts +3 -3
- package/src/generated/index.ts +11 -11
- package/src/helpers/imageService.ts +1 -1
- package/src/index.ts +1 -1
- package/src/model/Clip.test.ts +164 -145
- package/src/model/Clip.ts +7 -3
- package/src/model/Concept.ts +1 -1
- package/src/model/FlourishSource.ts +3 -6
- package/src/model/Image.test.ts +5 -7
- package/src/model/Image.ts +1 -1
- package/src/model/LeadFlourish.ts +1 -1
- package/src/model/Person.test.ts +2 -2
- package/src/model/Person.ts +1 -1
- package/src/model/Picture.test.ts +4 -2
- package/src/model/Topper.test.ts +4 -2
- package/src/model/Topper.ts +1 -1
- package/src/resolvers/content-tree/references/ClipSet.ts +3 -2
- package/src/resolvers/content-tree/references/RawImage.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/typedefs/image.graphql +11 -11
package/typedefs/image.graphql
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type ImageSource {
|
|
2
|
-
"The url of the image source, eg. 'https://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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."
|