@financial-times/cp-content-pipeline-schema 3.0.4 → 3.1.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 +14 -0
- package/lib/generated/index.d.ts +33 -4
- package/lib/helpers/flatten-formatted-zod-errors.d.ts +1 -1
- package/lib/helpers/flatten-formatted-zod-errors.js +1 -0
- package/lib/helpers/flatten-formatted-zod-errors.js.map +1 -1
- package/lib/model/CapiResponse.d.ts +3 -2
- package/lib/model/CapiResponse.js +64 -22
- package/lib/model/CapiResponse.js.map +1 -1
- package/lib/model/Concept.js +5 -1
- package/lib/model/Concept.js.map +1 -1
- package/lib/model/Concept.test.js +5 -0
- package/lib/model/Concept.test.js.map +1 -1
- package/lib/model/schemas/capi/article.d.ts +222 -0
- package/lib/model/schemas/capi/audio.d.ts +194 -0
- package/lib/model/schemas/capi/base-schema.d.ts +420 -0
- package/lib/model/schemas/capi/base-schema.js +25 -2
- package/lib/model/schemas/capi/base-schema.js.map +1 -1
- package/lib/model/schemas/capi/content-package.d.ts +194 -0
- package/lib/model/schemas/capi/custom-code-component.d.ts +1906 -0
- package/lib/model/schemas/capi/custom-code-component.js +17 -0
- package/lib/model/schemas/capi/custom-code-component.js.map +1 -0
- package/lib/model/schemas/capi/index.d.ts +2947 -16
- package/lib/model/schemas/capi/index.js +3 -0
- package/lib/model/schemas/capi/index.js.map +1 -1
- package/lib/model/schemas/capi/internal-content.d.ts +5 -2
- package/lib/model/schemas/capi/live-blog-package.d.ts +222 -0
- package/lib/model/schemas/capi/placeholder.d.ts +222 -0
- package/lib/model/schemas/capi/video.d.ts +194 -0
- package/lib/resolvers/content-tree/Workarounds.d.ts +5 -1
- package/lib/resolvers/content-tree/references/CustomCodeComponent.d.ts +13 -0
- package/lib/resolvers/content-tree/references/CustomCodeComponent.js +58 -0
- package/lib/resolvers/content-tree/references/CustomCodeComponent.js.map +1 -0
- package/lib/resolvers/content-tree/references/Reference.d.ts +1 -1
- package/lib/resolvers/content-tree/references/index.d.ts +3 -1
- package/lib/resolvers/content-tree/references/index.js +3 -0
- package/lib/resolvers/content-tree/references/index.js.map +1 -1
- package/lib/resolvers/content-tree/tagMappings.js +27 -2
- package/lib/resolvers/content-tree/tagMappings.js.map +1 -1
- package/lib/resolvers/content-tree/tagMappings.test.js +19 -0
- package/lib/resolvers/content-tree/tagMappings.test.js.map +1 -1
- package/lib/resolvers/content.d.ts +8 -8
- package/lib/resolvers/content.js +4 -0
- package/lib/resolvers/content.js.map +1 -1
- package/lib/resolvers/index.d.ts +10 -9
- package/lib/resolvers/scalars.d.ts +2 -2
- package/lib/resolvers/scalars.js +1 -0
- package/lib/resolvers/scalars.js.map +1 -1
- package/package.json +2 -2
- package/queries/article.graphql +24 -0
- package/src/generated/index.ts +34 -3
- package/src/helpers/flatten-formatted-zod-errors.ts +2 -1
- package/src/model/CapiResponse.ts +74 -29
- package/src/model/Concept.test.ts +8 -0
- package/src/model/Concept.ts +7 -1
- package/src/model/schemas/capi/base-schema.ts +27 -1
- package/src/model/schemas/capi/custom-code-component.ts +20 -0
- package/src/model/schemas/capi/index.ts +3 -0
- package/src/model/schemas/capi/internal-content.ts +7 -0
- package/src/resolvers/content-tree/Workarounds.ts +7 -1
- package/src/resolvers/content-tree/references/CustomCodeComponent.ts +78 -0
- package/src/resolvers/content-tree/references/index.ts +5 -0
- package/src/resolvers/content-tree/tagMappings.test.ts +29 -0
- package/src/resolvers/content-tree/tagMappings.ts +46 -4
- package/src/resolvers/content.ts +7 -0
- package/src/resolvers/scalars.ts +3 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/typedefs/content.graphql +1 -1
- package/typedefs/references/CustomCodeComponent.graphql +17 -0
|
@@ -7,6 +7,7 @@ const live_blog_package_1 = require("./live-blog-package");
|
|
|
7
7
|
const content_package_1 = require("./content-package");
|
|
8
8
|
const audio_1 = require("./audio");
|
|
9
9
|
const video_1 = require("./video");
|
|
10
|
+
const custom_code_component_1 = require("./custom-code-component");
|
|
10
11
|
const schemas = (contentType) => {
|
|
11
12
|
switch (contentType) {
|
|
12
13
|
case 'Placeholder':
|
|
@@ -22,6 +23,8 @@ const schemas = (contentType) => {
|
|
|
22
23
|
case 'Video':
|
|
23
24
|
case 'MediaResource':
|
|
24
25
|
return video_1.videoSchema;
|
|
26
|
+
case 'CustomCodeComponent':
|
|
27
|
+
return custom_code_component_1.customCodeComponentSchema;
|
|
25
28
|
default:
|
|
26
29
|
return article_1.articleSchema;
|
|
27
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/model/schemas/capi/index.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AACzC,+CAAiD;AACjD,2DAA2D;AAC3D,uDAAwD;AACxD,mCAAqC;AACrC,mCAAqC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/model/schemas/capi/index.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AACzC,+CAAiD;AACjD,2DAA2D;AAC3D,uDAAwD;AACxD,mCAAqC;AACrC,mCAAqC;AAGrC,mEAAmE;AAE5D,MAAM,OAAO,GAAG,CACrB,WAAyD,EACzD,EAAE;IACF,QAAQ,WAAW,EAAE,CAAC;QACpB,KAAK,aAAa;YAChB,OAAO,+BAAiB,CAAA;QAC1B,KAAK,SAAS;YACZ,OAAO,uBAAa,CAAA;QACtB,KAAK,iBAAiB;YACpB,OAAO,yCAAqB,CAAA;QAC9B,KAAK,gBAAgB;YACnB,OAAO,sCAAoB,CAAA;QAC7B,KAAK,OAAO;YACV,OAAO,mBAAW,CAAA;QACpB,KAAK,OAAO,CAAC;QACb,KAAK,eAAe;YAClB,OAAO,mBAAW,CAAA;QACpB,KAAK,qBAAqB;YACxB,OAAO,iDAAyB,CAAA;QAClC;YACE,OAAO,uBAAa,CAAA;IACxB,CAAC;AACH,CAAC,CAAA;AAtBY,QAAA,OAAO,WAsBnB"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type { CapiPerson, Annotation, Image, ImageSet, Clip, ClipSet, MainImage, LeadImage } from './base-schema';
|
|
2
|
+
import type { CapiPerson, Annotation, Image, ImageSet, Clip, ClipSet, MainImage, LeadImage, CustomCodeComponentReference } from './base-schema';
|
|
3
3
|
import { articleSchema } from './article';
|
|
4
4
|
import { placeholderSchema } from './placeholder';
|
|
5
5
|
import { liveBlogPackageSchema } from './live-blog-package';
|
|
6
6
|
import { audioSchema } from './audio';
|
|
7
7
|
import { videoSchema } from './video';
|
|
8
|
+
import { customCodeComponentSchema } from './custom-code-component';
|
|
8
9
|
import { contentPackageSchema } from './content-package';
|
|
9
10
|
export type Article = z.infer<typeof articleSchema>;
|
|
10
11
|
type Placeholder = z.infer<typeof placeholderSchema>;
|
|
@@ -12,6 +13,7 @@ type LiveBlogPackage = z.infer<typeof liveBlogPackageSchema>;
|
|
|
12
13
|
type ContentPackage = z.infer<typeof contentPackageSchema>;
|
|
13
14
|
type Audio = z.infer<typeof audioSchema>;
|
|
14
15
|
type Video = z.infer<typeof videoSchema>;
|
|
16
|
+
type CustomCodeComponent = z.infer<typeof customCodeComponentSchema>;
|
|
15
17
|
export type CapiPerson = z.infer<typeof CapiPerson>;
|
|
16
18
|
export type Annotation = z.infer<typeof Annotation>;
|
|
17
19
|
export type Image = z.infer<typeof Image>;
|
|
@@ -20,5 +22,6 @@ export type ImageSet = z.infer<typeof ImageSet>;
|
|
|
20
22
|
export type MainImage = z.infer<typeof MainImage>;
|
|
21
23
|
export type Clip = z.infer<typeof Clip>;
|
|
22
24
|
export type ClipSet = z.infer<typeof ClipSet>;
|
|
23
|
-
export type
|
|
25
|
+
export type CustomCodeComponentReference = z.infer<typeof CustomCodeComponentReference>;
|
|
26
|
+
export type ContentTypeSchemas = Article | Placeholder | LiveBlogPackage | ContentPackage | Audio | Video | CustomCodeComponent;
|
|
24
27
|
export {};
|
|
@@ -76,6 +76,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<import("zod"
|
|
|
76
76
|
}>, "many">;
|
|
77
77
|
webUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
78
|
canonicalWebUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
79
|
+
apiUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
|
+
path: import("zod").ZodString;
|
|
81
|
+
versionRange: import("zod").ZodString;
|
|
79
82
|
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
83
|
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
81
84
|
standout: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
@@ -1296,6 +1299,197 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<import("zod"
|
|
|
1296
1299
|
}[] | undefined;
|
|
1297
1300
|
transcript?: string | undefined;
|
|
1298
1301
|
} | undefined;
|
|
1302
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<Pick<{
|
|
1303
|
+
id: import("zod").ZodString;
|
|
1304
|
+
annotations: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
1305
|
+
id: import("zod").ZodString;
|
|
1306
|
+
apiUrl: import("zod").ZodString;
|
|
1307
|
+
directType: import("zod").ZodString;
|
|
1308
|
+
prefLabel: import("zod").ZodString;
|
|
1309
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1310
|
+
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1311
|
+
headshot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1312
|
+
}, {
|
|
1313
|
+
predicate: import("zod").ZodString;
|
|
1314
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
1315
|
+
id: string;
|
|
1316
|
+
apiUrl: string;
|
|
1317
|
+
directType: string;
|
|
1318
|
+
prefLabel: string;
|
|
1319
|
+
types: string[];
|
|
1320
|
+
predicate: string;
|
|
1321
|
+
type?: string | undefined;
|
|
1322
|
+
headshot?: string | undefined;
|
|
1323
|
+
}, {
|
|
1324
|
+
id: string;
|
|
1325
|
+
apiUrl: string;
|
|
1326
|
+
directType: string;
|
|
1327
|
+
prefLabel: string;
|
|
1328
|
+
types: string[];
|
|
1329
|
+
predicate: string;
|
|
1330
|
+
type?: string | undefined;
|
|
1331
|
+
headshot?: string | undefined;
|
|
1332
|
+
}>, "many">;
|
|
1333
|
+
webUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1334
|
+
canonicalWebUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1335
|
+
apiUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1336
|
+
path: import("zod").ZodString;
|
|
1337
|
+
versionRange: import("zod").ZodString;
|
|
1338
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1339
|
+
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1340
|
+
standout: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1341
|
+
editorsChoice: import("zod").ZodBoolean;
|
|
1342
|
+
exclusive: import("zod").ZodBoolean;
|
|
1343
|
+
scoop: import("zod").ZodBoolean;
|
|
1344
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1345
|
+
editorsChoice: boolean;
|
|
1346
|
+
exclusive: boolean;
|
|
1347
|
+
scoop: boolean;
|
|
1348
|
+
}, {
|
|
1349
|
+
editorsChoice: boolean;
|
|
1350
|
+
exclusive: boolean;
|
|
1351
|
+
scoop: boolean;
|
|
1352
|
+
}>>;
|
|
1353
|
+
publishedDate: import("zod").ZodString;
|
|
1354
|
+
firstPublishedDate: import("zod").ZodString;
|
|
1355
|
+
publishReference: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1356
|
+
lastModified: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1357
|
+
realtime: import("zod").ZodBoolean;
|
|
1358
|
+
editorialDesk: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1359
|
+
accessLevel: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"premium">, import("zod").ZodLiteral<"subscribed">, import("zod").ZodLiteral<"registered">, import("zod").ZodLiteral<"free">]>>;
|
|
1360
|
+
canBeSyndicated: import("zod").ZodUnion<[import("zod").ZodLiteral<"yes">, import("zod").ZodLiteral<"no">, import("zod").ZodLiteral<"verify">, import("zod").ZodLiteral<"withContributorPayment">, import("zod").ZodLiteral<"unknown">]>;
|
|
1361
|
+
canBeDistributed: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"yes">, import("zod").ZodLiteral<"no">, import("zod").ZodLiteral<"verify">]>>;
|
|
1362
|
+
topper: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1363
|
+
headline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1364
|
+
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1365
|
+
backgroundColour: import("zod").ZodString;
|
|
1366
|
+
backgroundBox: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1367
|
+
textShadow: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1368
|
+
layout: import("zod").ZodString;
|
|
1369
|
+
layoutWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1370
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1371
|
+
backgroundColour: string;
|
|
1372
|
+
layout: string;
|
|
1373
|
+
headline?: string | undefined;
|
|
1374
|
+
standfirst?: string | undefined;
|
|
1375
|
+
backgroundBox?: boolean | undefined;
|
|
1376
|
+
textShadow?: boolean | undefined;
|
|
1377
|
+
layoutWidth?: string | undefined;
|
|
1378
|
+
}, {
|
|
1379
|
+
backgroundColour: string;
|
|
1380
|
+
layout: string;
|
|
1381
|
+
headline?: string | undefined;
|
|
1382
|
+
standfirst?: string | undefined;
|
|
1383
|
+
backgroundBox?: boolean | undefined;
|
|
1384
|
+
textShadow?: boolean | undefined;
|
|
1385
|
+
layoutWidth?: string | undefined;
|
|
1386
|
+
}>>;
|
|
1387
|
+
comments: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1388
|
+
enabled: import("zod").ZodBoolean;
|
|
1389
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1390
|
+
enabled: boolean;
|
|
1391
|
+
}, {
|
|
1392
|
+
enabled: boolean;
|
|
1393
|
+
}>>;
|
|
1394
|
+
containedIn: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
1395
|
+
apiUrl: import("zod").ZodString;
|
|
1396
|
+
id: import("zod").ZodString;
|
|
1397
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1398
|
+
id: string;
|
|
1399
|
+
apiUrl: string;
|
|
1400
|
+
}, {
|
|
1401
|
+
id: string;
|
|
1402
|
+
apiUrl: string;
|
|
1403
|
+
}>, "many">>;
|
|
1404
|
+
tableOfContents: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1405
|
+
labelType: import("zod").ZodString;
|
|
1406
|
+
sequence: import("zod").ZodString;
|
|
1407
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1408
|
+
labelType: string;
|
|
1409
|
+
sequence: string;
|
|
1410
|
+
}, {
|
|
1411
|
+
labelType: string;
|
|
1412
|
+
sequence: string;
|
|
1413
|
+
}>>;
|
|
1414
|
+
}, "id" | "publishedDate" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "canBeSyndicated" | "canBeDistributed">, Pick<{
|
|
1415
|
+
title: import("zod").ZodString;
|
|
1416
|
+
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1417
|
+
byline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1418
|
+
bodyXML: import("zod").ZodString;
|
|
1419
|
+
summary: import("zod").ZodObject<{
|
|
1420
|
+
bodyXML: import("zod").ZodString;
|
|
1421
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1422
|
+
bodyXML: string;
|
|
1423
|
+
}, {
|
|
1424
|
+
bodyXML: string;
|
|
1425
|
+
}>;
|
|
1426
|
+
alternativeTitles: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1427
|
+
promotionalTitle: import("zod").ZodString;
|
|
1428
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1429
|
+
promotionalTitle: string;
|
|
1430
|
+
}, {
|
|
1431
|
+
promotionalTitle: string;
|
|
1432
|
+
}>>;
|
|
1433
|
+
alternativeStandfirsts: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1434
|
+
promotionalStandfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1435
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1436
|
+
promotionalStandfirst?: string | undefined;
|
|
1437
|
+
}, {
|
|
1438
|
+
promotionalStandfirst?: string | undefined;
|
|
1439
|
+
}>>;
|
|
1440
|
+
pinnedPosts: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1441
|
+
contains: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1442
|
+
id: import("zod").ZodString;
|
|
1443
|
+
apiUrl: import("zod").ZodString;
|
|
1444
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1445
|
+
id: string;
|
|
1446
|
+
apiUrl: string;
|
|
1447
|
+
}, {
|
|
1448
|
+
id: string;
|
|
1449
|
+
apiUrl: string;
|
|
1450
|
+
}>, "many">;
|
|
1451
|
+
design: import("zod").ZodObject<{
|
|
1452
|
+
theme: import("zod").ZodUnion<[import("zod").ZodLiteral<"special-report">, import("zod").ZodLiteral<"extra">, import("zod").ZodLiteral<"basic">, import("zod").ZodLiteral<"extra-wide">]>;
|
|
1453
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1454
|
+
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
|
1455
|
+
}, {
|
|
1456
|
+
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
|
1457
|
+
}>;
|
|
1458
|
+
transcript: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1459
|
+
}, "bodyXML">>, {
|
|
1460
|
+
apiUrl: import("zod").ZodString;
|
|
1461
|
+
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/CustomCodeComponent">;
|
|
1462
|
+
path: import("zod").ZodString;
|
|
1463
|
+
versionRange: import("zod").ZodString;
|
|
1464
|
+
attributes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodBoolean, import("zod").ZodUndefined]>>;
|
|
1465
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
1466
|
+
id: string;
|
|
1467
|
+
apiUrl: string;
|
|
1468
|
+
type: "http://www.ft.com/ontology/content/CustomCodeComponent";
|
|
1469
|
+
path: string;
|
|
1470
|
+
publishedDate: string;
|
|
1471
|
+
versionRange: string;
|
|
1472
|
+
firstPublishedDate: string;
|
|
1473
|
+
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
1474
|
+
bodyXML: string;
|
|
1475
|
+
attributes: Record<string, string | boolean | undefined>;
|
|
1476
|
+
canonicalWebUrl?: string | undefined;
|
|
1477
|
+
publishReference?: string | undefined;
|
|
1478
|
+
canBeDistributed?: "yes" | "no" | "verify" | undefined;
|
|
1479
|
+
}, {
|
|
1480
|
+
id: string;
|
|
1481
|
+
apiUrl: string;
|
|
1482
|
+
type: "http://www.ft.com/ontology/content/CustomCodeComponent";
|
|
1483
|
+
path: string;
|
|
1484
|
+
publishedDate: string;
|
|
1485
|
+
versionRange: string;
|
|
1486
|
+
firstPublishedDate: string;
|
|
1487
|
+
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
1488
|
+
bodyXML: string;
|
|
1489
|
+
attributes: Record<string, string | boolean | undefined>;
|
|
1490
|
+
canonicalWebUrl?: string | undefined;
|
|
1491
|
+
publishReference?: string | undefined;
|
|
1492
|
+
canBeDistributed?: "yes" | "no" | "verify" | undefined;
|
|
1299
1493
|
}>]>, "many">>;
|
|
1300
1494
|
dataSource: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
1301
1495
|
binaryUrl: import("zod").ZodString;
|
|
@@ -1562,6 +1756,20 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<import("zod"
|
|
|
1562
1756
|
}[] | undefined;
|
|
1563
1757
|
transcript?: string | undefined;
|
|
1564
1758
|
} | undefined;
|
|
1759
|
+
} | {
|
|
1760
|
+
id: string;
|
|
1761
|
+
apiUrl: string;
|
|
1762
|
+
type: "http://www.ft.com/ontology/content/CustomCodeComponent";
|
|
1763
|
+
path: string;
|
|
1764
|
+
publishedDate: string;
|
|
1765
|
+
versionRange: string;
|
|
1766
|
+
firstPublishedDate: string;
|
|
1767
|
+
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
1768
|
+
bodyXML: string;
|
|
1769
|
+
attributes: Record<string, string | boolean | undefined>;
|
|
1770
|
+
canonicalWebUrl?: string | undefined;
|
|
1771
|
+
publishReference?: string | undefined;
|
|
1772
|
+
canBeDistributed?: "yes" | "no" | "verify" | undefined;
|
|
1565
1773
|
})[] | undefined;
|
|
1566
1774
|
}, {
|
|
1567
1775
|
id: string;
|
|
@@ -1812,5 +2020,19 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<import("zod"
|
|
|
1812
2020
|
}[] | undefined;
|
|
1813
2021
|
transcript?: string | undefined;
|
|
1814
2022
|
} | undefined;
|
|
2023
|
+
} | {
|
|
2024
|
+
id: string;
|
|
2025
|
+
apiUrl: string;
|
|
2026
|
+
type: "http://www.ft.com/ontology/content/CustomCodeComponent";
|
|
2027
|
+
path: string;
|
|
2028
|
+
publishedDate: string;
|
|
2029
|
+
versionRange: string;
|
|
2030
|
+
firstPublishedDate: string;
|
|
2031
|
+
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
2032
|
+
bodyXML: string;
|
|
2033
|
+
attributes: Record<string, string | boolean | undefined>;
|
|
2034
|
+
canonicalWebUrl?: string | undefined;
|
|
2035
|
+
publishReference?: string | undefined;
|
|
2036
|
+
canBeDistributed?: "yes" | "no" | "verify" | undefined;
|
|
1815
2037
|
})[] | undefined;
|
|
1816
2038
|
}>;
|
|
@@ -76,6 +76,9 @@ export declare const placeholderSchema: import("zod").ZodObject<import("zod").ob
|
|
|
76
76
|
}>, "many">;
|
|
77
77
|
webUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
78
|
canonicalWebUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
79
|
+
apiUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
|
+
path: import("zod").ZodString;
|
|
81
|
+
versionRange: import("zod").ZodString;
|
|
79
82
|
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
83
|
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
81
84
|
standout: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
@@ -1296,6 +1299,197 @@ export declare const placeholderSchema: import("zod").ZodObject<import("zod").ob
|
|
|
1296
1299
|
}[] | undefined;
|
|
1297
1300
|
transcript?: string | undefined;
|
|
1298
1301
|
} | undefined;
|
|
1302
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<Pick<{
|
|
1303
|
+
id: import("zod").ZodString;
|
|
1304
|
+
annotations: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
1305
|
+
id: import("zod").ZodString;
|
|
1306
|
+
apiUrl: import("zod").ZodString;
|
|
1307
|
+
directType: import("zod").ZodString;
|
|
1308
|
+
prefLabel: import("zod").ZodString;
|
|
1309
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1310
|
+
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1311
|
+
headshot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1312
|
+
}, {
|
|
1313
|
+
predicate: import("zod").ZodString;
|
|
1314
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
1315
|
+
id: string;
|
|
1316
|
+
apiUrl: string;
|
|
1317
|
+
directType: string;
|
|
1318
|
+
prefLabel: string;
|
|
1319
|
+
types: string[];
|
|
1320
|
+
predicate: string;
|
|
1321
|
+
type?: string | undefined;
|
|
1322
|
+
headshot?: string | undefined;
|
|
1323
|
+
}, {
|
|
1324
|
+
id: string;
|
|
1325
|
+
apiUrl: string;
|
|
1326
|
+
directType: string;
|
|
1327
|
+
prefLabel: string;
|
|
1328
|
+
types: string[];
|
|
1329
|
+
predicate: string;
|
|
1330
|
+
type?: string | undefined;
|
|
1331
|
+
headshot?: string | undefined;
|
|
1332
|
+
}>, "many">;
|
|
1333
|
+
webUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1334
|
+
canonicalWebUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1335
|
+
apiUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1336
|
+
path: import("zod").ZodString;
|
|
1337
|
+
versionRange: import("zod").ZodString;
|
|
1338
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1339
|
+
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1340
|
+
standout: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1341
|
+
editorsChoice: import("zod").ZodBoolean;
|
|
1342
|
+
exclusive: import("zod").ZodBoolean;
|
|
1343
|
+
scoop: import("zod").ZodBoolean;
|
|
1344
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1345
|
+
editorsChoice: boolean;
|
|
1346
|
+
exclusive: boolean;
|
|
1347
|
+
scoop: boolean;
|
|
1348
|
+
}, {
|
|
1349
|
+
editorsChoice: boolean;
|
|
1350
|
+
exclusive: boolean;
|
|
1351
|
+
scoop: boolean;
|
|
1352
|
+
}>>;
|
|
1353
|
+
publishedDate: import("zod").ZodString;
|
|
1354
|
+
firstPublishedDate: import("zod").ZodString;
|
|
1355
|
+
publishReference: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1356
|
+
lastModified: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1357
|
+
realtime: import("zod").ZodBoolean;
|
|
1358
|
+
editorialDesk: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1359
|
+
accessLevel: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"premium">, import("zod").ZodLiteral<"subscribed">, import("zod").ZodLiteral<"registered">, import("zod").ZodLiteral<"free">]>>;
|
|
1360
|
+
canBeSyndicated: import("zod").ZodUnion<[import("zod").ZodLiteral<"yes">, import("zod").ZodLiteral<"no">, import("zod").ZodLiteral<"verify">, import("zod").ZodLiteral<"withContributorPayment">, import("zod").ZodLiteral<"unknown">]>;
|
|
1361
|
+
canBeDistributed: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"yes">, import("zod").ZodLiteral<"no">, import("zod").ZodLiteral<"verify">]>>;
|
|
1362
|
+
topper: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1363
|
+
headline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1364
|
+
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1365
|
+
backgroundColour: import("zod").ZodString;
|
|
1366
|
+
backgroundBox: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1367
|
+
textShadow: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1368
|
+
layout: import("zod").ZodString;
|
|
1369
|
+
layoutWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1370
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1371
|
+
backgroundColour: string;
|
|
1372
|
+
layout: string;
|
|
1373
|
+
headline?: string | undefined;
|
|
1374
|
+
standfirst?: string | undefined;
|
|
1375
|
+
backgroundBox?: boolean | undefined;
|
|
1376
|
+
textShadow?: boolean | undefined;
|
|
1377
|
+
layoutWidth?: string | undefined;
|
|
1378
|
+
}, {
|
|
1379
|
+
backgroundColour: string;
|
|
1380
|
+
layout: string;
|
|
1381
|
+
headline?: string | undefined;
|
|
1382
|
+
standfirst?: string | undefined;
|
|
1383
|
+
backgroundBox?: boolean | undefined;
|
|
1384
|
+
textShadow?: boolean | undefined;
|
|
1385
|
+
layoutWidth?: string | undefined;
|
|
1386
|
+
}>>;
|
|
1387
|
+
comments: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1388
|
+
enabled: import("zod").ZodBoolean;
|
|
1389
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1390
|
+
enabled: boolean;
|
|
1391
|
+
}, {
|
|
1392
|
+
enabled: boolean;
|
|
1393
|
+
}>>;
|
|
1394
|
+
containedIn: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
1395
|
+
apiUrl: import("zod").ZodString;
|
|
1396
|
+
id: import("zod").ZodString;
|
|
1397
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1398
|
+
id: string;
|
|
1399
|
+
apiUrl: string;
|
|
1400
|
+
}, {
|
|
1401
|
+
id: string;
|
|
1402
|
+
apiUrl: string;
|
|
1403
|
+
}>, "many">>;
|
|
1404
|
+
tableOfContents: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1405
|
+
labelType: import("zod").ZodString;
|
|
1406
|
+
sequence: import("zod").ZodString;
|
|
1407
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1408
|
+
labelType: string;
|
|
1409
|
+
sequence: string;
|
|
1410
|
+
}, {
|
|
1411
|
+
labelType: string;
|
|
1412
|
+
sequence: string;
|
|
1413
|
+
}>>;
|
|
1414
|
+
}, "id" | "publishedDate" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "canBeSyndicated" | "canBeDistributed">, Pick<{
|
|
1415
|
+
title: import("zod").ZodString;
|
|
1416
|
+
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1417
|
+
byline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1418
|
+
bodyXML: import("zod").ZodString;
|
|
1419
|
+
summary: import("zod").ZodObject<{
|
|
1420
|
+
bodyXML: import("zod").ZodString;
|
|
1421
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1422
|
+
bodyXML: string;
|
|
1423
|
+
}, {
|
|
1424
|
+
bodyXML: string;
|
|
1425
|
+
}>;
|
|
1426
|
+
alternativeTitles: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1427
|
+
promotionalTitle: import("zod").ZodString;
|
|
1428
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1429
|
+
promotionalTitle: string;
|
|
1430
|
+
}, {
|
|
1431
|
+
promotionalTitle: string;
|
|
1432
|
+
}>>;
|
|
1433
|
+
alternativeStandfirsts: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1434
|
+
promotionalStandfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1435
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1436
|
+
promotionalStandfirst?: string | undefined;
|
|
1437
|
+
}, {
|
|
1438
|
+
promotionalStandfirst?: string | undefined;
|
|
1439
|
+
}>>;
|
|
1440
|
+
pinnedPosts: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1441
|
+
contains: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1442
|
+
id: import("zod").ZodString;
|
|
1443
|
+
apiUrl: import("zod").ZodString;
|
|
1444
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1445
|
+
id: string;
|
|
1446
|
+
apiUrl: string;
|
|
1447
|
+
}, {
|
|
1448
|
+
id: string;
|
|
1449
|
+
apiUrl: string;
|
|
1450
|
+
}>, "many">;
|
|
1451
|
+
design: import("zod").ZodObject<{
|
|
1452
|
+
theme: import("zod").ZodUnion<[import("zod").ZodLiteral<"special-report">, import("zod").ZodLiteral<"extra">, import("zod").ZodLiteral<"basic">, import("zod").ZodLiteral<"extra-wide">]>;
|
|
1453
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1454
|
+
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
|
1455
|
+
}, {
|
|
1456
|
+
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
|
1457
|
+
}>;
|
|
1458
|
+
transcript: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1459
|
+
}, "bodyXML">>, {
|
|
1460
|
+
apiUrl: import("zod").ZodString;
|
|
1461
|
+
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/CustomCodeComponent">;
|
|
1462
|
+
path: import("zod").ZodString;
|
|
1463
|
+
versionRange: import("zod").ZodString;
|
|
1464
|
+
attributes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodBoolean, import("zod").ZodUndefined]>>;
|
|
1465
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
1466
|
+
id: string;
|
|
1467
|
+
apiUrl: string;
|
|
1468
|
+
type: "http://www.ft.com/ontology/content/CustomCodeComponent";
|
|
1469
|
+
path: string;
|
|
1470
|
+
publishedDate: string;
|
|
1471
|
+
versionRange: string;
|
|
1472
|
+
firstPublishedDate: string;
|
|
1473
|
+
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
1474
|
+
bodyXML: string;
|
|
1475
|
+
attributes: Record<string, string | boolean | undefined>;
|
|
1476
|
+
canonicalWebUrl?: string | undefined;
|
|
1477
|
+
publishReference?: string | undefined;
|
|
1478
|
+
canBeDistributed?: "yes" | "no" | "verify" | undefined;
|
|
1479
|
+
}, {
|
|
1480
|
+
id: string;
|
|
1481
|
+
apiUrl: string;
|
|
1482
|
+
type: "http://www.ft.com/ontology/content/CustomCodeComponent";
|
|
1483
|
+
path: string;
|
|
1484
|
+
publishedDate: string;
|
|
1485
|
+
versionRange: string;
|
|
1486
|
+
firstPublishedDate: string;
|
|
1487
|
+
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
1488
|
+
bodyXML: string;
|
|
1489
|
+
attributes: Record<string, string | boolean | undefined>;
|
|
1490
|
+
canonicalWebUrl?: string | undefined;
|
|
1491
|
+
publishReference?: string | undefined;
|
|
1492
|
+
canBeDistributed?: "yes" | "no" | "verify" | undefined;
|
|
1299
1493
|
}>]>, "many">>;
|
|
1300
1494
|
dataSource: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
1301
1495
|
binaryUrl: import("zod").ZodString;
|
|
@@ -1580,6 +1774,20 @@ export declare const placeholderSchema: import("zod").ZodObject<import("zod").ob
|
|
|
1580
1774
|
}[] | undefined;
|
|
1581
1775
|
transcript?: string | undefined;
|
|
1582
1776
|
} | undefined;
|
|
1777
|
+
} | {
|
|
1778
|
+
id: string;
|
|
1779
|
+
apiUrl: string;
|
|
1780
|
+
type: "http://www.ft.com/ontology/content/CustomCodeComponent";
|
|
1781
|
+
path: string;
|
|
1782
|
+
publishedDate: string;
|
|
1783
|
+
versionRange: string;
|
|
1784
|
+
firstPublishedDate: string;
|
|
1785
|
+
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
1786
|
+
bodyXML: string;
|
|
1787
|
+
attributes: Record<string, string | boolean | undefined>;
|
|
1788
|
+
canonicalWebUrl?: string | undefined;
|
|
1789
|
+
publishReference?: string | undefined;
|
|
1790
|
+
canBeDistributed?: "yes" | "no" | "verify" | undefined;
|
|
1583
1791
|
})[] | undefined;
|
|
1584
1792
|
}, {
|
|
1585
1793
|
id: string;
|
|
@@ -1848,5 +2056,19 @@ export declare const placeholderSchema: import("zod").ZodObject<import("zod").ob
|
|
|
1848
2056
|
}[] | undefined;
|
|
1849
2057
|
transcript?: string | undefined;
|
|
1850
2058
|
} | undefined;
|
|
2059
|
+
} | {
|
|
2060
|
+
id: string;
|
|
2061
|
+
apiUrl: string;
|
|
2062
|
+
type: "http://www.ft.com/ontology/content/CustomCodeComponent";
|
|
2063
|
+
path: string;
|
|
2064
|
+
publishedDate: string;
|
|
2065
|
+
versionRange: string;
|
|
2066
|
+
firstPublishedDate: string;
|
|
2067
|
+
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
2068
|
+
bodyXML: string;
|
|
2069
|
+
attributes: Record<string, string | boolean | undefined>;
|
|
2070
|
+
canonicalWebUrl?: string | undefined;
|
|
2071
|
+
publishReference?: string | undefined;
|
|
2072
|
+
canBeDistributed?: "yes" | "no" | "verify" | undefined;
|
|
1851
2073
|
})[] | undefined;
|
|
1852
2074
|
}>;
|