import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; export type MakeEmpty = { [_ in K]?: never }; export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: { input: string; output: string; } String: { input: string; output: string; } Boolean: { input: boolean; output: boolean; } Int: { input: number; output: number; } Float: { input: number; output: number; } DateTime: { input: any; output: any; } Upload: { input: any; output: any; } }; export type AuthModel = { __typename?: 'AuthModel'; message?: Maybe; user?: Maybe; }; export type CategoryModel = { __typename?: 'CategoryModel'; createdAt: Scalars['DateTime']['output']; description?: Maybe; id: Scalars['ID']['output']; slug: Scalars['String']['output']; streams: Array; thumbnailUrl: Scalars['String']['output']; title: Scalars['String']['output']; updatedAt: Scalars['DateTime']['output']; }; export type ChangeChatSettingsInput = { isChatEnable: Scalars['Boolean']['input']; isChatFollowersOnly: Scalars['Boolean']['input']; isChatPremiumFollowersOnly: Scalars['Boolean']['input']; }; export type ChangeEmailInput = { email: Scalars['String']['input']; }; export type ChangeNotificationSettingsInput = { siteNotifications: Scalars['Boolean']['input']; telegramNotifications: Scalars['Boolean']['input']; }; export type ChangeNotificationsSettingsResponse = { __typename?: 'ChangeNotificationsSettingsResponse'; notificationSettings: NotificationSettingsModel; telegramAuthToken?: Maybe; }; export type ChangePasswordInput = { newPassword: Scalars['String']['input']; oldPassword: Scalars['String']['input']; }; export type ChangeProfileInfoInput = { bio: Scalars['String']['input']; displayName: Scalars['String']['input']; name: Scalars['String']['input']; }; export type ChangeStreamInfoInput = { categoryId: Scalars['String']['input']; title: Scalars['String']['input']; }; export type ChatMessageModel = { __typename?: 'ChatMessageModel'; createdAt: Scalars['DateTime']['output']; id: Scalars['ID']['output']; streamId: Scalars['ID']['output']; text: Scalars['String']['output']; updatedAt: Scalars['DateTime']['output']; userId: Scalars['ID']['output']; }; export type CreatePlanInput = { description?: InputMaybe; price: Scalars['Float']['input']; title: Scalars['String']['input']; }; export type CreateUserInput = { email: Scalars['String']['input']; name: Scalars['String']['input']; password: Scalars['String']['input']; }; export type DeactivateAccountInput = { email: Scalars['String']['input']; password: Scalars['String']['input']; pin?: InputMaybe; }; export type DeviceModel = { __typename?: 'DeviceModel'; browser: Scalars['String']['output']; os: Scalars['String']['output']; type: Scalars['String']['output']; }; export type EnableTotpInput = { pin: Scalars['String']['input']; secret: Scalars['String']['input']; }; export type FilterInput = { searchTerm?: InputMaybe; skip?: InputMaybe; take?: InputMaybe; }; export type FollowModel = { __typename?: 'FollowModel'; createdAt: Scalars['DateTime']['output']; follower: UserModel; followerId: Scalars['ID']['output']; following: UserModel; followingId: Scalars['ID']['output']; id: Scalars['ID']['output']; updatedAt: Scalars['DateTime']['output']; }; export type GenerateStreamTokenInput = { channelId: Scalars['String']['input']; userId: Scalars['String']['input']; }; export type GenerateTokenModel = { __typename?: 'GenerateTokenModel'; token: Scalars['String']['output']; }; export type LocationModel = { __typename?: 'LocationModel'; city: Scalars['String']['output']; country: Scalars['String']['output']; latitude: Scalars['Float']['output']; longitude: Scalars['Float']['output']; }; export type LoginInput = { login: Scalars['String']['input']; password: Scalars['String']['input']; pin?: InputMaybe; }; export type MakePaymentModel = { __typename?: 'MakePaymentModel'; url: Scalars['String']['output']; }; export type Mutation = { __typename?: 'Mutation'; changeChatSettings: StreamModel; changeEmail: UserModel; changeNotificationSettigs: ChangeNotificationsSettingsResponse; changePassword: UserModel; changeProfileAvatar: Scalars['Boolean']['output']; changeProfileInfo: UserModel; changeStreamInfo: StreamModel; changeStreamThumbnail: Scalars['Boolean']['output']; clearSessionCookie: Scalars['Boolean']['output']; createIngress: Scalars['Boolean']['output']; createSocialLink: SocialLinkModel; createSponsorshipPlan: PlanModel; createUser: UserModel; deactivateAccount: AuthModel; disableTotp: Scalars['Boolean']['output']; enableTotp: Scalars['Boolean']['output']; followChannel: FollowModel; generateStreamToken: GenerateTokenModel; loginUser: AuthModel; logoutUser: Scalars['Boolean']['output']; makePayment: MakePaymentModel; removeProfileAvatar: Scalars['Boolean']['output']; removeSession: Scalars['Boolean']['output']; removeSocialLink: Scalars['Boolean']['output']; removeSponsorshipPlan: PlanModel; removeStreamThumbnail: Scalars['Boolean']['output']; reorderSocialLink: Scalars['Boolean']['output']; resetPassword: Scalars['Boolean']['output']; sendChatMessage: ChatMessageModel; setNewPassword: Scalars['Boolean']['output']; unfollowChannel: FollowModel; updateSocialLink: SocialLinkModel; verifyAccount: AuthModel; }; export type MutationChangeChatSettingsArgs = { data: ChangeChatSettingsInput; }; export type MutationChangeEmailArgs = { data: ChangeEmailInput; }; export type MutationChangeNotificationSettigsArgs = { data: ChangeNotificationSettingsInput; }; export type MutationChangePasswordArgs = { data: ChangePasswordInput; }; export type MutationChangeProfileAvatarArgs = { avatar: Scalars['Upload']['input']; }; export type MutationChangeProfileInfoArgs = { data: ChangeProfileInfoInput; }; export type MutationChangeStreamInfoArgs = { data: ChangeStreamInfoInput; }; export type MutationChangeStreamThumbnailArgs = { thumbnail: Scalars['Upload']['input']; }; export type MutationCreateIngressArgs = { ingressType: Scalars['Float']['input']; }; export type MutationCreateSocialLinkArgs = { data: SocialLinkInput; }; export type MutationCreateSponsorshipPlanArgs = { data: CreatePlanInput; }; export type MutationCreateUserArgs = { data: CreateUserInput; }; export type MutationDeactivateAccountArgs = { data: DeactivateAccountInput; }; export type MutationEnableTotpArgs = { data: EnableTotpInput; }; export type MutationFollowChannelArgs = { channelId: Scalars['String']['input']; }; export type MutationGenerateStreamTokenArgs = { data: GenerateStreamTokenInput; }; export type MutationLoginUserArgs = { data: LoginInput; }; export type MutationMakePaymentArgs = { planId: Scalars['String']['input']; }; export type MutationRemoveSessionArgs = { id: Scalars['String']['input']; }; export type MutationRemoveSocialLinkArgs = { id: Scalars['String']['input']; }; export type MutationRemoveSponsorshipPlanArgs = { planId: Scalars['String']['input']; }; export type MutationReorderSocialLinkArgs = { list: Array; }; export type MutationResetPasswordArgs = { data: ResetPasswordInput; }; export type MutationSendChatMessageArgs = { data: SendMessageInput; }; export type MutationSetNewPasswordArgs = { data: NewPasswordInput; }; export type MutationUnfollowChannelArgs = { channelId: Scalars['String']['input']; }; export type MutationUpdateSocialLinkArgs = { data: SocialLinkInput; id: Scalars['String']['input']; }; export type MutationVerifyAccountArgs = { data: VerificationInput; }; export type NewPasswordInput = { password: Scalars['String']['input']; passwordRepeat: Scalars['String']['input']; token: Scalars['String']['input']; }; export type NotificationModel = { __typename?: 'NotificationModel'; createdAt: Scalars['DateTime']['output']; id: Scalars['String']['output']; isRead: Scalars['Boolean']['output']; text: Scalars['String']['output']; type: NotificationType; updatedAt: Scalars['DateTime']['output']; user: UserModel; userId: Scalars['String']['output']; }; export type NotificationSettingsModel = { __typename?: 'NotificationSettingsModel'; createdAt: Scalars['DateTime']['output']; id: Scalars['String']['output']; siteNotifications: Scalars['Boolean']['output']; telegramNotifications: Scalars['Boolean']['output']; updatedAt: Scalars['DateTime']['output']; user: UserModel; userId: Scalars['String']['output']; }; export enum NotificationType { EnableTwoFactor = 'ENABLE_TWO_FACTOR', NewFollower = 'NEW_FOLLOWER', NewSponsorship = 'NEW_SPONSORSHIP', StreamStart = 'STREAM_START', VerifiedChannel = 'VERIFIED_CHANNEL' } export type PlanModel = { __typename?: 'PlanModel'; channel: UserModel; channelId: Scalars['ID']['output']; createdAt: Scalars['DateTime']['output']; description?: Maybe; id: Scalars['ID']['output']; price: Scalars['Float']['output']; stripePlanId: Scalars['ID']['output']; stripeProductId: Scalars['ID']['output']; title: Scalars['String']['output']; updatedAt: Scalars['DateTime']['output']; }; export type Query = { __typename?: 'Query'; findAllCategories: Array; findAllStreams: Array; findCategoryBySlug: CategoryModel; findChannelByUsername: UserModel; findChannelFollowersCount: Scalars['Float']['output']; findCurrentSession: SessionModel; findMessagesByStream: Array; findMyFollowers: Array; findMyFollowings: Array; findMySponsors: Array; findMySponsorshipPlans: Array; findMyTransactions: Array; findNotificationByUser: Array; findProfile: UserModel; findRandomCategories: Array; findRandomStreams: Array; findRecommendedChannels: Array; findSessionsByUser: Array; findSocialLinks: Array; findSponsorsByChannel: Array; findUnreadNotificationsCount: Scalars['Float']['output']; generateTotpSecret: TotpModel; }; export type QueryFindAllStreamsArgs = { filters: FilterInput; }; export type QueryFindCategoryBySlugArgs = { slug: Scalars['String']['input']; }; export type QueryFindChannelByUsernameArgs = { name: Scalars['String']['input']; }; export type QueryFindChannelFollowersCountArgs = { channelId: Scalars['String']['input']; }; export type QueryFindMessagesByStreamArgs = { streamId: Scalars['String']['input']; }; export type QueryFindSponsorsByChannelArgs = { channelId: Scalars['String']['input']; }; export type ResetPasswordInput = { email: Scalars['String']['input']; }; export type SendMessageInput = { streamId: Scalars['String']['input']; text: Scalars['String']['input']; }; export type SessionMetadataModel = { __typename?: 'SessionMetadataModel'; device: DeviceModel; ip: Scalars['String']['output']; location: LocationModel; }; export type SessionModel = { __typename?: 'SessionModel'; createdAt: Scalars['String']['output']; id: Scalars['ID']['output']; metadata: SessionMetadataModel; userId: Scalars['String']['output']; }; export type SocialLinkInput = { title: Scalars['String']['input']; url: Scalars['String']['input']; }; export type SocialLinkModel = { __typename?: 'SocialLinkModel'; createdAt: Scalars['DateTime']['output']; id: Scalars['ID']['output']; position: Scalars['Float']['output']; title: Scalars['String']['output']; updatedAt: Scalars['DateTime']['output']; url: Scalars['String']['output']; userId: Scalars['ID']['output']; }; export type SocialLinkOrderInput = { id: Scalars['String']['input']; position: Scalars['Float']['input']; }; export type StreamModel = { __typename?: 'StreamModel'; category: CategoryModel; categoryId: Scalars['ID']['output']; chatMessages: Array; createdAt: Scalars['DateTime']['output']; id: Scalars['ID']['output']; ingressId?: Maybe; isChatEnable: Scalars['Boolean']['output']; isChatFollowersOnly: Scalars['Boolean']['output']; isChatPremiumFollowersOnly: Scalars['Boolean']['output']; isLive: Scalars['Boolean']['output']; key?: Maybe; serverUrl?: Maybe; thumbnailUrl?: Maybe; title: Scalars['String']['output']; updatedAt: Scalars['DateTime']['output']; user: UserModel; userId: Scalars['ID']['output']; }; export type Subscription = { __typename?: 'Subscription'; chatMessageAdded: ChatMessageModel; }; export type SubscriptionChatMessageAddedArgs = { streamId: Scalars['String']['input']; }; export type SubscriptionModel = { __typename?: 'SubscriptionModel'; channel: UserModel; channelId: Scalars['String']['output']; createdAt: Scalars['DateTime']['output']; expiresAt: Scalars['DateTime']['output']; id: Scalars['ID']['output']; plan: PlanModel; planId: Scalars['String']['output']; updatedAt: Scalars['DateTime']['output']; user: UserModel; userId: Scalars['String']['output']; }; export type TotpModel = { __typename?: 'TotpModel'; qrcodeUrl: Scalars['String']['output']; secret: Scalars['String']['output']; }; export type TransactionModel = { __typename?: 'TransactionModel'; amount: Scalars['Float']['output']; createdAt: Scalars['DateTime']['output']; currency: Scalars['String']['output']; id: Scalars['ID']['output']; status: TransactionStatus; stripeSubscriptionId: Scalars['ID']['output']; updatedAt: Scalars['DateTime']['output']; user: UserModel; userId: Scalars['ID']['output']; }; export enum TransactionStatus { Expired = 'EXPIRED', Failed = 'FAILED', Pending = 'PENDING', Success = 'SUCCESS' } export type UserModel = { __typename?: 'UserModel'; avatar?: Maybe; bio?: Maybe; createdAt: Scalars['DateTime']['output']; deactivatedAt?: Maybe; displayName: Scalars['String']['output']; email: Scalars['String']['output']; followers: Array; followings: Array; id: Scalars['ID']['output']; isDeactivated: Scalars['Boolean']['output']; isEmailVerified: Scalars['Boolean']['output']; isTotpEnabled: Scalars['Boolean']['output']; isVerified: Scalars['Boolean']['output']; name: Scalars['String']['output']; notification: Array; notificationSettings: NotificationSettingsModel; password: Scalars['String']['output']; socialLink: Array; stream: StreamModel; telegramId?: Maybe; totpSecret?: Maybe; updatedAt: Scalars['DateTime']['output']; }; export type VerificationInput = { token: Scalars['String']['input']; }; export type ClearSessionCookieMutationVariables = Exact<{ [key: string]: never; }>; export type ClearSessionCookieMutation = { __typename?: 'Mutation', clearSessionCookie: boolean }; export type CreateUserMutationVariables = Exact<{ data: CreateUserInput; }>; export type CreateUserMutation = { __typename?: 'Mutation', createUser: { __typename?: 'UserModel', name: string, password: string, email: string } }; export type LoginUserMutationVariables = Exact<{ data: LoginInput; }>; export type LoginUserMutation = { __typename?: 'Mutation', loginUser: { __typename?: 'AuthModel', message?: string | null, user?: { __typename?: 'UserModel', id: string, name: string, email: string } | null } }; export type LogoutUserMutationVariables = Exact<{ [key: string]: never; }>; export type LogoutUserMutation = { __typename?: 'Mutation', logoutUser: boolean }; export type NewPasswordMutationVariables = Exact<{ data: NewPasswordInput; }>; export type NewPasswordMutation = { __typename?: 'Mutation', setNewPassword: boolean }; export type ResetPasswordMutationVariables = Exact<{ data: ResetPasswordInput; }>; export type ResetPasswordMutation = { __typename?: 'Mutation', resetPassword: boolean }; export type VerifyAccountMutationVariables = Exact<{ data: VerificationInput; }>; export type VerifyAccountMutation = { __typename?: 'Mutation', verifyAccount: { __typename?: 'AuthModel', message?: string | null, user?: { __typename?: 'UserModel', isEmailVerified: boolean } | null } }; export type FindRecommendedChannelsQueryVariables = Exact<{ [key: string]: never; }>; export type FindRecommendedChannelsQuery = { __typename?: 'Query', findRecommendedChannels: Array<{ __typename?: 'UserModel', id: string, name: string, avatar?: string | null, isVerified: boolean, stream: { __typename?: 'StreamModel', isLive: boolean } }> }; export type FindChannelByUsernameQueryVariables = Exact<{ name: Scalars['String']['input']; }>; export type FindChannelByUsernameQuery = { __typename?: 'Query', findChannelByUsername: { __typename?: 'UserModel', name: string, avatar?: string | null, displayName: string, stream: { __typename?: 'StreamModel', title: string } } }; export type FindNotificationByUserQueryVariables = Exact<{ [key: string]: never; }>; export type FindNotificationByUserQuery = { __typename?: 'Query', findNotificationByUser: Array<{ __typename?: 'NotificationModel', createdAt: any, id: string, isRead: boolean, text: string, type: NotificationType, updatedAt: any, userId: string }> }; export type FindUnreadNotificationsCountQueryVariables = Exact<{ [key: string]: never; }>; export type FindUnreadNotificationsCountQuery = { __typename?: 'Query', findUnreadNotificationsCount: number }; export type FindProfileQueryVariables = Exact<{ [key: string]: never; }>; export type FindProfileQuery = { __typename?: 'Query', findProfile: { __typename?: 'UserModel', avatar?: string | null, bio?: string | null, createdAt: any, email: string, id: string, name: string, updatedAt: any, isEmailVerified: boolean, isTotpEnabled: boolean, isVerified: boolean, displayName: string, socialLink: Array<{ __typename?: 'SocialLinkModel', title: string, url: string, position: number }> } }; export const ClearSessionCookieDocument = gql` mutation ClearSessionCookie { clearSessionCookie } `; export type ClearSessionCookieMutationFn = Apollo.MutationFunction; /** * __useClearSessionCookieMutation__ * * To run a mutation, you first call `useClearSessionCookieMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useClearSessionCookieMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [clearSessionCookieMutation, { data, loading, error }] = useClearSessionCookieMutation({ * variables: { * }, * }); */ export function useClearSessionCookieMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(ClearSessionCookieDocument, options); } export type ClearSessionCookieMutationHookResult = ReturnType; export type ClearSessionCookieMutationResult = Apollo.MutationResult; export type ClearSessionCookieMutationOptions = Apollo.BaseMutationOptions; export const CreateUserDocument = gql` mutation CreateUser($data: CreateUserInput!) { createUser(data: $data) { name password email } } `; export type CreateUserMutationFn = Apollo.MutationFunction; /** * __useCreateUserMutation__ * * To run a mutation, you first call `useCreateUserMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateUserMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [createUserMutation, { data, loading, error }] = useCreateUserMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useCreateUserMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateUserDocument, options); } export type CreateUserMutationHookResult = ReturnType; export type CreateUserMutationResult = Apollo.MutationResult; export type CreateUserMutationOptions = Apollo.BaseMutationOptions; export const LoginUserDocument = gql` mutation LoginUser($data: LoginInput!) { loginUser(data: $data) { message user { id name email } } } `; export type LoginUserMutationFn = Apollo.MutationFunction; /** * __useLoginUserMutation__ * * To run a mutation, you first call `useLoginUserMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useLoginUserMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [loginUserMutation, { data, loading, error }] = useLoginUserMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useLoginUserMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(LoginUserDocument, options); } export type LoginUserMutationHookResult = ReturnType; export type LoginUserMutationResult = Apollo.MutationResult; export type LoginUserMutationOptions = Apollo.BaseMutationOptions; export const LogoutUserDocument = gql` mutation LogoutUser { logoutUser } `; export type LogoutUserMutationFn = Apollo.MutationFunction; /** * __useLogoutUserMutation__ * * To run a mutation, you first call `useLogoutUserMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useLogoutUserMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [logoutUserMutation, { data, loading, error }] = useLogoutUserMutation({ * variables: { * }, * }); */ export function useLogoutUserMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(LogoutUserDocument, options); } export type LogoutUserMutationHookResult = ReturnType; export type LogoutUserMutationResult = Apollo.MutationResult; export type LogoutUserMutationOptions = Apollo.BaseMutationOptions; export const NewPasswordDocument = gql` mutation NewPassword($data: NewPasswordInput!) { setNewPassword(data: $data) } `; export type NewPasswordMutationFn = Apollo.MutationFunction; /** * __useNewPasswordMutation__ * * To run a mutation, you first call `useNewPasswordMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useNewPasswordMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [newPasswordMutation, { data, loading, error }] = useNewPasswordMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useNewPasswordMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(NewPasswordDocument, options); } export type NewPasswordMutationHookResult = ReturnType; export type NewPasswordMutationResult = Apollo.MutationResult; export type NewPasswordMutationOptions = Apollo.BaseMutationOptions; export const ResetPasswordDocument = gql` mutation ResetPassword($data: ResetPasswordInput!) { resetPassword(data: $data) } `; export type ResetPasswordMutationFn = Apollo.MutationFunction; /** * __useResetPasswordMutation__ * * To run a mutation, you first call `useResetPasswordMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useResetPasswordMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [resetPasswordMutation, { data, loading, error }] = useResetPasswordMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useResetPasswordMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(ResetPasswordDocument, options); } export type ResetPasswordMutationHookResult = ReturnType; export type ResetPasswordMutationResult = Apollo.MutationResult; export type ResetPasswordMutationOptions = Apollo.BaseMutationOptions; export const VerifyAccountDocument = gql` mutation VerifyAccount($data: VerificationInput!) { verifyAccount(data: $data) { user { isEmailVerified } message } } `; export type VerifyAccountMutationFn = Apollo.MutationFunction; /** * __useVerifyAccountMutation__ * * To run a mutation, you first call `useVerifyAccountMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVerifyAccountMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [verifyAccountMutation, { data, loading, error }] = useVerifyAccountMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useVerifyAccountMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(VerifyAccountDocument, options); } export type VerifyAccountMutationHookResult = ReturnType; export type VerifyAccountMutationResult = Apollo.MutationResult; export type VerifyAccountMutationOptions = Apollo.BaseMutationOptions; export const FindRecommendedChannelsDocument = gql` query FindRecommendedChannels { findRecommendedChannels { id name avatar isVerified stream { isLive } } } `; /** * __useFindRecommendedChannelsQuery__ * * To run a query within a React component, call `useFindRecommendedChannelsQuery` and pass it any options that fit your needs. * When your component renders, `useFindRecommendedChannelsQuery` 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 } = useFindRecommendedChannelsQuery({ * variables: { * }, * }); */ export function useFindRecommendedChannelsQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(FindRecommendedChannelsDocument, options); } export function useFindRecommendedChannelsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(FindRecommendedChannelsDocument, options); } export function useFindRecommendedChannelsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions) { const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions} return Apollo.useSuspenseQuery(FindRecommendedChannelsDocument, options); } export type FindRecommendedChannelsQueryHookResult = ReturnType; export type FindRecommendedChannelsLazyQueryHookResult = ReturnType; export type FindRecommendedChannelsSuspenseQueryHookResult = ReturnType; export type FindRecommendedChannelsQueryResult = Apollo.QueryResult; export const FindChannelByUsernameDocument = gql` query FindChannelByUsername($name: String!) { findChannelByUsername(name: $name) { name avatar displayName stream { title } } } `; /** * __useFindChannelByUsernameQuery__ * * To run a query within a React component, call `useFindChannelByUsernameQuery` and pass it any options that fit your needs. * When your component renders, `useFindChannelByUsernameQuery` 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 } = useFindChannelByUsernameQuery({ * variables: { * name: // value for 'name' * }, * }); */ export function useFindChannelByUsernameQuery(baseOptions: Apollo.QueryHookOptions & ({ variables: FindChannelByUsernameQueryVariables; skip?: boolean; } | { skip: boolean; }) ) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(FindChannelByUsernameDocument, options); } export function useFindChannelByUsernameLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(FindChannelByUsernameDocument, options); } export function useFindChannelByUsernameSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions) { const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions} return Apollo.useSuspenseQuery(FindChannelByUsernameDocument, options); } export type FindChannelByUsernameQueryHookResult = ReturnType; export type FindChannelByUsernameLazyQueryHookResult = ReturnType; export type FindChannelByUsernameSuspenseQueryHookResult = ReturnType; export type FindChannelByUsernameQueryResult = Apollo.QueryResult; export const FindNotificationByUserDocument = gql` query FindNotificationByUser { findNotificationByUser { createdAt id isRead text type updatedAt userId } } `; /** * __useFindNotificationByUserQuery__ * * To run a query within a React component, call `useFindNotificationByUserQuery` and pass it any options that fit your needs. * When your component renders, `useFindNotificationByUserQuery` 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 } = useFindNotificationByUserQuery({ * variables: { * }, * }); */ export function useFindNotificationByUserQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(FindNotificationByUserDocument, options); } export function useFindNotificationByUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(FindNotificationByUserDocument, options); } export function useFindNotificationByUserSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions) { const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions} return Apollo.useSuspenseQuery(FindNotificationByUserDocument, options); } export type FindNotificationByUserQueryHookResult = ReturnType; export type FindNotificationByUserLazyQueryHookResult = ReturnType; export type FindNotificationByUserSuspenseQueryHookResult = ReturnType; export type FindNotificationByUserQueryResult = Apollo.QueryResult; export const FindUnreadNotificationsCountDocument = gql` query FindUnreadNotificationsCount { findUnreadNotificationsCount } `; /** * __useFindUnreadNotificationsCountQuery__ * * To run a query within a React component, call `useFindUnreadNotificationsCountQuery` and pass it any options that fit your needs. * When your component renders, `useFindUnreadNotificationsCountQuery` 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 } = useFindUnreadNotificationsCountQuery({ * variables: { * }, * }); */ export function useFindUnreadNotificationsCountQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(FindUnreadNotificationsCountDocument, options); } export function useFindUnreadNotificationsCountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(FindUnreadNotificationsCountDocument, options); } export function useFindUnreadNotificationsCountSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions) { const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions} return Apollo.useSuspenseQuery(FindUnreadNotificationsCountDocument, options); } export type FindUnreadNotificationsCountQueryHookResult = ReturnType; export type FindUnreadNotificationsCountLazyQueryHookResult = ReturnType; export type FindUnreadNotificationsCountSuspenseQueryHookResult = ReturnType; export type FindUnreadNotificationsCountQueryResult = Apollo.QueryResult; export const FindProfileDocument = gql` query FindProfile { findProfile { avatar bio createdAt email id name updatedAt isEmailVerified isTotpEnabled isVerified displayName socialLink { title url position } } } `; /** * __useFindProfileQuery__ * * To run a query within a React component, call `useFindProfileQuery` and pass it any options that fit your needs. * When your component renders, `useFindProfileQuery` 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 } = useFindProfileQuery({ * variables: { * }, * }); */ export function useFindProfileQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(FindProfileDocument, options); } export function useFindProfileLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(FindProfileDocument, options); } export function useFindProfileSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions) { const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions} return Apollo.useSuspenseQuery(FindProfileDocument, options); } export type FindProfileQueryHookResult = ReturnType; export type FindProfileLazyQueryHookResult = ReturnType; export type FindProfileSuspenseQueryHookResult = ReturnType; export type FindProfileQueryResult = Apollo.QueryResult;