-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
* Update codegen action to commit new files * Add Swift types * Add TypeScript types Co-authored-by: GitHub Action <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,8 @@ jobs: | |
run: | | ||
git config --local user.email "[email protected]" | ||
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 "[email protected]" | ||
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 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<Types.Collection, 'id' | 'title'> & { | ||
featuredImage?: Types.Maybe<({ | ||
__typename?: 'MediaItem'; | ||
} & MediaPartsFragment)>; | ||
blocks?: Types.Maybe<Array<Types.Maybe<({ | ||
__typename?: 'Block'; | ||
} & { | ||
connections?: Types.Maybe<Array<Types.Maybe<({ | ||
__typename?: 'Post'; | ||
} & ArticleTeaserPartsFragment) | { | ||
__typename?: 'Page'; | ||
} | ({ | ||
__typename?: 'MediaItem'; | ||
} & MediaPartsFragment) | { | ||
__typename?: 'Revision'; | ||
} | { | ||
__typename?: 'Push'; | ||
} | { | ||
__typename?: 'Email'; | ||
} | { | ||
__typename?: 'Card'; | ||
} | { | ||
__typename?: 'Chapter'; | ||
} | { | ||
__typename?: 'Promotion'; | ||
} | { | ||
__typename?: 'BlogPost'; | ||
} | ({ | ||
__typename?: 'Nug'; | ||
} & NugPartsFragment) | { | ||
__typename?: 'Collection'; | ||
} | { | ||
__typename?: 'Stack'; | ||
} | { | ||
__typename?: 'Bulletin'; | ||
}>>>; | ||
} & BlockPartsFragment)>>>; | ||
}); | ||
export declare const CollectionPartsFragmentDoc: import("@apollo/client").DocumentNode; | ||
//# sourceMappingURL=CollectionParts.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<Types.Post, 'id'> & { | ||
obsessions?: Types.Maybe<({ | ||
__typename?: 'PostToObsessionConnection'; | ||
} & { | ||
nodes?: Types.Maybe<Array<Types.Maybe<({ | ||
__typename?: 'Obsession'; | ||
} & Pick<Types.Obsession, 'id'> & { | ||
essentials?: Types.Maybe<({ | ||
__typename?: 'ObsessionToCollectionConnection'; | ||
} & { | ||
nodes?: Types.Maybe<Array<Types.Maybe<({ | ||
__typename?: 'Collection'; | ||
} & CollectionPartsFragment)>>>; | ||
})>; | ||
})>>>; | ||
})>; | ||
})>; | ||
}); | ||
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<EssentialsByArticleQuery, EssentialsByArticleQueryVariables>): Apollo.QueryResult<EssentialsByArticleQuery, Types.Exact<{ | ||
id: string; | ||
}>>; | ||
export declare function useEssentialsByArticleLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<EssentialsByArticleQuery, EssentialsByArticleQueryVariables>): Apollo.QueryTuple<EssentialsByArticleQuery, Types.Exact<{ | ||
id: string; | ||
}>>; | ||
export declare type EssentialsByArticleQueryHookResult = ReturnType<typeof useEssentialsByArticleQuery>; | ||
export declare type EssentialsByArticleLazyQueryHookResult = ReturnType<typeof useEssentialsByArticleLazyQuery>; | ||
export declare type EssentialsByArticleQueryResult = Apollo.QueryResult<EssentialsByArticleQuery, EssentialsByArticleQueryVariables>; | ||
//# sourceMappingURL=EssentialsByArticle.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.