1+ /* eslint-disable */
2+ /* tslint:disable */
3+ import gql from 'graphql-tag' ;
4+ import * as React from 'react' ;
5+ import * as ApolloReactCommon from '@apollo/react-common' ;
6+ import * as ApolloReactComponents from '@apollo/react-components' ;
7+ import * as ApolloReactHoc from '@apollo/react-hoc' ;
8+ import * as ApolloReactHooks from '@apollo/react-hooks' ;
9+ export type Maybe < T > = T | null ;
10+ export type Omit < T , K extends keyof T > = Pick < T , Exclude < keyof T , K > > ;
11+
12+
13+ /** All built-in and custom scalars, mapped to their actual values */
14+ export type Scalars = {
15+ ID : string ,
16+ String : string ,
17+ Boolean : boolean ,
18+ Int : number ,
19+ Float : number ,
20+ } ;
21+
22+ export type IsUpdatingType = {
23+ __typename ?: 'IsUpdatingType' ,
24+ isUpdating : Scalars [ 'Boolean' ] ,
25+ } ;
26+
27+ export type Query = {
28+ __typename ?: 'Query' ,
29+ isUpdating : Scalars [ 'Boolean' ] ,
30+ } ;
31+
32+ export type IsUpdatingQueryVariables = { } ;
33+
34+
35+ export type IsUpdatingQuery = (
36+ { __typename ?: 'Query' }
37+ & Pick < Query , 'isUpdating' >
38+ ) ;
39+
40+
41+ export const IsUpdatingDocument = gql `
42+ query isUpdating {
43+ isUpdating @client
44+ }
45+ ` ;
46+ export type IsUpdatingComponentProps = Omit < ApolloReactComponents . QueryComponentOptions < IsUpdatingQuery , IsUpdatingQueryVariables > , 'query' > ;
47+
48+ export const IsUpdatingComponent = ( props : IsUpdatingComponentProps ) => (
49+ < ApolloReactComponents . Query < IsUpdatingQuery , IsUpdatingQueryVariables > query = { IsUpdatingDocument } { ...props } />
50+ ) ;
51+
52+ export type IsUpdatingProps < TChildProps = { } > = ApolloReactHoc . DataProps < IsUpdatingQuery , IsUpdatingQueryVariables > | TChildProps ;
53+ export function withIsUpdating < TProps , TChildProps = { } > ( operationOptions ?: ApolloReactHoc . OperationOption <
54+ TProps ,
55+ IsUpdatingQuery ,
56+ IsUpdatingQueryVariables ,
57+ IsUpdatingProps < TChildProps > > ) {
58+ return ApolloReactHoc . withQuery < TProps , IsUpdatingQuery , IsUpdatingQueryVariables , IsUpdatingProps < TChildProps > > ( IsUpdatingDocument , {
59+ alias : 'isUpdating' ,
60+ ...operationOptions
61+ } ) ;
62+ } ;
63+
64+ /**
65+ * __useIsUpdatingQuery__
66+ *
67+ * To run a query within a React component, call `useIsUpdatingQuery` and pass it any options that fit your needs.
68+ * When your component renders, `useIsUpdatingQuery` returns an object from Apollo Client that contains loading, error, and data properties
69+ * you can use to render your UI.
70+ *
71+ * @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;
72+ *
73+ * @example
74+ * const { data, loading, error } = useIsUpdatingQuery({
75+ * variables: {
76+ * },
77+ * });
78+ */
79+ export function useIsUpdatingQuery ( baseOptions ?: ApolloReactHooks . QueryHookOptions < IsUpdatingQuery , IsUpdatingQueryVariables > ) {
80+ return ApolloReactHooks . useQuery < IsUpdatingQuery , IsUpdatingQueryVariables > ( IsUpdatingDocument , baseOptions ) ;
81+ }
82+ export function useIsUpdatingLazyQuery ( baseOptions ?: ApolloReactHooks . LazyQueryHookOptions < IsUpdatingQuery , IsUpdatingQueryVariables > ) {
83+ return ApolloReactHooks . useLazyQuery < IsUpdatingQuery , IsUpdatingQueryVariables > ( IsUpdatingDocument , baseOptions ) ;
84+ }
85+ export type IsUpdatingQueryHookResult = ReturnType < typeof useIsUpdatingQuery > ;
86+ export type IsUpdatingLazyQueryHookResult = ReturnType < typeof useIsUpdatingLazyQuery > ;
87+ export type IsUpdatingQueryResult = ApolloReactCommon . QueryResult < IsUpdatingQuery , IsUpdatingQueryVariables > ;
0 commit comments