@financial-times/cp-content-pipeline-schema 3.11.0 → 3.12.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.
- package/CHANGELOG.md +15 -0
- package/README.md +4 -4
- package/lib/generated/index.d.ts +17 -4
- package/lib/model/Content.d.ts +1 -0
- package/lib/model/Content.js +6 -0
- package/lib/model/Content.js.map +1 -1
- package/lib/model/schemas/capi/article.d.ts +33 -34
- package/lib/model/schemas/capi/article.js +1 -0
- package/lib/model/schemas/capi/article.js.map +1 -1
- package/lib/model/schemas/capi/audio.d.ts +31 -34
- package/lib/model/schemas/capi/base-schema.d.ts +61 -68
- package/lib/model/schemas/capi/base-schema.js +8 -0
- package/lib/model/schemas/capi/base-schema.js.map +1 -1
- package/lib/model/schemas/capi/content-package.d.ts +32 -52
- package/lib/model/schemas/capi/custom-code-component.d.ts +37 -39
- package/lib/model/schemas/capi/index.d.ts +193 -227
- package/lib/model/schemas/capi/live-blog-package.d.ts +31 -34
- package/lib/model/schemas/capi/placeholder.d.ts +31 -34
- package/lib/model/schemas/capi/video.d.ts +31 -34
- package/lib/resolvers/content-tree/Workarounds.d.ts +2 -8
- package/lib/resolvers/content-tree/references/Video.d.ts +3 -3
- package/lib/resolvers/content-tree/tagMappings.js +0 -1
- package/lib/resolvers/content-tree/tagMappings.js.map +1 -1
- package/lib/resolvers/content.d.ts +1 -0
- package/lib/resolvers/content.js +1 -0
- package/lib/resolvers/content.js.map +1 -1
- package/lib/resolvers/index.d.ts +2 -0
- package/lib/resolvers/scalars.d.ts +2 -0
- package/lib/resolvers/scalars.js +11 -1
- package/lib/resolvers/scalars.js.map +1 -1
- package/package.json +4 -4
- package/queries/article.graphql +1 -0
- package/src/generated/index.ts +15 -4
- package/src/model/Content.ts +6 -0
- package/src/model/schemas/capi/article.ts +1 -0
- package/src/model/schemas/capi/base-schema.ts +8 -0
- package/src/resolvers/content-tree/Workarounds.ts +2 -9
- package/src/resolvers/content-tree/tagMappings.ts +0 -1
- package/src/resolvers/content.ts +1 -0
- package/src/resolvers/scalars.ts +18 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/typedefs/content.graphql +3 -0
- package/typedefs/scalars.graphql +1 -0
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
export declare const contentPackageSchema: import("zod").ZodObject<
|
|
1
|
+
export declare const contentPackageSchema: import("zod").ZodObject<{
|
|
2
2
|
title: import("zod").ZodString;
|
|
3
|
-
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
3
|
byline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
4
|
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
5
|
alternativeTitles: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
14
6
|
promotionalTitle: import("zod").ZodString;
|
|
15
7
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -17,14 +9,6 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
17
9
|
}, {
|
|
18
10
|
promotionalTitle: string;
|
|
19
11
|
}>>;
|
|
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
12
|
contains: import("zod").ZodArray<import("zod").ZodObject<{
|
|
29
13
|
id: import("zod").ZodString;
|
|
30
14
|
apiUrl: import("zod").ZodString;
|
|
@@ -42,8 +26,7 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
42
26
|
}, {
|
|
43
27
|
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
|
44
28
|
}>;
|
|
45
|
-
|
|
46
|
-
}, "title" | "byline" | "bodyXML" | "summary" | "alternativeTitles" | "contains" | "design">, {
|
|
29
|
+
} & {
|
|
47
30
|
summary: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
48
31
|
bodyXML: import("zod").ZodString;
|
|
49
32
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -51,9 +34,9 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
51
34
|
}, {
|
|
52
35
|
bodyXML: string;
|
|
53
36
|
}>>;
|
|
54
|
-
}
|
|
37
|
+
} & Pick<{
|
|
55
38
|
id: import("zod").ZodString;
|
|
56
|
-
annotations: import("zod").ZodArray<import("zod").ZodObject<
|
|
39
|
+
annotations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
57
40
|
id: import("zod").ZodString;
|
|
58
41
|
apiUrl: import("zod").ZodString;
|
|
59
42
|
directType: import("zod").ZodString;
|
|
@@ -61,9 +44,9 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
61
44
|
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
45
|
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
63
46
|
headshot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
64
|
-
}
|
|
47
|
+
} & {
|
|
65
48
|
predicate: import("zod").ZodString;
|
|
66
|
-
}
|
|
49
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
67
50
|
id: string;
|
|
68
51
|
apiUrl: string;
|
|
69
52
|
directType: string;
|
|
@@ -165,8 +148,9 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
165
148
|
}>>;
|
|
166
149
|
publication: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
167
150
|
clientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
151
|
+
disclaimerType: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"co-created-content">, import("zod").ZodLiteral<"client-supplied-content">, import("zod").ZodLiteral<"ft-studios-risky">, import("zod").ZodLiteral<"auditor">]>>;
|
|
168
152
|
internalAnalyticsTags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
169
|
-
}, "id" | "type" | "types" | "publishedDate" | "annotations" | "webUrl" | "canonicalWebUrl" | "standout" | "firstPublishedDate" | "publishReference" | "lastModified" | "editorialDesk" | "accessLevel" | "canBeSyndicated" | "canBeDistributed" | "topper" | "comments" | "tableOfContents" | "internalAnalyticsTags"
|
|
153
|
+
}, "id" | "type" | "types" | "publishedDate" | "annotations" | "webUrl" | "canonicalWebUrl" | "standout" | "firstPublishedDate" | "publishReference" | "lastModified" | "editorialDesk" | "accessLevel" | "canBeSyndicated" | "canBeDistributed" | "topper" | "comments" | "tableOfContents" | "internalAnalyticsTags"> & Pick<{
|
|
170
154
|
mainImage: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
|
|
171
155
|
id: import("zod").ZodString;
|
|
172
156
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/ImageSet">;
|
|
@@ -217,9 +201,8 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
217
201
|
maxDisplayWidth?: string | undefined;
|
|
218
202
|
pixelWidth?: number | undefined;
|
|
219
203
|
pixelHeight?: number | undefined;
|
|
220
|
-
}>, import("zod").ZodObject<
|
|
204
|
+
}>, import("zod").ZodObject<{
|
|
221
205
|
id: import("zod").ZodString;
|
|
222
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
223
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">]>>;
|
|
224
207
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
225
208
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -235,9 +218,9 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
235
218
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
236
219
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
237
220
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
238
|
-
}
|
|
221
|
+
} & {
|
|
239
222
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
240
|
-
}
|
|
223
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
241
224
|
id: string;
|
|
242
225
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
243
226
|
binaryUrl: string;
|
|
@@ -378,9 +361,8 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
378
361
|
maxDisplayWidth?: string | undefined;
|
|
379
362
|
pixelWidth?: number | undefined;
|
|
380
363
|
pixelHeight?: number | undefined;
|
|
381
|
-
}>, import("zod").ZodObject<
|
|
364
|
+
}>, import("zod").ZodObject<{
|
|
382
365
|
id: import("zod").ZodString;
|
|
383
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
384
366
|
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">]>>;
|
|
385
367
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
386
368
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -396,9 +378,9 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
396
378
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
397
379
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
398
380
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
399
|
-
}
|
|
381
|
+
} & {
|
|
400
382
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
401
|
-
}
|
|
383
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
402
384
|
id: string;
|
|
403
385
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
404
386
|
binaryUrl: string;
|
|
@@ -476,9 +458,8 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
476
458
|
maxDisplayWidth?: string | undefined;
|
|
477
459
|
pixelWidth?: number | undefined;
|
|
478
460
|
pixelHeight?: number | undefined;
|
|
479
|
-
}>, import("zod").ZodObject<
|
|
461
|
+
}>, import("zod").ZodObject<{
|
|
480
462
|
id: import("zod").ZodString;
|
|
481
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
482
463
|
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">]>>;
|
|
483
464
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
484
465
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -494,9 +475,9 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
494
475
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
495
476
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
496
477
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
497
|
-
}
|
|
478
|
+
} & {
|
|
498
479
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
499
|
-
}
|
|
480
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
500
481
|
id: string;
|
|
501
482
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
502
483
|
binaryUrl: string;
|
|
@@ -734,9 +715,8 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
734
715
|
maxDisplayWidth?: string | undefined;
|
|
735
716
|
pixelWidth?: number | undefined;
|
|
736
717
|
pixelHeight?: number | undefined;
|
|
737
|
-
}>, import("zod").ZodObject<
|
|
718
|
+
}>, import("zod").ZodObject<{
|
|
738
719
|
id: import("zod").ZodString;
|
|
739
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
740
720
|
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">]>>;
|
|
741
721
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
742
722
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -752,9 +732,9 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
752
732
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
753
733
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
754
734
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
755
|
-
}
|
|
735
|
+
} & {
|
|
756
736
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
757
|
-
}
|
|
737
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
758
738
|
id: string;
|
|
759
739
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
760
740
|
binaryUrl: string;
|
|
@@ -931,9 +911,8 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
931
911
|
maxDisplayWidth?: string | undefined;
|
|
932
912
|
pixelWidth?: number | undefined;
|
|
933
913
|
pixelHeight?: number | undefined;
|
|
934
|
-
}>, import("zod").ZodObject<
|
|
914
|
+
}>, import("zod").ZodObject<{
|
|
935
915
|
id: import("zod").ZodString;
|
|
936
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
937
916
|
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">]>>;
|
|
938
917
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
939
918
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -949,9 +928,9 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
949
928
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
950
929
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
951
930
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
952
|
-
}
|
|
931
|
+
} & {
|
|
953
932
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
954
|
-
}
|
|
933
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
955
934
|
id: string;
|
|
956
935
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
957
936
|
binaryUrl: string;
|
|
@@ -1313,9 +1292,9 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
1313
1292
|
}[] | undefined;
|
|
1314
1293
|
transcript?: string | undefined;
|
|
1315
1294
|
} | undefined;
|
|
1316
|
-
}>, import("zod").ZodObject<
|
|
1295
|
+
}>, import("zod").ZodObject<Pick<{
|
|
1317
1296
|
id: import("zod").ZodString;
|
|
1318
|
-
annotations: import("zod").ZodArray<import("zod").ZodObject<
|
|
1297
|
+
annotations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1319
1298
|
id: import("zod").ZodString;
|
|
1320
1299
|
apiUrl: import("zod").ZodString;
|
|
1321
1300
|
directType: import("zod").ZodString;
|
|
@@ -1323,9 +1302,9 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
1323
1302
|
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1324
1303
|
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1325
1304
|
headshot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1326
|
-
}
|
|
1305
|
+
} & {
|
|
1327
1306
|
predicate: import("zod").ZodString;
|
|
1328
|
-
}
|
|
1307
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1329
1308
|
id: string;
|
|
1330
1309
|
apiUrl: string;
|
|
1331
1310
|
directType: string;
|
|
@@ -1427,8 +1406,9 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
1427
1406
|
}>>;
|
|
1428
1407
|
publication: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
1429
1408
|
clientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1409
|
+
disclaimerType: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"co-created-content">, import("zod").ZodLiteral<"client-supplied-content">, import("zod").ZodLiteral<"ft-studios-risky">, import("zod").ZodLiteral<"auditor">]>>;
|
|
1430
1410
|
internalAnalyticsTags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1431
|
-
}, "id" | "publishedDate" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "canBeSyndicated" | "canBeDistributed"
|
|
1411
|
+
}, "id" | "publishedDate" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "canBeSyndicated" | "canBeDistributed"> & Pick<{
|
|
1432
1412
|
title: import("zod").ZodString;
|
|
1433
1413
|
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1434
1414
|
byline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1473,13 +1453,13 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
1473
1453
|
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
|
1474
1454
|
}>;
|
|
1475
1455
|
transcript: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1476
|
-
}, "bodyXML"
|
|
1456
|
+
}, "bodyXML"> & {
|
|
1477
1457
|
apiUrl: import("zod").ZodString;
|
|
1478
1458
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/CustomCodeComponent">;
|
|
1479
1459
|
path: import("zod").ZodString;
|
|
1480
1460
|
versionRange: import("zod").ZodString;
|
|
1481
1461
|
attributes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodBoolean, import("zod").ZodUndefined]>>;
|
|
1482
|
-
}
|
|
1462
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1483
1463
|
id: string;
|
|
1484
1464
|
apiUrl: string;
|
|
1485
1465
|
type: "http://www.ft.com/ontology/content/CustomCodeComponent";
|
|
@@ -1524,7 +1504,7 @@ export declare const contentPackageSchema: import("zod").ZodObject<import("zod")
|
|
|
1524
1504
|
mediaType: string;
|
|
1525
1505
|
filesize?: number | undefined;
|
|
1526
1506
|
}>, "many">>;
|
|
1527
|
-
}, "mainImage" | "leadImages" | "leadFlourish"
|
|
1507
|
+
}, "mainImage" | "leadImages" | "leadFlourish">, "strip", import("zod").ZodTypeAny, {
|
|
1528
1508
|
id: string;
|
|
1529
1509
|
types: string[];
|
|
1530
1510
|
title: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const customCodeComponentSchema: import("zod").ZodObject<
|
|
1
|
+
export declare const customCodeComponentSchema: import("zod").ZodObject<Omit<Pick<{
|
|
2
2
|
id: import("zod").ZodString;
|
|
3
|
-
annotations: import("zod").ZodArray<import("zod").ZodObject<
|
|
3
|
+
annotations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4
4
|
id: import("zod").ZodString;
|
|
5
5
|
apiUrl: import("zod").ZodString;
|
|
6
6
|
directType: import("zod").ZodString;
|
|
@@ -8,9 +8,9 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
8
8
|
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
9
|
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
10
10
|
headshot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
-
}
|
|
11
|
+
} & {
|
|
12
12
|
predicate: import("zod").ZodString;
|
|
13
|
-
}
|
|
13
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
14
14
|
id: string;
|
|
15
15
|
apiUrl: string;
|
|
16
16
|
directType: string;
|
|
@@ -112,8 +112,9 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
112
112
|
}>>;
|
|
113
113
|
publication: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
114
114
|
clientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
115
|
+
disclaimerType: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"co-created-content">, import("zod").ZodLiteral<"client-supplied-content">, import("zod").ZodLiteral<"ft-studios-risky">, import("zod").ZodLiteral<"auditor">]>>;
|
|
115
116
|
internalAnalyticsTags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
116
|
-
}, "id" | "publishedDate" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "canBeSyndicated" | "canBeDistributed"
|
|
117
|
+
}, "id" | "publishedDate" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "canBeSyndicated" | "canBeDistributed"> & Pick<{
|
|
117
118
|
title: import("zod").ZodString;
|
|
118
119
|
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
119
120
|
byline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -158,15 +159,15 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
158
159
|
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
|
159
160
|
}>;
|
|
160
161
|
transcript: import("zod").ZodOptional<import("zod").ZodString>;
|
|
161
|
-
}, "bodyXML"
|
|
162
|
+
}, "bodyXML"> & {
|
|
162
163
|
apiUrl: import("zod").ZodString;
|
|
163
164
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/CustomCodeComponent">;
|
|
164
165
|
path: import("zod").ZodString;
|
|
165
166
|
versionRange: import("zod").ZodString;
|
|
166
167
|
attributes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodBoolean, import("zod").ZodUndefined]>>;
|
|
167
|
-
}
|
|
168
|
+
}, "type"> & Pick<{
|
|
168
169
|
id: import("zod").ZodString;
|
|
169
|
-
annotations: import("zod").ZodArray<import("zod").ZodObject<
|
|
170
|
+
annotations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
170
171
|
id: import("zod").ZodString;
|
|
171
172
|
apiUrl: import("zod").ZodString;
|
|
172
173
|
directType: import("zod").ZodString;
|
|
@@ -174,9 +175,9 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
174
175
|
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
175
176
|
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
176
177
|
headshot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
177
|
-
}
|
|
178
|
+
} & {
|
|
178
179
|
predicate: import("zod").ZodString;
|
|
179
|
-
}
|
|
180
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
180
181
|
id: string;
|
|
181
182
|
apiUrl: string;
|
|
182
183
|
directType: string;
|
|
@@ -278,8 +279,9 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
278
279
|
}>>;
|
|
279
280
|
publication: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
280
281
|
clientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
282
|
+
disclaimerType: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"co-created-content">, import("zod").ZodLiteral<"client-supplied-content">, import("zod").ZodLiteral<"ft-studios-risky">, import("zod").ZodLiteral<"auditor">]>>;
|
|
281
283
|
internalAnalyticsTags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
282
|
-
}, "types" | "annotations"
|
|
284
|
+
}, "types" | "annotations"> & Pick<{
|
|
283
285
|
mainImage: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
|
|
284
286
|
id: import("zod").ZodString;
|
|
285
287
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/ImageSet">;
|
|
@@ -330,9 +332,8 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
330
332
|
maxDisplayWidth?: string | undefined;
|
|
331
333
|
pixelWidth?: number | undefined;
|
|
332
334
|
pixelHeight?: number | undefined;
|
|
333
|
-
}>, import("zod").ZodObject<
|
|
335
|
+
}>, import("zod").ZodObject<{
|
|
334
336
|
id: import("zod").ZodString;
|
|
335
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
336
337
|
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">]>>;
|
|
337
338
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
338
339
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -348,9 +349,9 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
348
349
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
349
350
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
350
351
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
351
|
-
}
|
|
352
|
+
} & {
|
|
352
353
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
353
|
-
}
|
|
354
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
354
355
|
id: string;
|
|
355
356
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
356
357
|
binaryUrl: string;
|
|
@@ -491,9 +492,8 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
491
492
|
maxDisplayWidth?: string | undefined;
|
|
492
493
|
pixelWidth?: number | undefined;
|
|
493
494
|
pixelHeight?: number | undefined;
|
|
494
|
-
}>, import("zod").ZodObject<
|
|
495
|
+
}>, import("zod").ZodObject<{
|
|
495
496
|
id: import("zod").ZodString;
|
|
496
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
497
497
|
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">]>>;
|
|
498
498
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
499
499
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -509,9 +509,9 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
509
509
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
510
510
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
511
511
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
512
|
-
}
|
|
512
|
+
} & {
|
|
513
513
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
514
|
-
}
|
|
514
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
515
515
|
id: string;
|
|
516
516
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
517
517
|
binaryUrl: string;
|
|
@@ -589,9 +589,8 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
589
589
|
maxDisplayWidth?: string | undefined;
|
|
590
590
|
pixelWidth?: number | undefined;
|
|
591
591
|
pixelHeight?: number | undefined;
|
|
592
|
-
}>, import("zod").ZodObject<
|
|
592
|
+
}>, import("zod").ZodObject<{
|
|
593
593
|
id: import("zod").ZodString;
|
|
594
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
595
594
|
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">]>>;
|
|
596
595
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
597
596
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -607,9 +606,9 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
607
606
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
608
607
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
609
608
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
610
|
-
}
|
|
609
|
+
} & {
|
|
611
610
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
612
|
-
}
|
|
611
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
613
612
|
id: string;
|
|
614
613
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
615
614
|
binaryUrl: string;
|
|
@@ -847,9 +846,8 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
847
846
|
maxDisplayWidth?: string | undefined;
|
|
848
847
|
pixelWidth?: number | undefined;
|
|
849
848
|
pixelHeight?: number | undefined;
|
|
850
|
-
}>, import("zod").ZodObject<
|
|
849
|
+
}>, import("zod").ZodObject<{
|
|
851
850
|
id: import("zod").ZodString;
|
|
852
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
853
851
|
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">]>>;
|
|
854
852
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
855
853
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -865,9 +863,9 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
865
863
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
866
864
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
867
865
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
868
|
-
}
|
|
866
|
+
} & {
|
|
869
867
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
870
|
-
}
|
|
868
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
871
869
|
id: string;
|
|
872
870
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
873
871
|
binaryUrl: string;
|
|
@@ -1044,9 +1042,8 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
1044
1042
|
maxDisplayWidth?: string | undefined;
|
|
1045
1043
|
pixelWidth?: number | undefined;
|
|
1046
1044
|
pixelHeight?: number | undefined;
|
|
1047
|
-
}>, import("zod").ZodObject<
|
|
1045
|
+
}>, import("zod").ZodObject<{
|
|
1048
1046
|
id: import("zod").ZodString;
|
|
1049
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
1050
1047
|
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">]>>;
|
|
1051
1048
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1052
1049
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1062,9 +1059,9 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
1062
1059
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1063
1060
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1064
1061
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1065
|
-
}
|
|
1062
|
+
} & {
|
|
1066
1063
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
1067
|
-
}
|
|
1064
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1068
1065
|
id: string;
|
|
1069
1066
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
1070
1067
|
binaryUrl: string;
|
|
@@ -1426,9 +1423,9 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
1426
1423
|
}[] | undefined;
|
|
1427
1424
|
transcript?: string | undefined;
|
|
1428
1425
|
} | undefined;
|
|
1429
|
-
}>, import("zod").ZodObject<
|
|
1426
|
+
}>, import("zod").ZodObject<Pick<{
|
|
1430
1427
|
id: import("zod").ZodString;
|
|
1431
|
-
annotations: import("zod").ZodArray<import("zod").ZodObject<
|
|
1428
|
+
annotations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1432
1429
|
id: import("zod").ZodString;
|
|
1433
1430
|
apiUrl: import("zod").ZodString;
|
|
1434
1431
|
directType: import("zod").ZodString;
|
|
@@ -1436,9 +1433,9 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
1436
1433
|
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1437
1434
|
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1438
1435
|
headshot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1439
|
-
}
|
|
1436
|
+
} & {
|
|
1440
1437
|
predicate: import("zod").ZodString;
|
|
1441
|
-
}
|
|
1438
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1442
1439
|
id: string;
|
|
1443
1440
|
apiUrl: string;
|
|
1444
1441
|
directType: string;
|
|
@@ -1540,8 +1537,9 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
1540
1537
|
}>>;
|
|
1541
1538
|
publication: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
1542
1539
|
clientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1540
|
+
disclaimerType: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"co-created-content">, import("zod").ZodLiteral<"client-supplied-content">, import("zod").ZodLiteral<"ft-studios-risky">, import("zod").ZodLiteral<"auditor">]>>;
|
|
1543
1541
|
internalAnalyticsTags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1544
|
-
}, "id" | "publishedDate" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "canBeSyndicated" | "canBeDistributed"
|
|
1542
|
+
}, "id" | "publishedDate" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "canBeSyndicated" | "canBeDistributed"> & Pick<{
|
|
1545
1543
|
title: import("zod").ZodString;
|
|
1546
1544
|
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1547
1545
|
byline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1586,13 +1584,13 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
1586
1584
|
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
|
1587
1585
|
}>;
|
|
1588
1586
|
transcript: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1589
|
-
}, "bodyXML"
|
|
1587
|
+
}, "bodyXML"> & {
|
|
1590
1588
|
apiUrl: import("zod").ZodString;
|
|
1591
1589
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/CustomCodeComponent">;
|
|
1592
1590
|
path: import("zod").ZodString;
|
|
1593
1591
|
versionRange: import("zod").ZodString;
|
|
1594
1592
|
attributes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodBoolean, import("zod").ZodUndefined]>>;
|
|
1595
|
-
}
|
|
1593
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1596
1594
|
id: string;
|
|
1597
1595
|
apiUrl: string;
|
|
1598
1596
|
type: "http://www.ft.com/ontology/content/CustomCodeComponent";
|
|
@@ -1637,7 +1635,7 @@ export declare const customCodeComponentSchema: import("zod").ZodObject<import("
|
|
|
1637
1635
|
mediaType: string;
|
|
1638
1636
|
filesize?: number | undefined;
|
|
1639
1637
|
}>, "many">>;
|
|
1640
|
-
}, "embeds"
|
|
1638
|
+
}, "embeds">, "strip", import("zod").ZodTypeAny, {
|
|
1641
1639
|
id: string;
|
|
1642
1640
|
apiUrl: string;
|
|
1643
1641
|
types: string[];
|