-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
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 |
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,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 |
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,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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.