@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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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;
99
- }, "strip", import("zod").ZodTypeAny, {
100
- promotionalTitle: string;
101
- }, {
102
- promotionalTitle: string;
103
- }>>;
104
- alternativeStandfirsts: import("zod").ZodOptional<import("zod").ZodObject<{
105
- promotionalStandfirst: import("zod").ZodOptional<import("zod").ZodString>;
142
+ tableOfContents: import("zod").ZodOptional<import("zod").ZodObject<{
143
+ labelType: import("zod").ZodString;
144
+ sequence: import("zod").ZodString;
106
145
  }, "strip", import("zod").ZodTypeAny, {
107
- promotionalStandfirst?: string | undefined;
146
+ labelType: string;
147
+ sequence: string;
108
148
  }, {
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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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 placeholderSchema: 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" | "embeds">>, "strip", import("zod").ZodTypeAny, {
1233
1314
  id: string;
1234
1315
  types: string[];
1235
1316
  title: string;
@@ -1266,6 +1347,7 @@ export declare const placeholderSchema: 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;
@@ -1433,12 +1515,12 @@ export declare const placeholderSchema: import("zod").ZodObject<{
1433
1515
  id: string;
1434
1516
  type: "http://www.ft.com/ontology/content/Clip";
1435
1517
  dataSource: {
1436
- audioCodec?: string | undefined;
1437
1518
  binaryUrl?: string | undefined;
1519
+ pixelWidth?: number | undefined;
1520
+ pixelHeight?: number | undefined;
1521
+ audioCodec?: string | undefined;
1438
1522
  duration?: number | undefined;
1439
1523
  mediaType?: string | undefined;
1440
- pixelHeight?: number | undefined;
1441
- pixelWidth?: number | undefined;
1442
1524
  videoCodec?: string | undefined;
1443
1525
  }[];
1444
1526
  format?: "standardInline" | "mobile" | undefined;
@@ -1477,9 +1559,9 @@ export declare const placeholderSchema: import("zod").ZodObject<{
1477
1559
  description?: string | undefined;
1478
1560
  } | undefined;
1479
1561
  }[];
1562
+ description?: string | undefined;
1480
1563
  caption?: string | undefined;
1481
1564
  dataCopyright?: string | undefined;
1482
- description?: string | undefined;
1483
1565
  displayTitle?: string | undefined;
1484
1566
  contentWarning?: string[] | undefined;
1485
1567
  noAudio?: boolean | undefined;
@@ -1531,6 +1613,7 @@ export declare const placeholderSchema: import("zod").ZodObject<{
1531
1613
  standfirst?: string | undefined;
1532
1614
  backgroundBox?: boolean | undefined;
1533
1615
  textShadow?: boolean | undefined;
1616
+ layoutWidth?: string | undefined;
1534
1617
  } | undefined;
1535
1618
  comments?: {
1536
1619
  enabled: boolean;
@@ -1698,12 +1781,12 @@ export declare const placeholderSchema: import("zod").ZodObject<{
1698
1781
  id: string;
1699
1782
  type: "http://www.ft.com/ontology/content/Clip";
1700
1783
  dataSource: {
1701
- audioCodec?: string | undefined;
1702
1784
  binaryUrl?: string | undefined;
1785
+ pixelWidth?: number | undefined;
1786
+ pixelHeight?: number | undefined;
1787
+ audioCodec?: string | undefined;
1703
1788
  duration?: number | undefined;
1704
1789
  mediaType?: string | undefined;
1705
- pixelHeight?: number | undefined;
1706
- pixelWidth?: number | undefined;
1707
1790
  videoCodec?: string | undefined;
1708
1791
  }[];
1709
1792
  format?: "standardInline" | "mobile" | undefined;
@@ -1742,9 +1825,9 @@ export declare const placeholderSchema: import("zod").ZodObject<{
1742
1825
  description?: string | undefined;
1743
1826
  } | undefined;
1744
1827
  }[];
1828
+ description?: string | undefined;
1745
1829
  caption?: string | undefined;
1746
1830
  dataCopyright?: string | undefined;
1747
- description?: string | undefined;
1748
1831
  displayTitle?: string | undefined;
1749
1832
  contentWarning?: string[] | undefined;
1750
1833
  noAudio?: boolean | undefined;
@@ -1,6 +1,12 @@
1
- import { QueryContext } from '../../..';
2
1
  export declare const Flourish: {
3
- fallbackImage(parent: import(".").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.Flourish>, _args: {}, context: QueryContext): Promise<{
2
+ fallbackImage(parent: import(".").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.Flourish>, _args: {}, context: import("../../..").QueryContext): Promise<{
3
+ url?: undefined;
4
+ type?: undefined;
5
+ format?: undefined;
6
+ sourceSet?: undefined;
7
+ width?: undefined;
8
+ height?: undefined;
9
+ } | {
4
10
  url: string;
5
11
  type: string;
6
12
  format: string;
@@ -5,27 +5,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FlourishFallback = exports.Flourish = void 0;
7
7
  const imageService_1 = __importDefault(require("../../../helpers/imageService"));
8
- const isError_1 = __importDefault(require("../../../helpers/isError"));
9
- const errors_1 = require("@dotcom-reliability-kit/errors");
8
+ const FlourishSource_1 = require("../../../model/FlourishSource");
10
9
  exports.Flourish = {
11
10
  async fallbackImage(parent, _args, context) {
12
- const type = parent.reference.flourishType;
13
- const timestamp = typeof parent.reference.timestamp === 'string'
14
- ? parent.reference.timestamp
15
- : false;
16
- const flourishUrl = `https://public.flourish.studio/${type}/${parent.reference.id}/thumbnail${timestamp ? '?cacheBuster=' + timestamp : ''}`;
17
- const imageMetadata = await getImageMetadata(context, flourishUrl);
18
- const width = imageMetadata.width;
19
- const height = imageMetadata.height;
11
+ if (!parent.reference) {
12
+ return {};
13
+ }
14
+ const flourishData = {
15
+ id: parent.reference.id,
16
+ type: parent.reference.flourishType,
17
+ description: parent.reference.description,
18
+ };
19
+ const flourishSource = new FlourishSource_1.FlourishSource(flourishData, context);
20
+ const width = await flourishSource.width();
21
+ const height = await flourishSource.height();
20
22
  const imageServiceWrappedUrl = (0, imageService_1.default)({
21
- url: flourishUrl,
23
+ url: flourishSource.flourishUrl(),
22
24
  systemCode: context.systemCode ?? 'cp-content-pipeline',
23
25
  width,
24
26
  });
25
27
  return {
26
28
  url: imageServiceWrappedUrl,
27
- type: 'image',
28
- format: 'standard',
29
+ type: flourishSource.type(),
30
+ format: flourishSource.format(),
29
31
  sourceSet: [],
30
32
  width,
31
33
  height,
@@ -46,31 +48,4 @@ exports.FlourishFallback = {
46
48
  return parent.url ?? null;
47
49
  },
48
50
  };
49
- const getImageMetadata = async (context, flourishUrl) => {
50
- const DEFAULT_WIDTH = 2626;
51
- const DEFAULT_HEIGHT = 1459;
52
- try {
53
- const imageMetadata = await context.dataSources.origami.getImageMetadata(flourishUrl);
54
- return {
55
- width: imageMetadata?.width || DEFAULT_WIDTH,
56
- height: imageMetadata?.height || DEFAULT_HEIGHT,
57
- };
58
- }
59
- catch (error) {
60
- if ((0, isError_1.default)(error)) {
61
- context.logger.warn({
62
- event: 'RECOVERABLE_ERROR',
63
- error: new errors_1.OperationalError({
64
- code: 'FLOURISH_IMAGE_METADATA_ERROR',
65
- message: `Error getting image dimensions for Flourish fallback image ${flourishUrl}`,
66
- cause: error,
67
- }),
68
- });
69
- }
70
- return {
71
- width: DEFAULT_WIDTH,
72
- height: DEFAULT_HEIGHT,
73
- };
74
- }
75
- };
76
51
  //# sourceMappingURL=Flourish.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Flourish.js","sourceRoot":"","sources":["../../../../src/resolvers/content-tree/references/Flourish.ts"],"names":[],"mappings":";;;;;;AAAA,iFAA2D;AAM3D,uEAA8C;AAC9C,2DAAiE;AAEpD,QAAA,QAAQ,GAAG;IACtB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO;QAC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AI,IAAI,CAAA;IAC3B,CAAC;CACkC,CAAA;AAOrC,MAAM,gBAAgB,GAAG,KAAK,EAC5B,OAAqB,EACrB,WAAmB,EACK,EAAE;IAC1B,MAAM,aAAa,GAAG,IAAI,CAAA;IAC1B,MAAM,cAAc,GAAG,IAAI,CAAA;IAE3B,IAAI;QACF,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,gBAAgB,CACtE,WAAW,CACZ,CAAA;QAED,OAAO;YACL,KAAK,EAAE,aAAa,EAAE,KAAK,IAAI,aAAa;YAC5C,MAAM,EAAE,aAAa,EAAE,MAAM,IAAI,cAAc;SAChD,CAAA;KACF;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,IAAA,iBAAO,EAAC,KAAK,CAAC,EAAE;YAClB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;gBAClB,KAAK,EAAE,mBAAmB;gBAC1B,KAAK,EAAE,IAAI,yBAAgB,CAAC;oBAC1B,IAAI,EAAE,+BAA+B;oBACrC,OAAO,EAAE,8DAA8D,WAAW,EAAE;oBACpF,KAAK,EAAE,KAAK;iBACb,CAAC;aACH,CAAC,CAAA;SACH;QACD,OAAO;YACL,KAAK,EAAE,aAAa;YACpB,MAAM,EAAE,cAAc;SACvB,CAAA;KACF;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"Flourish.js","sourceRoot":"","sources":["../../../../src/resolvers/content-tree/references/Flourish.ts"],"names":[],"mappings":";;;;;;AAAA,iFAA2D;AAK3D,kEAA8D;AAEjD,QAAA,QAAQ,GAAG;IACtB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO;QACxC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE;YACrB,OAAO,EAAE,CAAA;SACV;QACD,MAAM,YAAY,GAAG;YACnB,EAAE,EAAE,MAAM,CAAC,SAAS,CAAC,EAAE;YACvB,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,YAAY;YACnC,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,WAAW;SAC1C,CAAA;QACD,MAAM,cAAc,GAAG,IAAI,+BAAc,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;QAChE,MAAM,KAAK,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,CAAA;QAC1C,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,MAAM,EAAE,CAAA;QAE5C,MAAM,sBAAsB,GAAG,IAAA,sBAAe,EAAC;YAC7C,GAAG,EAAE,cAAc,CAAC,WAAW,EAAE;YACjC,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,qBAAqB;YACvD,KAAK;SACN,CAAC,CAAA;QAEF,OAAO;YACL,GAAG,EAAE,sBAAsB;YAC3B,IAAI,EAAE,cAAc,CAAC,IAAI,EAAE;YAC3B,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE;YAC/B,SAAS,EAAE,EAAE;YACb,KAAK;YACL,MAAM;SACP,CAAA;IACH,CAAC;IAED,IAAI,CAAC,MAAM;QACT,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAA;IAC9B,CAAC;CAC0B,CAAA;AAEhB,QAAA,gBAAgB,GAAG;IAC9B,KAAK,CAAC,MAAM,CAAC,MAAM;QACjB,OAAO,MAAM,CAAC,MAAM,IAAI,IAAI,CAAA;IAC9B,CAAC;IACD,KAAK,CAAC,KAAK,CAAC,MAAM;QAChB,OAAO,MAAM,CAAC,KAAK,IAAI,IAAI,CAAA;IAC7B,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,MAAM;QACd,OAAO,MAAM,CAAC,GAAG,IAAI,IAAI,CAAA;IAC3B,CAAC;CACkC,CAAA"}
@@ -58,36 +58,6 @@ describe('Flourish Model', () => {
58
58
  const flourishImageUrl = 'https://public.flourish.studio/example-type';
59
59
  expect(fallbackResponse.url).toContain(encodeURIComponent(flourishImageUrl));
60
60
  });
61
- describe('the flourish timestamp is present', () => {
62
- it('The Flourish cache buster is appended to the flourish image url', async () => {
63
- const reference = {
64
- type: 'flourish',
65
- id: 'example-id',
66
- flourishType: 'example-type',
67
- layoutWidth: 'grid',
68
- timestamp: '2022-01-06T14:41:01.102Z',
69
- description: 'Example description',
70
- };
71
- const fallbackResponse = await Flourish_1.Flourish.fallbackImage({ reference }, {}, context);
72
- const flourishImageCacheBuster = '?cacheBuster=2022-01-06T14:41:01.102Z';
73
- expect(fallbackResponse.url).toContain(encodeURIComponent(flourishImageCacheBuster));
74
- });
75
- });
76
- describe('the flourish timestamp is missing', () => {
77
- it('The Flourish cache buster is not appended to the flourish image url', async () => {
78
- const reference = {
79
- type: 'flourish',
80
- id: 'example-id',
81
- flourishType: 'example-type',
82
- layoutWidth: 'grid',
83
- timestamp: '',
84
- description: 'Example description',
85
- };
86
- const fallbackResponse = await Flourish_1.Flourish.fallbackImage({ reference }, {}, context);
87
- const flourishImageCacheBuster = '?cacheBuster=';
88
- expect(fallbackResponse.url).not.toContain(encodeURIComponent(flourishImageCacheBuster));
89
- });
90
- });
91
61
  });
92
62
  });
93
63
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Flourish.test.js","sourceRoot":"","sources":["../../../../src/resolvers/content-tree/references/Flourish.test.ts"],"names":[],"mappings":";;AAAA,2CAAoC;AAEpC,yCAAqC;AAIrC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,MAAM,2BAA2B,GAAG,cAAI,CAAC,EAAE,EAAE,CAAA;IAC7C,MAAM,OAAO,GAAG;QACd,UAAU,EAAE,gBAAgB;QAC5B,WAAW,EAAE;YACX,OAAO,EAAE;gBACP,gBAAgB,EAAE,2BAA2B;aAC9C;SACF;KACyB,CAAA;IAE5B,SAAS,CAAC,GAAG,EAAE;QACb,cAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAChC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;YACnB,EAAE,CAAC,qCAAqC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,SAAS,EAAE,EAAE;wBACb,WAAW,EAAE,qBAAqB;qBACnC,CAAA;oBACD,MAAM,gBAAgB,GAAG,MAAM,mBAAQ,CAAC,aAAa,CACnD,EAAE,SAAS,EAAE,EACb,EAAE,EACF,OAAO,CACR,CAAA;oBAED,MAAM,wBAAwB,GAAG,eAAe,CAAA;oBAEhD,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,CACxC,kBAAkB,CAAC,wBAAwB,CAAC,CAC7C,CAAA;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"Flourish.test.js","sourceRoot":"","sources":["../../../../src/resolvers/content-tree/references/Flourish.test.ts"],"names":[],"mappings":";;AAAA,2CAAoC;AAEpC,yCAAqC;AAIrC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,MAAM,2BAA2B,GAAG,cAAI,CAAC,EAAE,EAAE,CAAA;IAC7C,MAAM,OAAO,GAAG;QACd,UAAU,EAAE,gBAAgB;QAC5B,WAAW,EAAE;YACX,OAAO,EAAE;gBACP,gBAAgB,EAAE,2BAA2B;aAC9C;SACF;KACyB,CAAA;IAE5B,SAAS,CAAC,GAAG,EAAE;QACb,cAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAChC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;YACnB,EAAE,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;gBACnD,MAAM,SAAS,GAAyB;oBACtC,IAAI,EAAE,UAAU;oBAChB,EAAE,EAAE,YAAY;oBAChB,YAAY,EAAE,cAAc;oBAC5B,WAAW,EAAE,MAAM;oBACnB,SAAS,EAAE,0BAA0B;oBACrC,WAAW,EAAE,qBAAqB;iB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