diff --git a/node_modules/@apollo/client/cache/core/cache.d.ts b/node_modules/@apollo/client/cache/core/cache.d.ts index c1744cc..3b852da 100644 --- a/node_modules/@apollo/client/cache/core/cache.d.ts +++ b/node_modules/@apollo/client/cache/core/cache.d.ts @@ -4,8 +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 write(write: Cache.WriteOptions): Reference | undefined; + 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; abstract reset(): Promise; @@ -20,9 +19,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..2f2061a 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..33deb58 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/ApolloClient.d.ts b/node_modules/@apollo/client/core/ApolloClient.d.ts index 650bed2..5d7d633 100644 --- a/node_modules/@apollo/client/core/ApolloClient.d.ts +++ b/node_modules/@apollo/client/core/ApolloClient.d.ts @@ -46,12 +46,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/core/ObservableQuery.d.ts b/node_modules/@apollo/client/core/ObservableQuery.d.ts index 519d2b1..bc61936 100644 --- a/node_modules/@apollo/client/core/ObservableQuery.d.ts +++ b/node_modules/@apollo/client/core/ObservableQuery.d.ts @@ -16,7 +16,7 @@ export interface UpdateQueryOptions { variables?: TVariables; } export declare class ObservableQuery extends Observable> { - readonly options: WatchQueryOptions; + readonly options: WatchQueryOptions; readonly queryId: string; readonly queryName?: string; get variables(): TVariables | undefined; @@ -41,11 +41,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; startPolling(pollInterval: number): void; stopPolling(): void; private updateLastResult; @@ -53,7 +53,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 e4bf4de..45be85a 100644 --- a/node_modules/@apollo/client/core/QueryManager.d.ts +++ b/node_modules/@apollo/client/core/QueryManager.d.ts @@ -35,7 +35,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>; resetErrors(queryId: string): void; private transformCache; @@ -48,8 +48,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; @@ -71,7 +71,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 9580550..c869b43 100644 --- a/node_modules/@apollo/client/core/Reobserver.d.ts +++ b/node_modules/@apollo/client/core/Reobserver.d.ts @@ -9,8 +9,8 @@ export declare class Reobserver { private shouldFetch; 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 0650f34..c365109 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'; import { FetchResult } from '../link/core'; @@ -6,27 +7,27 @@ 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; nextFetchPolicy?: WatchQueryFetchPolicy; } -export interface FetchMoreQueryOptions { - query?: DocumentNode; +export interface FetchMoreQueryOptions { + query?: DocumentNode | TypedDocumentNode; variables?: Pick; context?: any; } @@ -37,14 +38,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; @@ -64,7 +65,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 76fedd8..93fc2d0 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'; 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 \ No newline at end of file diff --git a/node_modules/@apollo/client/react/hoc/types.d.ts b/node_modules/@apollo/client/react/hoc/types.d.ts index 40e1406..4f03b22 100644 --- a/node_modules/@apollo/client/react/hoc/types.d.ts +++ b/node_modules/@apollo/client/react/hoc/types.d.ts @@ -7,7 +7,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 3ebed6a..a2ab073 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'; -export declare function useLazyQuery(query: DocumentNode, options?: LazyQueryHookOptions): QueryTuple; +export declare function useLazyQuery(query: DocumentNode | TypedDocumentNode, options?: LazyQueryHookOptions): QueryTuple; //# sourceMappingURL=useLazyQuery.d.ts.map \ No newline at end of file diff --git a/node_modules/@apollo/client/react/hooks/useMutation.d.ts b/node_modules/@apollo/client/react/hooks/useMutation.d.ts index 368217a..422cb81 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'; -export declare function useMutation(mutation: DocumentNode, options?: MutationHookOptions): MutationTuple; +export declare function useMutation(mutation: DocumentNode | TypedDocumentNode, options?: MutationHookOptions): MutationTuple; //# sourceMappingURL=useMutation.d.ts.map \ No newline at end of file diff --git a/node_modules/@apollo/client/react/hooks/useQuery.d.ts b/node_modules/@apollo/client/react/hooks/useQuery.d.ts index f54a231..933eefc 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'; -export declare function useQuery(query: DocumentNode, options?: QueryHookOptions): QueryResult; +export declare function useQuery(query: DocumentNode | TypedDocumentNode, options?: QueryHookOptions): QueryResult; //# sourceMappingURL=useQuery.d.ts.map \ No newline at end of file diff --git a/node_modules/@apollo/client/react/hooks/useSubscription.d.ts b/node_modules/@apollo/client/react/hooks/useSubscription.d.ts index c71320d..fdcd3bf 100644 --- a/node_modules/@apollo/client/react/hooks/useSubscription.d.ts +++ b/node_modules/@apollo/client/react/hooks/useSubscription.d.ts @@ -1,8 +1,8 @@ +import { TypedDocumentNode } from '@graphql-typed-document-node/core'; import { DocumentNode } from 'graphql'; import { SubscriptionHookOptions } from '../types/types'; import { OperationVariables } from '../../core'; -export declare function useSubscription(subscription: DocumentNode, options?: SubscriptionHookOptions): { - variables: TVariables | undefined; +export declare function useSubscription(subscription: DocumentNode | TypedDocumentNode, options?: SubscriptionHookOptions): { variables: TVariables | undefined; loading: boolean; data?: TData | undefined; error?: import("../../errors").ApolloError | 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 9eef686..2fda229 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'; -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 \ No newline at end of file diff --git a/node_modules/@apollo/client/react/types/types.d.ts b/node_modules/@apollo/client/react/types/types.d.ts index 2709f29..8304ad9 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'; @@ -30,9 +31,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; @@ -44,17 +45,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; @@ -112,10 +113,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 { @@ -137,10 +138,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 {