diff --git a/node_modules/@apollo/client/ApolloClient.d.ts b/node_modules/@apollo/client/ApolloClient.d.ts index cf70dac..9f5bf0c 100644 --- a/node_modules/@apollo/client/ApolloClient.d.ts +++ b/node_modules/@apollo/client/ApolloClient.d.ts @@ -48,12 +48,12 @@ export declare class ApolloClient implements DataProxy { private localState; constructor(options: ApolloClientOptions); stop(): void; - watchQuery(options: WatchQueryOptions): ObservableQuery; - query(options: QueryOptions): Promise>; + watchQuery(options: WatchQueryOptions): ObservableQuery; + query(options: QueryOptions): Promise>; mutate(options: MutationOptions): Promise>; - subscribe(options: SubscriptionOptions): Observable>; - readQuery(options: DataProxy.Query, optimistic?: boolean): T | null; - readFragment(options: DataProxy.Fragment, optimistic?: boolean): T | null; + subscribe(options: SubscriptionOptions): Observable>; + readQuery(options: DataProxy.Query, optimistic?: boolean): T | null; + readFragment(options: DataProxy.Fragment, optimistic?: boolean): T | null; writeQuery(options: DataProxy.WriteQueryOptions): void; writeFragment(options: DataProxy.WriteFragmentOptions): void; __actionHookForDevTools(cb: () => any): void; diff --git a/node_modules/@apollo/client/cache/core/cache.d.ts b/node_modules/@apollo/client/cache/core/cache.d.ts index f17fab8..896334b 100644 --- a/node_modules/@apollo/client/cache/core/cache.d.ts +++ b/node_modules/@apollo/client/cache/core/cache.d.ts @@ -4,7 +4,7 @@ import { DataProxy } from './types/DataProxy'; import { Cache } from './types/Cache'; export declare type Transaction = (c: ApolloCache) => void; export declare abstract class ApolloCache implements DataProxy { - abstract read(query: Cache.ReadOptions): T | null; + abstract read(query: Cache.ReadOptions): T | null; abstract write(write: Cache.WriteOptions): Reference | undefined; abstract diff(query: Cache.DiffOptions): Cache.DiffResult; abstract watch(watch: Cache.WatchOptions): () => void; @@ -20,9 +20,9 @@ export declare abstract class ApolloCache implements DataProxy { gc(): string[]; modify(options: Cache.ModifyOptions): boolean; transformForLink(document: DocumentNode): DocumentNode; - readQuery(options: DataProxy.Query, optimistic?: boolean): QueryType | null; + readQuery(options: DataProxy.Query, optimistic?: boolean): QueryType | null; private getFragmentDoc; - readFragment(options: DataProxy.Fragment, optimistic?: boolean): FragmentType | null; + readFragment(options: DataProxy.Fragment, optimistic?: boolean): FragmentType | null; writeQuery(options: Cache.WriteQueryOptions): Reference | undefined; writeFragment(options: Cache.WriteFragmentOptions): Reference | undefined; } diff --git a/node_modules/@apollo/client/cache/core/types/Cache.d.ts b/node_modules/@apollo/client/cache/core/types/Cache.d.ts index 6602ec1..5b8b2fa 100644 --- a/node_modules/@apollo/client/cache/core/types/Cache.d.ts +++ b/node_modules/@apollo/client/cache/core/types/Cache.d.ts @@ -2,12 +2,12 @@ import { DataProxy } from './DataProxy'; import { Modifier, Modifiers } from './common'; export declare namespace Cache { type WatchCallback = (diff: Cache.DiffResult) => void; - interface ReadOptions extends DataProxy.Query { + interface ReadOptions extends DataProxy.Query { rootId?: string; previousResult?: any; optimistic: boolean; } - interface WriteOptions extends DataProxy.Query { + interface WriteOptions extends DataProxy.Query { dataId?: string; result: TResult; broadcast?: boolean; diff --git a/node_modules/@apollo/client/cache/core/types/DataProxy.d.ts b/node_modules/@apollo/client/cache/core/types/DataProxy.d.ts index 84c921c..2b579aa 100644 --- a/node_modules/@apollo/client/cache/core/types/DataProxy.d.ts +++ b/node_modules/@apollo/client/cache/core/types/DataProxy.d.ts @@ -1,22 +1,24 @@ import { DocumentNode } from 'graphql'; import { MissingFieldError } from './common'; +import { TypedDocumentNode } from '@graphql-typed-document-node/core'; + export declare namespace DataProxy { - interface Query { - query: DocumentNode; + interface Query { + query: DocumentNode | TypedDocumentNode; variables?: TVariables; id?: string; } - interface Fragment { + interface Fragment { id?: string; - fragment: DocumentNode; + fragment: DocumentNode | TypedDocumentNode; fragmentName?: string; variables?: TVariables; } - interface WriteQueryOptions extends Query { + interface WriteQueryOptions extends Query { data: TData; broadcast?: boolean; } - interface WriteFragmentOptions extends Fragment { + interface WriteFragmentOptions extends Fragment { data: TData; broadcast?: boolean; } @@ -27,8 +29,8 @@ export declare namespace DataProxy { }; } export interface DataProxy { - readQuery(options: DataProxy.Query, optimistic?: boolean): QueryType | null; - readFragment(options: DataProxy.Fragment, optimistic?: boolean): FragmentType | null; + readQuery(options: DataProxy.Query, optimistic?: boolean): QueryType | null; + readFragment(options: DataProxy.Fragment, optimistic?: boolean): FragmentType | null; writeQuery(options: DataProxy.WriteQueryOptions): void; writeFragment(options: DataProxy.WriteFragmentOptions): void; } diff --git a/node_modules/@apollo/client/core/ObservableQuery.d.ts b/node_modules/@apollo/client/core/ObservableQuery.d.ts index ff953b4..15d6274 100644 --- a/node_modules/@apollo/client/core/ObservableQuery.d.ts +++ b/node_modules/@apollo/client/core/ObservableQuery.d.ts @@ -21,7 +21,7 @@ export interface UpdateQueryOptions { } export declare const hasError: (storeValue: QueryStoreValue, policy?: ErrorPolicy) => boolean | Error; export declare class ObservableQuery extends Observable> { - readonly options: WatchQueryOptions; + readonly options: WatchQueryOptions; readonly queryId: string; readonly queryName?: string; get variables(): TVariables | undefined; @@ -44,11 +44,11 @@ export declare class ObservableQuery): Promise>; - fetchMore(fetchMoreOptions: FetchMoreQueryOptions & FetchMoreOptions): Promise>; + fetchMore(fetchMoreOptions: FetchMoreQueryOptions & FetchMoreOptions): Promise>; subscribeToMore(options: SubscribeToMoreOptions): () => void; - setOptions(newOptions: Partial>): Promise>; + setOptions(newOptions: Partial>): Promise>; setVariables(variables: TVariables): Promise | void>; - updateQuery(mapFn: (previousQueryResult: TData, options: Pick, "variables">) => TData): void; + updateQuery(mapFn: (previousQueryResult: TData, options: Pick, "variables">) => TData): void; private getCurrentQueryResult; startPolling(pollInterval: number): void; stopPolling(): void; @@ -57,7 +57,7 @@ export declare class ObservableQuery>, newNetworkStatus?: NetworkStatus): Promise>; + reobserve(newOptions?: Partial>, newNetworkStatus?: NetworkStatus): Promise>; private observer; private tearDownQuery; } diff --git a/node_modules/@apollo/client/core/QueryManager.d.ts b/node_modules/@apollo/client/core/QueryManager.d.ts index a2ccf64..3bac02a 100644 --- a/node_modules/@apollo/client/core/QueryManager.d.ts +++ b/node_modules/@apollo/client/core/QueryManager.d.ts @@ -37,7 +37,7 @@ export declare class QueryManager { stop(): void; private cancelPendingFetches; mutate({ mutation, variables, optimisticResponse, updateQueries: updateQueriesByName, refetchQueries, awaitRefetchQueries, update: updateWithProxyFn, errorPolicy, fetchPolicy, context, }: MutationOptions): Promise>; - fetchQuery(queryId: string, options: WatchQueryOptions, networkStatus?: NetworkStatus): Promise>; + fetchQuery(queryId: string, options: WatchQueryOptions, networkStatus?: NetworkStatus): Promise>; getQueryStore(): Record>; getQueryStoreValue(queryId: string): QueryStoreValue | undefined; private transformCache; @@ -50,8 +50,8 @@ export declare class QueryManager { defaultVars: Readonly>; }>; private getVariables; - watchQuery(options: WatchQueryOptions): ObservableQuery; - query(options: QueryOptions): Promise>; + watchQuery(options: WatchQueryOptions): ObservableQuery; + query(options: QueryOptions): Promise>; private queryIdCounter; generateQueryId(): string; private requestIdCounter; @@ -74,7 +74,7 @@ export declare class QueryManager { private inFlightLinkObservables; private getObservableFromLink; private getResultsFromLink; - fetchQueryObservable(queryId: string, options: WatchQueryOptions, networkStatus?: NetworkStatus): Concast>; + fetchQueryObservable(queryId: string, options: WatchQueryOptions, networkStatus?: NetworkStatus): Concast>; private fetchQueryByPolicy; private getQuery; private prepareContext; diff --git a/node_modules/@apollo/client/core/Reobserver.d.ts b/node_modules/@apollo/client/core/Reobserver.d.ts index d2155d2..1547d65 100644 --- a/node_modules/@apollo/client/core/Reobserver.d.ts +++ b/node_modules/@apollo/client/core/Reobserver.d.ts @@ -8,10 +8,10 @@ export declare class Reobserver { private options; private fetch; private shouldFetch; - constructor(observer: Observer>, options: WatchQueryOptions, fetch: (options: WatchQueryOptions, newNetworkStatus?: NetworkStatus) => Concast>, shouldFetch: false | (() => boolean)); + constructor(observer: Observer>, options: WatchQueryOptions, fetch: (options: WatchQueryOptions, newNetworkStatus?: NetworkStatus) => Concast>, shouldFetch: false | (() => boolean)); private concast?; - reobserve(newOptions?: Partial>, newNetworkStatus?: NetworkStatus): Promise>; - updateOptions(newOptions: Partial>): this; + reobserve(newOptions?: Partial>, newNetworkStatus?: NetworkStatus): Promise>; + updateOptions(newOptions: Partial>): this; stop(): void; private pollingInfo?; private updatePolling; diff --git a/node_modules/@apollo/client/core/watchQueryOptions.d.ts b/node_modules/@apollo/client/core/watchQueryOptions.d.ts index d1ed47f..86c5036 100644 --- a/node_modules/@apollo/client/core/watchQueryOptions.d.ts +++ b/node_modules/@apollo/client/core/watchQueryOptions.d.ts @@ -1,3 +1,4 @@ +import { TypedDocumentNode } from '@graphql-typed-document-node/core'; import { DocumentNode } from 'graphql'; import { ApolloCache } from '../cache/core/cache'; import { FetchResult } from '../link/core/types'; @@ -6,26 +7,26 @@ import { PureQueryOptions, OperationVariables } from './types'; export declare type FetchPolicy = 'cache-first' | 'network-only' | 'cache-only' | 'no-cache' | 'standby'; export declare type WatchQueryFetchPolicy = FetchPolicy | 'cache-and-network'; export declare type ErrorPolicy = 'none' | 'ignore' | 'all'; -export interface QueryBaseOptions { - query: DocumentNode; +export interface QueryBaseOptions { + query: DocumentNode | TypedDocumentNode; variables?: TVariables; errorPolicy?: ErrorPolicy; context?: any; } -export interface QueryOptions extends QueryBaseOptions { +export interface QueryOptions extends QueryBaseOptions { fetchPolicy?: FetchPolicy; } -export interface ModifiableWatchQueryOptions extends QueryBaseOptions { +export interface ModifiableWatchQueryOptions extends QueryBaseOptions { pollInterval?: number; notifyOnNetworkStatusChange?: boolean; returnPartialData?: boolean; partialRefetch?: boolean; } -export interface WatchQueryOptions extends QueryBaseOptions, ModifiableWatchQueryOptions { +export interface WatchQueryOptions extends QueryBaseOptions, ModifiableWatchQueryOptions { fetchPolicy?: WatchQueryFetchPolicy; } -export interface FetchMoreQueryOptions { - query?: DocumentNode; +export interface FetchMoreQueryOptions { + query?: DocumentNode | TypedDocumentNode; variables?: Pick; context?: any; } @@ -36,14 +37,14 @@ export declare type UpdateQueryFn TData; export declare type SubscribeToMoreOptions = { - document: DocumentNode; + document: DocumentNode | TypedDocumentNode; variables?: TSubscriptionVariables; updateQuery?: UpdateQueryFn; onError?: (error: Error) => void; context?: Record; }; -export interface SubscriptionOptions { - query: DocumentNode; +export interface SubscriptionOptions { + query: DocumentNode | TypedDocumentNode; variables?: TVariables; fetchPolicy?: FetchPolicy; context?: Record; @@ -63,7 +64,7 @@ export interface MutationBaseOptions extends MutationBaseOptions { - mutation: DocumentNode; + mutation: DocumentNode | TypedDocumentNode; context?: any; fetchPolicy?: Extract; } diff --git a/node_modules/@apollo/client/react/components/types.d.ts b/node_modules/@apollo/client/react/components/types.d.ts index eaf1584..6abf4d3 100644 --- a/node_modules/@apollo/client/react/components/types.d.ts +++ b/node_modules/@apollo/client/react/components/types.d.ts @@ -1,17 +1,18 @@ /// +import { TypedDocumentNode } from '@graphql-typed-document-node/core'; import { DocumentNode } from 'graphql'; import { OperationVariables } from '../../core/types'; import { QueryFunctionOptions, QueryResult, BaseMutationOptions, MutationFunction, MutationResult, BaseSubscriptionOptions, SubscriptionResult } from '../types/types'; export interface QueryComponentOptions extends QueryFunctionOptions { children: (result: QueryResult) => JSX.Element | null; - query: DocumentNode; + query: DocumentNode | TypedDocumentNode; } export interface MutationComponentOptions extends BaseMutationOptions { - mutation: DocumentNode; + mutation: DocumentNode | TypedDocumentNode; children: (mutateFunction: MutationFunction, result: MutationResult) => JSX.Element | null; } export interface SubscriptionComponentOptions extends BaseSubscriptionOptions { - subscription: DocumentNode; + subscription: DocumentNode | TypedDocumentNode; children?: null | ((result: SubscriptionResult) => JSX.Element | null); } //# sourceMappingURL=types.d.ts.map diff --git a/node_modules/@apollo/client/react/hoc/types.d.ts b/node_modules/@apollo/client/react/hoc/types.d.ts index b8c959c..d110809 100644 --- a/node_modules/@apollo/client/react/hoc/types.d.ts +++ b/node_modules/@apollo/client/react/hoc/types.d.ts @@ -9,7 +9,7 @@ export interface QueryControls & FetchMoreOptions) => Promise>; + fetchMore: (fetchMoreOptions: FetchMoreQueryOptions & FetchMoreOptions) => Promise>; refetch: (variables?: TGraphQLVariables) => Promise>; startPolling: (pollInterval: number) => void; stopPolling: () => void; diff --git a/node_modules/@apollo/client/react/hooks/useLazyQuery.d.ts b/node_modules/@apollo/client/react/hooks/useLazyQuery.d.ts index e2648c3..374ee93 100644 --- a/node_modules/@apollo/client/react/hooks/useLazyQuery.d.ts +++ b/node_modules/@apollo/client/react/hooks/useLazyQuery.d.ts @@ -1,5 +1,6 @@ +import { TypedDocumentNode } from '@graphql-typed-document-node/core'; import { DocumentNode } from 'graphql'; import { LazyQueryHookOptions, QueryTuple } from '../types/types'; import { OperationVariables } from '../../core/types'; -export declare function useLazyQuery(query: DocumentNode, options?: LazyQueryHookOptions): QueryTuple; +export declare function useLazyQuery(query: DocumentNode | TypedDocumentNode, options?: LazyQueryHookOptions): QueryTuple; //# sourceMappingURL=useLazyQuery.d.ts.map diff --git a/node_modules/@apollo/client/react/hooks/useMutation.d.ts b/node_modules/@apollo/client/react/hooks/useMutation.d.ts index 90bcaff..c4ee6ab 100644 --- a/node_modules/@apollo/client/react/hooks/useMutation.d.ts +++ b/node_modules/@apollo/client/react/hooks/useMutation.d.ts @@ -1,5 +1,6 @@ +import { TypedDocumentNode } from '@graphql-typed-document-node/core'; import { DocumentNode } from 'graphql'; import { MutationHookOptions, MutationTuple } from '../types/types'; import { OperationVariables } from '../../core/types'; -export declare function useMutation(mutation: DocumentNode, options?: MutationHookOptions): MutationTuple; +export declare function useMutation(mutation: DocumentNode | TypedDocumentNode, options?: MutationHookOptions): MutationTuple; //# sourceMappingURL=useMutation.d.ts.map diff --git a/node_modules/@apollo/client/react/hooks/useQuery.d.ts b/node_modules/@apollo/client/react/hooks/useQuery.d.ts index 8746fff..c716270 100644 --- a/node_modules/@apollo/client/react/hooks/useQuery.d.ts +++ b/node_modules/@apollo/client/react/hooks/useQuery.d.ts @@ -1,5 +1,6 @@ +import { TypedDocumentNode } from '@graphql-typed-document-node/core'; import { DocumentNode } from 'graphql'; import { QueryHookOptions, QueryResult } from '../types/types'; import { OperationVariables } from '../../core/types'; -export declare function useQuery(query: DocumentNode, options?: QueryHookOptions): QueryResult; +export declare function useQuery(query: DocumentNode | TypedDocumentNode, options?: QueryHookOptions): QueryResult; //# sourceMappingURL=useQuery.d.ts.map diff --git a/node_modules/@apollo/client/react/hooks/useSubscription.d.ts b/node_modules/@apollo/client/react/hooks/useSubscription.d.ts index be009f6..f9f0fa1 100644 --- a/node_modules/@apollo/client/react/hooks/useSubscription.d.ts +++ b/node_modules/@apollo/client/react/hooks/useSubscription.d.ts @@ -1,7 +1,8 @@ +import { TypedDocumentNode } from '@graphql-typed-document-node/core'; import { DocumentNode } from 'graphql'; import { SubscriptionHookOptions } from '../types/types'; import { OperationVariables } from '../../core/types'; -export declare function useSubscription(subscription: DocumentNode, options?: SubscriptionHookOptions): { +export declare function useSubscription(subscription: DocumentNode | TypedDocumentNode, options?: SubscriptionHookOptions): { variables: TVariables | undefined; loading: boolean; data?: TData | undefined; diff --git a/node_modules/@apollo/client/react/hooks/utils/useBaseQuery.d.ts b/node_modules/@apollo/client/react/hooks/utils/useBaseQuery.d.ts index 231abd3..89dc312 100644 --- a/node_modules/@apollo/client/react/hooks/utils/useBaseQuery.d.ts +++ b/node_modules/@apollo/client/react/hooks/utils/useBaseQuery.d.ts @@ -1,5 +1,6 @@ +import { TypedDocumentNode } from '@graphql-typed-document-node/core'; import { DocumentNode } from 'graphql'; import { QueryHookOptions, QueryTuple, QueryResult } from '../../types/types'; import { OperationVariables } from '../../../core/types'; -export declare function useBaseQuery(query: DocumentNode, options?: QueryHookOptions, lazy?: boolean): QueryTuple | QueryResult; +export declare function useBaseQuery(query: DocumentNode | TypedDocumentNode, options?: QueryHookOptions, lazy?: boolean): QueryTuple | QueryResult; //# sourceMappingURL=useBaseQuery.d.ts.map diff --git a/node_modules/@apollo/client/react/types/types.d.ts b/node_modules/@apollo/client/react/types/types.d.ts index 3b1cd20..76f71b8 100644 --- a/node_modules/@apollo/client/react/types/types.d.ts +++ b/node_modules/@apollo/client/react/types/types.d.ts @@ -1,4 +1,5 @@ /// +import { TypedDocumentNode } from '@graphql-typed-document-node/core'; import { ReactNode } from 'react'; import { DocumentNode } from 'graphql'; import { Observable } from '../../utilities/observables/Observable'; @@ -32,9 +33,9 @@ export interface QueryFunctionOptions void; } export declare type ObservableQueryFields = Pick, 'startPolling' | 'stopPolling' | 'subscribeToMore' | 'updateQuery' | 'refetch' | 'variables'> & { - fetchMore: ((fetchMoreOptions: FetchMoreQueryOptions & FetchMoreOptions) => Promise>) & ((fetchMoreOptions: { - query?: DocumentNode; - } & FetchMoreQueryOptions & FetchMoreOptions) => Promise>); + fetchMore: ((fetchMoreOptions: FetchMoreQueryOptions & FetchMoreOptions) => Promise>) & ((fetchMoreOptions: { + query?: DocumentNode | TypedDocumentNode; + } & FetchMoreQueryOptions & FetchMoreOptions) => Promise>); }; export interface QueryResult extends ObservableQueryFields { client: ApolloClient; @@ -46,17 +47,17 @@ export interface QueryResult exten } export interface QueryDataOptions extends QueryFunctionOptions { children?: (result: QueryResult) => ReactNode; - query: DocumentNode; + query: DocumentNode | TypedDocumentNode; } export interface QueryHookOptions extends QueryFunctionOptions { - query?: DocumentNode; + query?: DocumentNode | TypedDocumentNode; } export interface LazyQueryHookOptions extends Omit, 'skip'> { - query?: DocumentNode; + query?: DocumentNode | TypedDocumentNode; } export interface QueryPreviousData { client?: ApolloClient; - query?: DocumentNode; + query?: DocumentNode | TypedDocumentNode; observableQueryOptions?: {}; result?: QueryResult | null; loading?: boolean; @@ -114,10 +115,10 @@ export interface MutationResult { } export declare type MutationFunction = (options?: MutationFunctionOptions) => Promise>; export interface MutationHookOptions extends BaseMutationOptions { - mutation?: DocumentNode; + mutation?: DocumentNode | TypedDocumentNode; } export interface MutationDataOptions extends BaseMutationOptions { - mutation: DocumentNode; + mutation: DocumentNode | TypedDocumentNode; } export declare type MutationTuple = [(options?: MutationFunctionOptions) => Promise>, MutationResult]; export interface OnSubscriptionDataOptions { @@ -139,10 +140,10 @@ export interface SubscriptionResult { error?: ApolloError; } export interface SubscriptionHookOptions extends BaseSubscriptionOptions { - subscription?: DocumentNode; + subscription?: DocumentNode | TypedDocumentNode; } export interface SubscriptionDataOptions extends BaseSubscriptionOptions { - subscription: DocumentNode; + subscription: DocumentNode | TypedDocumentNode; children?: null | ((result: SubscriptionResult) => JSX.Element | null); } export interface SubscriptionCurrentObservable {