@financial-times/cp-content-pipeline-schema 3.1.1 → 3.3.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 +14 -0
- package/lib/generated/index.d.ts +12 -0
- package/lib/model/CapiResponse.d.ts +3 -1
- package/lib/model/CapiResponse.js +15 -4
- package/lib/model/CapiResponse.js.map +1 -1
- package/lib/model/CapiResponse.test.js +20 -0
- package/lib/model/CapiResponse.test.js.map +1 -1
- package/lib/model/schemas/capi/article.d.ts +9 -1
- package/lib/model/schemas/capi/article.js +2 -0
- package/lib/model/schemas/capi/article.js.map +1 -1
- package/lib/model/schemas/capi/audio.d.ts +4 -0
- package/lib/model/schemas/capi/base-schema.d.ts +10 -0
- package/lib/model/schemas/capi/base-schema.js +2 -0
- package/lib/model/schemas/capi/base-schema.js.map +1 -1
- package/lib/model/schemas/capi/content-package.d.ts +4 -0
- package/lib/model/schemas/capi/custom-code-component.d.ts +6 -0
- package/lib/model/schemas/capi/index.d.ts +26 -0
- package/lib/model/schemas/capi/list.d.ts +2 -2
- package/lib/model/schemas/capi/live-blog-package.d.ts +4 -0
- package/lib/model/schemas/capi/placeholder.d.ts +4 -0
- package/lib/model/schemas/capi/video.d.ts +4 -0
- package/lib/resolvers/content.d.ts +6 -0
- package/lib/resolvers/content.js +8 -0
- package/lib/resolvers/content.js.map +1 -1
- package/lib/resolvers/index.d.ts +6 -0
- package/package.json +1 -1
- package/queries/article.graphql +5 -0
- package/src/generated/index.ts +12 -0
- package/src/model/CapiResponse.test.ts +23 -0
- package/src/model/CapiResponse.ts +19 -4
- package/src/model/schemas/capi/article.ts +2 -0
- package/src/model/schemas/capi/base-schema.ts +2 -0
- package/src/resolvers/content.ts +8 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/typedefs/content.graphql +12 -0
package/typedefs/content.graphql
CHANGED
|
@@ -41,6 +41,9 @@ type TableOfContents {
|
|
|
41
41
|
type Indicators {
|
|
42
42
|
"Whether the content is an opinion piece."
|
|
43
43
|
isOpinion: Boolean
|
|
44
|
+
|
|
45
|
+
"Whether the content is Commercial Partner Content."
|
|
46
|
+
isPartnerContent: Boolean
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
interface Content {
|
|
@@ -204,6 +207,15 @@ type Article implements Content {
|
|
|
204
207
|
|
|
205
208
|
"The parent article, indicating this article is a part of a series or package."
|
|
206
209
|
containedIn: Content
|
|
210
|
+
|
|
211
|
+
"Array of publication IDs this article pertains to, e.g. 88fdde6c-2aa4-4f78-af02-9f680097cfd6 for FT Pink"
|
|
212
|
+
publication: [String!]
|
|
213
|
+
|
|
214
|
+
"The sponsorship Client Name for commercial Partner Content articles"
|
|
215
|
+
clientName: String
|
|
216
|
+
|
|
217
|
+
"An object of several flags indicating the nature of the content"
|
|
218
|
+
indicators: Indicators
|
|
207
219
|
}
|
|
208
220
|
|
|
209
221
|
type Placeholder implements Content {
|