@financial-times/cp-content-pipeline-schema 1.4.2 → 1.4.4
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 +47 -20
- package/lib/model/CapiResponse.d.ts +5 -5
- package/lib/model/CapiResponse.js +29 -11
- package/lib/model/CapiResponse.js.map +1 -1
- package/lib/model/schemas/capi/article.d.ts +3 -0
- 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 +3 -0
- package/lib/model/schemas/capi/audio.js +1 -0
- package/lib/model/schemas/capi/audio.js.map +1 -1
- package/lib/model/schemas/capi/base-schema.d.ts +3 -0
- package/lib/model/schemas/capi/base-schema.js +5 -0
- package/lib/model/schemas/capi/base-schema.js.map +1 -1
- package/lib/model/schemas/capi/content-package.d.ts +3 -0
- package/lib/model/schemas/capi/content-package.js +1 -0
- package/lib/model/schemas/capi/content-package.js.map +1 -1
- package/lib/model/schemas/capi/live-blog-package.d.ts +3 -0
- package/lib/model/schemas/capi/live-blog-package.js +1 -0
- package/lib/model/schemas/capi/live-blog-package.js.map +1 -1
- package/lib/model/schemas/capi/placeholder.d.ts +3 -0
- package/lib/model/schemas/capi/placeholder.js +1 -0
- package/lib/model/schemas/capi/placeholder.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 +14 -12
- package/lib/resolvers/index.js +3 -1
- package/lib/resolvers/index.js.map +1 -1
- package/lib/resolvers/meta-link.d.ts +5 -0
- package/lib/resolvers/meta-link.js +15 -0
- package/lib/resolvers/meta-link.js.map +1 -0
- package/lib/resolvers/teaser.d.ts +3 -3
- package/lib/resolvers/teaser.js +6 -4
- package/lib/resolvers/teaser.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/index.ts +49 -20
- package/src/model/CapiResponse.ts +35 -17
- package/src/model/schemas/capi/article.ts +1 -0
- package/src/model/schemas/capi/audio.ts +1 -0
- package/src/model/schemas/capi/base-schema.ts +5 -0
- package/src/model/schemas/capi/content-package.ts +1 -0
- package/src/model/schemas/capi/live-blog-package.ts +1 -0
- package/src/model/schemas/capi/placeholder.ts +1 -0
- package/src/resolvers/content.ts +1 -0
- package/src/resolvers/index.ts +3 -1
- package/src/resolvers/meta-link.ts +16 -0
- package/src/resolvers/teaser.ts +6 -4
- package/src/types/n-display-metadata.d.ts +15 -8
- package/tsconfig.tsbuildinfo +1 -1
- package/typedefs/content.graphql +16 -10
- package/typedefs/teaser.graphql +4 -2
|
@@ -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,eAAe,EAAE,IAAI;IACrB,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,eAAe,EAAE,IAAI;IACrB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;CACf,CAAC,CAAA;AAEF,MAAM,yBAAyB,GAAG,6BAAe,CAAC,IAAI,CAAC;IACrD,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;CACjB,CAAC,CAAA;AAEW,QAAA,oBAAoB,GAAG,2BAA2B;KAC5D,KAAK,CAAC,4BAA4B,CAAC;KACnC,KAAK,CAAC,yBAAyB,CAAC,CAAA"}
|
|
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,eAAe,EAAE,IAAI;IACrB,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,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;CACf,CAAC,CAAA;AAEF,MAAM,yBAAyB,GAAG,6BAAe,CAAC,IAAI,CAAC;IACrD,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;CACjB,CAAC,CAAA;AAEW,QAAA,oBAAoB,GAAG,2BAA2B;KAC5D,KAAK,CAAC,4BAA4B,CAAC;KACnC,KAAK,CAAC,yBAAyB,CAAC,CAAA"}
|
|
@@ -50,6 +50,7 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
50
50
|
firstPublishedDate: import("zod").ZodString;
|
|
51
51
|
accessLevel: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"premium">, import("zod").ZodLiteral<"subscribed">, import("zod").ZodLiteral<"registered">, import("zod").ZodLiteral<"free">]>>;
|
|
52
52
|
canBeSyndicated: import("zod").ZodUnion<[import("zod").ZodLiteral<"yes">, import("zod").ZodLiteral<"no">, import("zod").ZodLiteral<"verify">, import("zod").ZodLiteral<"withContributorPayment">, import("zod").ZodLiteral<"unknown">]>;
|
|
53
|
+
canBeDistributed: import("zod").ZodUnion<[import("zod").ZodLiteral<"yes">, import("zod").ZodLiteral<"no">, import("zod").ZodLiteral<"verify">]>;
|
|
53
54
|
topper: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
54
55
|
headline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
56
|
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -703,6 +704,7 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
703
704
|
publishedDate: string;
|
|
704
705
|
firstPublishedDate: string;
|
|
705
706
|
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
707
|
+
canBeDistributed: "yes" | "no" | "verify";
|
|
706
708
|
summary: {
|
|
707
709
|
bodyXML: string;
|
|
708
710
|
};
|
|
@@ -881,6 +883,7 @@ export declare const liveBlogPackageSchema: import("zod").ZodObject<{
|
|
|
881
883
|
publishedDate: string;
|
|
882
884
|
firstPublishedDate: string;
|
|
883
885
|
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
886
|
+
canBeDistributed: "yes" | "no" | "verify";
|
|
884
887
|
summary: {
|
|
885
888
|
bodyXML: string;
|
|
886
889
|
};
|
|
@@ -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;IACjB,QAAQ,EAAE,IAAI;CACf,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,eAAe,EAAE,IAAI;IACrB,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"}
|
|
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;IACjB,QAAQ,EAAE,IAAI;CACf,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,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"}
|
|
@@ -51,6 +51,7 @@ export declare const placeholderSchema: import("zod").ZodObject<{
|
|
|
51
51
|
firstPublishedDate: import("zod").ZodString;
|
|
52
52
|
accessLevel: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"premium">, import("zod").ZodLiteral<"subscribed">, import("zod").ZodLiteral<"registered">, import("zod").ZodLiteral<"free">]>>;
|
|
53
53
|
canBeSyndicated: import("zod").ZodUnion<[import("zod").ZodLiteral<"yes">, import("zod").ZodLiteral<"no">, import("zod").ZodLiteral<"verify">, import("zod").ZodLiteral<"withContributorPayment">, import("zod").ZodLiteral<"unknown">]>;
|
|
54
|
+
canBeDistributed: import("zod").ZodUnion<[import("zod").ZodLiteral<"yes">, import("zod").ZodLiteral<"no">, import("zod").ZodLiteral<"verify">]>;
|
|
54
55
|
topper: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
55
56
|
headline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
57
|
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -785,6 +786,7 @@ export declare const placeholderSchema: import("zod").ZodObject<{
|
|
|
785
786
|
publishedDate: string;
|
|
786
787
|
firstPublishedDate: string;
|
|
787
788
|
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
789
|
+
canBeDistributed: "yes" | "no" | "verify";
|
|
788
790
|
bodyXML: string;
|
|
789
791
|
type?: string | undefined;
|
|
790
792
|
standfirst?: string | undefined;
|
|
@@ -981,6 +983,7 @@ export declare const placeholderSchema: import("zod").ZodObject<{
|
|
|
981
983
|
publishedDate: string;
|
|
982
984
|
firstPublishedDate: string;
|
|
983
985
|
canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
986
|
+
canBeDistributed: "yes" | "no" | "verify";
|
|
984
987
|
bodyXML: string;
|
|
985
988
|
type?: string | undefined;
|
|
986
989
|
standfirst?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder.js","sourceRoot":"","sources":["../../../../src/model/schemas/capi/placeholder.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AAEtB,MAAM,wBAAwB,GAAG,+BAAiB,CAAC,IAAI,CAAC;IACtD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,iBAAiB,EAAE,IAAI;IACvB,sBAAsB,EAAE,IAAI;CAC7B,CAAC,CAAA;AAEF,MAAM,yBAAyB,GAAG,gCAAkB,CAAC,IAAI,CAAC;IACxD,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,eAAe,EAAE,IAAI;IACrB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;CAClB,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAAG,6BAAe,CAAC,IAAI,CAAC;IAClD,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,iBAAiB,EAAE,IAAI;IACvB,MAAM,EAAE,IAAI;CACb,CAAC,CAAA;AAEW,QAAA,iBAAiB,GAAG,wBAAwB;KACtD,KAAK,CAAC,yBAAyB,CAAC;KAChC,KAAK,CAAC,sBAAsB,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"placeholder.js","sourceRoot":"","sources":["../../../../src/model/schemas/capi/placeholder.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AAEtB,MAAM,wBAAwB,GAAG,+BAAiB,CAAC,IAAI,CAAC;IACtD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,iBAAiB,EAAE,IAAI;IACvB,sBAAsB,EAAE,IAAI;CAC7B,CAAC,CAAA;AAEF,MAAM,yBAAyB,GAAG,gCAAkB,CAAC,IAAI,CAAC;IACxD,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,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;CAClB,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAAG,6BAAe,CAAC,IAAI,CAAC;IAClD,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,iBAAiB,EAAE,IAAI;IACvB,MAAM,EAAE,IAAI;CACb,CAAC,CAAA;AAEW,QAAA,iBAAiB,GAAG,wBAAwB;KACtD,KAAK,CAAC,yBAAyB,CAAC;KAChC,KAAK,CAAC,sBAAsB,CAAC,CAAA"}
|
|
@@ -25,6 +25,7 @@ declare const resolvers: {
|
|
|
25
25
|
annotations: (parent: import("../model/CapiResponse").CapiResponse) => import("../model/Concept").Concept[];
|
|
26
26
|
accessLevel: (parent: import("../model/CapiResponse").CapiResponse) => "premium" | "subscribed" | "registered" | "free";
|
|
27
27
|
canBeSyndicated: (parent: import("../model/CapiResponse").CapiResponse) => "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
28
|
+
originatingParty: (parent: import("../model/CapiResponse").CapiResponse) => string | null;
|
|
28
29
|
commentsEnabled: (parent: import("../model/CapiResponse").CapiResponse) => boolean;
|
|
29
30
|
design: (parent: import("../model/CapiResponse").CapiResponse) => {
|
|
30
31
|
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
package/lib/resolvers/content.js
CHANGED
|
@@ -38,6 +38,7 @@ const resolvers = {
|
|
|
38
38
|
annotations: (parent) => parent.annotations(),
|
|
39
39
|
accessLevel: (parent) => parent.accessLevel(),
|
|
40
40
|
canBeSyndicated: (parent) => parent.canBeSyndicated(),
|
|
41
|
+
originatingParty: (parent) => parent.originatingParty(),
|
|
41
42
|
commentsEnabled: (parent) => parent.commentsEnabled(),
|
|
42
43
|
design: (parent) => parent.design(),
|
|
43
44
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/resolvers/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
|
declare const resolvers: {
|
|
2
|
-
Reference: import("../generated").ReferenceResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.Node>>;
|
|
3
|
-
Tweet: import("../generated").TweetResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.Tweet>>;
|
|
4
|
-
ImageSet: import("../generated").ImageSetResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.ImageSet>>;
|
|
5
|
-
VideoReference: import("../generated").VideoReferenceResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("./content-tree/Workarounds").Video>>;
|
|
6
|
-
Flourish: import("../generated").FlourishResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.Flourish>>;
|
|
7
|
-
Recommended: import("../generated").RecommendedResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.Recommended>>;
|
|
8
|
-
LayoutImage: import("../generated").LayoutImageResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.LayoutImage>>;
|
|
9
|
-
RawImage: import("../generated").RawImageResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("./content-tree/Workarounds").RawImage>>;
|
|
10
|
-
ScrollyImage: import("../generated").ScrollyImageResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.ScrollyImage>>;
|
|
11
2
|
Topper: {
|
|
12
3
|
__resolveType: (topper: import("../model/Topper").Topper) => "DeepPortraitTopper" | "DeepLandscapeTopper" | "SplitTextTopper" | "FullBleedTopper" | "PodcastTopper" | "OpinionTopper" | "BrandedTopper" | "BasicTopper";
|
|
13
4
|
headline: (topper: import("../model/Topper").Topper) => string;
|
|
@@ -42,10 +33,10 @@ declare const resolvers: {
|
|
|
42
33
|
Teaser: {
|
|
43
34
|
url: (parent: import("../model/CapiResponse").CapiResponse, args: Partial<import("../generated").TeaserUrlArgs>) => Promise<string>;
|
|
44
35
|
type: (parent: import("../model/CapiResponse").CapiResponse) => string;
|
|
45
|
-
metaLink: (parent: import("../model/CapiResponse").CapiResponse) => Promise<import("../model/Concept").Concept | null>;
|
|
36
|
+
metaLink: (parent: import("../model/CapiResponse").CapiResponse) => Promise<import("../model/Concept").Concept | import("../model/CapiResponse").CapiResponse | null>;
|
|
46
37
|
metaAltLink: (parent: import("../model/CapiResponse").CapiResponse) => Promise<import("../model/Concept").Concept | null>;
|
|
47
|
-
metaPrefixText: (parent: import("../model/CapiResponse").CapiResponse) => Promise<string
|
|
48
|
-
metaSuffixText: (
|
|
38
|
+
metaPrefixText: (parent: import("../model/CapiResponse").CapiResponse) => Promise<string>;
|
|
39
|
+
metaSuffixText: () => null;
|
|
49
40
|
image: (parent: import("../model/CapiResponse").CapiResponse) => import("../model/Image").CAPIImage | null;
|
|
50
41
|
indicators(parent: import("../model/CapiResponse").CapiResponse): {
|
|
51
42
|
accessLevel: "premium" | "subscribed" | "registered" | "free";
|
|
@@ -75,6 +66,15 @@ declare const resolvers: {
|
|
|
75
66
|
references: import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.Node>[];
|
|
76
67
|
}>;
|
|
77
68
|
};
|
|
69
|
+
Reference: import("../generated").ReferenceResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.Node>>;
|
|
70
|
+
Tweet: import("../generated").TweetResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.Tweet>>;
|
|
71
|
+
ImageSet: import("../generated").ImageSetResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.ImageSet>>;
|
|
72
|
+
VideoReference: import("../generated").VideoReferenceResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("./content-tree/Workarounds").Video>>;
|
|
73
|
+
Flourish: import("../generated").FlourishResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.Flourish>>;
|
|
74
|
+
Recommended: import("../generated").RecommendedResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.Recommended>>;
|
|
75
|
+
LayoutImage: import("../generated").LayoutImageResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.LayoutImage>>;
|
|
76
|
+
RawImage: import("../generated").RawImageResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("./content-tree/Workarounds").RawImage>>;
|
|
77
|
+
ScrollyImage: import("../generated").ScrollyImageResolvers<import("..").QueryContext, import("./content-tree/references").ReferenceWithCAPIData<import("@financial-times/content-tree").ContentTree.ScrollyImage>>;
|
|
78
78
|
Picture: {
|
|
79
79
|
__resolveType(parent: import("../model/Picture").Picture): Promise<"PictureFullBleed" | "PictureInline" | "PictureStandard">;
|
|
80
80
|
layoutWidth(parent: import("../model/Picture").Picture): Promise<"standard" | "full-grid" | "inset-left">;
|
|
@@ -85,6 +85,7 @@ declare const resolvers: {
|
|
|
85
85
|
alt(parent: import("../model/Picture").Picture): string;
|
|
86
86
|
imageType(parent: import("../model/Picture").Picture): "image" | "graphic";
|
|
87
87
|
};
|
|
88
|
+
MetaLink: import("../generated").MetaLinkResolvers<import("..").QueryContext, import("../model/Concept").Concept | import("../model/CapiResponse").CapiResponse>;
|
|
88
89
|
Image: {
|
|
89
90
|
__resolveType: (image: import("../model/Image").Image) => "ImageDesktop" | "ImageLandscape" | "ImageMobile" | "ImagePortrait" | "ImageSquare" | "ImageSquareFTEdit" | "ImageStandard" | "ImageStandardInline" | "ImageWide";
|
|
90
91
|
type: (image: import("../model/Image").Image) => "image" | "graphic";
|
|
@@ -130,6 +131,7 @@ declare const resolvers: {
|
|
|
130
131
|
annotations: (parent: import("../model/CapiResponse").CapiResponse) => import("../model/Concept").Concept[];
|
|
131
132
|
accessLevel: (parent: import("../model/CapiResponse").CapiResponse) => "premium" | "subscribed" | "registered" | "free";
|
|
132
133
|
canBeSyndicated: (parent: import("../model/CapiResponse").CapiResponse) => "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
|
|
134
|
+
originatingParty: (parent: import("../model/CapiResponse").CapiResponse) => string | null;
|
|
133
135
|
commentsEnabled: (parent: import("../model/CapiResponse").CapiResponse) => boolean;
|
|
134
136
|
design: (parent: import("../model/CapiResponse").CapiResponse) => {
|
|
135
137
|
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
package/lib/resolvers/index.js
CHANGED
|
@@ -7,6 +7,7 @@ const concept_1 = __importDefault(require("./concept"));
|
|
|
7
7
|
const content_1 = __importDefault(require("./content"));
|
|
8
8
|
const core_1 = __importDefault(require("./core"));
|
|
9
9
|
const image_1 = __importDefault(require("./image"));
|
|
10
|
+
const meta_link_1 = __importDefault(require("./meta-link"));
|
|
10
11
|
const picture_1 = __importDefault(require("./picture"));
|
|
11
12
|
const richText_1 = __importDefault(require("./richText"));
|
|
12
13
|
const scalars_1 = __importDefault(require("./scalars"));
|
|
@@ -18,12 +19,13 @@ const resolvers = {
|
|
|
18
19
|
...content_1.default,
|
|
19
20
|
...core_1.default,
|
|
20
21
|
...image_1.default,
|
|
22
|
+
...meta_link_1.default,
|
|
21
23
|
...picture_1.default,
|
|
24
|
+
...references_1.resolvers,
|
|
22
25
|
...richText_1.default,
|
|
23
26
|
...scalars_1.default,
|
|
24
27
|
...teaser_1.default,
|
|
25
28
|
...topper_1.default,
|
|
26
|
-
...references_1.resolvers,
|
|
27
29
|
};
|
|
28
30
|
exports.default = resolvers;
|
|
29
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resolvers/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA8C;AAC9C,wDAA8C;AAC9C,kDAAwC;AACxC,oDAA0C;AAC1C,wDAA8C;AAC9C,0DAAgD;AAChD,wDAA8C;AAC9C,sDAA4C;AAC5C,sDAA4C;AAC5C,0DAAmE;AAGnE,MAAM,SAAS,GAAG;IAChB,GAAG,iBAAO;IACV,GAAG,iBAAO;IACV,GAAG,cAAI;IACP,GAAG,eAAK;IACR,GAAG,iBAAO;IACV,GAAG,kBAAQ;IACX,GAAG,iBAAO;IACV,GAAG,gBAAM;IACT,GAAG,gBAAM;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resolvers/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA8C;AAC9C,wDAA8C;AAC9C,kDAAwC;AACxC,oDAA0C;AAC1C,4DAAiD;AACjD,wDAA8C;AAC9C,0DAAgD;AAChD,wDAA8C;AAC9C,sDAA4C;AAC5C,sDAA4C;AAC5C,0DAAmE;AAGnE,MAAM,SAAS,GAAG;IAChB,GAAG,iBAAO;IACV,GAAG,iBAAO;IACV,GAAG,cAAI;IACP,GAAG,eAAK;IACR,GAAG,mBAAQ;IACX,GAAG,iBAAO;IACV,GAAG,sBAAU;IACb,GAAG,kBAAQ;IACX,GAAG,iBAAO;IACV,GAAG,gBAAM;IACT,GAAG,gBAAM;CACU,CAAA;AAErB,kBAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const Concept_1 = require("../model/Concept");
|
|
4
|
+
const resolvers = {
|
|
5
|
+
MetaLink: {
|
|
6
|
+
__resolveType(parent) {
|
|
7
|
+
if (parent instanceof Concept_1.Concept) {
|
|
8
|
+
return 'Concept';
|
|
9
|
+
}
|
|
10
|
+
return 'ContentPackage';
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
exports.default = resolvers;
|
|
15
|
+
//# sourceMappingURL=meta-link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta-link.js","sourceRoot":"","sources":["../../src/resolvers/meta-link.ts"],"names":[],"mappings":";;AACA,8CAA0C;AAE1C,MAAM,SAAS,GAAoC;IACjD,QAAQ,EAAE;QACR,aAAa,CAAC,MAAM;YAClB,IAAI,MAAM,YAAY,iBAAO,EAAE;gBAC7B,OAAO,SAAS,CAAA;aACjB;YAED,OAAO,gBAAgB,CAAA;QACzB,CAAC;KACF;CACF,CAAA;AAED,kBAAe,SAAS,CAAA"}
|
|
@@ -2,10 +2,10 @@ declare const resolvers: {
|
|
|
2
2
|
Teaser: {
|
|
3
3
|
url: (parent: import("../model/CapiResponse").CapiResponse, args: Partial<import("../generated").TeaserUrlArgs>) => Promise<string>;
|
|
4
4
|
type: (parent: import("../model/CapiResponse").CapiResponse) => string;
|
|
5
|
-
metaLink: (parent: import("../model/CapiResponse").CapiResponse) => Promise<import("../model/Concept").Concept | null>;
|
|
5
|
+
metaLink: (parent: import("../model/CapiResponse").CapiResponse) => Promise<import("../model/Concept").Concept | import("../model/CapiResponse").CapiResponse | null>;
|
|
6
6
|
metaAltLink: (parent: import("../model/CapiResponse").CapiResponse) => Promise<import("../model/Concept").Concept | null>;
|
|
7
|
-
metaPrefixText: (parent: import("../model/CapiResponse").CapiResponse) => Promise<string
|
|
8
|
-
metaSuffixText: (
|
|
7
|
+
metaPrefixText: (parent: import("../model/CapiResponse").CapiResponse) => Promise<string>;
|
|
8
|
+
metaSuffixText: () => null;
|
|
9
9
|
image: (parent: import("../model/CapiResponse").CapiResponse) => import("../model/Image").CAPIImage | null;
|
|
10
10
|
indicators(parent: import("../model/CapiResponse").CapiResponse): {
|
|
11
11
|
accessLevel: "premium" | "subscribed" | "registered" | "free";
|
package/lib/resolvers/teaser.js
CHANGED
|
@@ -7,10 +7,12 @@ const resolvers = {
|
|
|
7
7
|
.type()
|
|
8
8
|
.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)
|
|
9
9
|
.slice(1),
|
|
10
|
-
metaLink: (parent) => parent.
|
|
11
|
-
metaAltLink: (parent) => parent.
|
|
12
|
-
metaPrefixText: (parent) => parent.
|
|
13
|
-
|
|
10
|
+
metaLink: (parent) => parent.metaLink(),
|
|
11
|
+
metaAltLink: (parent) => parent.metaAltLink(),
|
|
12
|
+
metaPrefixText: (parent) => parent.metaPrefixText(),
|
|
13
|
+
// HACK 20230629 IM: suffixText doesn't actually exist in the metadata
|
|
14
|
+
// type lol but deleting the field would be a breaking change
|
|
15
|
+
metaSuffixText: () => null,
|
|
14
16
|
image: (parent) => parent.teaserImage(),
|
|
15
17
|
indicators(parent) {
|
|
16
18
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teaser.js","sourceRoot":"","sources":["../../src/resolvers/teaser.ts"],"names":[],"mappings":";;AAEA,MAAM,SAAS,GAAG;IAChB,MAAM,EAAE;QACN,GAAG,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CACpB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE;QACrD,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CACf,MAAM;aACH,IAAI,EAAE;aACN,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC;aACzD,KAAK,CAAC,CAAC,CAAC;QACb,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"teaser.js","sourceRoot":"","sources":["../../src/resolvers/teaser.ts"],"names":[],"mappings":";;AAEA,MAAM,SAAS,GAAG;IAChB,MAAM,EAAE;QACN,GAAG,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CACpB,IAAI,C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
|
readonly containedIn?: Maybe<Content>;
|
|
59
59
|
readonly design?: Maybe<Design>;
|
|
60
60
|
readonly firstPublishedDate: Scalars['String']['output'];
|
|
61
|
-
readonly id: Scalars['
|
|
61
|
+
readonly id: Scalars['ID']['output'];
|
|
62
62
|
readonly mainImage?: Maybe<Image>;
|
|
63
|
+
readonly originatingParty?: Maybe<Scalars['String']['output']>;
|
|
63
64
|
readonly publishedDate: Scalars['String']['output'];
|
|
64
65
|
readonly standfirst?: Maybe<Scalars['String']['output']>;
|
|
65
66
|
readonly teaser?: Maybe<Teaser>;
|
|
@@ -92,9 +93,10 @@ export type Audio = Content & {
|
|
|
92
93
|
readonly commentsEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
93
94
|
readonly design?: Maybe<Design>;
|
|
94
95
|
readonly firstPublishedDate: Scalars['String']['output'];
|
|
95
|
-
readonly id: Scalars['
|
|
96
|
+
readonly id: Scalars['ID']['output'];
|
|
96
97
|
readonly mainImage?: Maybe<Image>;
|
|
97
98
|
readonly media?: Maybe<ReadonlyArray<Maybe<Media>>>;
|
|
99
|
+
readonly originatingParty?: Maybe<Scalars['String']['output']>;
|
|
98
100
|
readonly publishedDate: Scalars['String']['output'];
|
|
99
101
|
readonly standfirst?: Maybe<Scalars['String']['output']>;
|
|
100
102
|
readonly teaser?: Maybe<Teaser>;
|
|
@@ -170,8 +172,9 @@ export type Content = {
|
|
|
170
172
|
readonly commentsEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
171
173
|
readonly design?: Maybe<Design>;
|
|
172
174
|
readonly firstPublishedDate: Scalars['String']['output'];
|
|
173
|
-
readonly id: Scalars['
|
|
175
|
+
readonly id: Scalars['ID']['output'];
|
|
174
176
|
readonly mainImage?: Maybe<Image>;
|
|
177
|
+
readonly originatingParty?: Maybe<Scalars['String']['output']>;
|
|
175
178
|
readonly publishedDate: Scalars['String']['output'];
|
|
176
179
|
readonly standfirst?: Maybe<Scalars['String']['output']>;
|
|
177
180
|
readonly teaser?: Maybe<Teaser>;
|
|
@@ -206,8 +209,9 @@ export type ContentPackage = Content & {
|
|
|
206
209
|
readonly containsLength?: Maybe<Scalars['Int']['output']>;
|
|
207
210
|
readonly design?: Maybe<Design>;
|
|
208
211
|
readonly firstPublishedDate: Scalars['String']['output'];
|
|
209
|
-
readonly id: Scalars['
|
|
212
|
+
readonly id: Scalars['ID']['output'];
|
|
210
213
|
readonly mainImage?: Maybe<Image>;
|
|
214
|
+
readonly originatingParty?: Maybe<Scalars['String']['output']>;
|
|
211
215
|
readonly publishedDate: Scalars['String']['output'];
|
|
212
216
|
readonly standfirst?: Maybe<Scalars['String']['output']>;
|
|
213
217
|
readonly tableOfContents?: Maybe<TableOfContents>;
|
|
@@ -527,9 +531,10 @@ export type LiveBlogPackage = Content & {
|
|
|
527
531
|
readonly commentsEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
528
532
|
readonly design?: Maybe<Design>;
|
|
529
533
|
readonly firstPublishedDate: Scalars['String']['output'];
|
|
530
|
-
readonly id: Scalars['
|
|
534
|
+
readonly id: Scalars['ID']['output'];
|
|
531
535
|
readonly liveBlogPosts?: Maybe<ReadonlyArray<Maybe<Content>>>;
|
|
532
536
|
readonly mainImage?: Maybe<Image>;
|
|
537
|
+
readonly originatingParty?: Maybe<Scalars['String']['output']>;
|
|
533
538
|
readonly pinnedPost?: Maybe<Content>;
|
|
534
539
|
readonly publishedDate: Scalars['String']['output'];
|
|
535
540
|
readonly realtime?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -565,8 +570,9 @@ export type LiveBlogPost = Content & {
|
|
|
565
570
|
readonly containedIn?: Maybe<Content>;
|
|
566
571
|
readonly design?: Maybe<Design>;
|
|
567
572
|
readonly firstPublishedDate: Scalars['String']['output'];
|
|
568
|
-
readonly id: Scalars['
|
|
573
|
+
readonly id: Scalars['ID']['output'];
|
|
569
574
|
readonly mainImage?: Maybe<Image>;
|
|
575
|
+
readonly originatingParty?: Maybe<Scalars['String']['output']>;
|
|
570
576
|
readonly publishedDate: Scalars['String']['output'];
|
|
571
577
|
readonly standfirst?: Maybe<Scalars['String']['output']>;
|
|
572
578
|
readonly teaser?: Maybe<Teaser>;
|
|
@@ -599,6 +605,8 @@ export type Media = {
|
|
|
599
605
|
readonly url?: Maybe<Scalars['String']['output']>;
|
|
600
606
|
};
|
|
601
607
|
|
|
608
|
+
export type MetaLink = Concept | ContentPackage;
|
|
609
|
+
|
|
602
610
|
export type Mutation = {
|
|
603
611
|
readonly invalidateRedisCache?: Maybe<Scalars['String']['output']>;
|
|
604
612
|
};
|
|
@@ -682,8 +690,9 @@ export type Placeholder = Content & {
|
|
|
682
690
|
readonly containedIn?: Maybe<Content>;
|
|
683
691
|
readonly design?: Maybe<Design>;
|
|
684
692
|
readonly firstPublishedDate: Scalars['String']['output'];
|
|
685
|
-
readonly id: Scalars['
|
|
693
|
+
readonly id: Scalars['ID']['output'];
|
|
686
694
|
readonly mainImage?: Maybe<Image>;
|
|
695
|
+
readonly originatingParty?: Maybe<Scalars['String']['output']>;
|
|
687
696
|
readonly publishedDate: Scalars['String']['output'];
|
|
688
697
|
readonly standfirst?: Maybe<Scalars['String']['output']>;
|
|
689
698
|
readonly teaser?: Maybe<Teaser>;
|
|
@@ -800,8 +809,8 @@ export type Teaser = {
|
|
|
800
809
|
readonly id?: Maybe<Scalars['String']['output']>;
|
|
801
810
|
readonly image?: Maybe<Image>;
|
|
802
811
|
readonly indicators?: Maybe<Indicators>;
|
|
803
|
-
readonly metaAltLink?: Maybe<
|
|
804
|
-
readonly metaLink?: Maybe<
|
|
812
|
+
readonly metaAltLink?: Maybe<MetaLink>;
|
|
813
|
+
readonly metaLink?: Maybe<MetaLink>;
|
|
805
814
|
readonly metaPrefixText?: Maybe<Scalars['String']['output']>;
|
|
806
815
|
readonly metaSuffixText?: Maybe<Scalars['String']['output']>;
|
|
807
816
|
readonly publishedDate?: Maybe<Scalars['String']['output']>;
|
|
@@ -874,8 +883,9 @@ export type Video = Content & {
|
|
|
874
883
|
readonly commentsEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
875
884
|
readonly design?: Maybe<Design>;
|
|
876
885
|
readonly firstPublishedDate: Scalars['String']['output'];
|
|
877
|
-
readonly id: Scalars['
|
|
886
|
+
readonly id: Scalars['ID']['output'];
|
|
878
887
|
readonly mainImage?: Maybe<Image>;
|
|
888
|
+
readonly originatingParty?: Maybe<Scalars['String']['output']>;
|
|
879
889
|
readonly publishedDate: Scalars['String']['output'];
|
|
880
890
|
readonly standfirst?: Maybe<Scalars['String']['output']>;
|
|
881
891
|
readonly teaser?: Maybe<Teaser>;
|
|
@@ -970,6 +980,10 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
|
|
|
970
980
|
info: GraphQLResolveInfo
|
|
971
981
|
) => TResult | Promise<TResult>;
|
|
972
982
|
|
|
983
|
+
/** Mapping of union types */
|
|
984
|
+
export type ResolversUnionTypes<RefType extends Record<string, unknown>> = ResolversObject<{
|
|
985
|
+
MetaLink: ( ConceptModel ) | ( CapiResponse );
|
|
986
|
+
}>;
|
|
973
987
|
|
|
974
988
|
/** Mapping of interface types */
|
|
975
989
|
export type ResolversInterfaceTypes<RefType extends Record<string, unknown>> = ResolversObject<{
|
|
@@ -1030,6 +1044,7 @@ export type ResolversTypes = ResolversObject<{
|
|
|
1030
1044
|
LiveBlogPost: ResolverTypeWrapper<CapiResponse>;
|
|
1031
1045
|
MainImage: ResolverTypeWrapper<ReferenceWithCAPIData<ContentTree.ImageSet>>;
|
|
1032
1046
|
Media: ResolverTypeWrapper<Media>;
|
|
1047
|
+
MetaLink: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['MetaLink']>;
|
|
1033
1048
|
Mutation: ResolverTypeWrapper<{}>;
|
|
1034
1049
|
OpinionTopper: ResolverTypeWrapper<TopperModel>;
|
|
1035
1050
|
PackageDesign: ResolverTypeWrapper<Scalars['PackageDesign']['output']>;
|
|
@@ -1108,6 +1123,7 @@ export type ResolversParentTypes = ResolversObject<{
|
|
|
1108
1123
|
LiveBlogPost: CapiResponse;
|
|
1109
1124
|
MainImage: ReferenceWithCAPIData<ContentTree.ImageSet>;
|
|
1110
1125
|
Media: Media;
|
|
1126
|
+
MetaLink: ResolversUnionTypes<ResolversParentTypes>['MetaLink'];
|
|
1111
1127
|
Mutation: {};
|
|
1112
1128
|
OpinionTopper: TopperModel;
|
|
1113
1129
|
PackageDesign: Scalars['PackageDesign']['output'];
|
|
@@ -1168,8 +1184,9 @@ export type ArticleResolvers<ContextType = QueryContext, ParentType extends Reso
|
|
|
1168
1184
|
containedIn?: Resolver<Maybe<ResolversTypes['Content']>, ParentType, ContextType>;
|
|
1169
1185
|
design?: Resolver<Maybe<ResolversTypes['Design']>, ParentType, ContextType>;
|
|
1170
1186
|
firstPublishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1171
|
-
id?: Resolver<ResolversTypes['
|
|
1187
|
+
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1172
1188
|
mainImage?: Resolver<Maybe<ResolversTypes['Image']>, ParentType, ContextType>;
|
|
1189
|
+
originatingParty?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1173
1190
|
publishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1174
1191
|
standfirst?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1175
1192
|
teaser?: Resolver<Maybe<ResolversTypes['Teaser']>, ParentType, ContextType>;
|
|
@@ -1192,9 +1209,10 @@ export type AudioResolvers<ContextType = QueryContext, ParentType extends Resolv
|
|
|
1192
1209
|
commentsEnabled?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1193
1210
|
design?: Resolver<Maybe<ResolversTypes['Design']>, ParentType, ContextType>;
|
|
1194
1211
|
firstPublishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1195
|
-
id?: Resolver<ResolversTypes['
|
|
1212
|
+
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1196
1213
|
mainImage?: Resolver<Maybe<ResolversTypes['Image']>, ParentType, ContextType>;
|
|
1197
1214
|
media?: Resolver<Maybe<ReadonlyArray<Maybe<ResolversTypes['Media']>>>, ParentType, ContextType>;
|
|
1215
|
+
originatingParty?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1198
1216
|
publishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1199
1217
|
standfirst?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1200
1218
|
teaser?: Resolver<Maybe<ResolversTypes['Teaser']>, ParentType, ContextType>;
|
|
@@ -1262,8 +1280,9 @@ export type ContentResolvers<ContextType = QueryContext, ParentType extends Reso
|
|
|
1262
1280
|
commentsEnabled?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1263
1281
|
design?: Resolver<Maybe<ResolversTypes['Design']>, ParentType, ContextType>;
|
|
1264
1282
|
firstPublishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1265
|
-
id?: Resolver<ResolversTypes['
|
|
1283
|
+
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1266
1284
|
mainImage?: Resolver<Maybe<ResolversTypes['Image']>, ParentType, ContextType>;
|
|
1285
|
+
originatingParty?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1267
1286
|
publishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1268
1287
|
standfirst?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1269
1288
|
teaser?: Resolver<Maybe<ResolversTypes['Teaser']>, ParentType, ContextType>;
|
|
@@ -1287,8 +1306,9 @@ export type ContentPackageResolvers<ContextType = QueryContext, ParentType exten
|
|
|
1287
1306
|
containsLength?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
|
|
1288
1307
|
design?: Resolver<Maybe<ResolversTypes['Design']>, ParentType, ContextType>;
|
|
1289
1308
|
firstPublishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1290
|
-
id?: Resolver<ResolversTypes['
|
|
1309
|
+
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1291
1310
|
mainImage?: Resolver<Maybe<ResolversTypes['Image']>, ParentType, ContextType>;
|
|
1311
|
+
originatingParty?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1292
1312
|
publishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1293
1313
|
standfirst?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1294
1314
|
tableOfContents?: Resolver<Maybe<ResolversTypes['TableOfContents']>, ParentType, ContextType>;
|
|
@@ -1572,9 +1592,10 @@ export type LiveBlogPackageResolvers<ContextType = QueryContext, ParentType exte
|
|
|
1572
1592
|
commentsEnabled?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1573
1593
|
design?: Resolver<Maybe<ResolversTypes['Design']>, ParentType, ContextType>;
|
|
1574
1594
|
firstPublishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1575
|
-
id?: Resolver<ResolversTypes['
|
|
1595
|
+
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1576
1596
|
liveBlogPosts?: Resolver<Maybe<ReadonlyArray<Maybe<ResolversTypes['Content']>>>, ParentType, ContextType>;
|
|
1577
1597
|
mainImage?: Resolver<Maybe<ResolversTypes['Image']>, ParentType, ContextType>;
|
|
1598
|
+
originatingParty?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1578
1599
|
pinnedPost?: Resolver<Maybe<ResolversTypes['Content']>, ParentType, ContextType>;
|
|
1579
1600
|
publishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1580
1601
|
realtime?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
@@ -1600,8 +1621,9 @@ export type LiveBlogPostResolvers<ContextType = QueryContext, ParentType extends
|
|
|
1600
1621
|
containedIn?: Resolver<Maybe<ResolversTypes['Content']>, ParentType, ContextType>;
|
|
1601
1622
|
design?: Resolver<Maybe<ResolversTypes['Design']>, ParentType, ContextType>;
|
|
1602
1623
|
firstPublishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1603
|
-
id?: Resolver<ResolversTypes['
|
|
1624
|
+
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1604
1625
|
mainImage?: Resolver<Maybe<ResolversTypes['Image']>, ParentType, ContextType>;
|
|
1626
|
+
originatingParty?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1605
1627
|
publishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1606
1628
|
standfirst?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1607
1629
|
teaser?: Resolver<Maybe<ResolversTypes['Teaser']>, ParentType, ContextType>;
|
|
@@ -1626,6 +1648,10 @@ export type MediaResolvers<ContextType = QueryContext, ParentType extends Resolv
|
|
|
1626
1648
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1627
1649
|
}>;
|
|
1628
1650
|
|
|
1651
|
+
export type MetaLinkResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['MetaLink'] = ResolversParentTypes['MetaLink']> = ResolversObject<{
|
|
1652
|
+
__resolveType?: TypeResolveFn<'Concept' | 'ContentPackage', ParentType, ContextType>;
|
|
1653
|
+
}>;
|
|
1654
|
+
|
|
1629
1655
|
export type MutationResolvers<ContextType = QueryContext, ParentType extends ResolversParentTypes['Mutation'] = ResolversParentTypes['Mutation']> = ResolversObject<{
|
|
1630
1656
|
invalidateRedisCache?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType, RequireFields<MutationInvalidateRedisCacheArgs, 'uuid'>>;
|
|
1631
1657
|
}>;
|
|
@@ -1707,8 +1733,9 @@ export type PlaceholderResolvers<ContextType = QueryContext, ParentType extends
|
|
|
1707
1733
|
containedIn?: Resolver<Maybe<ResolversTypes['Content']>, ParentType, ContextType>;
|
|
1708
1734
|
design?: Resolver<Maybe<ResolversTypes['Design']>, ParentType, ContextType>;
|
|
1709
1735
|
firstPublishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1710
|
-
id?: Resolver<ResolversTypes['
|
|
1736
|
+
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1711
1737
|
mainImage?: Resolver<Maybe<ResolversTypes['Image']>, ParentType, ContextType>;
|
|
1738
|
+
originatingParty?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1712
1739
|
publishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1713
1740
|
standfirst?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1714
1741
|
teaser?: Resolver<Maybe<ResolversTypes['Teaser']>, ParentType, ContextType>;
|
|
@@ -1812,8 +1839,8 @@ export type TeaserResolvers<ContextType = QueryContext, ParentType extends Resol
|
|
|
1812
1839
|
id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1813
1840
|
image?: Resolver<Maybe<ResolversTypes['Image']>, ParentType, ContextType>;
|
|
1814
1841
|
indicators?: Resolver<Maybe<ResolversTypes['Indicators']>, ParentType, ContextType>;
|
|
1815
|
-
metaAltLink?: Resolver<Maybe<ResolversTypes['
|
|
1816
|
-
metaLink?: Resolver<Maybe<ResolversTypes['
|
|
1842
|
+
metaAltLink?: Resolver<Maybe<ResolversTypes['MetaLink']>, ParentType, ContextType>;
|
|
1843
|
+
metaLink?: Resolver<Maybe<ResolversTypes['MetaLink']>, ParentType, ContextType>;
|
|
1817
1844
|
metaPrefixText?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1818
1845
|
metaSuffixText?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1819
1846
|
publishedDate?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -1887,8 +1914,9 @@ export type VideoResolvers<ContextType = QueryContext, ParentType extends Resolv
|
|
|
1887
1914
|
commentsEnabled?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1888
1915
|
design?: Resolver<Maybe<ResolversTypes['Design']>, ParentType, ContextType>;
|
|
1889
1916
|
firstPublishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1890
|
-
id?: Resolver<ResolversTypes['
|
|
1917
|
+
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1891
1918
|
mainImage?: Resolver<Maybe<ResolversTypes['Image']>, ParentType, ContextType>;
|
|
1919
|
+
originatingParty?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1892
1920
|
publishedDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1893
1921
|
standfirst?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1894
1922
|
teaser?: Resolver<Maybe<ResolversTypes['Teaser']>, ParentType, ContextType>;
|
|
@@ -1947,6 +1975,7 @@ export type Resolvers<ContextType = QueryContext> = ResolversObject<{
|
|
|
1947
1975
|
LiveBlogPost?: LiveBlogPostResolvers<ContextType>;
|
|
1948
1976
|
MainImage?: MainImageResolvers<ContextType>;
|
|
1949
1977
|
Media?: MediaResolvers<ContextType>;
|
|
1978
|
+
MetaLink?: MetaLinkResolvers<ContextType>;
|
|
1950
1979
|
Mutation?: MutationResolvers<ContextType>;
|
|
1951
1980
|
OpinionTopper?: OpinionTopperResolvers<ContextType>;
|
|
1952
1981
|
PackageDesign?: GraphQLScalarType;
|