@depup/apollo__client 4.1.6-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9911 -0
- package/LICENSE +22 -0
- package/README.md +35 -0
- package/__cjs/cache/core/cache.cjs +362 -0
- package/__cjs/cache/core/cache.cjs.map +1 -0
- package/__cjs/cache/core/cache.d.cts +291 -0
- package/__cjs/cache/core/types/Cache.cjs +3 -0
- package/__cjs/cache/core/types/Cache.cjs.map +1 -0
- package/__cjs/cache/core/types/Cache.d.cts +302 -0
- package/__cjs/cache/core/types/common.cjs +33 -0
- package/__cjs/cache/core/types/common.cjs.map +1 -0
- package/__cjs/cache/core/types/common.d.cts +64 -0
- package/__cjs/cache/deprecated.cjs +3 -0
- package/__cjs/cache/deprecated.cjs.map +1 -0
- package/__cjs/cache/deprecated.d.cts +6 -0
- package/__cjs/cache/index.cjs +25 -0
- package/__cjs/cache/index.cjs.map +1 -0
- package/__cjs/cache/index.d.cts +19 -0
- package/__cjs/cache/inmemory/entityStore.cjs +679 -0
- package/__cjs/cache/inmemory/entityStore.cjs.map +1 -0
- package/__cjs/cache/inmemory/entityStore.d.cts +94 -0
- package/__cjs/cache/inmemory/fragmentRegistry.cjs +134 -0
- package/__cjs/cache/inmemory/fragmentRegistry.cjs.map +1 -0
- package/__cjs/cache/inmemory/fragmentRegistry.d.cts +9 -0
- package/__cjs/cache/inmemory/helpers.cjs +93 -0
- package/__cjs/cache/inmemory/helpers.cjs.map +1 -0
- package/__cjs/cache/inmemory/helpers.d.cts +21 -0
- package/__cjs/cache/inmemory/inMemoryCache.cjs +514 -0
- package/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -0
- package/__cjs/cache/inmemory/inMemoryCache.d.cts +114 -0
- package/__cjs/cache/inmemory/key-extractor.cjs +192 -0
- package/__cjs/cache/inmemory/key-extractor.cjs.map +1 -0
- package/__cjs/cache/inmemory/key-extractor.d.cts +9 -0
- package/__cjs/cache/inmemory/policies.cjs +674 -0
- package/__cjs/cache/inmemory/policies.cjs.map +1 -0
- package/__cjs/cache/inmemory/policies.d.cts +126 -0
- package/__cjs/cache/inmemory/reactiveVars.cjs +89 -0
- package/__cjs/cache/inmemory/reactiveVars.cjs.map +1 -0
- package/__cjs/cache/inmemory/reactiveVars.d.cts +19 -0
- package/__cjs/cache/inmemory/readFromStore.cjs +293 -0
- package/__cjs/cache/inmemory/readFromStore.cjs.map +1 -0
- package/__cjs/cache/inmemory/readFromStore.d.cts +26 -0
- package/__cjs/cache/inmemory/types.cjs +3 -0
- package/__cjs/cache/inmemory/types.cjs.map +1 -0
- package/__cjs/cache/inmemory/types.d.cts +109 -0
- package/__cjs/cache/inmemory/writeToStore.cjs +594 -0
- package/__cjs/cache/inmemory/writeToStore.cjs.map +1 -0
- package/__cjs/cache/inmemory/writeToStore.d.cts +38 -0
- package/__cjs/core/ApolloClient.cjs +539 -0
- package/__cjs/core/ApolloClient.cjs.map +1 -0
- package/__cjs/core/ApolloClient.d.cts +1210 -0
- package/__cjs/core/ObservableQuery.cjs +1413 -0
- package/__cjs/core/ObservableQuery.cjs.map +1 -0
- package/__cjs/core/ObservableQuery.d.cts +467 -0
- package/__cjs/core/QueryInfo.cjs +401 -0
- package/__cjs/core/QueryInfo.cjs.map +1 -0
- package/__cjs/core/QueryInfo.d.cts +70 -0
- package/__cjs/core/QueryManager.cjs +1170 -0
- package/__cjs/core/QueryManager.cjs.map +1 -0
- package/__cjs/core/QueryManager.d.cts +168 -0
- package/__cjs/core/deprecated.cjs +3 -0
- package/__cjs/core/deprecated.cjs.map +1 -0
- package/__cjs/core/deprecated.d.cts +29 -0
- package/__cjs/core/index.cjs +79 -0
- package/__cjs/core/index.cjs.map +1 -0
- package/__cjs/core/index.d.cts +31 -0
- package/__cjs/core/networkStatus.cjs +51 -0
- package/__cjs/core/networkStatus.cjs.map +1 -0
- package/__cjs/core/networkStatus.d.cts +47 -0
- package/__cjs/core/types.cjs +3 -0
- package/__cjs/core/types.cjs.map +1 -0
- package/__cjs/core/types.d.cts +327 -0
- package/__cjs/core/watchQueryOptions.cjs +3 -0
- package/__cjs/core/watchQueryOptions.cjs.map +1 -0
- package/__cjs/core/watchQueryOptions.d.cts +75 -0
- package/__cjs/dev/index.cjs +12 -0
- package/__cjs/dev/index.cjs.map +1 -0
- package/__cjs/dev/index.d.cts +6 -0
- package/__cjs/dev/loadDevMessages.cjs +9 -0
- package/__cjs/dev/loadDevMessages.cjs.map +1 -0
- package/__cjs/dev/loadDevMessages.d.cts +2 -0
- package/__cjs/dev/loadErrorMessageHandler.cjs +27 -0
- package/__cjs/dev/loadErrorMessageHandler.cjs.map +1 -0
- package/__cjs/dev/loadErrorMessageHandler.d.cts +8 -0
- package/__cjs/dev/loadErrorMessages.cjs +9 -0
- package/__cjs/dev/loadErrorMessages.cjs.map +1 -0
- package/__cjs/dev/loadErrorMessages.d.cts +2 -0
- package/__cjs/dev/setErrorMessageHandler.cjs +12 -0
- package/__cjs/dev/setErrorMessageHandler.cjs.map +1 -0
- package/__cjs/dev/setErrorMessageHandler.d.cts +34 -0
- package/__cjs/dev/symbol.cjs +7 -0
- package/__cjs/dev/symbol.cjs.map +1 -0
- package/__cjs/dev/symbol.d.cts +10 -0
- package/__cjs/errors/CombinedGraphQLErrors.cjs +105 -0
- package/__cjs/errors/CombinedGraphQLErrors.cjs.map +1 -0
- package/__cjs/errors/CombinedGraphQLErrors.d.cts +191 -0
- package/__cjs/errors/CombinedProtocolErrors.cjs +84 -0
- package/__cjs/errors/CombinedProtocolErrors.cjs.map +1 -0
- package/__cjs/errors/CombinedProtocolErrors.d.cts +150 -0
- package/__cjs/errors/LinkError.cjs +67 -0
- package/__cjs/errors/LinkError.cjs.map +1 -0
- package/__cjs/errors/LinkError.d.cts +61 -0
- package/__cjs/errors/LocalStateError.cjs +57 -0
- package/__cjs/errors/LocalStateError.cjs.map +1 -0
- package/__cjs/errors/LocalStateError.d.cts +56 -0
- package/__cjs/errors/ServerError.cjs +79 -0
- package/__cjs/errors/ServerError.cjs.map +1 -0
- package/__cjs/errors/ServerError.d.cts +87 -0
- package/__cjs/errors/ServerParseError.cjs +76 -0
- package/__cjs/errors/ServerParseError.cjs.map +1 -0
- package/__cjs/errors/ServerParseError.d.cts +82 -0
- package/__cjs/errors/UnconventionalError.cjs +67 -0
- package/__cjs/errors/UnconventionalError.cjs.map +1 -0
- package/__cjs/errors/UnconventionalError.d.cts +55 -0
- package/__cjs/errors/index.cjs +45 -0
- package/__cjs/errors/index.cjs.map +1 -0
- package/__cjs/errors/index.d.cts +14 -0
- package/__cjs/errors/isErrorLike.cjs +12 -0
- package/__cjs/errors/isErrorLike.cjs.map +1 -0
- package/__cjs/errors/isErrorLike.d.cts +3 -0
- package/__cjs/errors/utils.cjs +18 -0
- package/__cjs/errors/utils.cjs.map +1 -0
- package/__cjs/errors/utils.d.cts +3 -0
- package/__cjs/incremental/handlers/defer20220824.cjs +127 -0
- package/__cjs/incremental/handlers/defer20220824.cjs.map +1 -0
- package/__cjs/incremental/handlers/defer20220824.d.cts +66 -0
- package/__cjs/incremental/handlers/graphql17Alpha9.cjs +227 -0
- package/__cjs/incremental/handlers/graphql17Alpha9.cjs.map +1 -0
- package/__cjs/incremental/handlers/graphql17Alpha9.d.cts +98 -0
- package/__cjs/incremental/handlers/notImplemented.cjs +19 -0
- package/__cjs/incremental/handlers/notImplemented.cjs.map +1 -0
- package/__cjs/incremental/handlers/notImplemented.d.cts +20 -0
- package/__cjs/incremental/index.cjs +11 -0
- package/__cjs/incremental/index.cjs.map +1 -0
- package/__cjs/incremental/index.d.cts +5 -0
- package/__cjs/incremental/types.cjs +3 -0
- package/__cjs/incremental/types.cjs.map +1 -0
- package/__cjs/incremental/types.d.cts +33 -0
- package/__cjs/invariantErrorCodes.cjs +731 -0
- package/__cjs/invariantErrorCodes.cjs.map +1 -0
- package/__cjs/invariantErrorCodes.d.cts +13 -0
- package/__cjs/link/batch/batchLink.cjs +53 -0
- package/__cjs/link/batch/batchLink.cjs.map +1 -0
- package/__cjs/link/batch/batchLink.d.cts +117 -0
- package/__cjs/link/batch/batching.cjs +156 -0
- package/__cjs/link/batch/batching.cjs.map +1 -0
- package/__cjs/link/batch/batching.d.cts +27 -0
- package/__cjs/link/batch/index.cjs +6 -0
- package/__cjs/link/batch/index.cjs.map +1 -0
- package/__cjs/link/batch/index.d.cts +2 -0
- package/__cjs/link/batch-http/BaseBatchHttpLink.cjs +156 -0
- package/__cjs/link/batch-http/BaseBatchHttpLink.cjs.map +1 -0
- package/__cjs/link/batch-http/BaseBatchHttpLink.d.cts +68 -0
- package/__cjs/link/batch-http/batchHttpLink.cjs +42 -0
- package/__cjs/link/batch-http/batchHttpLink.cjs.map +1 -0
- package/__cjs/link/batch-http/batchHttpLink.d.cts +49 -0
- package/__cjs/link/batch-http/index.cjs +8 -0
- package/__cjs/link/batch-http/index.cjs.map +1 -0
- package/__cjs/link/batch-http/index.d.cts +3 -0
- package/__cjs/link/client-awareness/ClientAwarenessLink.cjs +90 -0
- package/__cjs/link/client-awareness/ClientAwarenessLink.cjs.map +1 -0
- package/__cjs/link/client-awareness/ClientAwarenessLink.d.cts +114 -0
- package/__cjs/link/client-awareness/index.cjs +6 -0
- package/__cjs/link/client-awareness/index.cjs.map +1 -0
- package/__cjs/link/client-awareness/index.d.cts +2 -0
- package/__cjs/link/context/index.cjs +68 -0
- package/__cjs/link/context/index.cjs.map +1 -0
- package/__cjs/link/context/index.d.cts +85 -0
- package/__cjs/link/core/ApolloLink.cjs +274 -0
- package/__cjs/link/core/ApolloLink.cjs.map +1 -0
- package/__cjs/link/core/ApolloLink.d.cts +384 -0
- package/__cjs/link/core/concat.cjs +10 -0
- package/__cjs/link/core/concat.cjs.map +1 -0
- package/__cjs/link/core/concat.d.cts +7 -0
- package/__cjs/link/core/deprecated.cjs +3 -0
- package/__cjs/link/core/deprecated.cjs.map +1 -0
- package/__cjs/link/core/deprecated.d.cts +10 -0
- package/__cjs/link/core/empty.cjs +10 -0
- package/__cjs/link/core/empty.cjs.map +1 -0
- package/__cjs/link/core/empty.d.cts +7 -0
- package/__cjs/link/core/execute.cjs +6 -0
- package/__cjs/link/core/execute.cjs.map +1 -0
- package/__cjs/link/core/execute.d.cts +3 -0
- package/__cjs/link/core/from.cjs +10 -0
- package/__cjs/link/core/from.cjs.map +1 -0
- package/__cjs/link/core/from.d.cts +7 -0
- package/__cjs/link/core/split.cjs +10 -0
- package/__cjs/link/core/split.cjs.map +1 -0
- package/__cjs/link/core/split.d.cts +7 -0
- package/__cjs/link/core/types.cjs +3 -0
- package/__cjs/link/core/types.cjs.map +1 -0
- package/__cjs/link/core/types.d.cts +6 -0
- package/__cjs/link/error/index.cjs +129 -0
- package/__cjs/link/error/index.cjs.map +1 -0
- package/__cjs/link/error/index.d.cts +105 -0
- package/__cjs/link/http/BaseHttpLink.cjs +161 -0
- package/__cjs/link/http/BaseHttpLink.cjs.map +1 -0
- package/__cjs/link/http/BaseHttpLink.d.cts +260 -0
- package/__cjs/link/http/HttpLink.cjs +46 -0
- package/__cjs/link/http/HttpLink.cjs.map +1 -0
- package/__cjs/link/http/HttpLink.d.cts +58 -0
- package/__cjs/link/http/checkFetcher.cjs +9 -0
- package/__cjs/link/http/checkFetcher.cjs.map +1 -0
- package/__cjs/link/http/checkFetcher.d.cts +2 -0
- package/__cjs/link/http/createSignalIfSupported.cjs +17 -0
- package/__cjs/link/http/createSignalIfSupported.cjs.map +1 -0
- package/__cjs/link/http/createSignalIfSupported.d.cts +13 -0
- package/__cjs/link/http/index.cjs +24 -0
- package/__cjs/link/http/index.cjs.map +1 -0
- package/__cjs/link/http/index.d.cts +9 -0
- package/__cjs/link/http/parseAndCheckHttpResponse.cjs +163 -0
- package/__cjs/link/http/parseAndCheckHttpResponse.cjs.map +1 -0
- package/__cjs/link/http/parseAndCheckHttpResponse.d.cts +4 -0
- package/__cjs/link/http/rewriteURIForGET.cjs +55 -0
- package/__cjs/link/http/rewriteURIForGET.cjs.map +1 -0
- package/__cjs/link/http/rewriteURIForGET.d.cts +9 -0
- package/__cjs/link/http/selectHttpOptionsAndBody.cjs +109 -0
- package/__cjs/link/http/selectHttpOptionsAndBody.cjs.map +1 -0
- package/__cjs/link/http/selectHttpOptionsAndBody.d.cts +29 -0
- package/__cjs/link/http/selectURI.cjs +18 -0
- package/__cjs/link/http/selectURI.cjs.map +1 -0
- package/__cjs/link/http/selectURI.d.cts +3 -0
- package/__cjs/link/index.cjs +16 -0
- package/__cjs/link/index.cjs.map +1 -0
- package/__cjs/link/index.d.cts +10 -0
- package/__cjs/link/persisted-queries/index.cjs +248 -0
- package/__cjs/link/persisted-queries/index.cjs.map +1 -0
- package/__cjs/link/persisted-queries/index.d.cts +227 -0
- package/__cjs/link/remove-typename/index.cjs +8 -0
- package/__cjs/link/remove-typename/index.cjs.map +1 -0
- package/__cjs/link/remove-typename/index.d.cts +2 -0
- package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs +156 -0
- package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs.map +1 -0
- package/__cjs/link/remove-typename/removeTypenameFromVariables.d.cts +137 -0
- package/__cjs/link/retry/delayFunction.cjs +21 -0
- package/__cjs/link/retry/delayFunction.cjs.map +1 -0
- package/__cjs/link/retry/delayFunction.d.cts +3 -0
- package/__cjs/link/retry/index.cjs +6 -0
- package/__cjs/link/retry/index.cjs.map +1 -0
- package/__cjs/link/retry/index.d.cts +2 -0
- package/__cjs/link/retry/retryFunction.cjs +12 -0
- package/__cjs/link/retry/retryFunction.cjs.map +1 -0
- package/__cjs/link/retry/retryFunction.d.cts +3 -0
- package/__cjs/link/retry/retryLink.cjs +122 -0
- package/__cjs/link/retry/retryLink.cjs.map +1 -0
- package/__cjs/link/retry/retryLink.d.cts +148 -0
- package/__cjs/link/schema/index.cjs +75 -0
- package/__cjs/link/schema/index.cjs.map +1 -0
- package/__cjs/link/schema/index.d.cts +157 -0
- package/__cjs/link/subscriptions/index.cjs +101 -0
- package/__cjs/link/subscriptions/index.cjs.map +1 -0
- package/__cjs/link/subscriptions/index.d.cts +32 -0
- package/__cjs/link/utils/createOperation.cjs +37 -0
- package/__cjs/link/utils/createOperation.cjs.map +1 -0
- package/__cjs/link/utils/createOperation.d.cts +3 -0
- package/__cjs/link/utils/filterOperationVariables.cjs +25 -0
- package/__cjs/link/utils/filterOperationVariables.cjs.map +1 -0
- package/__cjs/link/utils/filterOperationVariables.d.cts +5 -0
- package/__cjs/link/utils/index.cjs +8 -0
- package/__cjs/link/utils/index.cjs.map +1 -0
- package/__cjs/link/utils/index.d.cts +3 -0
- package/__cjs/link/ws/index.cjs +56 -0
- package/__cjs/link/ws/index.cjs.map +1 -0
- package/__cjs/link/ws/index.d.cts +88 -0
- package/__cjs/local-state/LocalState.cjs +584 -0
- package/__cjs/local-state/LocalState.cjs.map +1 -0
- package/__cjs/local-state/LocalState.d.cts +183 -0
- package/__cjs/local-state/index.cjs +6 -0
- package/__cjs/local-state/index.cjs.map +1 -0
- package/__cjs/local-state/index.d.cts +2 -0
- package/__cjs/masking/GraphQLCodegenDataMasking.cjs +3 -0
- package/__cjs/masking/GraphQLCodegenDataMasking.cjs.map +1 -0
- package/__cjs/masking/GraphQLCodegenDataMasking.d.cts +46 -0
- package/__cjs/masking/PreserveTypes.cjs +3 -0
- package/__cjs/masking/PreserveTypes.cjs.map +1 -0
- package/__cjs/masking/PreserveTypes.d.cts +26 -0
- package/__cjs/masking/index.cjs +10 -0
- package/__cjs/masking/index.cjs.map +1 -0
- package/__cjs/masking/index.d.cts +6 -0
- package/__cjs/masking/internal/types.cjs +3 -0
- package/__cjs/masking/internal/types.cjs.map +1 -0
- package/__cjs/masking/internal/types.d.cts +120 -0
- package/__cjs/masking/maskDefinition.cjs +139 -0
- package/__cjs/masking/maskDefinition.cjs.map +1 -0
- package/__cjs/masking/maskDefinition.d.cts +14 -0
- package/__cjs/masking/maskFragment.cjs +41 -0
- package/__cjs/masking/maskFragment.cjs.map +1 -0
- package/__cjs/masking/maskFragment.d.cts +8 -0
- package/__cjs/masking/maskOperation.cjs +28 -0
- package/__cjs/masking/maskOperation.cjs.map +1 -0
- package/__cjs/masking/maskOperation.d.cts +8 -0
- package/__cjs/masking/types.cjs +3 -0
- package/__cjs/masking/types.cjs.map +1 -0
- package/__cjs/masking/types.d.cts +16 -0
- package/__cjs/masking/utils.cjs +47 -0
- package/__cjs/masking/utils.cjs.map +1 -0
- package/__cjs/masking/utils.d.cts +14 -0
- package/__cjs/react/context/ApolloContext.cjs +26 -0
- package/__cjs/react/context/ApolloContext.cjs.map +1 -0
- package/__cjs/react/context/ApolloContext.d.cts +9 -0
- package/__cjs/react/context/ApolloProvider.cjs +21 -0
- package/__cjs/react/context/ApolloProvider.cjs.map +1 -0
- package/__cjs/react/context/ApolloProvider.d.cts +10 -0
- package/__cjs/react/hooks/constants.cjs +5 -0
- package/__cjs/react/hooks/constants.cjs.map +1 -0
- package/__cjs/react/hooks/constants.d.cts +3 -0
- package/__cjs/react/hooks/internal/__use.cjs +26 -0
- package/__cjs/react/hooks/internal/__use.cjs.map +1 -0
- package/__cjs/react/hooks/internal/__use.d.cts +4 -0
- package/__cjs/react/hooks/internal/index.cjs +15 -0
- package/__cjs/react/hooks/internal/index.cjs.map +1 -0
- package/__cjs/react/hooks/internal/index.d.cts +6 -0
- package/__cjs/react/hooks/internal/useDeepMemo.cjs +16 -0
- package/__cjs/react/hooks/internal/useDeepMemo.cjs.map +1 -0
- package/__cjs/react/hooks/internal/useDeepMemo.d.cts +3 -0
- package/__cjs/react/hooks/internal/useIsomorphicLayoutEffect.cjs +13 -0
- package/__cjs/react/hooks/internal/useIsomorphicLayoutEffect.cjs.map +1 -0
- package/__cjs/react/hooks/internal/useIsomorphicLayoutEffect.d.cts +3 -0
- package/__cjs/react/hooks/internal/useRenderGuard.cjs +46 -0
- package/__cjs/react/hooks/internal/useRenderGuard.cjs.map +1 -0
- package/__cjs/react/hooks/internal/useRenderGuard.d.cts +2 -0
- package/__cjs/react/hooks/internal/useSuspenseHookCacheKey.cjs +28 -0
- package/__cjs/react/hooks/internal/useSuspenseHookCacheKey.cjs.map +1 -0
- package/__cjs/react/hooks/internal/useSuspenseHookCacheKey.d.cts +11 -0
- package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs +28 -0
- package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs.map +1 -0
- package/__cjs/react/hooks/internal/validateSuspenseHookOptions.d.cts +3 -0
- package/__cjs/react/hooks/internal/wrapHook.cjs +69 -0
- package/__cjs/react/hooks/internal/wrapHook.cjs.map +1 -0
- package/__cjs/react/hooks/internal/wrapHook.d.cts +66 -0
- package/__cjs/react/hooks/useApolloClient.cjs +29 -0
- package/__cjs/react/hooks/useApolloClient.cjs.map +1 -0
- package/__cjs/react/hooks/useApolloClient.d.cts +18 -0
- package/__cjs/react/hooks/useBackgroundQuery.cjs +76 -0
- package/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -0
- package/__cjs/react/hooks/useBackgroundQuery.d.cts +975 -0
- package/__cjs/react/hooks/useFragment.cjs +58 -0
- package/__cjs/react/hooks/useFragment.cjs.map +1 -0
- package/__cjs/react/hooks/useFragment.d.cts +162 -0
- package/__cjs/react/hooks/useLazyQuery.cjs +150 -0
- package/__cjs/react/hooks/useLazyQuery.cjs.map +1 -0
- package/__cjs/react/hooks/useLazyQuery.d.cts +436 -0
- package/__cjs/react/hooks/useLoadableQuery.cjs +92 -0
- package/__cjs/react/hooks/useLoadableQuery.cjs.map +1 -0
- package/__cjs/react/hooks/useLoadableQuery.d.cts +353 -0
- package/__cjs/react/hooks/useMutation.cjs +163 -0
- package/__cjs/react/hooks/useMutation.cjs.map +1 -0
- package/__cjs/react/hooks/useMutation.d.cts +316 -0
- package/__cjs/react/hooks/useQuery.cjs +219 -0
- package/__cjs/react/hooks/useQuery.cjs.map +1 -0
- package/__cjs/react/hooks/useQuery.d.cts +549 -0
- package/__cjs/react/hooks/useQueryRefHandlers.cjs +72 -0
- package/__cjs/react/hooks/useQueryRefHandlers.cjs.map +1 -0
- package/__cjs/react/hooks/useQueryRefHandlers.d.cts +78 -0
- package/__cjs/react/hooks/useReactiveVar.cjs +39 -0
- package/__cjs/react/hooks/useReactiveVar.cjs.map +1 -0
- package/__cjs/react/hooks/useReactiveVar.d.cts +22 -0
- package/__cjs/react/hooks/useReadQuery.cjs +74 -0
- package/__cjs/react/hooks/useReadQuery.cjs.map +1 -0
- package/__cjs/react/hooks/useReadQuery.d.cts +100 -0
- package/__cjs/react/hooks/useSubscription.cjs +226 -0
- package/__cjs/react/hooks/useSubscription.cjs.map +1 -0
- package/__cjs/react/hooks/useSubscription.d.cts +270 -0
- package/__cjs/react/hooks/useSuspenseFragment.cjs +51 -0
- package/__cjs/react/hooks/useSuspenseFragment.cjs.map +1 -0
- package/__cjs/react/hooks/useSuspenseFragment.d.cts +105 -0
- package/__cjs/react/hooks/useSuspenseQuery.cjs +123 -0
- package/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -0
- package/__cjs/react/hooks/useSuspenseQuery.d.cts +630 -0
- package/__cjs/react/hooks/useSyncExternalStore.cjs +130 -0
- package/__cjs/react/hooks/useSyncExternalStore.cjs.map +1 -0
- package/__cjs/react/hooks/useSyncExternalStore.d.cts +4 -0
- package/__cjs/react/index.cjs +39 -0
- package/__cjs/react/index.cjs.map +1 -0
- package/__cjs/react/index.d.cts +33 -0
- package/__cjs/react/index.react-server.cjs +46 -0
- package/__cjs/react/index.react-server.cjs.map +1 -0
- package/__cjs/react/index.react-server.d.cts +18 -0
- package/__cjs/react/internal/cache/FragmentReference.cjs +116 -0
- package/__cjs/react/internal/cache/FragmentReference.cjs.map +1 -0
- package/__cjs/react/internal/cache/FragmentReference.d.cts +35 -0
- package/__cjs/react/internal/cache/QueryReference.cjs +314 -0
- package/__cjs/react/internal/cache/QueryReference.cjs.map +1 -0
- package/__cjs/react/internal/cache/QueryReference.d.cts +112 -0
- package/__cjs/react/internal/cache/SuspenseCache.cjs +44 -0
- package/__cjs/react/internal/cache/SuspenseCache.cjs.map +1 -0
- package/__cjs/react/internal/cache/SuspenseCache.d.cts +29 -0
- package/__cjs/react/internal/cache/getSuspenseCache.cjs +12 -0
- package/__cjs/react/internal/cache/getSuspenseCache.cjs.map +1 -0
- package/__cjs/react/internal/cache/getSuspenseCache.d.cts +18 -0
- package/__cjs/react/internal/cache/types.cjs +3 -0
- package/__cjs/react/internal/cache/types.cjs.map +1 -0
- package/__cjs/react/internal/cache/types.d.cts +18 -0
- package/__cjs/react/internal/compiler-runtime/index.cjs +32 -0
- package/__cjs/react/internal/compiler-runtime/index.cjs.map +1 -0
- package/__cjs/react/internal/compiler-runtime/index.d.cts +8 -0
- package/__cjs/react/internal/index.cjs +14 -0
- package/__cjs/react/internal/index.cjs.map +1 -0
- package/__cjs/react/internal/index.d.cts +10 -0
- package/__cjs/react/internal/types.cjs +3 -0
- package/__cjs/react/internal/types.cjs.map +1 -0
- package/__cjs/react/internal/types.d.cts +4 -0
- package/__cjs/react/query-preloader/createQueryPreloader.cjs +85 -0
- package/__cjs/react/query-preloader/createQueryPreloader.cjs.map +1 -0
- package/__cjs/react/query-preloader/createQueryPreloader.d.cts +256 -0
- package/__cjs/react/ssr/getDataFromTree.cjs +43 -0
- package/__cjs/react/ssr/getDataFromTree.cjs.map +1 -0
- package/__cjs/react/ssr/getDataFromTree.d.cts +25 -0
- package/__cjs/react/ssr/index.cjs +11 -0
- package/__cjs/react/ssr/index.cjs.map +1 -0
- package/__cjs/react/ssr/index.d.cts +4 -0
- package/__cjs/react/ssr/prerenderStatic.cjs +172 -0
- package/__cjs/react/ssr/prerenderStatic.cjs.map +1 -0
- package/__cjs/react/ssr/prerenderStatic.d.cts +143 -0
- package/__cjs/react/ssr/renderToStringWithData.cjs +18 -0
- package/__cjs/react/ssr/renderToStringWithData.cjs.map +1 -0
- package/__cjs/react/ssr/renderToStringWithData.d.cts +8 -0
- package/__cjs/react/ssr/useSSRQuery.cjs +73 -0
- package/__cjs/react/ssr/useSSRQuery.cjs.map +1 -0
- package/__cjs/react/ssr/useSSRQuery.d.cts +6 -0
- package/__cjs/react/types/deprecated.cjs +3 -0
- package/__cjs/react/types/deprecated.cjs.map +1 -0
- package/__cjs/react/types/deprecated.d.cts +75 -0
- package/__cjs/react/types/types.documentation.cjs +3 -0
- package/__cjs/react/types/types.documentation.cjs.map +1 -0
- package/__cjs/react/types/types.documentation.d.cts +533 -0
- package/__cjs/testing/core/mocking/mockLink.cjs +193 -0
- package/__cjs/testing/core/mocking/mockLink.cjs.map +1 -0
- package/__cjs/testing/core/mocking/mockLink.d.cts +66 -0
- package/__cjs/testing/core/mocking/mockSubscriptionLink.cjs +56 -0
- package/__cjs/testing/core/mocking/mockSubscriptionLink.cjs.map +1 -0
- package/__cjs/testing/core/mocking/mockSubscriptionLink.d.cts +22 -0
- package/__cjs/testing/core/types/deprecated.cjs +3 -0
- package/__cjs/testing/core/types/deprecated.cjs.map +1 -0
- package/__cjs/testing/core/types/deprecated.d.cts +11 -0
- package/__cjs/testing/index.cjs +9 -0
- package/__cjs/testing/index.cjs.map +1 -0
- package/__cjs/testing/index.d.cts +4 -0
- package/__cjs/testing/react/MockedProvider.cjs +43 -0
- package/__cjs/testing/react/MockedProvider.cjs.map +1 -0
- package/__cjs/testing/react/MockedProvider.d.cts +33 -0
- package/__cjs/testing/react/index.cjs +6 -0
- package/__cjs/testing/react/index.cjs.map +1 -0
- package/__cjs/testing/react/index.d.cts +3 -0
- package/__cjs/utilities/DeepPartial.cjs +7 -0
- package/__cjs/utilities/DeepPartial.cjs.map +1 -0
- package/__cjs/utilities/DeepPartial.d.cts +15 -0
- package/__cjs/utilities/HKT.cjs +3 -0
- package/__cjs/utilities/HKT.cjs.map +1 -0
- package/__cjs/utilities/HKT.d.cts +36 -0
- package/__cjs/utilities/caching/index.cjs +6 -0
- package/__cjs/utilities/caching/index.cjs.map +1 -0
- package/__cjs/utilities/caching/index.d.cts +3 -0
- package/__cjs/utilities/caching/sizes.cjs +29 -0
- package/__cjs/utilities/caching/sizes.cjs.map +1 -0
- package/__cjs/utilities/caching/sizes.d.cts +286 -0
- package/__cjs/utilities/common/stripTypename.cjs +25 -0
- package/__cjs/utilities/common/stripTypename.cjs.map +1 -0
- package/__cjs/utilities/common/stripTypename.d.cts +19 -0
- package/__cjs/utilities/environment/index.cjs +5 -0
- package/__cjs/utilities/environment/index.cjs.map +1 -0
- package/__cjs/utilities/environment/index.d.cts +2 -0
- package/__cjs/utilities/environment/index.development.cjs +5 -0
- package/__cjs/utilities/environment/index.development.cjs.map +1 -0
- package/__cjs/utilities/environment/index.development.d.cts +2 -0
- package/__cjs/utilities/environment/index.production.cjs +5 -0
- package/__cjs/utilities/environment/index.production.cjs.map +1 -0
- package/__cjs/utilities/environment/index.production.d.cts +2 -0
- package/__cjs/utilities/graphql/DocumentTransform.cjs +190 -0
- package/__cjs/utilities/graphql/DocumentTransform.cjs.map +1 -0
- package/__cjs/utilities/graphql/DocumentTransform.d.cts +143 -0
- package/__cjs/utilities/graphql/isFormattedExecutionResult.cjs +36 -0
- package/__cjs/utilities/graphql/isFormattedExecutionResult.cjs.map +1 -0
- package/__cjs/utilities/graphql/isFormattedExecutionResult.d.cts +30 -0
- package/__cjs/utilities/graphql/operations.cjs +91 -0
- package/__cjs/utilities/graphql/operations.cjs.map +1 -0
- package/__cjs/utilities/graphql/operations.d.cts +77 -0
- package/__cjs/utilities/graphql/print.cjs +33 -0
- package/__cjs/utilities/graphql/print.cjs.map +1 -0
- package/__cjs/utilities/graphql/print.d.cts +13 -0
- package/__cjs/utilities/graphql/storeUtils.cjs +21 -0
- package/__cjs/utilities/graphql/storeUtils.cjs.map +1 -0
- package/__cjs/utilities/graphql/storeUtils.d.cts +52 -0
- package/__cjs/utilities/graphql/transform.cjs +74 -0
- package/__cjs/utilities/graphql/transform.cjs.map +1 -0
- package/__cjs/utilities/graphql/transform.d.cts +21 -0
- package/__cjs/utilities/index.cjs +35 -0
- package/__cjs/utilities/index.cjs.map +1 -0
- package/__cjs/utilities/index.d.cts +19 -0
- package/__cjs/utilities/internal/DeepMerger.cjs +99 -0
- package/__cjs/utilities/internal/DeepMerger.cjs.map +1 -0
- package/__cjs/utilities/internal/DeepMerger.d.cts +33 -0
- package/__cjs/utilities/internal/argumentsObjectFromField.cjs +18 -0
- package/__cjs/utilities/internal/argumentsObjectFromField.cjs.map +1 -0
- package/__cjs/utilities/internal/argumentsObjectFromField.d.cts +8 -0
- package/__cjs/utilities/internal/bindCacheKey.cjs +21 -0
- package/__cjs/utilities/internal/bindCacheKey.cjs.map +1 -0
- package/__cjs/utilities/internal/bindCacheKey.d.cts +15 -0
- package/__cjs/utilities/internal/caches.cjs +76 -0
- package/__cjs/utilities/internal/caches.cjs.map +1 -0
- package/__cjs/utilities/internal/caches.d.cts +42 -0
- package/__cjs/utilities/internal/canUseDOM.cjs +11 -0
- package/__cjs/utilities/internal/canUseDOM.cjs.map +1 -0
- package/__cjs/utilities/internal/canUseDOM.d.cts +7 -0
- package/__cjs/utilities/internal/canonicalStringify.cjs +112 -0
- package/__cjs/utilities/internal/canonicalStringify.cjs.map +1 -0
- package/__cjs/utilities/internal/canonicalStringify.d.cts +44 -0
- package/__cjs/utilities/internal/checkDocument.cjs +67 -0
- package/__cjs/utilities/internal/checkDocument.cjs.map +1 -0
- package/__cjs/utilities/internal/checkDocument.d.cts +10 -0
- package/__cjs/utilities/internal/cloneDeep.cjs +45 -0
- package/__cjs/utilities/internal/cloneDeep.cjs.map +1 -0
- package/__cjs/utilities/internal/cloneDeep.d.cts +9 -0
- package/__cjs/utilities/internal/combineLatestBatched.cjs +71 -0
- package/__cjs/utilities/internal/combineLatestBatched.cjs.map +1 -0
- package/__cjs/utilities/internal/combineLatestBatched.d.cts +14 -0
- package/__cjs/utilities/internal/compact.cjs +26 -0
- package/__cjs/utilities/internal/compact.cjs.map +1 -0
- package/__cjs/utilities/internal/compact.d.cts +11 -0
- package/__cjs/utilities/internal/constants.cjs +26 -0
- package/__cjs/utilities/internal/constants.cjs.map +1 -0
- package/__cjs/utilities/internal/constants.d.cts +23 -0
- package/__cjs/utilities/internal/createFragmentMap.cjs +19 -0
- package/__cjs/utilities/internal/createFragmentMap.cjs.map +1 -0
- package/__cjs/utilities/internal/createFragmentMap.d.cts +12 -0
- package/__cjs/utilities/internal/createFulfilledPromise.cjs +15 -0
- package/__cjs/utilities/internal/createFulfilledPromise.cjs.map +1 -0
- package/__cjs/utilities/internal/createFulfilledPromise.d.cts +8 -0
- package/__cjs/utilities/internal/createRejectedPromise.cjs +17 -0
- package/__cjs/utilities/internal/createRejectedPromise.cjs.map +1 -0
- package/__cjs/utilities/internal/createRejectedPromise.d.cts +8 -0
- package/__cjs/utilities/internal/dealias.cjs +21 -0
- package/__cjs/utilities/internal/dealias.cjs.map +1 -0
- package/__cjs/utilities/internal/dealias.d.cts +5 -0
- package/__cjs/utilities/internal/decoratePromise.cjs +33 -0
- package/__cjs/utilities/internal/decoratePromise.cjs.map +1 -0
- package/__cjs/utilities/internal/decoratePromise.d.cts +8 -0
- package/__cjs/utilities/internal/deepFreeze.cjs +39 -0
- package/__cjs/utilities/internal/deepFreeze.cjs.map +1 -0
- package/__cjs/utilities/internal/deepFreeze.d.cts +7 -0
- package/__cjs/utilities/internal/equalByQuery.cjs +93 -0
- package/__cjs/utilities/internal/equalByQuery.cjs.map +1 -0
- package/__cjs/utilities/internal/equalByQuery.d.cts +5 -0
- package/__cjs/utilities/internal/filterMap.cjs +31 -0
- package/__cjs/utilities/internal/filterMap.cjs.map +1 -0
- package/__cjs/utilities/internal/filterMap.d.cts +4 -0
- package/__cjs/utilities/internal/getDefaultValues.cjs +22 -0
- package/__cjs/utilities/internal/getDefaultValues.cjs.map +1 -0
- package/__cjs/utilities/internal/getDefaultValues.d.cts +8 -0
- package/__cjs/utilities/internal/getFragmentDefinition.cjs +17 -0
- package/__cjs/utilities/internal/getFragmentDefinition.cjs.map +1 -0
- package/__cjs/utilities/internal/getFragmentDefinition.d.cts +8 -0
- package/__cjs/utilities/internal/getFragmentDefinitions.cjs +12 -0
- package/__cjs/utilities/internal/getFragmentDefinitions.cjs.map +1 -0
- package/__cjs/utilities/internal/getFragmentDefinitions.d.cts +8 -0
- package/__cjs/utilities/internal/getFragmentFromSelection.cjs +27 -0
- package/__cjs/utilities/internal/getFragmentFromSelection.cjs.map +1 -0
- package/__cjs/utilities/internal/getFragmentFromSelection.d.cts +10 -0
- package/__cjs/utilities/internal/getFragmentQueryDocument.cjs +96 -0
- package/__cjs/utilities/internal/getFragmentQueryDocument.cjs.map +1 -0
- package/__cjs/utilities/internal/getFragmentQueryDocument.d.cts +39 -0
- package/__cjs/utilities/internal/getGraphQLErrorsFromResult.cjs +12 -0
- package/__cjs/utilities/internal/getGraphQLErrorsFromResult.cjs.map +1 -0
- package/__cjs/utilities/internal/getGraphQLErrorsFromResult.d.cts +10 -0
- package/__cjs/utilities/internal/getMainDefinition.cjs +61 -0
- package/__cjs/utilities/internal/getMainDefinition.cjs.map +1 -0
- package/__cjs/utilities/internal/getMainDefinition.d.cts +40 -0
- package/__cjs/utilities/internal/getMemoryInternals.cjs +132 -0
- package/__cjs/utilities/internal/getMemoryInternals.cjs.map +1 -0
- package/__cjs/utilities/internal/getMemoryInternals.d.cts +80 -0
- package/__cjs/utilities/internal/getOperationDefinition.cjs +14 -0
- package/__cjs/utilities/internal/getOperationDefinition.cjs.map +1 -0
- package/__cjs/utilities/internal/getOperationDefinition.d.cts +8 -0
- package/__cjs/utilities/internal/getOperationName.cjs +12 -0
- package/__cjs/utilities/internal/getOperationName.cjs.map +1 -0
- package/__cjs/utilities/internal/getOperationName.d.cts +8 -0
- package/__cjs/utilities/internal/getQueryDefinition.cjs +16 -0
- package/__cjs/utilities/internal/getQueryDefinition.cjs.map +1 -0
- package/__cjs/utilities/internal/getQueryDefinition.d.cts +8 -0
- package/__cjs/utilities/internal/getStoreKeyName.cjs +76 -0
- package/__cjs/utilities/internal/getStoreKeyName.cjs.map +1 -0
- package/__cjs/utilities/internal/getStoreKeyName.d.cts +16 -0
- package/__cjs/utilities/internal/globals/global.cjs +17 -0
- package/__cjs/utilities/internal/globals/global.cjs.map +1 -0
- package/__cjs/utilities/internal/globals/global.d.cts +3 -0
- package/__cjs/utilities/internal/globals/index.cjs +9 -0
- package/__cjs/utilities/internal/globals/index.cjs.map +1 -0
- package/__cjs/utilities/internal/globals/index.d.cts +3 -0
- package/__cjs/utilities/internal/globals/maybe.cjs +10 -0
- package/__cjs/utilities/internal/globals/maybe.cjs.map +1 -0
- package/__cjs/utilities/internal/globals/maybe.d.cts +2 -0
- package/__cjs/utilities/internal/graphQLResultHasError.cjs +12 -0
- package/__cjs/utilities/internal/graphQLResultHasError.cjs.map +1 -0
- package/__cjs/utilities/internal/graphQLResultHasError.d.cts +8 -0
- package/__cjs/utilities/internal/hasDirectives.cjs +24 -0
- package/__cjs/utilities/internal/hasDirectives.cjs.map +1 -0
- package/__cjs/utilities/internal/hasDirectives.d.cts +8 -0
- package/__cjs/utilities/internal/hasForcedResolvers.cjs +23 -0
- package/__cjs/utilities/internal/hasForcedResolvers.cjs.map +1 -0
- package/__cjs/utilities/internal/hasForcedResolvers.d.cts +3 -0
- package/__cjs/utilities/internal/index.cjs +121 -0
- package/__cjs/utilities/internal/index.cjs.map +1 -0
- package/__cjs/utilities/internal/index.d.cts +74 -0
- package/__cjs/utilities/internal/index.production.cjs +11 -0
- package/__cjs/utilities/internal/index.production.cjs.map +1 -0
- package/__cjs/utilities/internal/index.production.d.cts +3 -0
- package/__cjs/utilities/internal/isArray.cjs +12 -0
- package/__cjs/utilities/internal/isArray.cjs.map +1 -0
- package/__cjs/utilities/internal/isArray.d.cts +9 -0
- package/__cjs/utilities/internal/isDocumentNode.cjs +15 -0
- package/__cjs/utilities/internal/isDocumentNode.cjs.map +1 -0
- package/__cjs/utilities/internal/isDocumentNode.d.cts +8 -0
- package/__cjs/utilities/internal/isField.cjs +12 -0
- package/__cjs/utilities/internal/isField.cjs.map +1 -0
- package/__cjs/utilities/internal/isField.d.cts +8 -0
- package/__cjs/utilities/internal/isNonEmptyArray.cjs +12 -0
- package/__cjs/utilities/internal/isNonEmptyArray.cjs.map +1 -0
- package/__cjs/utilities/internal/isNonEmptyArray.d.cts +7 -0
- package/__cjs/utilities/internal/isNonNullObject.cjs +12 -0
- package/__cjs/utilities/internal/isNonNullObject.cjs.map +1 -0
- package/__cjs/utilities/internal/isNonNullObject.d.cts +7 -0
- package/__cjs/utilities/internal/isPlainObject.cjs +15 -0
- package/__cjs/utilities/internal/isPlainObject.cjs.map +1 -0
- package/__cjs/utilities/internal/isPlainObject.d.cts +7 -0
- package/__cjs/utilities/internal/makeReference.cjs +12 -0
- package/__cjs/utilities/internal/makeReference.cjs.map +1 -0
- package/__cjs/utilities/internal/makeReference.d.cts +8 -0
- package/__cjs/utilities/internal/makeUniqueId.cjs +18 -0
- package/__cjs/utilities/internal/makeUniqueId.cjs.map +1 -0
- package/__cjs/utilities/internal/makeUniqueId.d.cts +10 -0
- package/__cjs/utilities/internal/mapObservableFragment.cjs +27 -0
- package/__cjs/utilities/internal/mapObservableFragment.cjs.map +1 -0
- package/__cjs/utilities/internal/mapObservableFragment.d.cts +3 -0
- package/__cjs/utilities/internal/maybeDeepFreeze.cjs +17 -0
- package/__cjs/utilities/internal/maybeDeepFreeze.cjs.map +1 -0
- package/__cjs/utilities/internal/maybeDeepFreeze.d.cts +7 -0
- package/__cjs/utilities/internal/memoize.cjs +31 -0
- package/__cjs/utilities/internal/memoize.cjs.map +1 -0
- package/__cjs/utilities/internal/memoize.d.cts +8 -0
- package/__cjs/utilities/internal/mergeDeep.cjs +26 -0
- package/__cjs/utilities/internal/mergeDeep.cjs.map +1 -0
- package/__cjs/utilities/internal/mergeDeep.d.cts +8 -0
- package/__cjs/utilities/internal/mergeDeepArray.cjs +27 -0
- package/__cjs/utilities/internal/mergeDeepArray.cjs.map +1 -0
- package/__cjs/utilities/internal/mergeDeepArray.d.cts +7 -0
- package/__cjs/utilities/internal/mergeOptions.cjs +18 -0
- package/__cjs/utilities/internal/mergeOptions.cjs.map +1 -0
- package/__cjs/utilities/internal/mergeOptions.d.cts +10 -0
- package/__cjs/utilities/internal/omitDeep.cjs +48 -0
- package/__cjs/utilities/internal/omitDeep.cjs.map +1 -0
- package/__cjs/utilities/internal/omitDeep.d.cts +8 -0
- package/__cjs/utilities/internal/ponyfills/FinalizationRegistry.cjs +61 -0
- package/__cjs/utilities/internal/ponyfills/FinalizationRegistry.cjs.map +1 -0
- package/__cjs/utilities/internal/ponyfills/FinalizationRegistry.d.cts +11 -0
- package/__cjs/utilities/internal/ponyfills/index.cjs +6 -0
- package/__cjs/utilities/internal/ponyfills/index.cjs.map +1 -0
- package/__cjs/utilities/internal/ponyfills/index.d.cts +3 -0
- package/__cjs/utilities/internal/ponyfills/index.react-native.cjs +6 -0
- package/__cjs/utilities/internal/ponyfills/index.react-native.cjs.map +1 -0
- package/__cjs/utilities/internal/ponyfills/index.react-native.d.cts +2 -0
- package/__cjs/utilities/internal/preventUnhandledRejection.cjs +8 -0
- package/__cjs/utilities/internal/preventUnhandledRejection.cjs.map +1 -0
- package/__cjs/utilities/internal/preventUnhandledRejection.d.cts +2 -0
- package/__cjs/utilities/internal/removeDirectivesFromDocument.cjs +302 -0
- package/__cjs/utilities/internal/removeDirectivesFromDocument.cjs.map +1 -0
- package/__cjs/utilities/internal/removeDirectivesFromDocument.d.cts +14 -0
- package/__cjs/utilities/internal/removeFragmentSpreads.cjs +14 -0
- package/__cjs/utilities/internal/removeFragmentSpreads.cjs.map +1 -0
- package/__cjs/utilities/internal/removeFragmentSpreads.d.cts +3 -0
- package/__cjs/utilities/internal/resultKeyNameFromField.cjs +12 -0
- package/__cjs/utilities/internal/resultKeyNameFromField.cjs.map +1 -0
- package/__cjs/utilities/internal/resultKeyNameFromField.d.cts +8 -0
- package/__cjs/utilities/internal/shouldInclude.cjs +50 -0
- package/__cjs/utilities/internal/shouldInclude.cjs.map +1 -0
- package/__cjs/utilities/internal/shouldInclude.d.cts +8 -0
- package/__cjs/utilities/internal/storeKeyNameFromField.cjs +29 -0
- package/__cjs/utilities/internal/storeKeyNameFromField.cjs.map +1 -0
- package/__cjs/utilities/internal/storeKeyNameFromField.d.cts +8 -0
- package/__cjs/utilities/internal/stringifyForDisplay.cjs +18 -0
- package/__cjs/utilities/internal/stringifyForDisplay.cjs.map +1 -0
- package/__cjs/utilities/internal/stringifyForDisplay.d.cts +7 -0
- package/__cjs/utilities/internal/toQueryResult.cjs +18 -0
- package/__cjs/utilities/internal/toQueryResult.cjs.map +1 -0
- package/__cjs/utilities/internal/toQueryResult.d.cts +8 -0
- package/__cjs/utilities/internal/types/ApplyHKT.cjs +3 -0
- package/__cjs/utilities/internal/types/ApplyHKT.cjs.map +1 -0
- package/__cjs/utilities/internal/types/ApplyHKT.d.cts +13 -0
- package/__cjs/utilities/internal/types/ApplyHKTImplementationWithDefault.cjs +3 -0
- package/__cjs/utilities/internal/types/ApplyHKTImplementationWithDefault.cjs.map +1 -0
- package/__cjs/utilities/internal/types/ApplyHKTImplementationWithDefault.d.cts +11 -0
- package/__cjs/utilities/internal/types/DecoratedPromise.cjs +3 -0
- package/__cjs/utilities/internal/types/DecoratedPromise.cjs.map +1 -0
- package/__cjs/utilities/internal/types/DecoratedPromise.d.cts +10 -0
- package/__cjs/utilities/internal/types/DeepOmit.cjs +3 -0
- package/__cjs/utilities/internal/types/DeepOmit.cjs.map +1 -0
- package/__cjs/utilities/internal/types/DeepOmit.d.cts +15 -0
- package/__cjs/utilities/internal/types/DocumentationTypes.cjs +3 -0
- package/__cjs/utilities/internal/types/DocumentationTypes.cjs.map +1 -0
- package/__cjs/utilities/internal/types/DocumentationTypes.d.cts +88 -0
- package/__cjs/utilities/internal/types/ExtensionsWithStreamDetails.cjs +3 -0
- package/__cjs/utilities/internal/types/ExtensionsWithStreamDetails.cjs.map +1 -0
- package/__cjs/utilities/internal/types/ExtensionsWithStreamDetails.d.cts +12 -0
- package/__cjs/utilities/internal/types/FragmentMap.cjs +3 -0
- package/__cjs/utilities/internal/types/FragmentMap.cjs.map +1 -0
- package/__cjs/utilities/internal/types/FragmentMap.d.cts +12 -0
- package/__cjs/utilities/internal/types/FragmentMapFunction.cjs +3 -0
- package/__cjs/utilities/internal/types/FragmentMapFunction.cjs.map +1 -0
- package/__cjs/utilities/internal/types/FragmentMapFunction.d.cts +8 -0
- package/__cjs/utilities/internal/types/FulfilledPromise.cjs +3 -0
- package/__cjs/utilities/internal/types/FulfilledPromise.cjs.map +1 -0
- package/__cjs/utilities/internal/types/FulfilledPromise.d.cts +10 -0
- package/__cjs/utilities/internal/types/IsAny.cjs +3 -0
- package/__cjs/utilities/internal/types/IsAny.cjs.map +1 -0
- package/__cjs/utilities/internal/types/IsAny.d.cts +7 -0
- package/__cjs/utilities/internal/types/NoInfer.cjs +3 -0
- package/__cjs/utilities/internal/types/NoInfer.cjs.map +1 -0
- package/__cjs/utilities/internal/types/NoInfer.d.cts +35 -0
- package/__cjs/utilities/internal/types/PendingPromise.cjs +3 -0
- package/__cjs/utilities/internal/types/PendingPromise.cjs.map +1 -0
- package/__cjs/utilities/internal/types/PendingPromise.d.cts +9 -0
- package/__cjs/utilities/internal/types/Prettify.cjs +3 -0
- package/__cjs/utilities/internal/types/Prettify.cjs.map +1 -0
- package/__cjs/utilities/internal/types/Prettify.d.cts +9 -0
- package/__cjs/utilities/internal/types/Primitive.cjs +3 -0
- package/__cjs/utilities/internal/types/Primitive.cjs.map +1 -0
- package/__cjs/utilities/internal/types/Primitive.d.cts +7 -0
- package/__cjs/utilities/internal/types/RejectedPromise.cjs +3 -0
- package/__cjs/utilities/internal/types/RejectedPromise.cjs.map +1 -0
- package/__cjs/utilities/internal/types/RejectedPromise.d.cts +10 -0
- package/__cjs/utilities/internal/types/RemoveIndexSignature.cjs +3 -0
- package/__cjs/utilities/internal/types/RemoveIndexSignature.cjs.map +1 -0
- package/__cjs/utilities/internal/types/RemoveIndexSignature.d.cts +9 -0
- package/__cjs/utilities/internal/types/StreamInfoTrie.cjs +3 -0
- package/__cjs/utilities/internal/types/StreamInfoTrie.cjs.map +1 -0
- package/__cjs/utilities/internal/types/StreamInfoTrie.d.cts +16 -0
- package/__cjs/utilities/internal/types/TupleToIntersection.cjs +3 -0
- package/__cjs/utilities/internal/types/TupleToIntersection.cjs.map +1 -0
- package/__cjs/utilities/internal/types/TupleToIntersection.d.cts +2 -0
- package/__cjs/utilities/internal/types/VariablesOption.cjs +3 -0
- package/__cjs/utilities/internal/types/VariablesOption.cjs.map +1 -0
- package/__cjs/utilities/internal/types/VariablesOption.d.cts +26 -0
- package/__cjs/utilities/internal/valueToObjectRepresentation.cjs +44 -0
- package/__cjs/utilities/internal/valueToObjectRepresentation.cjs.map +1 -0
- package/__cjs/utilities/internal/valueToObjectRepresentation.d.cts +8 -0
- package/__cjs/utilities/invariant/index.cjs +100 -0
- package/__cjs/utilities/invariant/index.cjs.map +1 -0
- package/__cjs/utilities/invariant/index.d.cts +47 -0
- package/__cjs/utilities/invariant/index.development.cjs +16 -0
- package/__cjs/utilities/invariant/index.development.cjs.map +1 -0
- package/__cjs/utilities/invariant/index.development.d.cts +4 -0
- package/__cjs/utilities/isNetworkRequestInFlight.cjs +12 -0
- package/__cjs/utilities/isNetworkRequestInFlight.cjs.map +1 -0
- package/__cjs/utilities/isNetworkRequestInFlight.d.cts +7 -0
- package/__cjs/utilities/isNetworkRequestSettled.cjs +11 -0
- package/__cjs/utilities/isNetworkRequestSettled.cjs.map +1 -0
- package/__cjs/utilities/isNetworkRequestSettled.d.cts +7 -0
- package/__cjs/utilities/policies/pagination.cjs +238 -0
- package/__cjs/utilities/policies/pagination.cjs.map +1 -0
- package/__cjs/utilities/policies/pagination.d.cts +51 -0
- package/__cjs/utilities/subscriptions/relay/index.cjs +62 -0
- package/__cjs/utilities/subscriptions/relay/index.cjs.map +1 -0
- package/__cjs/utilities/subscriptions/relay/index.d.cts +10 -0
- package/__cjs/v4-migration.cjs +9 -0
- package/__cjs/v4-migration.cjs.map +1 -0
- package/__cjs/v4-migration.d.cts +826 -0
- package/__cjs/version.cjs +6 -0
- package/__cjs/version.cjs.map +1 -0
- package/__cjs/version.d.cts +3 -0
- package/cache/core/cache.d.ts +291 -0
- package/cache/core/cache.js +354 -0
- package/cache/core/cache.js.map +1 -0
- package/cache/core/types/Cache.d.ts +302 -0
- package/cache/core/types/Cache.js +2 -0
- package/cache/core/types/Cache.js.map +1 -0
- package/cache/core/types/common.d.ts +64 -0
- package/cache/core/types/common.js +29 -0
- package/cache/core/types/common.js.map +1 -0
- package/cache/deprecated.d.ts +6 -0
- package/cache/deprecated.js +2 -0
- package/cache/deprecated.js.map +1 -0
- package/cache/index.d.ts +19 -0
- package/cache/index.js +10 -0
- package/cache/index.js.map +1 -0
- package/cache/inmemory/entityStore.d.ts +94 -0
- package/cache/inmemory/entityStore.js +669 -0
- package/cache/inmemory/entityStore.js.map +1 -0
- package/cache/inmemory/fragmentRegistry.d.ts +9 -0
- package/cache/inmemory/fragmentRegistry.js +131 -0
- package/cache/inmemory/fragmentRegistry.js.map +1 -0
- package/cache/inmemory/helpers.d.ts +21 -0
- package/cache/inmemory/helpers.js +82 -0
- package/cache/inmemory/helpers.js.map +1 -0
- package/cache/inmemory/inMemoryCache.d.ts +114 -0
- package/cache/inmemory/inMemoryCache.js +506 -0
- package/cache/inmemory/inMemoryCache.js.map +1 -0
- package/cache/inmemory/key-extractor.d.ts +9 -0
- package/cache/inmemory/key-extractor.js +185 -0
- package/cache/inmemory/key-extractor.js.map +1 -0
- package/cache/inmemory/policies.d.ts +126 -0
- package/cache/inmemory/policies.js +664 -0
- package/cache/inmemory/policies.js.map +1 -0
- package/cache/inmemory/reactiveVars.d.ts +19 -0
- package/cache/inmemory/reactiveVars.js +83 -0
- package/cache/inmemory/reactiveVars.js.map +1 -0
- package/cache/inmemory/readFromStore.d.ts +26 -0
- package/cache/inmemory/readFromStore.js +289 -0
- package/cache/inmemory/readFromStore.js.map +1 -0
- package/cache/inmemory/types.d.ts +109 -0
- package/cache/inmemory/types.js +2 -0
- package/cache/inmemory/types.js.map +1 -0
- package/cache/inmemory/writeToStore.d.ts +38 -0
- package/cache/inmemory/writeToStore.js +586 -0
- package/cache/inmemory/writeToStore.js.map +1 -0
- package/changes.json +26 -0
- package/core/ApolloClient.d.ts +1210 -0
- package/core/ApolloClient.js +531 -0
- package/core/ApolloClient.js.map +1 -0
- package/core/ObservableQuery.d.ts +467 -0
- package/core/ObservableQuery.js +1404 -0
- package/core/ObservableQuery.js.map +1 -0
- package/core/QueryInfo.d.ts +70 -0
- package/core/QueryInfo.js +397 -0
- package/core/QueryInfo.js.map +1 -0
- package/core/QueryManager.d.ts +168 -0
- package/core/QueryManager.js +1147 -0
- package/core/QueryManager.js.map +1 -0
- package/core/deprecated.d.ts +29 -0
- package/core/deprecated.js +2 -0
- package/core/deprecated.js.map +1 -0
- package/core/index.d.ts +31 -0
- package/core/index.js +34 -0
- package/core/index.js.map +1 -0
- package/core/networkStatus.d.ts +47 -0
- package/core/networkStatus.js +48 -0
- package/core/networkStatus.js.map +1 -0
- package/core/types.d.ts +327 -0
- package/core/types.js +2 -0
- package/core/types.js.map +1 -0
- package/core/watchQueryOptions.d.ts +75 -0
- package/core/watchQueryOptions.js +2 -0
- package/core/watchQueryOptions.js.map +1 -0
- package/dev/index.d.ts +6 -0
- package/dev/index.js +5 -0
- package/dev/index.js.map +1 -0
- package/dev/loadDevMessages.d.ts +2 -0
- package/dev/loadDevMessages.js +6 -0
- package/dev/loadDevMessages.js.map +1 -0
- package/dev/loadErrorMessageHandler.d.ts +8 -0
- package/dev/loadErrorMessageHandler.js +24 -0
- package/dev/loadErrorMessageHandler.js.map +1 -0
- package/dev/loadErrorMessages.d.ts +2 -0
- package/dev/loadErrorMessages.js +6 -0
- package/dev/loadErrorMessages.js.map +1 -0
- package/dev/setErrorMessageHandler.d.ts +34 -0
- package/dev/setErrorMessageHandler.js +9 -0
- package/dev/setErrorMessageHandler.js.map +1 -0
- package/dev/symbol.d.ts +10 -0
- package/dev/symbol.js +4 -0
- package/dev/symbol.js.map +1 -0
- package/errors/CombinedGraphQLErrors.d.ts +191 -0
- package/errors/CombinedGraphQLErrors.js +101 -0
- package/errors/CombinedGraphQLErrors.js.map +1 -0
- package/errors/CombinedProtocolErrors.d.ts +150 -0
- package/errors/CombinedProtocolErrors.js +80 -0
- package/errors/CombinedProtocolErrors.js.map +1 -0
- package/errors/LinkError.d.ts +61 -0
- package/errors/LinkError.js +63 -0
- package/errors/LinkError.js.map +1 -0
- package/errors/LocalStateError.d.ts +56 -0
- package/errors/LocalStateError.js +53 -0
- package/errors/LocalStateError.js.map +1 -0
- package/errors/ServerError.d.ts +87 -0
- package/errors/ServerError.js +75 -0
- package/errors/ServerError.js.map +1 -0
- package/errors/ServerParseError.d.ts +82 -0
- package/errors/ServerParseError.js +72 -0
- package/errors/ServerParseError.js.map +1 -0
- package/errors/UnconventionalError.d.ts +55 -0
- package/errors/UnconventionalError.js +63 -0
- package/errors/UnconventionalError.js.map +1 -0
- package/errors/index.d.ts +14 -0
- package/errors/index.js +31 -0
- package/errors/index.js.map +1 -0
- package/errors/isErrorLike.d.ts +3 -0
- package/errors/isErrorLike.js +9 -0
- package/errors/isErrorLike.js.map +1 -0
- package/errors/utils.d.ts +3 -0
- package/errors/utils.js +14 -0
- package/errors/utils.js.map +1 -0
- package/incremental/handlers/defer20220824.d.ts +66 -0
- package/incremental/handlers/defer20220824.js +122 -0
- package/incremental/handlers/defer20220824.js.map +1 -0
- package/incremental/handlers/graphql17Alpha9.d.ts +98 -0
- package/incremental/handlers/graphql17Alpha9.js +223 -0
- package/incremental/handlers/graphql17Alpha9.js.map +1 -0
- package/incremental/handlers/notImplemented.d.ts +20 -0
- package/incremental/handlers/notImplemented.js +15 -0
- package/incremental/handlers/notImplemented.js.map +1 -0
- package/incremental/index.d.ts +5 -0
- package/incremental/index.js +4 -0
- package/incremental/index.js.map +1 -0
- package/incremental/types.d.ts +33 -0
- package/incremental/types.js +2 -0
- package/incremental/types.js.map +1 -0
- package/invariantErrorCodes.d.ts +13 -0
- package/invariantErrorCodes.js +725 -0
- package/invariantErrorCodes.js.map +1 -0
- package/legacyEntryPoints/apollo-client.cjs +1 -0
- package/legacyEntryPoints/apollo-client.d.cts +1 -0
- package/legacyEntryPoints/cache/cache.cjs +1 -0
- package/legacyEntryPoints/cache/cache.d.cts +1 -0
- package/legacyEntryPoints/cache/index.d.ts +1 -0
- package/legacyEntryPoints/cache/index.js +1 -0
- package/legacyEntryPoints/core/core.cjs +1 -0
- package/legacyEntryPoints/core/core.d.cts +1 -0
- package/legacyEntryPoints/core/index.d.ts +1 -0
- package/legacyEntryPoints/core/index.js +1 -0
- package/legacyEntryPoints/dev/dev.cjs +1 -0
- package/legacyEntryPoints/dev/dev.d.cts +1 -0
- package/legacyEntryPoints/dev/index.d.ts +1 -0
- package/legacyEntryPoints/dev/index.js +1 -0
- package/legacyEntryPoints/errors/errors.cjs +1 -0
- package/legacyEntryPoints/errors/errors.d.cts +1 -0
- package/legacyEntryPoints/errors/index.d.ts +1 -0
- package/legacyEntryPoints/errors/index.js +1 -0
- package/legacyEntryPoints/incremental/incremental.cjs +1 -0
- package/legacyEntryPoints/incremental/incremental.d.cts +1 -0
- package/legacyEntryPoints/incremental/index.d.ts +1 -0
- package/legacyEntryPoints/incremental/index.js +1 -0
- package/legacyEntryPoints/index.d.ts +1 -0
- package/legacyEntryPoints/index.js +1 -0
- package/legacyEntryPoints/link/batch/batch.cjs +1 -0
- package/legacyEntryPoints/link/batch/batch.d.cts +1 -0
- package/legacyEntryPoints/link/batch/index.d.ts +1 -0
- package/legacyEntryPoints/link/batch/index.js +1 -0
- package/legacyEntryPoints/link/batch-http/batch-http.cjs +1 -0
- package/legacyEntryPoints/link/batch-http/batch-http.d.cts +1 -0
- package/legacyEntryPoints/link/batch-http/index.d.ts +1 -0
- package/legacyEntryPoints/link/batch-http/index.js +1 -0
- package/legacyEntryPoints/link/client-awareness/client-awareness.cjs +1 -0
- package/legacyEntryPoints/link/client-awareness/client-awareness.d.cts +1 -0
- package/legacyEntryPoints/link/client-awareness/index.d.ts +1 -0
- package/legacyEntryPoints/link/client-awareness/index.js +1 -0
- package/legacyEntryPoints/link/context/context.cjs +1 -0
- package/legacyEntryPoints/link/context/context.d.cts +1 -0
- package/legacyEntryPoints/link/context/index.d.ts +1 -0
- package/legacyEntryPoints/link/context/index.js +1 -0
- package/legacyEntryPoints/link/error/error.cjs +1 -0
- package/legacyEntryPoints/link/error/error.d.cts +1 -0
- package/legacyEntryPoints/link/error/index.d.ts +1 -0
- package/legacyEntryPoints/link/error/index.js +1 -0
- package/legacyEntryPoints/link/http/http.cjs +1 -0
- package/legacyEntryPoints/link/http/http.d.cts +1 -0
- package/legacyEntryPoints/link/http/index.d.ts +1 -0
- package/legacyEntryPoints/link/http/index.js +1 -0
- package/legacyEntryPoints/link/index.d.ts +1 -0
- package/legacyEntryPoints/link/index.js +1 -0
- package/legacyEntryPoints/link/link.cjs +1 -0
- package/legacyEntryPoints/link/link.d.cts +1 -0
- package/legacyEntryPoints/link/persisted-queries/index.d.ts +1 -0
- package/legacyEntryPoints/link/persisted-queries/index.js +1 -0
- package/legacyEntryPoints/link/persisted-queries/persisted-queries.cjs +1 -0
- package/legacyEntryPoints/link/persisted-queries/persisted-queries.d.cts +1 -0
- package/legacyEntryPoints/link/remove-typename/index.d.ts +1 -0
- package/legacyEntryPoints/link/remove-typename/index.js +1 -0
- package/legacyEntryPoints/link/remove-typename/remove-typename.cjs +1 -0
- package/legacyEntryPoints/link/remove-typename/remove-typename.d.cts +1 -0
- package/legacyEntryPoints/link/retry/index.d.ts +1 -0
- package/legacyEntryPoints/link/retry/index.js +1 -0
- package/legacyEntryPoints/link/retry/retry.cjs +1 -0
- package/legacyEntryPoints/link/retry/retry.d.cts +1 -0
- package/legacyEntryPoints/link/schema/index.d.ts +1 -0
- package/legacyEntryPoints/link/schema/index.js +1 -0
- package/legacyEntryPoints/link/schema/schema.cjs +1 -0
- package/legacyEntryPoints/link/schema/schema.d.cts +1 -0
- package/legacyEntryPoints/link/subscriptions/index.d.ts +1 -0
- package/legacyEntryPoints/link/subscriptions/index.js +1 -0
- package/legacyEntryPoints/link/subscriptions/subscriptions.cjs +1 -0
- package/legacyEntryPoints/link/subscriptions/subscriptions.d.cts +1 -0
- package/legacyEntryPoints/link/utils/index.d.ts +1 -0
- package/legacyEntryPoints/link/utils/index.js +1 -0
- package/legacyEntryPoints/link/utils/utils.cjs +1 -0
- package/legacyEntryPoints/link/utils/utils.d.cts +1 -0
- package/legacyEntryPoints/link/ws/index.d.ts +1 -0
- package/legacyEntryPoints/link/ws/index.js +1 -0
- package/legacyEntryPoints/link/ws/ws.cjs +1 -0
- package/legacyEntryPoints/link/ws/ws.d.cts +1 -0
- package/legacyEntryPoints/local-state/index.d.ts +1 -0
- package/legacyEntryPoints/local-state/index.js +1 -0
- package/legacyEntryPoints/local-state/local-state.cjs +1 -0
- package/legacyEntryPoints/local-state/local-state.d.cts +1 -0
- package/legacyEntryPoints/main.cjs +1 -0
- package/legacyEntryPoints/main.d.cts +1 -0
- package/legacyEntryPoints/masking/index.d.ts +1 -0
- package/legacyEntryPoints/masking/index.js +1 -0
- package/legacyEntryPoints/masking/masking.cjs +1 -0
- package/legacyEntryPoints/masking/masking.d.cts +1 -0
- package/legacyEntryPoints/react/index.d.ts +1 -0
- package/legacyEntryPoints/react/index.js +1 -0
- package/legacyEntryPoints/react/internal/compiler-runtime/compiler-runtime.cjs +1 -0
- package/legacyEntryPoints/react/internal/compiler-runtime/compiler-runtime.d.cts +1 -0
- package/legacyEntryPoints/react/internal/compiler-runtime/index.d.ts +1 -0
- package/legacyEntryPoints/react/internal/compiler-runtime/index.js +1 -0
- package/legacyEntryPoints/react/internal/index.d.ts +1 -0
- package/legacyEntryPoints/react/internal/index.js +1 -0
- package/legacyEntryPoints/react/internal/internal.cjs +1 -0
- package/legacyEntryPoints/react/internal/internal.d.cts +1 -0
- package/legacyEntryPoints/react/react.cjs +1 -0
- package/legacyEntryPoints/react/react.d.cts +1 -0
- package/legacyEntryPoints/react/ssr/index.d.ts +1 -0
- package/legacyEntryPoints/react/ssr/index.js +1 -0
- package/legacyEntryPoints/react/ssr/ssr.cjs +1 -0
- package/legacyEntryPoints/react/ssr/ssr.d.cts +1 -0
- package/legacyEntryPoints/testing/index.d.ts +1 -0
- package/legacyEntryPoints/testing/index.js +1 -0
- package/legacyEntryPoints/testing/react/index.d.ts +1 -0
- package/legacyEntryPoints/testing/react/index.js +1 -0
- package/legacyEntryPoints/testing/react/react.cjs +1 -0
- package/legacyEntryPoints/testing/react/react.d.cts +1 -0
- package/legacyEntryPoints/testing/testing.cjs +1 -0
- package/legacyEntryPoints/testing/testing.d.cts +1 -0
- package/legacyEntryPoints/utilities/environment/environment.cjs +1 -0
- package/legacyEntryPoints/utilities/environment/environment.d.cts +1 -0
- package/legacyEntryPoints/utilities/environment/index.d.ts +1 -0
- package/legacyEntryPoints/utilities/environment/index.js +1 -0
- package/legacyEntryPoints/utilities/index.d.ts +1 -0
- package/legacyEntryPoints/utilities/index.js +1 -0
- package/legacyEntryPoints/utilities/internal/globals/globals.cjs +1 -0
- package/legacyEntryPoints/utilities/internal/globals/globals.d.cts +1 -0
- package/legacyEntryPoints/utilities/internal/globals/index.d.ts +1 -0
- package/legacyEntryPoints/utilities/internal/globals/index.js +1 -0
- package/legacyEntryPoints/utilities/internal/index.d.ts +1 -0
- package/legacyEntryPoints/utilities/internal/index.js +1 -0
- package/legacyEntryPoints/utilities/internal/internal.cjs +1 -0
- package/legacyEntryPoints/utilities/internal/internal.d.cts +1 -0
- package/legacyEntryPoints/utilities/internal/ponyfills/index.d.ts +1 -0
- package/legacyEntryPoints/utilities/internal/ponyfills/index.js +1 -0
- package/legacyEntryPoints/utilities/internal/ponyfills/ponyfills.cjs +1 -0
- package/legacyEntryPoints/utilities/internal/ponyfills/ponyfills.d.cts +1 -0
- package/legacyEntryPoints/utilities/invariant/index.d.ts +1 -0
- package/legacyEntryPoints/utilities/invariant/index.js +1 -0
- package/legacyEntryPoints/utilities/invariant/invariant.cjs +1 -0
- package/legacyEntryPoints/utilities/invariant/invariant.d.cts +1 -0
- package/legacyEntryPoints/utilities/subscriptions/relay/index.d.ts +1 -0
- package/legacyEntryPoints/utilities/subscriptions/relay/index.js +1 -0
- package/legacyEntryPoints/utilities/subscriptions/relay/relay.cjs +1 -0
- package/legacyEntryPoints/utilities/subscriptions/relay/relay.d.cts +1 -0
- package/legacyEntryPoints/utilities/utilities.cjs +1 -0
- package/legacyEntryPoints/utilities/utilities.d.cts +1 -0
- package/legacyEntryPoints/v4-migration/index.d.ts +1 -0
- package/legacyEntryPoints/v4-migration/index.js +1 -0
- package/legacyEntryPoints/v4-migration/v4-migration.cjs +1 -0
- package/legacyEntryPoints/v4-migration/v4-migration.d.cts +1 -0
- package/link/batch/batchLink.d.ts +117 -0
- package/link/batch/batchLink.js +49 -0
- package/link/batch/batchLink.js.map +1 -0
- package/link/batch/batching.d.ts +27 -0
- package/link/batch/batching.js +152 -0
- package/link/batch/batching.js.map +1 -0
- package/link/batch/index.d.ts +2 -0
- package/link/batch/index.js +2 -0
- package/link/batch/index.js.map +1 -0
- package/link/batch-http/BaseBatchHttpLink.d.ts +68 -0
- package/link/batch-http/BaseBatchHttpLink.js +152 -0
- package/link/batch-http/BaseBatchHttpLink.js.map +1 -0
- package/link/batch-http/batchHttpLink.d.ts +49 -0
- package/link/batch-http/batchHttpLink.js +38 -0
- package/link/batch-http/batchHttpLink.js.map +1 -0
- package/link/batch-http/index.d.ts +3 -0
- package/link/batch-http/index.js +3 -0
- package/link/batch-http/index.js.map +1 -0
- package/link/client-awareness/ClientAwarenessLink.d.ts +114 -0
- package/link/client-awareness/ClientAwarenessLink.js +86 -0
- package/link/client-awareness/ClientAwarenessLink.js.map +1 -0
- package/link/client-awareness/index.d.ts +2 -0
- package/link/client-awareness/index.js +2 -0
- package/link/client-awareness/index.js.map +1 -0
- package/link/context/index.d.ts +85 -0
- package/link/context/index.js +63 -0
- package/link/context/index.js.map +1 -0
- package/link/core/ApolloLink.d.ts +384 -0
- package/link/core/ApolloLink.js +266 -0
- package/link/core/ApolloLink.js.map +1 -0
- package/link/core/concat.d.ts +7 -0
- package/link/core/concat.js +7 -0
- package/link/core/concat.js.map +1 -0
- package/link/core/deprecated.d.ts +10 -0
- package/link/core/deprecated.js +2 -0
- package/link/core/deprecated.js.map +1 -0
- package/link/core/empty.d.ts +7 -0
- package/link/core/empty.js +7 -0
- package/link/core/empty.js.map +1 -0
- package/link/core/execute.d.ts +3 -0
- package/link/core/execute.js +3 -0
- package/link/core/execute.js.map +1 -0
- package/link/core/from.d.ts +7 -0
- package/link/core/from.js +7 -0
- package/link/core/from.js.map +1 -0
- package/link/core/split.d.ts +7 -0
- package/link/core/split.js +7 -0
- package/link/core/split.js.map +1 -0
- package/link/core/types.d.ts +6 -0
- package/link/core/types.js +2 -0
- package/link/core/types.js.map +1 -0
- package/link/error/index.d.ts +105 -0
- package/link/error/index.js +124 -0
- package/link/error/index.js.map +1 -0
- package/link/http/BaseHttpLink.d.ts +260 -0
- package/link/http/BaseHttpLink.js +157 -0
- package/link/http/BaseHttpLink.js.map +1 -0
- package/link/http/HttpLink.d.ts +58 -0
- package/link/http/HttpLink.js +41 -0
- package/link/http/HttpLink.js.map +1 -0
- package/link/http/checkFetcher.d.ts +2 -0
- package/link/http/checkFetcher.js +5 -0
- package/link/http/checkFetcher.js.map +1 -0
- package/link/http/createSignalIfSupported.d.ts +13 -0
- package/link/http/createSignalIfSupported.js +13 -0
- package/link/http/createSignalIfSupported.js.map +1 -0
- package/link/http/index.d.ts +9 -0
- package/link/http/index.js +10 -0
- package/link/http/index.js.map +1 -0
- package/link/http/parseAndCheckHttpResponse.d.ts +4 -0
- package/link/http/parseAndCheckHttpResponse.js +159 -0
- package/link/http/parseAndCheckHttpResponse.js.map +1 -0
- package/link/http/rewriteURIForGET.d.ts +9 -0
- package/link/http/rewriteURIForGET.js +52 -0
- package/link/http/rewriteURIForGET.js.map +1 -0
- package/link/http/selectHttpOptionsAndBody.d.ts +29 -0
- package/link/http/selectHttpOptionsAndBody.js +103 -0
- package/link/http/selectHttpOptionsAndBody.js.map +1 -0
- package/link/http/selectURI.d.ts +3 -0
- package/link/http/selectURI.js +14 -0
- package/link/http/selectURI.js.map +1 -0
- package/link/index.d.ts +10 -0
- package/link/index.js +7 -0
- package/link/index.js.map +1 -0
- package/link/persisted-queries/index.d.ts +227 -0
- package/link/persisted-queries/index.js +243 -0
- package/link/persisted-queries/index.js.map +1 -0
- package/link/remove-typename/index.d.ts +2 -0
- package/link/remove-typename/index.js +2 -0
- package/link/remove-typename/index.js.map +1 -0
- package/link/remove-typename/removeTypenameFromVariables.d.ts +137 -0
- package/link/remove-typename/removeTypenameFromVariables.js +151 -0
- package/link/remove-typename/removeTypenameFromVariables.js.map +1 -0
- package/link/retry/delayFunction.d.ts +3 -0
- package/link/retry/delayFunction.js +18 -0
- package/link/retry/delayFunction.js.map +1 -0
- package/link/retry/index.d.ts +2 -0
- package/link/retry/index.js +2 -0
- package/link/retry/index.js.map +1 -0
- package/link/retry/retryFunction.d.ts +3 -0
- package/link/retry/retryFunction.js +9 -0
- package/link/retry/retryFunction.js.map +1 -0
- package/link/retry/retryLink.d.ts +148 -0
- package/link/retry/retryLink.js +118 -0
- package/link/retry/retryLink.js.map +1 -0
- package/link/schema/index.d.ts +157 -0
- package/link/schema/index.js +71 -0
- package/link/schema/index.js.map +1 -0
- package/link/subscriptions/index.d.ts +32 -0
- package/link/subscriptions/index.js +97 -0
- package/link/subscriptions/index.js.map +1 -0
- package/link/utils/createOperation.d.ts +3 -0
- package/link/utils/createOperation.js +34 -0
- package/link/utils/createOperation.js.map +1 -0
- package/link/utils/filterOperationVariables.d.ts +5 -0
- package/link/utils/filterOperationVariables.js +22 -0
- package/link/utils/filterOperationVariables.js.map +1 -0
- package/link/utils/index.d.ts +3 -0
- package/link/utils/index.js +3 -0
- package/link/utils/index.js.map +1 -0
- package/link/ws/index.d.ts +88 -0
- package/link/ws/index.js +48 -0
- package/link/ws/index.js.map +1 -0
- package/local-state/LocalState.d.ts +183 -0
- package/local-state/LocalState.js +576 -0
- package/local-state/LocalState.js.map +1 -0
- package/local-state/index.d.ts +2 -0
- package/local-state/index.js +2 -0
- package/local-state/index.js.map +1 -0
- package/masking/GraphQLCodegenDataMasking.d.ts +46 -0
- package/masking/GraphQLCodegenDataMasking.js +2 -0
- package/masking/GraphQLCodegenDataMasking.js.map +1 -0
- package/masking/PreserveTypes.d.ts +26 -0
- package/masking/PreserveTypes.js +2 -0
- package/masking/PreserveTypes.js.map +1 -0
- package/masking/index.d.ts +6 -0
- package/masking/index.js +4 -0
- package/masking/index.js.map +1 -0
- package/masking/internal/types.d.ts +120 -0
- package/masking/internal/types.js +2 -0
- package/masking/internal/types.js.map +1 -0
- package/masking/maskDefinition.d.ts +14 -0
- package/masking/maskDefinition.js +132 -0
- package/masking/maskDefinition.js.map +1 -0
- package/masking/maskFragment.d.ts +8 -0
- package/masking/maskFragment.js +38 -0
- package/masking/maskFragment.js.map +1 -0
- package/masking/maskOperation.d.ts +8 -0
- package/masking/maskOperation.js +25 -0
- package/masking/maskOperation.js.map +1 -0
- package/masking/types.d.ts +16 -0
- package/masking/types.js +2 -0
- package/masking/types.js.map +1 -0
- package/masking/utils.d.ts +14 -0
- package/masking/utils.js +39 -0
- package/masking/utils.js.map +1 -0
- package/package.json +383 -0
- package/react/compiled/index.d.ts +2 -0
- package/react/compiled/index.js +2 -0
- package/react/compiled/index.js.map +1 -0
- package/react/context/ApolloContext.d.ts +9 -0
- package/react/context/ApolloContext.js +22 -0
- package/react/context/ApolloContext.js.map +1 -0
- package/react/context/ApolloProvider.d.ts +10 -0
- package/react/context/ApolloProvider.js +16 -0
- package/react/context/ApolloProvider.js.map +1 -0
- package/react/hooks/constants.d.ts +3 -0
- package/react/hooks/constants.js +2 -0
- package/react/hooks/constants.js.map +1 -0
- package/react/hooks/internal/__use.d.ts +4 -0
- package/react/hooks/internal/__use.js +22 -0
- package/react/hooks/internal/__use.js.map +1 -0
- package/react/hooks/internal/index.d.ts +6 -0
- package/react/hooks/internal/index.js +7 -0
- package/react/hooks/internal/index.js.map +1 -0
- package/react/hooks/internal/useDeepMemo.d.ts +3 -0
- package/react/hooks/internal/useDeepMemo.js +12 -0
- package/react/hooks/internal/useDeepMemo.js.map +1 -0
- package/react/hooks/internal/useIsomorphicLayoutEffect.d.ts +3 -0
- package/react/hooks/internal/useIsomorphicLayoutEffect.js +9 -0
- package/react/hooks/internal/useIsomorphicLayoutEffect.js.map +1 -0
- package/react/hooks/internal/useRenderGuard.d.ts +2 -0
- package/react/hooks/internal/useRenderGuard.js +42 -0
- package/react/hooks/internal/useRenderGuard.js.map +1 -0
- package/react/hooks/internal/useSuspenseHookCacheKey.d.ts +11 -0
- package/react/hooks/internal/useSuspenseHookCacheKey.js +24 -0
- package/react/hooks/internal/useSuspenseHookCacheKey.js.map +1 -0
- package/react/hooks/internal/validateSuspenseHookOptions.d.ts +3 -0
- package/react/hooks/internal/validateSuspenseHookOptions.js +22 -0
- package/react/hooks/internal/validateSuspenseHookOptions.js.map +1 -0
- package/react/hooks/internal/wrapHook.d.ts +66 -0
- package/react/hooks/internal/wrapHook.js +65 -0
- package/react/hooks/internal/wrapHook.js.map +1 -0
- package/react/hooks/useApolloClient.d.ts +18 -0
- package/react/hooks/useApolloClient.js +25 -0
- package/react/hooks/useApolloClient.js.map +1 -0
- package/react/hooks/useBackgroundQuery.d.ts +975 -0
- package/react/hooks/useBackgroundQuery.js +72 -0
- package/react/hooks/useBackgroundQuery.js.map +1 -0
- package/react/hooks/useFragment.d.ts +162 -0
- package/react/hooks/useFragment.js +54 -0
- package/react/hooks/useFragment.js.map +1 -0
- package/react/hooks/useLazyQuery.d.ts +436 -0
- package/react/hooks/useLazyQuery.js +146 -0
- package/react/hooks/useLazyQuery.js.map +1 -0
- package/react/hooks/useLoadableQuery.d.ts +353 -0
- package/react/hooks/useLoadableQuery.js +88 -0
- package/react/hooks/useLoadableQuery.js.map +1 -0
- package/react/hooks/useMutation.d.ts +316 -0
- package/react/hooks/useMutation.js +159 -0
- package/react/hooks/useMutation.js.map +1 -0
- package/react/hooks/useQuery.d.ts +549 -0
- package/react/hooks/useQuery.js +215 -0
- package/react/hooks/useQuery.js.map +1 -0
- package/react/hooks/useQueryRefHandlers.d.ts +78 -0
- package/react/hooks/useQueryRefHandlers.js +68 -0
- package/react/hooks/useQueryRefHandlers.js.map +1 -0
- package/react/hooks/useReactiveVar.d.ts +22 -0
- package/react/hooks/useReactiveVar.js +35 -0
- package/react/hooks/useReactiveVar.js.map +1 -0
- package/react/hooks/useReadQuery.d.ts +100 -0
- package/react/hooks/useReadQuery.js +70 -0
- package/react/hooks/useReadQuery.js.map +1 -0
- package/react/hooks/useSubscription.d.ts +270 -0
- package/react/hooks/useSubscription.js +222 -0
- package/react/hooks/useSubscription.js.map +1 -0
- package/react/hooks/useSuspenseFragment.d.ts +105 -0
- package/react/hooks/useSuspenseFragment.js +47 -0
- package/react/hooks/useSuspenseFragment.js.map +1 -0
- package/react/hooks/useSuspenseQuery.d.ts +630 -0
- package/react/hooks/useSuspenseQuery.js +118 -0
- package/react/hooks/useSuspenseQuery.js.map +1 -0
- package/react/hooks/useSyncExternalStore.d.ts +4 -0
- package/react/hooks/useSyncExternalStore.js +126 -0
- package/react/hooks/useSyncExternalStore.js.map +1 -0
- package/react/hooks-compiled/constants.d.ts +3 -0
- package/react/hooks-compiled/constants.js +2 -0
- package/react/hooks-compiled/constants.js.map +1 -0
- package/react/hooks-compiled/internal/__use.d.ts +4 -0
- package/react/hooks-compiled/internal/__use.js +22 -0
- package/react/hooks-compiled/internal/__use.js.map +1 -0
- package/react/hooks-compiled/internal/index.d.ts +6 -0
- package/react/hooks-compiled/internal/index.js +7 -0
- package/react/hooks-compiled/internal/index.js.map +1 -0
- package/react/hooks-compiled/internal/useDeepMemo.d.ts +3 -0
- package/react/hooks-compiled/internal/useDeepMemo.js +12 -0
- package/react/hooks-compiled/internal/useDeepMemo.js.map +1 -0
- package/react/hooks-compiled/internal/useIsomorphicLayoutEffect.d.ts +3 -0
- package/react/hooks-compiled/internal/useIsomorphicLayoutEffect.js +9 -0
- package/react/hooks-compiled/internal/useIsomorphicLayoutEffect.js.map +1 -0
- package/react/hooks-compiled/internal/useRenderGuard.d.ts +2 -0
- package/react/hooks-compiled/internal/useRenderGuard.js +42 -0
- package/react/hooks-compiled/internal/useRenderGuard.js.map +1 -0
- package/react/hooks-compiled/internal/useSuspenseHookCacheKey.d.ts +11 -0
- package/react/hooks-compiled/internal/useSuspenseHookCacheKey.js +71 -0
- package/react/hooks-compiled/internal/useSuspenseHookCacheKey.js.map +1 -0
- package/react/hooks-compiled/internal/validateSuspenseHookOptions.d.ts +3 -0
- package/react/hooks-compiled/internal/validateSuspenseHookOptions.js +22 -0
- package/react/hooks-compiled/internal/validateSuspenseHookOptions.js.map +1 -0
- package/react/hooks-compiled/internal/wrapHook.d.ts +66 -0
- package/react/hooks-compiled/internal/wrapHook.js +65 -0
- package/react/hooks-compiled/internal/wrapHook.js.map +1 -0
- package/react/hooks-compiled/useApolloClient.d.ts +18 -0
- package/react/hooks-compiled/useApolloClient.js +36 -0
- package/react/hooks-compiled/useApolloClient.js.map +1 -0
- package/react/hooks-compiled/useBackgroundQuery.d.ts +975 -0
- package/react/hooks-compiled/useBackgroundQuery.js +72 -0
- package/react/hooks-compiled/useBackgroundQuery.js.map +1 -0
- package/react/hooks-compiled/useFragment.d.ts +162 -0
- package/react/hooks-compiled/useFragment.js +125 -0
- package/react/hooks-compiled/useFragment.js.map +1 -0
- package/react/hooks-compiled/useLazyQuery.d.ts +436 -0
- package/react/hooks-compiled/useLazyQuery.js +146 -0
- package/react/hooks-compiled/useLazyQuery.js.map +1 -0
- package/react/hooks-compiled/useLoadableQuery.d.ts +353 -0
- package/react/hooks-compiled/useLoadableQuery.js +241 -0
- package/react/hooks-compiled/useLoadableQuery.js.map +1 -0
- package/react/hooks-compiled/useMutation.d.ts +316 -0
- package/react/hooks-compiled/useMutation.js +254 -0
- package/react/hooks-compiled/useMutation.js.map +1 -0
- package/react/hooks-compiled/useQuery.d.ts +549 -0
- package/react/hooks-compiled/useQuery.js +378 -0
- package/react/hooks-compiled/useQuery.js.map +1 -0
- package/react/hooks-compiled/useQueryRefHandlers.d.ts +78 -0
- package/react/hooks-compiled/useQueryRefHandlers.js +106 -0
- package/react/hooks-compiled/useQueryRefHandlers.js.map +1 -0
- package/react/hooks-compiled/useReactiveVar.d.ts +22 -0
- package/react/hooks-compiled/useReactiveVar.js +35 -0
- package/react/hooks-compiled/useReactiveVar.js.map +1 -0
- package/react/hooks-compiled/useReadQuery.d.ts +100 -0
- package/react/hooks-compiled/useReadQuery.js +135 -0
- package/react/hooks-compiled/useReadQuery.js.map +1 -0
- package/react/hooks-compiled/useSubscription.d.ts +270 -0
- package/react/hooks-compiled/useSubscription.js +366 -0
- package/react/hooks-compiled/useSubscription.js.map +1 -0
- package/react/hooks-compiled/useSuspenseFragment.d.ts +105 -0
- package/react/hooks-compiled/useSuspenseFragment.js +47 -0
- package/react/hooks-compiled/useSuspenseFragment.js.map +1 -0
- package/react/hooks-compiled/useSuspenseQuery.d.ts +630 -0
- package/react/hooks-compiled/useSuspenseQuery.js +136 -0
- package/react/hooks-compiled/useSuspenseQuery.js.map +1 -0
- package/react/hooks-compiled/useSyncExternalStore.d.ts +4 -0
- package/react/hooks-compiled/useSyncExternalStore.js +126 -0
- package/react/hooks-compiled/useSyncExternalStore.js.map +1 -0
- package/react/index.compiled.d.ts +33 -0
- package/react/index.compiled.js +19 -0
- package/react/index.compiled.js.map +1 -0
- package/react/index.d.ts +33 -0
- package/react/index.js +19 -0
- package/react/index.js.map +1 -0
- package/react/index.react-server.d.ts +18 -0
- package/react/index.react-server.js +43 -0
- package/react/index.react-server.js.map +1 -0
- package/react/internal/cache/FragmentReference.d.ts +35 -0
- package/react/internal/cache/FragmentReference.js +112 -0
- package/react/internal/cache/FragmentReference.js.map +1 -0
- package/react/internal/cache/QueryReference.d.ts +112 -0
- package/react/internal/cache/QueryReference.js +305 -0
- package/react/internal/cache/QueryReference.js.map +1 -0
- package/react/internal/cache/SuspenseCache.d.ts +29 -0
- package/react/internal/cache/SuspenseCache.js +40 -0
- package/react/internal/cache/SuspenseCache.js.map +1 -0
- package/react/internal/cache/getSuspenseCache.d.ts +18 -0
- package/react/internal/cache/getSuspenseCache.js +9 -0
- package/react/internal/cache/getSuspenseCache.js.map +1 -0
- package/react/internal/cache/types.d.ts +18 -0
- package/react/internal/cache/types.js +2 -0
- package/react/internal/cache/types.js.map +1 -0
- package/react/internal/compiler-runtime/index.d.ts +8 -0
- package/react/internal/compiler-runtime/index.js +28 -0
- package/react/internal/compiler-runtime/index.js.map +1 -0
- package/react/internal/index.d.ts +10 -0
- package/react/internal/index.js +4 -0
- package/react/internal/index.js.map +1 -0
- package/react/internal/types.d.ts +4 -0
- package/react/internal/types.js +2 -0
- package/react/internal/types.js.map +1 -0
- package/react/query-preloader/createQueryPreloader.d.ts +256 -0
- package/react/query-preloader/createQueryPreloader.js +82 -0
- package/react/query-preloader/createQueryPreloader.js.map +1 -0
- package/react/ssr/getDataFromTree.d.ts +25 -0
- package/react/ssr/getDataFromTree.js +39 -0
- package/react/ssr/getDataFromTree.js.map +1 -0
- package/react/ssr/index.d.ts +4 -0
- package/react/ssr/index.js +4 -0
- package/react/ssr/index.js.map +1 -0
- package/react/ssr/prerenderStatic.d.ts +143 -0
- package/react/ssr/prerenderStatic.js +168 -0
- package/react/ssr/prerenderStatic.js.map +1 -0
- package/react/ssr/renderToStringWithData.d.ts +8 -0
- package/react/ssr/renderToStringWithData.js +15 -0
- package/react/ssr/renderToStringWithData.js.map +1 -0
- package/react/ssr/useSSRQuery.d.ts +6 -0
- package/react/ssr/useSSRQuery.js +69 -0
- package/react/ssr/useSSRQuery.js.map +1 -0
- package/react/types/deprecated.d.ts +75 -0
- package/react/types/deprecated.js +2 -0
- package/react/types/deprecated.js.map +1 -0
- package/react/types/types.documentation.d.ts +533 -0
- package/react/types/types.documentation.js +2 -0
- package/react/types/types.documentation.js.map +1 -0
- package/testing/core/mocking/mockLink.d.ts +66 -0
- package/testing/core/mocking/mockLink.js +187 -0
- package/testing/core/mocking/mockLink.js.map +1 -0
- package/testing/core/mocking/mockSubscriptionLink.d.ts +22 -0
- package/testing/core/mocking/mockSubscriptionLink.js +52 -0
- package/testing/core/mocking/mockSubscriptionLink.js.map +1 -0
- package/testing/core/types/deprecated.d.ts +11 -0
- package/testing/core/types/deprecated.js +2 -0
- package/testing/core/types/deprecated.js.map +1 -0
- package/testing/index.d.ts +4 -0
- package/testing/index.js +3 -0
- package/testing/index.js.map +1 -0
- package/testing/react/MockedProvider.d.ts +33 -0
- package/testing/react/MockedProvider.js +38 -0
- package/testing/react/MockedProvider.js.map +1 -0
- package/testing/react/index.d.ts +3 -0
- package/testing/react/index.js +2 -0
- package/testing/react/index.js.map +1 -0
- package/utilities/DeepPartial.d.ts +15 -0
- package/utilities/DeepPartial.js +6 -0
- package/utilities/DeepPartial.js.map +1 -0
- package/utilities/HKT.d.ts +36 -0
- package/utilities/HKT.js +2 -0
- package/utilities/HKT.js.map +1 -0
- package/utilities/caching/index.d.ts +3 -0
- package/utilities/caching/index.js +2 -0
- package/utilities/caching/index.js.map +1 -0
- package/utilities/caching/sizes.d.ts +286 -0
- package/utilities/caching/sizes.js +26 -0
- package/utilities/caching/sizes.js.map +1 -0
- package/utilities/common/stripTypename.d.ts +19 -0
- package/utilities/common/stripTypename.js +22 -0
- package/utilities/common/stripTypename.js.map +1 -0
- package/utilities/environment/index.d.ts +2 -0
- package/utilities/environment/index.development.d.ts +2 -0
- package/utilities/environment/index.development.js +2 -0
- package/utilities/environment/index.development.js.map +1 -0
- package/utilities/environment/index.js +2 -0
- package/utilities/environment/index.js.map +1 -0
- package/utilities/environment/index.production.d.ts +2 -0
- package/utilities/environment/index.production.js +2 -0
- package/utilities/environment/index.production.js.map +1 -0
- package/utilities/graphql/DocumentTransform.d.ts +143 -0
- package/utilities/graphql/DocumentTransform.js +186 -0
- package/utilities/graphql/DocumentTransform.js.map +1 -0
- package/utilities/graphql/isFormattedExecutionResult.d.ts +30 -0
- package/utilities/graphql/isFormattedExecutionResult.js +33 -0
- package/utilities/graphql/isFormattedExecutionResult.js.map +1 -0
- package/utilities/graphql/operations.d.ts +77 -0
- package/utilities/graphql/operations.js +86 -0
- package/utilities/graphql/operations.js.map +1 -0
- package/utilities/graphql/print.d.ts +13 -0
- package/utilities/graphql/print.js +30 -0
- package/utilities/graphql/print.js.map +1 -0
- package/utilities/graphql/storeUtils.d.ts +52 -0
- package/utilities/graphql/storeUtils.js +18 -0
- package/utilities/graphql/storeUtils.js.map +1 -0
- package/utilities/graphql/transform.d.ts +21 -0
- package/utilities/graphql/transform.js +71 -0
- package/utilities/graphql/transform.js.map +1 -0
- package/utilities/index.d.ts +19 -0
- package/utilities/index.js +14 -0
- package/utilities/index.js.map +1 -0
- package/utilities/internal/DeepMerger.d.ts +33 -0
- package/utilities/internal/DeepMerger.js +95 -0
- package/utilities/internal/DeepMerger.js.map +1 -0
- package/utilities/internal/argumentsObjectFromField.d.ts +8 -0
- package/utilities/internal/argumentsObjectFromField.js +15 -0
- package/utilities/internal/argumentsObjectFromField.js.map +1 -0
- package/utilities/internal/bindCacheKey.d.ts +15 -0
- package/utilities/internal/bindCacheKey.js +18 -0
- package/utilities/internal/bindCacheKey.js.map +1 -0
- package/utilities/internal/caches.d.ts +42 -0
- package/utilities/internal/caches.js +73 -0
- package/utilities/internal/caches.js.map +1 -0
- package/utilities/internal/canUseDOM.d.ts +7 -0
- package/utilities/internal/canUseDOM.js +8 -0
- package/utilities/internal/canUseDOM.js.map +1 -0
- package/utilities/internal/canonicalStringify.d.ts +44 -0
- package/utilities/internal/canonicalStringify.js +109 -0
- package/utilities/internal/canonicalStringify.js.map +1 -0
- package/utilities/internal/checkDocument.d.ts +10 -0
- package/utilities/internal/checkDocument.js +64 -0
- package/utilities/internal/checkDocument.js.map +1 -0
- package/utilities/internal/cloneDeep.d.ts +9 -0
- package/utilities/internal/cloneDeep.js +42 -0
- package/utilities/internal/cloneDeep.js.map +1 -0
- package/utilities/internal/combineLatestBatched.d.ts +14 -0
- package/utilities/internal/combineLatestBatched.js +68 -0
- package/utilities/internal/combineLatestBatched.js.map +1 -0
- package/utilities/internal/compact.d.ts +11 -0
- package/utilities/internal/compact.js +23 -0
- package/utilities/internal/compact.js.map +1 -0
- package/utilities/internal/constants.d.ts +23 -0
- package/utilities/internal/constants.js +23 -0
- package/utilities/internal/constants.js.map +1 -0
- package/utilities/internal/createFragmentMap.d.ts +12 -0
- package/utilities/internal/createFragmentMap.js +16 -0
- package/utilities/internal/createFragmentMap.js.map +1 -0
- package/utilities/internal/createFulfilledPromise.d.ts +8 -0
- package/utilities/internal/createFulfilledPromise.js +12 -0
- package/utilities/internal/createFulfilledPromise.js.map +1 -0
- package/utilities/internal/createRejectedPromise.d.ts +8 -0
- package/utilities/internal/createRejectedPromise.js +14 -0
- package/utilities/internal/createRejectedPromise.js.map +1 -0
- package/utilities/internal/dealias.d.ts +5 -0
- package/utilities/internal/dealias.js +18 -0
- package/utilities/internal/dealias.js.map +1 -0
- package/utilities/internal/decoratePromise.d.ts +8 -0
- package/utilities/internal/decoratePromise.js +30 -0
- package/utilities/internal/decoratePromise.js.map +1 -0
- package/utilities/internal/deepFreeze.d.ts +7 -0
- package/utilities/internal/deepFreeze.js +36 -0
- package/utilities/internal/deepFreeze.js.map +1 -0
- package/utilities/internal/equalByQuery.d.ts +5 -0
- package/utilities/internal/equalByQuery.js +90 -0
- package/utilities/internal/equalByQuery.js.map +1 -0
- package/utilities/internal/filterMap.d.ts +4 -0
- package/utilities/internal/filterMap.js +28 -0
- package/utilities/internal/filterMap.js.map +1 -0
- package/utilities/internal/getDefaultValues.d.ts +8 -0
- package/utilities/internal/getDefaultValues.js +19 -0
- package/utilities/internal/getDefaultValues.js.map +1 -0
- package/utilities/internal/getFragmentDefinition.d.ts +8 -0
- package/utilities/internal/getFragmentDefinition.js +14 -0
- package/utilities/internal/getFragmentDefinition.js.map +1 -0
- package/utilities/internal/getFragmentDefinitions.d.ts +8 -0
- package/utilities/internal/getFragmentDefinitions.js +9 -0
- package/utilities/internal/getFragmentDefinitions.js.map +1 -0
- package/utilities/internal/getFragmentFromSelection.d.ts +10 -0
- package/utilities/internal/getFragmentFromSelection.js +24 -0
- package/utilities/internal/getFragmentFromSelection.js.map +1 -0
- package/utilities/internal/getFragmentQueryDocument.d.ts +39 -0
- package/utilities/internal/getFragmentQueryDocument.js +93 -0
- package/utilities/internal/getFragmentQueryDocument.js.map +1 -0
- package/utilities/internal/getGraphQLErrorsFromResult.d.ts +10 -0
- package/utilities/internal/getGraphQLErrorsFromResult.js +9 -0
- package/utilities/internal/getGraphQLErrorsFromResult.js.map +1 -0
- package/utilities/internal/getMainDefinition.d.ts +40 -0
- package/utilities/internal/getMainDefinition.js +58 -0
- package/utilities/internal/getMainDefinition.js.map +1 -0
- package/utilities/internal/getMemoryInternals.d.ts +80 -0
- package/utilities/internal/getMemoryInternals.js +128 -0
- package/utilities/internal/getMemoryInternals.js.map +1 -0
- package/utilities/internal/getOperationDefinition.d.ts +8 -0
- package/utilities/internal/getOperationDefinition.js +11 -0
- package/utilities/internal/getOperationDefinition.js.map +1 -0
- package/utilities/internal/getOperationName.d.ts +8 -0
- package/utilities/internal/getOperationName.js +9 -0
- package/utilities/internal/getOperationName.js.map +1 -0
- package/utilities/internal/getQueryDefinition.d.ts +8 -0
- package/utilities/internal/getQueryDefinition.js +13 -0
- package/utilities/internal/getQueryDefinition.js.map +1 -0
- package/utilities/internal/getStoreKeyName.d.ts +16 -0
- package/utilities/internal/getStoreKeyName.js +73 -0
- package/utilities/internal/getStoreKeyName.js.map +1 -0
- package/utilities/internal/globals/global.d.ts +3 -0
- package/utilities/internal/globals/global.js +14 -0
- package/utilities/internal/globals/global.js.map +1 -0
- package/utilities/internal/globals/index.d.ts +3 -0
- package/utilities/internal/globals/index.js +3 -0
- package/utilities/internal/globals/index.js.map +1 -0
- package/utilities/internal/globals/maybe.d.ts +2 -0
- package/utilities/internal/globals/maybe.js +7 -0
- package/utilities/internal/globals/maybe.js.map +1 -0
- package/utilities/internal/graphQLResultHasError.d.ts +8 -0
- package/utilities/internal/graphQLResultHasError.js +9 -0
- package/utilities/internal/graphQLResultHasError.js.map +1 -0
- package/utilities/internal/hasDirectives.d.ts +8 -0
- package/utilities/internal/hasDirectives.js +21 -0
- package/utilities/internal/hasDirectives.js.map +1 -0
- package/utilities/internal/hasForcedResolvers.d.ts +3 -0
- package/utilities/internal/hasForcedResolvers.js +20 -0
- package/utilities/internal/hasForcedResolvers.js.map +1 -0
- package/utilities/internal/index.d.ts +74 -0
- package/utilities/internal/index.js +56 -0
- package/utilities/internal/index.js.map +1 -0
- package/utilities/internal/index.production.d.ts +3 -0
- package/utilities/internal/index.production.js +7 -0
- package/utilities/internal/index.production.js.map +1 -0
- package/utilities/internal/isArray.d.ts +9 -0
- package/utilities/internal/isArray.js +9 -0
- package/utilities/internal/isArray.js.map +1 -0
- package/utilities/internal/isDocumentNode.d.ts +8 -0
- package/utilities/internal/isDocumentNode.js +12 -0
- package/utilities/internal/isDocumentNode.js.map +1 -0
- package/utilities/internal/isField.d.ts +8 -0
- package/utilities/internal/isField.js +9 -0
- package/utilities/internal/isField.js.map +1 -0
- package/utilities/internal/isNonEmptyArray.d.ts +7 -0
- package/utilities/internal/isNonEmptyArray.js +9 -0
- package/utilities/internal/isNonEmptyArray.js.map +1 -0
- package/utilities/internal/isNonNullObject.d.ts +7 -0
- package/utilities/internal/isNonNullObject.js +9 -0
- package/utilities/internal/isNonNullObject.js.map +1 -0
- package/utilities/internal/isPlainObject.d.ts +7 -0
- package/utilities/internal/isPlainObject.js +12 -0
- package/utilities/internal/isPlainObject.js.map +1 -0
- package/utilities/internal/makeReference.d.ts +8 -0
- package/utilities/internal/makeReference.js +9 -0
- package/utilities/internal/makeReference.js.map +1 -0
- package/utilities/internal/makeUniqueId.d.ts +10 -0
- package/utilities/internal/makeUniqueId.js +15 -0
- package/utilities/internal/makeUniqueId.js.map +1 -0
- package/utilities/internal/mapObservableFragment.d.ts +3 -0
- package/utilities/internal/mapObservableFragment.js +24 -0
- package/utilities/internal/mapObservableFragment.js.map +1 -0
- package/utilities/internal/maybeDeepFreeze.d.ts +7 -0
- package/utilities/internal/maybeDeepFreeze.js +14 -0
- package/utilities/internal/maybeDeepFreeze.js.map +1 -0
- package/utilities/internal/memoize.d.ts +8 -0
- package/utilities/internal/memoize.js +28 -0
- package/utilities/internal/memoize.js.map +1 -0
- package/utilities/internal/mergeDeep.d.ts +8 -0
- package/utilities/internal/mergeDeep.js +23 -0
- package/utilities/internal/mergeDeep.js.map +1 -0
- package/utilities/internal/mergeDeepArray.d.ts +7 -0
- package/utilities/internal/mergeDeepArray.js +24 -0
- package/utilities/internal/mergeDeepArray.js.map +1 -0
- package/utilities/internal/mergeOptions.d.ts +10 -0
- package/utilities/internal/mergeOptions.js +15 -0
- package/utilities/internal/mergeOptions.js.map +1 -0
- package/utilities/internal/omitDeep.d.ts +8 -0
- package/utilities/internal/omitDeep.js +45 -0
- package/utilities/internal/omitDeep.js.map +1 -0
- package/utilities/internal/ponyfills/FinalizationRegistry.d.ts +11 -0
- package/utilities/internal/ponyfills/FinalizationRegistry.js +57 -0
- package/utilities/internal/ponyfills/FinalizationRegistry.js.map +1 -0
- package/utilities/internal/ponyfills/index.d.ts +3 -0
- package/utilities/internal/ponyfills/index.js +3 -0
- package/utilities/internal/ponyfills/index.js.map +1 -0
- package/utilities/internal/ponyfills/index.react-native.d.ts +2 -0
- package/utilities/internal/ponyfills/index.react-native.js +2 -0
- package/utilities/internal/ponyfills/index.react-native.js.map +1 -0
- package/utilities/internal/preventUnhandledRejection.d.ts +2 -0
- package/utilities/internal/preventUnhandledRejection.js +5 -0
- package/utilities/internal/preventUnhandledRejection.js.map +1 -0
- package/utilities/internal/removeDirectivesFromDocument.d.ts +14 -0
- package/utilities/internal/removeDirectivesFromDocument.js +299 -0
- package/utilities/internal/removeDirectivesFromDocument.js.map +1 -0
- package/utilities/internal/removeFragmentSpreads.d.ts +3 -0
- package/utilities/internal/removeFragmentSpreads.js +11 -0
- package/utilities/internal/removeFragmentSpreads.js.map +1 -0
- package/utilities/internal/resultKeyNameFromField.d.ts +8 -0
- package/utilities/internal/resultKeyNameFromField.js +9 -0
- package/utilities/internal/resultKeyNameFromField.js.map +1 -0
- package/utilities/internal/shouldInclude.d.ts +8 -0
- package/utilities/internal/shouldInclude.js +47 -0
- package/utilities/internal/shouldInclude.js.map +1 -0
- package/utilities/internal/storeKeyNameFromField.d.ts +8 -0
- package/utilities/internal/storeKeyNameFromField.js +26 -0
- package/utilities/internal/storeKeyNameFromField.js.map +1 -0
- package/utilities/internal/stringifyForDisplay.d.ts +7 -0
- package/utilities/internal/stringifyForDisplay.js +15 -0
- package/utilities/internal/stringifyForDisplay.js.map +1 -0
- package/utilities/internal/toQueryResult.d.ts +8 -0
- package/utilities/internal/toQueryResult.js +15 -0
- package/utilities/internal/toQueryResult.js.map +1 -0
- package/utilities/internal/types/ApplyHKT.d.ts +13 -0
- package/utilities/internal/types/ApplyHKT.js +2 -0
- package/utilities/internal/types/ApplyHKT.js.map +1 -0
- package/utilities/internal/types/ApplyHKTImplementationWithDefault.d.ts +11 -0
- package/utilities/internal/types/ApplyHKTImplementationWithDefault.js +2 -0
- package/utilities/internal/types/ApplyHKTImplementationWithDefault.js.map +1 -0
- package/utilities/internal/types/DecoratedPromise.d.ts +10 -0
- package/utilities/internal/types/DecoratedPromise.js +2 -0
- package/utilities/internal/types/DecoratedPromise.js.map +1 -0
- package/utilities/internal/types/DeepOmit.d.ts +15 -0
- package/utilities/internal/types/DeepOmit.js +2 -0
- package/utilities/internal/types/DeepOmit.js.map +1 -0
- package/utilities/internal/types/DocumentationTypes.d.ts +88 -0
- package/utilities/internal/types/DocumentationTypes.js +2 -0
- package/utilities/internal/types/DocumentationTypes.js.map +1 -0
- package/utilities/internal/types/ExtensionsWithStreamDetails.d.ts +12 -0
- package/utilities/internal/types/ExtensionsWithStreamDetails.js +2 -0
- package/utilities/internal/types/ExtensionsWithStreamDetails.js.map +1 -0
- package/utilities/internal/types/FragmentMap.d.ts +12 -0
- package/utilities/internal/types/FragmentMap.js +2 -0
- package/utilities/internal/types/FragmentMap.js.map +1 -0
- package/utilities/internal/types/FragmentMapFunction.d.ts +8 -0
- package/utilities/internal/types/FragmentMapFunction.js +2 -0
- package/utilities/internal/types/FragmentMapFunction.js.map +1 -0
- package/utilities/internal/types/FulfilledPromise.d.ts +10 -0
- package/utilities/internal/types/FulfilledPromise.js +2 -0
- package/utilities/internal/types/FulfilledPromise.js.map +1 -0
- package/utilities/internal/types/IsAny.d.ts +7 -0
- package/utilities/internal/types/IsAny.js +2 -0
- package/utilities/internal/types/IsAny.js.map +1 -0
- package/utilities/internal/types/NoInfer.d.ts +35 -0
- package/utilities/internal/types/NoInfer.js +2 -0
- package/utilities/internal/types/NoInfer.js.map +1 -0
- package/utilities/internal/types/PendingPromise.d.ts +9 -0
- package/utilities/internal/types/PendingPromise.js +2 -0
- package/utilities/internal/types/PendingPromise.js.map +1 -0
- package/utilities/internal/types/Prettify.d.ts +9 -0
- package/utilities/internal/types/Prettify.js +2 -0
- package/utilities/internal/types/Prettify.js.map +1 -0
- package/utilities/internal/types/Primitive.d.ts +7 -0
- package/utilities/internal/types/Primitive.js +2 -0
- package/utilities/internal/types/Primitive.js.map +1 -0
- package/utilities/internal/types/RejectedPromise.d.ts +10 -0
- package/utilities/internal/types/RejectedPromise.js +2 -0
- package/utilities/internal/types/RejectedPromise.js.map +1 -0
- package/utilities/internal/types/RemoveIndexSignature.d.ts +9 -0
- package/utilities/internal/types/RemoveIndexSignature.js +2 -0
- package/utilities/internal/types/RemoveIndexSignature.js.map +1 -0
- package/utilities/internal/types/StreamInfoTrie.d.ts +16 -0
- package/utilities/internal/types/StreamInfoTrie.js +2 -0
- package/utilities/internal/types/StreamInfoTrie.js.map +1 -0
- package/utilities/internal/types/TupleToIntersection.d.ts +2 -0
- package/utilities/internal/types/TupleToIntersection.js +2 -0
- package/utilities/internal/types/TupleToIntersection.js.map +1 -0
- package/utilities/internal/types/VariablesOption.d.ts +26 -0
- package/utilities/internal/types/VariablesOption.js +2 -0
- package/utilities/internal/types/VariablesOption.js.map +1 -0
- package/utilities/internal/valueToObjectRepresentation.d.ts +8 -0
- package/utilities/internal/valueToObjectRepresentation.js +41 -0
- package/utilities/internal/valueToObjectRepresentation.js.map +1 -0
- package/utilities/invariant/index.d.ts +47 -0
- package/utilities/invariant/index.development.d.ts +4 -0
- package/utilities/invariant/index.development.js +12 -0
- package/utilities/invariant/index.development.js.map +1 -0
- package/utilities/invariant/index.js +93 -0
- package/utilities/invariant/index.js.map +1 -0
- package/utilities/isNetworkRequestInFlight.d.ts +7 -0
- package/utilities/isNetworkRequestInFlight.js +9 -0
- package/utilities/isNetworkRequestInFlight.js.map +1 -0
- package/utilities/isNetworkRequestSettled.d.ts +7 -0
- package/utilities/isNetworkRequestSettled.js +8 -0
- package/utilities/isNetworkRequestSettled.js.map +1 -0
- package/utilities/policies/pagination.d.ts +51 -0
- package/utilities/policies/pagination.js +233 -0
- package/utilities/policies/pagination.js.map +1 -0
- package/utilities/subscriptions/relay/index.d.ts +10 -0
- package/utilities/subscriptions/relay/index.js +59 -0
- package/utilities/subscriptions/relay/index.js.map +1 -0
- package/v4-migration.d.ts +826 -0
- package/v4-migration.js +8 -0
- package/v4-migration.js.map +1 -0
- package/version.d.ts +3 -0
- package/version.js +3 -0
- package/version.js.map +1 -0
|
@@ -0,0 +1,1210 @@
|
|
|
1
|
+
import type { DocumentNode } from "graphql";
|
|
2
|
+
import type { Observable } from "rxjs";
|
|
3
|
+
import type { ApolloCache, Cache, IgnoreModifier, Reference } from "@apollo/client/cache";
|
|
4
|
+
import type { Incremental } from "@apollo/client/incremental";
|
|
5
|
+
import type { ApolloLink } from "@apollo/client/link";
|
|
6
|
+
import type { ClientAwarenessLink } from "@apollo/client/link/client-awareness";
|
|
7
|
+
import type { LocalState } from "@apollo/client/local-state";
|
|
8
|
+
import type { MaybeMasked, Unmasked } from "@apollo/client/masking";
|
|
9
|
+
import { DocumentTransform } from "@apollo/client/utilities";
|
|
10
|
+
import type { VariablesOption, variablesUnknownSymbol } from "@apollo/client/utilities/internal";
|
|
11
|
+
import { getApolloClientMemoryInternals } from "@apollo/client/utilities/internal";
|
|
12
|
+
import type { ObservableQuery } from "./ObservableQuery.js";
|
|
13
|
+
import type { DefaultContext, ErrorLike, InternalRefetchQueriesInclude, InternalRefetchQueriesResult, MutationQueryReducersMap, MutationUpdaterFunction, NormalizedExecutionResult, OnQueryUpdated, OperationVariables, RefetchQueriesInclude, RefetchQueriesPromiseResults, SubscriptionObservable, TypedDocumentNode } from "./types.js";
|
|
14
|
+
import type { ErrorPolicy, FetchPolicy, MutationFetchPolicy, NextFetchPolicyContext, RefetchWritePolicy, WatchQueryFetchPolicy } from "./watchQueryOptions.js";
|
|
15
|
+
export declare namespace ApolloClient {
|
|
16
|
+
interface DefaultOptions {
|
|
17
|
+
watchQuery?: Partial<ApolloClient.WatchQueryOptions<any, any>>;
|
|
18
|
+
query?: Partial<ApolloClient.QueryOptions<any, any>>;
|
|
19
|
+
mutate?: Partial<ApolloClient.MutateOptions<any, any, any>>;
|
|
20
|
+
}
|
|
21
|
+
interface Options {
|
|
22
|
+
/**
|
|
23
|
+
* An `ApolloLink` instance to serve as Apollo Client's network layer. For more information, see [Advanced HTTP networking](https://www.apollographql.com/docs/react/networking/advanced-http-networking/).
|
|
24
|
+
*/
|
|
25
|
+
link: ApolloLink;
|
|
26
|
+
/**
|
|
27
|
+
* The cache that Apollo Client should use to store query results locally. The recommended cache is `InMemoryCache`, which is provided by the `@apollo/client` package.
|
|
28
|
+
*
|
|
29
|
+
* For more information, see [Configuring the cache](https://www.apollographql.com/docs/react/caching/cache-configuration/).
|
|
30
|
+
*/
|
|
31
|
+
cache: ApolloCache;
|
|
32
|
+
/**
|
|
33
|
+
* The time interval (in milliseconds) before Apollo Client force-fetches queries after a server-side render.
|
|
34
|
+
*
|
|
35
|
+
* @defaultValue `0` (no delay)
|
|
36
|
+
*/
|
|
37
|
+
ssrForceFetchDelay?: number;
|
|
38
|
+
/**
|
|
39
|
+
* When using Apollo Client for [server-side rendering](https://www.apollographql.com/docs/react/performance/server-side-rendering/), set this to `true` so that the [`getDataFromTree` function](../react/ssr/#getdatafromtree) can work effectively.
|
|
40
|
+
*
|
|
41
|
+
* @defaultValue `false`
|
|
42
|
+
*/
|
|
43
|
+
ssrMode?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* If `false`, Apollo Client sends every created query to the server, even if a _completely_ identical query (identical in terms of query string, variable values, and operationName) is already in flight.
|
|
46
|
+
*
|
|
47
|
+
* @defaultValue `true`
|
|
48
|
+
*/
|
|
49
|
+
queryDeduplication?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Provide this object to set application-wide default values for options you can provide to the `watchQuery`, `query`, and `mutate` functions. See below for an example object.
|
|
52
|
+
*
|
|
53
|
+
* See this [example object](https://www.apollographql.com/docs/react/api/core/ApolloClient#example-defaultoptions-object).
|
|
54
|
+
*/
|
|
55
|
+
defaultOptions?: ApolloClient.DefaultOptions;
|
|
56
|
+
defaultContext?: Partial<DefaultContext>;
|
|
57
|
+
/**
|
|
58
|
+
* If `true`, Apollo Client will assume results read from the cache are never mutated by application code, which enables substantial performance optimizations.
|
|
59
|
+
*
|
|
60
|
+
* @defaultValue `false`
|
|
61
|
+
*/
|
|
62
|
+
assumeImmutableResults?: boolean;
|
|
63
|
+
localState?: LocalState;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
clientAwareness?: ClientAwarenessLink.ClientAwarenessOptions;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
enhancedClientAwareness?: ClientAwarenessLink.EnhancedClientAwarenessOptions;
|
|
72
|
+
documentTransform?: DocumentTransform;
|
|
73
|
+
/**
|
|
74
|
+
* Configuration used by the [Apollo Client Devtools extension](https://www.apollographql.com/docs/react/development-testing/developer-tooling/#apollo-client-devtools) for this client.
|
|
75
|
+
*
|
|
76
|
+
* @since 3.11.0
|
|
77
|
+
*/
|
|
78
|
+
devtools?: ApolloClient.DevtoolsOptions;
|
|
79
|
+
/**
|
|
80
|
+
* Determines if data masking is enabled for the client.
|
|
81
|
+
*
|
|
82
|
+
* @defaultValue false
|
|
83
|
+
*/
|
|
84
|
+
dataMasking?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Determines the strategy used to parse incremental chunks from `@defer`
|
|
87
|
+
* queries.
|
|
88
|
+
*/
|
|
89
|
+
incrementalHandler?: Incremental.Handler<any>;
|
|
90
|
+
/**
|
|
91
|
+
* @experimental
|
|
92
|
+
* Allows passing in "experiments", experimental features that might one day
|
|
93
|
+
* become part of Apollo Client's core functionality.
|
|
94
|
+
* Keep in mind that these features might change the core of Apollo Client.
|
|
95
|
+
* Do not pass in experiments that are not provided by Apollo.
|
|
96
|
+
*/
|
|
97
|
+
experiments?: ApolloClient.Experiment[];
|
|
98
|
+
}
|
|
99
|
+
interface DevtoolsOptions {
|
|
100
|
+
/**
|
|
101
|
+
* If `true`, the [Apollo Client Devtools](https://www.apollographql.com/docs/react/development-testing/developer-tooling/#apollo-client-devtools) browser extension can connect to this `ApolloClient` instance.
|
|
102
|
+
*
|
|
103
|
+
* The default value is `false` in production and `true` in development if there is a `window` object.
|
|
104
|
+
*/
|
|
105
|
+
enabled?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Optional name for this `ApolloClient` instance in the devtools. This is
|
|
108
|
+
* useful when you instantiate multiple clients and want to be able to
|
|
109
|
+
* identify them by name.
|
|
110
|
+
*/
|
|
111
|
+
name?: string;
|
|
112
|
+
}
|
|
113
|
+
type MutateOptions<TData = unknown, TVariables extends OperationVariables = OperationVariables, TCache extends ApolloCache = ApolloCache> = {
|
|
114
|
+
/**
|
|
115
|
+
* By providing either an object or a callback function that, when invoked after
|
|
116
|
+
* a mutation, allows you to return optimistic data and optionally skip updates
|
|
117
|
+
* via the `IGNORE` sentinel object, Apollo Client caches this temporary
|
|
118
|
+
* (and potentially incorrect) response until the mutation completes, enabling
|
|
119
|
+
* more responsive UI updates.
|
|
120
|
+
*
|
|
121
|
+
* For more information, see [Optimistic mutation results](https://www.apollographql.com/docs/react/performance/optimistic-ui/).
|
|
122
|
+
*
|
|
123
|
+
* @docGroup 3. Caching options
|
|
124
|
+
*/
|
|
125
|
+
optimisticResponse?: Unmasked<NoInfer<TData>> | ((vars: TVariables, { IGNORE }: {
|
|
126
|
+
IGNORE: IgnoreModifier;
|
|
127
|
+
}) => Unmasked<NoInfer<TData>> | IgnoreModifier);
|
|
128
|
+
/**
|
|
129
|
+
* A `MutationQueryReducersMap`, which is map from query names to
|
|
130
|
+
* mutation query reducers. Briefly, this map defines how to incorporate the
|
|
131
|
+
* results of the mutation into the results of queries that are currently
|
|
132
|
+
* being watched by your application.
|
|
133
|
+
*/
|
|
134
|
+
updateQueries?: MutationQueryReducersMap<TData>;
|
|
135
|
+
/**
|
|
136
|
+
* An array (or a function that _returns_ an array) that specifies which queries you want to refetch after the mutation occurs.
|
|
137
|
+
*
|
|
138
|
+
* Each array value can be either:
|
|
139
|
+
*
|
|
140
|
+
* - An object containing the `query` to execute, along with any `variables`
|
|
141
|
+
*
|
|
142
|
+
* - A string indicating the operation name of the query to refetch
|
|
143
|
+
*
|
|
144
|
+
* @docGroup 1. Operation options
|
|
145
|
+
*/
|
|
146
|
+
refetchQueries?: ((result: NormalizedExecutionResult<Unmasked<TData>>) => InternalRefetchQueriesInclude) | InternalRefetchQueriesInclude;
|
|
147
|
+
/**
|
|
148
|
+
* If `true`, makes sure all queries included in `refetchQueries` are completed before the mutation is considered complete.
|
|
149
|
+
*
|
|
150
|
+
* The default value is `false` (queries are refetched asynchronously).
|
|
151
|
+
*
|
|
152
|
+
* @docGroup 1. Operation options
|
|
153
|
+
*/
|
|
154
|
+
awaitRefetchQueries?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* A function used to update the Apollo Client cache after the mutation completes.
|
|
157
|
+
*
|
|
158
|
+
* For more information, see [Updating the cache after a mutation](https://www.apollographql.com/docs/react/data/mutations#updating-the-cache-after-a-mutation).
|
|
159
|
+
*
|
|
160
|
+
* @docGroup 3. Caching options
|
|
161
|
+
*/
|
|
162
|
+
update?: MutationUpdaterFunction<TData, TVariables, TCache>;
|
|
163
|
+
/**
|
|
164
|
+
* Optional callback for intercepting queries whose cache data has been updated by the mutation, as well as any queries specified in the `refetchQueries: [...]` list passed to `client.mutate`.
|
|
165
|
+
*
|
|
166
|
+
* Returning a `Promise` from `onQueryUpdated` will cause the final mutation `Promise` to await the returned `Promise`. Returning `false` causes the query to be ignored.
|
|
167
|
+
*
|
|
168
|
+
* @docGroup 1. Operation options
|
|
169
|
+
*/
|
|
170
|
+
onQueryUpdated?: OnQueryUpdated<any>;
|
|
171
|
+
/**
|
|
172
|
+
* Specifies how the mutation handles a response that returns both GraphQL errors and partial results.
|
|
173
|
+
*
|
|
174
|
+
* For details, see [GraphQL error policies](https://www.apollographql.com/docs/react/data/error-handling/#graphql-error-policies).
|
|
175
|
+
*
|
|
176
|
+
* The default value is `none`, meaning that the mutation result includes error details but _not_ partial results.
|
|
177
|
+
*
|
|
178
|
+
* @docGroup 1. Operation options
|
|
179
|
+
*/
|
|
180
|
+
errorPolicy?: ErrorPolicy;
|
|
181
|
+
/**
|
|
182
|
+
* If you're using [Apollo Link](https://www.apollographql.com/docs/react/api/link/introduction/), this object is the initial value of the `context` object that's passed along your link chain.
|
|
183
|
+
*
|
|
184
|
+
* @docGroup 2. Networking options
|
|
185
|
+
*/
|
|
186
|
+
context?: DefaultContext;
|
|
187
|
+
/**
|
|
188
|
+
* Provide `no-cache` if the mutation's result should _not_ be written to the Apollo Client cache.
|
|
189
|
+
*
|
|
190
|
+
* The default value is `network-only` (which means the result _is_ written to the cache).
|
|
191
|
+
*
|
|
192
|
+
* Unlike queries, mutations _do not_ support [fetch policies](https://www.apollographql.com/docs/react/data/queries/#setting-a-fetch-policy) besides `network-only` and `no-cache`.
|
|
193
|
+
*
|
|
194
|
+
* @docGroup 3. Caching options
|
|
195
|
+
*/
|
|
196
|
+
fetchPolicy?: MutationFetchPolicy;
|
|
197
|
+
/**
|
|
198
|
+
* To avoid retaining sensitive information from mutation root field
|
|
199
|
+
* arguments, Apollo Client v3.4+ automatically clears any `ROOT_MUTATION`
|
|
200
|
+
* fields from the cache after each mutation finishes. If you need this
|
|
201
|
+
* information to remain in the cache, you can prevent the removal by passing
|
|
202
|
+
* `keepRootFields: true` to the mutation. `ROOT_MUTATION` result data are
|
|
203
|
+
* also passed to the mutation `update` function, so we recommend obtaining
|
|
204
|
+
* the results that way, rather than using this option, if possible.
|
|
205
|
+
*/
|
|
206
|
+
keepRootFields?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* A GraphQL document, often created with `gql` from the `graphql-tag`
|
|
209
|
+
* package, that contains a single mutation inside of it.
|
|
210
|
+
*
|
|
211
|
+
* @docGroup 1. Operation options
|
|
212
|
+
*/
|
|
213
|
+
mutation: DocumentNode | TypedDocumentNode<TData, TVariables>;
|
|
214
|
+
} & VariablesOption<NoInfer<TVariables>>;
|
|
215
|
+
interface MutateResult<TData = unknown> {
|
|
216
|
+
/**
|
|
217
|
+
* The data returned from your mutation. Can be `undefined` if the `errorPolicy`
|
|
218
|
+
* is `all` or `ignore` and the server returns a GraphQL response with `errors`
|
|
219
|
+
* but not `data` or a network error is returned.
|
|
220
|
+
*/
|
|
221
|
+
data: TData | undefined;
|
|
222
|
+
/**
|
|
223
|
+
* If the mutation produces one or more errors, this object contains either an array of `graphQLErrors` or a single `networkError`. Otherwise, this value is `undefined`.
|
|
224
|
+
*
|
|
225
|
+
* For more information, see [Handling operation errors](https://www.apollographql.com/docs/react/data/error-handling/).
|
|
226
|
+
*/
|
|
227
|
+
error?: ErrorLike;
|
|
228
|
+
/**
|
|
229
|
+
* Custom extensions returned from the GraphQL server
|
|
230
|
+
*/
|
|
231
|
+
extensions?: Record<string, unknown>;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Query options.
|
|
235
|
+
*/
|
|
236
|
+
type QueryOptions<TData = unknown, TVariables extends OperationVariables = OperationVariables> = {
|
|
237
|
+
/**
|
|
238
|
+
* A GraphQL query string parsed into an AST with the gql template literal.
|
|
239
|
+
*
|
|
240
|
+
* @docGroup 1. Operation options
|
|
241
|
+
*/
|
|
242
|
+
query: DocumentNode | TypedDocumentNode<TData, TVariables>;
|
|
243
|
+
/**
|
|
244
|
+
* Specifies how the query handles a response that returns both GraphQL errors and partial results.
|
|
245
|
+
*
|
|
246
|
+
* For details, see [GraphQL error policies](https://www.apollographql.com/docs/react/data/error-handling/#graphql-error-policies).
|
|
247
|
+
*
|
|
248
|
+
* The default value is `none`, meaning that the query result includes error details but not partial results.
|
|
249
|
+
*
|
|
250
|
+
* @docGroup 1. Operation options
|
|
251
|
+
*/
|
|
252
|
+
errorPolicy?: ErrorPolicy;
|
|
253
|
+
/**
|
|
254
|
+
* If you're using [Apollo Link](https://www.apollographql.com/docs/react/api/link/introduction/), this object is the initial value of the `context` object that's passed along your link chain.
|
|
255
|
+
*
|
|
256
|
+
* @docGroup 2. Networking options
|
|
257
|
+
*/
|
|
258
|
+
context?: DefaultContext;
|
|
259
|
+
/**
|
|
260
|
+
* Specifies how the query interacts with the Apollo Client cache during execution (for example, whether it checks the cache for results before sending a request to the server).
|
|
261
|
+
*
|
|
262
|
+
* For details, see [Setting a fetch policy](https://www.apollographql.com/docs/react/data/queries/#setting-a-fetch-policy).
|
|
263
|
+
*
|
|
264
|
+
* The default value is `cache-first`.
|
|
265
|
+
*
|
|
266
|
+
* @docGroup 3. Caching options
|
|
267
|
+
*/
|
|
268
|
+
fetchPolicy?: FetchPolicy;
|
|
269
|
+
} & VariablesOption<NoInfer<TVariables>>;
|
|
270
|
+
interface QueryResult<TData = unknown> {
|
|
271
|
+
/**
|
|
272
|
+
* An object containing the result of your GraphQL query after it completes.
|
|
273
|
+
*
|
|
274
|
+
* This value might be `undefined` if a query results in one or more errors (depending on the query's `errorPolicy`).
|
|
275
|
+
*
|
|
276
|
+
* @docGroup 1. Operation data
|
|
277
|
+
*/
|
|
278
|
+
data: TData | undefined;
|
|
279
|
+
/**
|
|
280
|
+
* A single ErrorLike object describing the error that occurred during the latest
|
|
281
|
+
* query execution.
|
|
282
|
+
*
|
|
283
|
+
* For more information, see [Handling operation errors](https://www.apollographql.com/docs/react/data/error-handling/).
|
|
284
|
+
*
|
|
285
|
+
* @docGroup 1. Operation data
|
|
286
|
+
*/
|
|
287
|
+
error?: ErrorLike;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Options object for the `client.refetchQueries` method.
|
|
291
|
+
*/
|
|
292
|
+
interface RefetchQueriesOptions<TCache extends ApolloCache, TResult> {
|
|
293
|
+
/**
|
|
294
|
+
* Optional function that updates cached fields to trigger refetches of queries that include those fields.
|
|
295
|
+
*/
|
|
296
|
+
updateCache?: (cache: TCache) => void;
|
|
297
|
+
/**
|
|
298
|
+
* Optional array specifying queries to refetch. Each element can be either a query's string name or a `DocumentNode` object.
|
|
299
|
+
*
|
|
300
|
+
* Pass `"active"` as a shorthand to refetch all active queries, or `"all"` to refetch all active and inactive queries.
|
|
301
|
+
*
|
|
302
|
+
* Analogous to the [`options.refetchQueries`](https://www.apollographql.com/docs/react/data/mutations/#options) array for mutations.
|
|
303
|
+
*/
|
|
304
|
+
include?: RefetchQueriesInclude;
|
|
305
|
+
/**
|
|
306
|
+
* If `true`, the `options.updateCache` function is executed on a temporary optimistic layer of `InMemoryCache`, so its modifications can be discarded from the cache after observing which fields it invalidated.
|
|
307
|
+
*
|
|
308
|
+
* Defaults to `false`, meaning `options.updateCache` updates the cache in a lasting way.
|
|
309
|
+
*/
|
|
310
|
+
optimistic?: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* Optional callback function that's called once for each `ObservableQuery` that's either affected by `options.updateCache` or listed in `options.include` (or both).
|
|
313
|
+
*
|
|
314
|
+
* If `onQueryUpdated` is not provided, the default implementation returns the result of calling `observableQuery.refetch()`. When `onQueryUpdated` is provided, it can dynamically decide whether (and how) each query should be refetched.
|
|
315
|
+
*
|
|
316
|
+
* Returning `false` from `onQueryUpdated` prevents the associated query from being refetched.
|
|
317
|
+
*/
|
|
318
|
+
onQueryUpdated?: OnQueryUpdated<TResult> | null;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* The result of client.refetchQueries is thenable/awaitable, if you just want
|
|
322
|
+
* an array of fully resolved results, but you can also access the raw results
|
|
323
|
+
* immediately by examining the additional `queries` and `results` properties of
|
|
324
|
+
* the `RefetchQueriesResult<TResult> object`.
|
|
325
|
+
*/
|
|
326
|
+
interface RefetchQueriesResult<TResult> extends Promise<RefetchQueriesPromiseResults<TResult>>, RefetchQueriesResult.AdditionalProperties<TResult> {
|
|
327
|
+
}
|
|
328
|
+
namespace RefetchQueriesResult {
|
|
329
|
+
interface AdditionalProperties<TResult> {
|
|
330
|
+
/**
|
|
331
|
+
* An array of ObservableQuery objects corresponding 1:1 to TResult values
|
|
332
|
+
* in the results arrays (both the `result` property and the resolved value).
|
|
333
|
+
*/
|
|
334
|
+
queries: ObservableQuery<any>[];
|
|
335
|
+
/**
|
|
336
|
+
* An array of results that were either returned by `onQueryUpdated`, or provided by default in the absence of `onQueryUpdated`, including pending promises.
|
|
337
|
+
*
|
|
338
|
+
* If `onQueryUpdated` returns `false` for a given query, no result is provided for that query.
|
|
339
|
+
*
|
|
340
|
+
* If `onQueryUpdated` returns `true`, the resulting `Promise<ApolloQueryResult<any>>` is included in the `results` array instead of `true`.
|
|
341
|
+
*/
|
|
342
|
+
results: InternalRefetchQueriesResult<TResult>[];
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
type SubscribeOptions<TData = unknown, TVariables extends OperationVariables = OperationVariables> = {
|
|
346
|
+
/**
|
|
347
|
+
* A GraphQL document, often created with `gql` from the `graphql-tag`
|
|
348
|
+
* package, that contains a single subscription inside of it.
|
|
349
|
+
*/
|
|
350
|
+
query: DocumentNode | TypedDocumentNode<TData, TVariables>;
|
|
351
|
+
/**
|
|
352
|
+
* How you want your component to interact with the Apollo cache. For details, see [Setting a fetch policy](https://www.apollographql.com/docs/react/data/queries/#setting-a-fetch-policy).
|
|
353
|
+
*/
|
|
354
|
+
fetchPolicy?: FetchPolicy;
|
|
355
|
+
/**
|
|
356
|
+
* Specifies the `ErrorPolicy` to be used for this operation
|
|
357
|
+
*/
|
|
358
|
+
errorPolicy?: ErrorPolicy;
|
|
359
|
+
/**
|
|
360
|
+
* Shared context between your component and your network interface (Apollo Link).
|
|
361
|
+
*/
|
|
362
|
+
context?: DefaultContext;
|
|
363
|
+
/**
|
|
364
|
+
* Shared context between your component and your network interface (Apollo Link).
|
|
365
|
+
*/
|
|
366
|
+
extensions?: Record<string, any>;
|
|
367
|
+
} & VariablesOption<NoInfer<TVariables>>;
|
|
368
|
+
interface SubscribeResult<TData = unknown> {
|
|
369
|
+
/**
|
|
370
|
+
* The data returned from your mutation. Can be `undefined` if the `errorPolicy`
|
|
371
|
+
* is `all` or `ignore` and the server returns a GraphQL response with `errors`
|
|
372
|
+
* but not `data` or a network error is returned.
|
|
373
|
+
*/
|
|
374
|
+
data: TData | undefined;
|
|
375
|
+
/**
|
|
376
|
+
* If the mutation produces one or more errors, this object contains either an array of `graphQLErrors` or a single `networkError`. Otherwise, this value is `undefined`.
|
|
377
|
+
*
|
|
378
|
+
* For more information, see [Handling operation errors](https://www.apollographql.com/docs/react/data/error-handling/).
|
|
379
|
+
*/
|
|
380
|
+
error?: ErrorLike;
|
|
381
|
+
/**
|
|
382
|
+
* Custom extensions returned from the GraphQL server
|
|
383
|
+
*/
|
|
384
|
+
extensions?: Record<string, unknown>;
|
|
385
|
+
}
|
|
386
|
+
type WatchFragmentOptions<TData = unknown, TVariables extends OperationVariables = OperationVariables> = ApolloCache.WatchFragmentOptions<TData, TVariables>;
|
|
387
|
+
type WatchFragmentResult<TData = unknown> = ApolloCache.WatchFragmentResult<MaybeMasked<TData>>;
|
|
388
|
+
interface ObservableFragment<TData = unknown> extends Observable<ApolloClient.WatchFragmentResult<TData>> {
|
|
389
|
+
/**
|
|
390
|
+
* Return the current result for the fragment.
|
|
391
|
+
*/
|
|
392
|
+
getCurrentResult: () => ApolloClient.WatchFragmentResult<TData>;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Watched query options.
|
|
396
|
+
*/
|
|
397
|
+
type WatchQueryOptions<TData = unknown, TVariables extends OperationVariables = OperationVariables> = {
|
|
398
|
+
/**
|
|
399
|
+
* Specifies how the query interacts with the Apollo Client cache during execution (for example, whether it checks the cache for results before sending a request to the server).
|
|
400
|
+
*
|
|
401
|
+
* For details, see [Setting a fetch policy](https://www.apollographql.com/docs/react/data/queries/#setting-a-fetch-policy).
|
|
402
|
+
*
|
|
403
|
+
* The default value is `cache-first`.
|
|
404
|
+
*
|
|
405
|
+
* @docGroup 3. Caching options
|
|
406
|
+
*/
|
|
407
|
+
fetchPolicy?: WatchQueryFetchPolicy;
|
|
408
|
+
/**
|
|
409
|
+
* Specifies the `FetchPolicy` to be used after this query has completed.
|
|
410
|
+
*
|
|
411
|
+
* @docGroup 3. Caching options
|
|
412
|
+
*/
|
|
413
|
+
nextFetchPolicy?: WatchQueryFetchPolicy | ((this: WatchQueryOptions<TData, TVariables>, currentFetchPolicy: WatchQueryFetchPolicy, context: NextFetchPolicyContext<TData, TVariables>) => WatchQueryFetchPolicy);
|
|
414
|
+
/**
|
|
415
|
+
* Defaults to the initial value of options.fetchPolicy, but can be explicitly
|
|
416
|
+
* configured to specify the WatchQueryFetchPolicy to revert back to whenever
|
|
417
|
+
* variables change (unless nextFetchPolicy intervenes).
|
|
418
|
+
*
|
|
419
|
+
* @docGroup 3. Caching options
|
|
420
|
+
*/
|
|
421
|
+
initialFetchPolicy?: WatchQueryFetchPolicy;
|
|
422
|
+
/**
|
|
423
|
+
* Specifies whether a `NetworkStatus.refetch` operation should merge
|
|
424
|
+
* incoming field data with existing data, or overwrite the existing data.
|
|
425
|
+
* Overwriting is probably preferable, but merging is currently the default
|
|
426
|
+
* behavior, for backwards compatibility with Apollo Client 3.x.
|
|
427
|
+
*
|
|
428
|
+
* @docGroup 3. Caching options
|
|
429
|
+
*/
|
|
430
|
+
refetchWritePolicy?: RefetchWritePolicy;
|
|
431
|
+
/**
|
|
432
|
+
* Specifies how the query handles a response that returns both GraphQL errors and partial results.
|
|
433
|
+
*
|
|
434
|
+
* For details, see [GraphQL error policies](https://www.apollographql.com/docs/react/data/error-handling/#graphql-error-policies).
|
|
435
|
+
*
|
|
436
|
+
* The default value is `none`, meaning that the query result includes error details but not partial results.
|
|
437
|
+
*
|
|
438
|
+
* @docGroup 1. Operation options
|
|
439
|
+
*/
|
|
440
|
+
errorPolicy?: ErrorPolicy;
|
|
441
|
+
/**
|
|
442
|
+
* If you're using [Apollo Link](https://www.apollographql.com/docs/react/api/link/introduction/), this object is the initial value of the `context` object that's passed along your link chain.
|
|
443
|
+
*
|
|
444
|
+
* @docGroup 2. Networking options
|
|
445
|
+
*/
|
|
446
|
+
context?: DefaultContext;
|
|
447
|
+
/**
|
|
448
|
+
* Specifies the interval (in milliseconds) at which the query polls for updated results.
|
|
449
|
+
*
|
|
450
|
+
* The default value is `0` (no polling).
|
|
451
|
+
*
|
|
452
|
+
* @docGroup 2. Networking options
|
|
453
|
+
*/
|
|
454
|
+
pollInterval?: number;
|
|
455
|
+
/**
|
|
456
|
+
* If `true`, the in-progress query's associated component re-renders whenever the network status changes or a network error occurs.
|
|
457
|
+
*
|
|
458
|
+
* The default value is `true`.
|
|
459
|
+
*
|
|
460
|
+
* @docGroup 2. Networking options
|
|
461
|
+
*/
|
|
462
|
+
notifyOnNetworkStatusChange?: boolean;
|
|
463
|
+
/**
|
|
464
|
+
* If `true`, the query can return partial results from the cache if the cache doesn't contain results for all queried fields.
|
|
465
|
+
*
|
|
466
|
+
* The default value is `false`.
|
|
467
|
+
*
|
|
468
|
+
* @docGroup 3. Caching options
|
|
469
|
+
*/
|
|
470
|
+
returnPartialData?: boolean;
|
|
471
|
+
/**
|
|
472
|
+
* A callback function that's called whenever a refetch attempt occurs
|
|
473
|
+
* while polling. If the function returns `true`, the refetch is
|
|
474
|
+
* skipped and not reattempted until the next poll interval.
|
|
475
|
+
*
|
|
476
|
+
* @docGroup 2. Networking options
|
|
477
|
+
*/
|
|
478
|
+
skipPollAttempt?: () => boolean;
|
|
479
|
+
/**
|
|
480
|
+
* A GraphQL query string parsed into an AST with the gql template literal.
|
|
481
|
+
*
|
|
482
|
+
* @docGroup 1. Operation options
|
|
483
|
+
*/
|
|
484
|
+
query: DocumentNode | TypedDocumentNode<TData, TVariables>;
|
|
485
|
+
/**
|
|
486
|
+
* @internal This API is meant for framework integrations only.
|
|
487
|
+
* Do not use for everyday use.
|
|
488
|
+
*
|
|
489
|
+
* Indicates that the variables are unknown at the time of query creation.
|
|
490
|
+
* This option can only be set when `fetchPolicy` is `'standby'`.
|
|
491
|
+
* Setting this to `true` will prevent `client.refetchQueries` from refetching
|
|
492
|
+
* this query before it has left the `'standby'` state, either by setting a
|
|
493
|
+
* `fetchPolicy`, or by calling `observableQuery.refetch()` explicitly.
|
|
494
|
+
*
|
|
495
|
+
* Changing this option after the query has been created will have no effect.
|
|
496
|
+
*
|
|
497
|
+
* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
|
|
498
|
+
*/
|
|
499
|
+
[variablesUnknownSymbol]?: boolean;
|
|
500
|
+
} & VariablesOption<NoInfer<TVariables>>;
|
|
501
|
+
namespace Base {
|
|
502
|
+
interface ReadQueryOptions<TData, TVariables extends OperationVariables> {
|
|
503
|
+
/**
|
|
504
|
+
* The GraphQL query shape to be used constructed using the `gql` template
|
|
505
|
+
* string tag. The query will be used to determine the
|
|
506
|
+
* shape of the data to be read.
|
|
507
|
+
*/
|
|
508
|
+
query: DocumentNode | TypedDocumentNode<TData, TVariables>;
|
|
509
|
+
/**
|
|
510
|
+
* The root id to be used. Defaults to "ROOT_QUERY", which is the ID of the
|
|
511
|
+
* root query object. This property makes `readQuery` capable of reading data
|
|
512
|
+
* from any object in the cache.
|
|
513
|
+
*/
|
|
514
|
+
id?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Whether to return incomplete data rather than null.
|
|
517
|
+
* @defaultValue false
|
|
518
|
+
*/
|
|
519
|
+
returnPartialData?: boolean;
|
|
520
|
+
/**
|
|
521
|
+
* Whether to read from optimistic or non-optimistic cache data.
|
|
522
|
+
* This option should be preferred over the `optimistic` parameter of the
|
|
523
|
+
* `readQuery` method.
|
|
524
|
+
* @defaultValue false
|
|
525
|
+
*/
|
|
526
|
+
optimistic?: boolean;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
type ReadQueryOptions<TData, TVariables extends OperationVariables> = Base.ReadQueryOptions<TData, TVariables> & VariablesOption<TVariables>;
|
|
530
|
+
namespace DocumentationTypes {
|
|
531
|
+
interface ReadQueryOptions<TData, TVariables extends OperationVariables> extends Base.ReadQueryOptions<TData, TVariables> {
|
|
532
|
+
/**
|
|
533
|
+
* Any variables that the GraphQL query may depend on.
|
|
534
|
+
*/
|
|
535
|
+
variables?: TVariables;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
namespace Base {
|
|
539
|
+
interface ReadFragmentOptions<TData, TVariables extends OperationVariables> {
|
|
540
|
+
/**
|
|
541
|
+
* A GraphQL document created using the `gql` template string tag
|
|
542
|
+
* with one or more fragments which will be used to determine
|
|
543
|
+
* the shape of data to read. If you provide more than one fragment in this
|
|
544
|
+
* document then you must also specify `fragmentName` to specify which
|
|
545
|
+
* fragment is the root fragment.
|
|
546
|
+
*/
|
|
547
|
+
fragment: DocumentNode | TypedDocumentNode<TData, TVariables>;
|
|
548
|
+
/**
|
|
549
|
+
* The name of the fragment in your GraphQL document to be used. If you do
|
|
550
|
+
* not provide a `fragmentName` and there is only one fragment in your
|
|
551
|
+
* `fragment` document then that fragment will be used.
|
|
552
|
+
*/
|
|
553
|
+
fragmentName?: string;
|
|
554
|
+
/**
|
|
555
|
+
* Whether to return incomplete data rather than null.
|
|
556
|
+
* @defaultValue false
|
|
557
|
+
*/
|
|
558
|
+
returnPartialData?: boolean;
|
|
559
|
+
/**
|
|
560
|
+
* Whether to read from optimistic or non-optimistic cache data.
|
|
561
|
+
* This option should be preferred over the `optimistic` parameter of the
|
|
562
|
+
* `readFragment` method.
|
|
563
|
+
* @defaultValue false
|
|
564
|
+
*/
|
|
565
|
+
optimistic?: boolean;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
namespace DocumentationTypes {
|
|
569
|
+
interface ReadFragmentOptions<TData, TVariables extends OperationVariables> extends Base.ReadFragmentOptions<TData, TVariables> {
|
|
570
|
+
/**
|
|
571
|
+
* The root id to be used. This id should take the same form as the
|
|
572
|
+
* value returned by the `cache.identify` function. If a value with your
|
|
573
|
+
* id does not exist in the store, `null` will be returned.
|
|
574
|
+
*/
|
|
575
|
+
id?: string;
|
|
576
|
+
/**
|
|
577
|
+
* An object containing a `__typename` and primary key fields
|
|
578
|
+
* (such as `id`) identifying the entity object from which the fragment will
|
|
579
|
+
* be retrieved, or a `{ __ref: "..." }` reference, or a `string` ID
|
|
580
|
+
* (uncommon).
|
|
581
|
+
*
|
|
582
|
+
* @remarks
|
|
583
|
+
* `from` is given precedence over `id` when both are provided.
|
|
584
|
+
*/
|
|
585
|
+
from?: ApolloCache.FromOptionValue<TData>;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
type ReadFragmentOptions<TData, TVariables extends OperationVariables> = Base.ReadFragmentOptions<TData, TVariables> & VariablesOption<TVariables> & Cache.CacheIdentifierOption<TData>;
|
|
589
|
+
namespace DocumentationTypes {
|
|
590
|
+
interface WriteQueryOptions<TData, TVariables extends OperationVariables> extends Base.WriteQueryOptions<TData, TVariables> {
|
|
591
|
+
/**
|
|
592
|
+
* Any variables that your GraphQL fragments depend on.
|
|
593
|
+
*/
|
|
594
|
+
variables?: TVariables;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
namespace Base {
|
|
598
|
+
interface WriteQueryOptions<TData, TVariables extends OperationVariables> {
|
|
599
|
+
/**
|
|
600
|
+
* The GraphQL query shape to be used constructed using the `gql` template
|
|
601
|
+
* string tag. The query will be used to determine the
|
|
602
|
+
* shape of the data to be read.
|
|
603
|
+
*/
|
|
604
|
+
query: DocumentNode | TypedDocumentNode<TData, TVariables>;
|
|
605
|
+
/**
|
|
606
|
+
* The root id to be used. Defaults to "ROOT_QUERY", which is the ID of the
|
|
607
|
+
* root query object. This property makes writeQuery capable of writing data
|
|
608
|
+
* to any object in the cache.
|
|
609
|
+
*/
|
|
610
|
+
id?: string;
|
|
611
|
+
/**
|
|
612
|
+
* The data to write to the store.
|
|
613
|
+
*/
|
|
614
|
+
data: Unmasked<TData>;
|
|
615
|
+
/**
|
|
616
|
+
* Whether to notify query watchers.
|
|
617
|
+
* @defaultValue true
|
|
618
|
+
*/
|
|
619
|
+
broadcast?: boolean;
|
|
620
|
+
/**
|
|
621
|
+
* When true, ignore existing field data rather than merging it with
|
|
622
|
+
* incoming data.
|
|
623
|
+
* @defaultValue false
|
|
624
|
+
*/
|
|
625
|
+
overwrite?: boolean;
|
|
626
|
+
/**
|
|
627
|
+
* GraphQL extensions for the write operation. Any provided `extensions`
|
|
628
|
+
* are available in `merge` functions.
|
|
629
|
+
*/
|
|
630
|
+
extensions?: Record<string, unknown>;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
type WriteQueryOptions<TData, TVariables extends OperationVariables> = Base.WriteQueryOptions<TData, TVariables> & VariablesOption<TVariables>;
|
|
634
|
+
namespace DocumentationTypes {
|
|
635
|
+
interface WriteQueryOptions<TData, TVariables extends OperationVariables> extends Base.WriteQueryOptions<TData, TVariables> {
|
|
636
|
+
/**
|
|
637
|
+
* Any variables that the GraphQL query may depend on.
|
|
638
|
+
*/
|
|
639
|
+
variables?: TVariables;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
namespace Base {
|
|
643
|
+
interface WriteFragmentOptions<TData, TVariables extends OperationVariables> {
|
|
644
|
+
/**
|
|
645
|
+
* A GraphQL document created using the `gql` template string tag from
|
|
646
|
+
* `graphql-tag` with one or more fragments which will be used to determine
|
|
647
|
+
* the shape of data to read. If you provide more than one fragment in this
|
|
648
|
+
* document then you must also specify `fragmentName` to specify which
|
|
649
|
+
* fragment is the root fragment.
|
|
650
|
+
*/
|
|
651
|
+
fragment: DocumentNode | TypedDocumentNode<TData, TVariables>;
|
|
652
|
+
/**
|
|
653
|
+
* The name of the fragment in your GraphQL document to be used. If you do
|
|
654
|
+
* not provide a `fragmentName` and there is only one fragment in your
|
|
655
|
+
* `fragment` document then that fragment will be used.
|
|
656
|
+
*/
|
|
657
|
+
fragmentName?: string;
|
|
658
|
+
/**
|
|
659
|
+
* The data to write to the store.
|
|
660
|
+
*/
|
|
661
|
+
data: Unmasked<TData>;
|
|
662
|
+
/**
|
|
663
|
+
* Whether to notify query watchers.
|
|
664
|
+
* @defaultValue true
|
|
665
|
+
*/
|
|
666
|
+
broadcast?: boolean;
|
|
667
|
+
/**
|
|
668
|
+
* When true, ignore existing field data rather than merging it with
|
|
669
|
+
* incoming data.
|
|
670
|
+
* @defaultValue false
|
|
671
|
+
*/
|
|
672
|
+
overwrite?: boolean;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
type WriteFragmentOptions<TData, TVariables extends OperationVariables> = Base.WriteFragmentOptions<TData, TVariables> & VariablesOption<TVariables> & Cache.CacheIdentifierOption<TData>;
|
|
676
|
+
namespace DocumentationTypes {
|
|
677
|
+
interface WriteFragmentOptions<TData, TVariables extends OperationVariables> extends Base.WriteFragmentOptions<TData, TVariables> {
|
|
678
|
+
/**
|
|
679
|
+
* The root id to be used. This id should take the same form as the
|
|
680
|
+
* value returned by the `cache.identify` function. If a value with your
|
|
681
|
+
* id does not exist in the store, `null` will be returned.
|
|
682
|
+
*/
|
|
683
|
+
id?: string;
|
|
684
|
+
/**
|
|
685
|
+
* An object containing a `__typename` and primary key fields
|
|
686
|
+
* (such as `id`) identifying the entity object from which the fragment will
|
|
687
|
+
* be retrieved, or a `{ __ref: "..." }` reference, or a `string` ID
|
|
688
|
+
* (uncommon).
|
|
689
|
+
*
|
|
690
|
+
* @remarks
|
|
691
|
+
* `from` is given precedence over `id` when both are provided.
|
|
692
|
+
*/
|
|
693
|
+
from?: ApolloCache.FromOptionValue<TData>;
|
|
694
|
+
/**
|
|
695
|
+
* Any variables that your GraphQL fragments depend on.
|
|
696
|
+
*/
|
|
697
|
+
variables?: TVariables;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
interface Experiment {
|
|
701
|
+
(this: ApolloClient, options: ApolloClient.Options): void;
|
|
702
|
+
v: 1;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* This is the primary Apollo Client class. It is used to send GraphQL documents (i.e. queries
|
|
707
|
+
* and mutations) to a GraphQL spec-compliant server over an `ApolloLink` instance,
|
|
708
|
+
* receive results from the server and cache the results in a store. It also delivers updates
|
|
709
|
+
* to GraphQL queries through `Observable` instances.
|
|
710
|
+
*/
|
|
711
|
+
export declare class ApolloClient {
|
|
712
|
+
link: ApolloLink;
|
|
713
|
+
cache: ApolloCache;
|
|
714
|
+
/**
|
|
715
|
+
* @deprecated `disableNetworkFetches` has been renamed to `prioritizeCacheValues`.
|
|
716
|
+
*/
|
|
717
|
+
disableNetworkFetches: never;
|
|
718
|
+
set prioritizeCacheValues(value: boolean);
|
|
719
|
+
/**
|
|
720
|
+
* Whether to prioritize cache values over network results when `query` or `watchQuery` is called.
|
|
721
|
+
* This will essentially turn a `"network-only"` or `"cache-and-network"` fetchPolicy into a `"cache-first"` fetchPolicy,
|
|
722
|
+
* but without influencing the `fetchPolicy` of the created `ObservableQuery` long-term.
|
|
723
|
+
*
|
|
724
|
+
* This can e.g. be used to prioritize the cache during the first render after SSR.
|
|
725
|
+
*/
|
|
726
|
+
get prioritizeCacheValues(): boolean;
|
|
727
|
+
version: string;
|
|
728
|
+
queryDeduplication: boolean;
|
|
729
|
+
defaultOptions: ApolloClient.DefaultOptions;
|
|
730
|
+
readonly devtoolsConfig: ApolloClient.DevtoolsOptions;
|
|
731
|
+
private queryManager;
|
|
732
|
+
private devToolsHookCb?;
|
|
733
|
+
private resetStoreCallbacks;
|
|
734
|
+
private clearStoreCallbacks;
|
|
735
|
+
/**
|
|
736
|
+
* Constructs an instance of `ApolloClient`.
|
|
737
|
+
*
|
|
738
|
+
* @example
|
|
739
|
+
*
|
|
740
|
+
* ```js
|
|
741
|
+
* import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client";
|
|
742
|
+
*
|
|
743
|
+
* const cache = new InMemoryCache();
|
|
744
|
+
* const link = new HttpLink({ uri: "http://localhost:4000/" });
|
|
745
|
+
*
|
|
746
|
+
* const client = new ApolloClient({
|
|
747
|
+
* // Provide required constructor fields
|
|
748
|
+
* cache: cache,
|
|
749
|
+
* link: link,
|
|
750
|
+
*
|
|
751
|
+
* // Provide some optional constructor fields
|
|
752
|
+
* clientAwareness: {
|
|
753
|
+
* name: "react-web-client",
|
|
754
|
+
* version: "1.3",
|
|
755
|
+
* },
|
|
756
|
+
* queryDeduplication: false,
|
|
757
|
+
* });
|
|
758
|
+
* ```
|
|
759
|
+
*/
|
|
760
|
+
constructor(options: ApolloClient.Options);
|
|
761
|
+
private connectToDevTools;
|
|
762
|
+
/**
|
|
763
|
+
* The `DocumentTransform` used to modify GraphQL documents before a request
|
|
764
|
+
* is made. If a custom `DocumentTransform` is not provided, this will be the
|
|
765
|
+
* default document transform.
|
|
766
|
+
*/
|
|
767
|
+
get documentTransform(): DocumentTransform;
|
|
768
|
+
/**
|
|
769
|
+
* The configured `LocalState` instance used to enable the use of `@client`
|
|
770
|
+
* fields.
|
|
771
|
+
*/
|
|
772
|
+
get localState(): LocalState | undefined;
|
|
773
|
+
set localState(localState: LocalState);
|
|
774
|
+
/**
|
|
775
|
+
* Call this method to terminate any active client processes, making it safe
|
|
776
|
+
* to dispose of this `ApolloClient` instance.
|
|
777
|
+
*
|
|
778
|
+
* This method performs aggressive cleanup to prevent memory leaks:
|
|
779
|
+
*
|
|
780
|
+
* - Unsubscribes all active `ObservableQuery` instances by emitting a `completed` event
|
|
781
|
+
* - Rejects all currently running queries with "QueryManager stopped while query was in flight"
|
|
782
|
+
* - Removes all queryRefs from the suspense cache
|
|
783
|
+
*/
|
|
784
|
+
stop(): void;
|
|
785
|
+
/**
|
|
786
|
+
* This watches the cache store of the query according to the options specified and
|
|
787
|
+
* returns an `ObservableQuery`. We can subscribe to this `ObservableQuery` and
|
|
788
|
+
* receive updated results through an observer when the cache store changes.
|
|
789
|
+
*
|
|
790
|
+
* Note that this method is not an implementation of GraphQL subscriptions. Rather,
|
|
791
|
+
* it uses Apollo's store in order to reactively deliver updates to your query results.
|
|
792
|
+
*
|
|
793
|
+
* For example, suppose you call watchQuery on a GraphQL query that fetches a person's
|
|
794
|
+
* first and last name and this person has a particular object identifier, provided by
|
|
795
|
+
* `cache.identify`. Later, a different query fetches that same person's
|
|
796
|
+
* first and last name and the first name has now changed. Then, any observers associated
|
|
797
|
+
* with the results of the first query will be updated with a new result object.
|
|
798
|
+
*
|
|
799
|
+
* Note that if the cache does not change, the subscriber will _not_ be notified.
|
|
800
|
+
*
|
|
801
|
+
* See [here](https://medium.com/apollo-stack/the-concepts-of-graphql-bc68bd819be3#.3mb0cbcmc) for
|
|
802
|
+
* a description of store reactivity.
|
|
803
|
+
*/
|
|
804
|
+
watchQuery<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.WatchQueryOptions<TData, TVariables>): ObservableQuery<TData, TVariables>;
|
|
805
|
+
/**
|
|
806
|
+
* This resolves a single query according to the options specified and
|
|
807
|
+
* returns a `Promise` which is either resolved with the resulting data
|
|
808
|
+
* or rejected with an error.
|
|
809
|
+
*
|
|
810
|
+
* @param options - An object of type `QueryOptions` that allows us to
|
|
811
|
+
* describe how this query should be treated e.g. whether it should hit the
|
|
812
|
+
* server at all or just resolve from the cache, etc.
|
|
813
|
+
*/
|
|
814
|
+
query<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.QueryOptions<TData, TVariables>): Promise<ApolloClient.QueryResult<MaybeMasked<TData>>>;
|
|
815
|
+
/**
|
|
816
|
+
* This resolves a single mutation according to the options specified and returns a
|
|
817
|
+
* Promise which is either resolved with the resulting data or rejected with an
|
|
818
|
+
* error. In some cases both `data` and `errors` might be undefined, for example
|
|
819
|
+
* when `errorPolicy` is set to `'ignore'`.
|
|
820
|
+
*
|
|
821
|
+
* It takes options as an object with the following keys and values:
|
|
822
|
+
*/
|
|
823
|
+
mutate<TData = unknown, TVariables extends OperationVariables = OperationVariables, TCache extends ApolloCache = ApolloCache>(options: ApolloClient.MutateOptions<TData, TVariables, TCache>): Promise<ApolloClient.MutateResult<MaybeMasked<TData>>>;
|
|
824
|
+
/**
|
|
825
|
+
* This subscribes to a graphql subscription according to the options specified and returns an
|
|
826
|
+
* `Observable` which either emits received data or an error.
|
|
827
|
+
*/
|
|
828
|
+
subscribe<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.SubscribeOptions<TData, TVariables>): SubscriptionObservable<ApolloClient.SubscribeResult<MaybeMasked<TData>>>;
|
|
829
|
+
/**
|
|
830
|
+
* Tries to read some data from the store in the shape of the provided
|
|
831
|
+
* GraphQL query without making a network request. This method will start at
|
|
832
|
+
* the root query. To start at a specific id returned by `cache.identify`
|
|
833
|
+
* use `readFragment`.
|
|
834
|
+
*
|
|
835
|
+
* @param optimistic - Set to `true` to allow `readQuery` to return
|
|
836
|
+
* optimistic results. Is `false` by default.
|
|
837
|
+
*/
|
|
838
|
+
readQuery<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.ReadQueryOptions<TData, TVariables>): Unmasked<TData> | null;
|
|
839
|
+
/**
|
|
840
|
+
* Tries to read some data from the store in the shape of the provided
|
|
841
|
+
* GraphQL query without making a network request. This method will start at
|
|
842
|
+
* the root query. To start at a specific id returned by `cache.identify`
|
|
843
|
+
* use `readFragment`.
|
|
844
|
+
*
|
|
845
|
+
* @param optimistic - Set to `true` to allow `readQuery` to return
|
|
846
|
+
* optimistic results. Is `false` by default.
|
|
847
|
+
*
|
|
848
|
+
*
|
|
849
|
+
* @deprecated Pass the `optimistic` argument as part of the first argument
|
|
850
|
+
* instead of passing it as a separate option.
|
|
851
|
+
*/
|
|
852
|
+
readQuery<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.ReadQueryOptions<TData, TVariables>,
|
|
853
|
+
/**
|
|
854
|
+
* @deprecated Pass the `optimistic` argument as part of the first argument
|
|
855
|
+
* instead of passing it as a separate option.
|
|
856
|
+
*/
|
|
857
|
+
optimistic: boolean): Unmasked<TData> | null;
|
|
858
|
+
/**
|
|
859
|
+
* Watches the cache store of the fragment according to the options specified
|
|
860
|
+
* and returns an `Observable`. We can subscribe to this
|
|
861
|
+
* `Observable` and receive updated results through an
|
|
862
|
+
* observer when the cache store changes.
|
|
863
|
+
*
|
|
864
|
+
* You must pass in a GraphQL document with a single fragment or a document
|
|
865
|
+
* with multiple fragments that represent what you are reading. If you pass
|
|
866
|
+
* in a document with multiple fragments then you must also specify a
|
|
867
|
+
* `fragmentName`.
|
|
868
|
+
*
|
|
869
|
+
* @since 3.10.0
|
|
870
|
+
* @param options - An object of type `WatchFragmentOptions` that allows
|
|
871
|
+
* the cache to identify the fragment and optionally specify whether to react
|
|
872
|
+
* to optimistic updates.
|
|
873
|
+
*/
|
|
874
|
+
watchFragment<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.WatchFragmentOptions<TData, TVariables> & {
|
|
875
|
+
from: Array<ApolloCache.FromOptionValue<TData>>;
|
|
876
|
+
}): ApolloClient.ObservableFragment<Array<TData>>;
|
|
877
|
+
/**
|
|
878
|
+
* Watches the cache store of the fragment according to the options specified
|
|
879
|
+
* and returns an `Observable`. We can subscribe to this
|
|
880
|
+
* `Observable` and receive updated results through an
|
|
881
|
+
* observer when the cache store changes.
|
|
882
|
+
*
|
|
883
|
+
* You must pass in a GraphQL document with a single fragment or a document
|
|
884
|
+
* with multiple fragments that represent what you are reading. If you pass
|
|
885
|
+
* in a document with multiple fragments then you must also specify a
|
|
886
|
+
* `fragmentName`.
|
|
887
|
+
*
|
|
888
|
+
* @since 3.10.0
|
|
889
|
+
* @param options - An object of type `WatchFragmentOptions` that allows
|
|
890
|
+
* the cache to identify the fragment and optionally specify whether to react
|
|
891
|
+
* to optimistic updates.
|
|
892
|
+
*/
|
|
893
|
+
watchFragment<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.WatchFragmentOptions<TData, TVariables> & {
|
|
894
|
+
from: Array<null>;
|
|
895
|
+
}): ApolloClient.ObservableFragment<Array<null>>;
|
|
896
|
+
watchFragment<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.WatchFragmentOptions<TData, TVariables> & {
|
|
897
|
+
from: Array<ApolloCache.FromOptionValue<TData> | null>;
|
|
898
|
+
}): ApolloClient.ObservableFragment<Array<TData | null>>;
|
|
899
|
+
/**
|
|
900
|
+
* Watches the cache store of the fragment according to the options specified
|
|
901
|
+
* and returns an `Observable`. We can subscribe to this
|
|
902
|
+
* `Observable` and receive updated results through an
|
|
903
|
+
* observer when the cache store changes.
|
|
904
|
+
*
|
|
905
|
+
* You must pass in a GraphQL document with a single fragment or a document
|
|
906
|
+
* with multiple fragments that represent what you are reading. If you pass
|
|
907
|
+
* in a document with multiple fragments then you must also specify a
|
|
908
|
+
* `fragmentName`.
|
|
909
|
+
*
|
|
910
|
+
* @since 3.10.0
|
|
911
|
+
* @param options - An object of type `WatchFragmentOptions` that allows
|
|
912
|
+
* the cache to identify the fragment and optionally specify whether to react
|
|
913
|
+
* to optimistic updates.
|
|
914
|
+
*/
|
|
915
|
+
watchFragment<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.WatchFragmentOptions<TData, TVariables> & {
|
|
916
|
+
from: null;
|
|
917
|
+
}): ApolloClient.ObservableFragment<null>;
|
|
918
|
+
/**
|
|
919
|
+
* Watches the cache store of the fragment according to the options specified
|
|
920
|
+
* and returns an `Observable`. We can subscribe to this
|
|
921
|
+
* `Observable` and receive updated results through an
|
|
922
|
+
* observer when the cache store changes.
|
|
923
|
+
*
|
|
924
|
+
* You must pass in a GraphQL document with a single fragment or a document
|
|
925
|
+
* with multiple fragments that represent what you are reading. If you pass
|
|
926
|
+
* in a document with multiple fragments then you must also specify a
|
|
927
|
+
* `fragmentName`.
|
|
928
|
+
*
|
|
929
|
+
* @since 3.10.0
|
|
930
|
+
* @param options - An object of type `WatchFragmentOptions` that allows
|
|
931
|
+
* the cache to identify the fragment and optionally specify whether to react
|
|
932
|
+
* to optimistic updates.
|
|
933
|
+
*/
|
|
934
|
+
watchFragment<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.WatchFragmentOptions<TData, TVariables> & {
|
|
935
|
+
from: ApolloCache.FromOptionValue<TData>;
|
|
936
|
+
}): ApolloClient.ObservableFragment<TData>;
|
|
937
|
+
/**
|
|
938
|
+
* Watches the cache store of the fragment according to the options specified
|
|
939
|
+
* and returns an `Observable`. We can subscribe to this
|
|
940
|
+
* `Observable` and receive updated results through an
|
|
941
|
+
* observer when the cache store changes.
|
|
942
|
+
*
|
|
943
|
+
* You must pass in a GraphQL document with a single fragment or a document
|
|
944
|
+
* with multiple fragments that represent what you are reading. If you pass
|
|
945
|
+
* in a document with multiple fragments then you must also specify a
|
|
946
|
+
* `fragmentName`.
|
|
947
|
+
*
|
|
948
|
+
* @since 3.10.0
|
|
949
|
+
* @param options - An object of type `WatchFragmentOptions` that allows
|
|
950
|
+
* the cache to identify the fragment and optionally specify whether to react
|
|
951
|
+
* to optimistic updates.
|
|
952
|
+
*/
|
|
953
|
+
watchFragment<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.WatchFragmentOptions<TData, TVariables>): ApolloClient.ObservableFragment<TData | null>;
|
|
954
|
+
/**
|
|
955
|
+
* Tries to read some data from the store in the shape of the provided
|
|
956
|
+
* GraphQL fragment without making a network request. This method will read a
|
|
957
|
+
* GraphQL fragment from any arbitrary id that is currently cached, unlike
|
|
958
|
+
* `readQuery` which will only read from the root query.
|
|
959
|
+
*
|
|
960
|
+
* You must pass in a GraphQL document with a single fragment or a document
|
|
961
|
+
* with multiple fragments that represent what you are reading. If you pass
|
|
962
|
+
* in a document with multiple fragments then you must also specify a
|
|
963
|
+
* `fragmentName`.
|
|
964
|
+
*
|
|
965
|
+
* @param optimistic - Set to `true` to allow `readFragment` to return
|
|
966
|
+
* optimistic results. Is `false` by default.
|
|
967
|
+
*/
|
|
968
|
+
readFragment<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.ReadFragmentOptions<TData, TVariables>): Unmasked<TData> | null;
|
|
969
|
+
/**
|
|
970
|
+
* Tries to read some data from the store in the shape of the provided
|
|
971
|
+
* GraphQL fragment without making a network request. This method will read a
|
|
972
|
+
* GraphQL fragment from any arbitrary id that is currently cached, unlike
|
|
973
|
+
* `readQuery` which will only read from the root query.
|
|
974
|
+
*
|
|
975
|
+
* You must pass in a GraphQL document with a single fragment or a document
|
|
976
|
+
* with multiple fragments that represent what you are reading. If you pass
|
|
977
|
+
* in a document with multiple fragments then you must also specify a
|
|
978
|
+
* `fragmentName`.
|
|
979
|
+
*
|
|
980
|
+
* @param optimistic - Set to `true` to allow `readFragment` to return
|
|
981
|
+
* optimistic results. Is `false` by default.
|
|
982
|
+
*
|
|
983
|
+
*
|
|
984
|
+
* @deprecated Pass the `optimistic` argument as part of the first argument
|
|
985
|
+
* instead of passing it as a separate option.
|
|
986
|
+
*/
|
|
987
|
+
readFragment<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.ReadFragmentOptions<TData, TVariables>, optimistic: boolean): Unmasked<TData> | null;
|
|
988
|
+
/**
|
|
989
|
+
* Writes some data in the shape of the provided GraphQL query directly to
|
|
990
|
+
* the store. This method will start at the root query. To start at a
|
|
991
|
+
* specific id returned by `cache.identify` then use `writeFragment`.
|
|
992
|
+
*/
|
|
993
|
+
writeQuery<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.WriteQueryOptions<TData, TVariables>): Reference | undefined;
|
|
994
|
+
/**
|
|
995
|
+
* Writes some data in the shape of the provided GraphQL fragment directly to
|
|
996
|
+
* the store. This method will write to a GraphQL fragment from any arbitrary
|
|
997
|
+
* id that is currently cached, unlike `writeQuery` which will only write
|
|
998
|
+
* from the root query.
|
|
999
|
+
*
|
|
1000
|
+
* You must pass in a GraphQL document with a single fragment or a document
|
|
1001
|
+
* with multiple fragments that represent what you are writing. If you pass
|
|
1002
|
+
* in a document with multiple fragments then you must also specify a
|
|
1003
|
+
* `fragmentName`.
|
|
1004
|
+
*/
|
|
1005
|
+
writeFragment<TData = unknown, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.WriteFragmentOptions<TData, TVariables>): Reference | undefined;
|
|
1006
|
+
__actionHookForDevTools(cb: () => any): void;
|
|
1007
|
+
__requestRaw(request: ApolloLink.Request): Observable<ApolloLink.Result<unknown>>;
|
|
1008
|
+
/**
|
|
1009
|
+
* Resets your entire store by clearing out your cache and then re-executing
|
|
1010
|
+
* all of your active queries. This makes it so that you may guarantee that
|
|
1011
|
+
* there is no data left in your store from a time before you called this
|
|
1012
|
+
* method.
|
|
1013
|
+
*
|
|
1014
|
+
* `resetStore()` is useful when your user just logged out. You’ve removed the
|
|
1015
|
+
* user session, and you now want to make sure that any references to data you
|
|
1016
|
+
* might have fetched while the user session was active is gone.
|
|
1017
|
+
*
|
|
1018
|
+
* It is important to remember that `resetStore()` _will_ refetch any active
|
|
1019
|
+
* queries. This means that any components that might be mounted will execute
|
|
1020
|
+
* their queries again using your network interface. If you do not want to
|
|
1021
|
+
* re-execute any queries then you should make sure to stop watching any
|
|
1022
|
+
* active queries.
|
|
1023
|
+
*/
|
|
1024
|
+
resetStore(): Promise<ApolloClient.QueryResult<any>[] | null>;
|
|
1025
|
+
/**
|
|
1026
|
+
* Remove all data from the store. Unlike `resetStore`, `clearStore` will
|
|
1027
|
+
* not refetch any active queries.
|
|
1028
|
+
*/
|
|
1029
|
+
clearStore(): Promise<any[]>;
|
|
1030
|
+
/**
|
|
1031
|
+
* Allows callbacks to be registered that are executed when the store is
|
|
1032
|
+
* reset. `onResetStore` returns an unsubscribe function that can be used
|
|
1033
|
+
* to remove registered callbacks.
|
|
1034
|
+
*/
|
|
1035
|
+
onResetStore(cb: () => Promise<any>): () => void;
|
|
1036
|
+
/**
|
|
1037
|
+
* Allows callbacks to be registered that are executed when the store is
|
|
1038
|
+
* cleared. `onClearStore` returns an unsubscribe function that can be used
|
|
1039
|
+
* to remove registered callbacks.
|
|
1040
|
+
*/
|
|
1041
|
+
onClearStore(cb: () => Promise<any>): () => void;
|
|
1042
|
+
/**
|
|
1043
|
+
* Refetches all of your active queries.
|
|
1044
|
+
*
|
|
1045
|
+
* `reFetchObservableQueries()` is useful if you want to bring the client back to proper state in case of a network outage
|
|
1046
|
+
*
|
|
1047
|
+
* It is important to remember that `reFetchObservableQueries()` _will_ refetch any active
|
|
1048
|
+
* queries. This means that any components that might be mounted will execute
|
|
1049
|
+
* their queries again using your network interface. If you do not want to
|
|
1050
|
+
* re-execute any queries then you should make sure to stop watching any
|
|
1051
|
+
* active queries.
|
|
1052
|
+
* Takes optional parameter `includeStandby` which will include queries in standby-mode when refetching.
|
|
1053
|
+
*
|
|
1054
|
+
* Note: `cache-only` queries are not refetched by this function.
|
|
1055
|
+
*
|
|
1056
|
+
* @deprecated Please use `refetchObservableQueries` instead.
|
|
1057
|
+
*/
|
|
1058
|
+
reFetchObservableQueries: (includeStandby?: boolean) => Promise<ApolloClient.QueryResult<any>[]>;
|
|
1059
|
+
/**
|
|
1060
|
+
* Refetches all of your active queries.
|
|
1061
|
+
*
|
|
1062
|
+
* `refetchObservableQueries()` is useful if you want to bring the client back to proper state in case of a network outage
|
|
1063
|
+
*
|
|
1064
|
+
* It is important to remember that `refetchObservableQueries()` _will_ refetch any active
|
|
1065
|
+
* queries. This means that any components that might be mounted will execute
|
|
1066
|
+
* their queries again using your network interface. If you do not want to
|
|
1067
|
+
* re-execute any queries then you should make sure to stop watching any
|
|
1068
|
+
* active queries.
|
|
1069
|
+
* Takes optional parameter `includeStandby` which will include queries in standby-mode when refetching.
|
|
1070
|
+
*
|
|
1071
|
+
* Note: `cache-only` queries are not refetched by this function.
|
|
1072
|
+
*/
|
|
1073
|
+
refetchObservableQueries(includeStandby?: boolean): Promise<ApolloClient.QueryResult<any>[]>;
|
|
1074
|
+
/**
|
|
1075
|
+
* Refetches specified active queries. Similar to "refetchObservableQueries()" but with a specific list of queries.
|
|
1076
|
+
*
|
|
1077
|
+
* `refetchQueries()` is useful for use cases to imperatively refresh a selection of queries.
|
|
1078
|
+
*
|
|
1079
|
+
* It is important to remember that `refetchQueries()` _will_ refetch specified active
|
|
1080
|
+
* queries. This means that any components that might be mounted will execute
|
|
1081
|
+
* their queries again using your network interface. If you do not want to
|
|
1082
|
+
* re-execute any queries then you should make sure to stop watching any
|
|
1083
|
+
* active queries.
|
|
1084
|
+
*/
|
|
1085
|
+
refetchQueries<TCache extends ApolloCache = ApolloCache, TResult = Promise<ApolloClient.QueryResult<any>>>(options: ApolloClient.RefetchQueriesOptions<TCache, TResult>): ApolloClient.RefetchQueriesResult<TResult>;
|
|
1086
|
+
/**
|
|
1087
|
+
* Get all currently active `ObservableQuery` objects, in a `Set`.
|
|
1088
|
+
*
|
|
1089
|
+
* An "active" query is one that has observers and a `fetchPolicy` other than
|
|
1090
|
+
* "standby" or "cache-only".
|
|
1091
|
+
*
|
|
1092
|
+
* You can include all `ObservableQuery` objects (including the inactive ones)
|
|
1093
|
+
* by passing "all" instead of "active", or you can include just a subset of
|
|
1094
|
+
* active queries by passing an array of query names or DocumentNode objects.
|
|
1095
|
+
*
|
|
1096
|
+
* Note: This method only returns queries that have active subscribers. Queries
|
|
1097
|
+
* without subscribers are not tracked by the client.
|
|
1098
|
+
*/
|
|
1099
|
+
getObservableQueries(include?: RefetchQueriesInclude): Set<ObservableQuery<any>>;
|
|
1100
|
+
/**
|
|
1101
|
+
* Exposes the cache's complete state, in a serializable format for later restoration.
|
|
1102
|
+
*
|
|
1103
|
+
* @remarks
|
|
1104
|
+
*
|
|
1105
|
+
* This can be useful for debugging in order to inspect the full state of the
|
|
1106
|
+
* cache.
|
|
1107
|
+
*
|
|
1108
|
+
* @param optimistic - Determines whether the result contains data from the
|
|
1109
|
+
* optimistic layer
|
|
1110
|
+
*/
|
|
1111
|
+
extract(optimistic?: boolean): unknown;
|
|
1112
|
+
/**
|
|
1113
|
+
* Replaces existing state in the cache (if any) with the values expressed by
|
|
1114
|
+
* `serializedState`.
|
|
1115
|
+
*
|
|
1116
|
+
* Called when hydrating a cache (server side rendering, or offline storage),
|
|
1117
|
+
* and also (potentially) during hot reloads.
|
|
1118
|
+
*/
|
|
1119
|
+
restore(serializedState: unknown): ApolloCache;
|
|
1120
|
+
/**
|
|
1121
|
+
* Define a new ApolloLink (or link chain) that Apollo Client will use.
|
|
1122
|
+
*/
|
|
1123
|
+
setLink(newLink: ApolloLink): void;
|
|
1124
|
+
get defaultContext(): Partial<DefaultContext>;
|
|
1125
|
+
private maskedFragmentTransform;
|
|
1126
|
+
private transform;
|
|
1127
|
+
/**
|
|
1128
|
+
* @experimental
|
|
1129
|
+
* This is not a stable API - it is used in development builds to expose
|
|
1130
|
+
* information to the DevTools.
|
|
1131
|
+
* Use at your own risk!
|
|
1132
|
+
* For more details, see [Memory Management](https://www.apollographql.com/docs/react/caching/memory-management/#measuring-cache-usage)
|
|
1133
|
+
*
|
|
1134
|
+
* @example
|
|
1135
|
+
*
|
|
1136
|
+
* ```ts
|
|
1137
|
+
* console.log(client.getMemoryInternals());
|
|
1138
|
+
* ```
|
|
1139
|
+
*
|
|
1140
|
+
* Logs output in the following JSON format:
|
|
1141
|
+
* @example
|
|
1142
|
+
*
|
|
1143
|
+
* ```json
|
|
1144
|
+
* {
|
|
1145
|
+
* "limits": {
|
|
1146
|
+
* "canonicalStringify": 1000,
|
|
1147
|
+
* "print": 2000,
|
|
1148
|
+
* "documentTransform.cache": 2000,
|
|
1149
|
+
* "queryManager.getDocumentInfo": 2000,
|
|
1150
|
+
* "PersistedQueryLink.persistedQueryHashes": 2000,
|
|
1151
|
+
* "fragmentRegistry.transform": 2000,
|
|
1152
|
+
* "fragmentRegistry.lookup": 1000,
|
|
1153
|
+
* "fragmentRegistry.findFragmentSpreads": 4000,
|
|
1154
|
+
* "cache.fragmentQueryDocuments": 1000,
|
|
1155
|
+
* "removeTypenameFromVariables.getVariableDefinitions": 2000,
|
|
1156
|
+
* "inMemoryCache.maybeBroadcastWatch": 5000,
|
|
1157
|
+
* "inMemoryCache.executeSelectionSet": 10000,
|
|
1158
|
+
* "inMemoryCache.executeSubSelectedArray": 5000
|
|
1159
|
+
* },
|
|
1160
|
+
* "sizes": {
|
|
1161
|
+
* "canonicalStringify": 4,
|
|
1162
|
+
* "print": 14,
|
|
1163
|
+
* "addTypenameDocumentTransform": [
|
|
1164
|
+
* {
|
|
1165
|
+
* "cache": 14
|
|
1166
|
+
* }
|
|
1167
|
+
* ],
|
|
1168
|
+
* "queryManager": {
|
|
1169
|
+
* "getDocumentInfo": 14,
|
|
1170
|
+
* "documentTransforms": [
|
|
1171
|
+
* {
|
|
1172
|
+
* "cache": 14
|
|
1173
|
+
* },
|
|
1174
|
+
* {
|
|
1175
|
+
* "cache": 14
|
|
1176
|
+
* }
|
|
1177
|
+
* ]
|
|
1178
|
+
* },
|
|
1179
|
+
* "fragmentRegistry": {
|
|
1180
|
+
* "findFragmentSpreads": 34,
|
|
1181
|
+
* "lookup": 20,
|
|
1182
|
+
* "transform": 14
|
|
1183
|
+
* },
|
|
1184
|
+
* "cache": {
|
|
1185
|
+
* "fragmentQueryDocuments": 22
|
|
1186
|
+
* },
|
|
1187
|
+
* "inMemoryCache": {
|
|
1188
|
+
* "executeSelectionSet": 4345,
|
|
1189
|
+
* "executeSubSelectedArray": 1206,
|
|
1190
|
+
* "maybeBroadcastWatch": 32
|
|
1191
|
+
* },
|
|
1192
|
+
* "links": [
|
|
1193
|
+
* {
|
|
1194
|
+
* "PersistedQueryLink": {
|
|
1195
|
+
* "persistedQueryHashes": 14
|
|
1196
|
+
* }
|
|
1197
|
+
* },
|
|
1198
|
+
* {
|
|
1199
|
+
* "removeTypenameFromVariables": {
|
|
1200
|
+
* "getVariableDefinitions": 14
|
|
1201
|
+
* }
|
|
1202
|
+
* }
|
|
1203
|
+
* ]
|
|
1204
|
+
* }
|
|
1205
|
+
* }
|
|
1206
|
+
* ```
|
|
1207
|
+
*/
|
|
1208
|
+
getMemoryInternals?: typeof getApolloClientMemoryInternals;
|
|
1209
|
+
}
|
|
1210
|
+
//# sourceMappingURL=ApolloClient.d.ts.map
|