@financial-times/cp-content-pipeline-client 4.2.1 → 4.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/client-version.d.ts +1 -1
- package/lib/client-version.js +1 -1
- package/lib/generated/index.d.ts +18 -0
- package/lib/generated/index.js +4 -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 +13 -3
- package/src/schema-version.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -504,6 +504,20 @@
|
|
|
504
504
|
* devDependencies
|
|
505
505
|
* @financial-times/cp-content-pipeline-schema bumped from ^3.1.0 to ^3.1.1
|
|
506
506
|
|
|
507
|
+
## [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)
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
### Features
|
|
511
|
+
|
|
512
|
+
* **partnercontent:** publication and ispartnercontent props added to capiresponse schema updated ([f072495](https://github.com/Financial-Times/cp-content-pipeline/commit/f0724959eaedb1e3e80484fdf19021157cae7f30))
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
### Dependencies
|
|
516
|
+
|
|
517
|
+
* The following workspace dependencies were updated
|
|
518
|
+
* devDependencies
|
|
519
|
+
* @financial-times/cp-content-pipeline-schema bumped from ^3.1.1 to ^3.2.0
|
|
520
|
+
|
|
507
521
|
## [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
522
|
|
|
509
523
|
|
package/lib/client-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.
|
|
1
|
+
export declare const version = "4.3.0";
|
package/lib/client-version.js
CHANGED
package/lib/generated/index.d.ts
CHANGED
|
@@ -139,6 +139,8 @@ export type Article = Content & {
|
|
|
139
139
|
readonly firstPublishedDate: Scalars['String']['output'];
|
|
140
140
|
/** The unique identifier of the article - a uuid or a url. */
|
|
141
141
|
readonly id: Scalars['ID']['output'];
|
|
142
|
+
/** An object of several flags indicating the nature of the content */
|
|
143
|
+
readonly indicators?: Maybe<Indicators>;
|
|
142
144
|
/** The concept to use for instant alert CTAs. */
|
|
143
145
|
readonly instantAlertConcept?: Maybe<Concept>;
|
|
144
146
|
/** An image object containing the url and the caption, to be displayed usually before the article content. */
|
|
@@ -147,6 +149,8 @@ export type Article = Content & {
|
|
|
147
149
|
readonly modifiedTimestamp?: Maybe<Scalars['Float']['output']>;
|
|
148
150
|
/** The party that originated the article, eg. 'FT'. */
|
|
149
151
|
readonly originatingParty?: Maybe<Scalars['String']['output']>;
|
|
152
|
+
/** Array of publication IDs this article pertains to, e.g. 88fdde6c-2aa4-4f78-af02-9f680097cfd6 for FT Pink */
|
|
153
|
+
readonly publication?: Maybe<ReadonlyArray<Scalars['String']['output']>>;
|
|
150
154
|
/** A string ID used to trace content publishes through the pipeline, e.g. 'republish_tid_JNhUrBjdXo'. */
|
|
151
155
|
readonly publishReference?: Maybe<Scalars['String']['output']>;
|
|
152
156
|
/** The ISO string date the article was marked as published, eg. '2024-04-03T10:35:52.443Z'. */
|
|
@@ -1001,6 +1005,8 @@ export type ImageWideSourceSetArgs = {
|
|
|
1001
1005
|
export type Indicators = {
|
|
1002
1006
|
/** Whether the content is an opinion piece. */
|
|
1003
1007
|
readonly isOpinion?: Maybe<Scalars['Boolean']['output']>;
|
|
1008
|
+
/** Whether the content is Commercial Partner Content. */
|
|
1009
|
+
readonly isPartnerContent?: Maybe<Scalars['Boolean']['output']>;
|
|
1004
1010
|
};
|
|
1005
1011
|
export type LayoutImage = Reference & {
|
|
1006
1012
|
/** A set of images with different sizes and formats. */
|
|
@@ -101602,6 +101608,7 @@ type PackageContainer_Video_Fragment = {
|
|
|
101602
101608
|
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
101609
|
type ArticleFields_Article_Fragment = {
|
|
101604
101610
|
readonly __typename: 'Article';
|
|
101611
|
+
readonly publication?: ReadonlyArray<string> | null;
|
|
101605
101612
|
readonly url: string;
|
|
101606
101613
|
readonly id: string;
|
|
101607
101614
|
readonly title: string;
|
|
@@ -134135,6 +134142,9 @@ type ArticleFields_Article_Fragment = {
|
|
|
134135
134142
|
readonly layout?: string | null;
|
|
134136
134143
|
} | null;
|
|
134137
134144
|
} | null;
|
|
134145
|
+
readonly indicators?: {
|
|
134146
|
+
readonly isPartnerContent?: boolean | null;
|
|
134147
|
+
} | null;
|
|
134138
134148
|
readonly topper?: {
|
|
134139
134149
|
readonly __typename: 'BasicTopper';
|
|
134140
134150
|
readonly headline: string;
|
|
@@ -286620,6 +286630,7 @@ export type ArticleQueryVariables = Exact<{
|
|
|
286620
286630
|
export type ArticleQuery = {
|
|
286621
286631
|
readonly content: {
|
|
286622
286632
|
readonly __typename: 'Article';
|
|
286633
|
+
readonly publication?: ReadonlyArray<string> | null;
|
|
286623
286634
|
readonly url: string;
|
|
286624
286635
|
readonly id: string;
|
|
286625
286636
|
readonly title: string;
|
|
@@ -319153,6 +319164,9 @@ export type ArticleQuery = {
|
|
|
319153
319164
|
readonly layout?: string | null;
|
|
319154
319165
|
} | null;
|
|
319155
319166
|
} | null;
|
|
319167
|
+
readonly indicators?: {
|
|
319168
|
+
readonly isPartnerContent?: boolean | null;
|
|
319169
|
+
} | null;
|
|
319156
319170
|
readonly topper?: {
|
|
319157
319171
|
readonly __typename: 'BasicTopper';
|
|
319158
319172
|
readonly headline: string;
|
|
@@ -471633,6 +471647,7 @@ export type ArticleFromJsonQueryVariables = Exact<{
|
|
|
471633
471647
|
export type ArticleFromJsonQuery = {
|
|
471634
471648
|
readonly contentFromJSON: {
|
|
471635
471649
|
readonly __typename: 'Article';
|
|
471650
|
+
readonly publication?: ReadonlyArray<string> | null;
|
|
471636
471651
|
readonly url: string;
|
|
471637
471652
|
readonly id: string;
|
|
471638
471653
|
readonly title: string;
|
|
@@ -504166,6 +504181,9 @@ export type ArticleFromJsonQuery = {
|
|
|
504166
504181
|
readonly layout?: string | null;
|
|
504167
504182
|
} | null;
|
|
504168
504183
|
} | null;
|
|
504184
|
+
readonly indicators?: {
|
|
504185
|
+
readonly isPartnerContent?: boolean | null;
|
|
504186
|
+
} | null;
|
|
504169
504187
|
readonly topper?: {
|
|
504170
504188
|
readonly __typename: 'BasicTopper';
|
|
504171
504189
|
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":";;;;;;AAoyFA,wBASC;AA3yFD,8DAA8B;AA4hEjB,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,EAA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AE,EAAE,CAAC,MAAM,EAAE,CAAC;AAEhG,SAAgB,MAAM,CAAC,MAAqB,EAAE,cAAkC,cAAc;IAC5F,OAAO;QACL,OAAO,CAAC,SAAgC,EAAE,cAA4C;YACpF,OAAO,WAAW,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAe,uBAAe,EAAE,SAAS,EAAE,EAAC,GAAG,cAAc,EAAE,GAAG,qBAAqB,EAAC,CAAC,EAAE,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.2.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.3.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.2.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.3.0'
|