mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-25 09:14:34 +01:00
update: use fluentApi to fetch images in resolvers
This commit is contained in:
@@ -14,13 +14,7 @@ import { fetchIsLoggedIn, fetchLnurlAuth } from "src/api/auth";
|
||||
|
||||
|
||||
|
||||
const fetchLnurlAuth = async () => {
|
||||
const res = await fetch(CONSTS.apiEndpoint + '/get-login-url', {
|
||||
credentials: 'include'
|
||||
})
|
||||
const data = await res.json()
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
export const useLnurlQuery = () => {
|
||||
const [loading, setLoading] = useState(true)
|
||||
@@ -101,15 +95,9 @@ export default function LoginPage() {
|
||||
if (canFetchIsLogged.current === false) return;
|
||||
|
||||
canFetchIsLogged.current = false;
|
||||
fetch(CONSTS.apiEndpoint + '/is-logged-in', {
|
||||
credentials: 'include',
|
||||
headers: {
|
||||
session_token
|
||||
}
|
||||
})
|
||||
.then(data => data.json())
|
||||
.then(data => {
|
||||
if (data.logged_in) {
|
||||
fetchIsLoggedIn(session_token)
|
||||
.then(is_logged_in => {
|
||||
if (is_logged_in) {
|
||||
clearInterval(interval)
|
||||
refetch();
|
||||
}
|
||||
|
||||
@@ -142,8 +142,8 @@ export type Hackathon = {
|
||||
};
|
||||
|
||||
export type ImageInput = {
|
||||
id: InputMaybe<Scalars['String']>;
|
||||
name: InputMaybe<Scalars['String']>;
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
name?: InputMaybe<Scalars['String']>;
|
||||
url: Scalars['String'];
|
||||
};
|
||||
|
||||
@@ -324,7 +324,7 @@ export type PostComment = {
|
||||
};
|
||||
|
||||
export type ProfileDetailsInput = {
|
||||
avatar?: InputMaybe<Scalars['String']>;
|
||||
avatar?: InputMaybe<ImageInput>;
|
||||
bio?: InputMaybe<Scalars['String']>;
|
||||
discord?: InputMaybe<Scalars['String']>;
|
||||
email?: InputMaybe<Scalars['String']>;
|
||||
@@ -550,7 +550,7 @@ export type Story = PostBase & {
|
||||
|
||||
export type StoryInputType = {
|
||||
body: Scalars['String'];
|
||||
cover_image?: InputMaybe<Scalars['String']>;
|
||||
cover_image?: InputMaybe<ImageInput>;
|
||||
id?: InputMaybe<Scalars['Int']>;
|
||||
is_published?: InputMaybe<Scalars['Boolean']>;
|
||||
tags: Array<Scalars['String']>;
|
||||
@@ -1037,13 +1037,13 @@ export const OfficialTagsDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useOfficialTagsQuery(baseOptions?: Apollo.QueryHookOptions<OfficialTagsQuery, OfficialTagsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<OfficialTagsQuery, OfficialTagsQueryVariables>(OfficialTagsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<OfficialTagsQuery, OfficialTagsQueryVariables>(OfficialTagsDocument, options);
|
||||
}
|
||||
export function useOfficialTagsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<OfficialTagsQuery, OfficialTagsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<OfficialTagsQuery, OfficialTagsQueryVariables>(OfficialTagsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<OfficialTagsQuery, OfficialTagsQueryVariables>(OfficialTagsDocument, options);
|
||||
}
|
||||
export type OfficialTagsQueryHookResult = ReturnType<typeof useOfficialTagsQuery>;
|
||||
export type OfficialTagsLazyQueryHookResult = ReturnType<typeof useOfficialTagsLazyQuery>;
|
||||
export type OfficialTagsQueryResult = Apollo.QueryResult<OfficialTagsQuery, OfficialTagsQueryVariables>;
|
||||
@@ -1074,13 +1074,13 @@ export const NavCategoriesDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useNavCategoriesQuery(baseOptions?: Apollo.QueryHookOptions<NavCategoriesQuery, NavCategoriesQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<NavCategoriesQuery, NavCategoriesQueryVariables>(NavCategoriesDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<NavCategoriesQuery, NavCategoriesQueryVariables>(NavCategoriesDocument, options);
|
||||
}
|
||||
export function useNavCategoriesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<NavCategoriesQuery, NavCategoriesQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<NavCategoriesQuery, NavCategoriesQueryVariables>(NavCategoriesDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<NavCategoriesQuery, NavCategoriesQueryVariables>(NavCategoriesDocument, options);
|
||||
}
|
||||
export type NavCategoriesQueryHookResult = ReturnType<typeof useNavCategoriesQuery>;
|
||||
export type NavCategoriesLazyQueryHookResult = ReturnType<typeof useNavCategoriesLazyQuery>;
|
||||
export type NavCategoriesQueryResult = Apollo.QueryResult<NavCategoriesQuery, NavCategoriesQueryVariables>;
|
||||
@@ -1115,13 +1115,13 @@ export const SearchProjectsDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useSearchProjectsQuery(baseOptions: Apollo.QueryHookOptions<SearchProjectsQuery, SearchProjectsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<SearchProjectsQuery, SearchProjectsQueryVariables>(SearchProjectsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<SearchProjectsQuery, SearchProjectsQueryVariables>(SearchProjectsDocument, options);
|
||||
}
|
||||
export function useSearchProjectsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SearchProjectsQuery, SearchProjectsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<SearchProjectsQuery, SearchProjectsQueryVariables>(SearchProjectsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<SearchProjectsQuery, SearchProjectsQueryVariables>(SearchProjectsDocument, options);
|
||||
}
|
||||
export type SearchProjectsQueryHookResult = ReturnType<typeof useSearchProjectsQuery>;
|
||||
export type SearchProjectsLazyQueryHookResult = ReturnType<typeof useSearchProjectsLazyQuery>;
|
||||
export type SearchProjectsQueryResult = Apollo.QueryResult<SearchProjectsQuery, SearchProjectsQueryVariables>;
|
||||
@@ -1154,13 +1154,13 @@ export const MeDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useMeQuery(baseOptions?: Apollo.QueryHookOptions<MeQuery, MeQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<MeQuery, MeQueryVariables>(MeDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<MeQuery, MeQueryVariables>(MeDocument, options);
|
||||
}
|
||||
export function useMeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<MeQuery, MeQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<MeQuery, MeQueryVariables>(MeDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<MeQuery, MeQueryVariables>(MeDocument, options);
|
||||
}
|
||||
export type MeQueryHookResult = ReturnType<typeof useMeQuery>;
|
||||
export type MeLazyQueryHookResult = ReturnType<typeof useMeLazyQuery>;
|
||||
export type MeQueryResult = Apollo.QueryResult<MeQuery, MeQueryVariables>;
|
||||
@@ -1191,13 +1191,13 @@ export const DonationsStatsDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useDonationsStatsQuery(baseOptions?: Apollo.QueryHookOptions<DonationsStatsQuery, DonationsStatsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<DonationsStatsQuery, DonationsStatsQueryVariables>(DonationsStatsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<DonationsStatsQuery, DonationsStatsQueryVariables>(DonationsStatsDocument, options);
|
||||
}
|
||||
export function useDonationsStatsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<DonationsStatsQuery, DonationsStatsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<DonationsStatsQuery, DonationsStatsQueryVariables>(DonationsStatsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<DonationsStatsQuery, DonationsStatsQueryVariables>(DonationsStatsDocument, options);
|
||||
}
|
||||
export type DonationsStatsQueryHookResult = ReturnType<typeof useDonationsStatsQuery>;
|
||||
export type DonationsStatsLazyQueryHookResult = ReturnType<typeof useDonationsStatsLazyQuery>;
|
||||
export type DonationsStatsQueryResult = Apollo.QueryResult<DonationsStatsQuery, DonationsStatsQueryVariables>;
|
||||
@@ -1231,9 +1231,9 @@ export type DonateMutationFn = Apollo.MutationFunction<DonateMutation, DonateMut
|
||||
* });
|
||||
*/
|
||||
export function useDonateMutation(baseOptions?: Apollo.MutationHookOptions<DonateMutation, DonateMutationVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useMutation<DonateMutation, DonateMutationVariables>(DonateDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<DonateMutation, DonateMutationVariables>(DonateDocument, options);
|
||||
}
|
||||
export type DonateMutationHookResult = ReturnType<typeof useDonateMutation>;
|
||||
export type DonateMutationResult = Apollo.MutationResult<DonateMutation>;
|
||||
export type DonateMutationOptions = Apollo.BaseMutationOptions<DonateMutation, DonateMutationVariables>;
|
||||
@@ -1267,9 +1267,9 @@ export type ConfirmDonationMutationFn = Apollo.MutationFunction<ConfirmDonationM
|
||||
* });
|
||||
*/
|
||||
export function useConfirmDonationMutation(baseOptions?: Apollo.MutationHookOptions<ConfirmDonationMutation, ConfirmDonationMutationVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useMutation<ConfirmDonationMutation, ConfirmDonationMutationVariables>(ConfirmDonationDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<ConfirmDonationMutation, ConfirmDonationMutationVariables>(ConfirmDonationDocument, options);
|
||||
}
|
||||
export type ConfirmDonationMutationHookResult = ReturnType<typeof useConfirmDonationMutation>;
|
||||
export type ConfirmDonationMutationResult = Apollo.MutationResult<ConfirmDonationMutation>;
|
||||
export type ConfirmDonationMutationOptions = Apollo.BaseMutationOptions<ConfirmDonationMutation, ConfirmDonationMutationVariables>;
|
||||
@@ -1311,13 +1311,13 @@ export const GetHackathonsDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useGetHackathonsQuery(baseOptions?: Apollo.QueryHookOptions<GetHackathonsQuery, GetHackathonsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<GetHackathonsQuery, GetHackathonsQueryVariables>(GetHackathonsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<GetHackathonsQuery, GetHackathonsQueryVariables>(GetHackathonsDocument, options);
|
||||
}
|
||||
export function useGetHackathonsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetHackathonsQuery, GetHackathonsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<GetHackathonsQuery, GetHackathonsQueryVariables>(GetHackathonsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<GetHackathonsQuery, GetHackathonsQueryVariables>(GetHackathonsDocument, options);
|
||||
}
|
||||
export type GetHackathonsQueryHookResult = ReturnType<typeof useGetHackathonsQuery>;
|
||||
export type GetHackathonsLazyQueryHookResult = ReturnType<typeof useGetHackathonsLazyQuery>;
|
||||
export type GetHackathonsQueryResult = Apollo.QueryResult<GetHackathonsQuery, GetHackathonsQueryVariables>;
|
||||
@@ -1368,13 +1368,13 @@ export const TrendingPostsDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useTrendingPostsQuery(baseOptions?: Apollo.QueryHookOptions<TrendingPostsQuery, TrendingPostsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<TrendingPostsQuery, TrendingPostsQueryVariables>(TrendingPostsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<TrendingPostsQuery, TrendingPostsQueryVariables>(TrendingPostsDocument, options);
|
||||
}
|
||||
export function useTrendingPostsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TrendingPostsQuery, TrendingPostsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<TrendingPostsQuery, TrendingPostsQueryVariables>(TrendingPostsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<TrendingPostsQuery, TrendingPostsQueryVariables>(TrendingPostsDocument, options);
|
||||
}
|
||||
export type TrendingPostsQueryHookResult = ReturnType<typeof useTrendingPostsQuery>;
|
||||
export type TrendingPostsLazyQueryHookResult = ReturnType<typeof useTrendingPostsLazyQuery>;
|
||||
export type TrendingPostsQueryResult = Apollo.QueryResult<TrendingPostsQuery, TrendingPostsQueryVariables>;
|
||||
@@ -1417,13 +1417,13 @@ export const GetMyDraftsDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useGetMyDraftsQuery(baseOptions: Apollo.QueryHookOptions<GetMyDraftsQuery, GetMyDraftsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<GetMyDraftsQuery, GetMyDraftsQueryVariables>(GetMyDraftsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<GetMyDraftsQuery, GetMyDraftsQueryVariables>(GetMyDraftsDocument, options);
|
||||
}
|
||||
export function useGetMyDraftsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetMyDraftsQuery, GetMyDraftsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<GetMyDraftsQuery, GetMyDraftsQueryVariables>(GetMyDraftsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<GetMyDraftsQuery, GetMyDraftsQueryVariables>(GetMyDraftsDocument, options);
|
||||
}
|
||||
export type GetMyDraftsQueryHookResult = ReturnType<typeof useGetMyDraftsQuery>;
|
||||
export type GetMyDraftsLazyQueryHookResult = ReturnType<typeof useGetMyDraftsLazyQuery>;
|
||||
export type GetMyDraftsQueryResult = Apollo.QueryResult<GetMyDraftsQuery, GetMyDraftsQueryVariables>;
|
||||
@@ -1465,9 +1465,9 @@ export type CreateStoryMutationFn = Apollo.MutationFunction<CreateStoryMutation,
|
||||
* });
|
||||
*/
|
||||
export function useCreateStoryMutation(baseOptions?: Apollo.MutationHookOptions<CreateStoryMutation, CreateStoryMutationVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useMutation<CreateStoryMutation, CreateStoryMutationVariables>(CreateStoryDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<CreateStoryMutation, CreateStoryMutationVariables>(CreateStoryDocument, options);
|
||||
}
|
||||
export type CreateStoryMutationHookResult = ReturnType<typeof useCreateStoryMutation>;
|
||||
export type CreateStoryMutationResult = Apollo.MutationResult<CreateStoryMutation>;
|
||||
export type CreateStoryMutationOptions = Apollo.BaseMutationOptions<CreateStoryMutation, CreateStoryMutationVariables>;
|
||||
@@ -1498,9 +1498,9 @@ export type DeleteStoryMutationFn = Apollo.MutationFunction<DeleteStoryMutation,
|
||||
* });
|
||||
*/
|
||||
export function useDeleteStoryMutation(baseOptions?: Apollo.MutationHookOptions<DeleteStoryMutation, DeleteStoryMutationVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useMutation<DeleteStoryMutation, DeleteStoryMutationVariables>(DeleteStoryDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<DeleteStoryMutation, DeleteStoryMutationVariables>(DeleteStoryDocument, options);
|
||||
}
|
||||
export type DeleteStoryMutationHookResult = ReturnType<typeof useDeleteStoryMutation>;
|
||||
export type DeleteStoryMutationResult = Apollo.MutationResult<DeleteStoryMutation>;
|
||||
export type DeleteStoryMutationOptions = Apollo.BaseMutationOptions<DeleteStoryMutation, DeleteStoryMutationVariables>;
|
||||
@@ -1530,13 +1530,13 @@ export const PopularTagsDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function usePopularTagsQuery(baseOptions?: Apollo.QueryHookOptions<PopularTagsQuery, PopularTagsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<PopularTagsQuery, PopularTagsQueryVariables>(PopularTagsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<PopularTagsQuery, PopularTagsQueryVariables>(PopularTagsDocument, options);
|
||||
}
|
||||
export function usePopularTagsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<PopularTagsQuery, PopularTagsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<PopularTagsQuery, PopularTagsQueryVariables>(PopularTagsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<PopularTagsQuery, PopularTagsQueryVariables>(PopularTagsDocument, options);
|
||||
}
|
||||
export type PopularTagsQueryHookResult = ReturnType<typeof usePopularTagsQuery>;
|
||||
export type PopularTagsLazyQueryHookResult = ReturnType<typeof usePopularTagsLazyQuery>;
|
||||
export type PopularTagsQueryResult = Apollo.QueryResult<PopularTagsQuery, PopularTagsQueryVariables>;
|
||||
@@ -1627,13 +1627,13 @@ export const FeedDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useFeedQuery(baseOptions?: Apollo.QueryHookOptions<FeedQuery, FeedQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<FeedQuery, FeedQueryVariables>(FeedDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<FeedQuery, FeedQueryVariables>(FeedDocument, options);
|
||||
}
|
||||
export function useFeedLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<FeedQuery, FeedQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<FeedQuery, FeedQueryVariables>(FeedDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<FeedQuery, FeedQueryVariables>(FeedDocument, options);
|
||||
}
|
||||
export type FeedQueryHookResult = ReturnType<typeof useFeedQuery>;
|
||||
export type FeedLazyQueryHookResult = ReturnType<typeof useFeedLazyQuery>;
|
||||
export type FeedQueryResult = Apollo.QueryResult<FeedQuery, FeedQueryVariables>;
|
||||
@@ -1732,13 +1732,13 @@ export const PostDetailsDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function usePostDetailsQuery(baseOptions: Apollo.QueryHookOptions<PostDetailsQuery, PostDetailsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<PostDetailsQuery, PostDetailsQueryVariables>(PostDetailsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<PostDetailsQuery, PostDetailsQueryVariables>(PostDetailsDocument, options);
|
||||
}
|
||||
export function usePostDetailsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<PostDetailsQuery, PostDetailsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<PostDetailsQuery, PostDetailsQueryVariables>(PostDetailsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<PostDetailsQuery, PostDetailsQueryVariables>(PostDetailsDocument, options);
|
||||
}
|
||||
export type PostDetailsQueryHookResult = ReturnType<typeof usePostDetailsQuery>;
|
||||
export type PostDetailsLazyQueryHookResult = ReturnType<typeof usePostDetailsLazyQuery>;
|
||||
export type PostDetailsQueryResult = Apollo.QueryResult<PostDetailsQuery, PostDetailsQueryVariables>;
|
||||
@@ -1767,13 +1767,13 @@ export const MyProfileAboutDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useMyProfileAboutQuery(baseOptions?: Apollo.QueryHookOptions<MyProfileAboutQuery, MyProfileAboutQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<MyProfileAboutQuery, MyProfileAboutQueryVariables>(MyProfileAboutDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<MyProfileAboutQuery, MyProfileAboutQueryVariables>(MyProfileAboutDocument, options);
|
||||
}
|
||||
export function useMyProfileAboutLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<MyProfileAboutQuery, MyProfileAboutQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<MyProfileAboutQuery, MyProfileAboutQueryVariables>(MyProfileAboutDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<MyProfileAboutQuery, MyProfileAboutQueryVariables>(MyProfileAboutDocument, options);
|
||||
}
|
||||
export type MyProfileAboutQueryHookResult = ReturnType<typeof useMyProfileAboutQuery>;
|
||||
export type MyProfileAboutLazyQueryHookResult = ReturnType<typeof useMyProfileAboutLazyQuery>;
|
||||
export type MyProfileAboutQueryResult = Apollo.QueryResult<MyProfileAboutQuery, MyProfileAboutQueryVariables>;
|
||||
@@ -1805,9 +1805,9 @@ export type UpdateProfileAboutMutationFn = Apollo.MutationFunction<UpdateProfile
|
||||
* });
|
||||
*/
|
||||
export function useUpdateProfileAboutMutation(baseOptions?: Apollo.MutationHookOptions<UpdateProfileAboutMutation, UpdateProfileAboutMutationVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useMutation<UpdateProfileAboutMutation, UpdateProfileAboutMutationVariables>(UpdateProfileAboutDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<UpdateProfileAboutMutation, UpdateProfileAboutMutationVariables>(UpdateProfileAboutDocument, options);
|
||||
}
|
||||
export type UpdateProfileAboutMutationHookResult = ReturnType<typeof useUpdateProfileAboutMutation>;
|
||||
export type UpdateProfileAboutMutationResult = Apollo.MutationResult<UpdateProfileAboutMutation>;
|
||||
export type UpdateProfileAboutMutationOptions = Apollo.BaseMutationOptions<UpdateProfileAboutMutation, UpdateProfileAboutMutationVariables>;
|
||||
@@ -1842,13 +1842,13 @@ export const MyProfilePreferencesDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useMyProfilePreferencesQuery(baseOptions?: Apollo.QueryHookOptions<MyProfilePreferencesQuery, MyProfilePreferencesQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<MyProfilePreferencesQuery, MyProfilePreferencesQueryVariables>(MyProfilePreferencesDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<MyProfilePreferencesQuery, MyProfilePreferencesQueryVariables>(MyProfilePreferencesDocument, options);
|
||||
}
|
||||
export function useMyProfilePreferencesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<MyProfilePreferencesQuery, MyProfilePreferencesQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<MyProfilePreferencesQuery, MyProfilePreferencesQueryVariables>(MyProfilePreferencesDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<MyProfilePreferencesQuery, MyProfilePreferencesQueryVariables>(MyProfilePreferencesDocument, options);
|
||||
}
|
||||
export type MyProfilePreferencesQueryHookResult = ReturnType<typeof useMyProfilePreferencesQuery>;
|
||||
export type MyProfilePreferencesLazyQueryHookResult = ReturnType<typeof useMyProfilePreferencesLazyQuery>;
|
||||
export type MyProfilePreferencesQueryResult = Apollo.QueryResult<MyProfilePreferencesQuery, MyProfilePreferencesQueryVariables>;
|
||||
@@ -1885,9 +1885,9 @@ export type UpdateUserPreferencesMutationFn = Apollo.MutationFunction<UpdateUser
|
||||
* });
|
||||
*/
|
||||
export function useUpdateUserPreferencesMutation(baseOptions?: Apollo.MutationHookOptions<UpdateUserPreferencesMutation, UpdateUserPreferencesMutationVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useMutation<UpdateUserPreferencesMutation, UpdateUserPreferencesMutationVariables>(UpdateUserPreferencesDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<UpdateUserPreferencesMutation, UpdateUserPreferencesMutationVariables>(UpdateUserPreferencesDocument, options);
|
||||
}
|
||||
export type UpdateUserPreferencesMutationHookResult = ReturnType<typeof useUpdateUserPreferencesMutation>;
|
||||
export type UpdateUserPreferencesMutationResult = Apollo.MutationResult<UpdateUserPreferencesMutation>;
|
||||
export type UpdateUserPreferencesMutationOptions = Apollo.BaseMutationOptions<UpdateUserPreferencesMutation, UpdateUserPreferencesMutationVariables>;
|
||||
@@ -1925,13 +1925,13 @@ export const MyProfileRolesSkillsDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useMyProfileRolesSkillsQuery(baseOptions?: Apollo.QueryHookOptions<MyProfileRolesSkillsQuery, MyProfileRolesSkillsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<MyProfileRolesSkillsQuery, MyProfileRolesSkillsQueryVariables>(MyProfileRolesSkillsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<MyProfileRolesSkillsQuery, MyProfileRolesSkillsQueryVariables>(MyProfileRolesSkillsDocument, options);
|
||||
}
|
||||
export function useMyProfileRolesSkillsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<MyProfileRolesSkillsQuery, MyProfileRolesSkillsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<MyProfileRolesSkillsQuery, MyProfileRolesSkillsQueryVariables>(MyProfileRolesSkillsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<MyProfileRolesSkillsQuery, MyProfileRolesSkillsQueryVariables>(MyProfileRolesSkillsDocument, options);
|
||||
}
|
||||
export type MyProfileRolesSkillsQueryHookResult = ReturnType<typeof useMyProfileRolesSkillsQuery>;
|
||||
export type MyProfileRolesSkillsLazyQueryHookResult = ReturnType<typeof useMyProfileRolesSkillsLazyQuery>;
|
||||
export type MyProfileRolesSkillsQueryResult = Apollo.QueryResult<MyProfileRolesSkillsQuery, MyProfileRolesSkillsQueryVariables>;
|
||||
@@ -1972,9 +1972,9 @@ export type UpdateUserRolesSkillsMutationFn = Apollo.MutationFunction<UpdateUser
|
||||
* });
|
||||
*/
|
||||
export function useUpdateUserRolesSkillsMutation(baseOptions?: Apollo.MutationHookOptions<UpdateUserRolesSkillsMutation, UpdateUserRolesSkillsMutationVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useMutation<UpdateUserRolesSkillsMutation, UpdateUserRolesSkillsMutationVariables>(UpdateUserRolesSkillsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<UpdateUserRolesSkillsMutation, UpdateUserRolesSkillsMutationVariables>(UpdateUserRolesSkillsDocument, options);
|
||||
}
|
||||
export type UpdateUserRolesSkillsMutationHookResult = ReturnType<typeof useUpdateUserRolesSkillsMutation>;
|
||||
export type UpdateUserRolesSkillsMutationResult = Apollo.MutationResult<UpdateUserRolesSkillsMutation>;
|
||||
export type UpdateUserRolesSkillsMutationOptions = Apollo.BaseMutationOptions<UpdateUserRolesSkillsMutation, UpdateUserRolesSkillsMutationVariables>;
|
||||
@@ -2028,13 +2028,13 @@ ${UserRolesSkillsFragmentDoc}`;
|
||||
* });
|
||||
*/
|
||||
export function useProfileQuery(baseOptions: Apollo.QueryHookOptions<ProfileQuery, ProfileQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<ProfileQuery, ProfileQueryVariables>(ProfileDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<ProfileQuery, ProfileQueryVariables>(ProfileDocument, options);
|
||||
}
|
||||
export function useProfileLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ProfileQuery, ProfileQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<ProfileQuery, ProfileQueryVariables>(ProfileDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<ProfileQuery, ProfileQueryVariables>(ProfileDocument, options);
|
||||
}
|
||||
export type ProfileQueryHookResult = ReturnType<typeof useProfileQuery>;
|
||||
export type ProfileLazyQueryHookResult = ReturnType<typeof useProfileLazyQuery>;
|
||||
export type ProfileQueryResult = Apollo.QueryResult<ProfileQuery, ProfileQueryVariables>;
|
||||
@@ -2076,13 +2076,13 @@ export const CategoryPageDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useCategoryPageQuery(baseOptions: Apollo.QueryHookOptions<CategoryPageQuery, CategoryPageQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<CategoryPageQuery, CategoryPageQueryVariables>(CategoryPageDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<CategoryPageQuery, CategoryPageQueryVariables>(CategoryPageDocument, options);
|
||||
}
|
||||
export function useCategoryPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CategoryPageQuery, CategoryPageQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<CategoryPageQuery, CategoryPageQueryVariables>(CategoryPageDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<CategoryPageQuery, CategoryPageQueryVariables>(CategoryPageDocument, options);
|
||||
}
|
||||
export type CategoryPageQueryHookResult = ReturnType<typeof useCategoryPageQuery>;
|
||||
export type CategoryPageLazyQueryHookResult = ReturnType<typeof useCategoryPageLazyQuery>;
|
||||
export type CategoryPageQueryResult = Apollo.QueryResult<CategoryPageQuery, CategoryPageQueryVariables>;
|
||||
@@ -2112,13 +2112,13 @@ export const AllCategoriesDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useAllCategoriesQuery(baseOptions?: Apollo.QueryHookOptions<AllCategoriesQuery, AllCategoriesQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<AllCategoriesQuery, AllCategoriesQueryVariables>(AllCategoriesDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<AllCategoriesQuery, AllCategoriesQueryVariables>(AllCategoriesDocument, options);
|
||||
}
|
||||
export function useAllCategoriesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<AllCategoriesQuery, AllCategoriesQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<AllCategoriesQuery, AllCategoriesQueryVariables>(AllCategoriesDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<AllCategoriesQuery, AllCategoriesQueryVariables>(AllCategoriesDocument, options);
|
||||
}
|
||||
export type AllCategoriesQueryHookResult = ReturnType<typeof useAllCategoriesQuery>;
|
||||
export type AllCategoriesLazyQueryHookResult = ReturnType<typeof useAllCategoriesLazyQuery>;
|
||||
export type AllCategoriesQueryResult = Apollo.QueryResult<AllCategoriesQuery, AllCategoriesQueryVariables>;
|
||||
@@ -2177,13 +2177,13 @@ export const ExploreProjectsDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useExploreProjectsQuery(baseOptions?: Apollo.QueryHookOptions<ExploreProjectsQuery, ExploreProjectsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<ExploreProjectsQuery, ExploreProjectsQueryVariables>(ExploreProjectsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<ExploreProjectsQuery, ExploreProjectsQueryVariables>(ExploreProjectsDocument, options);
|
||||
}
|
||||
export function useExploreProjectsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ExploreProjectsQuery, ExploreProjectsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<ExploreProjectsQuery, ExploreProjectsQueryVariables>(ExploreProjectsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<ExploreProjectsQuery, ExploreProjectsQueryVariables>(ExploreProjectsDocument, options);
|
||||
}
|
||||
export type ExploreProjectsQueryHookResult = ReturnType<typeof useExploreProjectsQuery>;
|
||||
export type ExploreProjectsLazyQueryHookResult = ReturnType<typeof useExploreProjectsLazyQuery>;
|
||||
export type ExploreProjectsQueryResult = Apollo.QueryResult<ExploreProjectsQuery, ExploreProjectsQueryVariables>;
|
||||
@@ -2218,13 +2218,13 @@ export const HottestProjectsDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useHottestProjectsQuery(baseOptions?: Apollo.QueryHookOptions<HottestProjectsQuery, HottestProjectsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<HottestProjectsQuery, HottestProjectsQueryVariables>(HottestProjectsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<HottestProjectsQuery, HottestProjectsQueryVariables>(HottestProjectsDocument, options);
|
||||
}
|
||||
export function useHottestProjectsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<HottestProjectsQuery, HottestProjectsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<HottestProjectsQuery, HottestProjectsQueryVariables>(HottestProjectsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<HottestProjectsQuery, HottestProjectsQueryVariables>(HottestProjectsDocument, options);
|
||||
}
|
||||
export type HottestProjectsQueryHookResult = ReturnType<typeof useHottestProjectsQuery>;
|
||||
export type HottestProjectsLazyQueryHookResult = ReturnType<typeof useHottestProjectsLazyQuery>;
|
||||
export type HottestProjectsQueryResult = Apollo.QueryResult<HottestProjectsQuery, HottestProjectsQueryVariables>;
|
||||
@@ -2276,13 +2276,13 @@ export const ProjectDetailsDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useProjectDetailsQuery(baseOptions: Apollo.QueryHookOptions<ProjectDetailsQuery, ProjectDetailsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<ProjectDetailsQuery, ProjectDetailsQueryVariables>(ProjectDetailsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<ProjectDetailsQuery, ProjectDetailsQueryVariables>(ProjectDetailsDocument, options);
|
||||
}
|
||||
export function useProjectDetailsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ProjectDetailsQuery, ProjectDetailsQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<ProjectDetailsQuery, ProjectDetailsQueryVariables>(ProjectDetailsDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<ProjectDetailsQuery, ProjectDetailsQueryVariables>(ProjectDetailsDocument, options);
|
||||
}
|
||||
export type ProjectDetailsQueryHookResult = ReturnType<typeof useProjectDetailsQuery>;
|
||||
export type ProjectDetailsLazyQueryHookResult = ReturnType<typeof useProjectDetailsLazyQuery>;
|
||||
export type ProjectDetailsQueryResult = Apollo.QueryResult<ProjectDetailsQuery, ProjectDetailsQueryVariables>;
|
||||
@@ -2312,13 +2312,13 @@ export const GetAllRolesDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useGetAllRolesQuery(baseOptions?: Apollo.QueryHookOptions<GetAllRolesQuery, GetAllRolesQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<GetAllRolesQuery, GetAllRolesQueryVariables>(GetAllRolesDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<GetAllRolesQuery, GetAllRolesQueryVariables>(GetAllRolesDocument, options);
|
||||
}
|
||||
export function useGetAllRolesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetAllRolesQuery, GetAllRolesQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<GetAllRolesQuery, GetAllRolesQueryVariables>(GetAllRolesDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<GetAllRolesQuery, GetAllRolesQueryVariables>(GetAllRolesDocument, options);
|
||||
}
|
||||
export type GetAllRolesQueryHookResult = ReturnType<typeof useGetAllRolesQuery>;
|
||||
export type GetAllRolesLazyQueryHookResult = ReturnType<typeof useGetAllRolesLazyQuery>;
|
||||
export type GetAllRolesQueryResult = Apollo.QueryResult<GetAllRolesQuery, GetAllRolesQueryVariables>;
|
||||
@@ -2382,13 +2382,13 @@ export const GetMakersInTournamentDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useGetMakersInTournamentQuery(baseOptions: Apollo.QueryHookOptions<GetMakersInTournamentQuery, GetMakersInTournamentQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<GetMakersInTournamentQuery, GetMakersInTournamentQueryVariables>(GetMakersInTournamentDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<GetMakersInTournamentQuery, GetMakersInTournamentQueryVariables>(GetMakersInTournamentDocument, options);
|
||||
}
|
||||
export function useGetMakersInTournamentLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetMakersInTournamentQuery, GetMakersInTournamentQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<GetMakersInTournamentQuery, GetMakersInTournamentQueryVariables>(GetMakersInTournamentDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<GetMakersInTournamentQuery, GetMakersInTournamentQueryVariables>(GetMakersInTournamentDocument, options);
|
||||
}
|
||||
export type GetMakersInTournamentQueryHookResult = ReturnType<typeof useGetMakersInTournamentQuery>;
|
||||
export type GetMakersInTournamentLazyQueryHookResult = ReturnType<typeof useGetMakersInTournamentLazyQuery>;
|
||||
export type GetMakersInTournamentQueryResult = Apollo.QueryResult<GetMakersInTournamentQuery, GetMakersInTournamentQueryVariables>;
|
||||
@@ -2445,13 +2445,13 @@ export const GetProjectsInTournamentDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useGetProjectsInTournamentQuery(baseOptions: Apollo.QueryHookOptions<GetProjectsInTournamentQuery, GetProjectsInTournamentQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<GetProjectsInTournamentQuery, GetProjectsInTournamentQueryVariables>(GetProjectsInTournamentDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<GetProjectsInTournamentQuery, GetProjectsInTournamentQueryVariables>(GetProjectsInTournamentDocument, options);
|
||||
}
|
||||
export function useGetProjectsInTournamentLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetProjectsInTournamentQuery, GetProjectsInTournamentQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<GetProjectsInTournamentQuery, GetProjectsInTournamentQueryVariables>(GetProjectsInTournamentDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<GetProjectsInTournamentQuery, GetProjectsInTournamentQueryVariables>(GetProjectsInTournamentDocument, options);
|
||||
}
|
||||
export type GetProjectsInTournamentQueryHookResult = ReturnType<typeof useGetProjectsInTournamentQuery>;
|
||||
export type GetProjectsInTournamentLazyQueryHookResult = ReturnType<typeof useGetProjectsInTournamentLazyQuery>;
|
||||
export type GetProjectsInTournamentQueryResult = Apollo.QueryResult<GetProjectsInTournamentQuery, GetProjectsInTournamentQueryVariables>;
|
||||
@@ -2485,9 +2485,9 @@ export type UpdateTournamentRegistrationMutationFn = Apollo.MutationFunction<Upd
|
||||
* });
|
||||
*/
|
||||
export function useUpdateTournamentRegistrationMutation(baseOptions?: Apollo.MutationHookOptions<UpdateTournamentRegistrationMutation, UpdateTournamentRegistrationMutationVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useMutation<UpdateTournamentRegistrationMutation, UpdateTournamentRegistrationMutationVariables>(UpdateTournamentRegistrationDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<UpdateTournamentRegistrationMutation, UpdateTournamentRegistrationMutationVariables>(UpdateTournamentRegistrationDocument, options);
|
||||
}
|
||||
export type UpdateTournamentRegistrationMutationHookResult = ReturnType<typeof useUpdateTournamentRegistrationMutation>;
|
||||
export type UpdateTournamentRegistrationMutationResult = Apollo.MutationResult<UpdateTournamentRegistrationMutation>;
|
||||
export type UpdateTournamentRegistrationMutationOptions = Apollo.BaseMutationOptions<UpdateTournamentRegistrationMutation, UpdateTournamentRegistrationMutationVariables>;
|
||||
@@ -2520,9 +2520,9 @@ export type RegisterInTournamentMutationFn = Apollo.MutationFunction<RegisterInT
|
||||
* });
|
||||
*/
|
||||
export function useRegisterInTournamentMutation(baseOptions?: Apollo.MutationHookOptions<RegisterInTournamentMutation, RegisterInTournamentMutationVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useMutation<RegisterInTournamentMutation, RegisterInTournamentMutationVariables>(RegisterInTournamentDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<RegisterInTournamentMutation, RegisterInTournamentMutationVariables>(RegisterInTournamentDocument, options);
|
||||
}
|
||||
export type RegisterInTournamentMutationHookResult = ReturnType<typeof useRegisterInTournamentMutation>;
|
||||
export type RegisterInTournamentMutationResult = Apollo.MutationResult<RegisterInTournamentMutation>;
|
||||
export type RegisterInTournamentMutationOptions = Apollo.BaseMutationOptions<RegisterInTournamentMutation, RegisterInTournamentMutationVariables>;
|
||||
@@ -2562,13 +2562,13 @@ export const MeTournamentDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useMeTournamentQuery(baseOptions: Apollo.QueryHookOptions<MeTournamentQuery, MeTournamentQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<MeTournamentQuery, MeTournamentQueryVariables>(MeTournamentDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<MeTournamentQuery, MeTournamentQueryVariables>(MeTournamentDocument, options);
|
||||
}
|
||||
export function useMeTournamentLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<MeTournamentQuery, MeTournamentQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<MeTournamentQuery, MeTournamentQueryVariables>(MeTournamentDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<MeTournamentQuery, MeTournamentQueryVariables>(MeTournamentDocument, options);
|
||||
}
|
||||
export type MeTournamentQueryHookResult = ReturnType<typeof useMeTournamentQuery>;
|
||||
export type MeTournamentLazyQueryHookResult = ReturnType<typeof useMeTournamentLazyQuery>;
|
||||
export type MeTournamentQueryResult = Apollo.QueryResult<MeTournamentQuery, MeTournamentQueryVariables>;
|
||||
@@ -2656,13 +2656,13 @@ export const GetTournamentByIdDocument = gql`
|
||||
* });
|
||||
*/
|
||||
export function useGetTournamentByIdQuery(baseOptions: Apollo.QueryHookOptions<GetTournamentByIdQuery, GetTournamentByIdQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useQuery<GetTournamentByIdQuery, GetTournamentByIdQueryVariables>(GetTournamentByIdDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useQuery<GetTournamentByIdQuery, GetTournamentByIdQueryVariables>(GetTournamentByIdDocument, options);
|
||||
}
|
||||
export function useGetTournamentByIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTournamentByIdQuery, GetTournamentByIdQueryVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useLazyQuery<GetTournamentByIdQuery, GetTournamentByIdQueryVariables>(GetTournamentByIdDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useLazyQuery<GetTournamentByIdQuery, GetTournamentByIdQueryVariables>(GetTournamentByIdDocument, options);
|
||||
}
|
||||
export type GetTournamentByIdQueryHookResult = ReturnType<typeof useGetTournamentByIdQuery>;
|
||||
export type GetTournamentByIdLazyQueryHookResult = ReturnType<typeof useGetTournamentByIdLazyQuery>;
|
||||
export type GetTournamentByIdQueryResult = Apollo.QueryResult<GetTournamentByIdQuery, GetTournamentByIdQueryVariables>;
|
||||
@@ -2701,9 +2701,9 @@ export type VoteMutationFn = Apollo.MutationFunction<VoteMutation, VoteMutationV
|
||||
* });
|
||||
*/
|
||||
export function useVoteMutation(baseOptions?: Apollo.MutationHookOptions<VoteMutation, VoteMutationVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useMutation<VoteMutation, VoteMutationVariables>(VoteDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<VoteMutation, VoteMutationVariables>(VoteDocument, options);
|
||||
}
|
||||
export type VoteMutationHookResult = ReturnType<typeof useVoteMutation>;
|
||||
export type VoteMutationResult = Apollo.MutationResult<VoteMutation>;
|
||||
export type VoteMutationOptions = Apollo.BaseMutationOptions<VoteMutation, VoteMutationVariables>;
|
||||
@@ -2741,9 +2741,9 @@ export type ConfirmVoteMutationFn = Apollo.MutationFunction<ConfirmVoteMutation,
|
||||
* });
|
||||
*/
|
||||
export function useConfirmVoteMutation(baseOptions?: Apollo.MutationHookOptions<ConfirmVoteMutation, ConfirmVoteMutationVariables>) {
|
||||
const options = { ...defaultOptions, ...baseOptions }
|
||||
return Apollo.useMutation<ConfirmVoteMutation, ConfirmVoteMutationVariables>(ConfirmVoteDocument, options);
|
||||
}
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<ConfirmVoteMutation, ConfirmVoteMutationVariables>(ConfirmVoteDocument, options);
|
||||
}
|
||||
export type ConfirmVoteMutationHookResult = ReturnType<typeof useConfirmVoteMutation>;
|
||||
export type ConfirmVoteMutationResult = Apollo.MutationResult<ConfirmVoteMutation>;
|
||||
export type ConfirmVoteMutationOptions = Apollo.BaseMutationOptions<ConfirmVoteMutation, ConfirmVoteMutationVariables>;
|
||||
Reference in New Issue
Block a user