@financial-times/cp-content-pipeline-schema 2.10.2 → 2.11.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 +18 -0
- package/lib/generated/index.d.ts +34 -2
- 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/Topper.d.ts +1 -1
- package/lib/model/Topper.js +3 -0
- package/lib/model/Topper.js.map +1 -1
- package/lib/model/schemas/capi/base-schema.js.map +1 -1
- package/lib/resolvers/index.d.ts +22 -10
- package/lib/resolvers/topper.d.ts +22 -10
- package/lib/resolvers/topper.js +3 -0
- package/lib/resolvers/topper.js.map +1 -1
- package/package.json +1 -2
- package/src/generated/index.ts +36 -2
- package/src/model/CapiResponse.ts +4 -0
- package/src/model/Topper.ts +5 -0
- package/src/model/schemas/capi/base-schema.ts +4 -4
- package/src/resolvers/topper.ts +5 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/typedefs/topper.graphql +40 -14
package/lib/resolvers/topper.js
CHANGED
|
@@ -96,6 +96,9 @@ const resolvers = {
|
|
|
96
96
|
fallbackImage: (topper) => topper.fallbackImage(),
|
|
97
97
|
images: (topper) => topper.images(),
|
|
98
98
|
},
|
|
99
|
+
PartnerContentTopper: {
|
|
100
|
+
...topperResolvers,
|
|
101
|
+
},
|
|
99
102
|
};
|
|
100
103
|
exports.default = resolvers;
|
|
101
104
|
//# sourceMappingURL=topper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topper.js","sourceRoot":"","sources":["../../src/resolvers/topper.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"topper.js","sourceRoot":"","sources":["../../src/resolvers/topper.ts"],"names":[],"mappings":";;AAmBA,MAAM,eAAe,GAAoB;IACvC,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,EAAE;IAC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EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,EAAE;QACrD,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE;QACnC,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,EAAE;QACjD,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE;KACpC;IAED,eAAe,EAAE;QACf,GAAG,eAAe;QAClB,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK;QACzC,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,EAAE;QAC/C,eAAe,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,EAAE;QACrD,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE;QACnC,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,EAAE;QACjD,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE;KACpC;IAED,oBAAoB,EAAE;QACpB,GAAG,eAAe;KACnB;CAkBF,CAAA;AAED,kBAAe,SAAS,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/cp-content-pipeline-schema",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"@apollo/datasource-rest": "^6.2.2",
|
|
22
22
|
"@apollo/utils.keyvaluecache": "^1.0.1",
|
|
23
23
|
"@dotcom-reliability-kit/fetch-error-handler": "^0.2.3",
|
|
24
|
-
"@dotcom-reliability-kit/log-error": "^2.0.0",
|
|
25
24
|
"@dotcom-reliability-kit/serialize-request": "^2.0.0",
|
|
26
25
|
"@financial-times/n-concept-ids": "^2.1.0",
|
|
27
26
|
"@financial-times/n-display-metadata": "^1.1.1",
|
package/src/generated/index.ts
CHANGED
|
@@ -1140,6 +1140,25 @@ export type OpinionTopperHeadshotArgs = {
|
|
|
1140
1140
|
width?: InputMaybe<Scalars['Int']['input']>;
|
|
1141
1141
|
};
|
|
1142
1142
|
|
|
1143
|
+
export type PartnerContentTopper = Topper & {
|
|
1144
|
+
/** Whether the topper should have a background box. */
|
|
1145
|
+
readonly backgroundBox?: Maybe<Scalars['Boolean']['output']>;
|
|
1146
|
+
/** The background colour of the topper. */
|
|
1147
|
+
readonly backgroundColour?: Maybe<Scalars['TopperBackgroundColour']['output']>;
|
|
1148
|
+
/** The concept object to be displayed, eg. {'type': 'TOPIC', 'prefLabel': 'Non-dom tax status', ...}. */
|
|
1149
|
+
readonly displayConcept?: Maybe<Concept>;
|
|
1150
|
+
/** The variant of the follow button to be displayed on the topper. */
|
|
1151
|
+
readonly followButtonVariant?: Maybe<Scalars['FollowButtonVariant']['output']>;
|
|
1152
|
+
/** The concept object of the genre, eg. {'type': 'GENRE', 'prefLabel': 'Opinion', ...}. */
|
|
1153
|
+
readonly genreConcept?: Maybe<Concept>;
|
|
1154
|
+
/** The headline text of the topper. */
|
|
1155
|
+
readonly headline: Scalars['String']['output'];
|
|
1156
|
+
/** An abstract syntax tree of the introduction text. */
|
|
1157
|
+
readonly intro?: Maybe<RichText>;
|
|
1158
|
+
/** Whether the topper should have a text shadow. */
|
|
1159
|
+
readonly textShadow?: Maybe<Scalars['Boolean']['output']>;
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1143
1162
|
export type Person = {
|
|
1144
1163
|
readonly headshot?: Maybe<Scalars['String']['output']>;
|
|
1145
1164
|
readonly prefLabel?: Maybe<Scalars['String']['output']>;
|
|
@@ -1700,7 +1719,7 @@ export type ResolversInterfaceTypes<RefType extends Record<string, unknown>> = R
|
|
|
1700
1719
|
Image: ( ImageModel ) | ( ImageModel ) | ( ImageModel ) | ( ImageModel ) | ( ImageModel ) | ( ImageModel ) | ( ImageModel ) | ( ImageModel ) | ( ImageModel );
|
|
1701
1720
|
Picture: ( PictureModel ) | ( PictureModel ) | ( PictureModel );
|
|
1702
1721
|
Reference: ( ReferenceWithCAPIData<ClipSetNode|OldClipNode> ) | ( ReferenceWithCAPIData<ContentTree.Flourish> ) | ( ReferenceWithCAPIData<ContentTree.ImageSet> ) | ( ReferenceWithCAPIData<ContentTree.LayoutImage> ) | ( ReferenceWithCAPIData<ContentTree.ImageSet> ) | ( ReferenceWithCAPIData<RawImageNode> ) | ( ReferenceWithCAPIData<ContentTree.Recommended> ) | ( ReferenceWithCAPIData<ContentTree.ScrollyImage> ) | ( ReferenceWithCAPIData<ContentTree.Tweet> ) | ( ReferenceWithCAPIData<VideoNode> );
|
|
1703
|
-
Topper: ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel );
|
|
1722
|
+
Topper: ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel );
|
|
1704
1723
|
TopperWithBrand: ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel );
|
|
1705
1724
|
TopperWithHeadshot: ( TopperModel ) | ( TopperModel );
|
|
1706
1725
|
TopperWithImages: ( TopperModel ) | ( TopperModel ) | ( TopperModel ) | ( TopperModel );
|
|
@@ -1766,6 +1785,7 @@ export type ResolversTypes = ResolversObject<{
|
|
|
1766
1785
|
Mutation: ResolverTypeWrapper<{}>;
|
|
1767
1786
|
OpinionTopper: ResolverTypeWrapper<TopperModel>;
|
|
1768
1787
|
PackageDesign: ResolverTypeWrapper<Scalars['PackageDesign']['output']>;
|
|
1788
|
+
PartnerContentTopper: ResolverTypeWrapper<TopperModel>;
|
|
1769
1789
|
Person: ResolverTypeWrapper<PersonModel>;
|
|
1770
1790
|
Picture: ResolverTypeWrapper<PictureModel>;
|
|
1771
1791
|
PictureFullBleed: ResolverTypeWrapper<PictureModel>;
|
|
@@ -1856,6 +1876,7 @@ export type ResolversParentTypes = ResolversObject<{
|
|
|
1856
1876
|
Mutation: {};
|
|
1857
1877
|
OpinionTopper: TopperModel;
|
|
1858
1878
|
PackageDesign: Scalars['PackageDesign']['output'];
|
|
1879
|
+
PartnerContentTopper: TopperModel;
|
|
1859
1880
|
Person: PersonModel;
|
|
1860
1881
|
Picture: PictureModel;
|
|
1861
1882
|
PictureFullBleed: PictureModel;
|
|
@@ -2502,6 +2523,18 @@ export interface PackageDesignScalarConfig extends GraphQLScalarTypeConfig<Resol
|
|
|
2502
2523
|
name: 'PackageDesign';
|
|
2503
2524
|
}
|
|
2504
2525
|
|
|
2526
|
+
export type PartnerContentTopperResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['PartnerContentTopper'] = ResolversParentTypes['PartnerContentTopper']> = ResolversObject<{
|
|
2527
|
+
backgroundBox: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
2528
|
+
backgroundColour: Resolver<Maybe<ResolversTypes['TopperBackgroundColour']>, ParentType, ContextType>;
|
|
2529
|
+
displayConcept: Resolver<Maybe<ResolversTypes['Concept']>, ParentType, ContextType>;
|
|
2530
|
+
followButtonVariant: Resolver<Maybe<ResolversTypes['FollowButtonVariant']>, ParentType, ContextType>;
|
|
2531
|
+
genreConcept: Resolver<Maybe<ResolversTypes['Concept']>, ParentType, ContextType>;
|
|
2532
|
+
headline: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
2533
|
+
intro: Resolver<Maybe<ResolversTypes['RichText']>, ParentType, ContextType>;
|
|
2534
|
+
textShadow: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
2535
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
2536
|
+
}>;
|
|
2537
|
+
|
|
2505
2538
|
export type PersonResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['Person'] = ResolversParentTypes['Person']> = ResolversObject<{
|
|
2506
2539
|
headshot: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType, Partial<PersonHeadshotArgs>>;
|
|
2507
2540
|
prefLabel: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -2690,7 +2723,7 @@ export type TeaserResolvers<ContextType = QueryContext, ParentType extends Resol
|
|
|
2690
2723
|
}>;
|
|
2691
2724
|
|
|
2692
2725
|
export type TopperResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['Topper'] = ResolversParentTypes['Topper']> = ResolversObject<{
|
|
2693
|
-
__resolveType?: TypeResolveFn<'BasicTopper' | 'BrandedTopper' | 'DeepLandscapeTopper' | 'DeepPortraitTopper' | 'FullBleedTopper' | 'OpinionTopper' | 'PodcastTopper' | 'SplitTextTopper' | 'TopperWithFlourish', ParentType, ContextType>;
|
|
2726
|
+
__resolveType?: TypeResolveFn<'BasicTopper' | 'BrandedTopper' | 'DeepLandscapeTopper' | 'DeepPortraitTopper' | 'FullBleedTopper' | 'OpinionTopper' | 'PartnerContentTopper' | 'PodcastTopper' | 'SplitTextTopper' | 'TopperWithFlourish', ParentType, ContextType>;
|
|
2694
2727
|
backgroundBox: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
2695
2728
|
backgroundColour: Resolver<Maybe<ResolversTypes['TopperBackgroundColour']>, ParentType, ContextType>;
|
|
2696
2729
|
displayConcept: Resolver<Maybe<ResolversTypes['Concept']>, ParentType, ContextType>;
|
|
@@ -2842,6 +2875,7 @@ export type Resolvers<ContextType = QueryContext> = ResolversObject<{
|
|
|
2842
2875
|
Mutation: MutationResolvers<ContextType>;
|
|
2843
2876
|
OpinionTopper: OpinionTopperResolvers<ContextType>;
|
|
2844
2877
|
PackageDesign: GraphQLScalarType;
|
|
2878
|
+
PartnerContentTopper: PartnerContentTopperResolvers<ContextType>;
|
|
2845
2879
|
Person: PersonResolvers<ContextType>;
|
|
2846
2880
|
Picture: PictureResolvers<ContextType>;
|
|
2847
2881
|
PictureFullBleed: PictureFullBleedResolvers<ContextType>;
|
package/src/model/Topper.ts
CHANGED
|
@@ -21,6 +21,7 @@ type TopperType =
|
|
|
21
21
|
| 'BrandedTopper'
|
|
22
22
|
| 'BasicTopper'
|
|
23
23
|
| 'TopperWithFlourish'
|
|
24
|
+
| 'PartnerContentTopper'
|
|
24
25
|
|
|
25
26
|
type TopperBackgroundColourValues = LiteralUnionScalarValues<
|
|
26
27
|
typeof TopperBackgroundColour
|
|
@@ -102,6 +103,10 @@ export class Topper {
|
|
|
102
103
|
return 'BrandedTopper'
|
|
103
104
|
}
|
|
104
105
|
|
|
106
|
+
if (this.capiResponse.isPartnerContent()) {
|
|
107
|
+
return 'PartnerContentTopper'
|
|
108
|
+
}
|
|
109
|
+
|
|
105
110
|
return 'BasicTopper'
|
|
106
111
|
}
|
|
107
112
|
|
|
@@ -90,10 +90,10 @@ const AlternativeImage = z.object({
|
|
|
90
90
|
})
|
|
91
91
|
|
|
92
92
|
export const LeadFlourish = z.object({
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
id: z.string(),
|
|
94
|
+
type: z.string(),
|
|
95
|
+
description: z.string(),
|
|
96
|
+
})
|
|
97
97
|
|
|
98
98
|
const ClipSource = z.object({
|
|
99
99
|
audioCodec: z.string().optional(),
|
package/src/resolvers/topper.ts
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
DeepLandscapeTopperResolvers,
|
|
15
15
|
DeepPortraitTopperResolvers,
|
|
16
16
|
BrandedTopperResolvers,
|
|
17
|
+
PartnerContentTopperResolvers,
|
|
17
18
|
} from '../generated'
|
|
18
19
|
|
|
19
20
|
const topperResolvers: TopperResolvers = {
|
|
@@ -128,6 +129,9 @@ const resolvers = {
|
|
|
128
129
|
images: (topper) => topper.images(),
|
|
129
130
|
},
|
|
130
131
|
|
|
132
|
+
PartnerContentTopper: {
|
|
133
|
+
...topperResolvers,
|
|
134
|
+
},
|
|
131
135
|
} satisfies {
|
|
132
136
|
Topper: TopperResolvers
|
|
133
137
|
TopperWithImages: TopperWithImagesResolvers
|
|
@@ -144,6 +148,7 @@ const resolvers = {
|
|
|
144
148
|
DeepPortraitTopper: DeepPortraitTopperResolvers
|
|
145
149
|
FullBleedTopper: FullBleedTopperResolvers
|
|
146
150
|
SplitTextTopper: SplitTextTopperResolvers
|
|
151
|
+
PartnerContentTopper: PartnerContentTopperResolvers
|
|
147
152
|
}
|
|
148
153
|
|
|
149
154
|
export default resolvers
|