@financial-times/cp-content-pipeline-schema 1.4.4 → 1.5.0
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 +17 -0
- package/lib/fixtures/capiObject.js +1 -1
- package/lib/fixtures/capiObject.js.map +1 -1
- package/lib/fixtures/clipSet.d.ts +2 -0
- package/lib/fixtures/clipSet.js +70 -0
- package/lib/fixtures/clipSet.js.map +1 -0
- package/lib/generated/index.d.ts +120 -3
- package/lib/model/CapiResponse.d.ts +2 -2
- package/lib/model/CapiResponse.js +1 -1
- package/lib/model/CapiResponse.js.map +1 -1
- package/lib/model/Clip.d.ts +28 -0
- package/lib/model/Clip.js +51 -0
- package/lib/model/Clip.js.map +1 -0
- package/lib/model/schemas/capi/article.d.ts +602 -9
- package/lib/model/schemas/capi/audio.d.ts +31 -31
- package/lib/model/schemas/capi/base-schema.d.ts +1355 -14
- package/lib/model/schemas/capi/base-schema.js +41 -2
- package/lib/model/schemas/capi/base-schema.js.map +1 -1
- package/lib/model/schemas/capi/content-package.d.ts +3 -3
- package/lib/model/schemas/capi/live-blog-package.d.ts +602 -9
- package/lib/model/schemas/capi/placeholder.d.ts +602 -9
- package/lib/resolvers/clip.d.ts +10 -0
- package/lib/resolvers/clip.js +13 -0
- package/lib/resolvers/clip.js.map +1 -0
- package/lib/resolvers/content-tree/Workarounds.d.ts +10 -2
- package/lib/resolvers/content-tree/nodePredicates.d.ts +3 -3
- package/lib/resolvers/content-tree/references/ClipSet.d.ts +27 -0
- package/lib/resolvers/content-tree/references/ClipSet.js +37 -0
- package/lib/resolvers/content-tree/references/ClipSet.js.map +1 -0
- package/lib/resolvers/content-tree/references/ImageSet.js +3 -2
- package/lib/resolvers/content-tree/references/ImageSet.js.map +1 -1
- package/lib/resolvers/content-tree/references/Reference.d.ts +1 -1
- package/lib/resolvers/content-tree/references/ScrollyImage.js +3 -2
- package/lib/resolvers/content-tree/references/ScrollyImage.js.map +1 -1
- package/lib/resolvers/content-tree/references/index.d.ts +4 -1
- package/lib/resolvers/content-tree/references/index.js +4 -0
- package/lib/resolvers/content-tree/references/index.js.map +1 -1
- package/lib/resolvers/content-tree/tagMappings.js +9 -0
- package/lib/resolvers/content-tree/tagMappings.js.map +1 -1
- package/lib/resolvers/index.d.ts +9 -0
- package/lib/resolvers/index.js +2 -0
- package/lib/resolvers/index.js.map +1 -1
- package/lib/resolvers/scalars.d.ts +2 -0
- package/lib/resolvers/scalars.js +6 -1
- package/lib/resolvers/scalars.js.map +1 -1
- package/package.json +1 -1
- package/src/fixtures/capiObject.ts +1 -1
- package/src/fixtures/clipSet.ts +72 -0
- package/src/generated/index.ts +128 -3
- package/src/model/CapiResponse.ts +3 -2
- package/src/model/Clip.ts +75 -0
- package/src/model/__snapshots__/RichText.test.ts.snap +25 -0
- package/src/model/schemas/capi/base-schema.ts +45 -1
- package/src/resolvers/clip.ts +13 -0
- package/src/resolvers/content-tree/Workarounds.ts +13 -2
- package/src/resolvers/content-tree/references/ClipSet.ts +49 -0
- package/src/resolvers/content-tree/references/ImageSet.ts +9 -5
- package/src/resolvers/content-tree/references/ScrollyImage.ts +9 -5
- package/src/resolvers/content-tree/references/index.ts +6 -0
- package/src/resolvers/content-tree/tagMappings.ts +10 -0
- package/src/resolvers/index.ts +2 -0
- package/src/resolvers/scalars.ts +8 -0
- package/src/types/internal-content.d.ts +4 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/typedefs/clip.graphql +28 -0
- package/typedefs/references/clipSet.graphql +19 -0
- package/typedefs/scalars.graphql +1 -0
|
@@ -2,6 +2,7 @@ export declare const audioSchema: import("zod").ZodObject<{
|
|
|
2
2
|
id: import("zod").ZodString;
|
|
3
3
|
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
4
4
|
title: import("zod").ZodString;
|
|
5
|
+
publishedDate: import("zod").ZodString;
|
|
5
6
|
annotations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
6
7
|
id: import("zod").ZodString;
|
|
7
8
|
apiUrl: import("zod").ZodString;
|
|
@@ -32,7 +33,6 @@ export declare const audioSchema: import("zod").ZodObject<{
|
|
|
32
33
|
}>, "many">;
|
|
33
34
|
webUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
35
|
canonicalWebUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
-
publishedDate: import("zod").ZodString;
|
|
36
36
|
firstPublishedDate: import("zod").ZodString;
|
|
37
37
|
accessLevel: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"premium">, import("zod").ZodLiteral<"subscribed">, import("zod").ZodLiteral<"registered">, import("zod").ZodLiteral<"free">]>>;
|
|
38
38
|
canBeSyndicated: import("zod").ZodUnion<[import("zod").ZodLiteral<"yes">, import("zod").ZodLiteral<"no">, import("zod").ZodLiteral<"verify">, import("zod").ZodLiteral<"withContributorPayment">, import("zod").ZodLiteral<"unknown">]>;
|
|
@@ -45,6 +45,22 @@ export declare const audioSchema: import("zod").ZodObject<{
|
|
|
45
45
|
}, {
|
|
46
46
|
promotionalTitle: string;
|
|
47
47
|
}>>;
|
|
48
|
+
dataSource: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
49
|
+
binaryUrl: import("zod").ZodString;
|
|
50
|
+
duration: import("zod").ZodNumber;
|
|
51
|
+
filesize: import("zod").ZodNumber;
|
|
52
|
+
mediaType: import("zod").ZodString;
|
|
53
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
54
|
+
binaryUrl: string;
|
|
55
|
+
duration: number;
|
|
56
|
+
mediaType: string;
|
|
57
|
+
filesize: number;
|
|
58
|
+
}, {
|
|
59
|
+
binaryUrl: string;
|
|
60
|
+
duration: number;
|
|
61
|
+
mediaType: string;
|
|
62
|
+
filesize: number;
|
|
63
|
+
}>, "many">>;
|
|
48
64
|
mainImage: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
|
|
49
65
|
id: import("zod").ZodString;
|
|
50
66
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/ImageSet">;
|
|
@@ -301,26 +317,11 @@ export declare const audioSchema: import("zod").ZodObject<{
|
|
|
301
317
|
pixelWidth?: number | undefined;
|
|
302
318
|
pixelHeight?: number | undefined;
|
|
303
319
|
}>]>>;
|
|
304
|
-
dataSource: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
305
|
-
binaryUrl: import("zod").ZodString;
|
|
306
|
-
duration: import("zod").ZodNumber;
|
|
307
|
-
filesize: import("zod").ZodNumber;
|
|
308
|
-
mediaType: import("zod").ZodString;
|
|
309
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
310
|
-
binaryUrl: string;
|
|
311
|
-
duration: number;
|
|
312
|
-
filesize: number;
|
|
313
|
-
mediaType: string;
|
|
314
|
-
}, {
|
|
315
|
-
binaryUrl: string;
|
|
316
|
-
duration: number;
|
|
317
|
-
filesize: number;
|
|
318
|
-
mediaType: string;
|
|
319
|
-
}>, "many">>;
|
|
320
320
|
}, "strip", import("zod").ZodTypeAny, {
|
|
321
321
|
id: string;
|
|
322
322
|
types: string[];
|
|
323
323
|
title: string;
|
|
324
|
+
publishedDate: string;
|
|
324
325
|
annotations: {
|
|
325
326
|
id: string;
|
|
326
327
|
apiUrl: string;
|
|
@@ -331,7 +332,6 @@ export declare const audioSchema: import("zod").ZodObject<{
|
|
|
331
332
|
type?: string | undefined;
|
|
332
333
|
headshot?: string | undefined;
|
|
333
334
|
}[];
|
|
334
|
-
publishedDate: string;
|
|
335
335
|
firstPublishedDate: string;
|
|
336
336
|
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
337
337
|
canBeDistributed: "yes" | "no" | "verify";
|
|
@@ -342,6 +342,12 @@ export declare const audioSchema: import("zod").ZodObject<{
|
|
|
342
342
|
alternativeTitles?: {
|
|
343
343
|
promotionalTitle: string;
|
|
344
344
|
} | undefined;
|
|
345
|
+
dataSource?: {
|
|
346
|
+
binaryUrl: string;
|
|
347
|
+
duration: number;
|
|
348
|
+
mediaType: string;
|
|
349
|
+
filesize: number;
|
|
350
|
+
}[] | undefined;
|
|
345
351
|
mainImage?: {
|
|
346
352
|
id: string;
|
|
347
353
|
type: "http://www.ft.com/ontology/content/Image";
|
|
@@ -404,16 +410,11 @@ export declare const audioSchema: import("zod").ZodObject<{
|
|
|
404
410
|
})[];
|
|
405
411
|
description?: string | undefined;
|
|
406
412
|
} | undefined;
|
|
407
|
-
dataSource?: {
|
|
408
|
-
binaryUrl: string;
|
|
409
|
-
duration: number;
|
|
410
|
-
filesize: number;
|
|
411
|
-
mediaType: string;
|
|
412
|
-
}[] | undefined;
|
|
413
413
|
}, {
|
|
414
414
|
id: string;
|
|
415
415
|
types: string[];
|
|
416
416
|
title: string;
|
|
417
|
+
publishedDate: string;
|
|
417
418
|
annotations: {
|
|
418
419
|
id: string;
|
|
419
420
|
apiUrl: string;
|
|
@@ -424,7 +425,6 @@ export declare const audioSchema: import("zod").ZodObject<{
|
|
|
424
425
|
type?: string | undefined;
|
|
425
426
|
headshot?: string | undefined;
|
|
426
427
|
}[];
|
|
427
|
-
publishedDate: string;
|
|
428
428
|
firstPublishedDate: string;
|
|
429
429
|
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
430
430
|
canBeDistributed: "yes" | "no" | "verify";
|
|
@@ -435,6 +435,12 @@ export declare const audioSchema: import("zod").ZodObject<{
|
|
|
435
435
|
alternativeTitles?: {
|
|
436
436
|
promotionalTitle: string;
|
|
437
437
|
} | undefined;
|
|
438
|
+
dataSource?: {
|
|
439
|
+
binaryUrl: string;
|
|
440
|
+
duration: number;
|
|
441
|
+
mediaType: string;
|
|
442
|
+
filesize: number;
|
|
443
|
+
}[] | undefined;
|
|
438
444
|
mainImage?: {
|
|
439
445
|
id: string;
|
|
440
446
|
type: "http://www.ft.com/ontology/content/Image";
|
|
@@ -497,10 +503,4 @@ export declare const audioSchema: import("zod").ZodObject<{
|
|
|
497
503
|
})[];
|
|
498
504
|
description?: string | undefined;
|
|
499
505
|
} | undefined;
|
|
500
|
-
dataSource?: {
|
|
501
|
-
binaryUrl: string;
|
|
502
|
-
duration: number;
|
|
503
|
-
filesize: number;
|
|
504
|
-
mediaType: string;
|
|
505
|
-
}[] | undefined;
|
|
506
506
|
}>;
|