@financial-times/cp-content-pipeline-schema 2.9.2 → 2.10.1

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.
Files changed (77) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/lib/datasources/capi.d.ts +1 -0
  3. package/lib/datasources/capi.js +10 -0
  4. package/lib/datasources/capi.js.map +1 -1
  5. package/lib/generated/index.d.ts +87 -2
  6. package/lib/model/CapiResponse.d.ts +6 -0
  7. package/lib/model/CapiResponse.js +5 -0
  8. package/lib/model/CapiResponse.js.map +1 -1
  9. package/lib/model/FlourishSource.d.ts +22 -0
  10. package/lib/model/FlourishSource.js +89 -0
  11. package/lib/model/FlourishSource.js.map +1 -0
  12. package/lib/model/FlourishSource.test.d.ts +1 -0
  13. package/lib/model/FlourishSource.test.js +67 -0
  14. package/lib/model/FlourishSource.test.js.map +1 -0
  15. package/lib/model/LeadFlourish.d.ts +13 -0
  16. package/lib/model/LeadFlourish.js +35 -0
  17. package/lib/model/LeadFlourish.js.map +1 -0
  18. package/lib/model/LeadFlourish.test.d.ts +1 -0
  19. package/lib/model/LeadFlourish.test.js +62 -0
  20. package/lib/model/LeadFlourish.test.js.map +1 -0
  21. package/lib/model/Topper.d.ts +4 -1
  22. package/lib/model/Topper.js +15 -0
  23. package/lib/model/Topper.js.map +1 -1
  24. package/lib/model/Topper.test.js +21 -0
  25. package/lib/model/Topper.test.js.map +1 -1
  26. package/lib/model/schemas/capi/article.d.ts +153 -60
  27. package/lib/model/schemas/capi/article.js +1 -0
  28. package/lib/model/schemas/capi/article.js.map +1 -1
  29. package/lib/model/schemas/capi/audio.d.ts +1111 -119
  30. package/lib/model/schemas/capi/base-schema.d.ts +166 -99
  31. package/lib/model/schemas/capi/base-schema.js +8 -1
  32. package/lib/model/schemas/capi/base-schema.js.map +1 -1
  33. package/lib/model/schemas/capi/content-package.d.ts +836 -46
  34. package/lib/model/schemas/capi/content-package.js +1 -1
  35. package/lib/model/schemas/capi/content-package.js.map +1 -1
  36. package/lib/model/schemas/capi/live-blog-package.d.ts +230 -65
  37. package/lib/model/schemas/capi/live-blog-package.js +0 -1
  38. package/lib/model/schemas/capi/live-blog-package.js.map +1 -1
  39. package/lib/model/schemas/capi/placeholder.d.ts +143 -60
  40. package/lib/resolvers/content-tree/references/Flourish.d.ts +8 -2
  41. package/lib/resolvers/content-tree/references/Flourish.js +15 -40
  42. package/lib/resolvers/content-tree/references/Flourish.js.map +1 -1
  43. package/lib/resolvers/content-tree/references/Flourish.test.js +0 -30
  44. package/lib/resolvers/content-tree/references/Flourish.test.js.map +1 -1
  45. package/lib/resolvers/index.d.ts +36 -9
  46. package/lib/resolvers/index.js +2 -0
  47. package/lib/resolvers/index.js.map +1 -1
  48. package/lib/resolvers/leadFlourish.d.ts +16 -0
  49. package/lib/resolvers/leadFlourish.js +28 -0
  50. package/lib/resolvers/leadFlourish.js.map +1 -0
  51. package/lib/resolvers/topper.d.ts +23 -9
  52. package/lib/resolvers/topper.js +6 -0
  53. package/lib/resolvers/topper.js.map +1 -1
  54. package/package.json +1 -1
  55. package/queries/article.graphql +26 -0
  56. package/src/datasources/capi.ts +14 -0
  57. package/src/generated/index.ts +93 -2
  58. package/src/model/CapiResponse.ts +6 -0
  59. package/src/model/FlourishSource.test.ts +93 -0
  60. package/src/model/FlourishSource.ts +103 -0
  61. package/src/model/LeadFlourish.test.ts +71 -0
  62. package/src/model/LeadFlourish.ts +30 -0
  63. package/src/model/Topper.test.ts +26 -0
  64. package/src/model/Topper.ts +18 -0
  65. package/src/model/schemas/capi/article.ts +1 -0
  66. package/src/model/schemas/capi/base-schema.ts +8 -0
  67. package/src/model/schemas/capi/content-package.ts +1 -1
  68. package/src/model/schemas/capi/live-blog-package.ts +0 -1
  69. package/src/resolvers/content-tree/references/Flourish.test.ts +2 -49
  70. package/src/resolvers/content-tree/references/Flourish.ts +15 -59
  71. package/src/resolvers/index.ts +2 -0
  72. package/src/resolvers/leadFlourish.ts +31 -0
  73. package/src/resolvers/topper.ts +10 -0
  74. package/src/types/internal-content.d.ts +2 -0
  75. package/tsconfig.tsbuildinfo +1 -1
  76. package/typedefs/leadFlouish.graphql +29 -0
  77. package/typedefs/topper.graphql +35 -0
