@financial-times/cp-content-pipeline-schema 1.4.2 → 1.4.3
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 +7 -0
- package/lib/generated/index.d.ts +31 -20
- package/lib/model/CapiResponse.d.ts +4 -5
- package/lib/model/CapiResponse.js +20 -11
- package/lib/model/CapiResponse.js.map +1 -1
- package/lib/resolvers/index.d.ts +13 -12
- package/lib/resolvers/index.js +3 -1
- package/lib/resolvers/index.js.map +1 -1
- package/lib/resolvers/meta-link.d.ts +5 -0
- package/lib/resolvers/meta-link.js +15 -0
- package/lib/resolvers/meta-link.js.map +1 -0
- package/lib/resolvers/teaser.d.ts +3 -3
- package/lib/resolvers/teaser.js +6 -4
- package/lib/resolvers/teaser.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/index.ts +33 -20
- package/src/model/CapiResponse.ts +26 -17
- package/src/resolvers/index.ts +3 -1
- package/src/resolvers/meta-link.ts +16 -0
- package/src/resolvers/teaser.ts +6 -4
- package/src/types/n-display-metadata.d.ts +15 -8
- package/tsconfig.tsbuildinfo +1 -1
- package/typedefs/content.graphql +8 -8
- package/typedefs/teaser.graphql +4 -2
package/typedefs/content.graphql
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface Content {
|
|
2
2
|
title: String!
|
|
3
|
-
id:
|
|
3
|
+
id: ID!
|
|
4
4
|
type: ContentType!
|
|
5
5
|
standfirst: String
|
|
6
6
|
topper: Topper
|
|
@@ -48,7 +48,7 @@ type TableOfContents {
|
|
|
48
48
|
|
|
49
49
|
type Article implements Content {
|
|
50
50
|
title: String!
|
|
51
|
-
id:
|
|
51
|
+
id: ID!
|
|
52
52
|
type: ContentType!
|
|
53
53
|
standfirst: String
|
|
54
54
|
topper: Topper
|
|
@@ -73,7 +73,7 @@ type Article implements Content {
|
|
|
73
73
|
|
|
74
74
|
type Placeholder implements Content {
|
|
75
75
|
title: String!
|
|
76
|
-
id:
|
|
76
|
+
id: ID!
|
|
77
77
|
type: ContentType!
|
|
78
78
|
standfirst: String
|
|
79
79
|
topper: Topper
|
|
@@ -98,7 +98,7 @@ type Placeholder implements Content {
|
|
|
98
98
|
|
|
99
99
|
type LiveBlogPackage implements Content {
|
|
100
100
|
title: String!
|
|
101
|
-
id:
|
|
101
|
+
id: ID!
|
|
102
102
|
type: ContentType!
|
|
103
103
|
standfirst: String
|
|
104
104
|
topper: Topper
|
|
@@ -124,7 +124,7 @@ type LiveBlogPackage implements Content {
|
|
|
124
124
|
|
|
125
125
|
type LiveBlogPost implements Content {
|
|
126
126
|
title: String!
|
|
127
|
-
id:
|
|
127
|
+
id: ID!
|
|
128
128
|
type: ContentType!
|
|
129
129
|
standfirst: String
|
|
130
130
|
topper: Topper
|
|
@@ -148,7 +148,7 @@ type LiveBlogPost implements Content {
|
|
|
148
148
|
|
|
149
149
|
type Audio implements Content {
|
|
150
150
|
title: String!
|
|
151
|
-
id:
|
|
151
|
+
id: ID!
|
|
152
152
|
type: ContentType!
|
|
153
153
|
standfirst: String
|
|
154
154
|
topper: Topper
|
|
@@ -172,7 +172,7 @@ type Audio implements Content {
|
|
|
172
172
|
|
|
173
173
|
type Video implements Content {
|
|
174
174
|
title: String!
|
|
175
|
-
id:
|
|
175
|
+
id: ID!
|
|
176
176
|
type: ContentType!
|
|
177
177
|
standfirst: String
|
|
178
178
|
topper: Topper
|
|
@@ -195,7 +195,7 @@ type Video implements Content {
|
|
|
195
195
|
|
|
196
196
|
type ContentPackage implements Content {
|
|
197
197
|
title: String!
|
|
198
|
-
id:
|
|
198
|
+
id: ID!
|
|
199
199
|
type: ContentType!
|
|
200
200
|
standfirst: String
|
|
201
201
|
topper: Topper
|
package/typedefs/teaser.graphql
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
union MetaLink = Concept | ContentPackage
|
|
2
|
+
|
|
1
3
|
type Teaser {
|
|
2
4
|
url(relative: Boolean): String!
|
|
3
5
|
type: String
|
|
@@ -6,8 +8,8 @@ type Teaser {
|
|
|
6
8
|
image: Image
|
|
7
9
|
publishedDate: String
|
|
8
10
|
firstPublishedDate: String
|
|
9
|
-
metaLink:
|
|
10
|
-
metaAltLink:
|
|
11
|
+
metaLink: MetaLink
|
|
12
|
+
metaAltLink: MetaLink
|
|
11
13
|
metaPrefixText: String
|
|
12
14
|
metaSuffixText: String
|
|
13
15
|
indicators: Indicators
|