@ember-data/store 5.6.0-alpha.1 → 5.6.0-alpha.11

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 (100) hide show
  1. package/README.md +5 -5
  2. package/addon-main.cjs +1 -1
  3. package/dist/-private.js +1 -2
  4. package/dist/-private.js.map +1 -1
  5. package/dist/configure.js +1 -1
  6. package/dist/index.js +208 -5
  7. package/dist/index.js.map +1 -1
  8. package/package.json +8 -19
  9. package/unstable-preview-types/-private.d.ts +1 -30
  10. package/unstable-preview-types/-private.d.ts.map +1 -1
  11. package/unstable-preview-types/configure.d.ts +2 -6
  12. package/unstable-preview-types/configure.d.ts.map +1 -1
  13. package/unstable-preview-types/index.d.ts +2 -224
  14. package/unstable-preview-types/index.d.ts.map +1 -1
  15. package/unstable-preview-types/types.d.ts +1 -4
  16. package/unstable-preview-types/types.d.ts.map +1 -1
  17. package/dist/configure-BfLLW6GY.js +0 -161
  18. package/dist/configure-BfLLW6GY.js.map +0 -1
  19. package/dist/request-state-uRtpn0Lc.js +0 -7709
  20. package/dist/request-state-uRtpn0Lc.js.map +0 -1
  21. package/unstable-preview-types/-private/cache-handler/handler.d.ts +0 -62
  22. package/unstable-preview-types/-private/cache-handler/handler.d.ts.map +0 -1
  23. package/unstable-preview-types/-private/cache-handler/types.d.ts +0 -107
  24. package/unstable-preview-types/-private/cache-handler/types.d.ts.map +0 -1
  25. package/unstable-preview-types/-private/cache-handler/utils.d.ts +0 -34
  26. package/unstable-preview-types/-private/cache-handler/utils.d.ts.map +0 -1
  27. package/unstable-preview-types/-private/caches/cache-utils.d.ts +0 -11
  28. package/unstable-preview-types/-private/caches/cache-utils.d.ts.map +0 -1
  29. package/unstable-preview-types/-private/caches/identifier-cache.d.ts +0 -180
  30. package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +0 -1
  31. package/unstable-preview-types/-private/caches/instance-cache.d.ts +0 -64
  32. package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +0 -1
  33. package/unstable-preview-types/-private/caches/resource-utils.d.ts +0 -12
  34. package/unstable-preview-types/-private/caches/resource-utils.d.ts.map +0 -1
  35. package/unstable-preview-types/-private/debug/utils.d.ts +0 -9
  36. package/unstable-preview-types/-private/debug/utils.d.ts.map +0 -1
  37. package/unstable-preview-types/-private/document.d.ts +0 -155
  38. package/unstable-preview-types/-private/document.d.ts.map +0 -1
  39. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +0 -179
  40. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +0 -1
  41. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +0 -19
  42. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts.map +0 -1
  43. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +0 -31
  44. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +0 -1
  45. package/unstable-preview-types/-private/managers/cache-manager.d.ts +0 -463
  46. package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +0 -1
  47. package/unstable-preview-types/-private/managers/notification-manager.d.ts +0 -101
  48. package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +0 -1
  49. package/unstable-preview-types/-private/managers/record-array-manager.d.ts +0 -101
  50. package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +0 -1
  51. package/unstable-preview-types/-private/network/request-cache.d.ts +0 -109
  52. package/unstable-preview-types/-private/network/request-cache.d.ts.map +0 -1
  53. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts +0 -289
  54. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts.map +0 -1
  55. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts +0 -92
  56. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts.map +0 -1
  57. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts +0 -172
  58. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts.map +0 -1
  59. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts +0 -32
  60. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts.map +0 -1
  61. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts +0 -276
  62. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts.map +0 -1
  63. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +0 -145
  64. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +0 -1
  65. package/unstable-preview-types/-private/record-arrays/many-array.d.ts +0 -203
  66. package/unstable-preview-types/-private/record-arrays/many-array.d.ts.map +0 -1
  67. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts +0 -118
  68. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts.map +0 -1
  69. package/unstable-preview-types/-private/store-service.d.ts +0 -1601
  70. package/unstable-preview-types/-private/store-service.d.ts.map +0 -1
  71. package/unstable-preview-types/-private/store-service.type-test.d.ts +0 -4
  72. package/unstable-preview-types/-private/store-service.type-test.d.ts.map +0 -1
  73. package/unstable-preview-types/-private/utils/coerce-id.d.ts +0 -10
  74. package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +0 -1
  75. package/unstable-preview-types/-private/utils/construct-resource.d.ts +0 -9
  76. package/unstable-preview-types/-private/utils/construct-resource.d.ts.map +0 -1
  77. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts +0 -4
  78. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts.map +0 -1
  79. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts +0 -4
  80. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts.map +0 -1
  81. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts +0 -4
  82. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts.map +0 -1
  83. package/unstable-preview-types/-types/overview.d.ts +0 -21
  84. package/unstable-preview-types/-types/overview.d.ts.map +0 -1
  85. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts +0 -110
  86. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts.map +0 -1
  87. package/unstable-preview-types/-types/q/ds-model.d.ts +0 -25
  88. package/unstable-preview-types/-types/q/ds-model.d.ts.map +0 -1
  89. package/unstable-preview-types/-types/q/identifier.d.ts +0 -193
  90. package/unstable-preview-types/-types/q/identifier.d.ts.map +0 -1
  91. package/unstable-preview-types/-types/q/promise-proxies.d.ts +0 -4
  92. package/unstable-preview-types/-types/q/promise-proxies.d.ts.map +0 -1
  93. package/unstable-preview-types/-types/q/record-data-json-api.d.ts +0 -36
  94. package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +0 -1
  95. package/unstable-preview-types/-types/q/record-instance.d.ts +0 -29
  96. package/unstable-preview-types/-types/q/record-instance.d.ts.map +0 -1
  97. package/unstable-preview-types/-types/q/schema-service.d.ts +0 -354
  98. package/unstable-preview-types/-types/q/schema-service.d.ts.map +0 -1
  99. package/unstable-preview-types/-types/q/store.d.ts +0 -38
  100. package/unstable-preview-types/-types/q/store.d.ts.map +0 -1
