-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathindex.ts
More file actions
194 lines (181 loc) · 4.7 KB
/
Copy pathindex.ts
File metadata and controls
194 lines (181 loc) · 4.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
/* Core */
export type {
ApolloClientOptions,
ApolloQueryResult,
DefaultOptions,
DevtoolsOptions,
MutateResult,
MutationOptions,
QueryOptions,
RefetchQueriesOptions,
RefetchQueriesResult,
SubscribeToMoreOptions,
SubscriptionOptions,
WatchQueryOptions,
} from "./deprecated.js";
export { ApolloClient } from "./ApolloClient.js";
export { ObservableQuery } from "./ObservableQuery.js";
export type {
ErrorPolicy,
FetchPolicy,
MutationFetchPolicy,
RefetchWritePolicy,
SubscribeToMoreFunction,
SubscribeToMoreUpdateQueryFn,
UpdateQueryMapFn,
UpdateQueryOptions,
WatchQueryFetchPolicy,
} from "./watchQueryOptions.js";
export { isNetworkRequestSettled, NetworkStatus } from "./networkStatus.js";
export type {
DataState,
DataValue,
DefaultContext,
ErrorLike,
GetDataState,
InternalRefetchQueriesInclude,
InternalRefetchQueriesMap,
InternalRefetchQueriesOptions,
InternalRefetchQueriesResult,
InternalRefetchQueryDescriptor,
MutationQueryReducer,
MutationQueryReducersMap,
MutationUpdaterFunction,
NormalizedExecutionResult,
OnQueryUpdated,
OperationVariables,
RefetchQueriesInclude,
RefetchQueriesPromiseResults,
RefetchQueryDescriptor,
SubscriptionObservable,
TypedDocumentNode,
TypeOverrides,
} from "./types.js";
export {
CombinedGraphQLErrors,
CombinedProtocolErrors,
LinkError,
LocalStateError,
ServerError,
ServerParseError,
UnconventionalError,
} from "@apollo/client/errors";
/* Cache */
export type {
ApolloReducerConfig,
Cache,
DiffQueryAgainstStoreOptions,
FieldFunctionOptions,
FieldMergeFunction,
FieldPolicy,
FieldReadFunction,
IdGetter,
IdGetterObj,
InMemoryCacheConfig,
MergeInfo,
MergeTree,
NormalizedCache,
NormalizedCacheObject,
OptimisticStoreItem,
PossibleTypesMap,
ReactiveVar,
ReadMergeModifyContext,
ReadQueryOptions,
StoreValue,
// All the exports (types) from ../cache, minus cacheSlot,
// which we want to keep semi-private.
Transaction,
TypePolicies,
TypePolicy,
WatchFragmentOptions,
WatchFragmentResult,
} from "@apollo/client/cache";
export {
ApolloCache,
defaultDataIdFromObject,
InMemoryCache,
makeVar,
MissingFieldError,
} from "@apollo/client/cache";
/* Link */
export {
ApolloLink,
concat,
empty,
execute,
from,
split,
} from "@apollo/client/link";
export type {
ApolloPayloadResult,
DocumentNode,
FetchResult,
GraphQLRequest,
Operation,
RequestHandler,
} from "@apollo/client/link";
export {
checkFetcher,
createHttpLink,
createSignalIfSupported,
defaultPrinter,
fallbackHttpConfig,
HttpLink,
parseAndCheckHttpResponse,
rewriteURIForGET,
selectHttpOptionsAndBody,
// TODO remove: needed by @apollo/client/link/batch-http but not public
selectHttpOptionsAndBodyInternal,
selectURI,
} from "@apollo/client/link/http";
/* Masking */
export type {
DataMasking,
FragmentType,
Masked,
MaskedDocumentNode,
MaybeMasked,
Unmasked,
} from "@apollo/client/masking";
/* Utilities */
export type {
DocumentTransformCacheKey,
Reference,
StoreObject,
} from "@apollo/client/utilities";
export {
DocumentTransform,
isReference,
Observable,
} from "@apollo/client/utilities";
/* Supporting */
// The verbosity of invariant.{log,warn,error} can be controlled globally
// by passing "log", "warn", "error", or "silent" to setVerbosity ("log" is the default).
// Note that all invariant.* logging is hidden in production.
export { setVerbosity as setLogVerbosity } from "@apollo/client/utilities/invariant";
// Note that importing `gql` by itself, then destructuring
// additional properties separately before exporting, is intentional.
// Due to the way the `graphql-tag` library is setup, certain bundlers
// can't find the properties added to the exported `gql` function without
// additional guidance (e.g. Rollup - see
// https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module).
// Instead of having people that are using bundlers with `@apollo/client` add
// extra bundler config to help `graphql-tag` exports be found (which would be
// awkward since they aren't importing `graphql-tag` themselves), this
// workaround of pulling the extra properties off the `gql` function,
// then re-exporting them separately, helps keeps bundlers happy without any
// additional config changes.
export {
disableExperimentalFragmentVariables,
disableFragmentWarnings,
enableExperimentalFragmentVariables,
gql,
resetCaches,
} from "graphql-tag";
export { build, version } from "../version.js";
// internal types
import type { QueryManager } from "./QueryManager.js";
import type { NextFetchPolicyContext } from "./watchQueryOptions.js";
export declare namespace InternalTypes {
export type { NextFetchPolicyContext, QueryManager };
}