import * as Operations from './documents' ; import * as Apollo from '@apollo/client' ; export type Maybe < T > = T | null ; export type InputMaybe < T > = Maybe < T > ; 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 = { } as const ; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID : string ; String : string ; Boolean : boolean ; Int : number ; Float : number ; } ; export type CreateMessageInput = { description : Scalars [ 'String' ] ; } ; export type Message = { __typename ? : 'Message' ; id : Scalars [ 'String' ] ; } ; export type Mutation = { __typename ? : 'Mutation' ; approve ? : Maybe < Message > ; createMessage ? : Maybe < Message > ; decline ? : Maybe < Message > ; escalate ? : Maybe < Message > ; } ; export type MutationApproveArgs = { id : Scalars [ 'ID' ] ; } ; export type MutationCreateMessageArgs = { args : CreateMessageInput ; } ; export type MutationDeclineArgs = { id : Scalars [ 'ID' ] ; reason : Scalars [ 'String' ] ; } ; export type MutationEscalateArgs = { id : Scalars [ 'ID' ] ; } ; export type Query = { __typename ? : 'Query' ; messages ? : Maybe < Array < Maybe < Message > > > ; } ; export type QueryMessagesArgs = { tab : Scalars [ 'String' ] ; } ; export type GetMessagesQueryVariables = Exact < { tab : Scalars [ 'String' ] ; } > ; export type GetMessagesQuery = { __typename ? : 'Query' ; messages ? : Array < { __typename ? : 'Message' ; id : string ; } | null | undefined > | null | undefined ; } ; export type CreateMessageMutationVariables = Exact < { args : CreateMessageInput ; } > ; export type CreateMessageMutation = { __typename ? : 'Mutation' ; createMessage ? : { __typename ? : 'Message' ; id : string ; } | null | undefined ; } ; export type DeclineMutationVariables = Exact < { id : Scalars [ 'ID' ] ; reason : Scalars [ 'String' ] ; } > ; export type DeclineMutation = { __typename ? : 'Mutation' ; decline ? : { __typename ? : 'Message' ; id : string ; } | null | undefined ; } ; export type ApproveMutationVariables = Exact < { id : Scalars [ 'ID' ] ; } > ; export type ApproveMutation = { __typename ? : 'Mutation' ; approve ? : { __typename ? : 'Message' ; id : string ; } | null | undefined ; } ; export type EscalateMutationVariables = Exact < { id : Scalars [ 'ID' ] ; } > ; export type EscalateMutation = { __typename ? : 'Mutation' ; escalate ? : { __typename ? : 'Message' ; id : string ; } | null | undefined ; } ; param baseOptions example export function useGetMessagesQuery ( baseOptions ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useQuery < GetMessagesQuery , GetMessagesQueryVariables > ( Operations . GetMessages , options ) ; } export function useGetMessagesLazyQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useLazyQuery < GetMessagesQuery , GetMessagesQueryVariables > ( Operations . GetMessages , options ) ; } export type GetMessagesQueryHookResult = ReturnType < typeof useGetMessagesQuery > ; export type GetMessagesLazyQueryHookResult = ReturnType < typeof useGetMessagesLazyQuery > ; export type GetMessagesQueryResult = Apollo . QueryResult < GetMessagesQuery , GetMessagesQueryVariables > ; param baseOptions example export function useCreateMessageMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < CreateMessageMutation , CreateMessageMutationVariables > ( Operations . CreateMessage , options ) ; } export type CreateMessageMutationHookResult = ReturnType < typeof useCreateMessageMutation > ; export type CreateMessageMutationResult = Apollo . MutationResult < CreateMessageMutation > ; export type CreateMessageMutationOptions = Apollo . BaseMutationOptions < CreateMessageMutation , CreateMessageMutationVariables > ; param baseOptions example export function useDeclineMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < DeclineMutation , DeclineMutationVariables > ( Operations . Decline , options ) ; } export type DeclineMutationHookResult = ReturnType < typeof useDeclineMutation > ; export type DeclineMutationResult = Apollo . MutationResult < DeclineMutation > ; export type DeclineMutationOptions = Apollo . BaseMutationOptions < DeclineMutation , DeclineMutationVariables > ; param baseOptions example export function useApproveMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < ApproveMutation , ApproveMutationVariables > ( Operations . Approve , options ) ; } export type ApproveMutationHookResult = ReturnType < typeof useApproveMutation > ; export type ApproveMutationResult = Apollo . MutationResult < ApproveMutation > ; export type ApproveMutationOptions = Apollo . BaseMutationOptions < ApproveMutation , ApproveMutationVariables > ; param baseOptions example export function useEscalateMutation ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useMutation < EscalateMutation , EscalateMutationVariables > ( Operations . Escalate , options ) ; } export type EscalateMutationHookResult = ReturnType < typeof useEscalateMutation > ; export type EscalateMutationResult = Apollo . MutationResult < EscalateMutation > ; export type EscalateMutationOptions = Apollo . BaseMutationOptions < EscalateMutation , EscalateMutationVariables > ;