diff --git a/Queries/Articles/FirstFeedConcentByRecency.gql b/Queries/Articles/FirstFeedConcentByRecency.gql new file mode 100644 index 00000000..1d1dac5d --- /dev/null +++ b/Queries/Articles/FirstFeedConcentByRecency.gql @@ -0,0 +1,23 @@ +query FirstFeedConcentByRecency( + $first: Int +) { + feedContent( first: $first ) @connection(key: "FirstFeedConcentByRecency") { + nodes { + ...on Post { + ...ArticleTeaserParts + } + ...on Email { + ...EmailParts + link + emailLists { + nodes { + slug + } + } + } + } + pageInfo { + endCursor + } + } +} \ No newline at end of file diff --git a/Queries/Articles/FirstPopularArticles.gql b/Queries/Articles/FirstPopularArticles.gql new file mode 100644 index 00000000..19477b40 --- /dev/null +++ b/Queries/Articles/FirstPopularArticles.gql @@ -0,0 +1,21 @@ +query FirstPopularArticles( + $edition: EditionName + $first: Int +) { + posts( + first: $first + where: { + popular: { + edition: $edition + } + } + ) @connection(key: "FirstPopularArticles") { + nodes { + ...ArticleTeaserParts + } + pageInfo { + endCursor + hasNextPage + } + } +} diff --git a/Schemas/ContentSchema.operations.json b/Schemas/ContentSchema.operations.json index 3dc318a2..d6d161b6 100644 --- a/Schemas/ContentSchema.operations.json +++ b/Schemas/ContentSchema.operations.json @@ -51,6 +51,14 @@ "name": "ContentByTag", "source": "query ContentByTag($slug: String!, $perPage: Int = 10, $after: String) {\n tags(where: {slug: [$slug]}) {\n __typename\n nodes {\n __typename\n ...TagParts\n }\n }\n tagContent(after: $after, first: $perPage, where: {slug: $slug}) {\n __typename\n nodes {\n __typename\n ... on Email {\n ...EmailParts\n emailLists {\n __typename\n nodes {\n __typename\n slug\n }\n }\n }\n ... on Post {\n ...ArticleTeaserParts\n }\n }\n pageInfo {\n __typename\n endCursor\n hasNextPage\n }\n }\n}\nfragment TagParts on Tag {\n __typename\n count\n description\n featuredImage {\n __typename\n ...MediaParts\n }\n id\n link\n name\n shortDescription\n slug\n tagId\n}\nfragment MediaParts on MediaItem {\n __typename\n altText\n caption\n credit\n id\n mediaDetails {\n __typename\n height\n width\n }\n mediaItemUrl\n sourceUrl\n title\n}\nfragment EmailParts on Email {\n __typename\n id\n dateGmt\n emailId\n featuredImage {\n __typename\n ...MediaParts\n }\n link\n segment\n socialImage {\n __typename\n ...MediaParts\n }\n seoTitle\n socialDescription\n socialTitle\n subject\n title\n}\nfragment ArticleTeaserParts on Post {\n __typename\n bulletin {\n __typename\n campaign {\n __typename\n id\n logo\n name\n slug\n }\n sponsor {\n __typename\n attribution\n id\n slug\n name\n }\n clientTracking {\n __typename\n article\n elsewhere\n logo\n }\n }\n dateGmt\n editions {\n __typename\n nodes {\n __typename\n name\n slug\n }\n }\n featuredImage {\n __typename\n ...MediaParts\n }\n guides {\n __typename\n nodes {\n __typename\n name\n }\n }\n id\n kicker\n link\n postId\n serieses {\n __typename\n nodes {\n __typename\n name\n }\n }\n title\n trailerVideo {\n __typename\n ...VideoParts\n }\n video {\n __typename\n ...VideoParts\n }\n}\nfragment VideoParts on VideoData {\n __typename\n id\n duration\n episode\n playlistId\n season\n type\n}" }, + "a1b4f88b3a0fe0273e8d56c2138a80740f12fb4f7c41ca426aab8b47d4a544a7": { + "name": "FirstFeedConcentByRecency", + "source": "query FirstFeedConcentByRecency($first: Int) {\n feedContent(first: $first) @connection(key: \"FirstFeedConcentByRecency\") {\n __typename\n nodes {\n __typename\n ... on Post {\n ...ArticleTeaserParts\n }\n ... on Email {\n ...EmailParts\n link\n emailLists {\n __typename\n nodes {\n __typename\n slug\n }\n }\n }\n }\n pageInfo {\n __typename\n endCursor\n }\n }\n}\nfragment ArticleTeaserParts on Post {\n __typename\n bulletin {\n __typename\n campaign {\n __typename\n id\n logo\n name\n slug\n }\n sponsor {\n __typename\n attribution\n id\n slug\n name\n }\n clientTracking {\n __typename\n article\n elsewhere\n logo\n }\n }\n dateGmt\n editions {\n __typename\n nodes {\n __typename\n name\n slug\n }\n }\n featuredImage {\n __typename\n ...MediaParts\n }\n guides {\n __typename\n nodes {\n __typename\n name\n }\n }\n id\n kicker\n link\n postId\n serieses {\n __typename\n nodes {\n __typename\n name\n }\n }\n title\n trailerVideo {\n __typename\n ...VideoParts\n }\n video {\n __typename\n ...VideoParts\n }\n}\nfragment MediaParts on MediaItem {\n __typename\n altText\n caption\n credit\n id\n mediaDetails {\n __typename\n height\n width\n }\n mediaItemUrl\n sourceUrl\n title\n}\nfragment VideoParts on VideoData {\n __typename\n id\n duration\n episode\n playlistId\n season\n type\n}\nfragment EmailParts on Email {\n __typename\n id\n dateGmt\n emailId\n featuredImage {\n __typename\n ...MediaParts\n }\n link\n segment\n socialImage {\n __typename\n ...MediaParts\n }\n seoTitle\n socialDescription\n socialTitle\n subject\n title\n}" + }, + "01e39d649fe1225929745bd85e3f48e62d86ab3bab484741c757bd25ef3d48fb": { + "name": "FirstPopularArticles", + "source": "query FirstPopularArticles($edition: EditionName, $first: Int) {\n posts(first: $first, where: {popular: {edition: $edition}}) @connection(key: \"FirstPopularArticles\") {\n __typename\n nodes {\n __typename\n ...ArticleTeaserParts\n }\n pageInfo {\n __typename\n endCursor\n hasNextPage\n }\n }\n}\nfragment ArticleTeaserParts on Post {\n __typename\n bulletin {\n __typename\n campaign {\n __typename\n id\n logo\n name\n slug\n }\n sponsor {\n __typename\n attribution\n id\n slug\n name\n }\n clientTracking {\n __typename\n article\n elsewhere\n logo\n }\n }\n dateGmt\n editions {\n __typename\n nodes {\n __typename\n name\n slug\n }\n }\n featuredImage {\n __typename\n ...MediaParts\n }\n guides {\n __typename\n nodes {\n __typename\n name\n }\n }\n id\n kicker\n link\n postId\n serieses {\n __typename\n nodes {\n __typename\n name\n }\n }\n title\n trailerVideo {\n __typename\n ...VideoParts\n }\n video {\n __typename\n ...VideoParts\n }\n}\nfragment MediaParts on MediaItem {\n __typename\n altText\n caption\n credit\n id\n mediaDetails {\n __typename\n height\n width\n }\n mediaItemUrl\n sourceUrl\n title\n}\nfragment VideoParts on VideoData {\n __typename\n id\n duration\n episode\n playlistId\n season\n type\n}" + }, "be34a60310cddf9bcb65e0d549bd8b5e32b15ce91256f78ab62b54c68e790fbf": { "name": "LatestArticles", "source": "query LatestArticles($after: String = \"\", $edition: EditionName, $postsPerPage: Int) {\n posts(after: $after, first: $postsPerPage, where: {edition: $edition}) {\n __typename\n nodes {\n __typename\n ...ArticleTeaserParts\n }\n pageInfo {\n __typename\n endCursor\n hasNextPage\n }\n }\n}\nfragment ArticleTeaserParts on Post {\n __typename\n bulletin {\n __typename\n campaign {\n __typename\n id\n logo\n name\n slug\n }\n sponsor {\n __typename\n attribution\n id\n slug\n name\n }\n clientTracking {\n __typename\n article\n elsewhere\n logo\n }\n }\n dateGmt\n editions {\n __typename\n nodes {\n __typename\n name\n slug\n }\n }\n featuredImage {\n __typename\n ...MediaParts\n }\n guides {\n __typename\n nodes {\n __typename\n name\n }\n }\n id\n kicker\n link\n postId\n serieses {\n __typename\n nodes {\n __typename\n name\n }\n }\n title\n trailerVideo {\n __typename\n ...VideoParts\n }\n video {\n __typename\n ...VideoParts\n }\n}\nfragment MediaParts on MediaItem {\n __typename\n altText\n caption\n credit\n id\n mediaDetails {\n __typename\n height\n width\n }\n mediaItemUrl\n sourceUrl\n title\n}\nfragment VideoParts on VideoData {\n __typename\n id\n duration\n episode\n playlistId\n season\n type\n}" diff --git a/Web/FirstFeedConcentByRecency.ts b/Web/FirstFeedConcentByRecency.ts new file mode 100644 index 00000000..c9f28579 --- /dev/null +++ b/Web/FirstFeedConcentByRecency.ts @@ -0,0 +1,75 @@ +import type * as Types from './types'; + +import type { ArticleTeaserPartsFragment } from './ArticleTeaserParts'; +import type { EmailPartsFragment } from './EmailParts'; +import { gql } from '@apollo/client'; +import { ArticleTeaserPartsFragmentDoc } from './ArticleTeaserParts'; +import { EmailPartsFragmentDoc } from './EmailParts'; +import * as Apollo from '@apollo/client'; +const defaultOptions = {} +export type FirstFeedConcentByRecencyQueryVariables = Types.Exact<{ + first?: Types.Maybe; +}>; + + +export type FirstFeedConcentByRecencyQuery = { __typename?: 'RootQuery', feedContent?: Types.Maybe<{ __typename?: 'RootQueryToFeedContentConnection', nodes?: Types.Maybe, emailLists?: Types.Maybe<{ __typename?: 'EmailToEmailListConnection', nodes?: Types.Maybe }>>> }> } + & EmailPartsFragment + ) | { __typename?: 'Chapter' } | { __typename?: 'Promotion' } | { __typename?: 'Collection' } | { __typename?: 'Bulletin' }>>>, pageInfo?: Types.Maybe<{ __typename?: 'WPPageInfo', endCursor?: Types.Maybe }> }> }; + + +export const FirstFeedConcentByRecencyDocument = /*#__PURE__*/ gql` + query FirstFeedConcentByRecency($first: Int) { + feedContent(first: $first) @connection(key: "FirstFeedConcentByRecency") { + nodes { + ... on Post { + ...ArticleTeaserParts + } + ... on Email { + ...EmailParts + link + emailLists { + nodes { + slug + } + } + } + } + pageInfo { + endCursor + } + } +} + ${ArticleTeaserPartsFragmentDoc} +${EmailPartsFragmentDoc}`; + +/** + * __useFirstFeedConcentByRecencyQuery__ + * + * To run a query within a React component, call `useFirstFeedConcentByRecencyQuery` and pass it any options that fit your needs. + * When your component renders, `useFirstFeedConcentByRecencyQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useFirstFeedConcentByRecencyQuery({ + * variables: { + * first: // value for 'first' + * }, + * }); + */ +export function useFirstFeedConcentByRecencyQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(FirstFeedConcentByRecencyDocument, options); + } +export function useFirstFeedConcentByRecencyLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(FirstFeedConcentByRecencyDocument, options); + } +export type FirstFeedConcentByRecencyQueryHookResult = ReturnType; +export type FirstFeedConcentByRecencyLazyQueryHookResult = ReturnType; +export type FirstFeedConcentByRecencyQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/Web/FirstPopularArticles.ts b/Web/FirstPopularArticles.ts new file mode 100644 index 00000000..1b08327f --- /dev/null +++ b/Web/FirstPopularArticles.ts @@ -0,0 +1,61 @@ +import type * as Types from './types'; + +import type { ArticleTeaserPartsFragment } from './ArticleTeaserParts'; +import { gql } from '@apollo/client'; +import { ArticleTeaserPartsFragmentDoc } from './ArticleTeaserParts'; +import * as Apollo from '@apollo/client'; +const defaultOptions = {} +export type FirstPopularArticlesQueryVariables = Types.Exact<{ + edition?: Types.Maybe; + first?: Types.Maybe; +}>; + + +export type FirstPopularArticlesQuery = { __typename?: 'RootQuery', posts?: Types.Maybe<{ __typename?: 'RootQueryToPostConnection', nodes?: Types.Maybe>>, pageInfo?: Types.Maybe<{ __typename?: 'WPPageInfo', endCursor?: Types.Maybe, hasNextPage: boolean }> }> }; + + +export const FirstPopularArticlesDocument = /*#__PURE__*/ gql` + query FirstPopularArticles($edition: EditionName, $first: Int) { + posts(first: $first, where: {popular: {edition: $edition}}) @connection(key: "FirstPopularArticles") { + nodes { + ...ArticleTeaserParts + } + pageInfo { + endCursor + hasNextPage + } + } +} + ${ArticleTeaserPartsFragmentDoc}`; + +/** + * __useFirstPopularArticlesQuery__ + * + * To run a query within a React component, call `useFirstPopularArticlesQuery` and pass it any options that fit your needs. + * When your component renders, `useFirstPopularArticlesQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useFirstPopularArticlesQuery({ + * variables: { + * edition: // value for 'edition' + * first: // value for 'first' + * }, + * }); + */ +export function useFirstPopularArticlesQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(FirstPopularArticlesDocument, options); + } +export function useFirstPopularArticlesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(FirstPopularArticlesDocument, options); + } +export type FirstPopularArticlesQueryHookResult = ReturnType; +export type FirstPopularArticlesLazyQueryHookResult = ReturnType; +export type FirstPopularArticlesQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/Web/dist-cjs/FirstFeedConcentByRecency.d.ts b/Web/dist-cjs/FirstFeedConcentByRecency.d.ts new file mode 100644 index 00000000..99c955e9 --- /dev/null +++ b/Web/dist-cjs/FirstFeedConcentByRecency.d.ts @@ -0,0 +1,69 @@ +import type * as Types from './types'; +import type { ArticleTeaserPartsFragment } from './ArticleTeaserParts'; +import type { EmailPartsFragment } from './EmailParts'; +import * as Apollo from '@apollo/client'; +export declare type FirstFeedConcentByRecencyQueryVariables = Types.Exact<{ + first?: Types.Maybe; +}>; +export declare type FirstFeedConcentByRecencyQuery = { + __typename?: 'RootQuery'; + feedContent?: Types.Maybe<{ + __typename?: 'RootQueryToFeedContentConnection'; + nodes?: Types.Maybe; + emailLists?: Types.Maybe<{ + __typename?: 'EmailToEmailListConnection'; + nodes?: Types.Maybe; + }>>>; + }>; + } & EmailPartsFragment) | { + __typename?: 'Chapter'; + } | { + __typename?: 'Promotion'; + } | { + __typename?: 'Collection'; + } | { + __typename?: 'Bulletin'; + }>>>; + pageInfo?: Types.Maybe<{ + __typename?: 'WPPageInfo'; + endCursor?: Types.Maybe; + }>; + }>; +}; +export declare const FirstFeedConcentByRecencyDocument: Apollo.DocumentNode; +/** + * __useFirstFeedConcentByRecencyQuery__ + * + * To run a query within a React component, call `useFirstFeedConcentByRecencyQuery` and pass it any options that fit your needs. + * When your component renders, `useFirstFeedConcentByRecencyQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useFirstFeedConcentByRecencyQuery({ + * variables: { + * first: // value for 'first' + * }, + * }); + */ +export declare function useFirstFeedConcentByRecencyQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult | undefined; +}>>; +export declare function useFirstFeedConcentByRecencyLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.QueryTuple | undefined; +}>>; +export declare type FirstFeedConcentByRecencyQueryHookResult = ReturnType; +export declare type FirstFeedConcentByRecencyLazyQueryHookResult = ReturnType; +export declare type FirstFeedConcentByRecencyQueryResult = Apollo.QueryResult; +//# sourceMappingURL=FirstFeedConcentByRecency.d.ts.map \ No newline at end of file diff --git a/Web/dist-cjs/FirstFeedConcentByRecency.d.ts.map b/Web/dist-cjs/FirstFeedConcentByRecency.d.ts.map new file mode 100644 index 00000000..d7de7062 --- /dev/null +++ b/Web/dist-cjs/FirstFeedConcentByRecency.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FirstFeedConcentByRecency.d.ts","sourceRoot":"","sources":["../FirstFeedConcentByRecency.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIvD,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,oBAAY,uCAAuC,GAAG,KAAK,CAAC,KAAK,CAAC;IAChE,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;CAC3C,CAAC,CAAC;AAGH,oBAAY,8BAA8B,GAAG;IAAE,UAAU,CAAC,EAAE,WAAW,CAAC;IAAC,WAAW,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC;QAAE,UAAU,CAAC,EAAE,kCAAkC,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CACtL;YAAE,UAAU,CAAC,EAAE,MAAM,CAAA;SAAE,GACrB,0BAA0B,CAC7B,GAA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AC,8BAA8B,EAAE,uCAAuC,CAAC;;IAG/J;AACT,oBAAY,wCAAwC,GAAG,UAAU,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5G,oBAAY,4CAA4C,GAAG,UAAU,CAAC,OAAO,qCAAqC,CAAC,CAAC;AACpH,oBAAY,oCAAoC,GAAG,MAAM,CAAC,WAAW,CAAC,8BAA8B,EAAE,uCAAuC,CAAC,CAAC"} \ No newline at end of file diff --git a/Web/dist-cjs/FirstFeedConcentByRecency.js b/Web/dist-cjs/FirstFeedConcentByRecency.js new file mode 100644 index 00000000..4362f17a --- /dev/null +++ b/Web/dist-cjs/FirstFeedConcentByRecency.js @@ -0,0 +1,78 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.useFirstFeedConcentByRecencyLazyQuery = exports.useFirstFeedConcentByRecencyQuery = exports.FirstFeedConcentByRecencyDocument = void 0; +const client_1 = require("@apollo/client"); +const ArticleTeaserParts_1 = require("./ArticleTeaserParts"); +const EmailParts_1 = require("./EmailParts"); +const Apollo = __importStar(require("@apollo/client")); +const defaultOptions = {}; +exports.FirstFeedConcentByRecencyDocument = client_1.gql ` + query FirstFeedConcentByRecency($first: Int) { + feedContent(first: $first) @connection(key: "FirstFeedConcentByRecency") { + nodes { + ... on Post { + ...ArticleTeaserParts + } + ... on Email { + ...EmailParts + link + emailLists { + nodes { + slug + } + } + } + } + pageInfo { + endCursor + } + } +} + ${ArticleTeaserParts_1.ArticleTeaserPartsFragmentDoc} +${EmailParts_1.EmailPartsFragmentDoc}`; +/** + * __useFirstFeedConcentByRecencyQuery__ + * + * To run a query within a React component, call `useFirstFeedConcentByRecencyQuery` and pass it any options that fit your needs. + * When your component renders, `useFirstFeedConcentByRecencyQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useFirstFeedConcentByRecencyQuery({ + * variables: { + * first: // value for 'first' + * }, + * }); + */ +function useFirstFeedConcentByRecencyQuery(baseOptions) { + const options = Object.assign(Object.assign({}, defaultOptions), baseOptions); + return Apollo.useQuery(exports.FirstFeedConcentByRecencyDocument, options); +} +exports.useFirstFeedConcentByRecencyQuery = useFirstFeedConcentByRecencyQuery; +function useFirstFeedConcentByRecencyLazyQuery(baseOptions) { + const options = Object.assign(Object.assign({}, defaultOptions), baseOptions); + return Apollo.useLazyQuery(exports.FirstFeedConcentByRecencyDocument, options); +} +exports.useFirstFeedConcentByRecencyLazyQuery = useFirstFeedConcentByRecencyLazyQuery; +//# sourceMappingURL=FirstFeedConcentByRecency.js.map \ No newline at end of file diff --git a/Web/dist-cjs/FirstFeedConcentByRecency.js.map b/Web/dist-cjs/FirstFeedConcentByRecency.js.map new file mode 100644 index 00000000..62c40b1f --- /dev/null +++ b/Web/dist-cjs/FirstFeedConcentByRecency.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FirstFeedConcentByRecency.js","sourceRoot":"","sources":["../FirstFeedConcentByRecency.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAIA,2CAAqC;AACrC,6DAAqE;AACrE,6CAAqD;AACrD,uDAAyC;AACzC,MAAM,cAAc,GAAI,EAAE,CAAA;AAeb,QAAA,iCAAiC,GAAiB,YAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;MAsB5D,kDAA6B;EACjC,kCAAqB,EAAE,CAAC;AAE1B;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,iCAAiC,CAAC,WAA8G;IACxJ,MAAM,OAAO,mCAAO,cAAc,GAAK,WAAW,CAAC,CAAA;IACnD,OAAO,MAAM,CAAC,QAAQ,CAA0E,yCAAiC,EAAE,OAAO,CAAC,CAAC;AAC9I,CAAC;AAHP,8EAGO;AACP,SAAgB,qCAAqC,CAAC,WAAkH;IAC9J,MAAM,OAAO,mCAAO,cAAc,GAAK,WAAW,CAAC,CAAA;IACnD,OAAO,MAAM,CAAC,YAAY,CAA0E,yCAAiC,EAAE,OAAO,CAAC,CAAC;AAClJ,CAAC;AAHT,sFAGS"} \ No newline at end of file diff --git a/Web/dist-cjs/FirstPopularArticles.d.ts b/Web/dist-cjs/FirstPopularArticles.d.ts new file mode 100644 index 00000000..79b7de87 --- /dev/null +++ b/Web/dist-cjs/FirstPopularArticles.d.ts @@ -0,0 +1,51 @@ +import type * as Types from './types'; +import type { ArticleTeaserPartsFragment } from './ArticleTeaserParts'; +import * as Apollo from '@apollo/client'; +export declare type FirstPopularArticlesQueryVariables = Types.Exact<{ + edition?: Types.Maybe; + first?: Types.Maybe; +}>; +export declare type FirstPopularArticlesQuery = { + __typename?: 'RootQuery'; + posts?: Types.Maybe<{ + __typename?: 'RootQueryToPostConnection'; + nodes?: Types.Maybe>>; + pageInfo?: Types.Maybe<{ + __typename?: 'WPPageInfo'; + endCursor?: Types.Maybe; + hasNextPage: boolean; + }>; + }>; +}; +export declare const FirstPopularArticlesDocument: Apollo.DocumentNode; +/** + * __useFirstPopularArticlesQuery__ + * + * To run a query within a React component, call `useFirstPopularArticlesQuery` and pass it any options that fit your needs. + * When your component renders, `useFirstPopularArticlesQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useFirstPopularArticlesQuery({ + * variables: { + * edition: // value for 'edition' + * first: // value for 'first' + * }, + * }); + */ +export declare function useFirstPopularArticlesQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult | undefined; + first?: Types.Maybe | undefined; +}>>; +export declare function useFirstPopularArticlesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.QueryTuple | undefined; + first?: Types.Maybe | undefined; +}>>; +export declare type FirstPopularArticlesQueryHookResult = ReturnType; +export declare type FirstPopularArticlesLazyQueryHookResult = ReturnType; +export declare type FirstPopularArticlesQueryResult = Apollo.QueryResult; +//# sourceMappingURL=FirstPopularArticles.d.ts.map \ No newline at end of file diff --git a/Web/dist-cjs/FirstPopularArticles.d.ts.map b/Web/dist-cjs/FirstPopularArticles.d.ts.map new file mode 100644 index 00000000..ef066062 --- /dev/null +++ b/Web/dist-cjs/FirstPopularArticles.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FirstPopularArticles.d.ts","sourceRoot":"","sources":["../FirstPopularArticles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAGvE,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,oBAAY,kCAAkC,GAAG,KAAK,CAAC,KAAK,CAAC;IAC3D,OAAO,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;CAC3C,CAAC,CAAC;AAGH,oBAAY,yBAAyB,GAAG;IAAE,UAAU,CAAC,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC;QAAE,UAAU,CAAC,EAAE,2BAA2B,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CACpK;YAAE,UAAU,CAAC,EAAE,MAAM,CAAA;SAAE,GACrB,0BAA0B,CAC7B,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC;YAAE,UAAU,CAAC,EAAE,YAAY,CAAC;YAAC,SAAS,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAAC,WAAW,EAAE,OAAO,CAAA;SAAE,CAAC,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC;AAG5H,eAAO,MAAM,4BAA4B,qBAYJ,CAAC;AAEtC;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,4BAA4B,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,yBAAyB,EAAE,kCAAkC,CAAC;;;IAG1I;AACP,wBAAgB,gCAAgC,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,yBAAyB,EAAE,kCAAkC,CAAC;;;IAGhJ;AACT,oBAAY,mCAAmC,GAAG,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClG,oBAAY,uCAAuC,GAAG,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1G,oBAAY,+BAA+B,GAAG,MAAM,CAAC,WAAW,CAAC,yBAAyB,EAAE,kCAAkC,CAAC,CAAC"} \ No newline at end of file diff --git a/Web/dist-cjs/FirstPopularArticles.js b/Web/dist-cjs/FirstPopularArticles.js new file mode 100644 index 00000000..6264ffff --- /dev/null +++ b/Web/dist-cjs/FirstPopularArticles.js @@ -0,0 +1,67 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.useFirstPopularArticlesLazyQuery = exports.useFirstPopularArticlesQuery = exports.FirstPopularArticlesDocument = void 0; +const client_1 = require("@apollo/client"); +const ArticleTeaserParts_1 = require("./ArticleTeaserParts"); +const Apollo = __importStar(require("@apollo/client")); +const defaultOptions = {}; +exports.FirstPopularArticlesDocument = client_1.gql ` + query FirstPopularArticles($edition: EditionName, $first: Int) { + posts(first: $first, where: {popular: {edition: $edition}}) @connection(key: "FirstPopularArticles") { + nodes { + ...ArticleTeaserParts + } + pageInfo { + endCursor + hasNextPage + } + } +} + ${ArticleTeaserParts_1.ArticleTeaserPartsFragmentDoc}`; +/** + * __useFirstPopularArticlesQuery__ + * + * To run a query within a React component, call `useFirstPopularArticlesQuery` and pass it any options that fit your needs. + * When your component renders, `useFirstPopularArticlesQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useFirstPopularArticlesQuery({ + * variables: { + * edition: // value for 'edition' + * first: // value for 'first' + * }, + * }); + */ +function useFirstPopularArticlesQuery(baseOptions) { + const options = Object.assign(Object.assign({}, defaultOptions), baseOptions); + return Apollo.useQuery(exports.FirstPopularArticlesDocument, options); +} +exports.useFirstPopularArticlesQuery = useFirstPopularArticlesQuery; +function useFirstPopularArticlesLazyQuery(baseOptions) { + const options = Object.assign(Object.assign({}, defaultOptions), baseOptions); + return Apollo.useLazyQuery(exports.FirstPopularArticlesDocument, options); +} +exports.useFirstPopularArticlesLazyQuery = useFirstPopularArticlesLazyQuery; +//# sourceMappingURL=FirstPopularArticles.js.map \ No newline at end of file diff --git a/Web/dist-cjs/FirstPopularArticles.js.map b/Web/dist-cjs/FirstPopularArticles.js.map new file mode 100644 index 00000000..06979840 --- /dev/null +++ b/Web/dist-cjs/FirstPopularArticles.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FirstPopularArticles.js","sourceRoot":"","sources":["../FirstPopularArticles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAGA,2CAAqC;AACrC,6DAAqE;AACrE,uDAAyC;AACzC,MAAM,cAAc,GAAI,EAAE,CAAA;AAab,QAAA,4BAA4B,GAAiB,YAAG,CAAA;;;;;;;;;;;;MAYvD,kDAA6B,EAAE,CAAC;AAEtC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,4BAA4B,CAAC,WAAoG;IACzI,MAAM,OAAO,mCAAO,cAAc,GAAK,WAAW,CAAC,CAAA;IACnD,OAAO,MAAM,CAAC,QAAQ,CAAgE,oCAA4B,EAAE,OAAO,CAAC,CAAC;AAC/H,CAAC;AAHP,oEAGO;AACP,SAAgB,gCAAgC,CAAC,WAAwG;IAC/I,MAAM,OAAO,mCAAO,cAAc,GAAK,WAAW,CAAC,CAAA;IACnD,OAAO,MAAM,CAAC,YAAY,CAAgE,oCAA4B,EAAE,OAAO,CAAC,CAAC;AACnI,CAAC;AAHT,4EAGS"} \ No newline at end of file diff --git a/Web/dist-cjs/index.d.ts b/Web/dist-cjs/index.d.ts index a74e4ce7..870fc58e 100644 --- a/Web/dist-cjs/index.d.ts +++ b/Web/dist-cjs/index.d.ts @@ -35,6 +35,8 @@ export * from './EssentialsByArticlePreview'; export * from './EssentialsByCollection'; export * from './EssentialsByGuide'; export * from './EssentialsByObsession'; +export * from './FirstFeedConcentByRecency'; +export * from './FirstPopularArticles'; export * from './GuideParts'; export * from './Guides'; export * from './GuidesBySlug'; diff --git a/Web/dist-cjs/index.d.ts.map b/Web/dist-cjs/index.d.ts.map index 4a90a7a6..2a3475af 100644 --- a/Web/dist-cjs/index.d.ts.map +++ b/Web/dist-cjs/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAy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,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"} \ No newline at end of file diff --git a/Web/dist-cjs/index.js b/Web/dist-cjs/index.js index d0ae7d50..23c29290 100644 --- a/Web/dist-cjs/index.js +++ b/Web/dist-cjs/index.js @@ -48,6 +48,8 @@ __exportStar(require("./EssentialsByArticlePreview"), exports); __exportStar(require("./EssentialsByCollection"), exports); __exportStar(require("./EssentialsByGuide"), exports); __exportStar(require("./EssentialsByObsession"), exports); +__exportStar(require("./FirstFeedConcentByRecency"), exports); +__exportStar(require("./FirstPopularArticles"), exports); __exportStar(require("./GuideParts"), exports); __exportStar(require("./Guides"), exports); __exportStar(require("./GuidesBySlug"), exports); diff --git a/Web/dist-cjs/index.js.map b/Web/dist-cjs/index.js.map index a2b05a21..5d3ea50f 100644 --- a/Web/dist-cjs/index.js.map +++ b/Web/dist-cjs/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,gDAAgD;;;;;;;;;;;;AAEhD,4CAAyB;AACzB,iDAA8B;AAC9B,kDAA+B;AAC/B,uDAAoC;AACpC,qDAAkC;AAClC,oDAAiC;AACjC,wDAAqC;AACrC,yDAAsC;AACtC,qDAAkC;AAClC,mDAAgC;AAChC,kDAA+B;AAC/B,oDAAiC;AACjC,gDAA6B;AAC7B,+CAA4B;AAC5B,sDAAmC;AACnC,kDAA+B;AAC/B,sDAAmC;AACnC,+CAA4B;AAC5B,oDAAiC;AACjC,gDAA6B;AAC7B,oDAAiC;AACjC,wDAAqC;AACrC,iDAA8B;AAC9B,iDAA8B;AAC9B,6CAA0B;AAC1B,8CAA2B;AAC3B,mDAAgC;AAChC,qDAAkC;AAClC,+CAA4B;AAC5B,mDAAgC;AAChC,iDAA8B;AAC9B,gDAA6B;AAC7B,wDAAqC;AACrC,+DAA4C;AAC5C,2DAAwC;AACxC,sDAAmC;AACnC,0DAAuC;AACvC,+CAA4B;AAC5B,2CAAwB;AACxB,iDAA8B;AAC9B,kDAA+B;AAC/B,mDAAgC;AAChC,0DAAuC;AACvC,mDAAgC;AAChC,sDAAmC;AACnC,sDAAmC;AACnC,mDAAgC;AAChC,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,+CAA4B;AAC5B,kDAA+B;AAC/B,wCAAqB;AACrB,6CAA0B;AAC1B,8CAA2B;AAC3B,mDAAgC;AAChC,+CAA4B;AAC5B,8CAA2B;AAC3B,iDAA8B;AAC9B,mDAAgC;AAChC,oDAAiC;AACjC,gDAA6B;AAC7B,8CAA2B;AAC3B,6CAA0B;AAC1B,+CAA4B;AAC5B,2CAAwB;AACxB,6CAA0B;AAC1B,+CAA4B;AAC5B,0CAAuB"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,gDAAgD;;;;;;;;;;;;AAEhD,4CAAyB;AACzB,iDAA8B;AAC9B,kDAA+B;AAC/B,uDAAoC;AACpC,qDAAkC;AAClC,oDAAiC;AACjC,wDAAqC;AACrC,yDAAsC;AACtC,qDAAkC;AAClC,mDAAgC;AAChC,kDAA+B;AAC/B,oDAAiC;AACjC,gDAA6B;AAC7B,+CAA4B;AAC5B,sDAAmC;AACnC,kDAA+B;AAC/B,sDAAmC;AACnC,+CAA4B;AAC5B,oDAAiC;AACjC,gDAA6B;AAC7B,oDAAiC;AACjC,wDAAqC;AACrC,iDAA8B;AAC9B,iDAA8B;AAC9B,6CAA0B;AAC1B,8CAA2B;AAC3B,mDAAgC;AAChC,qDAAkC;AAClC,+CAA4B;AAC5B,mDAAgC;AAChC,iDAA8B;AAC9B,gDAA6B;AAC7B,wDAAqC;AACrC,+DAA4C;AAC5C,2DAAwC;AACxC,sDAAmC;AACnC,0DAAuC;AACvC,8DAA2C;AAC3C,yDAAsC;AACtC,+CAA4B;AAC5B,2CAAwB;AACxB,iDAA8B;AAC9B,kDAA+B;AAC/B,mDAAgC;AAChC,0DAAuC;AACvC,mDAAgC;AAChC,sDAAmC;AACnC,sDAAmC;AACnC,mDAAgC;AAChC,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,+CAA4B;AAC5B,kDAA+B;AAC/B,wCAAqB;AACrB,6CAA0B;AAC1B,8CAA2B;AAC3B,mDAAgC;AAChC,+CAA4B;AAC5B,8CAA2B;AAC3B,iDAA8B;AAC9B,mDAAgC;AAChC,oDAAiC;AACjC,gDAA6B;AAC7B,8CAA2B;AAC3B,6CAA0B;AAC1B,+CAA4B;AAC5B,2CAAwB;AACxB,6CAA0B;AAC1B,+CAA4B;AAC5B,0CAAuB"} \ No newline at end of file diff --git a/Web/dist/FirstFeedConcentByRecency.d.ts b/Web/dist/FirstFeedConcentByRecency.d.ts new file mode 100644 index 00000000..99c955e9 --- /dev/null +++ b/Web/dist/FirstFeedConcentByRecency.d.ts @@ -0,0 +1,69 @@ +import type * as Types from './types'; +import type { ArticleTeaserPartsFragment } from './ArticleTeaserParts'; +import type { EmailPartsFragment } from './EmailParts'; +import * as Apollo from '@apollo/client'; +export declare type FirstFeedConcentByRecencyQueryVariables = Types.Exact<{ + first?: Types.Maybe; +}>; +export declare type FirstFeedConcentByRecencyQuery = { + __typename?: 'RootQuery'; + feedContent?: Types.Maybe<{ + __typename?: 'RootQueryToFeedContentConnection'; + nodes?: Types.Maybe; + emailLists?: Types.Maybe<{ + __typename?: 'EmailToEmailListConnection'; + nodes?: Types.Maybe; + }>>>; + }>; + } & EmailPartsFragment) | { + __typename?: 'Chapter'; + } | { + __typename?: 'Promotion'; + } | { + __typename?: 'Collection'; + } | { + __typename?: 'Bulletin'; + }>>>; + pageInfo?: Types.Maybe<{ + __typename?: 'WPPageInfo'; + endCursor?: Types.Maybe; + }>; + }>; +}; +export declare const FirstFeedConcentByRecencyDocument: Apollo.DocumentNode; +/** + * __useFirstFeedConcentByRecencyQuery__ + * + * To run a query within a React component, call `useFirstFeedConcentByRecencyQuery` and pass it any options that fit your needs. + * When your component renders, `useFirstFeedConcentByRecencyQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useFirstFeedConcentByRecencyQuery({ + * variables: { + * first: // value for 'first' + * }, + * }); + */ +export declare function useFirstFeedConcentByRecencyQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult | undefined; +}>>; +export declare function useFirstFeedConcentByRecencyLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.QueryTuple | undefined; +}>>; +export declare type FirstFeedConcentByRecencyQueryHookResult = ReturnType; +export declare type FirstFeedConcentByRecencyLazyQueryHookResult = ReturnType; +export declare type FirstFeedConcentByRecencyQueryResult = Apollo.QueryResult; +//# sourceMappingURL=FirstFeedConcentByRecency.d.ts.map \ No newline at end of file diff --git a/Web/dist/FirstFeedConcentByRecency.d.ts.map b/Web/dist/FirstFeedConcentByRecency.d.ts.map new file mode 100644 index 00000000..d7de7062 --- /dev/null +++ b/Web/dist/FirstFeedConcentByRecency.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FirstFeedConcentByRecency.d.ts","sourceRoot":"","sources":["../FirstFeedConcentByRecency.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIvD,OAAO,KAAK,MAAM,MAAM,g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,CAAA;SAAE,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC;YAAE,UAAU,CAAC,EAAE,YAAY,CAAC;YAAC,SAAS,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;SAAE,CAAC,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC;AAGhO,eAAO,MAAM,iCAAiC,qBAuBrB,CAAC;AAE1B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iCAAiC,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,8BAA8B,EAAE,uCAAuC,CAAC;;IAGzJ;AACP,wBAAgB,qCAAqC,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,8BAA8B,EAAE,uCAAuC,CAAC;;IAG/J;AACT,oBAAY,wCAAwC,GAAG,UAAU,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5G,oBAAY,4CAA4C,GAAG,UAAU,CAAC,OAAO,qCAAqC,CAAC,CAAC;AACpH,oBAAY,oCAAoC,GAAG,MAAM,CAAC,WAAW,CAAC,8BAA8B,EAAE,uCAAuC,CAAC,CAAC"} \ No newline at end of file diff --git a/Web/dist/FirstFeedConcentByRecency.js b/Web/dist/FirstFeedConcentByRecency.js new file mode 100644 index 00000000..453b51bb --- /dev/null +++ b/Web/dist/FirstFeedConcentByRecency.js @@ -0,0 +1,54 @@ +import { gql } from '@apollo/client'; +import { ArticleTeaserPartsFragmentDoc } from './ArticleTeaserParts'; +import { EmailPartsFragmentDoc } from './EmailParts'; +import * as Apollo from '@apollo/client'; +const defaultOptions = {}; +export const FirstFeedConcentByRecencyDocument = /*#__PURE__*/ gql ` + query FirstFeedConcentByRecency($first: Int) { + feedContent(first: $first) @connection(key: "FirstFeedConcentByRecency") { + nodes { + ... on Post { + ...ArticleTeaserParts + } + ... on Email { + ...EmailParts + link + emailLists { + nodes { + slug + } + } + } + } + pageInfo { + endCursor + } + } +} + ${ArticleTeaserPartsFragmentDoc} +${EmailPartsFragmentDoc}`; +/** + * __useFirstFeedConcentByRecencyQuery__ + * + * To run a query within a React component, call `useFirstFeedConcentByRecencyQuery` and pass it any options that fit your needs. + * When your component renders, `useFirstFeedConcentByRecencyQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useFirstFeedConcentByRecencyQuery({ + * variables: { + * first: // value for 'first' + * }, + * }); + */ +export function useFirstFeedConcentByRecencyQuery(baseOptions) { + const options = Object.assign(Object.assign({}, defaultOptions), baseOptions); + return Apollo.useQuery(FirstFeedConcentByRecencyDocument, options); +} +export function useFirstFeedConcentByRecencyLazyQuery(baseOptions) { + const options = Object.assign(Object.assign({}, defaultOptions), baseOptions); + return Apollo.useLazyQuery(FirstFeedConcentByRecencyDocument, options); +} +//# sourceMappingURL=FirstFeedConcentByRecency.js.map \ No newline at end of file diff --git a/Web/dist/FirstFeedConcentByRecency.js.map b/Web/dist/FirstFeedConcentByRecency.js.map new file mode 100644 index 00000000..7bb07ea8 --- /dev/null +++ b/Web/dist/FirstFeedConcentByRecency.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FirstFeedConcentByRecency.js","sourceRoot":"","sources":["../FirstFeedConcentByRecency.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,MAAM,cAAc,GAAI,EAAE,CAAA;AAe1B,MAAM,CAAC,MAAM,iCAAiC,GAAG,aAAa,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;MAsB5D,6BAA6B;EACjC,qBAAqB,EAAE,CAAC;AAE1B;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,iCAAiC,CAAC,WAA8G;IACxJ,MAAM,OAAO,mCAAO,cAAc,GAAK,WAAW,CAAC,CAAA;IACnD,OAAO,MAAM,CAAC,QAAQ,CAA0E,iCAAiC,EAAE,OAAO,CAAC,CAAC;AAC9I,CAAC;AACP,MAAM,UAAU,qCAAqC,CAAC,WAAkH;IAC9J,MAAM,OAAO,mCAAO,cAAc,GAAK,WAAW,CAAC,CAAA;IACnD,OAAO,MAAM,CAAC,YAAY,CAA0E,iCAAiC,EAAE,OAAO,CAAC,CAAC;AAClJ,CAAC"} \ No newline at end of file diff --git a/Web/dist/FirstPopularArticles.d.ts b/Web/dist/FirstPopularArticles.d.ts new file mode 100644 index 00000000..79b7de87 --- /dev/null +++ b/Web/dist/FirstPopularArticles.d.ts @@ -0,0 +1,51 @@ +import type * as Types from './types'; +import type { ArticleTeaserPartsFragment } from './ArticleTeaserParts'; +import * as Apollo from '@apollo/client'; +export declare type FirstPopularArticlesQueryVariables = Types.Exact<{ + edition?: Types.Maybe; + first?: Types.Maybe; +}>; +export declare type FirstPopularArticlesQuery = { + __typename?: 'RootQuery'; + posts?: Types.Maybe<{ + __typename?: 'RootQueryToPostConnection'; + nodes?: Types.Maybe>>; + pageInfo?: Types.Maybe<{ + __typename?: 'WPPageInfo'; + endCursor?: Types.Maybe; + hasNextPage: boolean; + }>; + }>; +}; +export declare const FirstPopularArticlesDocument: Apollo.DocumentNode; +/** + * __useFirstPopularArticlesQuery__ + * + * To run a query within a React component, call `useFirstPopularArticlesQuery` and pass it any options that fit your needs. + * When your component renders, `useFirstPopularArticlesQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useFirstPopularArticlesQuery({ + * variables: { + * edition: // value for 'edition' + * first: // value for 'first' + * }, + * }); + */ +export declare function useFirstPopularArticlesQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult | undefined; + first?: Types.Maybe | undefined; +}>>; +export declare function useFirstPopularArticlesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.QueryTuple | undefined; + first?: Types.Maybe | undefined; +}>>; +export declare type FirstPopularArticlesQueryHookResult = ReturnType; +export declare type FirstPopularArticlesLazyQueryHookResult = ReturnType; +export declare type FirstPopularArticlesQueryResult = Apollo.QueryResult; +//# sourceMappingURL=FirstPopularArticles.d.ts.map \ No newline at end of file diff --git a/Web/dist/FirstPopularArticles.d.ts.map b/Web/dist/FirstPopularArticles.d.ts.map new file mode 100644 index 00000000..ef066062 --- /dev/null +++ b/Web/dist/FirstPopularArticles.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FirstPopularArticles.d.ts","sourceRoot":"","sources":["../FirstPopularArticles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAGvE,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,oBAAY,kCAAkC,GAAG,KAAK,CAAC,KAAK,CAAC;IAC3D,OAAO,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;CAC3C,CAAC,CAAC;AAGH,oBAAY,yBAAyB,GAAG;IAAE,UAAU,CAAC,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC;QAAE,UAAU,CAAC,EAAE,2BAA2B,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CACpK;YAAE,UAAU,CAAC,EAAE,MAAM,CAAA;SAAE,GACrB,0BAA0B,CAC7B,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC;YAAE,UAAU,CAAC,EAAE,YAAY,CAAC;YAAC,SAAS,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAAC,WAAW,EAAE,OAAO,CAAA;SAAE,CAAC,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC;AAG5H,eAAO,MAAM,4BAA4B,qBAYJ,CAAC;AAEtC;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,4BAA4B,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,yBAAyB,EAAE,kCAAkC,CAAC;;;IAG1I;AACP,wBAAgB,gCAAgC,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,yBAAyB,EAAE,kCAAkC,CAAC;;;IAGhJ;AACT,oBAAY,mCAAmC,GAAG,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClG,oBAAY,uCAAuC,GAAG,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1G,oBAAY,+BAA+B,GAAG,MAAM,CAAC,WAAW,CAAC,yBAAyB,EAAE,kCAAkC,CAAC,CAAC"} \ No newline at end of file diff --git a/Web/dist/FirstPopularArticles.js b/Web/dist/FirstPopularArticles.js new file mode 100644 index 00000000..82879447 --- /dev/null +++ b/Web/dist/FirstPopularArticles.js @@ -0,0 +1,43 @@ +import { gql } from '@apollo/client'; +import { ArticleTeaserPartsFragmentDoc } from './ArticleTeaserParts'; +import * as Apollo from '@apollo/client'; +const defaultOptions = {}; +export const FirstPopularArticlesDocument = /*#__PURE__*/ gql ` + query FirstPopularArticles($edition: EditionName, $first: Int) { + posts(first: $first, where: {popular: {edition: $edition}}) @connection(key: "FirstPopularArticles") { + nodes { + ...ArticleTeaserParts + } + pageInfo { + endCursor + hasNextPage + } + } +} + ${ArticleTeaserPartsFragmentDoc}`; +/** + * __useFirstPopularArticlesQuery__ + * + * To run a query within a React component, call `useFirstPopularArticlesQuery` and pass it any options that fit your needs. + * When your component renders, `useFirstPopularArticlesQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useFirstPopularArticlesQuery({ + * variables: { + * edition: // value for 'edition' + * first: // value for 'first' + * }, + * }); + */ +export function useFirstPopularArticlesQuery(baseOptions) { + const options = Object.assign(Object.assign({}, defaultOptions), baseOptions); + return Apollo.useQuery(FirstPopularArticlesDocument, options); +} +export function useFirstPopularArticlesLazyQuery(baseOptions) { + const options = Object.assign(Object.assign({}, defaultOptions), baseOptions); + return Apollo.useLazyQuery(FirstPopularArticlesDocument, options); +} +//# sourceMappingURL=FirstPopularArticles.js.map \ No newline at end of file diff --git a/Web/dist/FirstPopularArticles.js.map b/Web/dist/FirstPopularArticles.js.map new file mode 100644 index 00000000..fd340d33 --- /dev/null +++ b/Web/dist/FirstPopularArticles.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FirstPopularArticles.js","sourceRoot":"","sources":["../FirstPopularArticles.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,MAAM,cAAc,GAAI,EAAE,CAAA;AAa1B,MAAM,CAAC,MAAM,4BAA4B,GAAG,aAAa,CAAC,GAAG,CAAA;;;;;;;;;;;;MAYvD,6BAA6B,EAAE,CAAC;AAEtC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,4BAA4B,CAAC,WAAoG;IACzI,MAAM,OAAO,mCAAO,cAAc,GAAK,WAAW,CAAC,CAAA;IACnD,OAAO,MAAM,CAAC,QAAQ,CAAgE,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC/H,CAAC;AACP,MAAM,UAAU,gCAAgC,CAAC,WAAwG;IAC/I,MAAM,OAAO,mCAAO,cAAc,GAAK,WAAW,CAAC,CAAA;IACnD,OAAO,MAAM,CAAC,YAAY,CAAgE,4BAA4B,EAAE,OAAO,CAAC,CAAC;AACnI,CAAC"} \ No newline at end of file diff --git a/Web/dist/index.d.ts b/Web/dist/index.d.ts index a74e4ce7..870fc58e 100644 --- a/Web/dist/index.d.ts +++ b/Web/dist/index.d.ts @@ -35,6 +35,8 @@ export * from './EssentialsByArticlePreview'; export * from './EssentialsByCollection'; export * from './EssentialsByGuide'; export * from './EssentialsByObsession'; +export * from './FirstFeedConcentByRecency'; +export * from './FirstPopularArticles'; export * from './GuideParts'; export * from './Guides'; export * from './GuidesBySlug'; diff --git a/Web/dist/index.d.ts.map b/Web/dist/index.d.ts.map index 4a90a7a6..2a3475af 100644 --- a/Web/dist/index.d.ts.map +++ b/Web/dist/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,c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CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,OAAO,CAAA;AACrB,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"} \ No newline at end of file diff --git a/Web/dist/index.js b/Web/dist/index.js index 1af1ca62..dd732ff8 100644 --- a/Web/dist/index.js +++ b/Web/dist/index.js @@ -36,6 +36,8 @@ export * from './EssentialsByArticlePreview'; export * from './EssentialsByCollection'; export * from './EssentialsByGuide'; export * from './EssentialsByObsession'; +export * from './FirstFeedConcentByRecency'; +export * from './FirstPopularArticles'; export * from './GuideParts'; export * from './Guides'; export * from './GuidesBySlug'; diff --git a/Web/dist/index.js.map b/Web/dist/index.js.map index 28600b3e..d82f29f5 100644 --- a/Web/dist/index.js.map +++ b/Web/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAEhD,cAAc,WAAW,C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AC5B,cAAc,SAAS,CAAA"} \ No newline at end of file diff --git a/Web/index.ts b/Web/index.ts index 8d93f320..c9ad0032 100644 --- a/Web/index.ts +++ b/Web/index.ts @@ -37,6 +37,8 @@ export * from './EssentialsByArticlePreview' export * from './EssentialsByCollection' export * from './EssentialsByGuide' export * from './EssentialsByObsession' +export * from './FirstFeedConcentByRecency' +export * from './FirstPopularArticles' export * from './GuideParts' export * from './Guides' export * from './GuidesBySlug' diff --git a/iOS/QuartzContent/QuartzContent.swift b/iOS/QuartzContent/QuartzContent.swift index 0a60c3b0..41f9fdd3 100644 --- a/iOS/QuartzContent/QuartzContent.swift +++ b/iOS/QuartzContent/QuartzContent.swift @@ -6056,6 +6056,694 @@ public final class ContentByTagQuery: GraphQLQuery { } } +public final class FirstFeedConcentByRecencyQuery: GraphQLQuery { + /// The raw GraphQL definition of this operation. + public let operationDefinition: String = + """ + query FirstFeedConcentByRecency($first: Int) { + feedContent(first: $first) @connection(key: "FirstFeedConcentByRecency") { + __typename + nodes { + __typename + ... on Post { + ...ArticleTeaserParts + } + ... on Email { + ...EmailParts + link + emailLists { + __typename + nodes { + __typename + slug + } + } + } + } + pageInfo { + __typename + endCursor + } + } + } + """ + + public let operationName: String = "FirstFeedConcentByRecency" + + public let operationIdentifier: String? = "a1b4f88b3a0fe0273e8d56c2138a80740f12fb4f7c41ca426aab8b47d4a544a7" + + public var queryDocument: String { + var document: String = operationDefinition + document.append("\n" + ArticleTeaserParts.fragmentDefinition) + document.append("\n" + MediaParts.fragmentDefinition) + document.append("\n" + VideoParts.fragmentDefinition) + document.append("\n" + EmailParts.fragmentDefinition) + return document + } + + public var first: Int? + + public init(first: Int? = nil) { + self.first = first + } + + public var variables: GraphQLMap? { + return ["first": first] + } + + public struct Data: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["RootQuery"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLField("feedContent", arguments: ["first": GraphQLVariable("first")], type: .object(FeedContent.selections)), + ] + } + + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public init(feedContent: FeedContent? = nil) { + self.init(unsafeResultMap: ["__typename": "RootQuery", "feedContent": feedContent.flatMap { (value: FeedContent) -> ResultMap in value.resultMap }]) + } + + /// Connection between the RootQuery type and the ContentUnion type + public var feedContent: FeedContent? { + get { + return (resultMap["feedContent"] as? ResultMap).flatMap { FeedContent(unsafeResultMap: $0) } + } + set { + resultMap.updateValue(newValue?.resultMap, forKey: "feedContent") + } + } + + public struct FeedContent: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["RootQueryToFeedContentConnection"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLField("__typename", type: .nonNull(.scalar(String.self))), + GraphQLField("nodes", type: .list(.object(Node.selections))), + GraphQLField("pageInfo", type: .object(PageInfo.selections)), + ] + } + + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public init(nodes: [Node?]? = nil, pageInfo: PageInfo? = nil) { + self.init(unsafeResultMap: ["__typename": "RootQueryToFeedContentConnection", "nodes": nodes.flatMap { (value: [Node?]) -> [ResultMap?] in value.map { (value: Node?) -> ResultMap? in value.flatMap { (value: Node) -> ResultMap in value.resultMap } } }, "pageInfo": pageInfo.flatMap { (value: PageInfo) -> ResultMap in value.resultMap }]) + } + + public var __typename: String { + get { + return resultMap["__typename"]! as! String + } + set { + resultMap.updateValue(newValue, forKey: "__typename") + } + } + + /// The nodes of the connection, without the edges + public var nodes: [Node?]? { + get { + return (resultMap["nodes"] as? [ResultMap?]).flatMap { (value: [ResultMap?]) -> [Node?] in value.map { (value: ResultMap?) -> Node? in value.flatMap { (value: ResultMap) -> Node in Node(unsafeResultMap: value) } } } + } + set { + resultMap.updateValue(newValue.flatMap { (value: [Node?]) -> [ResultMap?] in value.map { (value: Node?) -> ResultMap? in value.flatMap { (value: Node) -> ResultMap in value.resultMap } } }, forKey: "nodes") + } + } + + /// Information about pagination in a connection. + public var pageInfo: PageInfo? { + get { + return (resultMap["pageInfo"] as? ResultMap).flatMap { PageInfo(unsafeResultMap: $0) } + } + set { + resultMap.updateValue(newValue?.resultMap, forKey: "pageInfo") + } + } + + public struct Node: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["Post", "Page", "MediaItem", "Email", "Chapter", "Promotion", "Collection", "Bulletin"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLTypeCase( + variants: ["Post": AsPost.selections, "Email": AsEmail.selections], + default: [ + GraphQLField("__typename", type: .nonNull(.scalar(String.self))), + ] + ) + ] + } + + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public static func makePage() -> Node { + return Node(unsafeResultMap: ["__typename": "Page"]) + } + + public static func makeMediaItem() -> Node { + return Node(unsafeResultMap: ["__typename": "MediaItem"]) + } + + public static func makeChapter() -> Node { + return Node(unsafeResultMap: ["__typename": "Chapter"]) + } + + public static func makePromotion() -> Node { + return Node(unsafeResultMap: ["__typename": "Promotion"]) + } + + public static func makeCollection() -> Node { + return Node(unsafeResultMap: ["__typename": "Collection"]) + } + + public static func makeBulletin() -> Node { + return Node(unsafeResultMap: ["__typename": "Bulletin"]) + } + + public var __typename: String { + get { + return resultMap["__typename"]! as! String + } + set { + resultMap.updateValue(newValue, forKey: "__typename") + } + } + + public var asPost: AsPost? { + get { + if !AsPost.possibleTypes.contains(__typename) { return nil } + return AsPost(unsafeResultMap: resultMap) + } + set { + guard let newValue = newValue else { return } + resultMap = newValue.resultMap + } + } + + public struct AsPost: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["Post"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLField("__typename", type: .nonNull(.scalar(String.self))), + GraphQLFragmentSpread(ArticleTeaserParts.self), + ] + } + + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public var __typename: String { + get { + return resultMap["__typename"]! as! String + } + set { + resultMap.updateValue(newValue, forKey: "__typename") + } + } + + public var fragments: Fragments { + get { + return Fragments(unsafeResultMap: resultMap) + } + set { + resultMap += newValue.resultMap + } + } + + public struct Fragments { + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public var articleTeaserParts: ArticleTeaserParts { + get { + return ArticleTeaserParts(unsafeResultMap: resultMap) + } + set { + resultMap += newValue.resultMap + } + } + } + } + + public var asEmail: AsEmail? { + get { + if !AsEmail.possibleTypes.contains(__typename) { return nil } + return AsEmail(unsafeResultMap: resultMap) + } + set { + guard let newValue = newValue else { return } + resultMap = newValue.resultMap + } + } + + public struct AsEmail: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["Email"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLField("__typename", type: .nonNull(.scalar(String.self))), + GraphQLFragmentSpread(EmailParts.self), + GraphQLField("link", type: .scalar(String.self)), + GraphQLField("emailLists", type: .object(EmailList.selections)), + ] + } + + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public var __typename: String { + get { + return resultMap["__typename"]! as! String + } + set { + resultMap.updateValue(newValue, forKey: "__typename") + } + } + + /// The permalink of the post + public var link: String? { + get { + return resultMap["link"] as? String + } + set { + resultMap.updateValue(newValue, forKey: "link") + } + } + + /// Connection between the email type and the emailList type + public var emailLists: EmailList? { + get { + return (resultMap["emailLists"] as? ResultMap).flatMap { EmailList(unsafeResultMap: $0) } + } + set { + resultMap.updateValue(newValue?.resultMap, forKey: "emailLists") + } + } + + public var fragments: Fragments { + get { + return Fragments(unsafeResultMap: resultMap) + } + set { + resultMap += newValue.resultMap + } + } + + public struct Fragments { + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public var emailParts: EmailParts { + get { + return EmailParts(unsafeResultMap: resultMap) + } + set { + resultMap += newValue.resultMap + } + } + } + + public struct EmailList: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["EmailToEmailListConnection"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLField("__typename", type: .nonNull(.scalar(String.self))), + GraphQLField("nodes", type: .list(.object(Node.selections))), + ] + } + + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public init(nodes: [Node?]? = nil) { + self.init(unsafeResultMap: ["__typename": "EmailToEmailListConnection", "nodes": nodes.flatMap { (value: [Node?]) -> [ResultMap?] in value.map { (value: Node?) -> ResultMap? in value.flatMap { (value: Node) -> ResultMap in value.resultMap } } }]) + } + + public var __typename: String { + get { + return resultMap["__typename"]! as! String + } + set { + resultMap.updateValue(newValue, forKey: "__typename") + } + } + + /// The nodes of the connection, without the edges + public var nodes: [Node?]? { + get { + return (resultMap["nodes"] as? [ResultMap?]).flatMap { (value: [ResultMap?]) -> [Node?] in value.map { (value: ResultMap?) -> Node? in value.flatMap { (value: ResultMap) -> Node in Node(unsafeResultMap: value) } } } + } + set { + resultMap.updateValue(newValue.flatMap { (value: [Node?]) -> [ResultMap?] in value.map { (value: Node?) -> ResultMap? in value.flatMap { (value: Node) -> ResultMap in value.resultMap } } }, forKey: "nodes") + } + } + + public struct Node: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["EmailList"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLField("__typename", type: .nonNull(.scalar(String.self))), + GraphQLField("slug", type: .scalar(String.self)), + ] + } + + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public init(slug: String? = nil) { + self.init(unsafeResultMap: ["__typename": "EmailList", "slug": slug]) + } + + public var __typename: String { + get { + return resultMap["__typename"]! as! String + } + set { + resultMap.updateValue(newValue, forKey: "__typename") + } + } + + /// An alphanumeric identifier for the object unique to its type. + public var slug: String? { + get { + return resultMap["slug"] as? String + } + set { + resultMap.updateValue(newValue, forKey: "slug") + } + } + } + } + } + } + + public struct PageInfo: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["WPPageInfo"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLField("__typename", type: .nonNull(.scalar(String.self))), + GraphQLField("endCursor", type: .scalar(String.self)), + ] + } + + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public init(endCursor: String? = nil) { + self.init(unsafeResultMap: ["__typename": "WPPageInfo", "endCursor": endCursor]) + } + + public var __typename: String { + get { + return resultMap["__typename"]! as! String + } + set { + resultMap.updateValue(newValue, forKey: "__typename") + } + } + + /// When paginating forwards, the cursor to continue. + public var endCursor: String? { + get { + return resultMap["endCursor"] as? String + } + set { + resultMap.updateValue(newValue, forKey: "endCursor") + } + } + } + } + } +} + +public final class FirstPopularArticlesQuery: GraphQLQuery { + /// The raw GraphQL definition of this operation. + public let operationDefinition: String = + """ + query FirstPopularArticles($edition: EditionName, $first: Int) { + posts(first: $first, where: {popular: {edition: $edition}}) @connection(key: "FirstPopularArticles") { + __typename + nodes { + __typename + ...ArticleTeaserParts + } + pageInfo { + __typename + endCursor + hasNextPage + } + } + } + """ + + public let operationName: String = "FirstPopularArticles" + + public let operationIdentifier: String? = "01e39d649fe1225929745bd85e3f48e62d86ab3bab484741c757bd25ef3d48fb" + + public var queryDocument: String { + var document: String = operationDefinition + document.append("\n" + ArticleTeaserParts.fragmentDefinition) + document.append("\n" + MediaParts.fragmentDefinition) + document.append("\n" + VideoParts.fragmentDefinition) + return document + } + + public var edition: EditionName? + public var first: Int? + + public init(edition: EditionName? = nil, first: Int? = nil) { + self.edition = edition + self.first = first + } + + public var variables: GraphQLMap? { + return ["edition": edition, "first": first] + } + + public struct Data: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["RootQuery"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLField("posts", arguments: ["first": GraphQLVariable("first"), "where": ["popular": ["edition": GraphQLVariable("edition")]]], type: .object(Post.selections)), + ] + } + + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public init(posts: Post? = nil) { + self.init(unsafeResultMap: ["__typename": "RootQuery", "posts": posts.flatMap { (value: Post) -> ResultMap in value.resultMap }]) + } + + /// Connection between the RootQuery type and the post type + public var posts: Post? { + get { + return (resultMap["posts"] as? ResultMap).flatMap { Post(unsafeResultMap: $0) } + } + set { + resultMap.updateValue(newValue?.resultMap, forKey: "posts") + } + } + + public struct Post: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["RootQueryToPostConnection"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLField("__typename", type: .nonNull(.scalar(String.self))), + GraphQLField("nodes", type: .list(.object(Node.selections))), + GraphQLField("pageInfo", type: .object(PageInfo.selections)), + ] + } + + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public init(nodes: [Node?]? = nil, pageInfo: PageInfo? = nil) { + self.init(unsafeResultMap: ["__typename": "RootQueryToPostConnection", "nodes": nodes.flatMap { (value: [Node?]) -> [ResultMap?] in value.map { (value: Node?) -> ResultMap? in value.flatMap { (value: Node) -> ResultMap in value.resultMap } } }, "pageInfo": pageInfo.flatMap { (value: PageInfo) -> ResultMap in value.resultMap }]) + } + + public var __typename: String { + get { + return resultMap["__typename"]! as! String + } + set { + resultMap.updateValue(newValue, forKey: "__typename") + } + } + + /// The nodes of the connection, without the edges + public var nodes: [Node?]? { + get { + return (resultMap["nodes"] as? [ResultMap?]).flatMap { (value: [ResultMap?]) -> [Node?] in value.map { (value: ResultMap?) -> Node? in value.flatMap { (value: ResultMap) -> Node in Node(unsafeResultMap: value) } } } + } + set { + resultMap.updateValue(newValue.flatMap { (value: [Node?]) -> [ResultMap?] in value.map { (value: Node?) -> ResultMap? in value.flatMap { (value: Node) -> ResultMap in value.resultMap } } }, forKey: "nodes") + } + } + + /// Information about pagination in a connection. + public var pageInfo: PageInfo? { + get { + return (resultMap["pageInfo"] as? ResultMap).flatMap { PageInfo(unsafeResultMap: $0) } + } + set { + resultMap.updateValue(newValue?.resultMap, forKey: "pageInfo") + } + } + + public struct Node: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["Post"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLField("__typename", type: .nonNull(.scalar(String.self))), + GraphQLFragmentSpread(ArticleTeaserParts.self), + ] + } + + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public var __typename: String { + get { + return resultMap["__typename"]! as! String + } + set { + resultMap.updateValue(newValue, forKey: "__typename") + } + } + + public var fragments: Fragments { + get { + return Fragments(unsafeResultMap: resultMap) + } + set { + resultMap += newValue.resultMap + } + } + + public struct Fragments { + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public var articleTeaserParts: ArticleTeaserParts { + get { + return ArticleTeaserParts(unsafeResultMap: resultMap) + } + set { + resultMap += newValue.resultMap + } + } + } + } + + public struct PageInfo: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["WPPageInfo"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLField("__typename", type: .nonNull(.scalar(String.self))), + GraphQLField("endCursor", type: .scalar(String.self)), + GraphQLField("hasNextPage", type: .nonNull(.scalar(Bool.self))), + ] + } + + public private(set) var resultMap: ResultMap + + public init(unsafeResultMap: ResultMap) { + self.resultMap = unsafeResultMap + } + + public init(endCursor: String? = nil, hasNextPage: Bool) { + self.init(unsafeResultMap: ["__typename": "WPPageInfo", "endCursor": endCursor, "hasNextPage": hasNextPage]) + } + + public var __typename: String { + get { + return resultMap["__typename"]! as! String + } + set { + resultMap.updateValue(newValue, forKey: "__typename") + } + } + + /// When paginating forwards, the cursor to continue. + public var endCursor: String? { + get { + return resultMap["endCursor"] as? String + } + set { + resultMap.updateValue(newValue, forKey: "endCursor") + } + } + + /// When paginating forwards, are there more items? + public var hasNextPage: Bool { + get { + return resultMap["hasNextPage"]! as! Bool + } + set { + resultMap.updateValue(newValue, forKey: "hasNextPage") + } + } + } + } + } +} + public final class LatestArticlesQuery: GraphQLQuery { /// The raw GraphQL definition of this operation. public let operationDefinition: String =