@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.
Files changed (219) hide show
  1. package/README.md +7 -8
  2. package/declarations/index.d.ts +3 -14
  3. package/declarations/index.d.ts.map +1 -0
  4. package/declarations/request/-private/context.d.ts +35 -34
  5. package/declarations/request/-private/context.d.ts.map +1 -0
  6. package/declarations/request/-private/debug.d.ts +3 -2
  7. package/declarations/request/-private/debug.d.ts.map +1 -0
  8. package/declarations/request/-private/fetch.d.ts +36 -24
  9. package/declarations/request/-private/fetch.d.ts.map +1 -0
  10. package/declarations/request/-private/future.d.ts +4 -3
  11. package/declarations/request/-private/future.d.ts.map +1 -0
  12. package/declarations/request/-private/manager.d.ts +132 -159
  13. package/declarations/request/-private/manager.d.ts.map +1 -0
  14. package/declarations/request/-private/promise-cache.d.ts +13 -21
  15. package/declarations/request/-private/promise-cache.d.ts.map +1 -0
  16. package/declarations/request/-private/types.d.ts +123 -124
  17. package/declarations/request/-private/types.d.ts.map +1 -0
  18. package/declarations/request/-private/utils.d.ts +9 -8
  19. package/declarations/request/-private/utils.d.ts.map +1 -0
  20. package/declarations/request.d.ts +433 -5
  21. package/declarations/request.d.ts.map +1 -0
  22. package/declarations/types/-private.d.ts +8 -16
  23. package/declarations/types/-private.d.ts.map +1 -0
  24. package/declarations/types/cache/aliases.d.ts +1 -11
  25. package/declarations/types/cache/aliases.d.ts.map +1 -0
  26. package/declarations/types/cache/change.d.ts +5 -4
  27. package/declarations/types/cache/change.d.ts.map +1 -0
  28. package/declarations/types/cache/mutations.d.ts +28 -51
  29. package/declarations/types/cache/mutations.d.ts.map +1 -0
  30. package/declarations/types/cache/operations.d.ts +47 -60
  31. package/declarations/types/cache/operations.d.ts.map +1 -0
  32. package/declarations/types/cache/relationship.d.ts +9 -11
  33. package/declarations/types/cache/relationship.d.ts.map +1 -0
  34. package/declarations/types/cache.d.ts +484 -495
  35. package/declarations/types/cache.d.ts.map +1 -0
  36. package/declarations/types/graph.d.ts +40 -31
  37. package/declarations/types/graph.d.ts.map +1 -0
  38. package/declarations/types/identifier.d.ts +82 -83
  39. package/declarations/types/identifier.d.ts.map +1 -0
  40. package/declarations/types/json/raw.d.ts +2 -1
  41. package/declarations/types/json/raw.d.ts.map +1 -0
  42. package/declarations/types/params.d.ts +5 -4
  43. package/declarations/types/params.d.ts.map +1 -0
  44. package/declarations/types/record.d.ts +76 -117
  45. package/declarations/types/record.d.ts.map +1 -0
  46. package/declarations/types/record.type-test.d.ts +2 -0
  47. package/declarations/types/record.type-test.d.ts.map +1 -0
  48. package/declarations/types/request.d.ts +266 -289
  49. package/declarations/types/request.d.ts.map +1 -0
  50. package/declarations/types/request.type-test.d.ts +2 -0
  51. package/declarations/types/request.type-test.d.ts.map +1 -0
  52. package/declarations/types/runtime.d.ts +9 -8
  53. package/declarations/types/runtime.d.ts.map +1 -0
  54. package/declarations/types/schema/concepts.d.ts +13 -19
  55. package/declarations/types/schema/concepts.d.ts.map +1 -0
  56. package/declarations/types/schema/fields.d.ts +1741 -1712
  57. package/declarations/types/schema/fields.d.ts.map +1 -0
  58. package/declarations/types/schema/fields.type-test.d.ts +1 -0
  59. package/declarations/types/schema/fields.type-test.d.ts.map +1 -0
  60. package/declarations/types/spec/document.d.ts +22 -28
  61. package/declarations/types/spec/document.d.ts.map +1 -0
  62. package/declarations/types/spec/error.d.ts +17 -16
  63. package/declarations/types/spec/error.d.ts.map +1 -0
  64. package/declarations/types/spec/json-api-raw.d.ts +102 -102
  65. package/declarations/types/spec/json-api-raw.d.ts.map +1 -0
  66. package/declarations/types/symbols.d.ts +75 -74
  67. package/declarations/types/symbols.d.ts.map +1 -0
  68. package/declarations/types/utils.d.ts +5 -5
  69. package/declarations/types/utils.d.ts.map +1 -0
  70. package/declarations/types.d.ts +7 -10
  71. package/declarations/types.d.ts.map +1 -0
  72. package/dist/{context-COmAnXUQ.js → context-DE5sFezZ.js} +2 -2
  73. package/dist/context-DE5sFezZ.js.map +1 -0
  74. package/dist/index.js +104 -37
  75. package/dist/index.js.map +1 -0
  76. package/dist/request.js +1 -1
  77. package/dist/request.js.map +1 -0
  78. package/dist/types/-private.js +3 -3
  79. package/dist/types/-private.js.map +1 -0
  80. package/dist/types/cache/aliases.js.map +1 -0
  81. package/dist/types/cache/change.js.map +1 -0
  82. package/dist/types/cache/mutations.js.map +1 -0
  83. package/dist/types/cache/operations.js.map +1 -0
  84. package/dist/types/cache/relationship.js.map +1 -0
  85. package/dist/types/cache.js.map +1 -0
  86. package/dist/types/graph.js.map +1 -0
  87. package/dist/types/identifier.js.map +1 -0
  88. package/dist/types/json/raw.js.map +1 -0
  89. package/dist/types/params.js.map +1 -0
  90. package/dist/types/record.js +1 -1
  91. package/dist/types/record.js.map +1 -0
  92. package/dist/types/request.js +2 -2
  93. package/dist/types/request.js.map +1 -0
  94. package/dist/types/runtime.js +1 -1
  95. package/dist/types/runtime.js.map +1 -0
  96. package/dist/types/schema/concepts.js.map +1 -0
  97. package/dist/types/schema/fields.js +41 -8
  98. package/dist/types/schema/fields.js.map +1 -0
  99. package/dist/types/schema/fields.type-test.js.map +1 -0
  100. package/dist/types/spec/document.js.map +1 -0
  101. package/dist/types/spec/error.js.map +1 -0
  102. package/dist/types/spec/json-api-raw.js.map +1 -0
  103. package/dist/types/symbols.js +3 -3
  104. package/dist/types/symbols.js.map +1 -0
  105. package/dist/types/utils.js.map +1 -0
  106. package/dist/types.js.map +1 -0
  107. package/package.json +8 -11
  108. package/cjs-dist/addon-shim.cjs +0 -1
  109. package/cjs-dist/cjs-set-config.cjs +0 -1
  110. package/declarations/build-config/babel-macros.d.ts +0 -1
  111. package/declarations/build-config/canary-features.d.ts +0 -1
  112. package/declarations/build-config/debugging.d.ts +0 -1
  113. package/declarations/build-config/deprecations.d.ts +0 -1
  114. package/declarations/build-config/env.d.ts +0 -1
  115. package/declarations/build-config/macros.d.ts +0 -1
  116. package/declarations/build-config.d.ts +0 -1
  117. package/declarations/configure.d.ts +0 -7
  118. package/declarations/graph/-private/-diff.d.ts +0 -32
  119. package/declarations/graph/-private/-edge-definition.d.ts +0 -148
  120. package/declarations/graph/-private/-state.d.ts +0 -96
  121. package/declarations/graph/-private/-utils.d.ts +0 -31
  122. package/declarations/graph/-private/coerce-id.d.ts +0 -10
  123. package/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +0 -18
  124. package/declarations/graph/-private/edges/collection.d.ts +0 -39
  125. package/declarations/graph/-private/edges/implicit.d.ts +0 -43
  126. package/declarations/graph/-private/edges/resource.d.ts +0 -24
  127. package/declarations/graph/-private/graph.d.ts +0 -90
  128. package/declarations/graph/-private/normalize-link.d.ts +0 -8
  129. package/declarations/graph/-private/operations/add-to-related-records.d.ts +0 -4
  130. package/declarations/graph/-private/operations/merge-identifier.d.ts +0 -3
  131. package/declarations/graph/-private/operations/remove-from-related-records.d.ts +0 -4
  132. package/declarations/graph/-private/operations/replace-related-record.d.ts +0 -3
  133. package/declarations/graph/-private/operations/replace-related-records.d.ts +0 -62
  134. package/declarations/graph/-private/operations/update-relationship.d.ts +0 -13
  135. package/declarations/graph/-private.d.ts +0 -13
  136. package/declarations/reactive/-private/document.d.ts +0 -146
  137. package/declarations/reactive/-private/fields/compute.d.ts +0 -43
  138. package/declarations/reactive/-private/fields/extension.d.ts +0 -8
  139. package/declarations/reactive/-private/fields/managed-array.d.ts +0 -22
  140. package/declarations/reactive/-private/fields/managed-object.d.ts +0 -21
  141. package/declarations/reactive/-private/fields/many-array-manager.d.ts +0 -19
  142. package/declarations/reactive/-private/hooks.d.ts +0 -5
  143. package/declarations/reactive/-private/record.d.ts +0 -64
  144. package/declarations/reactive/-private/schema.d.ts +0 -271
  145. package/declarations/reactive/-private/symbols.d.ts +0 -36
  146. package/declarations/reactive/-private.d.ts +0 -1
  147. package/declarations/reactive.d.ts +0 -4
  148. package/declarations/store/-private/cache-handler/handler.d.ts +0 -62
  149. package/declarations/store/-private/cache-handler/types.d.ts +0 -98
  150. package/declarations/store/-private/cache-handler/utils.d.ts +0 -32
  151. package/declarations/store/-private/caches/cache-utils.d.ts +0 -12
  152. package/declarations/store/-private/caches/identifier-cache.d.ts +0 -304
  153. package/declarations/store/-private/caches/instance-cache.d.ts +0 -65
  154. package/declarations/store/-private/caches/resource-utils.d.ts +0 -9
  155. package/declarations/store/-private/debug/utils.d.ts +0 -6
  156. package/declarations/store/-private/default-cache-policy.d.ts +0 -384
  157. package/declarations/store/-private/legacy-model-support/record-reference.d.ts +0 -159
  158. package/declarations/store/-private/legacy-model-support/shim-model-class.d.ts +0 -17
  159. package/declarations/store/-private/managers/cache-capabilities-manager.d.ts +0 -25
  160. package/declarations/store/-private/managers/cache-manager.d.ts +0 -443
  161. package/declarations/store/-private/managers/notification-manager.d.ts +0 -98
  162. package/declarations/store/-private/managers/record-array-manager.d.ts +0 -97
  163. package/declarations/store/-private/network/request-cache.d.ts +0 -107
  164. package/declarations/store/-private/new-core-tmp/promise-state.d.ts +0 -263
  165. package/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +0 -176
  166. package/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +0 -169
  167. package/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +0 -35
  168. package/declarations/store/-private/new-core-tmp/request-state.d.ts +0 -277
  169. package/declarations/store/-private/new-core-tmp/request-subscription.d.ts +0 -261
  170. package/declarations/store/-private/record-arrays/identifier-array.d.ts +0 -147
  171. package/declarations/store/-private/record-arrays/many-array.d.ts +0 -197
  172. package/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +0 -126
  173. package/declarations/store/-private/store-service.d.ts +0 -1605
  174. package/declarations/store/-private/utils/coerce-id.d.ts +0 -10
  175. package/declarations/store/-private/utils/construct-resource.d.ts +0 -6
  176. package/declarations/store/-private/utils/is-non-empty-string.d.ts +0 -1
  177. package/declarations/store/-private/utils/normalize-model-name.d.ts +0 -1
  178. package/declarations/store/-private/utils/uuid-polyfill.d.ts +0 -1
  179. package/declarations/store/-private.d.ts +0 -31
  180. package/declarations/store/-types/q/cache-capabilities-manager.d.ts +0 -99
  181. package/declarations/store/-types/q/ds-model.d.ts +0 -21
  182. package/declarations/store/-types/q/identifier.d.ts +0 -20
  183. package/declarations/store/-types/q/record-instance.d.ts +0 -23
  184. package/declarations/store/-types/q/schema-service.d.ts +0 -354
  185. package/declarations/store/-types/q/store.d.ts +0 -32
  186. package/declarations/store.d.ts +0 -1
  187. package/declarations/utils/string.d.ts +0 -48
  188. package/dist/build-config/babel-macros.js +0 -1
  189. package/dist/build-config/canary-features.js +0 -1
  190. package/dist/build-config/debugging.js +0 -1
  191. package/dist/build-config/deprecations.js +0 -1
  192. package/dist/build-config/env.js +0 -1
  193. package/dist/build-config/macros.js +0 -1
  194. package/dist/build-config.js +0 -1
  195. package/dist/configure-B48bFHOl.js +0 -181
  196. package/dist/configure.js +0 -1
  197. package/dist/graph/-private.js +0 -3372
  198. package/dist/handler-C2T-IyJK.js +0 -339
  199. package/dist/reactive/-private.js +0 -1
  200. package/dist/reactive.js +0 -1988
  201. package/dist/request-state-CjLph1LP.js +0 -8139
  202. package/dist/store/-private.js +0 -3
  203. package/dist/store.js +0 -545
  204. package/dist/symbols-SIstXMLI.js +0 -44
  205. package/dist/utils/string.js +0 -92
  206. package/logos/NCC-1701-a-blue.svg +0 -4
  207. package/logos/NCC-1701-a-gold.svg +0 -4
  208. package/logos/NCC-1701-a-gold_100.svg +0 -1
  209. package/logos/NCC-1701-a-gold_base-64.txt +0 -1
  210. package/logos/NCC-1701-a.svg +0 -4
  211. package/logos/README.md +0 -4
  212. package/logos/docs-badge.svg +0 -2
  213. package/logos/ember-data-logo-dark.svg +0 -12
  214. package/logos/ember-data-logo-light.svg +0 -12
  215. package/logos/github-header.svg +0 -444
  216. package/logos/social1.png +0 -0
  217. package/logos/social2.png +0 -0
  218. package/logos/warp-drive-logo-dark.svg +0 -4
  219. package/logos/warp-drive-logo-gold.svg +0 -4