@@ -1,155 +0,0 @@
1
- declare module '@ember-data/store/-private/document' {
2
- import type { StableDocumentIdentifier } from '@warp-drive/core-types/identifier';
3
- import type { ImmutableRequestInfo, RequestInfo } from '@warp-drive/core-types/request';
4
- import type { ResourceDocument } from '@warp-drive/core-types/spec/document';
5
- import type { Meta, PaginationLinks } from '@warp-drive/core-types/spec/json-api-raw';
6
- import type { Store } from '@ember-data/store/-private/store-service';
7
- /**
8
- * A Document is a class that wraps the response content from a request to the API
9
- * returned by `Cache.put` or `Cache.peek`, converting resource-identifiers into
10
- * record instances.
11
- *
12
- * It is not directly instantiated by the user, and its properties should not
13
- * be directly modified. Whether individual properties are mutable or not is
14
- * determined by the record instance itself.
15
- *
16
- * @public
17
- * @class ReactiveDocument
18
- */
19
- export class ReactiveDocument<T> {
20
- #private;
21
- /**
22
- * The links object for this document, if any
23
- *
24
- * e.g.
25
- *
26
- * ```
27
- * {
28
- * self: '/articles?page[number]=3',
29
- * }
30
- * ```
31
- *
32
- * @property links
33
- * @type {Object|undefined} - a links object
34
- * @public
35
- */
36
- readonly links?: PaginationLinks;
37
- /**
38
- * The primary data for this document, if any.
39
- *
40
- * If this document has no primary data (e.g. because it is an error document)
41
- * this property will be `undefined`.
42
- *
43
- * For collections this will be an array of record instances,
44
- * for single resource requests it will be a single record instance or null.
45
- *
46
- * @property data
47
- * @public
48
- * @type {Object|Array<object>|null|undefined} - a data object
49
- */
50
- readonly data?: T;
51
- /**
52
- * The errors returned by the API for this request, if any
53
- *
54
- * @property errors
55
- * @public
56
- * @type {Object|undefined} - an errors object
57
- */
58
- readonly errors?: object[];
59
- /**
60
- * The meta object for this document, if any
61
- *
62
- * @property meta
63
- * @public
64
- * @type {Object|undefined} - a meta object
65
- */
66
- readonly meta?: Meta;
67
- /**
68
- * The identifier associated with this document, if any
69
- *
70
- * @property identifier
71
- * @public
72
- * @type {StableDocumentIdentifier|null}
73
- */
74
- readonly identifier: StableDocumentIdentifier | null;
75
- protected readonly _store: Store;
76
- protected readonly _localCache: {
77
- document: ResourceDocument;
78
- request: ImmutableRequestInfo;
79
- } | null;
80
- constructor(store: Store, identifier: StableDocumentIdentifier | null, localCache: {
81
- document: ResourceDocument;
82
- request: ImmutableRequestInfo;
83
- } | null);
84
- /**
85
- * Fetches the related link for this document, returning a promise that resolves
86
- * with the document when the request completes. If no related link is present,
87
- * will fallback to the self link if present
88
- *
89
- * @method fetch
90
- * @public
91
- * @param {Object} options
92
- * @return Promise<Document>
93
- */
94
- fetch(options?: Partial<RequestInfo<T, ReactiveDocument<T>>>): Promise<ReactiveDocument<T>>;
95
- /**
96
- * Fetches the next link for this document, returning a promise that resolves
97
- * with the new document when the request completes, or null if there is no
98
- * next link.
99
- *
100
- * @method next
101
- * @public
102
- * @param {Object} options
103
- * @return Promise<Document | null>
104
- */
105
- next(options?: Partial<RequestInfo<T, ReactiveDocument<T>>>): Promise<ReactiveDocument<T> | null>;
106
- /**
107
- * Fetches the prev link for this document, returning a promise that resolves
108
- * with the new document when the request completes, or null if there is no
109
- * prev link.
110
- *
111
- * @method prev
112
- * @public
113
- * @param {Object} options
114
- * @return Promise<Document | null>
115
- */
116
- prev(options?: Partial<RequestInfo<T, ReactiveDocument<T>>>): Promise<ReactiveDocument<T> | null>;
117
- /**
118
- * Fetches the first link for this document, returning a promise that resolves
119
- * with the new document when the request completes, or null if there is no
120
- * first link.
121
- *
122
- * @method first
123
- * @public
124
- * @param {Object} options
125
- * @return Promise<Document | null>
126
- */
127
- first(options?: Partial<RequestInfo<T, ReactiveDocument<T>>>): Promise<ReactiveDocument<T> | null>;
128
- /**
129
- * Fetches the last link for this document, returning a promise that resolves
130
- * with the new document when the request completes, or null if there is no
131
- * last link.
132
- *
133
- * @method last
134
- * @public
135
- * @param {Object} options
136
- * @return Promise<Document | null>
137
- */
138
- last(options?: Partial<RequestInfo<T, ReactiveDocument<T>>>): Promise<ReactiveDocument<T> | null>;
139
- /**
140
- * Implemented for `JSON.stringify` support.
141
- *
142
- * Returns the JSON representation of the document wrapper.
143
- *
144
- * This is a shallow serialization, it does not deeply serialize
145
- * the document's contents, leaving that to the individual record
146
- * instances to determine how to do, if at all.
147
- *
148
- * @method toJSON
149
- * @public
150
- * @return
151
- */
152
- toJSON(): object;
153
- }
154
- }
155
- //# sourceMappingURL=document.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/-private/document.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AACxF,OAAO,KAAK,EAAkC,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7G,OAAO,KAAK,EAAQ,IAAI,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAM5F,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAO7C;;;;;;;;;;;GAWG;AACH,qBAAa,gBAAgB,CAAC,CAAC;;IAC7B;;;;;;;;;;;;;;OAcG;IACH,SAAiB,KAAK,CAAC,EAAE,eAAe,CAAC;IACzC;;;;;;;;;;;;OAYG;IACH,SAAiB,IAAI,CAAC,EAAE,CAAC,CAAC;IAE1B;;;;;;OAMG;IACH,SAAiB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnC;;;;;;OAMG;IACH,SAAiB,IAAI,CAAC,EAAE,IAAI,CAAC;IAE7B;;;;;;OAMG;IACH,SAAiB,UAAU,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAE7D,mBAA2B,MAAM,EAAE,KAAK,CAAC;IACzC,mBAA2B,WAAW,EAAE;QAAE,QAAQ,EAAE,gBAAgB,CAAC;QAAC,OAAO,EAAE,oBAAoB,CAAA;KAAE,GAAG,IAAI,CAAC;gBAG3G,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,wBAAwB,GAAG,IAAI,EAC3C,UAAU,EAAE;QAAE,QAAQ,EAAE,gBAAgB,CAAC;QAAC,OAAO,EAAE,oBAAoB,CAAA;KAAE,GAAG,IAAI;IAiDlF;;;;;;;;;OASG;IACH,KAAK,CAAC,OAAO,GAAE,OAAO,CAAC,WAAW,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAO/F;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAO,GAAE,OAAO,CAAC,WAAW,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAIrG;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAO,GAAE,OAAO,CAAC,WAAW,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAIrG;;;;;;;;;OASG;IACH,KAAK,CAAC,OAAO,GAAE,OAAO,CAAC,WAAW,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAItG;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAO,GAAE,OAAO,CAAC,WAAW,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAIrG;;;;;;;;;;;;OAYG;IACH,MAAM,IAAI,MAAM;CAiBjB"}
@@ -1,179 +0,0 @@
1
- declare module '@ember-data/store/-private/legacy-model-support/record-reference' {
2
- import type { StableRecordIdentifier } from '@warp-drive/core-types/identifier';
3
- /**
4
- @module @ember-data/store
5
- */
6
- import type { SingleResourceDocument } from '@warp-drive/core-types/spec/json-api-raw';
7
- import type { OpaqueRecordInstance } from '@ember-data/store/-types/q/record-instance';
8
- import type { Store } from '@ember-data/store/-private/store-service';
9
- /**
10
- @module @ember-data/store
11
- */
12
- /**
13
- A `RecordReference` is a low-level API that allows users and
14
- addon authors to perform meta-operations on a record.
15
-
16
- @class RecordReference
17
- @public
18
- */
19
- export default class RecordReference {
20
- store: Store;
21
- ___token: object;
22
- ___identifier: StableRecordIdentifier;
23
- _ref: number;
24
- constructor(store: Store, identifier: StableRecordIdentifier);
25
- destroy(): void;
26
- get type(): string;
27
- /**
28
- The `id` of the record that this reference refers to.
29
-
30
- Together, the `type` and `id` properties form a composite key for
31
- the identity map.
32
-
33
- Example
34
-
35
- ```javascript
36
- let userRef = store.getReference('user', 1);
37
-
38
- userRef.id(); // '1'
39
- ```
40
-
41
- @method id
42
- @public
43
- @return {String} The id of the record.
44
- */
45
- id(): string | null;
46
- /**
47
- The `identifier` of the record that this reference refers to.
48
-
49
- Together, the `type` and `id` properties form a composite key for
50
- the identity map.
51
-
52
- Example
53
-
54
- ```javascript
55
- let userRef = store.getReference('user', 1);
56
-
57
- userRef.identifier(); // '1'
58
- ```
59
-
60
- @method identifier
61
- @public
62
- @return {String} The identifier of the record.
63
- */
64
- identifier(): StableRecordIdentifier;
65
- /**
66
- How the reference will be looked up when it is loaded. Currently
67
- this always returns `identity` to signify that a record will be
68
- loaded by its `type` and `id`.
69
-
70
- Example
71
-
72
- ```javascript
73
- const userRef = store.getReference('user', 1);
74
-
75
- userRef.remoteType(); // 'identity'
76
- ```
77
-
78
- @method remoteType
79
- @public
80
- @return {String} 'identity'
81
- */
82
- remoteType(): 'identity';
83
- /**
84
- This API allows you to provide a reference with new data. The
85
- simplest usage of this API is similar to `store.push`: you provide a
86
- normalized hash of data and the object represented by the reference
87
- will update.
88
-
89
- If you pass a promise to `push`, Ember Data will not ask the adapter
90
- for the data if another attempt to fetch it is made in the
91
- interim. When the promise resolves, the underlying object is updated
92
- with the new data, and the promise returned by *this function* is resolved
93
- with that object.
94
-
95
- For example, `recordReference.push(promise)` will be resolved with a
96
- record.
97
-
98
- Example
99
-
100
- ```javascript
101
- let userRef = store.getReference('user', 1);
102
-
103
- // provide data for reference
104
- userRef.push({
105
- data: {
106
- id: "1",
107
- type: "user",
108
- attributes: {
109
- username: "@user"
110
- }
111
- }
112
- }).then(function(user) {
113
- userRef.value() === user;
114
- });
115
- ```
116
-
117
- @method push
118
- @public
119
- @param objectOrPromise a JSON:API ResourceDocument or a promise resolving to one
120
- @return a promise for the value (record or relationship)
121
- */
122
- push(objectOrPromise: SingleResourceDocument | Promise<SingleResourceDocument>): Promise<OpaqueRecordInstance>;
123
- /**
124
- If the entity referred to by the reference is already loaded, it is
125
- present as `reference.value`. Otherwise the value returned by this function
126
- is `null`.
127
-
128
- Example
129
-
130
- ```javascript
131
- let userRef = store.getReference('user', 1);
132
-
133
- userRef.value(); // user
134
- ```
135
-
136
- @method value
137
- @public
138
- @return {Model} the record for this RecordReference
139
- */
140
- value(): OpaqueRecordInstance | null;
141
- /**
142
- Triggers a fetch for the backing entity based on its `remoteType`
143
- (see `remoteType` definitions per reference type).
144
-
145
- Example
146
-
147
- ```javascript
148
- let userRef = store.getReference('user', 1);
149
-
150
- // load user (via store.find)
151
- userRef.load().then(...)
152
- ```
153
-
154
- @method load
155
- @public
156
- @return {Promise<record>} the record for this RecordReference
157
- */
158
- load(): Promise<unknown>;
159
- /**
160
- Reloads the record if it is already loaded. If the record is not
161
- loaded it will load the record via `store.findRecord`
162
-
163
- Example
164
-
165
- ```javascript
166
- let userRef = store.getReference('user', 1);
167
-
168
- // or trigger a reload
169
- userRef.reload().then(...)
170
- ```
171
-
172
- @method reload
173
- @public
174
- @return {Promise<record>} the record for this RecordReference
175
- */
176
- reload(): Promise<unknown>;
177
- }
178
- }
179
- //# sourceMappingURL=record-reference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"record-reference.d.ts","sourceRoot":"","sources":["../../../src/-private/legacy-model-support/record-reference.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF;;EAEE;AACF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAEvF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAG3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;EAEE;AAEF;;;;;;EAME;AACF,MAAM,CAAC,OAAO,OAAO,eAAe;IAC1B,KAAK,EAAE,KAAK,CAAC;IAErB,QAAQ,EAAG,MAAM,CAAC;IAClB,aAAa,EAAE,sBAAsB,CAAC;IAE9B,IAAI,EAAE,MAAM,CAAC;gBAET,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,sBAAsB;IAa5D,OAAO;IAIP,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;;;;;;;;;;;;;;;MAiBE;IACF,EAAE;IAMF;;;;;;;;;;;;;;;;;MAiBE;IACF,UAAU,IAAI,sBAAsB;IAIpC;;;;;;;;;;;;;;;;MAgBE;IACF,UAAU,IAAI,UAAU;IAIxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsCE;IACF,IAAI,CAAC,eAAe,EAAE,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAO9G;;;;;;;;;;;;;;;;MAgBE;IACF,KAAK,IAAI,oBAAoB,GAAG,IAAI;IAIpC;;;;;;;;;;;;;;;;MAgBE;IACF,IAAI;IAQJ;;;;;;;;;;;;;;;;MAgBE;IACF,MAAM;CAOP"}
@@ -1,19 +0,0 @@
1
- declare module '@ember-data/store/-private/legacy-model-support/shim-model-class' {
2
- import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
3
- import type { LegacyAttributeField, LegacyRelationshipField } from '@warp-drive/core-types/schema/fields';
4
- import type { KeyOrString, ModelSchema } from '@ember-data/store/-types/q/ds-model';
5
- import type { Store } from '@ember-data/store/-private/store-service';
6
- export function getShimClass<T>(store: Store, modelName: T extends TypedRecordInstance ? TypeFromInstance<T> : string): ShimModelClass<T>;
7
- export default class ShimModelClass<T = unknown> implements ModelSchema<T> {
8
- __store: Store;
9
- modelName: T extends TypedRecordInstance ? TypeFromInstance<T> : string;
10
- constructor(store: Store, modelName: T extends TypedRecordInstance ? TypeFromInstance<T> : string);
11
- get fields(): Map<KeyOrString<T>, 'attribute' | 'belongsTo' | 'hasMany'>;
12
- get attributes(): Map<KeyOrString<T>, LegacyAttributeField>;
13
- get relationshipsByName(): Map<KeyOrString<T>, LegacyRelationshipField>;
14
- eachAttribute<K extends KeyOrString<T>>(callback: (key: K, attribute: LegacyAttributeField) => void, binding?: T): void;
15
- eachRelationship<K extends KeyOrString<T>>(callback: (key: K, relationship: LegacyRelationshipField) => void, binding?: T): void;
16
- eachTransformedAttribute<K extends KeyOrString<T>>(callback: (key: K, type: string | null) => void, binding?: T): void;
17
- }
18
- }
19
- //# sourceMappingURL=shim-model-class.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shim-model-class.d.ts","sourceRoot":"","sources":["../../../src/-private/legacy-model-support/shim-model-class.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE1G,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAM9C,wBAAgB,YAAY,CAAC,CAAC,EAC5B,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,CAAC,SAAS,mBAAmB,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,MAAM,GACtE,cAAc,CAAC,CAAC,CAAC,CAcnB;AAGD,MAAM,CAAC,OAAO,OAAO,cAAc,CAAC,CAAC,GAAG,OAAO,CAAE,YAAW,WAAW,CAAC,CAAC,CAAC;IAChE,OAAO,EAAE,KAAK,CAAC;IACf,SAAS,EAAE,CAAC,SAAS,mBAAmB,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;gBACpE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,SAAS,mBAAmB,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,MAAM;IAKjG,IAAI,MAAM,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC,CAWvE;IAED,IAAI,UAAU,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,oBAAoB,CAAC,CAW1D;IAED,IAAI,mBAAmB,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,uBAAuB,CAAC,CAWtE;IAED,aAAa,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,oBAAoB,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC;IAQhH,gBAAgB,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,EACvC,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,YAAY,EAAE,uBAAuB,KAAK,IAAI,EACjE,OAAO,CAAC,EAAE,CAAC;IASb,wBAAwB,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC;CAQhH"}
@@ -1,31 +0,0 @@
1
- declare module '@ember-data/store/-private/managers/cache-capabilities-manager' {
2
- import type { StableDocumentIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
3
- import type { CacheCapabilitiesManager as StoreWrapper } from '@ember-data/store/-types/q/cache-capabilities-manager';
4
- import type { SchemaService } from '@ember-data/store/-types/q/schema-service';
5
- import type { IdentifierCache } from '@ember-data/store/-private/caches/identifier-cache';
6
- import type { Store } from '@ember-data/store/-private/store-service';
7
- import type { NotificationType } from '@ember-data/store/-private/managers/notification-manager';
8
- /**
9
- @module @ember-data/store
10
- */
11
- export interface CacheCapabilitiesManager {
12
- getSchemaDefinitionService(): SchemaService;
13
- }
14
- export class CacheCapabilitiesManager implements StoreWrapper {
15
- _willNotify: boolean;
16
- _pendingNotifies: Map<StableRecordIdentifier, Set<string>>;
17
- _store: Store;
18
- constructor(_store: Store);
19
- get identifierCache(): IdentifierCache;
20
- _scheduleNotification(identifier: StableRecordIdentifier, key: string): void;
21
- _flushNotifications(): void;
22
- notifyChange(identifier: StableRecordIdentifier, namespace: 'added' | 'removed', key: null): void;
23
- notifyChange(identifier: StableDocumentIdentifier, namespace: 'added' | 'updated' | 'removed', key: null): void;
24
- notifyChange(identifier: StableRecordIdentifier, namespace: NotificationType, key: string | null): void;
25
- get schema(): SchemaService;
26
- setRecordId(identifier: StableRecordIdentifier, id: string): void;
27
- hasRecord(identifier: StableRecordIdentifier): boolean;
28
- disconnectRecord(identifier: StableRecordIdentifier): void;
29
- }
30
- }
31
- //# sourceMappingURL=cache-capabilities-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cache-capabilities-manager.d.ts","sourceRoot":"","sources":["../../../src/-private/managers/cache-capabilities-manager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE1G,OAAO,KAAK,EAAE,wBAAwB,IAAI,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC1G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D;;EAEE;AAEF,MAAM,WAAW,wBAAwB;IACvC,0BAA0B,IAAI,aAAa,CAAC;CAC7C;AACD,qBAAa,wBAAyB,YAAW,YAAY;IACnD,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,GAAG,CAAC,sBAAsB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3D,MAAM,EAAE,KAAK,CAAC;gBAEV,MAAM,EAAE,KAAK;IAMzB,IAAI,eAAe,IAAI,eAAe,CAErC;IAED,qBAAqB,CAAC,UAAU,EAAE,sBAAsB,EAAE,GAAG,EAAE,MAAM;IAyBrE,mBAAmB,IAAI,IAAI;IAgB3B,YAAY,CAAC,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI;IACjG,YAAY,CAAC,UAAU,EAAE,wBAAwB,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI;IAC/G,YAAY,CAAC,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAkBvG,IAAI,MAAM,kBAET;IAED,WAAW,CAAC,UAAU,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM;IAK1D,SAAS,CAAC,UAAU,EAAE,sBAAsB,GAAG,OAAO;IAItD,gBAAgB,CAAC,UAAU,EAAE,sBAAsB,GAAG,IAAI;CAK3D"}