@financial-times/cp-content-pipeline-schema 2.5.4 → 2.6.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.
- package/CHANGELOG.md +21 -0
- package/lib/fixtures/capiObject.js +1 -1
- package/lib/fixtures/capiObject.js.map +1 -1
- package/lib/generated/index.d.ts +26 -0
- package/lib/model/CapiResponse.d.ts +1 -0
- package/lib/model/CapiResponse.js +4 -2
- package/lib/model/CapiResponse.js.map +1 -1
- package/lib/model/CapiResponse.test.js +7 -0
- package/lib/model/CapiResponse.test.js.map +1 -1
- package/lib/model/Topper.js +1 -1
- package/lib/model/Topper.js.map +1 -1
- package/lib/resolvers/content-tree/Workarounds.d.ts +8 -1
- package/lib/resolvers/content-tree/nodePredicates.d.ts +1 -1
- package/lib/resolvers/content-tree/tagMappings.js +16 -7
- package/lib/resolvers/content-tree/tagMappings.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 +1 -1
- package/queries/article.graphql +1 -0
- package/src/fixtures/capiObject.ts +1 -1
- package/src/generated/index.ts +26 -0
- package/src/model/CapiResponse.test.ts +9 -0
- package/src/model/CapiResponse.ts +4 -3
- package/src/model/Topper.ts +1 -1
- package/src/resolvers/content-tree/Workarounds.ts +10 -0
- package/src/resolvers/content-tree/tagMappings.ts +17 -7
- package/src/resolvers/content.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/typedefs/content.graphql +35 -11
package/typedefs/content.graphql
CHANGED
|
@@ -24,7 +24,7 @@ type Media {
|
|
|
24
24
|
duration: Int
|
|
25
25
|
|
|
26
26
|
"The filesize of the media in bytes."
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
filesize: Int
|
|
29
29
|
|
|
30
30
|
"The media type eg. video/mp4."
|
|
@@ -72,6 +72,9 @@ interface Content {
|
|
|
72
72
|
"The ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
73
73
|
publishedDate: String!
|
|
74
74
|
|
|
75
|
+
"The number of milliseconds since the unix epoch the article was published, eg '1712140552443'."
|
|
76
|
+
publishedTimestamp: Float!
|
|
77
|
+
|
|
75
78
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
76
79
|
firstPublishedDate: String!
|
|
77
80
|
|
|
@@ -127,7 +130,7 @@ type Article implements Content {
|
|
|
127
130
|
|
|
128
131
|
"An introductory paragraph of the article."
|
|
129
132
|
standfirst: String
|
|
130
|
-
|
|
133
|
+
|
|
131
134
|
"A banner located usually at the top of articles containing the title, the standfirst and any images."
|
|
132
135
|
topper: Topper
|
|
133
136
|
|
|
@@ -143,6 +146,9 @@ type Article implements Content {
|
|
|
143
146
|
"The ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
144
147
|
publishedDate: String!
|
|
145
148
|
|
|
149
|
+
"The number of milliseconds since the unix epoch the article was published, eg '1712140552443'."
|
|
150
|
+
publishedTimestamp: Float!
|
|
151
|
+
|
|
146
152
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
147
153
|
firstPublishedDate: String!
|
|
148
154
|
|
|
@@ -162,7 +168,7 @@ type Article implements Content {
|
|
|
162
168
|
teaser: Teaser
|
|
163
169
|
|
|
164
170
|
"An array of concepts related to the article, eg. organisations or topics."
|
|
165
|
-
|
|
171
|
+
|
|
166
172
|
annotations: [Concept]
|
|
167
173
|
|
|
168
174
|
"The editorial division the article belongs to, eg. 'FT-SpecialReports'."
|
|
@@ -181,7 +187,7 @@ type Article implements Content {
|
|
|
181
187
|
originatingParty: String
|
|
182
188
|
|
|
183
189
|
"Whether comments are enabled on the article."
|
|
184
|
-
|
|
190
|
+
|
|
185
191
|
commentsEnabled: Boolean
|
|
186
192
|
|
|
187
193
|
"A design object containing the theme and layout of the article."
|
|
@@ -203,7 +209,7 @@ type Placeholder implements Content {
|
|
|
203
209
|
|
|
204
210
|
"An introductory paragraph of the article."
|
|
205
211
|
standfirst: String
|
|
206
|
-
|
|
212
|
+
|
|
207
213
|
"A banner located usually at the top of articles containing the title, the standfirst and any images."
|
|
208
214
|
topper: Topper
|
|
209
215
|
|
|
@@ -219,6 +225,9 @@ type Placeholder implements Content {
|
|
|
219
225
|
"The ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
220
226
|
publishedDate: String!
|
|
221
227
|
|
|
228
|
+
"The number of milliseconds since the unix epoch the article was published, eg '1712140552443'."
|
|
229
|
+
publishedTimestamp: Float!
|
|
230
|
+
|
|
222
231
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
223
232
|
firstPublishedDate: String!
|
|
224
233
|
|
|
@@ -277,7 +286,7 @@ type LiveBlogPackage implements Content {
|
|
|
277
286
|
|
|
278
287
|
"An introductory paragraph of the article."
|
|
279
288
|
standfirst: String
|
|
280
|
-
|
|
289
|
+
|
|
281
290
|
"A banner located usually at the top of articles containing the title, the standfirst and any images."
|
|
282
291
|
topper: Topper
|
|
283
292
|
|
|
@@ -293,6 +302,9 @@ type LiveBlogPackage implements Content {
|
|
|
293
302
|
"The ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
294
303
|
publishedDate: String!
|
|
295
304
|
|
|
305
|
+
"The number of milliseconds since the unix epoch the article was published, eg '1712140552443'."
|
|
306
|
+
publishedTimestamp: Float!
|
|
307
|
+
|
|
296
308
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
297
309
|
firstPublishedDate: String!
|
|
298
310
|
|
|
@@ -337,7 +349,7 @@ type LiveBlogPackage implements Content {
|
|
|
337
349
|
|
|
338
350
|
"The child articles of this live blog package."
|
|
339
351
|
liveBlogPosts(includePinned: Boolean @deprecated(reason: "avoiding breaking change, will remove argument on next major release")): [Content]
|
|
340
|
-
|
|
352
|
+
|
|
341
353
|
"The pinned article of this live blog package."
|
|
342
354
|
pinnedPost: Content
|
|
343
355
|
|
|
@@ -357,7 +369,7 @@ type LiveBlogPost implements Content {
|
|
|
357
369
|
|
|
358
370
|
"An introductory paragraph of the article."
|
|
359
371
|
standfirst: String
|
|
360
|
-
|
|
372
|
+
|
|
361
373
|
"A banner located usually at the top of articles containing the title, the standfirst and any images."
|
|
362
374
|
topper: Topper
|
|
363
375
|
|
|
@@ -373,6 +385,9 @@ type LiveBlogPost implements Content {
|
|
|
373
385
|
"The ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
374
386
|
publishedDate: String!
|
|
375
387
|
|
|
388
|
+
"The number of milliseconds since the unix epoch the article was published, eg '1712140552443'."
|
|
389
|
+
publishedTimestamp: Float!
|
|
390
|
+
|
|
376
391
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
377
392
|
firstPublishedDate: String!
|
|
378
393
|
|
|
@@ -437,7 +452,7 @@ type Audio implements Content {
|
|
|
437
452
|
|
|
438
453
|
"An introductory paragraph of the article."
|
|
439
454
|
standfirst: String
|
|
440
|
-
|
|
455
|
+
|
|
441
456
|
"A banner located usually at the top of articles containing the title, the standfirst and any images."
|
|
442
457
|
topper: Topper
|
|
443
458
|
|
|
@@ -453,6 +468,9 @@ type Audio implements Content {
|
|
|
453
468
|
"The ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
454
469
|
publishedDate: String!
|
|
455
470
|
|
|
471
|
+
"The number of milliseconds since the unix epoch the article was published, eg '1712140552443'."
|
|
472
|
+
publishedTimestamp: Float!
|
|
473
|
+
|
|
456
474
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
457
475
|
firstPublishedDate: String!
|
|
458
476
|
|
|
@@ -511,7 +529,7 @@ type Video implements Content {
|
|
|
511
529
|
|
|
512
530
|
"An introductory paragraph of the article."
|
|
513
531
|
standfirst: String
|
|
514
|
-
|
|
532
|
+
|
|
515
533
|
"A banner located usually at the top of articles containing the title, the standfirst and any images."
|
|
516
534
|
topper: Topper
|
|
517
535
|
|
|
@@ -527,6 +545,9 @@ type Video implements Content {
|
|
|
527
545
|
"The ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
528
546
|
publishedDate: String!
|
|
529
547
|
|
|
548
|
+
"The number of milliseconds since the unix epoch the article was published, eg '1712140552443'."
|
|
549
|
+
publishedTimestamp: Float!
|
|
550
|
+
|
|
530
551
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
531
552
|
firstPublishedDate: String!
|
|
532
553
|
|
|
@@ -582,7 +603,7 @@ type ContentPackage implements Content {
|
|
|
582
603
|
|
|
583
604
|
"An introductory paragraph of the article."
|
|
584
605
|
standfirst: String
|
|
585
|
-
|
|
606
|
+
|
|
586
607
|
"A banner located usually at the top of articles containing the title, the standfirst and any images."
|
|
587
608
|
topper: Topper
|
|
588
609
|
|
|
@@ -598,6 +619,9 @@ type ContentPackage implements Content {
|
|
|
598
619
|
"The ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
599
620
|
publishedDate: String!
|
|
600
621
|
|
|
622
|
+
"The number of milliseconds since the unix epoch the article was published, eg '1712140552443'."
|
|
623
|
+
publishedTimestamp: Float!
|
|
624
|
+
|
|
601
625
|
"The first ISO string date the article was published, eg. '2024-04-03T10:35:52.443Z'."
|
|
602
626
|
firstPublishedDate: String!
|
|
603
627
|
|