@financial-times/cp-content-pipeline-client 0.2.6 → 0.2.8
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 +21 -0
- package/lib/generated/index.d.ts +271 -2
- package/lib/generated/index.js +17 -2
- package/lib/generated/index.js.map +1 -1
- package/package.json +2 -2
- package/queries/article.graphql +13 -0
- package/src/generated/index.ts +46 -11
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,27 @@
|
|
|
12
12
|
* devDependencies
|
|
13
13
|
* @financial-times/cp-content-pipeline-schema bumped from ^0.3.0 to ^0.3.1
|
|
14
14
|
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
* The following workspace dependencies were updated
|
|
18
|
+
* devDependencies
|
|
19
|
+
* @financial-times/cp-content-pipeline-schema bumped from ^0.3.3 to ^0.3.4
|
|
20
|
+
|
|
21
|
+
## [0.2.8](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v0.2.7...cp-content-pipeline-client-v0.2.8) (2022-11-01)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* update the generate query/client ([c0fba58](https://github.com/Financial-Times/cp-content-pipeline/commit/c0fba58f3a439e9404b173da26c9b4ca8298af01))
|
|
27
|
+
* use the new Flourish tag in the schema and article query ([5e87745](https://github.com/Financial-Times/cp-content-pipeline/commit/5e87745e8d0ad0df51adbf4cf4790127e03f758d))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Dependencies
|
|
31
|
+
|
|
32
|
+
* The following workspace dependencies were updated
|
|
33
|
+
* devDependencies
|
|
34
|
+
* @financial-times/cp-content-pipeline-schema bumped from ^0.3.4 to ^0.3.5
|
|
35
|
+
|
|
15
36
|
## [0.2.6](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v0.2.5...cp-content-pipeline-client-v0.2.6) (2022-10-24)
|
|
16
37
|
|
|
17
38
|
|
package/lib/generated/index.d.ts
CHANGED
|
@@ -151,6 +151,20 @@ export declare type ContentPackage = Content & {
|
|
|
151
151
|
export declare type ContentPackageUrlArgs = {
|
|
152
152
|
relative?: InputMaybe<Scalars['Boolean']>;
|
|
153
153
|
};
|
|
154
|
+
export declare type Flourish = {
|
|
155
|
+
readonly __typename?: 'Flourish';
|
|
156
|
+
readonly description?: Maybe<Scalars['String']>;
|
|
157
|
+
readonly fallbackImage?: Maybe<FlourishFallback>;
|
|
158
|
+
readonly fullGrid: Scalars['Boolean'];
|
|
159
|
+
readonly id: Scalars['String'];
|
|
160
|
+
readonly type: Scalars['String'];
|
|
161
|
+
};
|
|
162
|
+
export declare type FlourishFallback = {
|
|
163
|
+
readonly __typename?: 'FlourishFallback';
|
|
164
|
+
readonly height?: Maybe<Scalars['Int']>;
|
|
165
|
+
readonly url?: Maybe<Scalars['String']>;
|
|
166
|
+
readonly width?: Maybe<Scalars['Int']>;
|
|
167
|
+
};
|
|
154
168
|
export declare type FullBleedTopper = Topper & TopperWithBrand & TopperWithImages & TopperWithTheme & {
|
|
155
169
|
readonly __typename?: 'FullBleedTopper';
|
|
156
170
|
readonly backgroundColour?: Maybe<TopperBackgroundColour>;
|
|
@@ -330,7 +344,7 @@ export declare type Recommended = {
|
|
|
330
344
|
readonly teaser: Teaser;
|
|
331
345
|
readonly title: Scalars['String'];
|
|
332
346
|
};
|
|
333
|
-
export declare type Reference = ImageSet | LayoutImage | Link | PullQuote | Recommended | Tweet;
|
|
347
|
+
export declare type Reference = Flourish | ImageSet | LayoutImage | Link | PullQuote | Recommended | Tweet;
|
|
334
348
|
export declare type RichText = {
|
|
335
349
|
readonly __typename?: 'RichText';
|
|
336
350
|
readonly raw: Scalars['String'];
|
|
@@ -1184,6 +1198,32 @@ export declare type TweetFragment = {
|
|
|
1184
1198
|
};
|
|
1185
1199
|
};
|
|
1186
1200
|
};
|
|
1201
|
+
export declare type FlourishFragment = {
|
|
1202
|
+
readonly __typename?: 'Flourish';
|
|
1203
|
+
readonly id: string;
|
|
1204
|
+
readonly type: string;
|
|
1205
|
+
readonly description?: string;
|
|
1206
|
+
readonly fullGrid: boolean;
|
|
1207
|
+
readonly fallbackImage?: {
|
|
1208
|
+
readonly __typename?: 'FlourishFallback';
|
|
1209
|
+
readonly url?: string;
|
|
1210
|
+
readonly width?: number;
|
|
1211
|
+
readonly height?: number;
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
declare type ArticleReferences_Flourish_Fragment = {
|
|
1215
|
+
readonly __typename: 'Flourish';
|
|
1216
|
+
readonly id: string;
|
|
1217
|
+
readonly type: string;
|
|
1218
|
+
readonly description?: string;
|
|
1219
|
+
readonly fullGrid: boolean;
|
|
1220
|
+
readonly fallbackImage?: {
|
|
1221
|
+
readonly __typename?: 'FlourishFallback';
|
|
1222
|
+
readonly url?: string;
|
|
1223
|
+
readonly width?: number;
|
|
1224
|
+
readonly height?: number;
|
|
1225
|
+
};
|
|
1226
|
+
};
|
|
1187
1227
|
declare type ArticleReferences_ImageSet_Fragment = {
|
|
1188
1228
|
readonly __typename: 'ImageSet';
|
|
1189
1229
|
readonly picture: {
|
|
@@ -1471,11 +1511,23 @@ declare type ArticleReferences_Tweet_Fragment = {
|
|
|
1471
1511
|
};
|
|
1472
1512
|
};
|
|
1473
1513
|
};
|
|
1474
|
-
export declare type ArticleReferencesFragment = ArticleReferences_ImageSet_Fragment | ArticleReferences_LayoutImage_Fragment | ArticleReferences_Link_Fragment | ArticleReferences_PullQuote_Fragment | ArticleReferences_Recommended_Fragment | ArticleReferences_Tweet_Fragment;
|
|
1514
|
+
export declare type ArticleReferencesFragment = ArticleReferences_Flourish_Fragment | ArticleReferences_ImageSet_Fragment | ArticleReferences_LayoutImage_Fragment | ArticleReferences_Link_Fragment | ArticleReferences_PullQuote_Fragment | ArticleReferences_Recommended_Fragment | ArticleReferences_Tweet_Fragment;
|
|
1475
1515
|
export declare type StructuredContentFragment = {
|
|
1476
1516
|
readonly __typename?: 'StructuredContent';
|
|
1477
1517
|
readonly tree: any;
|
|
1478
1518
|
readonly references: ReadonlyArray<{
|
|
1519
|
+
readonly __typename: 'Flourish';
|
|
1520
|
+
readonly id: string;
|
|
1521
|
+
readonly type: string;
|
|
1522
|
+
readonly description?: string;
|
|
1523
|
+
readonly fullGrid: boolean;
|
|
1524
|
+
readonly fallbackImage?: {
|
|
1525
|
+
readonly __typename?: 'FlourishFallback';
|
|
1526
|
+
readonly url?: string;
|
|
1527
|
+
readonly width?: number;
|
|
1528
|
+
readonly height?: number;
|
|
1529
|
+
};
|
|
1530
|
+
} | {
|
|
1479
1531
|
readonly __typename: 'ImageSet';
|
|
1480
1532
|
readonly picture: {
|
|
1481
1533
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -1979,6 +2031,18 @@ declare type Content_Article_Fragment = {
|
|
|
1979
2031
|
readonly __typename?: 'StructuredContent';
|
|
1980
2032
|
readonly tree: any;
|
|
1981
2033
|
readonly references: ReadonlyArray<{
|
|
2034
|
+
readonly __typename: 'Flourish';
|
|
2035
|
+
readonly id: string;
|
|
2036
|
+
readonly type: string;
|
|
2037
|
+
readonly description?: string;
|
|
2038
|
+
readonly fullGrid: boolean;
|
|
2039
|
+
readonly fallbackImage?: {
|
|
2040
|
+
readonly __typename?: 'FlourishFallback';
|
|
2041
|
+
readonly url?: string;
|
|
2042
|
+
readonly width?: number;
|
|
2043
|
+
readonly height?: number;
|
|
2044
|
+
};
|
|
2045
|
+
} | {
|
|
1982
2046
|
readonly __typename: 'ImageSet';
|
|
1983
2047
|
readonly picture: {
|
|
1984
2048
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -2488,6 +2552,18 @@ declare type Content_Audio_Fragment = {
|
|
|
2488
2552
|
readonly __typename?: 'StructuredContent';
|
|
2489
2553
|
readonly tree: any;
|
|
2490
2554
|
readonly references: ReadonlyArray<{
|
|
2555
|
+
readonly __typename: 'Flourish';
|
|
2556
|
+
readonly id: string;
|
|
2557
|
+
readonly type: string;
|
|
2558
|
+
readonly description?: string;
|
|
2559
|
+
readonly fullGrid: boolean;
|
|
2560
|
+
readonly fallbackImage?: {
|
|
2561
|
+
readonly __typename?: 'FlourishFallback';
|
|
2562
|
+
readonly url?: string;
|
|
2563
|
+
readonly width?: number;
|
|
2564
|
+
readonly height?: number;
|
|
2565
|
+
};
|
|
2566
|
+
} | {
|
|
2491
2567
|
readonly __typename: 'ImageSet';
|
|
2492
2568
|
readonly picture: {
|
|
2493
2569
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -2997,6 +3073,18 @@ declare type Content_ContentPackage_Fragment = {
|
|
|
2997
3073
|
readonly __typename?: 'StructuredContent';
|
|
2998
3074
|
readonly tree: any;
|
|
2999
3075
|
readonly references: ReadonlyArray<{
|
|
3076
|
+
readonly __typename: 'Flourish';
|
|
3077
|
+
readonly id: string;
|
|
3078
|
+
readonly type: string;
|
|
3079
|
+
readonly description?: string;
|
|
3080
|
+
readonly fullGrid: boolean;
|
|
3081
|
+
readonly fallbackImage?: {
|
|
3082
|
+
readonly __typename?: 'FlourishFallback';
|
|
3083
|
+
readonly url?: string;
|
|
3084
|
+
readonly width?: number;
|
|
3085
|
+
readonly height?: number;
|
|
3086
|
+
};
|
|
3087
|
+
} | {
|
|
3000
3088
|
readonly __typename: 'ImageSet';
|
|
3001
3089
|
readonly picture: {
|
|
3002
3090
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -3506,6 +3594,18 @@ declare type Content_LiveBlogPackage_Fragment = {
|
|
|
3506
3594
|
readonly __typename?: 'StructuredContent';
|
|
3507
3595
|
readonly tree: any;
|
|
3508
3596
|
readonly references: ReadonlyArray<{
|
|
3597
|
+
readonly __typename: 'Flourish';
|
|
3598
|
+
readonly id: string;
|
|
3599
|
+
readonly type: string;
|
|
3600
|
+
readonly description?: string;
|
|
3601
|
+
readonly fullGrid: boolean;
|
|
3602
|
+
readonly fallbackImage?: {
|
|
3603
|
+
readonly __typename?: 'FlourishFallback';
|
|
3604
|
+
readonly url?: string;
|
|
3605
|
+
readonly width?: number;
|
|
3606
|
+
readonly height?: number;
|
|
3607
|
+
};
|
|
3608
|
+
} | {
|
|
3509
3609
|
readonly __typename: 'ImageSet';
|
|
3510
3610
|
readonly picture: {
|
|
3511
3611
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -4015,6 +4115,18 @@ declare type Content_LiveBlogPost_Fragment = {
|
|
|
4015
4115
|
readonly __typename?: 'StructuredContent';
|
|
4016
4116
|
readonly tree: any;
|
|
4017
4117
|
readonly references: ReadonlyArray<{
|
|
4118
|
+
readonly __typename: 'Flourish';
|
|
4119
|
+
readonly id: string;
|
|
4120
|
+
readonly type: string;
|
|
4121
|
+
readonly description?: string;
|
|
4122
|
+
readonly fullGrid: boolean;
|
|
4123
|
+
readonly fallbackImage?: {
|
|
4124
|
+
readonly __typename?: 'FlourishFallback';
|
|
4125
|
+
readonly url?: string;
|
|
4126
|
+
readonly width?: number;
|
|
4127
|
+
readonly height?: number;
|
|
4128
|
+
};
|
|
4129
|
+
} | {
|
|
4018
4130
|
readonly __typename: 'ImageSet';
|
|
4019
4131
|
readonly picture: {
|
|
4020
4132
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -4524,6 +4636,18 @@ declare type Content_Video_Fragment = {
|
|
|
4524
4636
|
readonly __typename?: 'StructuredContent';
|
|
4525
4637
|
readonly tree: any;
|
|
4526
4638
|
readonly references: ReadonlyArray<{
|
|
4639
|
+
readonly __typename: 'Flourish';
|
|
4640
|
+
readonly id: string;
|
|
4641
|
+
readonly type: string;
|
|
4642
|
+
readonly description?: string;
|
|
4643
|
+
readonly fullGrid: boolean;
|
|
4644
|
+
readonly fallbackImage?: {
|
|
4645
|
+
readonly __typename?: 'FlourishFallback';
|
|
4646
|
+
readonly url?: string;
|
|
4647
|
+
readonly width?: number;
|
|
4648
|
+
readonly height?: number;
|
|
4649
|
+
};
|
|
4650
|
+
} | {
|
|
4527
4651
|
readonly __typename: 'ImageSet';
|
|
4528
4652
|
readonly picture: {
|
|
4529
4653
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -5040,6 +5164,18 @@ export declare type ArticleQuery = {
|
|
|
5040
5164
|
readonly __typename?: 'StructuredContent';
|
|
5041
5165
|
readonly tree: any;
|
|
5042
5166
|
readonly references: ReadonlyArray<{
|
|
5167
|
+
readonly __typename: 'Flourish';
|
|
5168
|
+
readonly id: string;
|
|
5169
|
+
readonly type: string;
|
|
5170
|
+
readonly description?: string;
|
|
5171
|
+
readonly fullGrid: boolean;
|
|
5172
|
+
readonly fallbackImage?: {
|
|
5173
|
+
readonly __typename?: 'FlourishFallback';
|
|
5174
|
+
readonly url?: string;
|
|
5175
|
+
readonly width?: number;
|
|
5176
|
+
readonly height?: number;
|
|
5177
|
+
};
|
|
5178
|
+
} | {
|
|
5043
5179
|
readonly __typename: 'ImageSet';
|
|
5044
5180
|
readonly picture: {
|
|
5045
5181
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -5548,6 +5684,18 @@ export declare type ArticleQuery = {
|
|
|
5548
5684
|
readonly __typename?: 'StructuredContent';
|
|
5549
5685
|
readonly tree: any;
|
|
5550
5686
|
readonly references: ReadonlyArray<{
|
|
5687
|
+
readonly __typename: 'Flourish';
|
|
5688
|
+
readonly id: string;
|
|
5689
|
+
readonly type: string;
|
|
5690
|
+
readonly description?: string;
|
|
5691
|
+
readonly fullGrid: boolean;
|
|
5692
|
+
readonly fallbackImage?: {
|
|
5693
|
+
readonly __typename?: 'FlourishFallback';
|
|
5694
|
+
readonly url?: string;
|
|
5695
|
+
readonly width?: number;
|
|
5696
|
+
readonly height?: number;
|
|
5697
|
+
};
|
|
5698
|
+
} | {
|
|
5551
5699
|
readonly __typename: 'ImageSet';
|
|
5552
5700
|
readonly picture: {
|
|
5553
5701
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -6056,6 +6204,18 @@ export declare type ArticleQuery = {
|
|
|
6056
6204
|
readonly __typename?: 'StructuredContent';
|
|
6057
6205
|
readonly tree: any;
|
|
6058
6206
|
readonly references: ReadonlyArray<{
|
|
6207
|
+
readonly __typename: 'Flourish';
|
|
6208
|
+
readonly id: string;
|
|
6209
|
+
readonly type: string;
|
|
6210
|
+
readonly description?: string;
|
|
6211
|
+
readonly fullGrid: boolean;
|
|
6212
|
+
readonly fallbackImage?: {
|
|
6213
|
+
readonly __typename?: 'FlourishFallback';
|
|
6214
|
+
readonly url?: string;
|
|
6215
|
+
readonly width?: number;
|
|
6216
|
+
readonly height?: number;
|
|
6217
|
+
};
|
|
6218
|
+
} | {
|
|
6059
6219
|
readonly __typename: 'ImageSet';
|
|
6060
6220
|
readonly picture: {
|
|
6061
6221
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -6570,6 +6730,18 @@ export declare type ArticleQuery = {
|
|
|
6570
6730
|
readonly __typename?: 'StructuredContent';
|
|
6571
6731
|
readonly tree: any;
|
|
6572
6732
|
readonly references: ReadonlyArray<{
|
|
6733
|
+
readonly __typename: 'Flourish';
|
|
6734
|
+
readonly id: string;
|
|
6735
|
+
readonly type: string;
|
|
6736
|
+
readonly description?: string;
|
|
6737
|
+
readonly fullGrid: boolean;
|
|
6738
|
+
readonly fallbackImage?: {
|
|
6739
|
+
readonly __typename?: 'FlourishFallback';
|
|
6740
|
+
readonly url?: string;
|
|
6741
|
+
readonly width?: number;
|
|
6742
|
+
readonly height?: number;
|
|
6743
|
+
};
|
|
6744
|
+
} | {
|
|
6573
6745
|
readonly __typename: 'ImageSet';
|
|
6574
6746
|
readonly picture: {
|
|
6575
6747
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -7078,6 +7250,18 @@ export declare type ArticleQuery = {
|
|
|
7078
7250
|
readonly __typename?: 'StructuredContent';
|
|
7079
7251
|
readonly tree: any;
|
|
7080
7252
|
readonly references: ReadonlyArray<{
|
|
7253
|
+
readonly __typename: 'Flourish';
|
|
7254
|
+
readonly id: string;
|
|
7255
|
+
readonly type: string;
|
|
7256
|
+
readonly description?: string;
|
|
7257
|
+
readonly fullGrid: boolean;
|
|
7258
|
+
readonly fallbackImage?: {
|
|
7259
|
+
readonly __typename?: 'FlourishFallback';
|
|
7260
|
+
readonly url?: string;
|
|
7261
|
+
readonly width?: number;
|
|
7262
|
+
readonly height?: number;
|
|
7263
|
+
};
|
|
7264
|
+
} | {
|
|
7081
7265
|
readonly __typename: 'ImageSet';
|
|
7082
7266
|
readonly picture: {
|
|
7083
7267
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -7586,6 +7770,18 @@ export declare type ArticleQuery = {
|
|
|
7586
7770
|
readonly __typename?: 'StructuredContent';
|
|
7587
7771
|
readonly tree: any;
|
|
7588
7772
|
readonly references: ReadonlyArray<{
|
|
7773
|
+
readonly __typename: 'Flourish';
|
|
7774
|
+
readonly id: string;
|
|
7775
|
+
readonly type: string;
|
|
7776
|
+
readonly description?: string;
|
|
7777
|
+
readonly fullGrid: boolean;
|
|
7778
|
+
readonly fallbackImage?: {
|
|
7779
|
+
readonly __typename?: 'FlourishFallback';
|
|
7780
|
+
readonly url?: string;
|
|
7781
|
+
readonly width?: number;
|
|
7782
|
+
readonly height?: number;
|
|
7783
|
+
};
|
|
7784
|
+
} | {
|
|
7589
7785
|
readonly __typename: 'ImageSet';
|
|
7590
7786
|
readonly picture: {
|
|
7591
7787
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -8094,6 +8290,18 @@ export declare type ArticleQuery = {
|
|
|
8094
8290
|
readonly __typename?: 'StructuredContent';
|
|
8095
8291
|
readonly tree: any;
|
|
8096
8292
|
readonly references: ReadonlyArray<{
|
|
8293
|
+
readonly __typename: 'Flourish';
|
|
8294
|
+
readonly id: string;
|
|
8295
|
+
readonly type: string;
|
|
8296
|
+
readonly description?: string;
|
|
8297
|
+
readonly fullGrid: boolean;
|
|
8298
|
+
readonly fallbackImage?: {
|
|
8299
|
+
readonly __typename?: 'FlourishFallback';
|
|
8300
|
+
readonly url?: string;
|
|
8301
|
+
readonly width?: number;
|
|
8302
|
+
readonly height?: number;
|
|
8303
|
+
};
|
|
8304
|
+
} | {
|
|
8097
8305
|
readonly __typename: 'ImageSet';
|
|
8098
8306
|
readonly picture: {
|
|
8099
8307
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -8602,6 +8810,18 @@ export declare type ArticleQuery = {
|
|
|
8602
8810
|
readonly __typename?: 'StructuredContent';
|
|
8603
8811
|
readonly tree: any;
|
|
8604
8812
|
readonly references: ReadonlyArray<{
|
|
8813
|
+
readonly __typename: 'Flourish';
|
|
8814
|
+
readonly id: string;
|
|
8815
|
+
readonly type: string;
|
|
8816
|
+
readonly description?: string;
|
|
8817
|
+
readonly fullGrid: boolean;
|
|
8818
|
+
readonly fallbackImage?: {
|
|
8819
|
+
readonly __typename?: 'FlourishFallback';
|
|
8820
|
+
readonly url?: string;
|
|
8821
|
+
readonly width?: number;
|
|
8822
|
+
readonly height?: number;
|
|
8823
|
+
};
|
|
8824
|
+
} | {
|
|
8605
8825
|
readonly __typename: 'ImageSet';
|
|
8606
8826
|
readonly picture: {
|
|
8607
8827
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -9110,6 +9330,18 @@ export declare type ArticleQuery = {
|
|
|
9110
9330
|
readonly __typename?: 'StructuredContent';
|
|
9111
9331
|
readonly tree: any;
|
|
9112
9332
|
readonly references: ReadonlyArray<{
|
|
9333
|
+
readonly __typename: 'Flourish';
|
|
9334
|
+
readonly id: string;
|
|
9335
|
+
readonly type: string;
|
|
9336
|
+
readonly description?: string;
|
|
9337
|
+
readonly fullGrid: boolean;
|
|
9338
|
+
readonly fallbackImage?: {
|
|
9339
|
+
readonly __typename?: 'FlourishFallback';
|
|
9340
|
+
readonly url?: string;
|
|
9341
|
+
readonly width?: number;
|
|
9342
|
+
readonly height?: number;
|
|
9343
|
+
};
|
|
9344
|
+
} | {
|
|
9113
9345
|
readonly __typename: 'ImageSet';
|
|
9114
9346
|
readonly picture: {
|
|
9115
9347
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -9614,6 +9846,18 @@ export declare type ArticleQuery = {
|
|
|
9614
9846
|
readonly __typename?: 'StructuredContent';
|
|
9615
9847
|
readonly tree: any;
|
|
9616
9848
|
readonly references: ReadonlyArray<{
|
|
9849
|
+
readonly __typename: 'Flourish';
|
|
9850
|
+
readonly id: string;
|
|
9851
|
+
readonly type: string;
|
|
9852
|
+
readonly description?: string;
|
|
9853
|
+
readonly fullGrid: boolean;
|
|
9854
|
+
readonly fallbackImage?: {
|
|
9855
|
+
readonly __typename?: 'FlourishFallback';
|
|
9856
|
+
readonly url?: string;
|
|
9857
|
+
readonly width?: number;
|
|
9858
|
+
readonly height?: number;
|
|
9859
|
+
};
|
|
9860
|
+
} | {
|
|
9617
9861
|
readonly __typename: 'ImageSet';
|
|
9618
9862
|
readonly picture: {
|
|
9619
9863
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -10122,6 +10366,18 @@ export declare type ArticleQuery = {
|
|
|
10122
10366
|
readonly __typename?: 'StructuredContent';
|
|
10123
10367
|
readonly tree: any;
|
|
10124
10368
|
readonly references: ReadonlyArray<{
|
|
10369
|
+
readonly __typename: 'Flourish';
|
|
10370
|
+
readonly id: string;
|
|
10371
|
+
readonly type: string;
|
|
10372
|
+
readonly description?: string;
|
|
10373
|
+
readonly fullGrid: boolean;
|
|
10374
|
+
readonly fallbackImage?: {
|
|
10375
|
+
readonly __typename?: 'FlourishFallback';
|
|
10376
|
+
readonly url?: string;
|
|
10377
|
+
readonly width?: number;
|
|
10378
|
+
readonly height?: number;
|
|
10379
|
+
};
|
|
10380
|
+
} | {
|
|
10125
10381
|
readonly __typename: 'ImageSet';
|
|
10126
10382
|
readonly picture: {
|
|
10127
10383
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -10630,6 +10886,18 @@ export declare type ArticleQuery = {
|
|
|
10630
10886
|
readonly __typename?: 'StructuredContent';
|
|
10631
10887
|
readonly tree: any;
|
|
10632
10888
|
readonly references: ReadonlyArray<{
|
|
10889
|
+
readonly __typename: 'Flourish';
|
|
10890
|
+
readonly id: string;
|
|
10891
|
+
readonly type: string;
|
|
10892
|
+
readonly description?: string;
|
|
10893
|
+
readonly fullGrid: boolean;
|
|
10894
|
+
readonly fallbackImage?: {
|
|
10895
|
+
readonly __typename?: 'FlourishFallback';
|
|
10896
|
+
readonly url?: string;
|
|
10897
|
+
readonly width?: number;
|
|
10898
|
+
readonly height?: number;
|
|
10899
|
+
};
|
|
10900
|
+
} | {
|
|
10633
10901
|
readonly __typename: 'ImageSet';
|
|
10634
10902
|
readonly picture: {
|
|
10635
10903
|
readonly __typename: 'PictureFullBleed';
|
|
@@ -10932,6 +11200,7 @@ export declare const ImageSetFragmentDoc: import("graphql/language/ast").Documen
|
|
|
10932
11200
|
export declare const LayoutImageFragmentDoc: import("graphql/language/ast").DocumentNode;
|
|
10933
11201
|
export declare const PullQuoteFragmentDoc: import("graphql/language/ast").DocumentNode;
|
|
10934
11202
|
export declare const TweetFragmentDoc: import("graphql/language/ast").DocumentNode;
|
|
11203
|
+
export declare const FlourishFragmentDoc: import("graphql/language/ast").DocumentNode;
|
|
10935
11204
|
export declare const ArticleReferencesFragmentDoc: import("graphql/language/ast").DocumentNode;
|
|
10936
11205
|
export declare const StructuredContentFragmentDoc: import("graphql/language/ast").DocumentNode;
|
|
10937
11206
|
export declare const ContentFragmentDoc: import("graphql/language/ast").DocumentNode;
|
package/lib/generated/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getSdk = exports.ArticleDocument = exports.ContentFragmentDoc = exports.StructuredContentFragmentDoc = exports.ArticleReferencesFragmentDoc = exports.TweetFragmentDoc = exports.PullQuoteFragmentDoc = exports.LayoutImageFragmentDoc = exports.ImageSetFragmentDoc = exports.PictureFragmentDoc = exports.RecommendedFragmentDoc = exports.TeaserFragmentDoc = exports.TopperFragmentDoc = exports.ConceptFragmentDoc = exports.StructuredTreeFragmentDoc = exports.TopperImagesFragmentDoc = exports.ImageFragmentDoc = exports.ImageSourceFragmentDoc = exports.TopperBackgroundColour = exports.Source = exports.ImageType = exports.AccessLevel = void 0;
|
|
6
|
+
exports.getSdk = exports.ArticleDocument = exports.ContentFragmentDoc = exports.StructuredContentFragmentDoc = exports.ArticleReferencesFragmentDoc = exports.FlourishFragmentDoc = exports.TweetFragmentDoc = exports.PullQuoteFragmentDoc = exports.LayoutImageFragmentDoc = exports.ImageSetFragmentDoc = exports.PictureFragmentDoc = exports.RecommendedFragmentDoc = exports.TeaserFragmentDoc = exports.TopperFragmentDoc = exports.ConceptFragmentDoc = exports.StructuredTreeFragmentDoc = exports.TopperImagesFragmentDoc = exports.ImageFragmentDoc = exports.ImageSourceFragmentDoc = exports.TopperBackgroundColour = exports.Source = exports.ImageType = exports.AccessLevel = void 0;
|
|
7
7
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
8
|
var AccessLevel;
|
|
9
9
|
(function (AccessLevel) {
|
|
@@ -312,6 +312,19 @@ exports.TweetFragmentDoc = (0, graphql_tag_1.default) `
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
${exports.StructuredTreeFragmentDoc}`;
|
|
315
|
+
exports.FlourishFragmentDoc = (0, graphql_tag_1.default) `
|
|
316
|
+
fragment Flourish on Flourish {
|
|
317
|
+
id
|
|
318
|
+
type
|
|
319
|
+
description
|
|
320
|
+
fullGrid
|
|
321
|
+
fallbackImage {
|
|
322
|
+
url
|
|
323
|
+
width
|
|
324
|
+
height
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
`;
|
|
315
328
|
exports.ArticleReferencesFragmentDoc = (0, graphql_tag_1.default) `
|
|
316
329
|
fragment ArticleReferences on Reference {
|
|
317
330
|
__typename
|
|
@@ -320,12 +333,14 @@ exports.ArticleReferencesFragmentDoc = (0, graphql_tag_1.default) `
|
|
|
320
333
|
...LayoutImage
|
|
321
334
|
...PullQuote
|
|
322
335
|
...Tweet
|
|
336
|
+
...Flourish
|
|
323
337
|
}
|
|
324
338
|
${exports.RecommendedFragmentDoc}
|
|
325
339
|
${exports.ImageSetFragmentDoc}
|
|
326
340
|
${exports.LayoutImageFragmentDoc}
|
|
327
341
|
${exports.PullQuoteFragmentDoc}
|
|
328
|
-
${exports.TweetFragmentDoc}
|
|
342
|
+
${exports.TweetFragmentDoc}
|
|
343
|
+
${exports.FlourishFragmentDoc}`;
|
|
329
344
|
exports.StructuredContentFragmentDoc = (0, graphql_tag_1.default) `
|
|
330
345
|
fragment StructuredContent on StructuredContent {
|
|
331
346
|
...StructuredTree
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":";;;;;;AAEA,8DAA8B;AAgB9B,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,kCAAmB,CAAA;IACnB,wCAAyB,CAAA;IACzB,wCAAyB,CAAA;AAC3B,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":";;;;;;AAEA,8DAA8B;AAgB9B,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,kCAAmB,CAAA;IACnB,wCAAyB,CAAA;IACzB,wCAAyB,CAAA;AAC3B,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;AAsND,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AAsKD,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,mCAAyB,CAAA;IACzB,6BAAmB,CAAA;AACrB,CAAC,EAHW,MAAM,GAAN,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,CAAC;AAND,wBAMC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/cp-content-pipeline-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@dotcom-tool-kit/npm": "^2.0.8",
|
|
13
|
-
"@financial-times/cp-content-pipeline-schema": "^0.3.
|
|
13
|
+
"@financial-times/cp-content-pipeline-schema": "^0.3.5",
|
|
14
14
|
"@graphql-codegen/typescript": "^2.7.3",
|
|
15
15
|
"@graphql-codegen/typescript-generic-sdk": "^3.0.1",
|
|
16
16
|
"@graphql-codegen/typescript-graphql-request": "^4.5.3",
|
package/queries/article.graphql
CHANGED
|
@@ -268,6 +268,18 @@ fragment Tweet on Tweet {
|
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
+
fragment Flourish on Flourish {
|
|
272
|
+
id
|
|
273
|
+
type
|
|
274
|
+
description
|
|
275
|
+
fullGrid
|
|
276
|
+
fallbackImage {
|
|
277
|
+
url
|
|
278
|
+
width
|
|
279
|
+
height
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
271
283
|
fragment ArticleReferences on Reference {
|
|
272
284
|
__typename
|
|
273
285
|
...Recommended
|
|
@@ -275,6 +287,7 @@ fragment ArticleReferences on Reference {
|
|
|
275
287
|
...LayoutImage
|
|
276
288
|
...PullQuote
|
|
277
289
|
...Tweet
|
|
290
|
+
...Flourish
|
|
278
291
|
}
|
|
279
292
|
|
|
280
293
|
fragment StructuredContent on StructuredContent {
|