From 2928ea9ac6cb8df5636876c9c04535c49a9f37c3 Mon Sep 17 00:00:00 2001 From: Chris Zarate Date: Thu, 5 Nov 2020 10:59:12 -0500 Subject: [PATCH] Add PromotionsByTag; remove unused Nug query (#18) --- Queries/Nugs/Nug.gql | 9 -- Queries/Promotions/PromotionsByTag.gql | 18 +++ Schemas/ContentSchema.operations.json | 8 +- Web/Nug.ts | 53 ------ Web/PromotionsByTag.ts | 70 ++++++++ Web/dist-cjs/Nug.d.ts | 40 ----- Web/dist-cjs/Nug.d.ts.map | 1 - Web/dist-cjs/Nug.js | 57 ------- Web/dist-cjs/Nug.js.map | 1 - Web/dist-cjs/PromotionsByTag.d.ts | 53 ++++++ Web/dist-cjs/PromotionsByTag.d.ts.map | 1 + Web/dist-cjs/PromotionsByTag.js | 65 ++++++++ Web/dist-cjs/PromotionsByTag.js.map | 1 + Web/dist-cjs/index.d.ts | 2 +- Web/dist-cjs/index.d.ts.map | 2 +- Web/dist-cjs/index.js | 2 +- Web/dist-cjs/index.js.map | 2 +- Web/dist/Nug.d.ts | 40 ----- Web/dist/Nug.d.ts.map | 1 - Web/dist/Nug.js | 33 ---- Web/dist/Nug.js.map | 1 - Web/dist/PromotionsByTag.d.ts | 53 ++++++ Web/dist/PromotionsByTag.d.ts.map | 1 + Web/dist/PromotionsByTag.js | 41 +++++ Web/dist/PromotionsByTag.js.map | 1 + Web/dist/index.d.ts | 2 +- Web/dist/index.d.ts.map | 2 +- Web/dist/index.js | 2 +- Web/dist/index.js.map | 2 +- Web/index.ts | 2 +- iOS/QuartzContent/QuartzContent.swift | 214 +++++++++++++++++++------ 31 files changed, 481 insertions(+), 299 deletions(-) delete mode 100644 Queries/Nugs/Nug.gql create mode 100644 Queries/Promotions/PromotionsByTag.gql delete mode 100644 Web/Nug.ts create mode 100644 Web/PromotionsByTag.ts delete mode 100644 Web/dist-cjs/Nug.d.ts delete mode 100644 Web/dist-cjs/Nug.d.ts.map delete mode 100644 Web/dist-cjs/Nug.js delete mode 100644 Web/dist-cjs/Nug.js.map create mode 100644 Web/dist-cjs/PromotionsByTag.d.ts create mode 100644 Web/dist-cjs/PromotionsByTag.d.ts.map create mode 100644 Web/dist-cjs/PromotionsByTag.js create mode 100644 Web/dist-cjs/PromotionsByTag.js.map delete mode 100644 Web/dist/Nug.d.ts delete mode 100644 Web/dist/Nug.d.ts.map delete mode 100644 Web/dist/Nug.js delete mode 100644 Web/dist/Nug.js.map create mode 100644 Web/dist/PromotionsByTag.d.ts create mode 100644 Web/dist/PromotionsByTag.d.ts.map create mode 100644 Web/dist/PromotionsByTag.js create mode 100644 Web/dist/PromotionsByTag.js.map diff --git a/Queries/Nugs/Nug.gql b/Queries/Nugs/Nug.gql deleted file mode 100644 index ef433f59..00000000 --- a/Queries/Nugs/Nug.gql +++ /dev/null @@ -1,9 +0,0 @@ -query Nug( - $slug: String! -) { - nugBy( - slug: $slug - ) { - ...NugParts - } -} diff --git a/Queries/Promotions/PromotionsByTag.gql b/Queries/Promotions/PromotionsByTag.gql new file mode 100644 index 00000000..66ec6eeb --- /dev/null +++ b/Queries/Promotions/PromotionsByTag.gql @@ -0,0 +1,18 @@ +query PromotionsByTag( + $perPage: Int! + $slug: [String]! +) { + promotions( + first: $perPage + where: { + tagSlugIn: $slug + } + ) { + nodes { + ...PromotionParts + blocks { + ...BlockParts + } + } + } +} diff --git a/Schemas/ContentSchema.operations.json b/Schemas/ContentSchema.operations.json index 70f8e348..3096e122 100644 --- a/Schemas/ContentSchema.operations.json +++ b/Schemas/ContentSchema.operations.json @@ -79,12 +79,12 @@ "name": "VideoHub", "source": "query VideoHub {\n featuredVideoPlayer: menuItems(where: {location: PLAYER_VIDEO}) {\n __typename\n nodes {\n __typename\n connectedObject {\n __typename\n ...ArticleTeaserParts\n ... on Post {\n shows {\n __typename\n nodes {\n __typename\n ...ShowParts\n }\n }\n }\n }\n }\n }\n latest: tags(where: {slug: \"quartz-video\"}) {\n __typename\n nodes {\n __typename\n posts(first: 6) {\n __typename\n nodes {\n __typename\n ...ArticleTeaserParts\n shows {\n __typename\n nodes {\n __typename\n ...ShowParts\n }\n }\n }\n }\n }\n }\n featuredShows: menuItems(where: {location: SHOWS_VIDEO}) {\n __typename\n nodes {\n __typename\n connectedObject {\n __typename\n ... on Show {\n ...ShowParts\n posts(first: 6) {\n __typename\n nodes {\n __typename\n ...ArticleTeaserParts\n }\n }\n }\n }\n }\n }\n allShows: shows(last: 40, where: {orderby: TERM_ID}) {\n __typename\n nodes {\n __typename\n ...ShowParts\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 id\n kicker\n link\n postId\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 sourceUrl\n title\n}\nfragment VideoParts on VideoData {\n __typename\n id\n duration\n episode\n playlistId\n season\n type\n}\nfragment ShowParts on Show {\n __typename\n colors\n count\n description\n featuredImage {\n __typename\n ...MediaParts\n }\n headerImages {\n __typename\n layer\n size\n image {\n __typename\n ...MediaParts\n }\n }\n headerVideos {\n __typename\n size\n mp4 {\n __typename\n ...MediaParts\n }\n webm {\n __typename\n ...MediaParts\n }\n poster {\n __typename\n ...MediaParts\n }\n }\n id\n link\n name\n postOrder\n shortDescription\n slug\n socialImage {\n __typename\n ...MediaParts\n }\n}" }, - "af20ee489bdc07c486aad4014ed17391e12362c1513eb1e341a451f65763651e": { - "name": "Nug", - "source": "query Nug($slug: String!) {\n nugBy(slug: $slug) {\n __typename\n ...NugParts\n }\n}\nfragment NugParts on Nug {\n __typename\n id\n blocks {\n __typename\n ...BlockParts\n connections {\n __typename\n ... on Post {\n ...ArticleTeaserParts\n }\n ... on MediaItem {\n ...MediaParts\n }\n }\n }\n dateGmt\n emailLists {\n __typename\n nodes {\n __typename\n emailListId\n listId\n name\n }\n }\n link\n modifiedGmt\n nugId\n slug\n title\n}\nfragment BlockParts on Block {\n __typename\n attributes {\n __typename\n name\n value\n }\n id\n innerHtml\n tagName\n type\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 id\n kicker\n link\n postId\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 sourceUrl\n title\n}\nfragment VideoParts on VideoData {\n __typename\n id\n duration\n episode\n playlistId\n season\n type\n}" - }, "2090a2c92fd564ed980c03e7a2d24ab1200d38a24d33ff8fa717c8baa287e34e": { "name": "NugsByTag", "source": "query NugsByTag($perPage: Int!, $tag: [String]!) {\n nugs(first: $perPage, where: {tagSlugIn: $tag}) {\n __typename\n nodes {\n __typename\n ...NugParts\n }\n }\n}\nfragment NugParts on Nug {\n __typename\n id\n blocks {\n __typename\n ...BlockParts\n connections {\n __typename\n ... on Post {\n ...ArticleTeaserParts\n }\n ... on MediaItem {\n ...MediaParts\n }\n }\n }\n dateGmt\n emailLists {\n __typename\n nodes {\n __typename\n emailListId\n listId\n name\n }\n }\n link\n modifiedGmt\n nugId\n slug\n title\n}\nfragment BlockParts on Block {\n __typename\n attributes {\n __typename\n name\n value\n }\n id\n innerHtml\n tagName\n type\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 id\n kicker\n link\n postId\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 sourceUrl\n title\n}\nfragment VideoParts on VideoData {\n __typename\n id\n duration\n episode\n playlistId\n season\n type\n}" + }, + "5a3a1e3e00e3bce150c8ae2a81e61b5f70ab20a3819e1ab4a29077f9c7c5ce6f": { + "name": "PromotionsByTag", + "source": "query PromotionsByTag($perPage: Int!, $slug: [String]!) {\n promotions(first: $perPage, where: {tagSlugIn: $slug}) {\n __typename\n nodes {\n __typename\n ...PromotionParts\n blocks {\n __typename\n ...BlockParts\n }\n }\n }\n}\nfragment PromotionParts on Promotion {\n __typename\n content\n dateGmt\n description: excerpt(format: RAW)\n destination\n featuredImage {\n __typename\n ...MediaParts\n }\n id\n link\n modified\n title\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 sourceUrl\n title\n}\nfragment BlockParts on Block {\n __typename\n attributes {\n __typename\n name\n value\n }\n id\n innerHtml\n tagName\n type\n}" } } \ No newline at end of file diff --git a/Web/Nug.ts b/Web/Nug.ts deleted file mode 100644 index 7f6fe847..00000000 --- a/Web/Nug.ts +++ /dev/null @@ -1,53 +0,0 @@ -import type * as Types from './types'; - -import type { NugPartsFragment } from './NugParts'; -import { gql } from '@apollo/client'; -import { NugPartsFragmentDoc } from './NugParts'; -import * as Apollo from '@apollo/client'; -export type NugQueryVariables = Types.Exact<{ - slug: Types.Scalars['String']; -}>; - - -export type NugQuery = ( - { __typename?: 'RootQuery' } - & { nugBy?: Types.Maybe<( - { __typename?: 'Nug' } - & NugPartsFragment - )> } -); - - -export const NugDocument = /*#__PURE__*/ gql` - query Nug($slug: String!) { - nugBy(slug: $slug) { - ...NugParts - } -} - ${NugPartsFragmentDoc}`; - -/** - * __useNugQuery__ - * - * To run a query within a React component, call `useNugQuery` and pass it any options that fit your needs. - * When your component renders, `useNugQuery` 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 } = useNugQuery({ - * variables: { - * slug: // value for 'slug' - * }, - * }); - */ -export function useNugQuery(baseOptions?: Apollo.QueryHookOptions) { - return Apollo.useQuery(NugDocument, baseOptions); - } -export function useNugLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - return Apollo.useLazyQuery(NugDocument, baseOptions); - } -export type NugQueryHookResult = ReturnType; -export type NugLazyQueryHookResult = ReturnType; -export type NugQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/Web/PromotionsByTag.ts b/Web/PromotionsByTag.ts new file mode 100644 index 00000000..10b3e235 --- /dev/null +++ b/Web/PromotionsByTag.ts @@ -0,0 +1,70 @@ +import type * as Types from './types'; + +import type { PromotionPartsFragment } from './PromotionParts'; +import type { BlockPartsFragment } from './BlockParts'; +import { gql } from '@apollo/client'; +import { PromotionPartsFragmentDoc } from './PromotionParts'; +import { BlockPartsFragmentDoc } from './BlockParts'; +import * as Apollo from '@apollo/client'; +export type PromotionsByTagQueryVariables = Types.Exact<{ + perPage: Types.Scalars['Int']; + slug: Array>; +}>; + + +export type PromotionsByTagQuery = ( + { __typename?: 'RootQuery' } + & { promotions?: Types.Maybe<( + { __typename?: 'RootQueryToPromotionConnection' } + & { nodes?: Types.Maybe>> } + & PromotionPartsFragment + )>>> } + )> } +); + + +export const PromotionsByTagDocument = /*#__PURE__*/ gql` + query PromotionsByTag($perPage: Int!, $slug: [String]!) { + promotions(first: $perPage, where: {tagSlugIn: $slug}) { + nodes { + ...PromotionParts + blocks { + ...BlockParts + } + } + } +} + ${PromotionPartsFragmentDoc} +${BlockPartsFragmentDoc}`; + +/** + * __usePromotionsByTagQuery__ + * + * To run a query within a React component, call `usePromotionsByTagQuery` and pass it any options that fit your needs. + * When your component renders, `usePromotionsByTagQuery` 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 } = usePromotionsByTagQuery({ + * variables: { + * perPage: // value for 'perPage' + * slug: // value for 'slug' + * }, + * }); + */ +export function usePromotionsByTagQuery(baseOptions?: Apollo.QueryHookOptions) { + return Apollo.useQuery(PromotionsByTagDocument, baseOptions); + } +export function usePromotionsByTagLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + return Apollo.useLazyQuery(PromotionsByTagDocument, baseOptions); + } +export type PromotionsByTagQueryHookResult = ReturnType; +export type PromotionsByTagLazyQueryHookResult = ReturnType; +export type PromotionsByTagQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/Web/dist-cjs/Nug.d.ts b/Web/dist-cjs/Nug.d.ts deleted file mode 100644 index 9d21b820..00000000 --- a/Web/dist-cjs/Nug.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import type * as Types from './types'; -import type { NugPartsFragment } from './NugParts'; -import * as Apollo from '@apollo/client'; -export declare type NugQueryVariables = Types.Exact<{ - slug: Types.Scalars['String']; -}>; -export declare type NugQuery = ({ - __typename?: 'RootQuery'; -} & { - nugBy?: Types.Maybe<({ - __typename?: 'Nug'; - } & NugPartsFragment)>; -}); -export declare const NugDocument: Apollo.DocumentNode; -/** - * __useNugQuery__ - * - * To run a query within a React component, call `useNugQuery` and pass it any options that fit your needs. - * When your component renders, `useNugQuery` 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 } = useNugQuery({ - * variables: { - * slug: // value for 'slug' - * }, - * }); - */ -export declare function useNugQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult>; -export declare function useNugLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.QueryTuple>; -export declare type NugQueryHookResult = ReturnType; -export declare type NugLazyQueryHookResult = ReturnType; -export declare type NugQueryResult = Apollo.QueryResult; -//# sourceMappingURL=Nug.d.ts.map \ No newline at end of file diff --git a/Web/dist-cjs/Nug.d.ts.map b/Web/dist-cjs/Nug.d.ts.map deleted file mode 100644 index 2bec79ab..00000000 --- a/Web/dist-cjs/Nug.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Nug.d.ts","sourceRoot":"","sources":["../Nug.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGnD,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,oBAAY,iBAAiB,GAAG,KAAK,CAAC,KAAK,CAAC;IAC1C,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC/B,CAAC,CAAC;AAGH,oBAAY,QAAQ,GAAG,CACrB;IAAE,UAAU,CAAC,EAAE,WAAW,CAAA;CAAE,GAC1B;IAAE,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CACtB;QAAE,UAAU,CAAC,EAAE,KAAK,CAAA;KAAE,GACpB,gBAAgB,CACnB,CAAC,CAAA;CAAE,CACL,CAAC;AAGF,eAAO,MAAM,WAAW,qBAMG,CAAC;AAE5B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,iBAAiB,CAAC;;IAEvF;AACP,wBAAgB,eAAe,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,QAAQ,EAAE,iBAAiB,CAAC;;IAE7F;AACT,oBAAY,kBAAkB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAChE,oBAAY,sBAAsB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AACxE,oBAAY,cAAc,GAAG,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/Web/dist-cjs/Nug.js b/Web/dist-cjs/Nug.js deleted file mode 100644 index c467d806..00000000 --- a/Web/dist-cjs/Nug.js +++ /dev/null @@ -1,57 +0,0 @@ -"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.useNugLazyQuery = exports.useNugQuery = exports.NugDocument = void 0; -const client_1 = require("@apollo/client"); -const NugParts_1 = require("./NugParts"); -const Apollo = __importStar(require("@apollo/client")); -exports.NugDocument = client_1.gql ` - query Nug($slug: String!) { - nugBy(slug: $slug) { - ...NugParts - } -} - ${NugParts_1.NugPartsFragmentDoc}`; -/** - * __useNugQuery__ - * - * To run a query within a React component, call `useNugQuery` and pass it any options that fit your needs. - * When your component renders, `useNugQuery` 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 } = useNugQuery({ - * variables: { - * slug: // value for 'slug' - * }, - * }); - */ -function useNugQuery(baseOptions) { - return Apollo.useQuery(exports.NugDocument, baseOptions); -} -exports.useNugQuery = useNugQuery; -function useNugLazyQuery(baseOptions) { - return Apollo.useLazyQuery(exports.NugDocument, baseOptions); -} -exports.useNugLazyQuery = useNugLazyQuery; -//# sourceMappingURL=Nug.js.map \ No newline at end of file diff --git a/Web/dist-cjs/Nug.js.map b/Web/dist-cjs/Nug.js.map deleted file mode 100644 index 49b81d31..00000000 --- a/Web/dist-cjs/Nug.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Nug.js","sourceRoot":"","sources":["../Nug.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAGA,2CAAqC;AACrC,yCAAiD;AACjD,uDAAyC;AAe5B,QAAA,WAAW,GAAiB,YAAG,CAAA;;;;;;MAMtC,8BAAmB,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,WAAW,CAAC,WAAkE;IACtF,OAAO,MAAM,CAAC,QAAQ,CAA8B,mBAAW,EAAE,WAAW,CAAC,CAAC;AAChF,CAAC;AAFP,kCAEO;AACP,SAAgB,eAAe,CAAC,WAAsE;IAC5F,OAAO,MAAM,CAAC,YAAY,CAA8B,mBAAW,EAAE,WAAW,CAAC,CAAC;AACpF,CAAC;AAFT,0CAES"} \ No newline at end of file diff --git a/Web/dist-cjs/PromotionsByTag.d.ts b/Web/dist-cjs/PromotionsByTag.d.ts new file mode 100644 index 00000000..d39e0e9c --- /dev/null +++ b/Web/dist-cjs/PromotionsByTag.d.ts @@ -0,0 +1,53 @@ +import type * as Types from './types'; +import type { PromotionPartsFragment } from './PromotionParts'; +import type { BlockPartsFragment } from './BlockParts'; +import * as Apollo from '@apollo/client'; +export declare type PromotionsByTagQueryVariables = Types.Exact<{ + perPage: Types.Scalars['Int']; + slug: Array>; +}>; +export declare type PromotionsByTagQuery = ({ + __typename?: 'RootQuery'; +} & { + promotions?: Types.Maybe<({ + __typename?: 'RootQueryToPromotionConnection'; + } & { + nodes?: Types.Maybe>>; + } & PromotionPartsFragment)>>>; + })>; +}); +export declare const PromotionsByTagDocument: Apollo.DocumentNode; +/** + * __usePromotionsByTagQuery__ + * + * To run a query within a React component, call `usePromotionsByTagQuery` and pass it any options that fit your needs. + * When your component renders, `usePromotionsByTagQuery` 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 } = usePromotionsByTagQuery({ + * variables: { + * perPage: // value for 'perPage' + * slug: // value for 'slug' + * }, + * }); + */ +export declare function usePromotionsByTagQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult>; +export declare function usePromotionsByTagLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.QueryTuple>; +export declare type PromotionsByTagQueryHookResult = ReturnType; +export declare type PromotionsByTagLazyQueryHookResult = ReturnType; +export declare type PromotionsByTagQueryResult = Apollo.QueryResult; +//# sourceMappingURL=PromotionsByTag.d.ts.map \ No newline at end of file diff --git a/Web/dist-cjs/PromotionsByTag.d.ts.map b/Web/dist-cjs/PromotionsByTag.d.ts.map new file mode 100644 index 00000000..c8185dce --- /dev/null +++ b/Web/dist-cjs/PromotionsByTag.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PromotionsByTag.d.ts","sourceRoot":"","sources":["../PromotionsByTag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIvD,OAAO,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xF,oBAAY,kCAAkC,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChG,oBAAY,0BAA0B,GAAG,MAAM,CAAC,WAAW,CAAC,oBAAoB,EAAE,6BAA6B,CAAC,CAAC"} \ No newline at end of file diff --git a/Web/dist-cjs/PromotionsByTag.js b/Web/dist-cjs/PromotionsByTag.js new file mode 100644 index 00000000..3b47f87c --- /dev/null +++ b/Web/dist-cjs/PromotionsByTag.js @@ -0,0 +1,65 @@ +"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.usePromotionsByTagLazyQuery = exports.usePromotionsByTagQuery = exports.PromotionsByTagDocument = void 0; +const client_1 = require("@apollo/client"); +const PromotionParts_1 = require("./PromotionParts"); +const BlockParts_1 = require("./BlockParts"); +const Apollo = __importStar(require("@apollo/client")); +exports.PromotionsByTagDocument = client_1.gql ` + query PromotionsByTag($perPage: Int!, $slug: [String]!) { + promotions(first: $perPage, where: {tagSlugIn: $slug}) { + nodes { + ...PromotionParts + blocks { + ...BlockParts + } + } + } +} + ${PromotionParts_1.PromotionPartsFragmentDoc} +${BlockParts_1.BlockPartsFragmentDoc}`; +/** + * __usePromotionsByTagQuery__ + * + * To run a query within a React component, call `usePromotionsByTagQuery` and pass it any options that fit your needs. + * When your component renders, `usePromotionsByTagQuery` 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 } = usePromotionsByTagQuery({ + * variables: { + * perPage: // value for 'perPage' + * slug: // value for 'slug' + * }, + * }); + */ +function usePromotionsByTagQuery(baseOptions) { + return Apollo.useQuery(exports.PromotionsByTagDocument, baseOptions); +} +exports.usePromotionsByTagQuery = usePromotionsByTagQuery; +function usePromotionsByTagLazyQuery(baseOptions) { + return Apollo.useLazyQuery(exports.PromotionsByTagDocument, baseOptions); +} +exports.usePromotionsByTagLazyQuery = usePromotionsByTagLazyQuery; +//# sourceMappingURL=PromotionsByTag.js.map \ No newline at end of file diff --git a/Web/dist-cjs/PromotionsByTag.js.map b/Web/dist-cjs/PromotionsByTag.js.map new file mode 100644 index 00000000..8e33f0e3 --- /dev/null +++ b/Web/dist-cjs/PromotionsByTag.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PromotionsByTag.js","sourceRoot":"","sources":["../PromotionsByTag.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAIA,2CAAqC;AACrC,qDAA6D;AAC7D,6CAAqD;AACrD,uDAAyC;AAuB5B,QAAA,uBAAuB,GAAiB,YAAG,CAAA;;;;;;;;;;;MAWlD,0CAAyB;EAC7B,kCAAqB,EAAE,CAAC;AAE1B;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,uBAAuB,CAAC,WAA0F;IAC1H,OAAO,MAAM,CAAC,QAAQ,CAAsD,+BAAuB,EAAE,WAAW,CAAC,CAAC;AACpH,CAAC;AAFP,0DAEO;AACP,SAAgB,2BAA2B,CAAC,WAA8F;IAChI,OAAO,MAAM,CAAC,YAAY,CAAsD,+BAAuB,EAAE,WAAW,CAAC,CAAC;AACxH,CAAC;AAFT,kEAES"} \ No newline at end of file diff --git a/Web/dist-cjs/index.d.ts b/Web/dist-cjs/index.d.ts index b57d9444..3c00ef74 100644 --- a/Web/dist-cjs/index.d.ts +++ b/Web/dist-cjs/index.d.ts @@ -25,12 +25,12 @@ export * from './LatestArticles'; export * from './MediaParts'; export * from './MemberHome'; export * from './MemberVideo'; -export * from './Nug'; export * from './NugParts'; export * from './NugsByTag'; export * from './ObsessionParts'; export * from './ProjectParts'; export * from './PromotionParts'; +export * from './PromotionsByTag'; export * from './SeriesParts'; export * from './ShowParts'; export * from './TagParts'; diff --git a/Web/dist-cjs/index.d.ts.map b/Web/dist-cjs/index.d.ts.map index 56622bbf..a01191b5 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,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,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,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,OAAO,CAAA;AACrB,cA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A;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,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 33d19abd..19885aa3 100644 --- a/Web/dist-cjs/index.js +++ b/Web/dist-cjs/index.js @@ -38,12 +38,12 @@ __exportStar(require("./LatestArticles"), exports); __exportStar(require("./MediaParts"), exports); __exportStar(require("./MemberHome"), exports); __exportStar(require("./MemberVideo"), exports); -__exportStar(require("./Nug"), exports); __exportStar(require("./NugParts"), exports); __exportStar(require("./NugsByTag"), exports); __exportStar(require("./ObsessionParts"), exports); __exportStar(require("./ProjectParts"), exports); __exportStar(require("./PromotionParts"), exports); +__exportStar(require("./PromotionsByTag"), exports); __exportStar(require("./SeriesParts"), exports); __exportStar(require("./ShowParts"), exports); __exportStar(require("./TagParts"), exports); diff --git a/Web/dist-cjs/index.js.map b/Web/dist-cjs/index.js.map index 15ec38d2..8340dd4e 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,mDAAgC;AAChC,kDAA+B;AAC/B,uDAAoC;AACpC,oDAAiC;AACjC,wDAAqC;AACrC,qDAAkC;AAClC,mDAAgC;AAChC,kDAA+B;AAC/B,oDAAiC;AACjC,gDAA6B;AAC7B,+CAA4B;AAC5B,kDAA+B;AAC/B,oDAAiC;AACjC,wDAAqC;AACrC,6CAA0B;AAC1B,wDAAqC;AACrC,+CAA4B;AAC5B,2CAAwB;AACxB,iDAA8B;AAC9B,mDAAgC;AAChC,0DAAuC;AACvC,mDAAgC;AAChC,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,wCAAqB;AACrB,6CAA0B;AAC1B,8CAA2B;AAC3B,mDAAgC;AAChC,iDAA8B;AAC9B,mDAAgC;AAChC,gDAA6B;AAC7B,8CAA2B;AAC3B,6CAA0B;AAC1B,+CAA4B;AAC5B,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,mDAAgC;AAChC,kDAA+B;AAC/B,uDAAoC;AACpC,oDAAiC;AACjC,wDAAqC;AACrC,qDAAkC;AAClC,mDAAgC;AAChC,kDAA+B;AAC/B,oDAAiC;AACjC,gDAA6B;AAC7B,+CAA4B;AAC5B,kDAA+B;AAC/B,oDAAiC;AACjC,wDAAqC;AACrC,6CAA0B;AAC1B,wDAAqC;AACrC,+CAA4B;AAC5B,2CAAwB;AACxB,iDAA8B;AAC9B,mDAAgC;AAChC,0DAAuC;AACvC,mDAAgC;AAChC,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,6CAA0B;AAC1B,8CAA2B;AAC3B,mDAAgC;AAChC,iDAA8B;AAC9B,mDAAgC;AAChC,oDAAiC;AACjC,gDAA6B;AAC7B,8CAA2B;AAC3B,6CAA0B;AAC1B,+CAA4B;AAC5B,6CAA0B;AAC1B,+CAA4B;AAC5B,0CAAuB"} \ No newline at end of file diff --git a/Web/dist/Nug.d.ts b/Web/dist/Nug.d.ts deleted file mode 100644 index 9d21b820..00000000 --- a/Web/dist/Nug.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import type * as Types from './types'; -import type { NugPartsFragment } from './NugParts'; -import * as Apollo from '@apollo/client'; -export declare type NugQueryVariables = Types.Exact<{ - slug: Types.Scalars['String']; -}>; -export declare type NugQuery = ({ - __typename?: 'RootQuery'; -} & { - nugBy?: Types.Maybe<({ - __typename?: 'Nug'; - } & NugPartsFragment)>; -}); -export declare const NugDocument: Apollo.DocumentNode; -/** - * __useNugQuery__ - * - * To run a query within a React component, call `useNugQuery` and pass it any options that fit your needs. - * When your component renders, `useNugQuery` 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 } = useNugQuery({ - * variables: { - * slug: // value for 'slug' - * }, - * }); - */ -export declare function useNugQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult>; -export declare function useNugLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.QueryTuple>; -export declare type NugQueryHookResult = ReturnType; -export declare type NugLazyQueryHookResult = ReturnType; -export declare type NugQueryResult = Apollo.QueryResult; -//# sourceMappingURL=Nug.d.ts.map \ No newline at end of file diff --git a/Web/dist/Nug.d.ts.map b/Web/dist/Nug.d.ts.map deleted file mode 100644 index 2bec79ab..00000000 --- a/Web/dist/Nug.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Nug.d.ts","sourceRoot":"","sources":["../Nug.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGnD,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,oBAAY,iBAAiB,GAAG,KAAK,CAAC,KAAK,CAAC;IAC1C,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC/B,CAAC,CAAC;AAGH,oBAAY,QAAQ,GAAG,CACrB;IAAE,UAAU,CAAC,EAAE,WAAW,CAAA;CAAE,GAC1B;IAAE,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CACtB;QAAE,UAAU,CAAC,EAAE,KAAK,CAAA;KAAE,GACpB,gBAAgB,CACnB,CAAC,CAAA;CAAE,CACL,CAAC;AAGF,eAAO,MAAM,WAAW,qBAMG,CAAC;AAE5B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,iBAAiB,CAAC;;IAEvF;AACP,wBAAgB,eAAe,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,QAAQ,EAAE,iBAAiB,CAAC;;IAE7F;AACT,oBAAY,kBAAkB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAChE,oBAAY,sBAAsB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AACxE,oBAAY,cAAc,GAAG,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/Web/dist/Nug.js b/Web/dist/Nug.js deleted file mode 100644 index 26c487fe..00000000 --- a/Web/dist/Nug.js +++ /dev/null @@ -1,33 +0,0 @@ -import { gql } from '@apollo/client'; -import { NugPartsFragmentDoc } from './NugParts'; -import * as Apollo from '@apollo/client'; -export const NugDocument = /*#__PURE__*/ gql ` - query Nug($slug: String!) { - nugBy(slug: $slug) { - ...NugParts - } -} - ${NugPartsFragmentDoc}`; -/** - * __useNugQuery__ - * - * To run a query within a React component, call `useNugQuery` and pass it any options that fit your needs. - * When your component renders, `useNugQuery` 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 } = useNugQuery({ - * variables: { - * slug: // value for 'slug' - * }, - * }); - */ -export function useNugQuery(baseOptions) { - return Apollo.useQuery(NugDocument, baseOptions); -} -export function useNugLazyQuery(baseOptions) { - return Apollo.useLazyQuery(NugDocument, baseOptions); -} -//# sourceMappingURL=Nug.js.map \ No newline at end of file diff --git a/Web/dist/Nug.js.map b/Web/dist/Nug.js.map deleted file mode 100644 index bed4beec..00000000 --- a/Web/dist/Nug.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Nug.js","sourceRoot":"","sources":["../Nug.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAezC,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAA;;;;;;MAMtC,mBAAmB,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,WAAW,CAAC,WAAkE;IACtF,OAAO,MAAM,CAAC,QAAQ,CAA8B,WAAW,EAAE,WAAW,CAAC,CAAC;AAChF,CAAC;AACP,MAAM,UAAU,eAAe,CAAC,WAAsE;IAC5F,OAAO,MAAM,CAAC,YAAY,CAA8B,WAAW,EAAE,WAAW,CAAC,CAAC;AACpF,CAAC"} \ No newline at end of file diff --git a/Web/dist/PromotionsByTag.d.ts b/Web/dist/PromotionsByTag.d.ts new file mode 100644 index 00000000..d39e0e9c --- /dev/null +++ b/Web/dist/PromotionsByTag.d.ts @@ -0,0 +1,53 @@ +import type * as Types from './types'; +import type { PromotionPartsFragment } from './PromotionParts'; +import type { BlockPartsFragment } from './BlockParts'; +import * as Apollo from '@apollo/client'; +export declare type PromotionsByTagQueryVariables = Types.Exact<{ + perPage: Types.Scalars['Int']; + slug: Array>; +}>; +export declare type PromotionsByTagQuery = ({ + __typename?: 'RootQuery'; +} & { + promotions?: Types.Maybe<({ + __typename?: 'RootQueryToPromotionConnection'; + } & { + nodes?: Types.Maybe>>; + } & PromotionPartsFragment)>>>; + })>; +}); +export declare const PromotionsByTagDocument: Apollo.DocumentNode; +/** + * __usePromotionsByTagQuery__ + * + * To run a query within a React component, call `usePromotionsByTagQuery` and pass it any options that fit your needs. + * When your component renders, `usePromotionsByTagQuery` 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 } = usePromotionsByTagQuery({ + * variables: { + * perPage: // value for 'perPage' + * slug: // value for 'slug' + * }, + * }); + */ +export declare function usePromotionsByTagQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult>; +export declare function usePromotionsByTagLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.QueryTuple>; +export declare type PromotionsByTagQueryHookResult = ReturnType; +export declare type PromotionsByTagLazyQueryHookResult = ReturnType; +export declare type PromotionsByTagQueryResult = Apollo.QueryResult; +//# sourceMappingURL=PromotionsByTag.d.ts.map \ No newline at end of file diff --git a/Web/dist/PromotionsByTag.d.ts.map b/Web/dist/PromotionsByTag.d.ts.map new file mode 100644 index 00000000..c8185dce --- /dev/null +++ b/Web/dist/PromotionsByTag.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PromotionsByTag.d.ts","sourceRoot":"","sources":["../PromotionsByTag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIvD,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,oBAAY,6BAA6B,GAAG,KAAK,CAAC,KAAK,CAAC;IACtD,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC9B,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;CACnD,CAAC,CAAC;AAGH,oBAAY,oBAAoB,GAAG,CACjC;IAAE,UAAU,CAAC,EAAE,WAAW,CAAA;CAAE,GAC1B;IAAE,UAAU,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAC3B;QAAE,UAAU,CAAC,EAAE,gCAAgC,CAAA;KAAE,GAC/C;QAAE,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CACxC;YAAE,UAAU,CAAC,EAAE,WAAW,CAAA;SAAE,GAC1B;YAAE,MAAM,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CACzC;gBAAE,UAAU,CAAC,EAAE,OAAO,CAAA;aAAE,GACtB,kBAAkB,CACrB,CAAC,CAAC,CAAC,CAAA;SAAE,GACJ,sBAAsB,CACzB,CAAC,CAAC,CAAC,CAAA;KAAE,CACP,CAAC,CAAA;CAAE,CACL,CAAC;AAGF,eAAO,MAAM,uBAAuB,qBAYX,CAAC;AAE1B;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,6BAA6B,CAAC;;;IAE3H;AACP,wBAAgB,2BAA2B,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,oBAAoB,EAAE,6BAA6B,CAAC;;;IAEjI;AACT,oBAAY,8BAA8B,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxF,oBAAY,kCAAkC,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChG,oBAAY,0BAA0B,GAAG,MAAM,CAAC,WAAW,CAAC,oBAAoB,EAAE,6BAA6B,CAAC,CAAC"} \ No newline at end of file diff --git a/Web/dist/PromotionsByTag.js b/Web/dist/PromotionsByTag.js new file mode 100644 index 00000000..85d54756 --- /dev/null +++ b/Web/dist/PromotionsByTag.js @@ -0,0 +1,41 @@ +import { gql } from '@apollo/client'; +import { PromotionPartsFragmentDoc } from './PromotionParts'; +import { BlockPartsFragmentDoc } from './BlockParts'; +import * as Apollo from '@apollo/client'; +export const PromotionsByTagDocument = /*#__PURE__*/ gql ` + query PromotionsByTag($perPage: Int!, $slug: [String]!) { + promotions(first: $perPage, where: {tagSlugIn: $slug}) { + nodes { + ...PromotionParts + blocks { + ...BlockParts + } + } + } +} + ${PromotionPartsFragmentDoc} +${BlockPartsFragmentDoc}`; +/** + * __usePromotionsByTagQuery__ + * + * To run a query within a React component, call `usePromotionsByTagQuery` and pass it any options that fit your needs. + * When your component renders, `usePromotionsByTagQuery` 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 } = usePromotionsByTagQuery({ + * variables: { + * perPage: // value for 'perPage' + * slug: // value for 'slug' + * }, + * }); + */ +export function usePromotionsByTagQuery(baseOptions) { + return Apollo.useQuery(PromotionsByTagDocument, baseOptions); +} +export function usePromotionsByTagLazyQuery(baseOptions) { + return Apollo.useLazyQuery(PromotionsByTagDocument, baseOptions); +} +//# sourceMappingURL=PromotionsByTag.js.map \ No newline at end of file diff --git a/Web/dist/PromotionsByTag.js.map b/Web/dist/PromotionsByTag.js.map new file mode 100644 index 00000000..ef5b0d7e --- /dev/null +++ b/Web/dist/PromotionsByTag.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PromotionsByTag.js","sourceRoot":"","sources":["../PromotionsByTag.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAuBzC,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,GAAG,CAAA;;;;;;;;;;;MAWlD,yBAAyB;EAC7B,qBAAqB,EAAE,CAAC;AAE1B;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,uBAAuB,CAAC,WAA0F;IAC1H,OAAO,MAAM,CAAC,QAAQ,CAAsD,uBAAuB,EAAE,WAAW,CAAC,CAAC;AACpH,CAAC;AACP,MAAM,UAAU,2BAA2B,CAAC,WAA8F;IAChI,OAAO,MAAM,CAAC,YAAY,CAAsD,uBAAuB,EAAE,WAAW,CAAC,CAAC;AACxH,CAAC"} \ No newline at end of file diff --git a/Web/dist/index.d.ts b/Web/dist/index.d.ts index b57d9444..3c00ef74 100644 --- a/Web/dist/index.d.ts +++ b/Web/dist/index.d.ts @@ -25,12 +25,12 @@ export * from './LatestArticles'; export * from './MediaParts'; export * from './MemberHome'; export * from './MemberVideo'; -export * from './Nug'; export * from './NugParts'; export * from './NugsByTag'; export * from './ObsessionParts'; export * from './ProjectParts'; export * from './PromotionParts'; +export * from './PromotionsByTag'; export * from './SeriesParts'; export * from './ShowParts'; export * from './TagParts'; diff --git a/Web/dist/index.d.ts.map b/Web/dist/index.d.ts.map index 56622bbf..a01191b5 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,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,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,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,C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BAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,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,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 ebfc0d9a..cf50eb7f 100644 --- a/Web/dist/index.js +++ b/Web/dist/index.js @@ -26,12 +26,12 @@ export * from './LatestArticles'; export * from './MediaParts'; export * from './MemberHome'; export * from './MemberVideo'; -export * from './Nug'; export * from './NugParts'; export * from './NugsByTag'; export * from './ObsessionParts'; export * from './ProjectParts'; export * from './PromotionParts'; +export * from './PromotionsByTag'; export * from './SeriesParts'; export * from './ShowParts'; export * from './TagParts'; diff --git a/Web/dist/index.js.map b/Web/dist/index.js.map index 8ae0b8b8..788b38eb 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,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB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;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,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,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"} \ No newline at end of file diff --git a/Web/index.ts b/Web/index.ts index 26d4ee28..9b59c6d3 100644 --- a/Web/index.ts +++ b/Web/index.ts @@ -27,12 +27,12 @@ export * from './LatestArticles' export * from './MediaParts' export * from './MemberHome' export * from './MemberVideo' -export * from './Nug' export * from './NugParts' export * from './NugsByTag' export * from './ObsessionParts' export * from './ProjectParts' export * from './PromotionParts' +export * from './PromotionsByTag' export * from './SeriesParts' export * from './ShowParts' export * from './TagParts' diff --git a/iOS/QuartzContent/QuartzContent.swift b/iOS/QuartzContent/QuartzContent.swift index 37b0f2ea..ef49d0e4 100644 --- a/iOS/QuartzContent/QuartzContent.swift +++ b/iOS/QuartzContent/QuartzContent.swift @@ -8411,32 +8411,37 @@ public final class VideoHubQuery: GraphQLQuery { } } -public final class NugQuery: GraphQLQuery { +public final class NugsByTagQuery: GraphQLQuery { /// The raw GraphQL definition of this operation. public let operationDefinition: String = """ - query Nug($slug: String!) { - nugBy(slug: $slug) { + query NugsByTag($perPage: Int!, $tag: [String]!) { + nugs(first: $perPage, where: {tagSlugIn: $tag}) { __typename - ...NugParts + nodes { + __typename + ...NugParts + } } } """ - public let operationName: String = "Nug" + public let operationName: String = "NugsByTag" - public let operationIdentifier: String? = "af20ee489bdc07c486aad4014ed17391e12362c1513eb1e341a451f65763651e" + public let operationIdentifier: String? = "2090a2c92fd564ed980c03e7a2d24ab1200d38a24d33ff8fa717c8baa287e34e" public var queryDocument: String { return operationDefinition.appending("\n" + NugParts.fragmentDefinition).appending("\n" + BlockParts.fragmentDefinition).appending("\n" + ArticleTeaserParts.fragmentDefinition).appending("\n" + MediaParts.fragmentDefinition).appending("\n" + VideoParts.fragmentDefinition) } - public var slug: String + public var perPage: Int + public var tag: [String?] - public init(slug: String) { - self.slug = slug + public init(perPage: Int, tag: [String?]) { + self.perPage = perPage + self.tag = tag } public var variables: GraphQLMap? { - return ["slug": slug] + return ["perPage": perPage, "tag": tag] } public struct Data: GraphQLSelectionSet { @@ -8444,7 +8449,7 @@ public final class NugQuery: GraphQLQuery { public static var selections: [GraphQLSelection] { return [ - GraphQLField("nugBy", arguments: ["slug": GraphQLVariable("slug")], type: .object(NugBy.selections)), + GraphQLField("nugs", arguments: ["first": GraphQLVariable("perPage"), "where": ["tagSlugIn": GraphQLVariable("tag")]], type: .object(Nug.selections)), ] } @@ -8454,28 +8459,28 @@ public final class NugQuery: GraphQLQuery { self.resultMap = unsafeResultMap } - public init(nugBy: NugBy? = nil) { - self.init(unsafeResultMap: ["__typename": "RootQuery", "nugBy": nugBy.flatMap { (value: NugBy) -> ResultMap in value.resultMap }]) + public init(nugs: Nug? = nil) { + self.init(unsafeResultMap: ["__typename": "RootQuery", "nugs": nugs.flatMap { (value: Nug) -> ResultMap in value.resultMap }]) } - /// A nug object + /// Connection between the RootQuery type and the RootQuery type @available(*, deprecated, message: "") - public var nugBy: NugBy? { + public var nugs: Nug? { get { - return (resultMap["nugBy"] as? ResultMap).flatMap { NugBy(unsafeResultMap: $0) } + return (resultMap["nugs"] as? ResultMap).flatMap { Nug(unsafeResultMap: $0) } } set { - resultMap.updateValue(newValue?.resultMap, forKey: "nugBy") + resultMap.updateValue(newValue?.resultMap, forKey: "nugs") } } - public struct NugBy: GraphQLSelectionSet { - public static let possibleTypes: [String] = ["Nug"] + public struct Nug: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["RootQueryToNugConnection"] public static var selections: [GraphQLSelection] { return [ GraphQLField("__typename", type: .nonNull(.scalar(String.self))), - GraphQLFragmentSpread(NugParts.self), + GraphQLField("nodes", type: .list(.object(Node.selections))), ] } @@ -8485,6 +8490,10 @@ public final class NugQuery: GraphQLQuery { self.resultMap = unsafeResultMap } + public init(nodes: [Node?]? = nil) { + self.init(unsafeResultMap: ["__typename": "RootQueryToNugConnection", "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 @@ -8494,66 +8503,107 @@ public final class NugQuery: GraphQLQuery { } } - public var fragments: Fragments { + /// The nodes of the connection, without the edges + @available(*, deprecated, message: "") + public var nodes: [Node?]? { get { - return Fragments(unsafeResultMap: resultMap) + 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 += newValue.resultMap + 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 Fragments { + public struct Node: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["Nug"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLField("__typename", type: .nonNull(.scalar(String.self))), + GraphQLFragmentSpread(NugParts.self), + ] + } + public private(set) var resultMap: ResultMap public init(unsafeResultMap: ResultMap) { self.resultMap = unsafeResultMap } - public var nugParts: NugParts { + public var __typename: String { + get { + return resultMap["__typename"]! as! String + } + set { + resultMap.updateValue(newValue, forKey: "__typename") + } + } + + public var fragments: Fragments { get { - return NugParts(unsafeResultMap: resultMap) + 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 nugParts: NugParts { + get { + return NugParts(unsafeResultMap: resultMap) + } + set { + resultMap += newValue.resultMap + } + } + } } } } } -public final class NugsByTagQuery: GraphQLQuery { +public final class PromotionsByTagQuery: GraphQLQuery { /// The raw GraphQL definition of this operation. public let operationDefinition: String = """ - query NugsByTag($perPage: Int!, $tag: [String]!) { - nugs(first: $perPage, where: {tagSlugIn: $tag}) { + query PromotionsByTag($perPage: Int!, $slug: [String]!) { + promotions(first: $perPage, where: {tagSlugIn: $slug}) { __typename nodes { __typename - ...NugParts + ...PromotionParts + blocks { + __typename + ...BlockParts + } } } } """ - public let operationName: String = "NugsByTag" + public let operationName: String = "PromotionsByTag" - public let operationIdentifier: String? = "2090a2c92fd564ed980c03e7a2d24ab1200d38a24d33ff8fa717c8baa287e34e" + public let operationIdentifier: String? = "5a3a1e3e00e3bce150c8ae2a81e61b5f70ab20a3819e1ab4a29077f9c7c5ce6f" - public var queryDocument: String { return operationDefinition.appending("\n" + NugParts.fragmentDefinition).appending("\n" + BlockParts.fragmentDefinition).appending("\n" + ArticleTeaserParts.fragmentDefinition).appending("\n" + MediaParts.fragmentDefinition).appending("\n" + VideoParts.fragmentDefinition) } + public var queryDocument: String { return operationDefinition.appending("\n" + PromotionParts.fragmentDefinition).appending("\n" + MediaParts.fragmentDefinition).appending("\n" + BlockParts.fragmentDefinition) } public var perPage: Int - public var tag: [String?] + public var slug: [String?] - public init(perPage: Int, tag: [String?]) { + public init(perPage: Int, slug: [String?]) { self.perPage = perPage - self.tag = tag + self.slug = slug } public var variables: GraphQLMap? { - return ["perPage": perPage, "tag": tag] + return ["perPage": perPage, "slug": slug] } public struct Data: GraphQLSelectionSet { @@ -8561,7 +8611,7 @@ public final class NugsByTagQuery: GraphQLQuery { public static var selections: [GraphQLSelection] { return [ - GraphQLField("nugs", arguments: ["first": GraphQLVariable("perPage"), "where": ["tagSlugIn": GraphQLVariable("tag")]], type: .object(Nug.selections)), + GraphQLField("promotions", arguments: ["first": GraphQLVariable("perPage"), "where": ["tagSlugIn": GraphQLVariable("slug")]], type: .object(Promotion.selections)), ] } @@ -8571,23 +8621,23 @@ public final class NugsByTagQuery: GraphQLQuery { self.resultMap = unsafeResultMap } - public init(nugs: Nug? = nil) { - self.init(unsafeResultMap: ["__typename": "RootQuery", "nugs": nugs.flatMap { (value: Nug) -> ResultMap in value.resultMap }]) + public init(promotions: Promotion? = nil) { + self.init(unsafeResultMap: ["__typename": "RootQuery", "promotions": promotions.flatMap { (value: Promotion) -> ResultMap in value.resultMap }]) } /// Connection between the RootQuery type and the RootQuery type @available(*, deprecated, message: "") - public var nugs: Nug? { + public var promotions: Promotion? { get { - return (resultMap["nugs"] as? ResultMap).flatMap { Nug(unsafeResultMap: $0) } + return (resultMap["promotions"] as? ResultMap).flatMap { Promotion(unsafeResultMap: $0) } } set { - resultMap.updateValue(newValue?.resultMap, forKey: "nugs") + resultMap.updateValue(newValue?.resultMap, forKey: "promotions") } } - public struct Nug: GraphQLSelectionSet { - public static let possibleTypes: [String] = ["RootQueryToNugConnection"] + public struct Promotion: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["RootQueryToPromotionConnection"] public static var selections: [GraphQLSelection] { return [ @@ -8603,7 +8653,7 @@ public final class NugsByTagQuery: GraphQLQuery { } public init(nodes: [Node?]? = nil) { - self.init(unsafeResultMap: ["__typename": "RootQueryToNugConnection", "nodes": nodes.flatMap { (value: [Node?]) -> [ResultMap?] in value.map { (value: Node?) -> ResultMap? in value.flatMap { (value: Node) -> ResultMap in value.resultMap } } }]) + self.init(unsafeResultMap: ["__typename": "RootQueryToPromotionConnection", "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 { @@ -8627,12 +8677,13 @@ public final class NugsByTagQuery: GraphQLQuery { } public struct Node: GraphQLSelectionSet { - public static let possibleTypes: [String] = ["Nug"] + public static let possibleTypes: [String] = ["Promotion"] public static var selections: [GraphQLSelection] { return [ GraphQLField("__typename", type: .nonNull(.scalar(String.self))), - GraphQLFragmentSpread(NugParts.self), + GraphQLFragmentSpread(PromotionParts.self), + GraphQLField("blocks", type: .list(.object(Block.selections))), ] } @@ -8651,6 +8702,17 @@ public final class NugsByTagQuery: GraphQLQuery { } } + /// Structured / parsed post content described as a shallow tree of block elements + @available(*, deprecated, message: "") + public var blocks: [Block?]? { + get { + return (resultMap["blocks"] as? [ResultMap?]).flatMap { (value: [ResultMap?]) -> [Block?] in value.map { (value: ResultMap?) -> Block? in value.flatMap { (value: ResultMap) -> Block in Block(unsafeResultMap: value) } } } + } + set { + resultMap.updateValue(newValue.flatMap { (value: [Block?]) -> [ResultMap?] in value.map { (value: Block?) -> ResultMap? in value.flatMap { (value: Block) -> ResultMap in value.resultMap } } }, forKey: "blocks") + } + } + public var fragments: Fragments { get { return Fragments(unsafeResultMap: resultMap) @@ -8667,15 +8729,67 @@ public final class NugsByTagQuery: GraphQLQuery { self.resultMap = unsafeResultMap } - public var nugParts: NugParts { + public var promotionParts: PromotionParts { get { - return NugParts(unsafeResultMap: resultMap) + return PromotionParts(unsafeResultMap: resultMap) } set { resultMap += newValue.resultMap } } } + + public struct Block: GraphQLSelectionSet { + public static let possibleTypes: [String] = ["Block"] + + public static var selections: [GraphQLSelection] { + return [ + GraphQLField("__typename", type: .nonNull(.scalar(String.self))), + GraphQLFragmentSpread(BlockParts.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 blockParts: BlockParts { + get { + return BlockParts(unsafeResultMap: resultMap) + } + set { + resultMap += newValue.resultMap + } + } + } + } } } }