@financial-times/cp-content-pipeline-client 4.2.1 → 4.4.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 +28 -0
- package/lib/client-version.d.ts +1 -1
- package/lib/client-version.js +1 -1
- package/lib/generated/index.d.ts +23 -0
- package/lib/generated/index.js +5 -0
- package/lib/generated/index.js.map +1 -1
- package/lib/schema-version.d.ts +1 -1
- package/lib/schema-version.js +1 -1
- package/package.json +2 -2
- package/src/client-version.ts +1 -1
- package/src/generated/index.ts +16 -3
- package/src/schema-version.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -504,6 +504,34 @@
|
|
|
504
504
|
* devDependencies
|
|
505
505
|
* @financial-times/cp-content-pipeline-schema bumped from ^3.1.0 to ^3.1.1
|
|
506
506
|
|
|
507
|
+
## [4.4.0](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v4.3.0...cp-content-pipeline-client-v4.4.0) (2024-10-03)
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
### Features
|
|
511
|
+
|
|
512
|
+
* **partnercontent:** surface client name from Capi response ([c5f3cdd](https://github.com/Financial-Times/cp-content-pipeline/commit/c5f3cdd6e835d2448186163d5e18eb646f7a08f6))
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
### Dependencies
|
|
516
|
+
|
|
517
|
+
* The following workspace dependencies were updated
|
|
518
|
+
* devDependencies
|
|
519
|
+
* @financial-times/cp-content-pipeline-schema bumped from ^3.2.0 to ^3.3.0
|
|
520
|
+
|
|
521
|
+
## [4.3.0](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v4.2.1...cp-content-pipeline-client-v4.3.0) (2024-09-25)
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
### Features
|
|
525
|
+
|
|
526
|
+
* **partnercontent:** publication and ispartnercontent props added to capiresponse schema updated ([f072495](https://github.com/Financial-Times/cp-content-pipeline/commit/f0724959eaedb1e3e80484fdf19021157cae7f30))
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
### Dependencies
|
|
530
|
+
|
|
531
|
+
* The following workspace dependencies were updated
|
|
532
|
+
* devDependencies
|
|
533
|
+
* @financial-times/cp-content-pipeline-schema bumped from ^3.1.1 to ^3.2.0
|
|
534
|
+
|
|
507
535
|
## [4.2.0](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v4.1.2...cp-content-pipeline-client-v4.2.0) (2024-09-17)
|
|
508
536
|
|
|
509
537
|
|
package/lib/client-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.
|
|
1
|
+
export declare const version = "4.4.0";
|
package/lib/client-version.js
CHANGED
package/lib/generated/index.d.ts
CHANGED
|
@@ -127,6 +127,8 @@ export type Article = Content & {
|
|
|
127
127
|
readonly byline?: Maybe<StructuredContent>;
|
|
128
128
|
/** A scalar representing whether the article can be syndicated, ie. published by a third party site. */
|
|
129
129
|
readonly canBeSyndicated?: Maybe<Scalars['CanBeSyndicated']['output']>;
|
|
130
|
+
/** The sponsorship Client Name for commercial Partner Content articles */
|
|
131
|
+
readonly clientName?: Maybe<Scalars['String']['output']>;
|
|
130
132
|
/** Whether comments are enabled on the article. */
|
|
131
133
|
readonly commentsEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
132
134
|
/** The parent article, indicating this article is a part of a series or package. */
|
|
@@ -139,6 +141,8 @@ export type Article = Content & {
|
|
|
139
141
|
readonly firstPublishedDate: Scalars['String']['output'];
|
|
140
142
|
/** The unique identifier of the article - a uuid or a url. */
|
|
141
143
|
readonly id: Scalars['ID']['output'];
|
|
144
|
+
/** An object of several flags indicating the nature of the content */
|
|
145
|
+
readonly indicators?: Maybe<Indicators>;
|
|
142
146
|
/** The concept to use for instant alert CTAs. */
|
|
143
147
|
readonly instantAlertConcept?: Maybe<Concept>;
|
|
144
148
|
/** An image object containing the url and the caption, to be displayed usually before the article content. */
|
|
@@ -147,6 +151,8 @@ export type Article = Content & {
|
|
|
147
151
|
readonly modifiedTimestamp?: Maybe<Scalars['Float']['output']>;
|
|
148
152
|
/** The party that originated the article, eg. 'FT'. */
|
|
149
153
|
readonly originatingParty?: Maybe<Scalars['String']['output']>;
|
|
154
|
+
/** Array of publication IDs this article pertains to, e.g. 88fdde6c-2aa4-4f78-af02-9f680097cfd6 for FT Pink */
|
|
155
|
+
readonly publication?: Maybe<ReadonlyArray<Scalars['String']['output']>>;
|
|
150
156
|
/** A string ID used to trace content publishes through the pipeline, e.g. 'republish_tid_JNhUrBjdXo'. */
|
|
151
157
|
readonly publishReference?: Maybe<Scalars['String']['output']>;
|
|
152
158
|
/** The ISO string date the article was marked as published, eg. '2024-04-03T10:35:52.443Z'. */
|
|
@@ -1001,6 +1007,8 @@ export type ImageWideSourceSetArgs = {
|
|
|
1001
1007
|
export type Indicators = {
|
|
1002
1008
|
/** Whether the content is an opinion piece. */
|
|
1003
1009
|
readonly isOpinion?: Maybe<Scalars['Boolean']['output']>;
|
|
1010
|
+
/** Whether the content is Commercial Partner Content. */
|
|
1011
|
+
readonly isPartnerContent?: Maybe<Scalars['Boolean']['output']>;
|
|
1004
1012
|
};
|
|
1005
1013
|
export type LayoutImage = Reference & {
|
|
1006
1014
|
/** A set of images with different sizes and formats. */
|
|
@@ -101602,6 +101610,8 @@ type PackageContainer_Video_Fragment = {
|
|
|
101602
101610
|
export type PackageContainerFragment = PackageContainer_Article_Fragment | PackageContainer_Audio_Fragment | PackageContainer_ContentPackage_Fragment | PackageContainer_LiveBlogPackage_Fragment | PackageContainer_LiveBlogPost_Fragment | PackageContainer_Placeholder_Fragment | PackageContainer_Video_Fragment;
|
|
101603
101611
|
type ArticleFields_Article_Fragment = {
|
|
101604
101612
|
readonly __typename: 'Article';
|
|
101613
|
+
readonly publication?: ReadonlyArray<string> | null;
|
|
101614
|
+
readonly clientName?: string | null;
|
|
101605
101615
|
readonly url: string;
|
|
101606
101616
|
readonly id: string;
|
|
101607
101617
|
readonly title: string;
|
|
@@ -134135,6 +134145,9 @@ type ArticleFields_Article_Fragment = {
|
|
|
134135
134145
|
readonly layout?: string | null;
|
|
134136
134146
|
} | null;
|
|
134137
134147
|
} | null;
|
|
134148
|
+
readonly indicators?: {
|
|
134149
|
+
readonly isPartnerContent?: boolean | null;
|
|
134150
|
+
} | null;
|
|
134138
134151
|
readonly topper?: {
|
|
134139
134152
|
readonly __typename: 'BasicTopper';
|
|
134140
134153
|
readonly headline: string;
|
|
@@ -286620,6 +286633,8 @@ export type ArticleQueryVariables = Exact<{
|
|
|
286620
286633
|
export type ArticleQuery = {
|
|
286621
286634
|
readonly content: {
|
|
286622
286635
|
readonly __typename: 'Article';
|
|
286636
|
+
readonly publication?: ReadonlyArray<string> | null;
|
|
286637
|
+
readonly clientName?: string | null;
|
|
286623
286638
|
readonly url: string;
|
|
286624
286639
|
readonly id: string;
|
|
286625
286640
|
readonly title: string;
|
|
@@ -319153,6 +319168,9 @@ export type ArticleQuery = {
|
|
|
319153
319168
|
readonly layout?: string | null;
|
|
319154
319169
|
} | null;
|
|
319155
319170
|
} | null;
|
|
319171
|
+
readonly indicators?: {
|
|
319172
|
+
readonly isPartnerContent?: boolean | null;
|
|
319173
|
+
} | null;
|
|
319156
319174
|
readonly topper?: {
|
|
319157
319175
|
readonly __typename: 'BasicTopper';
|
|
319158
319176
|
readonly headline: string;
|
|
@@ -471633,6 +471651,8 @@ export type ArticleFromJsonQueryVariables = Exact<{
|
|
|
471633
471651
|
export type ArticleFromJsonQuery = {
|
|
471634
471652
|
readonly contentFromJSON: {
|
|
471635
471653
|
readonly __typename: 'Article';
|
|
471654
|
+
readonly publication?: ReadonlyArray<string> | null;
|
|
471655
|
+
readonly clientName?: string | null;
|
|
471636
471656
|
readonly url: string;
|
|
471637
471657
|
readonly id: string;
|
|
471638
471658
|
readonly title: string;
|
|
@@ -504166,6 +504186,9 @@ export type ArticleFromJsonQuery = {
|
|
|
504166
504186
|
readonly layout?: string | null;
|
|
504167
504187
|
} | null;
|
|
504168
504188
|
} | null;
|
|
504189
|
+
readonly indicators?: {
|
|
504190
|
+
readonly isPartnerContent?: boolean | null;
|
|
504191
|
+
} | null;
|
|
504169
504192
|
readonly topper?: {
|
|
504170
504193
|
readonly __typename: 'BasicTopper';
|
|
504171
504194
|
readonly headline: string;
|
package/lib/generated/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":";;;;;;AAuyFA,wBASC;AA9yFD,8DAA8B;AA8hEjB,QAAA,yBAAyB,GAAG,IAAA,qBAAG,EAAA;;;;KAIvC,CAAC;AACO,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;MAO7B,iCAAyB,EAAE,CAAC;AACrB,QAAA,sBAAsB,GAAG,IAAA,qBAAG,EAAA;;;;;KAKpC,CAAC;AACO,QAAA,kBAAkB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;MAW/B,8BAAsB,EAAE,CAAC;AAClB,QAAA,sBAAsB,GAAG,IAAA,qBAAG,EAAA;;;;;;KAMpC,CAAC;AACO,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;KAW9B,CAAC;AACO,QAAA,yBAAyB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;KASvC,CAAC;AACO,QAAA,uBAAuB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;MASpC,iCAAyB,EAAE,CAAC;AACrB,QAAA,iBAAiB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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E,SAAS,EAAE,OAAO,CAAC,CAAC;QAC7K,CAAC;QACD,eAAe,CAAC,SAAwC,EAAE,cAA4C;YACpG,OAAO,WAAW,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAuB,+BAAuB,EAAE,SAAS,EAAE,EAAC,GAAG,cAAc,EAAE,GAAG,qBAAqB,EAAC,CAAC,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;QACrM,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/lib/schema-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.
|
|
1
|
+
export declare const version = "3.3.0";
|
package/lib/schema-version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/cp-content-pipeline-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@dotcom-tool-kit/npm": "^3.1.4",
|
|
13
13
|
"@financial-times/content-tree": "github:financial-times/content-tree#056af70",
|
|
14
|
-
"@financial-times/cp-content-pipeline-schema": "^3.
|
|
14
|
+
"@financial-times/cp-content-pipeline-schema": "^3.3.0",
|
|
15
15
|
"@graphql-tools/merge": "^8.3.6",
|
|
16
16
|
"@types/lodash.mapvalues": "^4.6.7",
|
|
17
17
|
"@types/semver": "^7.3.13",
|
package/src/client-version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '4.
|
|
2
|
+
export const version = '4.4.0'
|