@@ -1,11 +1,50 @@
1
- export declare const articleSchema: import("zod").ZodObject<{
2
- id: import("zod").ZodString;
3
- type: import("zod").ZodOptional<import("zod").ZodString>;
4
- types: import("zod").ZodArray<import("zod").ZodString, "many">;
5
- standfirst: import("zod").ZodOptional<import("zod").ZodString>;
1
+ export declare const articleSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<Pick<{
6
2
  title: import("zod").ZodString;
7
- publishedDate: import("zod").ZodString;
8
- annotations: import("zod").ZodArray<import("zod").ZodObject<{
3
+ standfirst: import("zod").ZodOptional<import("zod").ZodString>;
4
+ byline: import("zod").ZodOptional<import("zod").ZodString>;
5
+ bodyXML: import("zod").ZodString;
6
+ summary: import("zod").ZodObject<{
7
+ bodyXML: import("zod").ZodString;
8
+ }, "strip", import("zod").ZodTypeAny, {
9
+ bodyXML: string;
10
+ }, {
11
+ bodyXML: string;
12
+ }>;
13
+ alternativeTitles: import("zod").ZodOptional<import("zod").ZodObject<{
14
+ promotionalTitle: import("zod").ZodString;
15
+ }, "strip", import("zod").ZodTypeAny, {
16
+ promotionalTitle: string;
17
+ }, {
18
+ promotionalTitle: string;
19
+ }>>;
20
+ alternativeStandfirsts: import("zod").ZodOptional<import("zod").ZodObject<{
21
+ promotionalStandfirst: import("zod").ZodOptional<import("zod").ZodString>;
22
+ }, "strip", import("zod").ZodTypeAny, {
23
+ promotionalStandfirst?: string | undefined;
24
+ }, {
25
+ promotionalStandfirst?: string | undefined;
26
+ }>>;
27
+ pinnedPosts: import("zod").ZodArray<import("zod").ZodString, "many">;
28
+ contains: import("zod").ZodArray<import("zod").ZodObject<{
29
+ id: import("zod").ZodString;
30
+ apiUrl: import("zod").ZodString;
31
+ }, "strip", import("zod").ZodTypeAny, {
32
+ id: string;
33
+ apiUrl: string;
34
+ }, {
35
+ id: string;
36
+ apiUrl: string;
37
+ }>, "many">;
38
+ design: import("zod").ZodObject<{
39
+ theme: import("zod").ZodUnion<[import("zod").ZodLiteral<"special-report">, import("zod").ZodLiteral<"extra">, import("zod").ZodLiteral<"basic">, import("zod").ZodLiteral<"extra-wide">]>;
40
+ }, "strip", import("zod").ZodTypeAny, {
41
+ theme: "special-report" | "extra" | "basic" | "extra-wide";
42
+ }, {
43
+ theme: "special-report" | "extra" | "basic" | "extra-wide";
44
+ }>;
45
+ }, "standfirst" | "title" | "byline" | "bodyXML" | "alternativeTitles" | "alternativeStandfirsts">, Pick<{
46
+ id: import("zod").ZodString;
47
+ annotations: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
9
48
  id: import("zod").ZodString;
10
49
  apiUrl: import("zod").ZodString;
11
50
  directType: import("zod").ZodString;
@@ -13,8 +52,9 @@ export declare const articleSchema: import("zod").ZodObject<{
13
52
  type: import("zod").ZodOptional<import("zod").ZodString>;
14
53
  types: import("zod").ZodArray<import("zod").ZodString, "many">;
15
54
  headshot: import("zod").ZodOptional<import("zod").ZodString>;
55
+ }, {
16
56
  predicate: import("zod").ZodString;
17
- }, "strip", import("zod").ZodTypeAny, {
57
+ }>, "strip", import("zod").ZodTypeAny, {
18
58
  id: string;
19
59
  apiUrl: string;
20
60
  directType: string;
@@ -35,6 +75,8 @@ export declare const articleSchema: import("zod").ZodObject<{
35
75
  }>, "many">;
36
76
  webUrl: import("zod").ZodOptional<import("zod").ZodString>;
37
77
  canonicalWebUrl: import("zod").ZodOptional<import("zod").ZodString>;
78
+ type: import("zod").ZodOptional<import("zod").ZodString>;
79
+ types: import("zod").ZodArray<import("zod").ZodString, "many">;
38
80
  standout: import("zod").ZodOptional<import("zod").ZodObject<{
39
81
  editorsChoice: import("zod").ZodBoolean;
40
82
  exclusive: import("zod").ZodBoolean;
@@ -48,7 +90,9 @@ export declare const articleSchema: import("zod").ZodObject<{
48
90
  exclusive: boolean;
49
91
  scoop: boolean;
50
92
  }>>;
93
+ publishedDate: import("zod").ZodString;
51
94
  firstPublishedDate: import("zod").ZodString;
95
+ realtime: import("zod").ZodBoolean;
52
96
  editorialDesk: import("zod").ZodOptional<import("zod").ZodString>;
53
97
  accessLevel: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"premium">, import("zod").ZodLiteral<"subscribed">, import("zod").ZodLiteral<"registered">, import("zod").ZodLiteral<"free">]>>;
54
98
  canBeSyndicated: import("zod").ZodUnion<[import("zod").ZodLiteral<"yes">, import("zod").ZodLiteral<"no">, import("zod").ZodLiteral<"verify">, import("zod").ZodLiteral<"withContributorPayment">, import("zod").ZodLiteral<"unknown">]>;
@@ -60,6 +104,7 @@ export declare const articleSchema: import("zod").ZodObject<{
60
104
  backgroundBox: import("zod").ZodOptional<import("zod").ZodBoolean>;
61
105
  textShadow: import("zod").ZodOptional<import("zod").ZodBoolean>;
62
106
  layout: import("zod").ZodString;
107
+ layoutWidth: import("zod").ZodOptional<import("zod").ZodString>;
63
108
  }, "strip", import("zod").ZodTypeAny, {
64
109
  backgroundColour: string;
65
110
  layout: string;
@@ -67,6 +112,7 @@ export declare const articleSchema: import("zod").ZodObject<{
67
112
  standfirst?: string | undefined;
68
113
  backgroundBox?: boolean | undefined;
69
114
  textShadow?: boolean | undefined;
115
+ layoutWidth?: string | undefined;
70
116
  }, {
71
117
  backgroundColour: string;
72
118
  layout: string;
@@ -74,6 +120,7 @@ export declare const articleSchema: import("zod").ZodObject<{
74
120
  standfirst?: string | undefined;
75
121
  backgroundBox?: boolean | undefined;
76
122
  textShadow?: boolean | undefined;
123
+ layoutWidth?: string | undefined;
77
124
  }>>;
78
125
  comments: import("zod").ZodOptional<import("zod").ZodObject<{
79
126
  enabled: import("zod").ZodBoolean;
@@ -92,22 +139,17 @@ export declare const articleSchema: import("zod").ZodObject<{
92
139
  id: string;
93
140
  apiUrl: string;
94
141
  }>, "many">>;
95
- byline: import("zod").ZodOptional<import("zod").ZodString>;
96
- bodyXML: import("zod").ZodString;
97
- alternativeTitles: import("zod").ZodOptional<import("zod").ZodObject<{
98
- promotionalTitle: import("zod").ZodString;
142
+ tableOfContents: import("zod").ZodOptional<import("zod").ZodObject<{
143
+ labelType: import("zod").ZodString;
144
+ sequence: import("zod").ZodString;
99
145
  }, "strip", import("zod").ZodTypeAny, {
100
- promotionalTitle: string;
146
+ labelType: string;
147
+ sequence: string;
101
148
  }, {
102
- promotionalTitle: string;
103
- }>>;
104
- alternativeStandfirsts: import("zod").ZodOptional<import("zod").ZodObject<{
105
- promotionalStandfirst: import("zod").ZodOptional<import("zod").ZodString>;
106
- }, "strip", import("zod").ZodTypeAny, {
107
- promotionalStandfirst?: string | undefined;
108
- }, {
109
- promotionalStandfirst?: string | undefined;
149
+ labelType: string;
150
+ sequence: string;
110
151
  }>>;
152
+ }, "id" | "type" | "types" | "publishedDate" | "annotations" | "webUrl" | "canonicalWebUrl" | "standout" | "firstPublishedDate" | "editorialDesk" | "accessLevel" | "canBeSyndicated" | "canBeDistributed" | "topper" | "comments" | "containedIn">>, Pick<{
111
153
  mainImage: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
112
154
  id: import("zod").ZodString;
113
155
  type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/ImageSet">;
@@ -158,8 +200,9 @@ export declare const articleSchema: import("zod").ZodObject<{
158
200
  maxDisplayWidth?: string | undefined;
159
201
  pixelWidth?: number | undefined;
160
202
  pixelHeight?: number | undefined;
161
- }>, import("zod").ZodObject<{
203
+ }>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
162
204
  id: import("zod").ZodString;
205
+ type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
163
206
  format: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"standardInline">, import("zod").ZodLiteral<"mobile">, import("zod").ZodLiteral<"desktop">, import("zod").ZodLiteral<"standard">, import("zod").ZodLiteral<"square">, import("zod").ZodLiteral<"ftEditSquare">, import("zod").ZodLiteral<"wide">, import("zod").ZodLiteral<"portrait">, import("zod").ZodLiteral<"landscape">]>>;
164
207
  title: import("zod").ZodOptional<import("zod").ZodString>;
165
208
  description: import("zod").ZodOptional<import("zod").ZodString>;
@@ -175,8 +218,9 @@ export declare const articleSchema: import("zod").ZodObject<{
175
218
  maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
176
219
  pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
177
220
  pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
221
+ }, {
178
222
  type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
179
- }, "strip", import("zod").ZodTypeAny, {
223
+ }>, "strip", import("zod").ZodTypeAny, {
180
224
  id: string;
181
225
  type: "http://www.ft.com/ontology/content/Graphic";
182
226
  binaryUrl: string;
@@ -317,8 +361,9 @@ export declare const articleSchema: import("zod").ZodObject<{
317
361
  maxDisplayWidth?: string | undefined;
318
362
  pixelWidth?: number | undefined;
319
363
  pixelHeight?: number | undefined;
320
- }>, import("zod").ZodObject<{
364
+ }>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
321
365
  id: import("zod").ZodString;
366
+ type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
322
367
  format: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"standardInline">, import("zod").ZodLiteral<"mobile">, import("zod").ZodLiteral<"desktop">, import("zod").ZodLiteral<"standard">, import("zod").ZodLiteral<"square">, import("zod").ZodLiteral<"ftEditSquare">, import("zod").ZodLiteral<"wide">, import("zod").ZodLiteral<"portrait">, import("zod").ZodLiteral<"landscape">]>>;
323
368
  title: import("zod").ZodOptional<import("zod").ZodString>;
324
369
  description: import("zod").ZodOptional<import("zod").ZodString>;
@@ -334,8 +379,9 @@ export declare const articleSchema: import("zod").ZodObject<{
334
379
  maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
335
380
  pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
336
381
  pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
382
+ }, {
337
383
  type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
338
- }, "strip", import("zod").ZodTypeAny, {
384
+ }>, "strip", import("zod").ZodTypeAny, {
339
385
  id: string;
340
386
  type: "http://www.ft.com/ontology/content/Graphic";
341
387
  binaryUrl: string;
@@ -413,8 +459,9 @@ export declare const articleSchema: import("zod").ZodObject<{
413
459
  maxDisplayWidth?: string | undefined;
414
460
  pixelWidth?: number | undefined;
415
461
  pixelHeight?: number | undefined;
416
- }>, import("zod").ZodObject<{
462
+ }>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
417
463
  id: import("zod").ZodString;
464
+ type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
418
465
  format: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"standardInline">, import("zod").ZodLiteral<"mobile">, import("zod").ZodLiteral<"desktop">, import("zod").ZodLiteral<"standard">, import("zod").ZodLiteral<"square">, import("zod").ZodLiteral<"ftEditSquare">, import("zod").ZodLiteral<"wide">, import("zod").ZodLiteral<"portrait">, import("zod").ZodLiteral<"landscape">]>>;
419
466
  title: import("zod").ZodOptional<import("zod").ZodString>;
420
467
  description: import("zod").ZodOptional<import("zod").ZodString>;
@@ -430,8 +477,9 @@ export declare const articleSchema: import("zod").ZodObject<{
430
477
  maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
431
478
  pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
432
479
  pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
480
+ }, {
433
481
  type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
434
- }, "strip", import("zod").ZodTypeAny, {
482
+ }>, "strip", import("zod").ZodTypeAny, {
435
483
  id: string;
436
484
  type: "http://www.ft.com/ontology/content/Graphic";
437
485
  binaryUrl: string;
@@ -606,6 +654,19 @@ export declare const articleSchema: import("zod").ZodObject<{
606
654
  pixelHeight?: number | undefined;
607
655
  };
608
656
  }>>;
657
+ leadFlourish: import("zod").ZodOptional<import("zod").ZodObject<{
658
+ id: import("zod").ZodString;
659
+ type: import("zod").ZodString;
660
+ description: import("zod").ZodString;
661
+ }, "strip", import("zod").ZodTypeAny, {
662
+ id: string;
663
+ type: string;
664
+ description: string;
665
+ }, {
666
+ id: string;
667
+ type: string;
668
+ description: string;
669
+ }>>;
609
670
  embeds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
610
671
  id: import("zod").ZodString;
611
672
  type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/ImageSet">;
@@ -656,8 +717,9 @@ export declare const articleSchema: import("zod").ZodObject<{
656
717
  maxDisplayWidth?: string | undefined;
657
718
  pixelWidth?: number | undefined;
658
719
  pixelHeight?: number | undefined;
659
- }>, import("zod").ZodObject<{
720
+ }>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
660
721
  id: import("zod").ZodString;
722
+ type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
661
723
  format: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"standardInline">, import("zod").ZodLiteral<"mobile">, import("zod").ZodLiteral<"desktop">, import("zod").ZodLiteral<"standard">, import("zod").ZodLiteral<"square">, import("zod").ZodLiteral<"ftEditSquare">, import("zod").ZodLiteral<"wide">, import("zod").ZodLiteral<"portrait">, import("zod").ZodLiteral<"landscape">]>>;
662
724
  title: import("zod").ZodOptional<import("zod").ZodString>;
663
725
  description: import("zod").ZodOptional<import("zod").ZodString>;
@@ -673,8 +735,9 @@ export declare const articleSchema: import("zod").ZodObject<{
673
735
  maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
674
736
  pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
675
737
  pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
738
+ }, {
676
739
  type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
677
- }, "strip", import("zod").ZodTypeAny, {
740
+ }>, "strip", import("zod").ZodTypeAny, {
678
741
  id: string;
679
742
  type: "http://www.ft.com/ontology/content/Graphic";
680
743
  binaryUrl: string;
@@ -785,20 +848,20 @@ export declare const articleSchema: import("zod").ZodObject<{
785
848
  pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
786
849
  videoCodec: import("zod").ZodOptional<import("zod").ZodString>;
787
850
  }, "strip", import("zod").ZodTypeAny, {
788
- audioCodec?: string | undefined;
789
851
  binaryUrl?: string | undefined;
852
+ pixelWidth?: number | undefined;
853
+ pixelHeight?: number | undefined;
854
+ audioCodec?: string | undefined;
790
855
  duration?: number | undefined;
791
856
  mediaType?: string | undefined;
792
- pixelHeight?: number | undefined;
793
- pixelWidth?: number | undefined;
794
857
  videoCodec?: string | undefined;
795
858
  }, {
796
- audioCodec?: string | undefined;
797
859
  binaryUrl?: string | undefined;
860
+ pixelWidth?: number | undefined;
861
+ pixelHeight?: number | undefined;
862
+ audioCodec?: string | undefined;
798
863
  duration?: number | undefined;
799
864
  mediaType?: string | undefined;
800
- pixelHeight?: number | undefined;
801
- pixelWidth?: number | undefined;
802
865
  videoCodec?: string | undefined;
803
866
  }>, "many">;
804
867
  poster: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -851,8 +914,9 @@ export declare const articleSchema: import("zod").ZodObject<{
851
914
  maxDisplayWidth?: string | undefined;
852
915
  pixelWidth?: number | undefined;
853
916
  pixelHeight?: number | undefined;
854
- }>, import("zod").ZodObject<{
917
+ }>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
855
918
  id: import("zod").ZodString;
919
+ type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
856
920
  format: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"standardInline">, import("zod").ZodLiteral<"mobile">, import("zod").ZodLiteral<"desktop">, import("zod").ZodLiteral<"standard">, import("zod").ZodLiteral<"square">, import("zod").ZodLiteral<"ftEditSquare">, import("zod").ZodLiteral<"wide">, import("zod").ZodLiteral<"portrait">, import("zod").ZodLiteral<"landscape">]>>;
857
921
  title: import("zod").ZodOptional<import("zod").ZodString>;
858
922
  description: import("zod").ZodOptional<import("zod").ZodString>;
@@ -868,8 +932,9 @@ export declare const articleSchema: import("zod").ZodObject<{
868
932
  maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
869
933
  pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
870
934
  pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
935
+ }, {
871
936
  type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
872
- }, "strip", import("zod").ZodTypeAny, {
937
+ }>, "strip", import("zod").ZodTypeAny, {
873
938
  id: string;
874
939
  type: "http://www.ft.com/ontology/content/Graphic";
875
940
  binaryUrl: string;
@@ -969,12 +1034,12 @@ export declare const articleSchema: import("zod").ZodObject<{
969
1034
  id: string;
970
1035
  type: "http://www.ft.com/ontology/content/Clip";
971
1036
  dataSource: {
972
- audioCodec?: string | undefined;
973
1037
  binaryUrl?: string | undefined;
1038
+ pixelWidth?: number | undefined;
1039
+ pixelHeight?: number | undefined;
1040
+ audioCodec?: string | undefined;
974
1041
  duration?: number | undefined;
975
1042
  mediaType?: string | undefined;
976
- pixelHeight?: number | undefined;
977
- pixelWidth?: number | undefined;
978
1043
  videoCodec?: string | undefined;
979
1044
  }[];
980
1045
  format?: "standardInline" | "mobile" | undefined;
@@ -1016,12 +1081,12 @@ export declare const articleSchema: import("zod").ZodObject<{
1016
1081
  id: string;
1017
1082
  type: "http://www.ft.com/ontology/content/Clip";
1018
1083
  dataSource: {
1019
- audioCodec?: string | undefined;
1020
1084
  binaryUrl?: string | undefined;
1085
+ pixelWidth?: number | undefined;
1086
+ pixelHeight?: number | undefined;
1087
+ audioCodec?: string | undefined;
1021
1088
  duration?: number | undefined;
1022
1089
  mediaType?: string | undefined;
1023
- pixelHeight?: number | undefined;
1024
- pixelWidth?: number | undefined;
1025
1090
  videoCodec?: string | undefined;
1026
1091
  }[];
1027
1092
  format?: "standardInline" | "mobile" | undefined;
@@ -1101,12 +1166,12 @@ export declare const articleSchema: import("zod").ZodObject<{
1101
1166
  id: string;
1102
1167
  type: "http://www.ft.com/ontology/content/Clip";
1103
1168
  dataSource: {
1104
- audioCodec?: string | undefined;
1105
1169
  binaryUrl?: string | undefined;
1170
+ pixelWidth?: number | undefined;
1171
+ pixelHeight?: number | undefined;
1172
+ audioCodec?: string | undefined;
1106
1173
  duration?: number | undefined;
1107
1174
  mediaType?: string | undefined;
1108
- pixelHeight?: number | undefined;
1109
- pixelWidth?: number | undefined;
1110
1175
  videoCodec?: string | undefined;
1111
1176
  }[];
1112
1177
  format?: "standardInline" | "mobile" | undefined;
@@ -1145,9 +1210,9 @@ export declare const articleSchema: import("zod").ZodObject<{
1145
1210
  description?: string | undefined;
1146
1211
  } | undefined;
1147
1212
  }[];
1213
+ description?: string | undefined;
1148
1214
  caption?: string | undefined;
1149
1215
  dataCopyright?: string | undefined;
1150
- description?: string | undefined;
1151
1216
  displayTitle?: string | undefined;
1152
1217
  contentWarning?: string[] | undefined;
1153
1218
  noAudio?: boolean | undefined;
@@ -1168,12 +1233,12 @@ export declare const articleSchema: import("zod").ZodObject<{
1168
1233
  id: string;
1169
1234
  type: "http://www.ft.com/ontology/content/Clip";
1170
1235
  dataSource: {
1171
- audioCodec?: string | undefined;
1172
1236
  binaryUrl?: string | undefined;
1237
+ pixelWidth?: number | undefined;
1238
+ pixelHeight?: number | undefined;
1239
+ audioCodec?: string | undefined;
1173
1240
  duration?: number | undefined;
1174
1241
  mediaType?: string | undefined;
1175
- pixelHeight?: number | undefined;
1176
- pixelWidth?: number | undefined;
1177
1242
  videoCodec?: string | undefined;
1178
1243
  }[];
1179
1244
  format?: "standardInline" | "mobile" | undefined;
@@ -1212,9 +1277,9 @@ export declare const articleSchema: import("zod").ZodObject<{
1212
1277
  description?: string | undefined;
1213
1278
  } | undefined;
1214
1279
  }[];
1280
+ description?: string | undefined;
1215
1281
  caption?: string | undefined;
1216
1282
  dataCopyright?: string | undefined;
1217
- description?: string | undefined;
1218
1283
  displayTitle?: string | undefined;
1219
1284
  contentWarning?: string[] | undefined;
1220
1285
  noAudio?: boolean | undefined;
@@ -1229,7 +1294,23 @@ export declare const articleSchema: import("zod").ZodObject<{
1229
1294
  transcript?: string | undefined;
1230
1295
  } | undefined;
1231
1296
  }>]>, "many">>;
1232
- }, "strip", import("zod").ZodTypeAny, {
1297
+ dataSource: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1298
+ binaryUrl: import("zod").ZodString;
1299
+ duration: import("zod").ZodNumber;
1300
+ filesize: import("zod").ZodNumber;
1301
+ mediaType: import("zod").ZodString;
1302
+ }, "strip", import("zod").ZodTypeAny, {
1303
+ binaryUrl: string;
1304
+ duration: number;
1305
+ mediaType: string;
1306
+ filesize: number;
1307
+ }, {
1308
+ binaryUrl: string;
1309
+ duration: number;
1310
+ mediaType: string;
1311
+ filesize: number;
1312
+ }>, "many">>;
1313
+ }, "mainImage" | "leadImages" | "alternativeImages" | "leadFlourish" | "embeds">>, "strip", import("zod").ZodTypeAny, {
1233
1314
  id: string;
1234
1315
  types: string[];
1235
1316
  title: string;
@@ -1266,6 +1347,7 @@ export declare const articleSchema: import("zod").ZodObject<{
1266
1347
  standfirst?: string | undefined;
1267
1348
  backgroundBox?: boolean | undefined;
1268
1349
  textShadow?: boolean | undefined;
1350
+ layoutWidth?: string | undefined;
1269
1351
  } | undefined;
1270
1352
  comments?: {
1271
1353
  enabled: boolean;
@@ -1393,6 +1475,11 @@ export declare const articleSchema: import("zod").ZodObject<{
1393
1475
  pixelHeight?: number | undefined;
1394
1476
  };
1395
1477
  } | undefined;
1478
+ leadFlourish?: {
1479
+ id: string;
1480
+ type: string;
1481
+ description: string;
1482
+ } | undefined;
1396
1483
  embeds?: ({
1397
1484
  id: string;
1398
1485
  type: "http://www.ft.com/ontology/content/ImageSet";
@@ -1433,12 +1520,12 @@ export declare const articleSchema: import("zod").ZodObject<{
1433
1520
  id: string;
1434
1521
  type: "http://www.ft.com/ontology/content/Clip";
1435
1522
  dataSource: {
1436
- audioCodec?: string | undefined;
1437
1523
  binaryUrl?: string | undefined;
1524
+ pixelWidth?: number | undefined;
1525
+ pixelHeight?: number | undefined;
1526
+ audioCodec?: string | undefined;
1438
1527
  duration?: number | undefined;
1439
1528
  mediaType?: string | undefined;
1440
- pixelHeight?: number | undefined;
1441
- pixelWidth?: number | undefined;
1442
1529
  videoCodec?: string | undefined;
1443
1530
  }[];
1444
1531
  format?: "standardInline" | "mobile" | undefined;
@@ -1477,9 +1564,9 @@ export declare const articleSchema: import("zod").ZodObject<{
1477
1564
  description?: string | undefined;
1478
1565
  } | undefined;
1479
1566
  }[];
1567
+ description?: string | undefined;
1480
1568
  caption?: string | undefined;
1481
1569
  dataCopyright?: string | undefined;
1482
- description?: string | undefined;
1483
1570
  displayTitle?: string | undefined;
1484
1571
  contentWarning?: string[] | undefined;
1485
1572
  noAudio?: boolean | undefined;
@@ -1531,6 +1618,7 @@ export declare const articleSchema: import("zod").ZodObject<{
1531
1618
  standfirst?: string | undefined;
1532
1619
  backgroundBox?: boolean | undefined;
1533
1620
  textShadow?: boolean | undefined;
1621
+ layoutWidth?: string | undefined;
1534
1622
  } | undefined;
1535
1623
  comments?: {
1536
1624
  enabled: boolean;
@@ -1658,6 +1746,11 @@ export declare const articleSchema: import("zod").ZodObject<{
1658
1746
  pixelHeight?: number | undefined;
1659
1747
  };
1660
1748
  } | undefined;
1749
+ leadFlourish?: {
1750
+ id: string;
1751
+ type: string;
1752
+ description: string;
1753
+ } | undefined;
1661
1754
  embeds?: ({
1662
1755
  id: string;
1663
1756
  type: "http://www.ft.com/ontology/content/ImageSet";
@@ -1698,12 +1791,12 @@ export declare const articleSchema: import("zod").ZodObject<{
1698
1791
  id: string;
1699
1792
  type: "http://www.ft.com/ontology/content/Clip";
1700
1793
  dataSource: {
1701
- audioCodec?: string | undefined;
1702
1794
  binaryUrl?: string | undefined;
1795
+ pixelWidth?: number | undefined;
1796
+ pixelHeight?: number | undefined;
1797
+ audioCodec?: string | undefined;
1703
1798
  duration?: number | undefined;
1704
1799
  mediaType?: string | undefined;
1705
- pixelHeight?: number | undefined;
1706
- pixelWidth?: number | undefined;
1707
1800
  videoCodec?: string | undefined;
1708
1801
  }[];
1709
1802
  format?: "standardInline" | "mobile" | undefined;
@@ -1742,9 +1835,9 @@ export declare const articleSchema: import("zod").ZodObject<{
1742
1835
  description?: string | undefined;
1743
1836
  } | undefined;
1744
1837
  }[];
1838
+ description?: string | undefined;
1745
1839
  caption?: string | undefined;
1746
1840
  dataCopyright?: string | undefined;
1747
- description?: string | undefined;
1748
1841
  displayTitle?: string | undefined;
1749
1842
  contentWarning?: string[] | undefined;
1750
1843
  noAudio?: boolean | undefined;
@@ -32,6 +32,7 @@ const articleMediaSchema = base_schema_1.baseMediaSchema.pick({
32
32
  mainImage: true,
33
33
  leadImages: true,
34
34
  alternativeImages: true,
35
+ leadFlourish: true,
35
36
  embeds: true,
36
37
  });
37
38
  exports.articleSchema = articleContentSchema
@@ -1 +1 @@
1
- {"version":3,"file":"article.js","sourceRoot":"","sources":["../../../../src/model/schemas/capi/article.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AAEtB,MAAM,oBAAoB,GAAG,+BAAiB,CAAC,IAAI,CAAC;IAClD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,iBAAiB,EAAE,IAAI;IACvB,sBAAsB,EAAE,IAAI;CAC7B,CAAC,CAAA;AAEF,MAAM,qBAAqB,GAAG,gCAAkB,CAAC,IAAI,CAAC;IACpD,EAAE,EAAE,IAAI;IACR,WAAW,EAAE,IAAI;IACjB,MAAM,EAAE,IAAI;IACZ,eAAe,EAAE,IAAI;IACrB,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,IAAI;IACnB,kBAAkB,EAAE,IAAI;IACxB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;CAClB,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,6BAAe,CAAC,IAAI,CAAC;IAC9C,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,iBAAiB,EAAE,IAAI;IACvB,MAAM,EAAE,IAAI;CACb,CAAC,CAAA;AAEW,QAAA,aAAa,GAAG,oBAAoB;KAC9C,KAAK,CAAC,qBAAqB,CAAC;KAC5B,KAAK,CAAC,kBAAkB,CAAC,CAAA"}
1
+ {"version":3,"file":"article.js","sourceRoot":"","sources":["../../../../src/model/schemas/capi/article.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AAEtB,MAAM,oBAAoB,GAAG,+BAAiB,CAAC,IAAI,CAAC;IAClD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,iBAAiB,EAAE,IAAI;IACvB,sBAAsB,EAAE,IAAI;CAC7B,CAAC,CAAA;AAEF,MAAM,qBAAqB,GAAG,gCAAkB,CAAC,IAAI,CAAC;IACpD,EAAE,EAAE,IAAI;IACR,WAAW,EAAE,IAAI;IACjB,MAAM,EAAE,IAAI;IACZ,eAAe,EAAE,IAAI;IACrB,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,IAAI;IACnB,kBAAkB,EAAE,IAAI;IACxB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;CAClB,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,6BAAe,CAAC,IAAI,CAAC;IAC9C,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,IAAI;CACb,CAAC,CAAA;AAEW,QAAA,aAAa,GAAG,oBAAoB;KAC9C,KAAK,CAAC,qBAAqB,CAAC;KAC5B,KAAK,CAAC,kBAAkB,CAAC,CAAA"}