@financial-times/cp-content-pipeline-client 0.5.4 → 0.5.5

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 CHANGED
@@ -84,6 +84,22 @@
84
84
  * devDependencies
85
85
  * @financial-times/cp-content-pipeline-schema bumped from ^0.6.3 to ^0.6.4
86
86
 
87
+ ## [0.5.5](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v0.5.4...cp-content-pipeline-client-v0.5.5) (2023-02-14)
88
+
89
+
90
+ ### Features
91
+
92
+ * add version to schema for easier debugging ([c4ca568](https://github.com/Financial-Times/cp-content-pipeline/commit/c4ca56810a75442efa120718381e1f80cd7799b9))
93
+ * adds ‘theme’ to Teaser & TopperWithPackage interface to Topper to create GQL query structure ([e7e3204](https://github.com/Financial-Times/cp-content-pipeline/commit/e7e3204ca749ba6312a04ac77b22fa64a82e9ce7))
94
+ * declare package theme types ([72b816c](https://github.com/Financial-Times/cp-content-pipeline/commit/72b816cf18542d82551f29e5a493b068fcfc337b))
95
+
96
+
97
+ ### Dependencies
98
+
99
+ * The following workspace dependencies were updated
100
+ * devDependencies
101
+ * @financial-times/cp-content-pipeline-schema bumped from ^0.6.4 to ^0.6.5
102
+
87
103
  ## [0.5.0](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-client-v0.4.0...cp-content-pipeline-client-v0.5.0) (2023-01-24)
88
104
 
89
105
 
@@ -140,6 +140,8 @@ export declare type ContentPackage = Content & {
140
140
  readonly bodyXML?: Maybe<Scalars['String']>;
141
141
  readonly byline?: Maybe<StructuredContent>;
142
142
  readonly commentsEnabled?: Maybe<Scalars['Boolean']>;
143
+ readonly contains?: Maybe<ReadonlyArray<Maybe<Teaser>>>;
144
+ readonly design?: Maybe<PackageDesign>;
143
145
  readonly firstPublishedDate: Scalars['String'];
144
146
  readonly id: Scalars['String'];
145
147
  readonly mainImage?: Maybe<Image>;
@@ -384,6 +386,7 @@ export declare type OpinionTopperHeadshotArgs = {
384
386
  dpr?: InputMaybe<Scalars['Int']>;
385
387
  width?: InputMaybe<Scalars['Int']>;
386
388
  };
389
+ export declare type PackageDesign = 'basic' | 'extra' | 'specialReport';
387
390
  export declare type Picture = {
388
391
  readonly alt: Scalars['String'];
389
392
  readonly caption?: Maybe<Scalars['String']>;
@@ -427,6 +430,7 @@ export declare type Query = {
427
430
  readonly __typename?: 'Query';
428
431
  readonly content: Content;
429
432
  readonly contentFromJSON: Content;
433
+ readonly version: Scalars['String'];
430
434
  };
431
435
  export declare type QueryContentArgs = {
432
436
  uuid: Scalars['String'];
@@ -454,10 +458,11 @@ export declare type RichText = {
454
458
  readonly structured: StructuredContent;
455
459
  };
456
460
  export declare type Source = 'standfirst' | 'summary';
457
- export declare type SplitTextTopper = Topper & TopperWithBrand & TopperWithImages & TopperWithTheme & {
461
+ export declare type SplitTextTopper = Topper & TopperWithBrand & TopperWithImages & TopperWithPackage & TopperWithTheme & {
458
462
  readonly __typename?: 'SplitTextTopper';
459
463
  readonly backgroundColour?: Maybe<TopperBackgroundColour>;
460
464
  readonly brandConcept?: Maybe<Concept>;
465
+ readonly design?: Maybe<Scalars['String']>;
461
466
  readonly displayConcept?: Maybe<Concept>;
462
467
  readonly fallbackImage?: Maybe<Image>;
463
468
  readonly headline: Scalars['String'];
@@ -482,6 +487,8 @@ export declare type Teaser = {
482
487
  readonly metaPrefixText?: Maybe<Scalars['String']>;
483
488
  readonly metaSuffixText?: Maybe<Scalars['String']>;
484
489
  readonly publishedDate?: Maybe<Scalars['String']>;
490
+ readonly standfirst?: Maybe<Scalars['String']>;
491
+ readonly theme?: Maybe<Scalars['String']>;
485
492
  readonly title?: Maybe<Scalars['String']>;
486
493
  readonly type?: Maybe<Scalars['String']>;
487
494
  readonly url: Scalars['String'];
@@ -510,6 +517,9 @@ export declare type TopperWithImages = {
510
517
  readonly fallbackImage?: Maybe<Image>;
511
518
  readonly images: ReadonlyArray<Image>;
512
519
  };
520
+ export declare type TopperWithPackage = {
521
+ readonly design?: Maybe<Scalars['String']>;
522
+ };
513
523
  export declare type TopperWithTheme = {
514
524
  readonly isLargeHeadline?: Maybe<Scalars['Boolean']>;
515
525
  readonly layout?: Maybe<Scalars['String']>;
@@ -567,6 +577,7 @@ export declare type TeaserFragment = {
567
577
  readonly firstPublishedDate?: string;
568
578
  readonly metaPrefixText?: string;
569
579
  readonly metaSuffixText?: string;
580
+ readonly theme?: string;
570
581
  readonly relativeUrl: string;
571
582
  readonly metaLink?: {
572
583
  readonly __typename?: 'Concept';
@@ -938,6 +949,7 @@ declare type Topper_SplitTextTopper_Fragment = {
938
949
  readonly __typename: 'SplitTextTopper';
939
950
  readonly isLargeHeadline?: boolean;
940
951
  readonly layout?: string;
952
+ readonly design?: string;
941
953
  readonly headline: string;
942
954
  readonly backgroundColour?: TopperBackgroundColour;
943
955
  readonly brandConcept?: {
@@ -2605,6 +2617,7 @@ export declare type RecommendedFragment = {
2605
2617
  readonly firstPublishedDate?: string;
2606
2618
  readonly metaPrefixText?: string;
2607
2619
  readonly metaSuffixText?: string;
2620
+ readonly theme?: string;
2608
2621
  readonly relativeUrl: string;
2609
2622
  readonly metaLink?: {
2610
2623
  readonly __typename?: 'Concept';
@@ -3880,6 +3893,7 @@ declare type ArticleReferences_Recommended_Fragment = {
3880
3893
  readonly firstPublishedDate?: string;
3881
3894
  readonly metaPrefixText?: string;
3882
3895
  readonly metaSuffixText?: string;
3896
+ readonly theme?: string;
3883
3897
  readonly relativeUrl: string;
3884
3898
  readonly metaLink?: {
3885
3899
  readonly __typename?: 'Concept';
@@ -5094,6 +5108,7 @@ export declare type StructuredContentFragment = {
5094
5108
  readonly firstPublishedDate?: string;
5095
5109
  readonly metaPrefixText?: string;
5096
5110
  readonly metaSuffixText?: string;
5111
+ readonly theme?: string;
5097
5112
  readonly relativeUrl: string;
5098
5113
  readonly metaLink?: {
5099
5114
  readonly __typename?: 'Concept';
@@ -5460,6 +5475,7 @@ declare type Content_Article_Fragment = {
5460
5475
  readonly __typename: 'SplitTextTopper';
5461
5476
  readonly isLargeHeadline?: boolean;
5462
5477
  readonly layout?: string;
5478
+ readonly design?: string;
5463
5479
  readonly headline: string;
5464
5480
  readonly backgroundColour?: TopperBackgroundColour;
5465
5481
  readonly brandConcept?: {
@@ -6783,6 +6799,7 @@ declare type Content_Article_Fragment = {
6783
6799
  readonly firstPublishedDate?: string;
6784
6800
  readonly metaPrefixText?: string;
6785
6801
  readonly metaSuffixText?: string;
6802
+ readonly theme?: string;
6786
6803
  readonly relativeUrl: string;
6787
6804
  readonly metaLink?: {
6788
6805
  readonly __typename?: 'Concept';
@@ -7166,6 +7183,7 @@ declare type Content_Audio_Fragment = {
7166
7183
  readonly __typename: 'SplitTextTopper';
7167
7184
  readonly isLargeHeadline?: boolean;
7168
7185
  readonly layout?: string;
7186
+ readonly design?: string;
7169
7187
  readonly headline: string;
7170
7188
  readonly backgroundColour?: TopperBackgroundColour;
7171
7189
  readonly brandConcept?: {
@@ -8489,6 +8507,7 @@ declare type Content_Audio_Fragment = {
8489
8507
  readonly firstPublishedDate?: string;
8490
8508
  readonly metaPrefixText?: string;
8491
8509
  readonly metaSuffixText?: string;
8510
+ readonly theme?: string;
8492
8511
  readonly relativeUrl: string;
8493
8512
  readonly metaLink?: {
8494
8513
  readonly __typename?: 'Concept';
@@ -8872,6 +8891,7 @@ declare type Content_ContentPackage_Fragment = {
8872
8891
  readonly __typename: 'SplitTextTopper';
8873
8892
  readonly isLargeHeadline?: boolean;
8874
8893
  readonly layout?: string;
8894
+ readonly design?: string;
8875
8895
  readonly headline: string;
8876
8896
  readonly backgroundColour?: TopperBackgroundColour;
8877
8897
  readonly brandConcept?: {
@@ -10195,6 +10215,7 @@ declare type Content_ContentPackage_Fragment = {
10195
10215
  readonly firstPublishedDate?: string;
10196
10216
  readonly metaPrefixText?: string;
10197
10217
  readonly metaSuffixText?: string;
10218
+ readonly theme?: string;
10198
10219
  readonly relativeUrl: string;
10199
10220
  readonly metaLink?: {
10200
10221
  readonly __typename?: 'Concept';
@@ -10578,6 +10599,7 @@ declare type Content_LiveBlogPackage_Fragment = {
10578
10599
  readonly __typename: 'SplitTextTopper';
10579
10600
  readonly isLargeHeadline?: boolean;
10580
10601
  readonly layout?: string;
10602
+ readonly design?: string;
10581
10603
  readonly headline: string;
10582
10604
  readonly backgroundColour?: TopperBackgroundColour;
10583
10605
  readonly brandConcept?: {
@@ -11901,6 +11923,7 @@ declare type Content_LiveBlogPackage_Fragment = {
11901
11923
  readonly firstPublishedDate?: string;
11902
11924
  readonly metaPrefixText?: string;
11903
11925
  readonly metaSuffixText?: string;
11926
+ readonly theme?: string;
11904
11927
  readonly relativeUrl: string;
11905
11928
  readonly metaLink?: {
11906
11929
  readonly __typename?: 'Concept';
@@ -12284,6 +12307,7 @@ declare type Content_LiveBlogPost_Fragment = {
12284
12307
  readonly __typename: 'SplitTextTopper';
12285
12308
  readonly isLargeHeadline?: boolean;
12286
12309
  readonly layout?: string;
12310
+ readonly design?: string;
12287
12311
  readonly headline: string;
12288
12312
  readonly backgroundColour?: TopperBackgroundColour;
12289
12313
  readonly brandConcept?: {
@@ -13607,6 +13631,7 @@ declare type Content_LiveBlogPost_Fragment = {
13607
13631
  readonly firstPublishedDate?: string;
13608
13632
  readonly metaPrefixText?: string;
13609
13633
  readonly metaSuffixText?: string;
13634
+ readonly theme?: string;
13610
13635
  readonly relativeUrl: string;
13611
13636
  readonly metaLink?: {
13612
13637
  readonly __typename?: 'Concept';
@@ -13990,6 +14015,7 @@ declare type Content_Video_Fragment = {
13990
14015
  readonly __typename: 'SplitTextTopper';
13991
14016
  readonly isLargeHeadline?: boolean;
13992
14017
  readonly layout?: string;
14018
+ readonly design?: string;
13993
14019
  readonly headline: string;
13994
14020
  readonly backgroundColour?: TopperBackgroundColour;
13995
14021
  readonly brandConcept?: {
@@ -15313,6 +15339,7 @@ declare type Content_Video_Fragment = {
15313
15339
  readonly firstPublishedDate?: string;
15314
15340
  readonly metaPrefixText?: string;
15315
15341
  readonly metaSuffixText?: string;
15342
+ readonly theme?: string;
15316
15343
  readonly relativeUrl: string;
15317
15344
  readonly metaLink?: {
15318
15345
  readonly __typename?: 'Concept';
@@ -15703,6 +15730,7 @@ export declare type ArticleQuery = {
15703
15730
  readonly __typename: 'SplitTextTopper';
15704
15731
  readonly isLargeHeadline?: boolean;
15705
15732
  readonly layout?: string;
15733
+ readonly design?: string;
15706
15734
  readonly headline: string;
15707
15735
  readonly backgroundColour?: TopperBackgroundColour;
15708
15736
  readonly brandConcept?: {
@@ -17026,6 +17054,7 @@ export declare type ArticleQuery = {
17026
17054
  readonly firstPublishedDate?: string;
17027
17055
  readonly metaPrefixText?: string;
17028
17056
  readonly metaSuffixText?: string;
17057
+ readonly theme?: string;
17029
17058
  readonly relativeUrl: string;
17030
17059
  readonly metaLink?: {
17031
17060
  readonly __typename?: 'Concept';
@@ -17408,6 +17437,7 @@ export declare type ArticleQuery = {
17408
17437
  readonly __typename: 'SplitTextTopper';
17409
17438
  readonly isLargeHeadline?: boolean;
17410
17439
  readonly layout?: string;
17440
+ readonly design?: string;
17411
17441
  readonly headline: string;
17412
17442
  readonly backgroundColour?: TopperBackgroundColour;
17413
17443
  readonly brandConcept?: {
@@ -18731,6 +18761,7 @@ export declare type ArticleQuery = {
18731
18761
  readonly firstPublishedDate?: string;
18732
18762
  readonly metaPrefixText?: string;
18733
18763
  readonly metaSuffixText?: string;
18764
+ readonly theme?: string;
18734
18765
  readonly relativeUrl: string;
18735
18766
  readonly metaLink?: {
18736
18767
  readonly __typename?: 'Concept';
@@ -18820,11 +18851,89 @@ export declare type ArticleQuery = {
18820
18851
  }>;
18821
18852
  } | {
18822
18853
  readonly __typename: 'ContentPackage';
18854
+ readonly design?: PackageDesign;
18823
18855
  readonly id: string;
18824
18856
  readonly title: string;
18825
18857
  readonly publishedDate: string;
18826
18858
  readonly commentsEnabled?: boolean;
18827
18859
  readonly url: string;
18860
+ readonly contains?: ReadonlyArray<{
18861
+ readonly __typename?: 'Teaser';
18862
+ readonly standfirst?: string;
18863
+ readonly title?: string;
18864
+ readonly id?: string;
18865
+ readonly url: string;
18866
+ readonly type?: string;
18867
+ readonly publishedDate?: string;
18868
+ readonly firstPublishedDate?: string;
18869
+ readonly metaPrefixText?: string;
18870
+ readonly metaSuffixText?: string;
18871
+ readonly theme?: string;
18872
+ readonly relativeUrl: string;
18873
+ readonly metaLink?: {
18874
+ readonly __typename?: 'Concept';
18875
+ readonly id: string;
18876
+ readonly prefLabel: string;
18877
+ readonly types: ReadonlyArray<string>;
18878
+ readonly type: string;
18879
+ readonly directType?: string;
18880
+ readonly predicate: string;
18881
+ readonly url: string;
18882
+ readonly relativeUrl: string;
18883
+ };
18884
+ readonly metaAltLink?: {
18885
+ readonly __typename?: 'Concept';
18886
+ readonly id: string;
18887
+ readonly prefLabel: string;
18888
+ readonly types: ReadonlyArray<string>;
18889
+ readonly type: string;
18890
+ readonly directType?: string;
18891
+ readonly predicate: string;
18892
+ readonly url: string;
18893
+ readonly relativeUrl: string;
18894
+ };
18895
+ readonly image?: {
18896
+ readonly __typename?: 'ImageDesktop';
18897
+ readonly url?: string;
18898
+ readonly width?: number;
18899
+ readonly height?: number;
18900
+ } | {
18901
+ readonly __typename?: 'ImageMobile';
18902
+ readonly url?: string;
18903
+ readonly width?: number;
18904
+ readonly height?: number;
18905
+ } | {
18906
+ readonly __typename?: 'ImageSquare';
18907
+ readonly url?: string;
18908
+ readonly width?: number;
18909
+ readonly height?: number;
18910
+ } | {
18911
+ readonly __typename?: 'ImageStandard';
18912
+ readonly url?: string;
18913
+ readonly width?: number;
18914
+ readonly height?: number;
18915
+ } | {
18916
+ readonly __typename?: 'ImageStandardInline';
18917
+ readonly url?: string;
18918
+ readonly width?: number;
18919
+ readonly height?: number;
18920
+ } | {
18921
+ readonly __typename?: 'ImageWide';
18922
+ readonly url?: string;
18923
+ readonly width?: number;
18924
+ readonly height?: number;
18925
+ };
18926
+ readonly indicators?: {
18927
+ readonly __typename?: 'Indicators';
18928
+ readonly accessLevel?: AccessLevel;
18929
+ readonly isOpinion?: boolean;
18930
+ readonly isColumn?: boolean;
18931
+ readonly isPodcast?: boolean;
18932
+ readonly isEditorsChoice?: boolean;
18933
+ readonly isExclusive?: boolean;
18934
+ readonly isScoop?: boolean;
18935
+ };
18936
+ }>;
18828
18937
  readonly topper?: {
18829
18938
  readonly __typename: 'BasicTopper';
18830
18939
  readonly headline: string;
@@ -19113,6 +19222,7 @@ export declare type ArticleQuery = {
19113
19222
  readonly __typename: 'SplitTextTopper';
19114
19223
  readonly isLargeHeadline?: boolean;
19115
19224
  readonly layout?: string;
19225
+ readonly design?: string;
19116
19226
  readonly headline: string;
19117
19227
  readonly backgroundColour?: TopperBackgroundColour;
19118
19228
  readonly brandConcept?: {
@@ -20436,6 +20546,7 @@ export declare type ArticleQuery = {
20436
20546
  readonly firstPublishedDate?: string;
20437
20547
  readonly metaPrefixText?: string;
20438
20548
  readonly metaSuffixText?: string;
20549
+ readonly theme?: string;
20439
20550
  readonly relativeUrl: string;
20440
20551
  readonly metaLink?: {
20441
20552
  readonly __typename?: 'Concept';
@@ -20826,6 +20937,7 @@ export declare type ArticleQuery = {
20826
20937
  readonly __typename: 'SplitTextTopper';
20827
20938
  readonly isLargeHeadline?: boolean;
20828
20939
  readonly layout?: string;
20940
+ readonly design?: string;
20829
20941
  readonly headline: string;
20830
20942
  readonly backgroundColour?: TopperBackgroundColour;
20831
20943
  readonly brandConcept?: {
@@ -22149,6 +22261,7 @@ export declare type ArticleQuery = {
22149
22261
  readonly firstPublishedDate?: string;
22150
22262
  readonly metaPrefixText?: string;
22151
22263
  readonly metaSuffixText?: string;
22264
+ readonly theme?: string;
22152
22265
  readonly relativeUrl: string;
22153
22266
  readonly metaLink?: {
22154
22267
  readonly __typename?: 'Concept';
@@ -22531,6 +22644,7 @@ export declare type ArticleQuery = {
22531
22644
  readonly __typename: 'SplitTextTopper';
22532
22645
  readonly isLargeHeadline?: boolean;
22533
22646
  readonly layout?: string;
22647
+ readonly design?: string;
22534
22648
  readonly headline: string;
22535
22649
  readonly backgroundColour?: TopperBackgroundColour;
22536
22650
  readonly brandConcept?: {
@@ -23854,6 +23968,7 @@ export declare type ArticleQuery = {
23854
23968
  readonly firstPublishedDate?: string;
23855
23969
  readonly metaPrefixText?: string;
23856
23970
  readonly metaSuffixText?: string;
23971
+ readonly theme?: string;
23857
23972
  readonly relativeUrl: string;
23858
23973
  readonly metaLink?: {
23859
23974
  readonly __typename?: 'Concept';
@@ -24236,6 +24351,7 @@ export declare type ArticleQuery = {
24236
24351
  readonly __typename: 'SplitTextTopper';
24237
24352
  readonly isLargeHeadline?: boolean;
24238
24353
  readonly layout?: string;
24354
+ readonly design?: string;
24239
24355
  readonly headline: string;
24240
24356
  readonly backgroundColour?: TopperBackgroundColour;
24241
24357
  readonly brandConcept?: {
@@ -25559,6 +25675,7 @@ export declare type ArticleQuery = {
25559
25675
  readonly firstPublishedDate?: string;
25560
25676
  readonly metaPrefixText?: string;
25561
25677
  readonly metaSuffixText?: string;
25678
+ readonly theme?: string;
25562
25679
  readonly relativeUrl: string;
25563
25680
  readonly metaLink?: {
25564
25681
  readonly __typename?: 'Concept';
@@ -25941,6 +26058,7 @@ export declare type ArticleQuery = {
25941
26058
  readonly __typename: 'SplitTextTopper';
25942
26059
  readonly isLargeHeadline?: boolean;
25943
26060
  readonly layout?: string;
26061
+ readonly design?: string;
25944
26062
  readonly headline: string;
25945
26063
  readonly backgroundColour?: TopperBackgroundColour;
25946
26064
  readonly brandConcept?: {
@@ -27264,6 +27382,7 @@ export declare type ArticleQuery = {
27264
27382
  readonly firstPublishedDate?: string;
27265
27383
  readonly metaPrefixText?: string;
27266
27384
  readonly metaSuffixText?: string;
27385
+ readonly theme?: string;
27267
27386
  readonly relativeUrl: string;
27268
27387
  readonly metaLink?: {
27269
27388
  readonly __typename?: 'Concept';
@@ -27646,6 +27765,7 @@ export declare type ArticleQuery = {
27646
27765
  readonly __typename: 'SplitTextTopper';
27647
27766
  readonly isLargeHeadline?: boolean;
27648
27767
  readonly layout?: string;
27768
+ readonly design?: string;
27649
27769
  readonly headline: string;
27650
27770
  readonly backgroundColour?: TopperBackgroundColour;
27651
27771
  readonly brandConcept?: {
@@ -28969,6 +29089,7 @@ export declare type ArticleQuery = {
28969
29089
  readonly firstPublishedDate?: string;
28970
29090
  readonly metaPrefixText?: string;
28971
29091
  readonly metaSuffixText?: string;
29092
+ readonly theme?: string;
28972
29093
  readonly relativeUrl: string;
28973
29094
  readonly metaLink?: {
28974
29095
  readonly __typename?: 'Concept';
@@ -29351,6 +29472,7 @@ export declare type ArticleQuery = {
29351
29472
  readonly __typename: 'SplitTextTopper';
29352
29473
  readonly isLargeHeadline?: boolean;
29353
29474
  readonly layout?: string;
29475
+ readonly design?: string;
29354
29476
  readonly headline: string;
29355
29477
  readonly backgroundColour?: TopperBackgroundColour;
29356
29478
  readonly brandConcept?: {
@@ -30674,6 +30796,7 @@ export declare type ArticleQuery = {
30674
30796
  readonly firstPublishedDate?: string;
30675
30797
  readonly metaPrefixText?: string;
30676
30798
  readonly metaSuffixText?: string;
30799
+ readonly theme?: string;
30677
30800
  readonly relativeUrl: string;
30678
30801
  readonly metaLink?: {
30679
30802
  readonly __typename?: 'Concept';
@@ -31050,6 +31173,7 @@ export declare type ArticleQuery = {
31050
31173
  readonly __typename: 'SplitTextTopper';
31051
31174
  readonly isLargeHeadline?: boolean;
31052
31175
  readonly layout?: string;
31176
+ readonly design?: string;
31053
31177
  readonly headline: string;
31054
31178
  readonly backgroundColour?: TopperBackgroundColour;
31055
31179
  readonly brandConcept?: {
@@ -32373,6 +32497,7 @@ export declare type ArticleQuery = {
32373
32497
  readonly firstPublishedDate?: string;
32374
32498
  readonly metaPrefixText?: string;
32375
32499
  readonly metaSuffixText?: string;
32500
+ readonly theme?: string;
32376
32501
  readonly relativeUrl: string;
32377
32502
  readonly metaLink?: {
32378
32503
  readonly __typename?: 'Concept';
@@ -32755,6 +32880,7 @@ export declare type ArticleQuery = {
32755
32880
  readonly __typename: 'SplitTextTopper';
32756
32881
  readonly isLargeHeadline?: boolean;
32757
32882
  readonly layout?: string;
32883
+ readonly design?: string;
32758
32884
  readonly headline: string;
32759
32885
  readonly backgroundColour?: TopperBackgroundColour;
32760
32886
  readonly brandConcept?: {
@@ -34078,6 +34204,7 @@ export declare type ArticleQuery = {
34078
34204
  readonly firstPublishedDate?: string;
34079
34205
  readonly metaPrefixText?: string;
34080
34206
  readonly metaSuffixText?: string;
34207
+ readonly theme?: string;
34081
34208
  readonly relativeUrl: string;
34082
34209
  readonly metaLink?: {
34083
34210
  readonly __typename?: 'Concept';
@@ -34460,6 +34587,7 @@ export declare type ArticleQuery = {
34460
34587
  readonly __typename: 'SplitTextTopper';
34461
34588
  readonly isLargeHeadline?: boolean;
34462
34589
  readonly layout?: string;
34590
+ readonly design?: string;
34463
34591
  readonly headline: string;
34464
34592
  readonly backgroundColour?: TopperBackgroundColour;
34465
34593
  readonly brandConcept?: {
@@ -35783,6 +35911,7 @@ export declare type ArticleQuery = {
35783
35911
  readonly firstPublishedDate?: string;
35784
35912
  readonly metaPrefixText?: string;
35785
35913
  readonly metaSuffixText?: string;
35914
+ readonly theme?: string;
35786
35915
  readonly relativeUrl: string;
35787
35916
  readonly metaLink?: {
35788
35917
  readonly __typename?: 'Concept';
@@ -118,6 +118,9 @@ exports.TopperFragmentDoc = (0, graphql_tag_1.default) `
118
118
  isLargeHeadline
119
119
  layout
120
120
  }
121
+ ... on TopperWithPackage {
122
+ design
123
+ }
121
124
  }
122
125
  ${exports.IntroFragmentDoc}
123
126
  ${exports.ConceptFragmentDoc}
@@ -154,6 +157,7 @@ exports.TeaserFragmentDoc = (0, graphql_tag_1.default) `
154
157
  isExclusive
155
158
  isScoop
156
159
  }
160
+ theme
157
161
  }
158
162
  ${exports.ConceptFragmentDoc}`;
159
163
  exports.RecommendedFragmentDoc = (0, graphql_tag_1.default) `
@@ -328,9 +332,17 @@ exports.ArticleDocument = (0, graphql_tag_1.default) `
328
332
  }
329
333
  realtime
330
334
  }
335
+ ... on ContentPackage {
336
+ contains {
337
+ ...Teaser
338
+ standfirst
339
+ }
340
+ design
341
+ }
331
342
  }
332
343
  }
333
- ${exports.ContentFragmentDoc}`;
344
+ ${exports.ContentFragmentDoc}
345
+ ${exports.TeaserFragmentDoc}`;
334
346
  const defaultWrapper = (action, _operationName, _operationType) => action();
335
347
  function getSdk(client, withWrapper = defaultWrapper) {
336
348
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":";;;;;;AAEA,8DAA8B;AA4uBjB,QAAA,yBAAyB,GAAG,IAAA,qBAAG,EAAA;;;;KAIvC,CAAC;AACO,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;MAO7B,iCAAyB,EAAE,CAAC;AACrB,QAAA,kBAAkB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;KAWhC,CAAC;AACO,QAAA,sBAAsB,GAAG,IAAA,qBAAG,EAAA;;;;;;KAMpC,CAAC;AACO,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;KAU9B,CAAC;AACO,QAAA,iBAAiB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuE9B,wBAAgB;EACpB,0BAAkB;EAClB,8BAAsB;EACtB,wBAAgB,EAAE,CAAC;AACR,QAAA,iBAAiB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgC9B,0BAAkB,EAAE,CAAC;AACd,QAAA,sBAAsB,GAAG,IAAA,qBAAG,EAAA;;;;;;MAMnC,yBAAiB,EAAE,CAAC;AACb,QAAA,kBAAkB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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G,qBAAqB,EAAC,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAC7K,CAAC;KACF,CAAC;AACJ,CAAC;AAND,wBAMC"}
@@ -1 +1 @@
1
- export declare const version = "0.6.4";
1
+ export declare const version = "0.6.5";
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // Generated by genversion.
5
- exports.version = '0.6.4';
5
+ exports.version = '0.6.5';
6
6
  //# sourceMappingURL=schema-version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/cp-content-pipeline-client",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
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.6.4",
13
+ "@financial-times/cp-content-pipeline-schema": "^0.6.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",
@@ -43,6 +43,7 @@ fragment Teaser on Teaser {
43
43
  isExclusive
44
44
  isScoop
45
45
  }
46
+ theme
46
47
  }
47
48
 
48
49
  fragment ImageSource on ImageSource {
@@ -133,6 +134,9 @@ fragment Topper on Topper {
133
134
  isLargeHeadline
134
135
  layout
135
136
  }
137
+ ... on TopperWithPackage {
138
+ design
139
+ }
136
140
  }
137
141
 
138
142
  fragment Image on Image {
@@ -298,5 +302,12 @@ query Article($uuid: String!, $useVanities: Boolean!) {
298
302
  }
299
303
  realtime
300
304
  }
305
+ ... on ContentPackage {
306
+ contains {
307
+ ...Teaser
308
+ standfirst
309
+ }
310
+ design
311
+ }
301
312
  }
302
313
  }