Skip to content

Commit

Permalink
Add CommonJS implementation (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
hallee authored Oct 24, 2020
1 parent 8861cd7 commit 39a893f
Show file tree
Hide file tree
Showing 243 changed files with 25,703 additions and 4 deletions.
40 changes: 40 additions & 0 deletions Web/dist-cjs/Article.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import type * as Types from './types';
import type { ArticlePartsFragment } from './ArticleParts';
import * as Apollo from '@apollo/client';
export declare type ArticleQueryVariables = Types.Exact<{
id: Types.Scalars['ID'];
}>;
export declare type ArticleQuery = ({
__typename?: 'RootQuery';
} & {
post?: Types.Maybe<({
__typename?: 'Post';
} & ArticlePartsFragment)>;
});
export declare const ArticleDocument: Apollo.DocumentNode;
/**
* __useArticleQuery__
*
* To run a query within a React component, call `useArticleQuery` and pass it any options that fit your needs.
* When your component renders, `useArticleQuery` 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 } = useArticleQuery({
* variables: {
* id: // value for 'id'
* },
* });
*/
export declare function useArticleQuery(baseOptions?: Apollo.QueryHookOptions<ArticleQuery, ArticleQueryVariables>): Apollo.QueryResult<ArticleQuery, Types.Exact<{
id: string;
}>>;
export declare function useArticleLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ArticleQuery, ArticleQueryVariables>): Apollo.QueryTuple<ArticleQuery, Types.Exact<{
id: string;
}>>;
export declare type ArticleQueryHookResult = ReturnType<typeof useArticleQuery>;
export declare type ArticleLazyQueryHookResult = ReturnType<typeof useArticleLazyQuery>;
export declare type ArticleQueryResult = Apollo.QueryResult<ArticleQuery, ArticleQueryVariables>;
//# sourceMappingURL=Article.d.ts.map
1 change: 1 addition & 0 deletions Web/dist-cjs/Article.d.ts.map

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

57 changes: 57 additions & 0 deletions Web/dist-cjs/Article.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/Article.js.map

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

88 changes: 88 additions & 0 deletions Web/dist-cjs/ArticleParts.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import type * as Types from './types';
import type { ArticleTeaserPartsFragment } from './ArticleTeaserParts';
import type { AuthorPartsFragment } from './AuthorParts';
import type { BlockPartsFragment } from './BlockParts';
import type { GuidePartsFragment } from './GuideParts';
import type { ObsessionPartsFragment } from './ObsessionParts';
import type { ProjectPartsFragment } from './ProjectParts';
import type { SeriesPartsFragment } from './SeriesParts';
import type { ShowPartsFragment } from './ShowParts';
export declare type ArticlePartsFragment = ({
__typename?: 'Post';
} & Pick<Types.Post, 'canonicalUrl' | 'classifications' | 'excerpt' | 'featuredImageSize' | 'footnotes' | 'interactiveSource' | 'interactiveShowHeader' | 'metered' | 'modifiedGmt' | 'paywalled' | 'readNext' | 'slug' | 'seoTitle' | 'socialDescription' | 'socialImage' | 'socialTitle' | 'subtype' | 'suppressAds' | 'trackingUrls'> & {
authors?: Types.Maybe<({
__typename?: 'PostToCoAuthorConnection';
} & {
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'CoAuthor';
} & AuthorPartsFragment)>>>;
})>;
blocks?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Block';
} & BlockPartsFragment)>>>;
flags?: Types.Maybe<({
__typename?: 'PostToFlagConnection';
} & {
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Flag';
} & Pick<Types.Flag, 'name' | 'slug'>)>>>;
})>;
guides?: Types.Maybe<({
__typename?: 'PostToGuideConnection';
} & {
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Guide';
} & GuidePartsFragment)>>>;
})>;
locations?: Types.Maybe<({
__typename?: 'PostToLocationConnection';
} & {
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Location';
} & Pick<Types.Location, 'name'>)>>>;
})>;
obsessions?: Types.Maybe<({
__typename?: 'PostToObsessionConnection';
} & {
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Obsession';
} & ObsessionPartsFragment)>>>;
})>;
projects?: Types.Maybe<({
__typename?: 'PostToProjectConnection';
} & {
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Project';
} & ProjectPartsFragment)>>>;
})>;
serieses?: Types.Maybe<({
__typename?: 'PostToSeriesConnection';
} & {
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Series';
} & SeriesPartsFragment)>>>;
})>;
shows?: Types.Maybe<({
__typename?: 'PostToShowConnection';
} & {
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Show';
} & ShowPartsFragment)>>>;
})>;
tags?: Types.Maybe<({
__typename?: 'PostToTagConnection';
} & {
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Tag';
} & Pick<Types.Tag, 'id' | 'name' | 'slug'>)>>>;
})>;
topics?: Types.Maybe<({
__typename?: 'PostToTopicConnection';
} & {
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Topic';
} & Pick<Types.Topic, 'id' | 'name' | 'slug'>)>>>;
})>;
} & ArticleTeaserPartsFragment);
export declare const ArticlePartsFragmentDoc: import("@apollo/client").DocumentNode;
//# sourceMappingURL=ArticleParts.d.ts.map
1 change: 1 addition & 0 deletions Web/dist-cjs/ArticleParts.d.ts.map

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

102 changes: 102 additions & 0 deletions Web/dist-cjs/ArticleParts.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/ArticleParts.js.map

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

52 changes: 52 additions & 0 deletions Web/dist-cjs/ArticlePreview.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import type * as Types from './types';
import type { ArticlePartsFragment } from './ArticleParts';
import * as Apollo from '@apollo/client';
export declare type ArticlePreviewQueryVariables = Types.Exact<{
id: Types.Scalars['Int'];
time: Types.Scalars['Int'];
token: Types.Scalars['String'];
}>;
export declare type ArticlePreviewQuery = ({
__typename?: 'RootQuery';
} & {
posts?: Types.Maybe<({
__typename?: 'RootQueryToPostConnection';
} & {
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Post';
} & ArticlePartsFragment)>>>;
})>;
});
export declare const ArticlePreviewDocument: Apollo.DocumentNode;
/**
* __useArticlePreviewQuery__
*
* To run a query within a React component, call `useArticlePreviewQuery` and pass it any options that fit your needs.
* When your component renders, `useArticlePreviewQuery` 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 } = useArticlePreviewQuery({
* variables: {
* id: // value for 'id'
* time: // value for 'time'
* token: // value for 'token'
* },
* });
*/
export declare function useArticlePreviewQuery(baseOptions?: Apollo.QueryHookOptions<ArticlePreviewQuery, ArticlePreviewQueryVariables>): Apollo.QueryResult<ArticlePreviewQuery, Types.Exact<{
id: number;
time: number;
token: string;
}>>;
export declare function useArticlePreviewLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ArticlePreviewQuery, ArticlePreviewQueryVariables>): Apollo.QueryTuple<ArticlePreviewQuery, Types.Exact<{
id: number;
time: number;
token: string;
}>>;
export declare type ArticlePreviewQueryHookResult = ReturnType<typeof useArticlePreviewQuery>;
export declare type ArticlePreviewLazyQueryHookResult = ReturnType<typeof useArticlePreviewLazyQuery>;
export declare type ArticlePreviewQueryResult = Apollo.QueryResult<ArticlePreviewQuery, ArticlePreviewQueryVariables>;
//# sourceMappingURL=ArticlePreview.d.ts.map
1 change: 1 addition & 0 deletions Web/dist-cjs/ArticlePreview.d.ts.map

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

Loading

0 comments on commit 39a893f

Please sign in to comment.