Skip to content

Commit

Permalink
Update codegen action to commit new files (#16)
Browse files Browse the repository at this point in the history
* Update codegen action to commit new files

* Add Swift types

* Add TypeScript types

Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
chriszarate and actions-user authored Oct 27, 2020
1 parent b70fdad commit 6fd690c
Show file tree
Hide file tree
Showing 19 changed files with 531 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
59 changes: 59 additions & 0 deletions Web/CollectionParts.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions Web/EssentialsByArticle.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 47 additions & 0 deletions Web/dist-cjs/CollectionParts.d.ts
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
1 change: 1 addition & 0 deletions Web/dist-cjs/CollectionParts.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions Web/dist-cjs/CollectionParts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Web/dist-cjs/CollectionParts.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions Web/dist-cjs/EssentialsByArticle.d.ts
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
1 change: 1 addition & 0 deletions Web/dist-cjs/EssentialsByArticle.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 67 additions & 0 deletions Web/dist-cjs/EssentialsByArticle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Web/dist-cjs/EssentialsByArticle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6fd690c

Please sign in to comment.