import { gql } from '@apollo/client' ; import * as Apollo from '@apollo/client' ; export type Maybe < T > = T | null | undefined ; export type Exact < T extends { [ key ] : unknown ; } > = { [ K in keyof T ] : T [ K ] ; } ; export type MakeOptional < T , K extends keyof T > = Omit < T , K > & { [ SubKey in K ] ? : Maybe < T [ SubKey ] > ; } ; export type MakeMaybe < T , K extends keyof T > = Omit < T , K > & { [ SubKey in K ] : Maybe < T [ SubKey ] > ; } ; const defaultOptions = { } ; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID : string ; String : string ; Boolean : boolean ; Int : number ; Float : number ; Date : any ; Cursor : any ; NonNegativeInt : any ; EmailAddress : any ; } ; export type Query = { __typename ? : 'Query' ; _ : Scalars [ 'Boolean' ] ; categories : Array < Category > ; category ? : Maybe < Category > ; post ? : Maybe < Post > ; posts : PostConnection ; user ? : Maybe < User > ; viewer ? : Maybe < User > ; } ; export type QueryCategoryArgs = { slug : Scalars [ 'String' ] ; } ; export type QueryPostArgs = { id : Scalars [ 'ID' ] ; } ; export type QueryPostsArgs = { first : Scalars [ 'NonNegativeInt' ] ; after ? : Maybe < Scalars [ 'Cursor' ] > ; } ; export type QueryUserArgs = { id : Scalars [ 'ID' ] ; } ; export type Mutation = { __typename ? : 'Mutation' ; _ : Scalars [ 'Boolean' ] ; addPostComment ? : Maybe < CommentEdge > ; addReaction : AddReactionPayload ; createPost ? : Maybe < Post > ; deletePost : Scalars [ 'Boolean' ] ; deleteViewerSessions : Scalars [ 'Boolean' ] ; linkViewerSocialAccount : User ; removePostComment : Scalars [ 'Boolean' ] ; removeReaction : RemoveReactionPayload ; unlinkViewerSocialAccount : User ; updateUser : User ; } ; export type MutationAddPostCommentArgs = { input : AddPostCommentInput ; } ; export type MutationAddReactionArgs = { reactableId : Scalars [ 'ID' ] ; type : ReactionType ; } ; export type MutationCreatePostArgs = { input : PostInput ; } ; export type MutationDeletePostArgs = { id : Scalars [ 'ID' ] ; } ; export type MutationLinkViewerSocialAccountArgs = { socialAccountType : SocialAccountType ; token : Scalars [ 'String' ] ; } ; export type MutationRemovePostCommentArgs = { id : Scalars [ 'ID' ] ; } ; export type MutationRemoveReactionArgs = { reactableId : Scalars [ 'ID' ] ; } ; export type MutationUnlinkViewerSocialAccountArgs = { socialAccountType : SocialAccountType ; } ; export type MutationUpdateUserArgs = { id : Scalars [ 'ID' ] ; input : UserInput ; } ; export enum SocialAccountType { Facebook = 'FACEBOOK' , Google = 'GOOGLE' } export type Session = { __typename ? : 'Session' ; id : Scalars [ 'ID' ] ; browser ? : Maybe < Scalars [ 'String' ] > ; platform ? : Maybe < Scalars [ 'String' ] > ; os ? : Maybe < Scalars [ 'String' ] > ; createdAt : Scalars [ 'Date' ] ; isCurrent : Scalars [ 'Boolean' ] ; } ; export type SessionEdge = { __typename ? : 'SessionEdge' ; node : Session ; cursor : Scalars [ 'Cursor' ] ; } ; export type SessionConnection = Connection & { __typename ? : 'SessionConnection' ; pageInfo : PageInfo ; edges : Array < SessionEdge > ; } ; export type Category = { __typename ? : 'Category' ; id : Scalars [ 'ID' ] ; name : Scalars [ 'String' ] ; slug : Scalars [ 'String' ] ; posts : PostConnection ; } ; export type CategoryPostsArgs = { first : Scalars [ 'NonNegativeInt' ] ; after ? : Maybe < Scalars [ 'Cursor' ] > ; } ; export type AddPostCommentInput = { postId : Scalars [ 'ID' ] ; text : Scalars [ 'String' ] ; } ; export type Comment = Reactable & { __typename ? : 'Comment' ; id : Scalars [ 'ID' ] ; text : Scalars [ 'String' ] ; createdAt : Scalars [ 'Date' ] ; commenter ? : Maybe < User > ; reactionsCount : ReactionsCount ; viewerReaction ? : Maybe < ReactionType > ; } ; export type CommentEdge = { __typename ? : 'CommentEdge' ; node : Comment ; cursor : Scalars [ 'Cursor' ] ; } ; export type CommentConnection = Connection & { __typename ? : 'CommentConnection' ; pageInfo : PageInfo ; edges : Array < CommentEdge > ; } ; export type GraphImage = { __typename ? : 'GraphImage' ; width : Scalars [ 'NonNegativeInt' ] ; height : Scalars [ 'NonNegativeInt' ] ; url : Scalars [ 'String' ] ; } ; export type GraphMedia = { __typename ? : 'GraphMedia' ; id : Scalars [ 'ID' ] ; thumbnail : GraphImage ; smallImage : GraphImage ; standardImage : GraphImage ; } ; export type Post = Reactable & { __typename ? : 'Post' ; id : Scalars [ 'ID' ] ; title : Scalars [ 'String' ] ; createdAt : Scalars [ 'Date' ] ; media ? : Maybe < GraphMedia > ; author ? : Maybe < User > ; viewerReaction ? : Maybe < ReactionType > ; reactionsCount : ReactionsCount ; commentsCount : Scalars [ 'NonNegativeInt' ] ; comments : CommentConnection ; } ; export type PostCommentsArgs = { first : Scalars [ 'NonNegativeInt' ] ; after ? : Maybe < Scalars [ 'Cursor' ] > ; } ; export type PostEdge = { __typename ? : 'PostEdge' ; node : Post ; cursor : Scalars [ 'Cursor' ] ; } ; export type PostConnection = Connection & { __typename ? : 'PostConnection' ; pageInfo : PageInfo ; edges : Array < PostEdge > ; } ; export type PostInput = { title : Scalars [ 'String' ] ; categoryId : Scalars [ 'ID' ] ; mediaId : Scalars [ 'ID' ] ; } ; export enum ReactionType { Like = 'LIKE' , Dislike = 'DISLIKE' } export type AddReactionPayload = { __typename ? : 'AddReactionPayload' ; reactableId : Scalars [ 'ID' ] ; viewerReaction : ReactionType ; } ; export type RemoveReactionPayload = { __typename ? : 'RemoveReactionPayload' ; reactableId : Scalars [ 'ID' ] ; viewerReaction ? : Maybe < ReactionType > ; } ; export type Reactable = { id : Scalars [ 'ID' ] ; viewerReaction ? : Maybe < ReactionType > ; reactionsCount : ReactionsCount ; } ; export type ReactionsCount = { __typename ? : 'ReactionsCount' ; likesCount : Scalars [ 'NonNegativeInt' ] ; dislikesCount : Scalars [ 'NonNegativeInt' ] ; } ; export type Connection = { pageInfo : PageInfo ; } ; export type PageInfo = { __typename ? : 'PageInfo' ; endCursor ? : Maybe < Scalars [ 'Cursor' ] > ; hasNextPage : Scalars [ 'Boolean' ] ; } ; export type UserInput = { displayName : Scalars [ 'String' ] ; email : Scalars [ 'EmailAddress' ] ; } ; export type User = { __typename ? : 'User' ; id : Scalars [ 'ID' ] ; displayName : Scalars [ 'String' ] ; email : Scalars [ 'EmailAddress' ] ; thumbnailUrl ? : Maybe < Scalars [ 'String' ] > ; googleProfileId ? : Maybe < Scalars [ 'String' ] > ; facebookProfileId ? : Maybe < Scalars [ 'String' ] > ; postsCount : Scalars [ 'NonNegativeInt' ] ; posts : PostConnection ; sessions : SessionConnection ; } ; export type UserPostsArgs = { first : Scalars [ 'NonNegativeInt' ] ; after ? : Maybe < Scalars [ 'Cursor' ] > ; } ; export type UserSessionsArgs = { first : Scalars [ 'NonNegativeInt' ] ; after ? : Maybe < Scalars [ 'Cursor' ] > ; } ; export type GetViewerQueryVariables = Exact < { [ key ] : never ; } > ; export type GetViewerQuery = ( { __typename ? : 'Query' ; } & { viewer ? : Maybe < ( { __typename ? : 'User' ; } & Pick < User , 'id' | 'displayName' | 'email' | 'thumbnailUrl' > ) > ; } ) ; export type GetCategoriesQueryVariables = Exact < { [ key ] : never ; } > ; export type GetCategoriesQuery = ( { __typename ? : 'Query' ; } & { categories : Array < ( { __typename ? : 'Category' ; } & Pick < Category , 'id' | 'name' | 'slug' > ) > ; } ) ; export type CommentList_CommentEdgeFragment = ( { __typename ? : 'CommentEdge' ; } & Pick < CommentEdge , 'cursor' > & { node : ( { __typename ? : 'Comment' ; } & CommentListItem_CommentFragment ) ; } ) ; export type CommentList_PageInfoFragment = ( { __typename ? : 'PageInfo' ; } & Pick < PageInfo , 'hasNextPage' > ) ; export type CommentListItem_CommentFragment = ( { __typename ? : 'Comment' ; } & Pick < Comment , 'id' | 'text' | 'createdAt' > & { commenter ? : Maybe < ( { __typename ? : 'User' ; } & Pick < User , 'id' | 'displayName' | 'thumbnailUrl' > ) > ; } & CommentListItemReactionActions_CommentFragment ) ; export type RemovePostCommentMutationVariables = Exact < { id : Scalars [ 'ID' ] ; } > ; export type RemovePostCommentMutation = ( { __typename ? : 'Mutation' ; } & Pick < Mutation , 'removePostComment' > ) ; export type CommentListItemReactionActions_CommentFragment = ( { __typename ? : 'Comment' ; } & ReactionActions_Reactable_Comment_Fragment ) ; export type CreatePostMutationVariables = Exact < { title : Scalars [ 'String' ] ; categoryId : Scalars [ 'ID' ] ; mediaId : Scalars [ 'ID' ] ; } > ; export type CreatePostMutation = ( { __typename ? : 'Mutation' ; } & { createPost ? : Maybe < ( { __typename ? : 'Post' ; } & Pick < Post , 'id' > ) > ; } ) ; export type Post_PostFragment = ( { __typename ? : 'Post' ; } & Pick < Post , 'title' | 'createdAt' | 'commentsCount' > & { author ? : Maybe < ( { __typename ? : 'User' ; } & Pick < User , 'id' | 'displayName' | 'thumbnailUrl' > ) > ; media ? : Maybe < ( { __typename ? : 'GraphMedia' ; } & Pick < GraphMedia , 'id' > & { standardImage : ( { __typename ? : 'GraphImage' ; } & Pick < GraphImage , 'width' | 'height' | 'url' > ) ; } ) > ; } & PostReactionActions_PostFragment ) ; export type DeletePostMutationVariables = Exact < { postId : Scalars [ 'ID' ] ; } > ; export type DeletePostMutation = ( { __typename ? : 'Mutation' ; } & Pick < Mutation , 'deletePost' > ) ; export type PostList_PostConnectionFragment = ( { __typename ? : 'PostConnection' ; } & { edges : Array < ( { __typename ? : 'PostEdge' ; } & Pick < PostEdge , 'cursor' > & { node : ( { __typename ? : 'Post' ; } & Post_PostFragment ) ; } ) > ; pageInfo : ( { __typename ? : 'PageInfo' ; } & Pick < PageInfo , 'endCursor' | 'hasNextPage' > ) ; } ) ; export type PostReactionActions_PostFragment = ( { __typename ? : 'Post' ; } & ReactionActions_Reactable_Post_Fragment ) ; export type PostSeo_PostFragment = ( { __typename ? : 'Post' ; } & Pick < Post , 'id' | 'title' > & { media ? : Maybe < ( { __typename ? : 'GraphMedia' ; } & Pick < GraphMedia , 'id' > & { smallImage : ( { __typename ? : 'GraphImage' ; } & Pick < GraphImage , 'height' | 'width' | 'url' > ) ; standardImage : ( { __typename ? : 'GraphImage' ; } & Pick < GraphImage , 'height' | 'width' | 'url' > ) ; } ) > ; } ) ; type ReactionActions_Reactable_Comment_Fragment = ( { __typename ? : 'Comment' ; } & Pick < Comment , 'id' | 'viewerReaction' > & { reactionsCount : ( { __typename ? : 'ReactionsCount' ; } & Pick < ReactionsCount , 'likesCount' | 'dislikesCount' > ) ; } ) ; type ReactionActions_Reactable_Post_Fragment = ( { __typename ? : 'Post' ; } & Pick < Post , 'id' | 'viewerReaction' > & { reactionsCount : ( { __typename ? : 'ReactionsCount' ; } & Pick < ReactionsCount , 'likesCount' | 'dislikesCount' > ) ; } ) ; export type ReactionActions_ReactableFragment = ReactionActions_Reactable_Comment_Fragment | ReactionActions_Reactable_Post_Fragment ; export type AddReactionMutationVariables = Exact < { reactableId : Scalars [ 'ID' ] ; type : ReactionType ; } > ; export type AddReactionMutation = ( { __typename ? : 'Mutation' ; } & { addReaction : ( { __typename ? : 'AddReactionPayload' ; } & Pick < AddReactionPayload , 'reactableId' | 'viewerReaction' > ) ; } ) ; export type RemoveReactionMutationVariables = Exact < { reactableId : Scalars [ 'ID' ] ; } > ; export type RemoveReactionMutation = ( { __typename ? : 'Mutation' ; } & { removeReaction : ( { __typename ? : 'RemoveReactionPayload' ; } & Pick < RemoveReactionPayload , 'reactableId' | 'viewerReaction' > ) ; } ) ; export type UserProfileHeader_UserFragment = ( { __typename ? : 'User' ; } & Pick < User , 'id' | 'thumbnailUrl' | 'displayName' > ) ; export type UserProfileLayout_UserFragment = ( { __typename ? : 'User' ; } & Pick < User , 'postsCount' > & UserProfileSeo_UserFragment & UserProfileHeader_UserFragment ) ; export type UserProfileSeo_UserFragment = ( { __typename ? : 'User' ; } & Pick < User , 'id' | 'displayName' | 'thumbnailUrl' > ) ; export type UserSettingsForm_UserFragment = ( { __typename ? : 'User' ; } & Pick < User , 'id' | 'displayName' | 'email' > ) ; export type UpdateUserMutationVariables = Exact < { id : Scalars [ 'ID' ] ; input : UserInput ; } > ; export type UpdateUserMutation = ( { __typename ? : 'Mutation' ; } & { updateUser : ( { __typename ? : 'User' ; } & UserSettingsForm_UserFragment ) ; } ) ; export type UserSocialAccountLinker_UserFragment = ( { __typename ? : 'User' ; } & Pick < User , 'id' | 'googleProfileId' | 'facebookProfileId' > ) ; export type LinkViewerSocialAccountMutationVariables = Exact < { socialAccountType : SocialAccountType ; token : Scalars [ 'String' ] ; } > ; export type LinkViewerSocialAccountMutation = ( { __typename ? : 'Mutation' ; } & { linkViewerSocialAccount : ( { __typename ? : 'User' ; } & UserSocialAccountLinker_UserFragment ) ; } ) ; export type UnlinkViewerSocialAccountMutationVariables = Exact < { socialAccountType : SocialAccountType ; } > ; export type UnlinkViewerSocialAccountMutation = ( { __typename ? : 'Mutation' ; } & { unlinkViewerSocialAccount : ( { __typename ? : 'User' ; } & UserSocialAccountLinker_UserFragment ) ; } ) ; export type UserSocialAccounts_UserFragment = ( { __typename ? : 'User' ; } & UserSocialAccountLinker_UserFragment ) ; export type PostView_PostFragment = ( { __typename ? : 'Post' ; } & { comments : ( { __typename ? : 'CommentConnection' ; } & { edges : Array < ( { __typename ? : 'CommentEdge' ; } & CommentList_CommentEdgeFragment ) > ; pageInfo : ( { __typename ? : 'PageInfo' ; } & Pick < PageInfo , 'endCursor' > & CommentList_PageInfoFragment ) ; } ) ; } & PostSeo_PostFragment & Post_PostFragment ) ; export type GetPostQueryVariables = Exact < { id : Scalars [ 'ID' ] ; commentsAfter ? : Maybe < Scalars [ 'Cursor' ] > ; } > ; export type GetPostQuery = ( { __typename ? : 'Query' ; } & { post ? : Maybe < ( { __typename ? : 'Post' ; } & PostView_PostFragment ) > ; } ) ; export type AddPostCommentMutationVariables = Exact < { postId : Scalars [ 'ID' ] ; text : Scalars [ 'String' ] ; } > ; export type AddPostCommentMutation = ( { __typename ? : 'Mutation' ; } & { addPostComment ? : Maybe < ( { __typename ? : 'CommentEdge' ; } & CommentList_CommentEdgeFragment ) > ; } ) ; export type GetCategoryWithPostsQueryVariables = Exact < { slug : Scalars [ 'String' ] ; after ? : Maybe < Scalars [ 'Cursor' ] > ; } > ; export type GetCategoryWithPostsQuery = ( { __typename ? : 'Query' ; } & { category ? : Maybe < ( { __typename ? : 'Category' ; } & Pick < Category , 'id' | 'name' > & { posts : ( { __typename ? : 'PostConnection' ; } & PostList_PostConnectionFragment ) ; } ) > ; } ) ; export type GetUserWithPostsQueryVariables = Exact < { id : Scalars [ 'ID' ] ; after ? : Maybe < Scalars [ 'Cursor' ] > ; } > ; export type GetUserWithPostsQuery = ( { __typename ? : 'Query' ; } & { user ? : Maybe < ( { __typename ? : 'User' ; } & { posts : ( { __typename ? : 'PostConnection' ; } & PostList_PostConnectionFragment ) ; } & UserProfileLayout_UserFragment ) > ; } ) ; export type GetUserWithSessionsQueryVariables = Exact < { id : Scalars [ 'ID' ] ; after ? : Maybe < Scalars [ 'Cursor' ] > ; } > ; export type GetUserWithSessionsQuery = ( { __typename ? : 'Query' ; } & { user ? : Maybe < ( { __typename ? : 'User' ; } & { sessions : ( { __typename ? : 'SessionConnection' ; } & { pageInfo : ( { __typename ? : 'PageInfo' ; } & Pick < PageInfo , 'hasNextPage' | 'endCursor' > ) ; edges : Array < ( { __typename ? : 'SessionEdge' ; } & { node : ( { __typename ? : 'Session' ; } & Pick < Session , 'id' | 'browser' | 'os' | 'platform' | 'createdAt' | 'isCurrent' > ) ; } ) > ; } ) ; } & UserProfileLayout_UserFragment ) > ; } ) ; export type DeleteViewerSessionsMutationVariables = Exact < { [ key ] : never ; } > ; export type DeleteViewerSessionsMutation = ( { __typename ? : 'Mutation' ; } & Pick < Mutation , 'deleteViewerSessions' > ) ; export type GetUserQueryVariables = Exact < { id : Scalars [ 'ID' ] ; } > ; export type GetUserQuery = ( { __typename ? : 'Query' ; } & { user ? : Maybe < ( { __typename ? : 'User' ; } & UserProfileLayout_UserFragment & UserSettingsForm_UserFragment & UserSocialAccounts_UserFragment ) > ; } ) ; export const ReactionActions_ReactableFragmentDoc = gql `
    fragment ReactionActions_reactable on Reactable {
  id
  viewerReaction
  reactionsCount {
    likesCount
    dislikesCount
  }
}
    ` ; export const PostReactionActions_PostFragmentDoc = gql `
    fragment PostReactionActions_post on Post {
  ...ReactionActions_reactable
}
    ${ ReactionActions_ReactableFragmentDoc }` ; export const Post_PostFragmentDoc = gql `
    fragment Post_post on Post {
  ...PostReactionActions_post
  title
  createdAt
  author {
    id
    displayName
    thumbnailUrl
  }
  media {
    id
    standardImage {
      width
      height
      url
    }
  }
  commentsCount
}
    ${ PostReactionActions_PostFragmentDoc }` ; export const PostList_PostConnectionFragmentDoc = gql `
    fragment PostList_postConnection on PostConnection {
  edges {
    cursor
    node {
      ...Post_post
    }
  }
  pageInfo {
    endCursor
    hasNextPage
  }
}
    ${ Post_PostFragmentDoc }` ; export const UserProfileSeo_UserFragmentDoc = gql `
    fragment UserProfileSeo_user on User {
  id
  displayName
  thumbnailUrl
}
    ` ; export const UserProfileHeader_UserFragmentDoc = gql `
    fragment UserProfileHeader_user on User {
  id
  thumbnailUrl
  displayName
}
    ` ; export const UserProfileLayout_UserFragmentDoc = gql `
    fragment UserProfileLayout_user on User {
  ...UserProfileSeo_user
  ...UserProfileHeader_user
  postsCount
}
    ${ UserProfileSeo_UserFragmentDoc }
${ UserProfileHeader_UserFragmentDoc }` ; export const UserSettingsForm_UserFragmentDoc = gql `
    fragment UserSettingsForm_user on User {
  id
  displayName
  email
}
    ` ; export const UserSocialAccountLinker_UserFragmentDoc = gql `
    fragment UserSocialAccountLinker_user on User {
  id
  googleProfileId
  facebookProfileId
}
    ` ; export const UserSocialAccounts_UserFragmentDoc = gql `
    fragment UserSocialAccounts_user on User {
  ...UserSocialAccountLinker_user
}
    ${ UserSocialAccountLinker_UserFragmentDoc }` ; export const PostSeo_PostFragmentDoc = gql `
    fragment PostSeo_post on Post {
  id
  title
  media {
    id
    smallImage {
      height
      width
      url
    }
    standardImage {
      height
      width
      url
    }
  }
}
    ` ; export const CommentListItemReactionActions_CommentFragmentDoc = gql `
    fragment CommentListItemReactionActions_comment on Comment {
  ...ReactionActions_reactable
}
    ${ ReactionActions_ReactableFragmentDoc }` ; export const CommentListItem_CommentFragmentDoc = gql `
    fragment CommentListItem_comment on Comment {
  id
  text
  createdAt
  commenter {
    id
    displayName
    thumbnailUrl
  }
  ...CommentListItemReactionActions_comment
}
    ${ CommentListItemReactionActions_CommentFragmentDoc }` ; export const CommentList_CommentEdgeFragmentDoc = gql `
    fragment CommentList_commentEdge on CommentEdge {
  cursor
  node {
    ...CommentListItem_comment
  }
}
    ${ CommentListItem_CommentFragmentDoc }` ; export const CommentList_PageInfoFragmentDoc = gql `
    fragment CommentList_pageInfo on PageInfo {
  hasNextPage
}
    ` ; export const PostView_PostFragmentDoc = gql `
    fragment PostView_post on Post {
  ...PostSeo_post
  ...Post_post
  comments(first: 10, after: $commentsAfter) {
    edges {
      ...CommentList_commentEdge
    }
    pageInfo {
      endCursor
      ...CommentList_pageInfo
    }
  }
}
    ${ PostSeo_PostFragmentDoc }
${ Post_PostFragmentDoc }
${ CommentList_CommentEdgeFragmentDoc }
${ CommentList_PageInfoFragmentDoc }` ; export const GetViewerDocument = gql `
    query GetViewer {
  viewer {
    id
    displayName
    email
    thumbnailUrl
  }
}
    ` ; param baseOptions example export function useGetViewerQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useQuery < GetViewerQuery , GetViewerQueryVariables > ( GetViewerDocument , options ) ; } export function useGetViewerLazyQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useLazyQuery < GetViewerQuery , GetViewerQueryVariables > ( GetViewerDocument , options ) ; } export type GetViewerQueryHookResult = ReturnType < typeof useGetViewerQuery > ; export type GetViewerLazyQueryHookResult = ReturnType < typeof useGetViewerLazyQuery > ; export type GetViewerQueryResult = Apollo . QueryResult < GetViewerQuery , GetViewerQueryVariables > ; export const GetCategoriesDocument = gql `
    query GetCategories {
  categories {
    id
    name
    slug
  }
}
    ` ; param baseOptions example export function useGetCategoriesQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useQuery < GetCategoriesQuery , GetCategoriesQueryVariables > ( GetCategoriesDocument , options ) ; } export function useGetCategoriesLazyQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useLazyQuery < GetCategoriesQuery , GetCategoriesQueryVariables > ( GetCategoriesDocument , options ) ; } export type GetCategoriesQueryHookResult = ReturnType < typeof useGetCategoriesQuery > ; export type GetCategoriesLazyQueryHookResult = ReturnType < typeof useGetCategoriesLazyQuery > ; export type GetCategoriesQueryResult = Apollo . QueryResult < GetCategoriesQuery , GetCategoriesQueryVariables > ; export const RemovePostCommentDocument = gql `
    mutation RemovePostComment($id: ID!) {
  removePostComment(id: $id)
}
    ` ; export type RemovePostCommentMutationFn = Apollo . MutationFunction < RemovePostCommentMutation , RemovePostCommentMutationVariables > ; param baseOptions example export function useRemovePostCommentMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < RemovePostCommentMutation , RemovePostCommentMutationVariables > ( RemovePostCommentDocument , options ) ; } export type RemovePostCommentMutationHookResult = ReturnType < typeof useRemovePostCommentMutation > ; export type RemovePostCommentMutationResult = Apollo . MutationResult < RemovePostCommentMutation > ; export type RemovePostCommentMutationOptions = Apollo . BaseMutationOptions < RemovePostCommentMutation , RemovePostCommentMutationVariables > ; export const CreatePostDocument = gql `
    mutation CreatePost($title: String!, $categoryId: ID!, $mediaId: ID!) {
  createPost(input: {title: $title, categoryId: $categoryId, mediaId: $mediaId}) {
    id
  }
}
    ` ; export type CreatePostMutationFn = Apollo . MutationFunction < CreatePostMutation , CreatePostMutationVariables > ; param baseOptions example export function useCreatePostMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < CreatePostMutation , CreatePostMutationVariables > ( CreatePostDocument , options ) ; } export type CreatePostMutationHookResult = ReturnType < typeof useCreatePostMutation > ; export type CreatePostMutationResult = Apollo . MutationResult < CreatePostMutation > ; export type CreatePostMutationOptions = Apollo . BaseMutationOptions < CreatePostMutation , CreatePostMutationVariables > ; export const DeletePostDocument = gql `
    mutation DeletePost($postId: ID!) {
  deletePost(id: $postId)
}
    ` ; export type DeletePostMutationFn = Apollo . MutationFunction < DeletePostMutation , DeletePostMutationVariables > ; param baseOptions example export function useDeletePostMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < DeletePostMutation , DeletePostMutationVariables > ( DeletePostDocument , options ) ; } export type DeletePostMutationHookResult = ReturnType < typeof useDeletePostMutation > ; export type DeletePostMutationResult = Apollo . MutationResult < DeletePostMutation > ; export type DeletePostMutationOptions = Apollo . BaseMutationOptions < DeletePostMutation , DeletePostMutationVariables > ; export const AddReactionDocument = gql `
    mutation AddReaction($reactableId: ID!, $type: ReactionType!) {
  addReaction(reactableId: $reactableId, type: $type) {
    reactableId
    viewerReaction
  }
}
    ` ; export type AddReactionMutationFn = Apollo . MutationFunction < AddReactionMutation , AddReactionMutationVariables > ; param baseOptions example export function useAddReactionMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < AddReactionMutation , AddReactionMutationVariables > ( AddReactionDocument , options ) ; } export type AddReactionMutationHookResult = ReturnType < typeof useAddReactionMutation > ; export type AddReactionMutationResult = Apollo . MutationResult < AddReactionMutation > ; export type AddReactionMutationOptions = Apollo . BaseMutationOptions < AddReactionMutation , AddReactionMutationVariables > ; export const RemoveReactionDocument = gql `
    mutation RemoveReaction($reactableId: ID!) {
  removeReaction(reactableId: $reactableId) {
    reactableId
    viewerReaction
  }
}
    ` ; export type RemoveReactionMutationFn = Apollo . MutationFunction < RemoveReactionMutation , RemoveReactionMutationVariables > ; param baseOptions example export function useRemoveReactionMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < RemoveReactionMutation , RemoveReactionMutationVariables > ( RemoveReactionDocument , options ) ; } export type RemoveReactionMutationHookResult = ReturnType < typeof useRemoveReactionMutation > ; export type RemoveReactionMutationResult = Apollo . MutationResult < RemoveReactionMutation > ; export type RemoveReactionMutationOptions = Apollo . BaseMutationOptions < RemoveReactionMutation , RemoveReactionMutationVariables > ; export const UpdateUserDocument = gql `
    mutation UpdateUser($id: ID!, $input: UserInput!) {
  updateUser(id: $id, input: $input) {
    ...UserSettingsForm_user
  }
}
    ${ UserSettingsForm_UserFragmentDoc }` ; export type UpdateUserMutationFn = Apollo . MutationFunction < UpdateUserMutation , UpdateUserMutationVariables > ; param baseOptions example export function useUpdateUserMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < UpdateUserMutation , UpdateUserMutationVariables > ( UpdateUserDocument , options ) ; } export type UpdateUserMutationHookResult = ReturnType < typeof useUpdateUserMutation > ; export type UpdateUserMutationResult = Apollo . MutationResult < UpdateUserMutation > ; export type UpdateUserMutationOptions = Apollo . BaseMutationOptions < UpdateUserMutation , UpdateUserMutationVariables > ; export const LinkViewerSocialAccountDocument = gql `
    mutation LinkViewerSocialAccount($socialAccountType: SocialAccountType!, $token: String!) {
  linkViewerSocialAccount(socialAccountType: $socialAccountType, token: $token) {
    ...UserSocialAccountLinker_user
  }
}
    ${ UserSocialAccountLinker_UserFragmentDoc }` ; export type LinkViewerSocialAccountMutationFn = Apollo . MutationFunction < LinkViewerSocialAccountMutation , LinkViewerSocialAccountMutationVariables > ; param baseOptions example export function useLinkViewerSocialAccountMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < LinkViewerSocialAccountMutation , LinkViewerSocialAccountMutationVariables > ( LinkViewerSocialAccountDocument , options ) ; } export type LinkViewerSocialAccountMutationHookResult = ReturnType < typeof useLinkViewerSocialAccountMutation > ; export type LinkViewerSocialAccountMutationResult = Apollo . MutationResult < LinkViewerSocialAccountMutation > ; export type LinkViewerSocialAccountMutationOptions = Apollo . BaseMutationOptions < LinkViewerSocialAccountMutation , LinkViewerSocialAccountMutationVariables > ; export const UnlinkViewerSocialAccountDocument = gql `
    mutation UnlinkViewerSocialAccount($socialAccountType: SocialAccountType!) {
  unlinkViewerSocialAccount(socialAccountType: $socialAccountType) {
    ...UserSocialAccountLinker_user
  }
}
    ${ UserSocialAccountLinker_UserFragmentDoc }` ; export type UnlinkViewerSocialAccountMutationFn = Apollo . MutationFunction < UnlinkViewerSocialAccountMutation , UnlinkViewerSocialAccountMutationVariables > ; param baseOptions example export function useUnlinkViewerSocialAccountMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < UnlinkViewerSocialAccountMutation , UnlinkViewerSocialAccountMutationVariables > ( UnlinkViewerSocialAccountDocument , options ) ; } export type UnlinkViewerSocialAccountMutationHookResult = ReturnType < typeof useUnlinkViewerSocialAccountMutation > ; export type UnlinkViewerSocialAccountMutationResult = Apollo . MutationResult < UnlinkViewerSocialAccountMutation > ; export type UnlinkViewerSocialAccountMutationOptions = Apollo . BaseMutationOptions < UnlinkViewerSocialAccountMutation , UnlinkViewerSocialAccountMutationVariables > ; export const GetPostDocument = gql `
    query GetPost($id: ID!, $commentsAfter: Cursor) {
  post(id: $id) {
    ...PostView_post
  }
}
    ${ PostView_PostFragmentDoc }` ; param baseOptions example export function useGetPostQuery ( baseOptions ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useQuery < GetPostQuery , GetPostQueryVariables > ( GetPostDocument , options ) ; } export function useGetPostLazyQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useLazyQuery < GetPostQuery , GetPostQueryVariables > ( GetPostDocument , options ) ; } export type GetPostQueryHookResult = ReturnType < typeof useGetPostQuery > ; export type GetPostLazyQueryHookResult = ReturnType < typeof useGetPostLazyQuery > ; export type GetPostQueryResult = Apollo . QueryResult < GetPostQuery , GetPostQueryVariables > ; export const AddPostCommentDocument = gql `
    mutation AddPostComment($postId: ID!, $text: String!) {
  addPostComment(input: {postId: $postId, text: $text}) {
    ...CommentList_commentEdge
  }
}
    ${ CommentList_CommentEdgeFragmentDoc }` ; export type AddPostCommentMutationFn = Apollo . MutationFunction < AddPostCommentMutation , AddPostCommentMutationVariables > ; param baseOptions example export function useAddPostCommentMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < AddPostCommentMutation , AddPostCommentMutationVariables > ( AddPostCommentDocument , options ) ; } export type AddPostCommentMutationHookResult = ReturnType < typeof useAddPostCommentMutation > ; export type AddPostCommentMutationResult = Apollo . MutationResult < AddPostCommentMutation > ; export type AddPostCommentMutationOptions = Apollo . BaseMutationOptions < AddPostCommentMutation , AddPostCommentMutationVariables > ; export const GetCategoryWithPostsDocument = gql `
    query GetCategoryWithPosts($slug: String!, $after: Cursor) {
  category(slug: $slug) {
    id
    name
    posts(first: 10, after: $after) {
      ...PostList_postConnection
    }
  }
}
    ${ PostList_PostConnectionFragmentDoc }` ; param baseOptions example export function useGetCategoryWithPostsQuery ( baseOptions ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useQuery < GetCategoryWithPostsQuery , GetCategoryWithPostsQueryVariables > ( GetCategoryWithPostsDocument , options ) ; } export function useGetCategoryWithPostsLazyQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useLazyQuery < GetCategoryWithPostsQuery , GetCategoryWithPostsQueryVariables > ( GetCategoryWithPostsDocument , options ) ; } export type GetCategoryWithPostsQueryHookResult = ReturnType < typeof useGetCategoryWithPostsQuery > ; export type GetCategoryWithPostsLazyQueryHookResult = ReturnType < typeof useGetCategoryWithPostsLazyQuery > ; export type GetCategoryWithPostsQueryResult = Apollo . QueryResult < GetCategoryWithPostsQuery , GetCategoryWithPostsQueryVariables > ; export const GetUserWithPostsDocument = gql `
    query GetUserWithPosts($id: ID!, $after: Cursor) {
  user(id: $id) {
    ...UserProfileLayout_user
    posts(first: 10, after: $after) {
      ...PostList_postConnection
    }
  }
}
    ${ UserProfileLayout_UserFragmentDoc }
${ PostList_PostConnectionFragmentDoc }` ; param baseOptions example export function useGetUserWithPostsQuery ( baseOptions ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useQuery < GetUserWithPostsQuery , GetUserWithPostsQueryVariables > ( GetUserWithPostsDocument , options ) ; } export function useGetUserWithPostsLazyQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useLazyQuery < GetUserWithPostsQuery , GetUserWithPostsQueryVariables > ( GetUserWithPostsDocument , options ) ; } export type GetUserWithPostsQueryHookResult = ReturnType < typeof useGetUserWithPostsQuery > ; export type GetUserWithPostsLazyQueryHookResult = ReturnType < typeof useGetUserWithPostsLazyQuery > ; export type GetUserWithPostsQueryResult = Apollo . QueryResult < GetUserWithPostsQuery , GetUserWithPostsQueryVariables > ; export const GetUserWithSessionsDocument = gql `
    query GetUserWithSessions($id: ID!, $after: Cursor) {
  user(id: $id) {
    ...UserProfileLayout_user
    sessions(first: 10, after: $after) {
      pageInfo {
        hasNextPage
        endCursor
      }
      edges {
        node {
          id
          browser
          os
          platform
          createdAt
          isCurrent
        }
      }
    }
  }
}
    ${ UserProfileLayout_UserFragmentDoc }` ; param baseOptions example export function useGetUserWithSessionsQuery ( baseOptions ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useQuery < GetUserWithSessionsQuery , GetUserWithSessionsQueryVariables > ( GetUserWithSessionsDocument , options ) ; } export function useGetUserWithSessionsLazyQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useLazyQuery < GetUserWithSessionsQuery , GetUserWithSessionsQueryVariables > ( GetUserWithSessionsDocument , options ) ; } export type GetUserWithSessionsQueryHookResult = ReturnType < typeof useGetUserWithSessionsQuery > ; export type GetUserWithSessionsLazyQueryHookResult = ReturnType < typeof useGetUserWithSessionsLazyQuery > ; export type GetUserWithSessionsQueryResult = Apollo . QueryResult < GetUserWithSessionsQuery , GetUserWithSessionsQueryVariables > ; export const DeleteViewerSessionsDocument = gql `
    mutation DeleteViewerSessions {
  deleteViewerSessions
}
    ` ; export type DeleteViewerSessionsMutationFn = Apollo . MutationFunction < DeleteViewerSessionsMutation , DeleteViewerSessionsMutationVariables > ; param baseOptions example export function useDeleteViewerSessionsMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < DeleteViewerSessionsMutation , DeleteViewerSessionsMutationVariables > ( DeleteViewerSessionsDocument , options ) ; } export type DeleteViewerSessionsMutationHookResult = ReturnType < typeof useDeleteViewerSessionsMutation > ; export type DeleteViewerSessionsMutationResult = Apollo . MutationResult < DeleteViewerSessionsMutation > ; export type DeleteViewerSessionsMutationOptions = Apollo . BaseMutationOptions < DeleteViewerSessionsMutation , DeleteViewerSessionsMutationVariables > ; export const GetUserDocument = gql `
    query GetUser($id: ID!) {
  user(id: $id) {
    ...UserProfileLayout_user
    ...UserSettingsForm_user
    ...UserSocialAccounts_user
  }
}
    ${ UserProfileLayout_UserFragmentDoc }
${ UserSettingsForm_UserFragmentDoc }
${ UserSocialAccounts_UserFragmentDoc }` ; param baseOptions example export function useGetUserQuery ( baseOptions ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useQuery < GetUserQuery , GetUserQueryVariables > ( GetUserDocument , options ) ; } export function useGetUserLazyQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useLazyQuery < GetUserQuery , GetUserQueryVariables > ( GetUserDocument , options ) ; } export type GetUserQueryHookResult = ReturnType < typeof useGetUserQuery > ; export type GetUserLazyQueryHookResult = ReturnType < typeof useGetUserLazyQuery > ; export type GetUserQueryResult = Apollo . QueryResult < GetUserQuery , GetUserQueryVariables > ;