@financial-times/cp-content-pipeline-client 0.6.19 → 0.6.21
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/README.md +5 -6
- package/lib/client-version.d.ts +1 -1
- package/lib/client-version.js +1 -1
- package/lib/generated/index.d.ts +347 -347
- package/lib/index.d.ts +2 -1
- package/lib/index.js +1 -0
- package/lib/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 +24 -24
- package/src/index.ts +3 -1
- package/src/schema-version.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -186,6 +186,34 @@
|
|
|
186
186
|
* devDependencies
|
|
187
187
|
* @financial-times/cp-content-pipeline-schema bumped from ^0.7.17 to ^0.7.18
|
|
188
188
|
|
|
189
|
+
## [0.6.21](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v0.6.20...cp-content-pipeline-client-v0.6.21) (2023-07-21)
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
### Features
|
|
193
|
+
|
|
194
|
+
* use api key ([af8cf7d](https://github.com/Financial-Times/cp-content-pipeline/commit/af8cf7d596a77aa97bbc50c9c1de5a9647ad4e05))
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
### Bug Fixes
|
|
198
|
+
|
|
199
|
+
* only require api-key in production ([a858314](https://github.com/Financial-Times/cp-content-pipeline/commit/a8583148b6122f45d1225cbe4b3f639df30eb270))
|
|
200
|
+
* remove api key dependence in dev ([3f8d7ed](https://github.com/Financial-Times/cp-content-pipeline/commit/3f8d7edaf86077d1821f614d99fad380dfd20fc7))
|
|
201
|
+
* remove check for env ([489c36d](https://github.com/Financial-Times/cp-content-pipeline/commit/489c36da77e4803fb04d4deabdb7159d37a0d4af))
|
|
202
|
+
|
|
203
|
+
## [0.6.20](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v0.6.19...cp-content-pipeline-client-v0.6.20) (2023-07-20)
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### Bug Fixes
|
|
207
|
+
|
|
208
|
+
* add alphaville theme and display concept metadata ([3b3f7d1](https://github.com/Financial-Times/cp-content-pipeline/commit/3b3f7d1a5bed3ef4e0c3518917ff8bb57abd622c))
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### Dependencies
|
|
212
|
+
|
|
213
|
+
* The following workspace dependencies were updated
|
|
214
|
+
* devDependencies
|
|
215
|
+
* @financial-times/cp-content-pipeline-schema bumped from ^0.7.18 to ^0.7.19
|
|
216
|
+
|
|
189
217
|
## [0.6.18](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v0.6.17...cp-content-pipeline-client-v0.6.18) (2023-07-18)
|
|
190
218
|
|
|
191
219
|
|
package/README.md
CHANGED
|
@@ -16,9 +16,10 @@ The project has its own playground ui at the url it's running on.
|
|
|
16
16
|
import initContentPipelineClient from '@financial-times/cp-content-pipeline-client'
|
|
17
17
|
|
|
18
18
|
const client = initContentPipelineClient({
|
|
19
|
+
apiKey: 'some-secret',
|
|
19
20
|
baseUrl: 'http://localhost:3001', // for testing purposes only
|
|
20
21
|
systemCode: 'cp-content-pipeline', // your consuming app's Biz Ops system code
|
|
21
|
-
timeout: 2000 // default = 1 minute
|
|
22
|
+
timeout: 2000, // default = 1 minute
|
|
22
23
|
})
|
|
23
24
|
|
|
24
25
|
const { content: articleData } = await client.Article({
|
|
@@ -37,8 +38,7 @@ The `baseUrl` option overrides this logic, and forces all requests to go to that
|
|
|
37
38
|
|
|
38
39
|
## How this package is produced
|
|
39
40
|
|
|
40
|
-
The published `cp-content-pipeline-client` package mainly consists of generated code which is the output of [@graphql-codegen](https://www.npmjs.com/package/@graphql-codegen/cli).
|
|
41
|
-
|
|
41
|
+
The published `cp-content-pipeline-client` package mainly consists of generated code which is the output of [@graphql-codegen](https://www.npmjs.com/package/@graphql-codegen/cli).
|
|
42
42
|
|
|
43
43
|
### What is used to generate the GraphQL client
|
|
44
44
|
|
|
@@ -80,7 +80,7 @@ subgraph cpContentPipelineClient[cp-content-pipeline-client]
|
|
|
80
80
|
id5[A third party package that takes GraphQL schemas to produce a variety of outputs]:::description
|
|
81
81
|
end
|
|
82
82
|
codegenPackage:::externalSystem
|
|
83
|
-
|
|
83
|
+
|
|
84
84
|
end
|
|
85
85
|
toolkitPlugin:::internalComponent
|
|
86
86
|
|
|
@@ -129,9 +129,8 @@ classDef internalComponent fill:#BDA8FA,stroke-width:0px
|
|
|
129
129
|
classDef internalGrouping stroke-width:2px,fill:none,stroke:black
|
|
130
130
|
classDef externalSystem fill:#03A696,stroke-width:1px,stroke:black
|
|
131
131
|
classDef description stroke-width:0px,color:#000,fill:transparent,font-size:13px
|
|
132
|
-
classDef keyContainer fill: transparent, stroke: black,
|
|
132
|
+
classDef keyContainer fill: transparent, stroke: black,
|
|
133
133
|
|
|
134
134
|
style generatedOuput stroke-dasharray: 5 5
|
|
135
135
|
|
|
136
136
|
```
|
|
137
|
-
|
package/lib/client-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.6.
|
|
1
|
+
export declare const version = "0.6.21";
|
package/lib/client-version.js
CHANGED