@financial-times/cp-content-pipeline-schema 2.11.1 → 2.12.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 +16 -0
- package/lib/datasources/capi.js +3 -1
- package/lib/datasources/capi.js.map +1 -1
- package/lib/datasources/origami-image.js +3 -1
- package/lib/datasources/origami-image.js.map +1 -1
- package/lib/datasources/twitter.js +3 -1
- package/lib/datasources/twitter.js.map +1 -1
- package/lib/generated/index.d.ts +24 -0
- package/lib/model/CapiResponse.d.ts +1 -0
- package/lib/model/CapiResponse.js +3 -0
- package/lib/model/CapiResponse.js.map +1 -1
- package/lib/model/schemas/capi/article.d.ts +4 -1
- package/lib/model/schemas/capi/article.js +1 -0
- package/lib/model/schemas/capi/article.js.map +1 -1
- package/lib/model/schemas/capi/audio.d.ts +4 -1
- package/lib/model/schemas/capi/audio.js +1 -0
- package/lib/model/schemas/capi/audio.js.map +1 -1
- package/lib/model/schemas/capi/base-schema.d.ts +3 -0
- package/lib/model/schemas/capi/base-schema.js +1 -0
- package/lib/model/schemas/capi/base-schema.js.map +1 -1
- package/lib/model/schemas/capi/content-package.d.ts +4 -1
- package/lib/model/schemas/capi/content-package.js +1 -0
- package/lib/model/schemas/capi/content-package.js.map +1 -1
- package/lib/model/schemas/capi/live-blog-package.d.ts +4 -1
- package/lib/model/schemas/capi/live-blog-package.js +1 -0
- package/lib/model/schemas/capi/live-blog-package.js.map +1 -1
- package/lib/model/schemas/capi/placeholder.d.ts +4 -1
- package/lib/model/schemas/capi/placeholder.js +1 -0
- package/lib/model/schemas/capi/placeholder.js.map +1 -1
- package/lib/resolvers/content-tree/references/Video.js +8 -4
- package/lib/resolvers/content-tree/references/Video.js.map +1 -1
- package/lib/resolvers/content.d.ts +8 -0
- package/lib/resolvers/content.js +1 -0
- package/lib/resolvers/content.js.map +1 -1
- package/lib/resolvers/index.d.ts +8 -0
- package/package.json +2 -2
- package/queries/article.graphql +16 -15
- package/src/datasources/capi.ts +3 -1
- package/src/datasources/origami-image.ts +3 -1
- package/src/datasources/twitter.ts +4 -1
- package/src/generated/index.ts +24 -0
- package/src/model/CapiResponse.ts +3 -0
- package/src/model/schemas/capi/article.ts +1 -0
- package/src/model/schemas/capi/audio.ts +1 -0
- package/src/model/schemas/capi/base-schema.ts +1 -0
- package/src/model/schemas/capi/content-package.ts +1 -0
- package/src/model/schemas/capi/live-blog-package.ts +1 -0
- package/src/model/schemas/capi/placeholder.ts +1 -0
- package/src/resolvers/content-tree/references/Video.ts +10 -5
- package/src/resolvers/content.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/typedefs/content.graphql +30 -6
package/typedefs/content.graphql
CHANGED
|
@@ -24,7 +24,6 @@ type Media {
|
|
|
24
24
|
duration: Int
|
|
25
25
|
|
|
26
26
|
"The filesize of the media in bytes."
|
|
27
|
-
|
|
28
27
|
filesize: Int
|
|
29
28
|
|
|
30
29
|
"The media type eg. video/mp4."
|
|
@@ -78,6 +77,9 @@ interface Content {
|
|
|
78
77
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
79
78
|
firstPublishedDate: String!
|
|
80
79
|
|
|
80
|
+
"A string ID used to trace content publishes through the pipeline, e.g. 'republish_tid_JNhUrBjdXo'."
|
|
81
|
+
publishReference: String!
|
|
82
|
+
|
|
81
83
|
"An image object containing the url and the caption, to be displayed usually before the article content."
|
|
82
84
|
mainImage: Image
|
|
83
85
|
|
|
@@ -152,6 +154,9 @@ type Article implements Content {
|
|
|
152
154
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
153
155
|
firstPublishedDate: String!
|
|
154
156
|
|
|
157
|
+
"A string ID used to trace content publishes through the pipeline, e.g. 'republish_tid_JNhUrBjdXo'."
|
|
158
|
+
publishReference: String!
|
|
159
|
+
|
|
155
160
|
"An image object containing the url and the caption, to be displayed usually before the article content."
|
|
156
161
|
mainImage: Image
|
|
157
162
|
|
|
@@ -168,7 +173,6 @@ type Article implements Content {
|
|
|
168
173
|
teaser: Teaser
|
|
169
174
|
|
|
170
175
|
"An array of concepts related to the article, eg. organisations or topics."
|
|
171
|
-
|
|
172
176
|
annotations: [Concept]
|
|
173
177
|
|
|
174
178
|
"The editorial division the article belongs to, eg. 'FT-SpecialReports'."
|
|
@@ -187,7 +191,6 @@ type Article implements Content {
|
|
|
187
191
|
originatingParty: String
|
|
188
192
|
|
|
189
193
|
"Whether comments are enabled on the article."
|
|
190
|
-
|
|
191
194
|
commentsEnabled: Boolean
|
|
192
195
|
|
|
193
196
|
"A design object containing the theme and layout of the article."
|
|
@@ -231,6 +234,9 @@ type Placeholder implements Content {
|
|
|
231
234
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
232
235
|
firstPublishedDate: String!
|
|
233
236
|
|
|
237
|
+
"A string ID used to trace content publishes through the pipeline, e.g. 'republish_tid_JNhUrBjdXo'."
|
|
238
|
+
publishReference: String!
|
|
239
|
+
|
|
234
240
|
"An image object containing the url and the caption, to be displayed usually before the article content."
|
|
235
241
|
mainImage: Image
|
|
236
242
|
|
|
@@ -308,6 +314,9 @@ type LiveBlogPackage implements Content {
|
|
|
308
314
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
309
315
|
firstPublishedDate: String!
|
|
310
316
|
|
|
317
|
+
"A string ID used to trace content publishes through the pipeline, e.g. 'republish_tid_JNhUrBjdXo'."
|
|
318
|
+
publishReference: String!
|
|
319
|
+
|
|
311
320
|
"An image object containing the url and the caption, to be displayed usually before the article content."
|
|
312
321
|
mainImage: Image
|
|
313
322
|
|
|
@@ -348,7 +357,12 @@ type LiveBlogPackage implements Content {
|
|
|
348
357
|
design: Design
|
|
349
358
|
|
|
350
359
|
"The child articles of this live blog package."
|
|
351
|
-
liveBlogPosts(
|
|
360
|
+
liveBlogPosts(
|
|
361
|
+
includePinned: Boolean
|
|
362
|
+
@deprecated(
|
|
363
|
+
reason: "avoiding breaking change, will remove argument on next major release"
|
|
364
|
+
)
|
|
365
|
+
): [Content]
|
|
352
366
|
|
|
353
367
|
"The pinned article of this live blog package."
|
|
354
368
|
pinnedPost: Content
|
|
@@ -391,6 +405,9 @@ type LiveBlogPost implements Content {
|
|
|
391
405
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
392
406
|
firstPublishedDate: String!
|
|
393
407
|
|
|
408
|
+
"A string ID used to trace content publishes through the pipeline, e.g. 'republish_tid_JNhUrBjdXo'."
|
|
409
|
+
publishReference: String!
|
|
410
|
+
|
|
394
411
|
"An image object containing the url and the caption, to be displayed usually before the article content."
|
|
395
412
|
mainImage: Image
|
|
396
413
|
|
|
@@ -475,6 +492,9 @@ type Audio implements Content {
|
|
|
475
492
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
476
493
|
firstPublishedDate: String!
|
|
477
494
|
|
|
495
|
+
"A string ID used to trace content publishes through the pipeline, e.g. 'republish_tid_JNhUrBjdXo'."
|
|
496
|
+
publishReference: String!
|
|
497
|
+
|
|
478
498
|
"An image object containing the url and the caption, to be displayed usually before the article content."
|
|
479
499
|
mainImage: Image
|
|
480
500
|
|
|
@@ -552,6 +572,9 @@ type Video implements Content {
|
|
|
552
572
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
553
573
|
firstPublishedDate: String!
|
|
554
574
|
|
|
575
|
+
"A string ID used to trace content publishes through the pipeline, e.g. 'republish_tid_JNhUrBjdXo'."
|
|
576
|
+
publishReference: String!
|
|
577
|
+
|
|
555
578
|
"An image object containing the url and the caption, to be displayed usually before the article content."
|
|
556
579
|
mainImage: Image
|
|
557
580
|
|
|
@@ -626,6 +649,9 @@ type ContentPackage implements Content {
|
|
|
626
649
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
627
650
|
firstPublishedDate: String!
|
|
628
651
|
|
|
652
|
+
"A string ID used to trace content publishes through the pipeline, e.g. 'republish_tid_JNhUrBjdXo'."
|
|
653
|
+
publishReference: String!
|
|
654
|
+
|
|
629
655
|
"An image object containing the url and the caption, to be displayed usually before the article content."
|
|
630
656
|
mainImage: Image
|
|
631
657
|
|
|
@@ -674,5 +700,3 @@ type ContentPackage implements Content {
|
|
|
674
700
|
"The optional table of contents for this content package."
|
|
675
701
|
tableOfContents: TableOfContents
|
|
676
702
|
}
|
|
677
|
-
|
|
678
|
-
|