@financial-times/cp-content-pipeline-schema 2.10.0 → 2.10.2
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/datasources/capi.d.ts +1 -0
- package/lib/datasources/capi.js +17 -0
- package/lib/datasources/capi.js.map +1 -1
- package/lib/datasources/capi.test.d.ts +1 -0
- package/lib/datasources/capi.test.js +40 -0
- package/lib/datasources/capi.test.js.map +1 -0
- package/lib/model/schemas/capi/article.d.ts +125 -60
- package/lib/model/schemas/capi/audio.d.ts +1111 -119
- package/lib/model/schemas/capi/base-schema.d.ts +125 -99
- package/lib/model/schemas/capi/content-package.d.ts +808 -46
- package/lib/model/schemas/capi/content-package.js +0 -1
- package/lib/model/schemas/capi/content-package.js.map +1 -1
- package/lib/model/schemas/capi/live-blog-package.d.ts +225 -65
- package/lib/model/schemas/capi/live-blog-package.js +0 -1
- package/lib/model/schemas/capi/live-blog-package.js.map +1 -1
- package/lib/model/schemas/capi/placeholder.d.ts +138 -60
- package/package.json +1 -1
- package/src/datasources/capi.test.ts +54 -0
- package/src/datasources/capi.ts +29 -0
- package/src/model/schemas/capi/content-package.ts +0 -1
- package/src/model/schemas/capi/live-blog-package.ts +0 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-package.js","sourceRoot":"","sources":["../../../../src/model/schemas/capi/content-package.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AAEtB,MAAM,2BAA2B,GAAG,+BAAiB;KAClD,IAAI,CAAC;IACJ,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,IAAI;IACb,iBAAiB,EAAE,IAAI;IACvB,QAAQ,EAAE,IAAI;IACd,
|
|
1
|
+
{"version":3,"file":"content-package.js","sourceRoot":"","sources":["../../../../src/model/schemas/capi/content-package.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AAEtB,MAAM,2BAA2B,GAAG,+BAAiB;KAClD,IAAI,CAAC;IACJ,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,IAAI;IACb,iBAAiB,EAAE,IAAI;IACvB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;CACd,CAAC;KACD,KAAK,CACJ,+BAAiB;KACd,IAAI,CAAC;IACJ,OAAO,EAAE,IAAI;CACd,CAAC;KACD,OAAO,EAAE,CACb,CAAA;AAEH,MAAM,4BAA4B,GAAG,gCAAkB,CAAC,IAAI,CAAC;IAC3D,EAAE,EAAE,IAAI;IACR,WAAW,EAAE,IAAI;IACjB,MAAM,EAAE,IAAI;IACZ,eAAe,EAAE,IAAI;IACrB,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,IAAI;IACnB,kBAAkB,EAAE,IAAI;IACxB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,eAAe,EAAE,IAAI;CACtB,CAAC,CAAA;AAEF,MAAM,yBAAyB,GAAG,6BAAe,CAAC,IAAI,CAAC;IACrD,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,YAAY,EAAE,IAAI;CACnB,CAAC,CAAA;AAEW,QAAA,oBAAoB,GAAG,2BAA2B;KAC5D,KAAK,CAAC,4BAA4B,CAAC;KACnC,KAAK,CAAC,yBAAyB,CAAC,CAAA"}
|
|
@@ -1,10 +1,50 @@
|
|
|
1
|
-
export declare const liveBlogPackageSchema: 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">;
|
|
1
|
+
export declare const liveBlogPackageSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<Pick<{
|
|
5
2
|
title: import("zod").ZodString;
|
|
6
|
-
|
|
7
|
-
|
|
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
|
+
}, "title" | "byline" | "summary" | "alternativeTitles" | "pinnedPosts" | "contains">, Pick<{
|
|
46
|
+
id: import("zod").ZodString;
|
|
47
|
+
annotations: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
8
48
|
id: import("zod").ZodString;
|
|
9
49
|
apiUrl: import("zod").ZodString;
|
|
10
50
|
directType: import("zod").ZodString;
|
|
@@ -12,8 +52,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
12
52
|
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
53
|
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
14
54
|
headshot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
+
}, {
|
|
15
56
|
predicate: import("zod").ZodString;
|
|
16
|
-
}
|
|
57
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
17
58
|
id: string;
|
|
18
59
|
apiUrl: string;
|
|
19
60
|
directType: string;
|
|
@@ -34,6 +75,8 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
34
75
|
}>, "many">;
|
|
35
76
|
webUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
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">;
|
|
37
80
|
standout: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
38
81
|
editorsChoice: import("zod").ZodBoolean;
|
|
39
82
|
exclusive: import("zod").ZodBoolean;
|
|
@@ -47,7 +90,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
47
90
|
exclusive: boolean;
|
|
48
91
|
scoop: boolean;
|
|
49
92
|
}>>;
|
|
93
|
+
publishedDate: import("zod").ZodString;
|
|
50
94
|
firstPublishedDate: import("zod").ZodString;
|
|
95
|
+
realtime: import("zod").ZodBoolean;
|
|
51
96
|
editorialDesk: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
97
|
accessLevel: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"premium">, import("zod").ZodLiteral<"subscribed">, import("zod").ZodLiteral<"registered">, import("zod").ZodLiteral<"free">]>>;
|
|
53
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">]>;
|
|
@@ -84,32 +129,27 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
84
129
|
}, {
|
|
85
130
|
enabled: boolean;
|
|
86
131
|
}>>;
|
|
87
|
-
|
|
88
|
-
summary: import("zod").ZodObject<{
|
|
89
|
-
bodyXML: import("zod").ZodString;
|
|
90
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
91
|
-
bodyXML: string;
|
|
92
|
-
}, {
|
|
93
|
-
bodyXML: string;
|
|
94
|
-
}>;
|
|
95
|
-
alternativeTitles: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
96
|
-
promotionalTitle: import("zod").ZodString;
|
|
97
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
98
|
-
promotionalTitle: string;
|
|
99
|
-
}, {
|
|
100
|
-
promotionalTitle: string;
|
|
101
|
-
}>>;
|
|
102
|
-
pinnedPosts: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
103
|
-
contains: import("zod").ZodArray<import("zod").ZodObject<{
|
|
104
|
-
id: import("zod").ZodString;
|
|
132
|
+
containedIn: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
105
133
|
apiUrl: import("zod").ZodString;
|
|
134
|
+
id: import("zod").ZodString;
|
|
106
135
|
}, "strip", import("zod").ZodTypeAny, {
|
|
107
136
|
id: string;
|
|
108
137
|
apiUrl: string;
|
|
109
138
|
}, {
|
|
110
139
|
id: string;
|
|
111
140
|
apiUrl: string;
|
|
112
|
-
}>, "many"
|
|
141
|
+
}>, "many">>;
|
|
142
|
+
tableOfContents: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
143
|
+
labelType: import("zod").ZodString;
|
|
144
|
+
sequence: import("zod").ZodString;
|
|
145
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
146
|
+
labelType: string;
|
|
147
|
+
sequence: string;
|
|
148
|
+
}, {
|
|
149
|
+
labelType: string;
|
|
150
|
+
sequence: string;
|
|
151
|
+
}>>;
|
|
152
|
+
}, "id" | "type" | "types" | "publishedDate" | "annotations" | "webUrl" | "canonicalWebUrl" | "standout" | "firstPublishedDate" | "editorialDesk" | "accessLevel" | "canBeSyndicated" | "canBeDistributed" | "topper" | "comments">>, Pick<{
|
|
113
153
|
mainImage: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
|
|
114
154
|
id: import("zod").ZodString;
|
|
115
155
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/ImageSet">;
|
|
@@ -160,8 +200,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
160
200
|
maxDisplayWidth?: string | undefined;
|
|
161
201
|
pixelWidth?: number | undefined;
|
|
162
202
|
pixelHeight?: number | undefined;
|
|
163
|
-
}>, import("zod").ZodObject<{
|
|
203
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
164
204
|
id: import("zod").ZodString;
|
|
205
|
+
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
165
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">]>>;
|
|
166
207
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
167
208
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -177,8 +218,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
177
218
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
178
219
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
179
220
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
221
|
+
}, {
|
|
180
222
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
181
|
-
}
|
|
223
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
182
224
|
id: string;
|
|
183
225
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
184
226
|
binaryUrl: string;
|
|
@@ -319,8 +361,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
319
361
|
maxDisplayWidth?: string | undefined;
|
|
320
362
|
pixelWidth?: number | undefined;
|
|
321
363
|
pixelHeight?: number | undefined;
|
|
322
|
-
}>, import("zod").ZodObject<{
|
|
364
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
323
365
|
id: import("zod").ZodString;
|
|
366
|
+
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
324
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">]>>;
|
|
325
368
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
326
369
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -336,8 +379,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
336
379
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
337
380
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
338
381
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
382
|
+
}, {
|
|
339
383
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
340
|
-
}
|
|
384
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
341
385
|
id: string;
|
|
342
386
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
343
387
|
binaryUrl: string;
|
|
@@ -415,8 +459,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
415
459
|
maxDisplayWidth?: string | undefined;
|
|
416
460
|
pixelWidth?: number | undefined;
|
|
417
461
|
pixelHeight?: number | undefined;
|
|
418
|
-
}>, import("zod").ZodObject<{
|
|
462
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
419
463
|
id: import("zod").ZodString;
|
|
464
|
+
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
420
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">]>>;
|
|
421
466
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
422
467
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -432,8 +477,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
432
477
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
433
478
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
434
479
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
480
|
+
}, {
|
|
435
481
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
436
|
-
}
|
|
482
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
437
483
|
id: string;
|
|
438
484
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
439
485
|
binaryUrl: string;
|
|
@@ -527,6 +573,100 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
527
573
|
pixelHeight?: number | undefined;
|
|
528
574
|
};
|
|
529
575
|
}>, "many">>;
|
|
576
|
+
alternativeImages: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
577
|
+
promotionalImage: import("zod").ZodObject<{
|
|
578
|
+
id: import("zod").ZodString;
|
|
579
|
+
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
580
|
+
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">]>>;
|
|
581
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
582
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
583
|
+
binaryUrl: import("zod").ZodString;
|
|
584
|
+
copyright: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
585
|
+
notice: import("zod").ZodString;
|
|
586
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
587
|
+
notice: string;
|
|
588
|
+
}, {
|
|
589
|
+
notice: string;
|
|
590
|
+
}>>;
|
|
591
|
+
minDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
592
|
+
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
593
|
+
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
594
|
+
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
595
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
596
|
+
id: string;
|
|
597
|
+
type: "http://www.ft.com/ontology/content/Image";
|
|
598
|
+
binaryUrl: string;
|
|
599
|
+
format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
|
|
600
|
+
title?: string | undefined;
|
|
601
|
+
description?: string | undefined;
|
|
602
|
+
copyright?: {
|
|
603
|
+
notice: string;
|
|
604
|
+
} | undefined;
|
|
605
|
+
minDisplayWidth?: string | undefined;
|
|
606
|
+
maxDisplayWidth?: string | undefined;
|
|
607
|
+
pixelWidth?: number | undefined;
|
|
608
|
+
pixelHeight?: number | undefined;
|
|
609
|
+
}, {
|
|
610
|
+
id: string;
|
|
611
|
+
type: "http://www.ft.com/ontology/content/Image";
|
|
612
|
+
binaryUrl: string;
|
|
613
|
+
format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
|
|
614
|
+
title?: string | undefined;
|
|
615
|
+
description?: string | undefined;
|
|
616
|
+
copyright?: {
|
|
617
|
+
notice: string;
|
|
618
|
+
} | undefined;
|
|
619
|
+
minDisplayWidth?: string | undefined;
|
|
620
|
+
maxDisplayWidth?: string | undefined;
|
|
621
|
+
pixelWidth?: number | undefined;
|
|
622
|
+
pixelHeight?: number | undefined;
|
|
623
|
+
}>;
|
|
624
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
625
|
+
promotionalImage: {
|
|
626
|
+
id: string;
|
|
627
|
+
type: "http://www.ft.com/ontology/content/Image";
|
|
628
|
+
binaryUrl: string;
|
|
629
|
+
format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
|
|
630
|
+
title?: string | undefined;
|
|
631
|
+
description?: string | undefined;
|
|
632
|
+
copyright?: {
|
|
633
|
+
notice: string;
|
|
634
|
+
} | undefined;
|
|
635
|
+
minDisplayWidth?: string | undefined;
|
|
636
|
+
maxDisplayWidth?: string | undefined;
|
|
637
|
+
pixelWidth?: number | undefined;
|
|
638
|
+
pixelHeight?: number | undefined;
|
|
639
|
+
};
|
|
640
|
+
}, {
|
|
641
|
+
promotionalImage: {
|
|
642
|
+
id: string;
|
|
643
|
+
type: "http://www.ft.com/ontology/content/Image";
|
|
644
|
+
binaryUrl: string;
|
|
645
|
+
format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
|
|
646
|
+
title?: string | undefined;
|
|
647
|
+
description?: string | undefined;
|
|
648
|
+
copyright?: {
|
|
649
|
+
notice: string;
|
|
650
|
+
} | undefined;
|
|
651
|
+
minDisplayWidth?: string | undefined;
|
|
652
|
+
maxDisplayWidth?: string | undefined;
|
|
653
|
+
pixelWidth?: number | undefined;
|
|
654
|
+
pixelHeight?: number | undefined;
|
|
655
|
+
};
|
|
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
|
+
}>>;
|
|
530
670
|
embeds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
531
671
|
id: import("zod").ZodString;
|
|
532
672
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/ImageSet">;
|
|
@@ -577,8 +717,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
577
717
|
maxDisplayWidth?: string | undefined;
|
|
578
718
|
pixelWidth?: number | undefined;
|
|
579
719
|
pixelHeight?: number | undefined;
|
|
580
|
-
}>, import("zod").ZodObject<{
|
|
720
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
581
721
|
id: import("zod").ZodString;
|
|
722
|
+
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
582
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">]>>;
|
|
583
724
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
584
725
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -594,8 +735,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
594
735
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
595
736
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
596
737
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
738
|
+
}, {
|
|
597
739
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
598
|
-
}
|
|
740
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
599
741
|
id: string;
|
|
600
742
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
601
743
|
binaryUrl: string;
|
|
@@ -706,20 +848,20 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
706
848
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
707
849
|
videoCodec: import("zod").ZodOptional<import("zod").ZodString>;
|
|
708
850
|
}, "strip", import("zod").ZodTypeAny, {
|
|
709
|
-
audioCodec?: string | undefined;
|
|
710
851
|
binaryUrl?: string | undefined;
|
|
852
|
+
pixelWidth?: number | undefined;
|
|
853
|
+
pixelHeight?: number | undefined;
|
|
854
|
+
audioCodec?: string | undefined;
|
|
711
855
|
duration?: number | undefined;
|
|
712
856
|
mediaType?: string | undefined;
|
|
713
|
-
pixelHeight?: number | undefined;
|
|
714
|
-
pixelWidth?: number | undefined;
|
|
715
857
|
videoCodec?: string | undefined;
|
|
716
858
|
}, {
|
|
717
|
-
audioCodec?: string | undefined;
|
|
718
859
|
binaryUrl?: string | undefined;
|
|
860
|
+
pixelWidth?: number | undefined;
|
|
861
|
+
pixelHeight?: number | undefined;
|
|
862
|
+
audioCodec?: string | undefined;
|
|
719
863
|
duration?: number | undefined;
|
|
720
864
|
mediaType?: string | undefined;
|
|
721
|
-
pixelHeight?: number | undefined;
|
|
722
|
-
pixelWidth?: number | undefined;
|
|
723
865
|
videoCodec?: string | undefined;
|
|
724
866
|
}>, "many">;
|
|
725
867
|
poster: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
@@ -772,8 +914,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
772
914
|
maxDisplayWidth?: string | undefined;
|
|
773
915
|
pixelWidth?: number | undefined;
|
|
774
916
|
pixelHeight?: number | undefined;
|
|
775
|
-
}>, import("zod").ZodObject<{
|
|
917
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
776
918
|
id: import("zod").ZodString;
|
|
919
|
+
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
777
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">]>>;
|
|
778
921
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
779
922
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -789,8 +932,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
789
932
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
790
933
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
791
934
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
935
|
+
}, {
|
|
792
936
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
793
|
-
}
|
|
937
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
794
938
|
id: string;
|
|
795
939
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
796
940
|
binaryUrl: string;
|
|
@@ -890,12 +1034,12 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
890
1034
|
id: string;
|
|
891
1035
|
type: "http://www.ft.com/ontology/content/Clip";
|
|
892
1036
|
dataSource: {
|
|
893
|
-
audioCodec?: string | undefined;
|
|
894
1037
|
binaryUrl?: string | undefined;
|
|
1038
|
+
pixelWidth?: number | undefined;
|
|
1039
|
+
pixelHeight?: number | undefined;
|
|
1040
|
+
audioCodec?: string | undefined;
|
|
895
1041
|
duration?: number | undefined;
|
|
896
1042
|
mediaType?: string | undefined;
|
|
897
|
-
pixelHeight?: number | undefined;
|
|
898
|
-
pixelWidth?: number | undefined;
|
|
899
1043
|
videoCodec?: string | undefined;
|
|
900
1044
|
}[];
|
|
901
1045
|
format?: "standardInline" | "mobile" | undefined;
|
|
@@ -937,12 +1081,12 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
937
1081
|
id: string;
|
|
938
1082
|
type: "http://www.ft.com/ontology/content/Clip";
|
|
939
1083
|
dataSource: {
|
|
940
|
-
audioCodec?: string | undefined;
|
|
941
1084
|
binaryUrl?: string | undefined;
|
|
1085
|
+
pixelWidth?: number | undefined;
|
|
1086
|
+
pixelHeight?: number | undefined;
|
|
1087
|
+
audioCodec?: string | undefined;
|
|
942
1088
|
duration?: number | undefined;
|
|
943
1089
|
mediaType?: string | undefined;
|
|
944
|
-
pixelHeight?: number | undefined;
|
|
945
|
-
pixelWidth?: number | undefined;
|
|
946
1090
|
videoCodec?: string | undefined;
|
|
947
1091
|
}[];
|
|
948
1092
|
format?: "standardInline" | "mobile" | undefined;
|
|
@@ -1022,12 +1166,12 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
1022
1166
|
id: string;
|
|
1023
1167
|
type: "http://www.ft.com/ontology/content/Clip";
|
|
1024
1168
|
dataSource: {
|
|
1025
|
-
audioCodec?: string | undefined;
|
|
1026
1169
|
binaryUrl?: string | undefined;
|
|
1170
|
+
pixelWidth?: number | undefined;
|
|
1171
|
+
pixelHeight?: number | undefined;
|
|
1172
|
+
audioCodec?: string | undefined;
|
|
1027
1173
|
duration?: number | undefined;
|
|
1028
1174
|
mediaType?: string | undefined;
|
|
1029
|
-
pixelHeight?: number | undefined;
|
|
1030
|
-
pixelWidth?: number | undefined;
|
|
1031
1175
|
videoCodec?: string | undefined;
|
|
1032
1176
|
}[];
|
|
1033
1177
|
format?: "standardInline" | "mobile" | undefined;
|
|
@@ -1066,9 +1210,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
1066
1210
|
description?: string | undefined;
|
|
1067
1211
|
} | undefined;
|
|
1068
1212
|
}[];
|
|
1213
|
+
description?: string | undefined;
|
|
1069
1214
|
caption?: string | undefined;
|
|
1070
1215
|
dataCopyright?: string | undefined;
|
|
1071
|
-
description?: string | undefined;
|
|
1072
1216
|
displayTitle?: string | undefined;
|
|
1073
1217
|
contentWarning?: string[] | undefined;
|
|
1074
1218
|
noAudio?: boolean | undefined;
|
|
@@ -1089,12 +1233,12 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
1089
1233
|
id: string;
|
|
1090
1234
|
type: "http://www.ft.com/ontology/content/Clip";
|
|
1091
1235
|
dataSource: {
|
|
1092
|
-
audioCodec?: string | undefined;
|
|
1093
1236
|
binaryUrl?: string | undefined;
|
|
1237
|
+
pixelWidth?: number | undefined;
|
|
1238
|
+
pixelHeight?: number | undefined;
|
|
1239
|
+
audioCodec?: string | undefined;
|
|
1094
1240
|
duration?: number | undefined;
|
|
1095
1241
|
mediaType?: string | undefined;
|
|
1096
|
-
pixelHeight?: number | undefined;
|
|
1097
|
-
pixelWidth?: number | undefined;
|
|
1098
1242
|
videoCodec?: string | undefined;
|
|
1099
1243
|
}[];
|
|
1100
1244
|
format?: "standardInline" | "mobile" | undefined;
|
|
@@ -1133,9 +1277,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
1133
1277
|
description?: string | undefined;
|
|
1134
1278
|
} | undefined;
|
|
1135
1279
|
}[];
|
|
1280
|
+
description?: string | undefined;
|
|
1136
1281
|
caption?: string | undefined;
|
|
1137
1282
|
dataCopyright?: string | undefined;
|
|
1138
|
-
description?: string | undefined;
|
|
1139
1283
|
displayTitle?: string | undefined;
|
|
1140
1284
|
contentWarning?: string[] | undefined;
|
|
1141
1285
|
noAudio?: boolean | undefined;
|
|
@@ -1150,7 +1294,23 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
1150
1294
|
transcript?: string | undefined;
|
|
1151
1295
|
} | undefined;
|
|
1152
1296
|
}>]>, "many">>;
|
|
1153
|
-
|
|
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" | "embeds">>, "strip", import("zod").ZodTypeAny, {
|
|
1154
1314
|
id: string;
|
|
1155
1315
|
types: string[];
|
|
1156
1316
|
title: string;
|
|
@@ -1337,12 +1497,12 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
1337
1497
|
id: string;
|
|
1338
1498
|
type: "http://www.ft.com/ontology/content/Clip";
|
|
1339
1499
|
dataSource: {
|
|
1340
|
-
audioCodec?: string | undefined;
|
|
1341
1500
|
binaryUrl?: string | undefined;
|
|
1501
|
+
pixelWidth?: number | undefined;
|
|
1502
|
+
pixelHeight?: number | undefined;
|
|
1503
|
+
audioCodec?: string | undefined;
|
|
1342
1504
|
duration?: number | undefined;
|
|
1343
1505
|
mediaType?: string | undefined;
|
|
1344
|
-
pixelHeight?: number | undefined;
|
|
1345
|
-
pixelWidth?: number | undefined;
|
|
1346
1506
|
videoCodec?: string | undefined;
|
|
1347
1507
|
}[];
|
|
1348
1508
|
format?: "standardInline" | "mobile" | undefined;
|
|
@@ -1381,9 +1541,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
1381
1541
|
description?: string | undefined;
|
|
1382
1542
|
} | undefined;
|
|
1383
1543
|
}[];
|
|
1544
|
+
description?: string | undefined;
|
|
1384
1545
|
caption?: string | undefined;
|
|
1385
1546
|
dataCopyright?: string | undefined;
|
|
1386
|
-
description?: string | undefined;
|
|
1387
1547
|
displayTitle?: string | undefined;
|
|
1388
1548
|
contentWarning?: string[] | undefined;
|
|
1389
1549
|
noAudio?: boolean | undefined;
|
|
@@ -1585,12 +1745,12 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
1585
1745
|
id: string;
|
|
1586
1746
|
type: "http://www.ft.com/ontology/content/Clip";
|
|
1587
1747
|
dataSource: {
|
|
1588
|
-
audioCodec?: string | undefined;
|
|
1589
1748
|
binaryUrl?: string | undefined;
|
|
1749
|
+
pixelWidth?: number | undefined;
|
|
1750
|
+
pixelHeight?: number | undefined;
|
|
1751
|
+
audioCodec?: string | undefined;
|
|
1590
1752
|
duration?: number | undefined;
|
|
1591
1753
|
mediaType?: string | undefined;
|
|
1592
|
-
pixelHeight?: number | undefined;
|
|
1593
|
-
pixelWidth?: number | undefined;
|
|
1594
1754
|
videoCodec?: string | undefined;
|
|
1595
1755
|
}[];
|
|
1596
1756
|
format?: "standardInline" | "mobile" | undefined;
|
|
@@ -1629,9 +1789,9 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
1629
1789
|
description?: string | undefined;
|
|
1630
1790
|
} | undefined;
|
|
1631
1791
|
}[];
|
|
1792
|
+
description?: string | undefined;
|
|
1632
1793
|
caption?: string | undefined;
|
|
1633
1794
|
dataCopyright?: string | undefined;
|
|
1634
|
-
description?: string | undefined;
|
|
1635
1795
|
displayTitle?: string | undefined;
|
|
1636
1796
|
contentWarning?: string[] | undefined;
|
|
1637
1797
|
noAudio?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-blog-package.js","sourceRoot":"","sources":["../../../../src/model/schemas/capi/live-blog-package.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AAEtB,MAAM,4BAA4B,GAAG,+BAAiB,CAAC,IAAI,CAAC;IAC1D,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,iBAAiB,EAAE,IAAI;IACvB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"live-blog-package.js","sourceRoot":"","sources":["../../../../src/model/schemas/capi/live-blog-package.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AAEtB,MAAM,4BAA4B,GAAG,+BAAiB,CAAC,IAAI,CAAC;IAC1D,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,iBAAiB,EAAE,IAAI;IACvB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;CAClB,CAAC,CAAA;AAEF,MAAM,6BAA6B,GAAG,gCAAkB,CAAC,IAAI,CAAC;IAC5D,EAAE,EAAE,IAAI;IACR,WAAW,EAAE,IAAI;IACjB,MAAM,EAAE,IAAI;IACZ,eAAe,EAAE,IAAI;IACrB,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,IAAI;IACnB,kBAAkB,EAAE,IAAI;IACxB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;CACf,CAAC,CAAA;AAEF,MAAM,0BAA0B,GAAG,6BAAe,CAAC,IAAI,CAAC;IACtD,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;CACb,CAAC,CAAA;AAEW,QAAA,qBAAqB,GAAG,4BAA4B;KAC9D,KAAK,CAAC,6BAA6B,CAAC;KACpC,KAAK,CAAC,0BAA0B,CAAC,CAAA"}
|