@warp-drive/core 5.6.0-alpha.18 → 5.6.0-alpha.5
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/README.md +7 -8
- package/declarations/index.d.ts +3 -14
- package/declarations/index.d.ts.map +1 -0
- package/declarations/request/-private/context.d.ts +35 -34
- package/declarations/request/-private/context.d.ts.map +1 -0
- package/declarations/request/-private/debug.d.ts +3 -2
- package/declarations/request/-private/debug.d.ts.map +1 -0
- package/declarations/request/-private/fetch.d.ts +36 -24
- package/declarations/request/-private/fetch.d.ts.map +1 -0
- package/declarations/request/-private/future.d.ts +4 -3
- package/declarations/request/-private/future.d.ts.map +1 -0
- package/declarations/request/-private/manager.d.ts +132 -159
- package/declarations/request/-private/manager.d.ts.map +1 -0
- package/declarations/request/-private/promise-cache.d.ts +13 -21
- package/declarations/request/-private/promise-cache.d.ts.map +1 -0
- package/declarations/request/-private/types.d.ts +123 -124
- package/declarations/request/-private/types.d.ts.map +1 -0
- package/declarations/request/-private/utils.d.ts +9 -8
- package/declarations/request/-private/utils.d.ts.map +1 -0
- package/declarations/request.d.ts +433 -5
- package/declarations/request.d.ts.map +1 -0
- package/declarations/types/-private.d.ts +8 -16
- package/declarations/types/-private.d.ts.map +1 -0
- package/declarations/types/cache/aliases.d.ts +1 -11
- package/declarations/types/cache/aliases.d.ts.map +1 -0
- package/declarations/types/cache/change.d.ts +5 -4
- package/declarations/types/cache/change.d.ts.map +1 -0
- package/declarations/types/cache/mutations.d.ts +28 -51
- package/declarations/types/cache/mutations.d.ts.map +1 -0
- package/declarations/types/cache/operations.d.ts +47 -60
- package/declarations/types/cache/operations.d.ts.map +1 -0
- package/declarations/types/cache/relationship.d.ts +9 -11
- package/declarations/types/cache/relationship.d.ts.map +1 -0
- package/declarations/types/cache.d.ts +484 -495
- package/declarations/types/cache.d.ts.map +1 -0
- package/declarations/types/graph.d.ts +40 -31
- package/declarations/types/graph.d.ts.map +1 -0
- package/declarations/types/identifier.d.ts +82 -83
- package/declarations/types/identifier.d.ts.map +1 -0
- package/declarations/types/json/raw.d.ts +2 -1
- package/declarations/types/json/raw.d.ts.map +1 -0
- package/declarations/types/params.d.ts +5 -4
- package/declarations/types/params.d.ts.map +1 -0
- package/declarations/types/record.d.ts +76 -117
- package/declarations/types/record.d.ts.map +1 -0
- package/declarations/types/record.type-test.d.ts +2 -0
- package/declarations/types/record.type-test.d.ts.map +1 -0
- package/declarations/types/request.d.ts +266 -289
- package/declarations/types/request.d.ts.map +1 -0
- package/declarations/types/request.type-test.d.ts +2 -0
- package/declarations/types/request.type-test.d.ts.map +1 -0
- package/declarations/types/runtime.d.ts +9 -8
- package/declarations/types/runtime.d.ts.map +1 -0
- package/declarations/types/schema/concepts.d.ts +13 -19
- package/declarations/types/schema/concepts.d.ts.map +1 -0
- package/declarations/types/schema/fields.d.ts +1741 -1712
- package/declarations/types/schema/fields.d.ts.map +1 -0
- package/declarations/types/schema/fields.type-test.d.ts +1 -0
- package/declarations/types/schema/fields.type-test.d.ts.map +1 -0
- package/declarations/types/spec/document.d.ts +22 -28
- package/declarations/types/spec/document.d.ts.map +1 -0
- package/declarations/types/spec/error.d.ts +17 -16
- package/declarations/types/spec/error.d.ts.map +1 -0
- package/declarations/types/spec/json-api-raw.d.ts +102 -102
- package/declarations/types/spec/json-api-raw.d.ts.map +1 -0
- package/declarations/types/symbols.d.ts +75 -74
- package/declarations/types/symbols.d.ts.map +1 -0
- package/declarations/types/utils.d.ts +5 -5
- package/declarations/types/utils.d.ts.map +1 -0
- package/declarations/types.d.ts +7 -10
- package/declarations/types.d.ts.map +1 -0
- package/dist/{context-COmAnXUQ.js → context-DE5sFezZ.js} +2 -2
- package/dist/context-DE5sFezZ.js.map +1 -0
- package/dist/index.js +104 -37
- package/dist/index.js.map +1 -0
- package/dist/request.js +1 -1
- package/dist/request.js.map +1 -0
- package/dist/types/-private.js +3 -3
- package/dist/types/-private.js.map +1 -0
- package/dist/types/cache/aliases.js.map +1 -0
- package/dist/types/cache/change.js.map +1 -0
- package/dist/types/cache/mutations.js.map +1 -0
- package/dist/types/cache/operations.js.map +1 -0
- package/dist/types/cache/relationship.js.map +1 -0
- package/dist/types/cache.js.map +1 -0
- package/dist/types/graph.js.map +1 -0
- package/dist/types/identifier.js.map +1 -0
- package/dist/types/json/raw.js.map +1 -0
- package/dist/types/params.js.map +1 -0
- package/dist/types/record.js +1 -1
- package/dist/types/record.js.map +1 -0
- package/dist/types/request.js +2 -2
- package/dist/types/request.js.map +1 -0
- package/dist/types/runtime.js +1 -1
- package/dist/types/runtime.js.map +1 -0
- package/dist/types/schema/concepts.js.map +1 -0
- package/dist/types/schema/fields.js +41 -8
- package/dist/types/schema/fields.js.map +1 -0
- package/dist/types/schema/fields.type-test.js.map +1 -0
- package/dist/types/spec/document.js.map +1 -0
- package/dist/types/spec/error.js.map +1 -0
- package/dist/types/spec/json-api-raw.js.map +1 -0
- package/dist/types/symbols.js +3 -3
- package/dist/types/symbols.js.map +1 -0
- package/dist/types/utils.js.map +1 -0
- package/dist/types.js.map +1 -0
- package/package.json +8 -11
- package/cjs-dist/addon-shim.cjs +0 -1
- package/cjs-dist/cjs-set-config.cjs +0 -1
- package/declarations/build-config/babel-macros.d.ts +0 -1
- package/declarations/build-config/canary-features.d.ts +0 -1
- package/declarations/build-config/debugging.d.ts +0 -1
- package/declarations/build-config/deprecations.d.ts +0 -1
- package/declarations/build-config/env.d.ts +0 -1
- package/declarations/build-config/macros.d.ts +0 -1
- package/declarations/build-config.d.ts +0 -1
- package/declarations/configure.d.ts +0 -7
- package/declarations/graph/-private/-diff.d.ts +0 -32
- package/declarations/graph/-private/-edge-definition.d.ts +0 -148
- package/declarations/graph/-private/-state.d.ts +0 -96
- package/declarations/graph/-private/-utils.d.ts +0 -31
- package/declarations/graph/-private/coerce-id.d.ts +0 -10
- package/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +0 -18
- package/declarations/graph/-private/edges/collection.d.ts +0 -39
- package/declarations/graph/-private/edges/implicit.d.ts +0 -43
- package/declarations/graph/-private/edges/resource.d.ts +0 -24
- package/declarations/graph/-private/graph.d.ts +0 -90
- package/declarations/graph/-private/normalize-link.d.ts +0 -8
- package/declarations/graph/-private/operations/add-to-related-records.d.ts +0 -4
- package/declarations/graph/-private/operations/merge-identifier.d.ts +0 -3
- package/declarations/graph/-private/operations/remove-from-related-records.d.ts +0 -4
- package/declarations/graph/-private/operations/replace-related-record.d.ts +0 -3
- package/declarations/graph/-private/operations/replace-related-records.d.ts +0 -62
- package/declarations/graph/-private/operations/update-relationship.d.ts +0 -13
- package/declarations/graph/-private.d.ts +0 -13
- package/declarations/reactive/-private/document.d.ts +0 -146
- package/declarations/reactive/-private/fields/compute.d.ts +0 -43
- package/declarations/reactive/-private/fields/extension.d.ts +0 -8
- package/declarations/reactive/-private/fields/managed-array.d.ts +0 -22
- package/declarations/reactive/-private/fields/managed-object.d.ts +0 -21
- package/declarations/reactive/-private/fields/many-array-manager.d.ts +0 -19
- package/declarations/reactive/-private/hooks.d.ts +0 -5
- package/declarations/reactive/-private/record.d.ts +0 -64
- package/declarations/reactive/-private/schema.d.ts +0 -271
- package/declarations/reactive/-private/symbols.d.ts +0 -36
- package/declarations/reactive/-private.d.ts +0 -1
- package/declarations/reactive.d.ts +0 -4
- package/declarations/store/-private/cache-handler/handler.d.ts +0 -62
- package/declarations/store/-private/cache-handler/types.d.ts +0 -98
- package/declarations/store/-private/cache-handler/utils.d.ts +0 -32
- package/declarations/store/-private/caches/cache-utils.d.ts +0 -12
- package/declarations/store/-private/caches/identifier-cache.d.ts +0 -304
- package/declarations/store/-private/caches/instance-cache.d.ts +0 -65
- package/declarations/store/-private/caches/resource-utils.d.ts +0 -9
- package/declarations/store/-private/debug/utils.d.ts +0 -6
- package/declarations/store/-private/default-cache-policy.d.ts +0 -384
- package/declarations/store/-private/legacy-model-support/record-reference.d.ts +0 -159
- package/declarations/store/-private/legacy-model-support/shim-model-class.d.ts +0 -17
- package/declarations/store/-private/managers/cache-capabilities-manager.d.ts +0 -25
- package/declarations/store/-private/managers/cache-manager.d.ts +0 -443
- package/declarations/store/-private/managers/notification-manager.d.ts +0 -98
- package/declarations/store/-private/managers/record-array-manager.d.ts +0 -97
- package/declarations/store/-private/network/request-cache.d.ts +0 -107
- package/declarations/store/-private/new-core-tmp/promise-state.d.ts +0 -263
- package/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +0 -176
- package/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +0 -169
- package/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +0 -35
- package/declarations/store/-private/new-core-tmp/request-state.d.ts +0 -277
- package/declarations/store/-private/new-core-tmp/request-subscription.d.ts +0 -261
- package/declarations/store/-private/record-arrays/identifier-array.d.ts +0 -147
- package/declarations/store/-private/record-arrays/many-array.d.ts +0 -197
- package/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +0 -126
- package/declarations/store/-private/store-service.d.ts +0 -1605
- package/declarations/store/-private/utils/coerce-id.d.ts +0 -10
- package/declarations/store/-private/utils/construct-resource.d.ts +0 -6
- package/declarations/store/-private/utils/is-non-empty-string.d.ts +0 -1
- package/declarations/store/-private/utils/normalize-model-name.d.ts +0 -1
- package/declarations/store/-private/utils/uuid-polyfill.d.ts +0 -1
- package/declarations/store/-private.d.ts +0 -31
- package/declarations/store/-types/q/cache-capabilities-manager.d.ts +0 -99
- package/declarations/store/-types/q/ds-model.d.ts +0 -21
- package/declarations/store/-types/q/identifier.d.ts +0 -20
- package/declarations/store/-types/q/record-instance.d.ts +0 -23
- package/declarations/store/-types/q/schema-service.d.ts +0 -354
- package/declarations/store/-types/q/store.d.ts +0 -32
- package/declarations/store.d.ts +0 -1
- package/declarations/utils/string.d.ts +0 -48
- package/dist/build-config/babel-macros.js +0 -1
- package/dist/build-config/canary-features.js +0 -1
- package/dist/build-config/debugging.js +0 -1
- package/dist/build-config/deprecations.js +0 -1
- package/dist/build-config/env.js +0 -1
- package/dist/build-config/macros.js +0 -1
- package/dist/build-config.js +0 -1
- package/dist/configure-B48bFHOl.js +0 -181
- package/dist/configure.js +0 -1
- package/dist/graph/-private.js +0 -3372
- package/dist/handler-C2T-IyJK.js +0 -339
- package/dist/reactive/-private.js +0 -1
- package/dist/reactive.js +0 -1988
- package/dist/request-state-CjLph1LP.js +0 -8139
- package/dist/store/-private.js +0 -3
- package/dist/store.js +0 -545
- package/dist/symbols-SIstXMLI.js +0 -44
- package/dist/utils/string.js +0 -92
- package/logos/NCC-1701-a-blue.svg +0 -4
- package/logos/NCC-1701-a-gold.svg +0 -4
- package/logos/NCC-1701-a-gold_100.svg +0 -1
- package/logos/NCC-1701-a-gold_base-64.txt +0 -1
- package/logos/NCC-1701-a.svg +0 -4
- package/logos/README.md +0 -4
- package/logos/docs-badge.svg +0 -2
- package/logos/ember-data-logo-dark.svg +0 -12
- package/logos/ember-data-logo-light.svg +0 -12
- package/logos/github-header.svg +0 -444
- package/logos/social1.png +0 -0
- package/logos/social2.png +0 -0
- package/logos/warp-drive-logo-dark.svg +0 -4
- package/logos/warp-drive-logo-gold.svg +0 -4
|
@@ -1,331 +1,308 @@
|
|
|
1
|
-
import type { StableRecordIdentifier } from
|
|
2
|
-
import type { QueryParamsSerializationOptions } from
|
|
3
|
-
import type { ExtractSuggestedCacheTypes, Includes, TypedRecordInstance, TypeFromInstanceOrString } from
|
|
4
|
-
import type { ResourceIdentifierObject } from
|
|
5
|
-
import type { RequestSignature } from
|
|
1
|
+
import type { StableRecordIdentifier } from './identifier.ts';
|
|
2
|
+
import type { QueryParamsSerializationOptions } from './params.ts';
|
|
3
|
+
import type { ExtractSuggestedCacheTypes, Includes, TypedRecordInstance, TypeFromInstanceOrString } from './record.ts';
|
|
4
|
+
import type { ResourceIdentifierObject } from './spec/json-api-raw.ts';
|
|
5
|
+
import type { RequestSignature } from './symbols.ts';
|
|
6
6
|
type Store = unknown;
|
|
7
|
-
export declare const SkipCache:
|
|
8
|
-
export declare const EnableHydration:
|
|
9
|
-
export declare const IS_FUTURE:
|
|
10
|
-
export declare const STRUCTURED:
|
|
11
|
-
export type HTTPMethod =
|
|
7
|
+
export declare const SkipCache: '___(unique) Symbol(SkipCache)';
|
|
8
|
+
export declare const EnableHydration: '___(unique) Symbol(EnableHydration)';
|
|
9
|
+
export declare const IS_FUTURE: '___(unique) Symbol(IS_FUTURE)';
|
|
10
|
+
export declare const STRUCTURED: '___(unique) Symbol(DOC)';
|
|
11
|
+
export type HTTPMethod = 'QUERY' | 'GET' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'CONNECT' | 'TRACE';
|
|
12
12
|
/**
|
|
13
|
-
* Use these options to adjust CacheHandler behavior for a request.
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
13
|
+
* Use these options to adjust CacheHandler behavior for a request.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
16
|
export type CacheOptions<T = unknown> = {
|
|
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
|
-
|
|
17
|
+
/**
|
|
18
|
+
* A key that uniquely identifies this request. If not present, the url wil be used
|
|
19
|
+
* as the key for any GET request, while all other requests will not be cached.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
key?: string;
|
|
23
|
+
/**
|
|
24
|
+
* If true, the request will be made even if a cached response is present
|
|
25
|
+
* and not expired.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
reload?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* If true, and a cached response is present and not expired, the request
|
|
31
|
+
* will be made in the background and the cached response will be returned.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
backgroundReload?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Useful for metadata around when to invalidate the cache. Typically used
|
|
37
|
+
* by strategies that invalidate requests by resource type when a new resource
|
|
38
|
+
* of that type has been created. See the CachePolicy implementation
|
|
39
|
+
* provided by `@ember-data/request-utils` for an example.
|
|
40
|
+
*
|
|
41
|
+
* It is recommended to only use this for query/queryRecord requests where
|
|
42
|
+
* new records created later would affect the results, though using it for
|
|
43
|
+
* findRecord requests is also supported if desired where it may be useful
|
|
44
|
+
* when a create may affect the result of a sideloaded relationship.
|
|
45
|
+
*
|
|
46
|
+
* Generally it is better to patch the cache directly for relationship updates
|
|
47
|
+
* than to invalidate findRecord requests for one.
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
types?: T extends TypedRecordInstance ? ExtractSuggestedCacheTypes<T>[] : string[];
|
|
51
|
+
/**
|
|
52
|
+
* If true, the request will never be handled by the cache-manager and thus
|
|
53
|
+
* will never resolve from cache nor update the cache.
|
|
54
|
+
*
|
|
55
|
+
* Generally this is only used for legacy request that manage resource cache
|
|
56
|
+
* updates in a non-standard way via the LegacyNetworkHandler.
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
[SkipCache]?: boolean;
|
|
60
60
|
};
|
|
61
|
-
export type FindRecordRequestOptions<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
op: "findRecord";
|
|
70
|
-
records: [ResourceIdentifierObject<TypeFromInstanceOrString<T>>];
|
|
71
|
-
[RequestSignature]?: RT;
|
|
61
|
+
export type FindRecordRequestOptions<RT = unknown, T = unknown> = {
|
|
62
|
+
url: string;
|
|
63
|
+
method: 'GET';
|
|
64
|
+
headers: Headers;
|
|
65
|
+
cacheOptions?: CacheOptions<T>;
|
|
66
|
+
op: 'findRecord';
|
|
67
|
+
records: [ResourceIdentifierObject<TypeFromInstanceOrString<T>>];
|
|
68
|
+
[RequestSignature]?: RT;
|
|
72
69
|
};
|
|
73
|
-
export type QueryRequestOptions<
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
cacheOptions?: CacheOptions<T>;
|
|
81
|
-
op: "query";
|
|
82
|
-
[RequestSignature]?: RT;
|
|
70
|
+
export type QueryRequestOptions<RT = unknown, T = unknown> = {
|
|
71
|
+
url: string;
|
|
72
|
+
method: 'GET';
|
|
73
|
+
headers: Headers;
|
|
74
|
+
cacheOptions?: CacheOptions<T>;
|
|
75
|
+
op: 'query';
|
|
76
|
+
[RequestSignature]?: RT;
|
|
83
77
|
};
|
|
84
|
-
export type PostQueryRequestOptions<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
};
|
|
95
|
-
op: "query";
|
|
96
|
-
[RequestSignature]?: RT;
|
|
78
|
+
export type PostQueryRequestOptions<RT = unknown, T = unknown> = {
|
|
79
|
+
url: string;
|
|
80
|
+
method: 'POST' | 'QUERY';
|
|
81
|
+
headers: Headers;
|
|
82
|
+
body?: string | BodyInit | FormData;
|
|
83
|
+
cacheOptions: CacheOptions<T> & {
|
|
84
|
+
key: string;
|
|
85
|
+
};
|
|
86
|
+
op: 'query';
|
|
87
|
+
[RequestSignature]?: RT;
|
|
97
88
|
};
|
|
98
|
-
export type DeleteRequestOptions<
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
};
|
|
110
|
-
records: [ResourceIdentifierObject<TypeFromInstanceOrString<T>>];
|
|
111
|
-
[RequestSignature]?: RT;
|
|
89
|
+
export type DeleteRequestOptions<RT = unknown, T = unknown> = {
|
|
90
|
+
url: string;
|
|
91
|
+
method: 'DELETE';
|
|
92
|
+
headers: Headers;
|
|
93
|
+
op: 'deleteRecord';
|
|
94
|
+
body?: string | BodyInit | FormData;
|
|
95
|
+
data: {
|
|
96
|
+
record: StableRecordIdentifier<TypeFromInstanceOrString<T>>;
|
|
97
|
+
};
|
|
98
|
+
records: [ResourceIdentifierObject<TypeFromInstanceOrString<T>>];
|
|
99
|
+
[RequestSignature]?: RT;
|
|
112
100
|
};
|
|
113
101
|
type ImmutableRequest<T> = Readonly<T> & {
|
|
114
|
-
|
|
115
|
-
|
|
102
|
+
readonly headers: ImmutableHeaders;
|
|
103
|
+
readonly records: [StableRecordIdentifier];
|
|
116
104
|
};
|
|
117
|
-
export type UpdateRequestOptions<
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
};
|
|
129
|
-
records: [ResourceIdentifierObject<TypeFromInstanceOrString<T>>];
|
|
130
|
-
[RequestSignature]?: RT;
|
|
105
|
+
export type UpdateRequestOptions<RT = unknown, T = unknown> = {
|
|
106
|
+
url: string;
|
|
107
|
+
method: 'PATCH' | 'PUT';
|
|
108
|
+
headers: Headers;
|
|
109
|
+
op: 'updateRecord';
|
|
110
|
+
body?: string | BodyInit | FormData;
|
|
111
|
+
data: {
|
|
112
|
+
record: StableRecordIdentifier<TypeFromInstanceOrString<T>>;
|
|
113
|
+
};
|
|
114
|
+
records: [ResourceIdentifierObject<TypeFromInstanceOrString<T>>];
|
|
115
|
+
[RequestSignature]?: RT;
|
|
131
116
|
};
|
|
132
|
-
export type CreateRequestOptions<
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
};
|
|
144
|
-
records: [ResourceIdentifierObject<TypeFromInstanceOrString<T>>];
|
|
145
|
-
[RequestSignature]?: RT;
|
|
117
|
+
export type CreateRequestOptions<RT = unknown, T = unknown> = {
|
|
118
|
+
url: string;
|
|
119
|
+
method: 'POST';
|
|
120
|
+
headers: Headers;
|
|
121
|
+
op: 'createRecord';
|
|
122
|
+
body?: string | BodyInit | FormData;
|
|
123
|
+
data: {
|
|
124
|
+
record: StableRecordIdentifier<TypeFromInstanceOrString<T>>;
|
|
125
|
+
};
|
|
126
|
+
records: [ResourceIdentifierObject<TypeFromInstanceOrString<T>>];
|
|
127
|
+
[RequestSignature]?: RT;
|
|
146
128
|
};
|
|
147
129
|
export type ImmutableDeleteRequestOptions = ImmutableRequest<DeleteRequestOptions>;
|
|
148
130
|
export type ImmutableUpdateRequestOptions = ImmutableRequest<UpdateRequestOptions>;
|
|
149
131
|
export type ImmutableCreateRequestOptions = ImmutableRequest<CreateRequestOptions>;
|
|
150
132
|
export type RemotelyAccessibleIdentifier<T extends string = string> = {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
133
|
+
id: string;
|
|
134
|
+
type: T;
|
|
135
|
+
lid?: string;
|
|
154
136
|
};
|
|
155
137
|
export type ConstrainedRequestOptions = {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
138
|
+
reload?: boolean;
|
|
139
|
+
backgroundReload?: boolean;
|
|
140
|
+
host?: string;
|
|
141
|
+
namespace?: string;
|
|
142
|
+
resourcePath?: string;
|
|
143
|
+
urlParamsSettings?: QueryParamsSerializationOptions;
|
|
162
144
|
};
|
|
163
145
|
export type FindRecordOptions<T = unknown> = ConstrainedRequestOptions & {
|
|
164
|
-
|
|
146
|
+
include?: T extends TypedRecordInstance ? Includes<T>[] : string | string[];
|
|
165
147
|
};
|
|
166
148
|
export interface StructuredDataDocument<T> {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
149
|
+
[STRUCTURED]?: true;
|
|
150
|
+
/**
|
|
151
|
+
* @see {@link ImmutableRequestInfo}
|
|
152
|
+
*/
|
|
153
|
+
request: ImmutableRequestInfo;
|
|
154
|
+
response: Response | ResponseInfo | null;
|
|
155
|
+
content: T;
|
|
174
156
|
}
|
|
175
157
|
export interface StructuredErrorDocument<T = unknown> extends Error {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
158
|
+
[STRUCTURED]?: true;
|
|
159
|
+
request: ImmutableRequestInfo;
|
|
160
|
+
response: Response | ResponseInfo | null;
|
|
161
|
+
error: string | object;
|
|
162
|
+
content?: T;
|
|
181
163
|
}
|
|
182
164
|
export type StructuredDocument<T> = StructuredDataDocument<T> | StructuredErrorDocument<T>;
|
|
183
165
|
/**
|
|
184
|
-
* JavaScript's native Request class.
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*/
|
|
166
|
+
* JavaScript's native Request class.
|
|
167
|
+
*
|
|
168
|
+
* EmberData provides our own typings due to incompleteness in the native typings.
|
|
169
|
+
*
|
|
170
|
+
*/
|
|
189
171
|
interface Request {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
172
|
+
/** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
|
|
173
|
+
*/
|
|
174
|
+
cache?: RequestCache;
|
|
175
|
+
/** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
|
|
176
|
+
*/
|
|
177
|
+
credentials?: RequestCredentials;
|
|
178
|
+
/** Returns the kind of resource requested by request, e.g., "document" or "script".
|
|
179
|
+
*/
|
|
180
|
+
destination?: RequestDestination;
|
|
181
|
+
/** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
|
|
182
|
+
*/
|
|
183
|
+
headers?: Headers;
|
|
184
|
+
/** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
|
|
185
|
+
*/
|
|
186
|
+
integrity?: string;
|
|
187
|
+
/** Returns a boolean indicating whether or not request can outlive the global in which it was created.
|
|
188
|
+
*/
|
|
189
|
+
keepalive?: boolean;
|
|
190
|
+
/** Returns request's HTTP method, which is "GET" by default.
|
|
191
|
+
*/
|
|
192
|
+
method?: HTTPMethod;
|
|
193
|
+
/** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
|
|
194
|
+
*
|
|
195
|
+
* `no-cors` is not allowed for streaming request bodies.
|
|
196
|
+
*
|
|
197
|
+
*/
|
|
198
|
+
mode?: RequestMode;
|
|
199
|
+
/** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
|
|
200
|
+
*/
|
|
201
|
+
redirect?: RequestRedirect;
|
|
202
|
+
/** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the `Referer` header of the request being made.
|
|
203
|
+
*/
|
|
204
|
+
referrer?: string;
|
|
205
|
+
/** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
|
|
206
|
+
*/
|
|
207
|
+
referrerPolicy?: ReferrerPolicy;
|
|
208
|
+
/** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
|
|
209
|
+
*/
|
|
210
|
+
signal?: AbortSignal;
|
|
211
|
+
/** Returns the URL of request as a string.
|
|
212
|
+
*/
|
|
213
|
+
url?: string;
|
|
214
|
+
/** Any body that you want to add to your request. Note that a GET or HEAD request may not have a body.
|
|
215
|
+
*/
|
|
216
|
+
body?: BodyInit | null;
|
|
217
|
+
/**
|
|
218
|
+
* When sending a ReadableStream as the body of a request, 'half' must be
|
|
219
|
+
* specified.
|
|
220
|
+
*
|
|
221
|
+
* [Half Duplex Further Reading](https://developer.chrome.com/docs/capabilities/web-apis/fetch-streaming-requests#half_duplex)
|
|
222
|
+
*
|
|
223
|
+
*/
|
|
224
|
+
duplex?: 'half';
|
|
243
225
|
}
|
|
244
226
|
export interface ImmutableHeaders extends Headers {
|
|
245
|
-
|
|
246
|
-
|
|
227
|
+
clone?(): Headers;
|
|
228
|
+
toJSON(): [string, string][];
|
|
247
229
|
}
|
|
248
230
|
/**
|
|
249
|
-
* Extends JavaScript's native {@link Request} object with additional
|
|
250
|
-
* properties specific to the RequestManager's capabilities.
|
|
251
|
-
*
|
|
252
|
-
*/
|
|
253
|
-
export interface RequestInfo<
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
options?: Record<string, unknown>;
|
|
291
|
-
[RequestSignature]?: RT;
|
|
292
|
-
[EnableHydration]?: boolean;
|
|
231
|
+
* Extends JavaScript's native {@link Request} object with additional
|
|
232
|
+
* properties specific to the RequestManager's capabilities.
|
|
233
|
+
*
|
|
234
|
+
*/
|
|
235
|
+
export interface RequestInfo<RT = unknown, T = unknown> extends Request {
|
|
236
|
+
/**
|
|
237
|
+
* If provided, used instead of the AbortController auto-configured for each request by the RequestManager
|
|
238
|
+
*
|
|
239
|
+
*/
|
|
240
|
+
controller?: AbortController;
|
|
241
|
+
/**
|
|
242
|
+
* @see {@link CacheOptions}
|
|
243
|
+
*/
|
|
244
|
+
cacheOptions?: CacheOptions<T>;
|
|
245
|
+
store?: Store;
|
|
246
|
+
op?: string;
|
|
247
|
+
/**
|
|
248
|
+
* The identifiers of the primary resources involved in the request
|
|
249
|
+
* (if any). This may be used by handlers to perform transactional
|
|
250
|
+
* operations on the store.
|
|
251
|
+
*
|
|
252
|
+
*/
|
|
253
|
+
records?: StableRecordIdentifier[];
|
|
254
|
+
disableTestWaiter?: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* data that a handler should convert into
|
|
257
|
+
* the query (GET) or body (POST).
|
|
258
|
+
*
|
|
259
|
+
* Note: It is recommended that builders set query params
|
|
260
|
+
* and body directly in most scenarios.
|
|
261
|
+
*
|
|
262
|
+
*/
|
|
263
|
+
data?: Record<string, unknown>;
|
|
264
|
+
/**
|
|
265
|
+
* options specifically intended for handlers
|
|
266
|
+
* to utilize to process the request
|
|
267
|
+
*
|
|
268
|
+
*/
|
|
269
|
+
options?: Record<string, unknown>;
|
|
270
|
+
[RequestSignature]?: RT;
|
|
271
|
+
[EnableHydration]?: boolean;
|
|
293
272
|
}
|
|
294
273
|
/**
|
|
295
|
-
* Immutable version of {@link RequestInfo}. This is what is passed to handlers.
|
|
296
|
-
*
|
|
297
|
-
*/
|
|
298
|
-
export type ImmutableRequestInfo<
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
/** Whether the request body has been read.
|
|
307
|
-
*/
|
|
308
|
-
readonly bodyUsed?: boolean;
|
|
274
|
+
* Immutable version of {@link RequestInfo}. This is what is passed to handlers.
|
|
275
|
+
*
|
|
276
|
+
*/
|
|
277
|
+
export type ImmutableRequestInfo<RT = unknown, T = unknown> = Readonly<Omit<RequestInfo<RT, T>, 'controller'>> & {
|
|
278
|
+
readonly cacheOptions?: Readonly<CacheOptions<T>>;
|
|
279
|
+
readonly headers?: ImmutableHeaders;
|
|
280
|
+
readonly data?: Readonly<Record<string, unknown>>;
|
|
281
|
+
readonly options?: Readonly<Record<string, unknown>>;
|
|
282
|
+
/** Whether the request body has been read.
|
|
283
|
+
*/
|
|
284
|
+
readonly bodyUsed?: boolean;
|
|
309
285
|
};
|
|
310
286
|
export interface ResponseInfo {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
287
|
+
readonly headers: ImmutableHeaders;
|
|
288
|
+
readonly ok: boolean;
|
|
289
|
+
readonly redirected: boolean;
|
|
290
|
+
readonly status: number;
|
|
291
|
+
readonly statusText: string;
|
|
292
|
+
readonly type: ResponseType;
|
|
293
|
+
readonly url: string;
|
|
318
294
|
}
|
|
319
295
|
export interface RequestContext {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
296
|
+
/**
|
|
297
|
+
* @see {@link ImmutableRequestInfo}
|
|
298
|
+
*/
|
|
299
|
+
request: ImmutableRequestInfo;
|
|
300
|
+
id: number;
|
|
301
|
+
setStream(stream: ReadableStream | Promise<ReadableStream | null>): void;
|
|
302
|
+
setResponse(response: Response | ResponseInfo | null): void;
|
|
327
303
|
}
|
|
328
304
|
export declare function withBrand<T>(obj: RequestInfo): RequestInfo<T> & {
|
|
329
|
-
|
|
305
|
+
[RequestSignature]: T;
|
|
330
306
|
};
|
|
331
307
|
export {};
|
|
308
|
+
//# sourceMappingURL=request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/types/request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,QAAQ,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACvH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,KAAK,KAAK,GAAG,OAAO,CAAC;AAErB,eAAO,MAAM,SAAS,EAAE,+BAA6F,CAAC;AACtH,eAAO,MAAM,eAAe,EAAE,qCAG7B,CAAC;AACF,eAAO,MAAM,SAAS,EAAE,+BAAkF,CAAC;AAC3G,eAAO,MAAM,UAAU,EAAE,yBAAgE,CAAC;AAE1F,MAAM,MAAM,UAAU,GAClB,OAAO,GACP,KAAK,GACL,SAAS,GACT,MAAM,GACN,KAAK,GACL,OAAO,GAC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