-
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathindex.ts
More file actions
117 lines (101 loc) · 3.35 KB
/
index.ts
File metadata and controls
117 lines (101 loc) · 3.35 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
// Contract public API
export { type Contract } from './contract/type';
export { unknownContract } from './contract/unknown_contract';
// Query public API
export { type Query } from './query/type';
export { createQuery } from './query/create_query';
export { connectQuery } from './query/connect_query';
export { createHeadlessQuery } from './query/create_headless_query';
export { createJsonQuery } from './query/create_json_query';
// Mutation public API
export { type Mutation } from './mutation/type';
export { createMutation } from './mutation/create_mutation';
export { createHeadlessMutation } from './mutation/create_headless_mutation';
export { createJsonMutation } from './mutation/create_json_mutation';
// Retry public API
export { type FailInfo } from './retry/retry';
export { retry } from './retry/retry';
export { exponentialDelay, linearDelay } from './retry/delay';
// Timeout public API
export { timeout } from './timeout/timeout';
// Update public API
export { update } from './update/update';
// Attach public API
export { attachOperation } from './attach/attach';
// Cache public API
export { cache } from './cache/cache';
export {
type CacheAdapter,
type CacheAdapterOptions,
} from './cache/adapters/type';
export { inMemoryCache } from './cache/adapters/in_memory';
export { localStorageCache } from './cache/adapters/local_storage';
export { sessionStorageCache } from './cache/adapters/session_storage';
export { voidCache } from './cache/adapters/void';
export { createCacheAdapter } from './cache/adapters/instance';
// Exposed libs
export {
type SourcedField,
normalizeSourced,
combineSourced,
type DynamicallySourcedField,
} from './libs/patronus';
export { type FetchingStatus } from './libs/patronus';
// RemoteOperation public API
export {
declareParams,
type ParamsDeclaration,
} from './remote_operation/params';
export {
type RemoteOperationResult,
type RemoteOperationError,
type RemoteOperationParams,
} from './remote_operation/type';
export { onAbort } from './remote_operation/on_abort';
export { Meta, Result } from './remote_operation/store_meta';
// Validation public API
export { type ValidationResult, type Validator } from './validation/type';
// Exposed fetch
export { type Json } from 'effector';
export { type JsonObject } from './fetch/json';
export { type FetchApiRecord } from './fetch/lib';
export { type JsonApiRequestError } from './fetch/api';
export { fetchFx } from './fetch/fetch';
// Exposed errors
export {
type FarfetchedError,
type InvalidDataError,
type TimeoutError,
type AbortError,
type PreparationError,
type HttpError,
type NetworkError,
type ConfigurationError,
} from './errors/type';
export {
invalidDataError,
timeoutError,
abortError,
preparationError,
httpError,
networkError,
configurationError,
} from './errors/create_error';
export {
isTimeoutError,
isPreparationError,
isHttpError,
isNetworkError,
isInvalidDataError,
isHttpErrorCode,
} from './errors/guards';
// Trigger API
export { keepFresh } from './trigger_api/keep_fresh';
// Barrier API
export { type Barrier } from './barrier_api/type';
export { applyBarrier } from './barrier_api/apply_barrier';
export { createBarrier } from './barrier_api/create_barrier';
// Inspect API
export { NodeMetaSumbol, NodeLinksSumbol } from './inspect';
// Concurrency API
export { concurrency } from './concurrency/concurrency';