From 6fd690cfc056051fc803800885c1a69293851511 Mon Sep 17 00:00:00 2001 From: Chris Zarate Date: Tue, 27 Oct 2020 17:09:10 -0400 Subject: [PATCH] Update codegen action to commit new files (#16) * Update codegen action to commit new files * Add Swift types * Add TypeScript types Co-authored-by: GitHub Action --- .github/workflows/generation.yml | 6 +- Web/CollectionParts.ts | 59 +++++++++++++++++ Web/EssentialsByArticle.ts | 77 +++++++++++++++++++++++ Web/dist-cjs/CollectionParts.d.ts | 47 ++++++++++++++ Web/dist-cjs/CollectionParts.d.ts.map | 1 + Web/dist-cjs/CollectionParts.js | 35 +++++++++++ Web/dist-cjs/CollectionParts.js.map | 1 + Web/dist-cjs/EssentialsByArticle.d.ts | 56 +++++++++++++++++ Web/dist-cjs/EssentialsByArticle.d.ts.map | 1 + Web/dist-cjs/EssentialsByArticle.js | 67 ++++++++++++++++++++ Web/dist-cjs/EssentialsByArticle.js.map | 1 + Web/dist/CollectionParts.d.ts | 47 ++++++++++++++ Web/dist/CollectionParts.d.ts.map | 1 + Web/dist/CollectionParts.js | 32 ++++++++++ Web/dist/CollectionParts.js.map | 1 + Web/dist/EssentialsByArticle.d.ts | 56 +++++++++++++++++ Web/dist/EssentialsByArticle.d.ts.map | 1 + Web/dist/EssentialsByArticle.js | 43 +++++++++++++ Web/dist/EssentialsByArticle.js.map | 1 + 19 files changed, 531 insertions(+), 2 deletions(-) create mode 100644 Web/CollectionParts.ts create mode 100644 Web/EssentialsByArticle.ts create mode 100644 Web/dist-cjs/CollectionParts.d.ts create mode 100644 Web/dist-cjs/CollectionParts.d.ts.map create mode 100644 Web/dist-cjs/CollectionParts.js create mode 100644 Web/dist-cjs/CollectionParts.js.map create mode 100644 Web/dist-cjs/EssentialsByArticle.d.ts create mode 100644 Web/dist-cjs/EssentialsByArticle.d.ts.map create mode 100644 Web/dist-cjs/EssentialsByArticle.js create mode 100644 Web/dist-cjs/EssentialsByArticle.js.map create mode 100644 Web/dist/CollectionParts.d.ts create mode 100644 Web/dist/CollectionParts.d.ts.map create mode 100644 Web/dist/CollectionParts.js create mode 100644 Web/dist/CollectionParts.js.map create mode 100644 Web/dist/EssentialsByArticle.d.ts create mode 100644 Web/dist/EssentialsByArticle.d.ts.map create mode 100644 Web/dist/EssentialsByArticle.js create mode 100644 Web/dist/EssentialsByArticle.js.map diff --git a/.github/workflows/generation.yml b/.github/workflows/generation.yml index abb0b1a4..5779b054 100644 --- a/.github/workflows/generation.yml +++ b/.github/workflows/generation.yml @@ -49,7 +49,8 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git commit -a -m "Add Swift types" --no-verify --allow-empty + git add --all iOS Package.* Schemas + git commit -m "Add Swift types" --no-verify --allow-empty SHA_OUTPUT=`git rev-parse HEAD` echo "::set-output name=sha::"$SHA_OUTPUT"" git push @@ -88,7 +89,8 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git commit -a -m "Add TypeScript types" --no-verify --allow-empty + git add --all Web + git commit -m "Add TypeScript types" --no-verify --allow-empty SHA_OUTPUT=`git rev-parse HEAD` echo "::set-output name=sha::"$SHA_OUTPUT"" git push diff --git a/Web/CollectionParts.ts b/Web/CollectionParts.ts new file mode 100644 index 00000000..e2aae832 --- /dev/null +++ b/Web/CollectionParts.ts @@ -0,0 +1,59 @@ +import type * as Types from './types'; + +import type { MediaPartsFragment } from './MediaParts'; +import type { BlockPartsFragment } from './BlockParts'; +import type { ArticleTeaserPartsFragment } from './ArticleTeaserParts'; +import type { NugPartsFragment } from './NugParts'; +import { gql } from '@apollo/client'; +import { MediaPartsFragmentDoc } from './MediaParts'; +import { BlockPartsFragmentDoc } from './BlockParts'; +import { ArticleTeaserPartsFragmentDoc } from './ArticleTeaserParts'; +import { NugPartsFragmentDoc } from './NugParts'; +export type CollectionPartsFragment = ( + { __typename?: 'Collection' } + & Pick + & { featuredImage?: Types.Maybe<( + { __typename?: 'MediaItem' } + & MediaPartsFragment + )>, blocks?: Types.Maybe>> } + & BlockPartsFragment + )>>> } +); + +export const CollectionPartsFragmentDoc = /*#__PURE__*/ gql` + fragment CollectionParts on Collection { + id + title + featuredImage { + ...MediaParts + } + blocks { + ...BlockParts + connections { + ... on Post { + ...ArticleTeaserParts + } + ... on MediaItem { + ...MediaParts + } + ... on Nug { + ...NugParts + } + } + } +} + ${MediaPartsFragmentDoc} +${BlockPartsFragmentDoc} +${ArticleTeaserPartsFragmentDoc} +${NugPartsFragmentDoc}`; \ No newline at end of file diff --git a/Web/EssentialsByArticle.ts b/Web/EssentialsByArticle.ts new file mode 100644 index 00000000..5414cfea --- /dev/null +++ b/Web/EssentialsByArticle.ts @@ -0,0 +1,77 @@ +import type * as Types from './types'; + +import type { CollectionPartsFragment } from './CollectionParts'; +import { gql } from '@apollo/client'; +import { CollectionPartsFragmentDoc } from './CollectionParts'; +import * as Apollo from '@apollo/client'; +export type EssentialsByArticleQueryVariables = Types.Exact<{ + id: Types.Scalars['ID']; +}>; + + +export type EssentialsByArticleQuery = ( + { __typename?: 'RootQuery' } + & { post?: Types.Maybe<( + { __typename?: 'Post' } + & Pick + & { obsessions?: Types.Maybe<( + { __typename?: 'PostToObsessionConnection' } + & { nodes?: Types.Maybe + & { essentials?: Types.Maybe<( + { __typename?: 'ObsessionToCollectionConnection' } + & { nodes?: Types.Maybe>> } + )> } + )>>> } + )> } + )> } +); + + +export const EssentialsByArticleDocument = /*#__PURE__*/ gql` + query EssentialsByArticle($id: ID!) { + post(id: $id) { + id + obsessions { + nodes { + id + essentials(first: 1) { + nodes { + ...CollectionParts + } + } + } + } + } +} + ${CollectionPartsFragmentDoc}`; + +/** + * __useEssentialsByArticleQuery__ + * + * To run a query within a React component, call `useEssentialsByArticleQuery` and pass it any options that fit your needs. + * When your component renders, `useEssentialsByArticleQuery` 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 } = useEssentialsByArticleQuery({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export function useEssentialsByArticleQuery(baseOptions?: Apollo.QueryHookOptions) { + return Apollo.useQuery(EssentialsByArticleDocument, baseOptions); + } +export function useEssentialsByArticleLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + return Apollo.useLazyQuery(EssentialsByArticleDocument, baseOptions); + } +export type EssentialsByArticleQueryHookResult = ReturnType; +export type EssentialsByArticleLazyQueryHookResult = ReturnType; +export type EssentialsByArticleQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/Web/dist-cjs/CollectionParts.d.ts b/Web/dist-cjs/CollectionParts.d.ts new file mode 100644 index 00000000..d93f2912 --- /dev/null +++ b/Web/dist-cjs/CollectionParts.d.ts @@ -0,0 +1,47 @@ +import type * as Types from './types'; +import type { MediaPartsFragment } from './MediaParts'; +import type { BlockPartsFragment } from './BlockParts'; +import type { ArticleTeaserPartsFragment } from './ArticleTeaserParts'; +import type { NugPartsFragment } from './NugParts'; +export declare type CollectionPartsFragment = ({ + __typename?: 'Collection'; +} & Pick & { + featuredImage?: Types.Maybe<({ + __typename?: 'MediaItem'; + } & MediaPartsFragment)>; + blocks?: Types.Maybe>>; + } & BlockPartsFragment)>>>; +}); +export declare const CollectionPartsFragmentDoc: import("@apollo/client").DocumentNode; +//# sourceMappingURL=CollectionParts.d.ts.map \ No newline at end of file diff --git a/Web/dist-cjs/CollectionParts.d.ts.map b/Web/dist-cjs/CollectionParts.d.ts.map new file mode 100644 index 00000000..8795d956 --- /dev/null +++ b/Web/dist-cjs/CollectionParts.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CollectionParts.d.ts","sourceRoot":"","sources":["../CollectionParts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACv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AE,UAAU,CAAC,EAAE,YAAY,CAAA;SAAE,GAAG;YAAE,UAAU,CAAC,EAAE,OAAO,CAAA;SAAE,GAAG;YAAE,UAAU,CAAC,EAAE,UAAU,CAAA;SAAE,CAAC,CAAC,CAAC,CAAA;KAAE,GAC7F,kBAAkB,CACrB,CAAC,CAAC,CAAC,CAAA;CAAE,CACP,CAAC;AAEF,eAAO,MAAM,0BAA0B,uCAyBhB,CAAC"} \ No newline at end of file diff --git a/Web/dist-cjs/CollectionParts.js b/Web/dist-cjs/CollectionParts.js new file mode 100644 index 00000000..23ff3b26 --- /dev/null +++ b/Web/dist-cjs/CollectionParts.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CollectionPartsFragmentDoc = void 0; +const client_1 = require("@apollo/client"); +const MediaParts_1 = require("./MediaParts"); +const BlockParts_1 = require("./BlockParts"); +const ArticleTeaserParts_1 = require("./ArticleTeaserParts"); +const NugParts_1 = require("./NugParts"); +exports.CollectionPartsFragmentDoc = client_1.gql ` + fragment CollectionParts on Collection { + id + title + featuredImage { + ...MediaParts + } + blocks { + ...BlockParts + connections { + ... on Post { + ...ArticleTeaserParts + } + ... on MediaItem { + ...MediaParts + } + ... on Nug { + ...NugParts + } + } + } +} + ${MediaParts_1.MediaPartsFragmentDoc} +${BlockParts_1.BlockPartsFragmentDoc} +${ArticleTeaserParts_1.ArticleTeaserPartsFragmentDoc} +${NugParts_1.NugPartsFragmentDoc}`; +//# sourceMappingURL=CollectionParts.js.map \ No newline at end of file diff --git a/Web/dist-cjs/CollectionParts.js.map b/Web/dist-cjs/CollectionParts.js.map new file mode 100644 index 00000000..1e4310d7 --- /dev/null +++ b/Web/dist-cjs/CollectionParts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CollectionParts.js","sourceRoot":"","sources":["../CollectionParts.ts"],"names":[],"mappings":";;;AAMA,2CAAqC;AACrC,6CAAqD;AACrD,6CAAqD;AACrD,6DAAqE;AACrE,yCAAiD;AAuBpC,QAAA,0BAA0B,GAAiB,YAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;MAsBrD,kCAAqB;EACzB,kCAAqB;EACrB,kDAA6B;EAC7B,8BAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/Web/dist-cjs/EssentialsByArticle.d.ts b/Web/dist-cjs/EssentialsByArticle.d.ts new file mode 100644 index 00000000..e7d7e793 --- /dev/null +++ b/Web/dist-cjs/EssentialsByArticle.d.ts @@ -0,0 +1,56 @@ +import type * as Types from './types'; +import type { CollectionPartsFragment } from './CollectionParts'; +import * as Apollo from '@apollo/client'; +export declare type EssentialsByArticleQueryVariables = Types.Exact<{ + id: Types.Scalars['ID']; +}>; +export declare type EssentialsByArticleQuery = ({ + __typename?: 'RootQuery'; +} & { + post?: Types.Maybe<({ + __typename?: 'Post'; + } & Pick & { + obsessions?: Types.Maybe<({ + __typename?: 'PostToObsessionConnection'; + } & { + nodes?: Types.Maybe & { + essentials?: Types.Maybe<({ + __typename?: 'ObsessionToCollectionConnection'; + } & { + nodes?: Types.Maybe>>; + })>; + })>>>; + })>; + })>; +}); +export declare const EssentialsByArticleDocument: Apollo.DocumentNode; +/** + * __useEssentialsByArticleQuery__ + * + * To run a query within a React component, call `useEssentialsByArticleQuery` and pass it any options that fit your needs. + * When your component renders, `useEssentialsByArticleQuery` 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 } = useEssentialsByArticleQuery({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export declare function useEssentialsByArticleQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult>; +export declare function useEssentialsByArticleLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.QueryTuple>; +export declare type EssentialsByArticleQueryHookResult = ReturnType; +export declare type EssentialsByArticleLazyQueryHookResult = ReturnType; +export declare type EssentialsByArticleQueryResult = Apollo.QueryResult; +//# sourceMappingURL=EssentialsByArticle.d.ts.map \ No newline at end of file diff --git a/Web/dist-cjs/EssentialsByArticle.d.ts.map b/Web/dist-cjs/EssentialsByArticle.d.ts.map new file mode 100644 index 00000000..299f34a8 --- /dev/null +++ b/Web/dist-cjs/EssentialsByArticle.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"EssentialsByArticle.d.ts","sourceRoot":"","sources":["../EssentialsByArticle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAGjE,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,oBAAY,iCAAiC,GAAG,KAAK,CAAC,KAAK,CAAC;IAC1D,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB,CAAC,CAAC;AAGH,oBAAY,wBAAwB,GAAG,CACrC;IAAE,UAAU,CAAC,EAAE,WAAW,CAAA;CAAE,GAC1B;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CACrB;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,GACrB,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,GACtB;QAAE,UAAU,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAC3B;YAAE,UAAU,CAAC,EAAE,2BAA2B,CAAA;SAAE,GAC1C;YAAE,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CACxC;gBAAE,UAAU,CAAC,EAAE,WAAW,CAAA;aAAE,GAC1B,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,GAC3B;gBAAE,UAAU,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAC3B;oBAAE,UAAU,CAAC,EAAE,iCAAiC,CAAA;iBAAE,GAChD;oBAAE,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CACxC;wBAAE,UAAU,CAAC,EAAE,YAAY,CAAA;qBAAE,GAC3B,uBAAuB,CAC1B,CAAC,CAAC,CAAC,CAAA;iBAAE,CACP,CAAC,CAAA;aAAE,CACL,CAAC,CAAC,CAAC,CAAA;SAAE,CACP,CAAC,CAAA;KAAE,CACL,CAAC,CAAA;CAAE,CACL,CAAC;AAGF,eAAO,MAAM,2BAA2B,qBAgBN,CAAC;AAEnC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,2BAA2B,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,wBAAwB,EAAE,iCAAiC,CAAC;;IAEvI;AACP,wBAAgB,+BAA+B,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,wBAAwB,EAAE,iCAAiC,CAAC;;IAE7I;AACT,oBAAY,kCAAkC,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChG,oBAAY,sCAAsC,GAAG,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxG,oBAAY,8BAA8B,GAAG,MAAM,CAAC,WAAW,CAAC,wBAAwB,EAAE,iCAAiC,CAAC,CAAC"} \ No newline at end of file diff --git a/Web/dist-cjs/EssentialsByArticle.js b/Web/dist-cjs/EssentialsByArticle.js new file mode 100644 index 00000000..82bcb90d --- /dev/null +++ b/Web/dist-cjs/EssentialsByArticle.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.useEssentialsByArticleLazyQuery = exports.useEssentialsByArticleQuery = exports.EssentialsByArticleDocument = void 0; +const client_1 = require("@apollo/client"); +const CollectionParts_1 = require("./CollectionParts"); +const Apollo = __importStar(require("@apollo/client")); +exports.EssentialsByArticleDocument = client_1.gql ` + query EssentialsByArticle($id: ID!) { + post(id: $id) { + id + obsessions { + nodes { + id + essentials(first: 1) { + nodes { + ...CollectionParts + } + } + } + } + } +} + ${CollectionParts_1.CollectionPartsFragmentDoc}`; +/** + * __useEssentialsByArticleQuery__ + * + * To run a query within a React component, call `useEssentialsByArticleQuery` and pass it any options that fit your needs. + * When your component renders, `useEssentialsByArticleQuery` 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 } = useEssentialsByArticleQuery({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +function useEssentialsByArticleQuery(baseOptions) { + return Apollo.useQuery(exports.EssentialsByArticleDocument, baseOptions); +} +exports.useEssentialsByArticleQuery = useEssentialsByArticleQuery; +function useEssentialsByArticleLazyQuery(baseOptions) { + return Apollo.useLazyQuery(exports.EssentialsByArticleDocument, baseOptions); +} +exports.useEssentialsByArticleLazyQuery = useEssentialsByArticleLazyQuery; +//# sourceMappingURL=EssentialsByArticle.js.map \ No newline at end of file diff --git a/Web/dist-cjs/EssentialsByArticle.js.map b/Web/dist-cjs/EssentialsByArticle.js.map new file mode 100644 index 00000000..945af6b5 --- /dev/null +++ b/Web/dist-cjs/EssentialsByArticle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EssentialsByArticle.js","sourceRoot":"","sources":["../EssentialsByArticle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAGA,2CAAqC;AACrC,uDAA+D;AAC/D,uDAAyC;AA6B5B,QAAA,2BAA2B,GAAiB,YAAG,CAAA;;;;;;;;;;;;;;;;MAgBtD,4CAA0B,EAAE,CAAC;AAEnC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,2BAA2B,CAAC,WAAkG;IACtI,OAAO,MAAM,CAAC,QAAQ,CAA8D,mCAA2B,EAAE,WAAW,CAAC,CAAC;AAChI,CAAC;AAFP,kEAEO;AACP,SAAgB,+BAA+B,CAAC,WAAsG;IAC5I,OAAO,MAAM,CAAC,YAAY,CAA8D,mCAA2B,EAAE,WAAW,CAAC,CAAC;AACpI,CAAC;AAFT,0EAES"} \ No newline at end of file diff --git a/Web/dist/CollectionParts.d.ts b/Web/dist/CollectionParts.d.ts new file mode 100644 index 00000000..d93f2912 --- /dev/null +++ b/Web/dist/CollectionParts.d.ts @@ -0,0 +1,47 @@ +import type * as Types from './types'; +import type { MediaPartsFragment } from './MediaParts'; +import type { BlockPartsFragment } from './BlockParts'; +import type { ArticleTeaserPartsFragment } from './ArticleTeaserParts'; +import type { NugPartsFragment } from './NugParts'; +export declare type CollectionPartsFragment = ({ + __typename?: 'Collection'; +} & Pick & { + featuredImage?: Types.Maybe<({ + __typename?: 'MediaItem'; + } & MediaPartsFragment)>; + blocks?: Types.Maybe>>; + } & BlockPartsFragment)>>>; +}); +export declare const CollectionPartsFragmentDoc: import("@apollo/client").DocumentNode; +//# sourceMappingURL=CollectionParts.d.ts.map \ No newline at end of file diff --git a/Web/dist/CollectionParts.d.ts.map b/Web/dist/CollectionParts.d.ts.map new file mode 100644 index 00000000..8795d956 --- /dev/null +++ b/Web/dist/CollectionParts.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CollectionParts.d.ts","sourceRoot":"","sources":["../CollectionParts.ts"],"names":[],"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AAE,UAAU,CAAC,EAAE,WAAW,CAAA;SAAE,GAAG;YAAE,UAAU,CAAC,EAAE,UAAU,CAAA;SAAE,GAAG,CACzM;YAAE,UAAU,CAAC,EAAE,KAAK,CAAA;SAAE,GACpB,gBAAgB,CACnB,GAAG;YAAE,UAAU,CAAC,EAAE,YAAY,CAAA;SAAE,GAAG;YAAE,UAAU,CAAC,EAAE,OAAO,CAAA;SAAE,GAAG;YAAE,UAAU,CAAC,EAAE,UAAU,CAAA;SAAE,CAAC,CAAC,CAAC,CAAA;KAAE,GAC7F,kBAAkB,CACrB,CAAC,CAAC,CAAC,CAAA;CAAE,CACP,CAAC;AAEF,eAAO,MAAM,0BAA0B,uCAyBhB,CAAC"} \ No newline at end of file diff --git a/Web/dist/CollectionParts.js b/Web/dist/CollectionParts.js new file mode 100644 index 00000000..f540aef9 --- /dev/null +++ b/Web/dist/CollectionParts.js @@ -0,0 +1,32 @@ +import { gql } from '@apollo/client'; +import { MediaPartsFragmentDoc } from './MediaParts'; +import { BlockPartsFragmentDoc } from './BlockParts'; +import { ArticleTeaserPartsFragmentDoc } from './ArticleTeaserParts'; +import { NugPartsFragmentDoc } from './NugParts'; +export const CollectionPartsFragmentDoc = /*#__PURE__*/ gql ` + fragment CollectionParts on Collection { + id + title + featuredImage { + ...MediaParts + } + blocks { + ...BlockParts + connections { + ... on Post { + ...ArticleTeaserParts + } + ... on MediaItem { + ...MediaParts + } + ... on Nug { + ...NugParts + } + } + } +} + ${MediaPartsFragmentDoc} +${BlockPartsFragmentDoc} +${ArticleTeaserPartsFragmentDoc} +${NugPartsFragmentDoc}`; +//# sourceMappingURL=CollectionParts.js.map \ No newline at end of file diff --git a/Web/dist/CollectionParts.js.map b/Web/dist/CollectionParts.js.map new file mode 100644 index 00000000..ec2b8af1 --- /dev/null +++ b/Web/dist/CollectionParts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CollectionParts.js","sourceRoot":"","sources":["../CollectionParts.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAuBjD,MAAM,CAAC,MAAM,0BAA0B,GAAG,aAAa,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;MAsBrD,qBAAqB;EACzB,qBAAqB;EACrB,6BAA6B;EAC7B,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/Web/dist/EssentialsByArticle.d.ts b/Web/dist/EssentialsByArticle.d.ts new file mode 100644 index 00000000..e7d7e793 --- /dev/null +++ b/Web/dist/EssentialsByArticle.d.ts @@ -0,0 +1,56 @@ +import type * as Types from './types'; +import type { CollectionPartsFragment } from './CollectionParts'; +import * as Apollo from '@apollo/client'; +export declare type EssentialsByArticleQueryVariables = Types.Exact<{ + id: Types.Scalars['ID']; +}>; +export declare type EssentialsByArticleQuery = ({ + __typename?: 'RootQuery'; +} & { + post?: Types.Maybe<({ + __typename?: 'Post'; + } & Pick & { + obsessions?: Types.Maybe<({ + __typename?: 'PostToObsessionConnection'; + } & { + nodes?: Types.Maybe & { + essentials?: Types.Maybe<({ + __typename?: 'ObsessionToCollectionConnection'; + } & { + nodes?: Types.Maybe>>; + })>; + })>>>; + })>; + })>; +}); +export declare const EssentialsByArticleDocument: Apollo.DocumentNode; +/** + * __useEssentialsByArticleQuery__ + * + * To run a query within a React component, call `useEssentialsByArticleQuery` and pass it any options that fit your needs. + * When your component renders, `useEssentialsByArticleQuery` 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 } = useEssentialsByArticleQuery({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export declare function useEssentialsByArticleQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult>; +export declare function useEssentialsByArticleLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.QueryTuple>; +export declare type EssentialsByArticleQueryHookResult = ReturnType; +export declare type EssentialsByArticleLazyQueryHookResult = ReturnType; +export declare type EssentialsByArticleQueryResult = Apollo.QueryResult; +//# sourceMappingURL=EssentialsByArticle.d.ts.map \ No newline at end of file diff --git a/Web/dist/EssentialsByArticle.d.ts.map b/Web/dist/EssentialsByArticle.d.ts.map new file mode 100644 index 00000000..299f34a8 --- /dev/null +++ b/Web/dist/EssentialsByArticle.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"EssentialsByArticle.d.ts","sourceRoot":"","sources":["../EssentialsByArticle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAGjE,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,oBAAY,iCAAiC,GAAG,KAAK,CAAC,KAAK,CAAC;IAC1D,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB,CAAC,CAAC;AAGH,oBAAY,wBAAwB,GAAG,CACrC;IAAE,UAAU,CAAC,EAAE,WAAW,CAAA;CAAE,GAC1B;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CACrB;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,GACrB,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,GACtB;QAAE,UAAU,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAC3B;YAAE,UAAU,CAAC,EAAE,2BAA2B,CAAA;SAAE,GAC1C;YAAE,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CACxC;gBAAE,UAAU,CAAC,EAAE,WAAW,CAAA;aAAE,GAC1B,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,GAC3B;gBAAE,UAAU,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAC3B;oBAAE,UAAU,CAAC,EAAE,iCAAiC,CAAA;iBAAE,GAChD;oBAAE,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CACxC;wBAAE,UAAU,CAAC,EAAE,YAAY,CAAA;qBAAE,GAC3B,uBAAuB,CAC1B,CAAC,CAAC,CAAC,CAAA;iBAAE,CACP,CAAC,CAAA;aAAE,CACL,CAAC,CAAC,CAAC,CAAA;SAAE,CACP,CAAC,CAAA;KAAE,CACL,CAAC,CAAA;CAAE,CACL,CAAC;AAGF,eAAO,MAAM,2BAA2B,qBAgBN,CAAC;AAEnC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,2BAA2B,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,wBAAwB,EAAE,iCAAiC,CAAC;;IAEvI;AACP,wBAAgB,+BAA+B,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,wBAAwB,EAAE,iCAAiC,CAAC;;IAE7I;AACT,oBAAY,kCAAkC,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChG,oBAAY,sCAAsC,GAAG,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxG,oBAAY,8BAA8B,GAAG,MAAM,CAAC,WAAW,CAAC,wBAAwB,EAAE,iCAAiC,CAAC,CAAC"} \ No newline at end of file diff --git a/Web/dist/EssentialsByArticle.js b/Web/dist/EssentialsByArticle.js new file mode 100644 index 00000000..bbc99a20 --- /dev/null +++ b/Web/dist/EssentialsByArticle.js @@ -0,0 +1,43 @@ +import { gql } from '@apollo/client'; +import { CollectionPartsFragmentDoc } from './CollectionParts'; +import * as Apollo from '@apollo/client'; +export const EssentialsByArticleDocument = /*#__PURE__*/ gql ` + query EssentialsByArticle($id: ID!) { + post(id: $id) { + id + obsessions { + nodes { + id + essentials(first: 1) { + nodes { + ...CollectionParts + } + } + } + } + } +} + ${CollectionPartsFragmentDoc}`; +/** + * __useEssentialsByArticleQuery__ + * + * To run a query within a React component, call `useEssentialsByArticleQuery` and pass it any options that fit your needs. + * When your component renders, `useEssentialsByArticleQuery` 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 } = useEssentialsByArticleQuery({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export function useEssentialsByArticleQuery(baseOptions) { + return Apollo.useQuery(EssentialsByArticleDocument, baseOptions); +} +export function useEssentialsByArticleLazyQuery(baseOptions) { + return Apollo.useLazyQuery(EssentialsByArticleDocument, baseOptions); +} +//# sourceMappingURL=EssentialsByArticle.js.map \ No newline at end of file diff --git a/Web/dist/EssentialsByArticle.js.map b/Web/dist/EssentialsByArticle.js.map new file mode 100644 index 00000000..a8fe1ddb --- /dev/null +++ b/Web/dist/EssentialsByArticle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EssentialsByArticle.js","sourceRoot":"","sources":["../EssentialsByArticle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AA6BzC,MAAM,CAAC,MAAM,2BAA2B,GAAG,aAAa,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;MAgBtD,0BAA0B,EAAE,CAAC;AAEnC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,2BAA2B,CAAC,WAAkG;IACtI,OAAO,MAAM,CAAC,QAAQ,CAA8D,2BAA2B,EAAE,WAAW,CAAC,CAAC;AAChI,CAAC;AACP,MAAM,UAAU,+BAA+B,CAAC,WAAsG;IAC5I,OAAO,MAAM,CAAC,YAAY,CAA8D,2BAA2B,EAAE,WAAW,CAAC,CAAC;AACpI,CAAC"} \ No newline at end of file