@@ -1,331 +1,308 @@
1
- import type { StableRecordIdentifier } from "./identifier.js";
2
- import type { QueryParamsSerializationOptions } from "./params.js";
3
- import type { ExtractSuggestedCacheTypes, Includes, TypedRecordInstance, TypeFromInstanceOrString } from "./record.js";
4
- import type { ResourceIdentifierObject } from "./spec/json-api-raw.js";
5
- import type { RequestSignature } from "./symbols.js";
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: "___(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";
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
- * 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;
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
- RT = unknown,
63
- T = unknown
64
- > = {
65
- url: string;
66
- method: "GET";
67
- headers: Headers;
68
- cacheOptions?: CacheOptions<T>;
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
- RT = unknown,
75
- T = unknown
76
- > = {
77
- url: string;
78
- method: "GET";
79
- headers: Headers;
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
- RT = unknown,
86
- T = unknown
87
- > = {
88
- url: string;
89
- method: "POST" | "QUERY";
90
- headers: Headers;
91
- body?: string | BodyInit | FormData;
92
- cacheOptions: CacheOptions<T> & {
93
- key: string;
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
- RT = unknown,
100
- T = unknown
101
- > = {
102
- url: string;
103
- method: "DELETE";
104
- headers: Headers;
105
- op: "deleteRecord";
106
- body?: string | BodyInit | FormData;
107
- data: {
108
- record: StableRecordIdentifier<TypeFromInstanceOrString<T>>;
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
- readonly headers: ImmutableHeaders;
115
- readonly records: [StableRecordIdentifier];
102
+ readonly headers: ImmutableHeaders;
103
+ readonly records: [StableRecordIdentifier];
116
104
  };
117
- export type UpdateRequestOptions<
118
- RT = unknown,
119
- T = unknown
120
- > = {
121
- url: string;
122
- method: "PATCH" | "PUT";
123
- headers: Headers;
124
- op: "updateRecord";
125
- body?: string | BodyInit | FormData;
126
- data: {
127
- record: StableRecordIdentifier<TypeFromInstanceOrString<T>>;
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
- RT = unknown,
134
- T = unknown
135
- > = {
136
- url: string;
137
- method: "POST";
138
- headers: Headers;
139
- op: "createRecord";
140
- body?: string | BodyInit | FormData;
141
- data: {
142
- record: StableRecordIdentifier<TypeFromInstanceOrString<T>>;
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
- id: string;
152
- type: T;
153
- lid?: string;
133
+ id: string;
134
+ type: T;
135
+ lid?: string;
154
136
  };
155
137
  export type ConstrainedRequestOptions = {
156
- reload?: boolean;
157
- backgroundReload?: boolean;
158
- host?: string;
159
- namespace?: string;
160
- resourcePath?: string;
161
- urlParamsSettings?: QueryParamsSerializationOptions;
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
- include?: T extends TypedRecordInstance ? Includes<T>[] : string | string[];
146
+ include?: T extends TypedRecordInstance ? Includes<T>[] : string | string[];
165
147
  };
166
148
  export interface StructuredDataDocument<T> {
167
- [STRUCTURED]?: true;
168
- /**
169
- * @see {@link ImmutableRequestInfo}
170
- */
171
- request: ImmutableRequestInfo;
172
- response: Response | ResponseInfo | null;
173
- content: T;
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
- [STRUCTURED]?: true;
177
- request: ImmutableRequestInfo;
178
- response: Response | ResponseInfo | null;
179
- error: string | object;
180
- content?: T;
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
- * WarpDrive provides our own typings due to incompleteness in the native typings.
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
- /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
191
- */
192
- cache?: RequestCache;
193
- /** 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.
194
- */
195
- credentials?: RequestCredentials;
196
- /** Returns the kind of resource requested by request, e.g., "document" or "script".
197
- */
198
- destination?: RequestDestination;
199
- /** 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.
200
- */
201
- headers?: Headers;
202
- /** 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]
203
- */
204
- integrity?: string;
205
- /** Returns a boolean indicating whether or not request can outlive the global in which it was created.
206
- */
207
- keepalive?: boolean;
208
- /** Returns request's HTTP method, which is "GET" by default.
209
- */
210
- method?: HTTPMethod;
211
- /** 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.
212
- *
213
- * `no-cors` is not allowed for streaming request bodies.
214
- *
215
- */
216
- mode?: RequestMode;
217
- /** 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.
218
- */
219
- redirect?: RequestRedirect;
220
- /** 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.
221
- */
222
- referrer?: string;
223
- /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
224
- */
225
- referrerPolicy?: ReferrerPolicy;
226
- /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
227
- */
228
- signal?: AbortSignal;
229
- /** Returns the URL of request as a string.
230
- */
231
- url?: string;
232
- /** Any body that you want to add to your request. Note that a GET or HEAD request may not have a body.
233
- */
234
- body?: BodyInit | null;
235
- /**
236
- * When sending a ReadableStream as the body of a request, 'half' must be
237
- * specified.
238
- *
239
- * [Half Duplex Further Reading](https://developer.chrome.com/docs/capabilities/web-apis/fetch-streaming-requests#half_duplex)
240
- *
241
- */
242
- duplex?: "half";
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
- clone?(): Headers;
246
- toJSON(): [string, string][];
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
- RT = unknown,
255
- T = unknown
256
- > extends Request {
257
- /**
258
- * If provided, used instead of the AbortController auto-configured for each request by the RequestManager
259
- *
260
- */
261
- controller?: AbortController;
262
- /**
263
- * @see {@link CacheOptions}
264
- */
265
- cacheOptions?: CacheOptions<T>;
266
- store?: Store;
267
- op?: string;
268
- /**
269
- * The identifiers of the primary resources involved in the request
270
- * (if any). This may be used by handlers to perform transactional
271
- * operations on the store.
272
- *
273
- */
274
- records?: StableRecordIdentifier[];
275
- disableTestWaiter?: boolean;
276
- /**
277
- * data that a handler should convert into
278
- * the query (GET) or body (POST).
279
- *
280
- * Note: It is recommended that builders set query params
281
- * and body directly in most scenarios.
282
- *
283
- */
284
- data?: Record<string, unknown>;
285
- /**
286
- * options specifically intended for handlers
287
- * to utilize to process the request
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
- RT = unknown,
300
- T = unknown
301
- > = Readonly<Omit<RequestInfo<RT, T>, "controller">> & {
302
- readonly cacheOptions?: Readonly<CacheOptions<T>>;
303
- readonly headers?: ImmutableHeaders;
304
- readonly data?: Readonly<Record<string, unknown>>;
305
- readonly options?: Readonly<Record<string, unknown>>;
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
- readonly headers: ImmutableHeaders;
312
- readonly ok: boolean;
313
- readonly redirected: boolean;
314
- readonly status: number;
315
- readonly statusText: string;
316
- readonly type: ResponseType;
317
- readonly url: string;
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
- * @see {@link ImmutableRequestInfo}
322
- */
323
- request: ImmutableRequestInfo;
324
- id: number;
325
- setStream(stream: ReadableStream | Promise<ReadableStream | null>): void;
326
- setResponse(response: Response | ResponseInfo | null): void;
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
- [RequestSignature]: T;
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,GACP,QAAQ,GACR,MAAM,GACN,SAAS,GACT,OAAO,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,OAAO,IAAI;IACtC;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,EAAE,CAAC,SAAS,mBAAmB,GAAG,0BAA0B,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,CA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@
1
+ export {};
2
+ //# sourceMappingURL=request.type-test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.type-test.d.ts","sourceRoot":"","sources":["../../src/types/request.type-test.ts"],"names":[],"mappings":""}