@ember-data/model 4.12.8 → 4.13.0-alpha.3
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 +19 -0
- package/addon-main.cjs +5 -0
- package/blueprints/model/index.js +18 -5
- package/blueprints/model-test/index.js +16 -10
- package/blueprints/model-test/qunit-files/__root__/__path__/__test__.js +4 -5
- package/dist/-private.js +2 -0
- package/dist/-private.js.map +1 -0
- package/dist/has-many-CshPdrqR.js +842 -0
- package/dist/has-many-CshPdrqR.js.map +1 -0
- package/dist/hooks-DCYCaSEL.js +75 -0
- package/dist/hooks-DCYCaSEL.js.map +1 -0
- package/dist/hooks.js +2 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.js +4 -0
- package/{addon → dist}/index.js.map +1 -1
- package/{addon/has-many-d45aa09e.js → dist/legacy-relationships-support-D5m0xTYg.js} +5532 -5533
- package/dist/legacy-relationships-support-D5m0xTYg.js.map +1 -0
- package/dist/migration-support.js +210 -0
- package/dist/migration-support.js.map +1 -0
- package/dist/schema-provider-m94yB7iS.js +294 -0
- package/dist/schema-provider-m94yB7iS.js.map +1 -0
- package/ember-data-logo-dark.svg +12 -0
- package/ember-data-logo-light.svg +12 -0
- package/package.json +78 -44
- package/unstable-preview-types/-private/attr.d.ts +175 -0
- package/unstable-preview-types/-private/attr.d.ts.map +1 -0
- package/unstable-preview-types/-private/attr.type-test.d.ts +4 -0
- package/unstable-preview-types/-private/attr.type-test.d.ts.map +1 -0
- package/unstable-preview-types/-private/belongs-to.d.ts +180 -0
- package/unstable-preview-types/-private/belongs-to.d.ts.map +1 -0
- package/unstable-preview-types/-private/belongs-to.type-test.d.ts +4 -0
- package/unstable-preview-types/-private/belongs-to.type-test.d.ts.map +1 -0
- package/unstable-preview-types/-private/debug/assert-polymorphic-type.d.ts +8 -0
- package/unstable-preview-types/-private/debug/assert-polymorphic-type.d.ts.map +1 -0
- package/unstable-preview-types/-private/deprecated-promise-proxy.d.ts +5 -0
- package/unstable-preview-types/-private/deprecated-promise-proxy.d.ts.map +1 -0
- package/unstable-preview-types/-private/errors.d.ts +303 -0
- package/unstable-preview-types/-private/errors.d.ts.map +1 -0
- package/unstable-preview-types/-private/has-many.d.ts +169 -0
- package/unstable-preview-types/-private/has-many.d.ts.map +1 -0
- package/unstable-preview-types/-private/has-many.type-test.d.ts +4 -0
- package/unstable-preview-types/-private/has-many.type-test.d.ts.map +1 -0
- package/unstable-preview-types/-private/hooks.d.ts +13 -0
- package/unstable-preview-types/-private/hooks.d.ts.map +1 -0
- package/unstable-preview-types/-private/legacy-relationships-support.d.ts +60 -0
- package/unstable-preview-types/-private/legacy-relationships-support.d.ts.map +1 -0
- package/unstable-preview-types/-private/many-array.d.ts +196 -0
- package/unstable-preview-types/-private/many-array.d.ts.map +1 -0
- package/unstable-preview-types/-private/model-for-mixin.d.ts +6 -0
- package/unstable-preview-types/-private/model-for-mixin.d.ts.map +1 -0
- package/unstable-preview-types/-private/model-methods.d.ts +37 -0
- package/unstable-preview-types/-private/model-methods.d.ts.map +1 -0
- package/unstable-preview-types/-private/model.d.ts +1305 -0
- package/unstable-preview-types/-private/model.d.ts.map +1 -0
- package/unstable-preview-types/-private/model.type-test.d.ts +4 -0
- package/unstable-preview-types/-private/model.type-test.d.ts.map +1 -0
- package/unstable-preview-types/-private/notify-changes.d.ts +8 -0
- package/unstable-preview-types/-private/notify-changes.d.ts.map +1 -0
- package/unstable-preview-types/-private/promise-belongs-to.d.ts +46 -0
- package/unstable-preview-types/-private/promise-belongs-to.d.ts.map +1 -0
- package/unstable-preview-types/-private/promise-many-array.d.ts +130 -0
- package/unstable-preview-types/-private/promise-many-array.d.ts.map +1 -0
- package/unstable-preview-types/-private/record-state.d.ts +90 -0
- package/unstable-preview-types/-private/record-state.d.ts.map +1 -0
- package/unstable-preview-types/-private/references/belongs-to.d.ts +503 -0
- package/unstable-preview-types/-private/references/belongs-to.d.ts.map +1 -0
- package/unstable-preview-types/-private/references/has-many.d.ts +515 -0
- package/unstable-preview-types/-private/references/has-many.d.ts.map +1 -0
- package/unstable-preview-types/-private/relationship-meta.d.ts +35 -0
- package/unstable-preview-types/-private/relationship-meta.d.ts.map +1 -0
- package/unstable-preview-types/-private/schema-provider.d.ts +64 -0
- package/unstable-preview-types/-private/schema-provider.d.ts.map +1 -0
- package/unstable-preview-types/-private/type-utils.d.ts +64 -0
- package/unstable-preview-types/-private/type-utils.d.ts.map +1 -0
- package/unstable-preview-types/-private/util.d.ts +8 -0
- package/unstable-preview-types/-private/util.d.ts.map +1 -0
- package/unstable-preview-types/-private.d.ts +13 -0
- package/unstable-preview-types/-private.d.ts.map +1 -0
- package/unstable-preview-types/hooks.d.ts +5 -0
- package/unstable-preview-types/hooks.d.ts.map +1 -0
- package/unstable-preview-types/index.d.ts +78 -0
- package/unstable-preview-types/index.d.ts.map +1 -0
- package/unstable-preview-types/migration-support.d.ts +56 -0
- package/unstable-preview-types/migration-support.d.ts.map +1 -0
- package/addon/-private.js +0 -95
- package/addon/-private.js.map +0 -1
- package/addon/has-many-d45aa09e.js.map +0 -1
- package/addon/index.js +0 -1
- package/addon-main.js +0 -93
- package/blueprints/model-test/mocha-files/__root__/__path__/__test__.js +0 -18
- package/blueprints/model-test/mocha-rfc-232-files/__root__/__path__/__test__.js +0 -15
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
declare module '@ember-data/model/-private/references/has-many' {
|
|
2
|
+
import type { CollectionEdge, Graph } from '@ember-data/graph/-private';
|
|
3
|
+
import type Store from '@ember-data/store';
|
|
4
|
+
import type { BaseFinderOptions } from '@ember-data/store/types';
|
|
5
|
+
import type { StableRecordIdentifier } from '@warp-drive/core-types';
|
|
6
|
+
import type { TypeFromInstanceOrString } from '@warp-drive/core-types/record';
|
|
7
|
+
import type { CollectionResourceDocument, CollectionResourceRelationship, ExistingResourceObject, LinkObject, Meta, PaginationLinks } from '@warp-drive/core-types/spec/json-api-raw';
|
|
8
|
+
import type { IsUnknown } from '@ember-data/model/-private/belongs-to';
|
|
9
|
+
import type { RelatedCollection as ManyArray } from '@ember-data/model/-private/many-array';
|
|
10
|
+
import type { MaybeHasManyFields } from '@ember-data/model/-private/type-utils';
|
|
11
|
+
/**
|
|
12
|
+
@module @ember-data/model
|
|
13
|
+
*/
|
|
14
|
+
interface ResourceIdentifier {
|
|
15
|
+
links?: {
|
|
16
|
+
related?: string | LinkObject;
|
|
17
|
+
};
|
|
18
|
+
meta?: Meta;
|
|
19
|
+
}
|
|
20
|
+
type ArrayItemType<T> = T extends (infer U)[] ? U : never;
|
|
21
|
+
/**
|
|
22
|
+
A `HasManyReference` is a low-level API that allows access
|
|
23
|
+
and manipulation of a hasMany relationship.
|
|
24
|
+
|
|
25
|
+
It is especially useful when you're dealing with `async` relationships
|
|
26
|
+
from `@ember-data/model` as it allows synchronous access to
|
|
27
|
+
the relationship data if loaded, as well as APIs for loading, reloading
|
|
28
|
+
the data or accessing available information without triggering a load.
|
|
29
|
+
|
|
30
|
+
It may also be useful when using `sync` relationships with `@ember-data/model`
|
|
31
|
+
that need to be loaded/reloaded with more precise timing than marking the
|
|
32
|
+
relationship as `async` and relying on autofetch would have allowed.
|
|
33
|
+
|
|
34
|
+
However,keep in mind that marking a relationship as `async: false` will introduce
|
|
35
|
+
bugs into your application if the data is not always guaranteed to be available
|
|
36
|
+
by the time the relationship is accessed. Ergo, it is recommended when using this
|
|
37
|
+
approach to utilize `links` for unloaded relationship state instead of identifiers.
|
|
38
|
+
|
|
39
|
+
Reference APIs are entangled with the relationship's underlying state,
|
|
40
|
+
thus any getters or cached properties that utilize these will properly
|
|
41
|
+
invalidate if the relationship state changes.
|
|
42
|
+
|
|
43
|
+
References are "stable", meaning that multiple calls to retrieve the reference
|
|
44
|
+
for a given relationship will always return the same HasManyReference.
|
|
45
|
+
|
|
46
|
+
@class HasManyReference
|
|
47
|
+
@public
|
|
48
|
+
*/
|
|
49
|
+
export default class HasManyReference<T = unknown, K extends string = IsUnknown<T> extends true ? string : MaybeHasManyFields<T>, Related = K extends keyof T ? ArrayItemType<Awaited<T[K]>> : unknown> {
|
|
50
|
+
graph: Graph;
|
|
51
|
+
store: Store;
|
|
52
|
+
hasManyRelationship: CollectionEdge;
|
|
53
|
+
/**
|
|
54
|
+
* The field name on the parent record for this has-many relationship.
|
|
55
|
+
*
|
|
56
|
+
* @property {String} key
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
key: K;
|
|
60
|
+
/**
|
|
61
|
+
* The type of resource this relationship will contain.
|
|
62
|
+
*
|
|
63
|
+
* @property {String} type
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
type: TypeFromInstanceOrString<Related>;
|
|
67
|
+
___token: object;
|
|
68
|
+
___identifier: StableRecordIdentifier<TypeFromInstanceOrString<T>>;
|
|
69
|
+
___relatedTokenMap: Map<StableRecordIdentifier, object>;
|
|
70
|
+
_ref: number;
|
|
71
|
+
constructor(store: Store, graph: Graph, parentIdentifier: StableRecordIdentifier<TypeFromInstanceOrString<T>>, hasManyRelationship: CollectionEdge, key: K);
|
|
72
|
+
/**
|
|
73
|
+
* This method should never be called by user code.
|
|
74
|
+
*
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
destroy(): void;
|
|
78
|
+
/**
|
|
79
|
+
* An array of identifiers for the records that this reference refers to.
|
|
80
|
+
*
|
|
81
|
+
* @property {StableRecordIdentifier[]} identifiers
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
get identifiers(): StableRecordIdentifier<TypeFromInstanceOrString<Related>>[];
|
|
85
|
+
_resource(): CollectionResourceRelationship;
|
|
86
|
+
/**
|
|
87
|
+
This returns a string that represents how the reference will be
|
|
88
|
+
looked up when it is loaded. If the relationship has a link it will
|
|
89
|
+
use the "link" otherwise it defaults to "id".
|
|
90
|
+
|
|
91
|
+
Example
|
|
92
|
+
|
|
93
|
+
```app/models/post.js
|
|
94
|
+
import Model, { hasMany } from '@ember-data/model';
|
|
95
|
+
|
|
96
|
+
export default class PostModel extends Model {
|
|
97
|
+
@hasMany('comment', { async: true, inverse: null }) comments;
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
```javascript
|
|
102
|
+
let post = store.push({
|
|
103
|
+
data: {
|
|
104
|
+
type: 'post',
|
|
105
|
+
id: 1,
|
|
106
|
+
relationships: {
|
|
107
|
+
comments: {
|
|
108
|
+
data: [{ type: 'comment', id: 1 }]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
let commentsRef = post.hasMany('comments');
|
|
115
|
+
|
|
116
|
+
// get the identifier of the reference
|
|
117
|
+
if (commentsRef.remoteType() === "ids") {
|
|
118
|
+
let ids = commentsRef.ids();
|
|
119
|
+
} else if (commentsRef.remoteType() === "link") {
|
|
120
|
+
let link = commentsRef.link();
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
@method remoteType
|
|
125
|
+
@public
|
|
126
|
+
@return {String} The name of the remote type. This should either be `link` or `ids`
|
|
127
|
+
*/
|
|
128
|
+
remoteType(): 'link' | 'ids';
|
|
129
|
+
/**
|
|
130
|
+
`ids()` returns an array of the record IDs in this relationship.
|
|
131
|
+
|
|
132
|
+
Example
|
|
133
|
+
|
|
134
|
+
```app/models/post.js
|
|
135
|
+
import Model, { hasMany } from '@ember-data/model';
|
|
136
|
+
|
|
137
|
+
export default class PostModel extends Model {
|
|
138
|
+
@hasMany('comment', { async: true, inverse: null }) comments;
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
```javascript
|
|
143
|
+
let post = store.push({
|
|
144
|
+
data: {
|
|
145
|
+
type: 'post',
|
|
146
|
+
id: 1,
|
|
147
|
+
relationships: {
|
|
148
|
+
comments: {
|
|
149
|
+
data: [{ type: 'comment', id: 1 }]
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
let commentsRef = post.hasMany('comments');
|
|
156
|
+
|
|
157
|
+
commentsRef.ids(); // ['1']
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
@method ids
|
|
161
|
+
@public
|
|
162
|
+
@return {Array} The ids in this has-many relationship
|
|
163
|
+
*/
|
|
164
|
+
ids(): Array<string | null>;
|
|
165
|
+
/**
|
|
166
|
+
The link Ember Data will use to fetch or reload this belongs-to
|
|
167
|
+
relationship. By default it uses only the "related" resource linkage.
|
|
168
|
+
|
|
169
|
+
Example
|
|
170
|
+
|
|
171
|
+
```javascript
|
|
172
|
+
// models/blog.js
|
|
173
|
+
import Model, { belongsTo } from '@ember-data/model';
|
|
174
|
+
export default Model.extend({
|
|
175
|
+
user: belongsTo('user', { async: true, inverse: null })
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
let blog = store.push({
|
|
179
|
+
data: {
|
|
180
|
+
type: 'blog',
|
|
181
|
+
id: 1,
|
|
182
|
+
relationships: {
|
|
183
|
+
user: {
|
|
184
|
+
links: {
|
|
185
|
+
related: '/articles/1/author'
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
let userRef = blog.belongsTo('user');
|
|
192
|
+
|
|
193
|
+
// get the identifier of the reference
|
|
194
|
+
if (userRef.remoteType() === "link") {
|
|
195
|
+
let link = userRef.link();
|
|
196
|
+
}
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
@method link
|
|
200
|
+
@public
|
|
201
|
+
@return {String} The link Ember Data will use to fetch or reload this belongs-to relationship.
|
|
202
|
+
*/
|
|
203
|
+
link(): string | null;
|
|
204
|
+
/**
|
|
205
|
+
* any links that have been received for this relationship
|
|
206
|
+
*
|
|
207
|
+
* @method links
|
|
208
|
+
* @public
|
|
209
|
+
* @return
|
|
210
|
+
*/
|
|
211
|
+
links(): PaginationLinks | null;
|
|
212
|
+
/**
|
|
213
|
+
The meta data for the has-many relationship.
|
|
214
|
+
|
|
215
|
+
Example
|
|
216
|
+
|
|
217
|
+
```javascript
|
|
218
|
+
// models/blog.js
|
|
219
|
+
import Model, { hasMany } from '@ember-data/model';
|
|
220
|
+
export default Model.extend({
|
|
221
|
+
users: hasMany('user', { async: true, inverse: null })
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
let blog = store.push({
|
|
225
|
+
data: {
|
|
226
|
+
type: 'blog',
|
|
227
|
+
id: 1,
|
|
228
|
+
relationships: {
|
|
229
|
+
users: {
|
|
230
|
+
links: {
|
|
231
|
+
related: {
|
|
232
|
+
href: '/articles/1/authors'
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
meta: {
|
|
236
|
+
lastUpdated: 1458014400000
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
let usersRef = blog.hasMany('user');
|
|
244
|
+
|
|
245
|
+
usersRef.meta() // { lastUpdated: 1458014400000 }
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
@method meta
|
|
249
|
+
@public
|
|
250
|
+
@return {Object|null} The meta information for the belongs-to relationship.
|
|
251
|
+
*/
|
|
252
|
+
meta(): Meta | null;
|
|
253
|
+
/**
|
|
254
|
+
`push` can be used to update the data in the relationship and EmberData
|
|
255
|
+
will treat the new data as the canonical value of this relationship on
|
|
256
|
+
the backend. An empty array will signify the canonical value should be
|
|
257
|
+
empty.
|
|
258
|
+
|
|
259
|
+
Example model
|
|
260
|
+
|
|
261
|
+
```app/models/post.js
|
|
262
|
+
import Model, { hasMany } from '@ember-data/model';
|
|
263
|
+
|
|
264
|
+
export default class PostModel extends Model {
|
|
265
|
+
@hasMany('comment', { async: true, inverse: null }) comments;
|
|
266
|
+
}
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
Setup some initial state, note we haven't loaded the comments yet:
|
|
270
|
+
|
|
271
|
+
```js
|
|
272
|
+
const post = store.push({
|
|
273
|
+
data: {
|
|
274
|
+
type: 'post',
|
|
275
|
+
id: '1',
|
|
276
|
+
relationships: {
|
|
277
|
+
comments: {
|
|
278
|
+
data: [{ type: 'comment', id: '1' }]
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
const commentsRef = post.hasMany('comments');
|
|
285
|
+
commentsRef.ids(); // ['1']
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
Update the state using `push`, note we can do this even without
|
|
289
|
+
having loaded these comments yet by providing resource identifiers.
|
|
290
|
+
|
|
291
|
+
Both full resources and resource identifiers are supported.
|
|
292
|
+
|
|
293
|
+
```js
|
|
294
|
+
await commentsRef.push({
|
|
295
|
+
data: [
|
|
296
|
+
{ type: 'comment', id: '2' },
|
|
297
|
+
{ type: 'comment', id: '3' },
|
|
298
|
+
]
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
commentsRef.ids(); // ['2', '3']
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
For convenience, you can also pass in an array of resources or resource identifiers
|
|
305
|
+
without wrapping them in the `data` property:
|
|
306
|
+
|
|
307
|
+
```js
|
|
308
|
+
await commentsRef.push([
|
|
309
|
+
{ type: 'comment', id: '4' },
|
|
310
|
+
{ type: 'comment', id: '5' },
|
|
311
|
+
]);
|
|
312
|
+
|
|
313
|
+
commentsRef.ids(); // ['4', '5']
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
When using the `data` property, you may also include other resource data via included,
|
|
317
|
+
as well as provide new links and meta to the relationship.
|
|
318
|
+
|
|
319
|
+
```js
|
|
320
|
+
await commentsRef.push({
|
|
321
|
+
links: {
|
|
322
|
+
related: '/posts/1/comments'
|
|
323
|
+
},
|
|
324
|
+
meta: {
|
|
325
|
+
total: 2
|
|
326
|
+
},
|
|
327
|
+
data: [
|
|
328
|
+
{ type: 'comment', id: '4' },
|
|
329
|
+
{ type: 'comment', id: '5' },
|
|
330
|
+
],
|
|
331
|
+
included: [
|
|
332
|
+
{ type: 'other-thing', id: '1', attributes: { foo: 'bar' },
|
|
333
|
+
]
|
|
334
|
+
});
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
By default, the store will attempt to fetch any unloaded records before resolving
|
|
338
|
+
the returned promise with the ManyArray.
|
|
339
|
+
|
|
340
|
+
Alternatively, pass `true` as the second argument to avoid fetching unloaded records
|
|
341
|
+
and instead the promise will resolve with void without attempting to fetch. This is
|
|
342
|
+
particularly useful if you want to update the state of the relationship without
|
|
343
|
+
forcing the load of all of the associated records.
|
|
344
|
+
|
|
345
|
+
@method push
|
|
346
|
+
@public
|
|
347
|
+
@param {Array|Object} doc a JSONAPI document object describing the new value of this relationship.
|
|
348
|
+
@param {Boolean} [skipFetch] if `true`, do not attempt to fetch unloaded records
|
|
349
|
+
@return {Promise<ManyArray | void>}
|
|
350
|
+
*/
|
|
351
|
+
push(maybeDoc: ExistingResourceObject[] | CollectionResourceDocument, skipFetch?: boolean): Promise<ManyArray<Related> | void>;
|
|
352
|
+
_isLoaded(): boolean | undefined;
|
|
353
|
+
/**
|
|
354
|
+
`value()` synchronously returns the current value of the has-many
|
|
355
|
+
relationship. Unlike `record.relationshipName`, calling
|
|
356
|
+
`value()` on a reference does not trigger a fetch if the async
|
|
357
|
+
relationship is not yet loaded. If the relationship is not loaded
|
|
358
|
+
it will always return `null`.
|
|
359
|
+
|
|
360
|
+
Example
|
|
361
|
+
|
|
362
|
+
```app/models/post.js
|
|
363
|
+
import Model, { hasMany } from '@ember-data/model';
|
|
364
|
+
|
|
365
|
+
export default class PostModel extends Model {
|
|
366
|
+
@hasMany('comment', { async: true, inverse: null }) comments;
|
|
367
|
+
}
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
```javascript
|
|
371
|
+
let post = store.push({
|
|
372
|
+
data: {
|
|
373
|
+
type: 'post',
|
|
374
|
+
id: 1,
|
|
375
|
+
relationships: {
|
|
376
|
+
comments: {
|
|
377
|
+
data: [{ type: 'comment', id: 1 }]
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
|
|
383
|
+
let commentsRef = post.hasMany('comments');
|
|
384
|
+
|
|
385
|
+
post.comments.then(function(comments) {
|
|
386
|
+
commentsRef.value() === comments
|
|
387
|
+
})
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
@method value
|
|
391
|
+
@public
|
|
392
|
+
@return {ManyArray}
|
|
393
|
+
*/
|
|
394
|
+
value(): ManyArray<Related> | null;
|
|
395
|
+
/**
|
|
396
|
+
Loads the relationship if it is not already loaded. If the
|
|
397
|
+
relationship is already loaded this method does not trigger a new
|
|
398
|
+
load. This causes a request to the specified
|
|
399
|
+
relationship link or reloads all items currently in the relationship.
|
|
400
|
+
|
|
401
|
+
Example
|
|
402
|
+
|
|
403
|
+
```app/models/post.js
|
|
404
|
+
import Model, { hasMany } from '@ember-data/model';
|
|
405
|
+
|
|
406
|
+
export default class PostModel extends Model {
|
|
407
|
+
@hasMany('comment', { async: true, inverse: null }) comments;
|
|
408
|
+
}
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
```javascript
|
|
412
|
+
let post = store.push({
|
|
413
|
+
data: {
|
|
414
|
+
type: 'post',
|
|
415
|
+
id: 1,
|
|
416
|
+
relationships: {
|
|
417
|
+
comments: {
|
|
418
|
+
data: [{ type: 'comment', id: 1 }]
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
|
|
424
|
+
let commentsRef = post.hasMany('comments');
|
|
425
|
+
|
|
426
|
+
commentsRef.load().then(function(comments) {
|
|
427
|
+
//...
|
|
428
|
+
});
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
You may also pass in an options object whose properties will be
|
|
432
|
+
fed forward. This enables you to pass `adapterOptions` into the
|
|
433
|
+
request given to the adapter via the reference.
|
|
434
|
+
|
|
435
|
+
Example
|
|
436
|
+
|
|
437
|
+
```javascript
|
|
438
|
+
commentsRef.load({ adapterOptions: { isPrivate: true } })
|
|
439
|
+
.then(function(comments) {
|
|
440
|
+
//...
|
|
441
|
+
});
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
```app/adapters/comment.js
|
|
445
|
+
export default ApplicationAdapter.extend({
|
|
446
|
+
findMany(store, type, id, snapshots) {
|
|
447
|
+
// In the adapter you will have access to adapterOptions.
|
|
448
|
+
let adapterOptions = snapshots[0].adapterOptions;
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
@method load
|
|
454
|
+
@public
|
|
455
|
+
@param {Object} options the options to pass in.
|
|
456
|
+
@return {Promise} a promise that resolves with the ManyArray in
|
|
457
|
+
this has-many relationship.
|
|
458
|
+
*/
|
|
459
|
+
load(options?: BaseFinderOptions): Promise<ManyArray<Related>>;
|
|
460
|
+
/**
|
|
461
|
+
Reloads this has-many relationship. This causes a request to the specified
|
|
462
|
+
relationship link or reloads all items currently in the relationship.
|
|
463
|
+
|
|
464
|
+
Example
|
|
465
|
+
|
|
466
|
+
```app/models/post.js
|
|
467
|
+
import Model, { hasMany } from '@ember-data/model';
|
|
468
|
+
|
|
469
|
+
export default class PostModel extends Model {
|
|
470
|
+
@hasMany('comment', { async: true, inverse: null }) comments;
|
|
471
|
+
}
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
```javascript
|
|
475
|
+
let post = store.push({
|
|
476
|
+
data: {
|
|
477
|
+
type: 'post',
|
|
478
|
+
id: 1,
|
|
479
|
+
relationships: {
|
|
480
|
+
comments: {
|
|
481
|
+
data: [{ type: 'comment', id: 1 }]
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
|
|
487
|
+
let commentsRef = post.hasMany('comments');
|
|
488
|
+
|
|
489
|
+
commentsRef.reload().then(function(comments) {
|
|
490
|
+
//...
|
|
491
|
+
});
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
You may also pass in an options object whose properties will be
|
|
495
|
+
fed forward. This enables you to pass `adapterOptions` into the
|
|
496
|
+
request given to the adapter via the reference. A full example
|
|
497
|
+
can be found in the `load` method.
|
|
498
|
+
|
|
499
|
+
Example
|
|
500
|
+
|
|
501
|
+
```javascript
|
|
502
|
+
commentsRef.reload({ adapterOptions: { isPrivate: true } })
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
@method reload
|
|
506
|
+
@public
|
|
507
|
+
@param {Object} options the options to pass in.
|
|
508
|
+
@return {Promise} a promise that resolves with the ManyArray in this has-many relationship.
|
|
509
|
+
*/
|
|
510
|
+
reload(options?: BaseFinderOptions): Promise<ManyArray<Related>>;
|
|
511
|
+
}
|
|
512
|
+
export function isMaybeResource(object: ExistingResourceObject | ResourceIdentifier): object is ExistingResourceObject;
|
|
513
|
+
export {};
|
|
514
|
+
}
|
|
515
|
+
//# sourceMappingURL=has-many.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"has-many.d.ts","sourceRoot":"","sources":["../../../src/-private/references/has-many.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAE3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAMjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC9B,sBAAsB,EACtB,UAAU,EACV,IAAI,EACJ,eAAe,EAChB,MAAM,0CAA0C,CAAC;AAElD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI/C,OAAO,KAAK,EAAE,iBAAiB,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EA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AiDG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;CAMjE;AAGD,wBAAgB,eAAe,CAAC,MAAM,EAAE,sBAAsB,GAAG,kBAAkB,GAAG,MAAM,IAAI,sBAAsB,CAGrH"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare module '@ember-data/model/-private/relationship-meta' {
|
|
2
|
+
import type Store from '@ember-data/store';
|
|
3
|
+
import type { LegacyRelationshipSchema } from '@warp-drive/core-types/schema/fields';
|
|
4
|
+
import type { Model } from '@ember-data/model/-private/model';
|
|
5
|
+
class RelationshipDefinition {
|
|
6
|
+
_type: string;
|
|
7
|
+
__inverseKey: string | null;
|
|
8
|
+
__hasCalculatedInverse: boolean;
|
|
9
|
+
parentModelName: string;
|
|
10
|
+
inverseIsAsync: string | null;
|
|
11
|
+
meta: LegacyRelationshipSchema;
|
|
12
|
+
constructor(meta: LegacyRelationshipSchema, parentModelName: string);
|
|
13
|
+
get kind(): 'belongsTo' | 'hasMany';
|
|
14
|
+
get type(): string;
|
|
15
|
+
get options(): {
|
|
16
|
+
async: boolean;
|
|
17
|
+
inverse: string | null;
|
|
18
|
+
as?: string;
|
|
19
|
+
polymorphic?: boolean;
|
|
20
|
+
resetOnRemoteUpdate?: false;
|
|
21
|
+
} | {
|
|
22
|
+
async: boolean;
|
|
23
|
+
inverse: string | null;
|
|
24
|
+
as?: string;
|
|
25
|
+
polymorphic?: boolean;
|
|
26
|
+
resetOnRemoteUpdate?: false;
|
|
27
|
+
};
|
|
28
|
+
get name(): string;
|
|
29
|
+
_inverseKey(store: Store, modelClass: typeof Model): string | null;
|
|
30
|
+
_calculateInverse(store: Store, modelClass: typeof Model): void;
|
|
31
|
+
}
|
|
32
|
+
export type { RelationshipDefinition };
|
|
33
|
+
export function relationshipFromMeta(meta: LegacyRelationshipSchema, parentModelName: string): LegacyRelationshipSchema;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=relationship-meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relationship-meta.d.ts","sourceRoot":"","sources":["../../src/-private/relationship-meta.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAE3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAErF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAiBrC,cAAM,sBAAsB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,sBAAsB,EAAE,OAAO,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,wBAAwB,CAAC;gBAE3B,IAAI,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM;IAQnE,IAAI,IAAI,IAAI,WAAW,GAAG,SAAS,CAElC;IACD,IAAI,IAAI,IAAI,MAAM,CAMjB;IACD,IAAI,OAAO;;;;;;;;;;;;MAEV;IACD,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,KAAK,GAAG,MAAM,GAAG,IAAI;IAOlE,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,KAAK,GAAG,IAAI;CAsBhE;AACD,YAAY,EAAE,sBAAsB,EAAE,CAAC;AAEvC,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,wBAAwB,EAC9B,eAAe,EAAE,MAAM,GACtB,wBAAwB,CAE1B"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare module '@ember-data/model/-private/schema-provider' {
|
|
2
|
+
import type Store from '@ember-data/store';
|
|
3
|
+
import type { SchemaService } from '@ember-data/store/types';
|
|
4
|
+
import type { RecordIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
5
|
+
import type { ObjectValue } from '@warp-drive/core-types/json/raw';
|
|
6
|
+
import type { Derivation, HashFn, Transformation } from '@warp-drive/core-types/schema/concepts';
|
|
7
|
+
import type { ArrayField, DerivedField, GenericField, HashField, LegacyAttributeField, LegacyFieldSchema, LegacyRelationshipSchema, ObjectField, ResourceSchema } from '@warp-drive/core-types/schema/fields';
|
|
8
|
+
import type { ModelFactory, ModelStore } from '@ember-data/model/-private/model';
|
|
9
|
+
type AttributesSchema = ReturnType<Exclude<SchemaService['attributesDefinitionFor'], undefined>>;
|
|
10
|
+
type RelationshipsSchema = ReturnType<Exclude<SchemaService['relationshipsDefinitionFor'], undefined>>;
|
|
11
|
+
type InternalSchema = {
|
|
12
|
+
schema: ResourceSchema;
|
|
13
|
+
fields: Map<string, LegacyAttributeField | LegacyRelationshipSchema>;
|
|
14
|
+
attributes: Record<string, LegacyAttributeField>;
|
|
15
|
+
relationships: Record<string, LegacyRelationshipSchema>;
|
|
16
|
+
};
|
|
17
|
+
export interface ModelSchemaProvider {
|
|
18
|
+
attributesDefinitionFor(resource: RecordIdentifier | {
|
|
19
|
+
type: string;
|
|
20
|
+
}): AttributesSchema;
|
|
21
|
+
relationshipsDefinitionFor(resource: RecordIdentifier | {
|
|
22
|
+
type: string;
|
|
23
|
+
}): RelationshipsSchema;
|
|
24
|
+
doesTypeExist(type: string): boolean;
|
|
25
|
+
}
|
|
26
|
+
export class ModelSchemaProvider implements SchemaService {
|
|
27
|
+
store: ModelStore;
|
|
28
|
+
_schemas: Map<string, InternalSchema>;
|
|
29
|
+
_typeMisses: Set<string>;
|
|
30
|
+
constructor(store: ModelStore);
|
|
31
|
+
hasTrait(type: string): boolean;
|
|
32
|
+
resourceHasTrait(resource: StableRecordIdentifier | {
|
|
33
|
+
type: string;
|
|
34
|
+
}, trait: string): boolean;
|
|
35
|
+
transformation(field: GenericField | ObjectField | ArrayField | {
|
|
36
|
+
type: string;
|
|
37
|
+
}): Transformation;
|
|
38
|
+
derivation(field: DerivedField | {
|
|
39
|
+
type: string;
|
|
40
|
+
}): Derivation;
|
|
41
|
+
hashFn(field: HashField | {
|
|
42
|
+
type: string;
|
|
43
|
+
}): HashFn;
|
|
44
|
+
resource(resource: StableRecordIdentifier | {
|
|
45
|
+
type: string;
|
|
46
|
+
}): ResourceSchema;
|
|
47
|
+
registerResources(schemas: ResourceSchema[]): void;
|
|
48
|
+
registerResource(schema: ResourceSchema): void;
|
|
49
|
+
registerTransformation(transform: Transformation): void;
|
|
50
|
+
registerDerivation<R, T, FM extends ObjectValue | null>(derivation: Derivation<R, T, FM>): void;
|
|
51
|
+
registerHashFn(hashFn: HashFn): void;
|
|
52
|
+
_loadModelSchema(type: string): InternalSchema;
|
|
53
|
+
fields(resource: RecordIdentifier | {
|
|
54
|
+
type: string;
|
|
55
|
+
}): Map<string, LegacyFieldSchema>;
|
|
56
|
+
hasResource(resource: {
|
|
57
|
+
type: string;
|
|
58
|
+
}): boolean;
|
|
59
|
+
}
|
|
60
|
+
export function buildSchema(store: Store): SchemaService;
|
|
61
|
+
export function getModelFactory(store: ModelStore, type: string): ModelFactory | null;
|
|
62
|
+
export {};
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=schema-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-provider.d.ts","sourceRoot":"","sources":["../../src/-private/schema-provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAO7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAClG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,KAA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