@ember-data-types/store 5.6.0-alpha.3 → 5.6.0-alpha.4
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/package.json +1 -1
- package/unstable-preview-types/-private/cache-handler/handler.d.ts +0 -4
- package/unstable-preview-types/-private/cache-handler/handler.d.ts.map +1 -1
- package/unstable-preview-types/-private/cache-handler/types.d.ts +1 -5
- package/unstable-preview-types/-private/cache-handler/types.d.ts.map +1 -1
- package/unstable-preview-types/-private/caches/identifier-cache.d.ts +0 -9
- package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +1 -1
- package/unstable-preview-types/-private/caches/instance-cache.d.ts +2 -3
- package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +1 -1
- package/unstable-preview-types/-private/document.d.ts +0 -6
- package/unstable-preview-types/-private/document.d.ts.map +1 -1
- package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +0 -13
- package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +1 -1
- package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +0 -3
- package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +1 -1
- package/unstable-preview-types/-private/managers/cache-manager.d.ts +2 -35
- package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +1 -1
- package/unstable-preview-types/-private/managers/notification-manager.d.ts +0 -6
- package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +1 -1
- package/unstable-preview-types/-private/managers/record-array-manager.d.ts +0 -1
- package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +1 -1
- package/unstable-preview-types/-private/network/request-cache.d.ts +0 -3
- package/unstable-preview-types/-private/network/request-cache.d.ts.map +1 -1
- package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts +0 -32
- package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts.map +1 -1
- package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts +0 -1
- package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts.map +1 -1
- package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts +0 -20
- package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts.map +1 -1
- package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +0 -2
- package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +1 -1
- package/unstable-preview-types/-private/record-arrays/many-array.d.ts +12 -13
- package/unstable-preview-types/-private/record-arrays/many-array.d.ts.map +1 -1
- package/unstable-preview-types/-private/store-service.d.ts +40 -51
- package/unstable-preview-types/-private/store-service.d.ts.map +1 -1
- package/unstable-preview-types/-private/utils/coerce-id.d.ts +0 -3
- package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +1 -1
- package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts.map +1 -1
- package/unstable-preview-types/-private.d.ts +0 -3
- package/unstable-preview-types/-private.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts +0 -8
- package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/ds-model.d.ts +0 -1
- package/unstable-preview-types/-types/q/ds-model.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/identifier.d.ts +0 -18
- package/unstable-preview-types/-types/q/identifier.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/record-data-json-api.d.ts +0 -3
- package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/record-instance.d.ts +0 -5
- package/unstable-preview-types/-types/q/record-instance.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/schema-service.d.ts +1 -21
- package/unstable-preview-types/-types/q/schema-service.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/store.d.ts +0 -1
- package/unstable-preview-types/-types/q/store.d.ts.map +1 -1
- package/unstable-preview-types/configure.d.ts +1 -5
- package/unstable-preview-types/configure.d.ts.map +1 -1
- package/unstable-preview-types/index.d.ts +29 -31
- package/unstable-preview-types/index.d.ts.map +1 -1
- package/unstable-preview-types/-types/overview.d.ts +0 -21
- package/unstable-preview-types/-types/overview.d.ts.map +0 -1
|
@@ -47,7 +47,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
47
47
|
* TODO: These are limitations we want to (and can) address. If you
|
|
48
48
|
* have need of lifting these limitations, please open an issue.
|
|
49
49
|
*
|
|
50
|
-
* @typedoc
|
|
51
50
|
*/
|
|
52
51
|
export type CreateRecordProperties<T = MaybeHasId & Record<string, unknown>> = T extends TypedRecordInstance ? Partial<FilteredKeys<T>> : T extends MaybeHasId ? MaybeHasId & Partial<FilteredKeys<T>> : MaybeHasId & Record<string, unknown>;
|
|
53
52
|
const BaseClass: {
|
|
@@ -114,7 +113,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
114
113
|
* be sourced from directly registered schemas, then will fallback
|
|
115
114
|
* to sourcing a schema from available models if no schema is found.
|
|
116
115
|
*
|
|
117
|
-
* @method createSchemaService (hook)
|
|
118
116
|
* @return {SchemaService}
|
|
119
117
|
* @public
|
|
120
118
|
*/
|
|
@@ -128,7 +126,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
128
126
|
* The SchemaDefinitionService can be used to query for
|
|
129
127
|
* information about the schema of a resource.
|
|
130
128
|
*
|
|
131
|
-
* @method getSchemaDefinitionService
|
|
132
129
|
* @deprecated
|
|
133
130
|
* @public
|
|
134
131
|
*/
|
|
@@ -182,7 +179,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
182
179
|
* }
|
|
183
180
|
* ```
|
|
184
181
|
*
|
|
185
|
-
* @method registerSchemaDefinitionService
|
|
186
182
|
* @param {SchemaService} schema
|
|
187
183
|
* @deprecated
|
|
188
184
|
* @public
|
|
@@ -237,7 +233,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
237
233
|
* }
|
|
238
234
|
* ```
|
|
239
235
|
*
|
|
240
|
-
* @method registerSchema
|
|
241
236
|
* @param {SchemaService} schema
|
|
242
237
|
* @deprecated
|
|
243
238
|
* @public
|
|
@@ -245,6 +240,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
245
240
|
registerSchema(schema: SchemaService): void;
|
|
246
241
|
}
|
|
247
242
|
export class Store extends BaseClass {
|
|
243
|
+
/** @internal */
|
|
248
244
|
recordArrayManager: RecordArrayManager;
|
|
249
245
|
/**
|
|
250
246
|
* Provides access to the NotificationManager associated
|
|
@@ -270,6 +266,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
270
266
|
* @public
|
|
271
267
|
*/
|
|
272
268
|
get schema(): ReturnType<this['createSchemaService']>;
|
|
269
|
+
/** @internal */
|
|
273
270
|
_schema: SchemaService;
|
|
274
271
|
/**
|
|
275
272
|
* Provides access to the IdentifierCache instance
|
|
@@ -340,14 +337,19 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
340
337
|
* @type {CachePolicy|undefined}
|
|
341
338
|
*/
|
|
342
339
|
lifetimes?: CachePolicy;
|
|
340
|
+
/** @internal */
|
|
343
341
|
_graph?: Graph;
|
|
342
|
+
/** @internal */
|
|
344
343
|
_requestCache: RequestStateService;
|
|
344
|
+
/** @internal */
|
|
345
345
|
_instanceCache: InstanceCache;
|
|
346
|
+
/** @internal */
|
|
346
347
|
_cbs: {
|
|
347
348
|
coalesce?: () => void;
|
|
348
349
|
sync?: () => void;
|
|
349
350
|
notify?: () => void;
|
|
350
351
|
} | null;
|
|
352
|
+
/** @internal */
|
|
351
353
|
_forceShim: boolean;
|
|
352
354
|
/**
|
|
353
355
|
* Async flush buffers notifications until flushed
|
|
@@ -360,18 +362,23 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
360
362
|
* @internal
|
|
361
363
|
*/
|
|
362
364
|
_enableAsyncFlush: boolean | null;
|
|
365
|
+
/** @internal */
|
|
363
366
|
DISABLE_WAITER?: boolean;
|
|
367
|
+
/** @internal */
|
|
364
368
|
_isDestroying: boolean;
|
|
369
|
+
/** @internal */
|
|
365
370
|
_isDestroyed: boolean;
|
|
371
|
+
/** @internal */
|
|
366
372
|
get isDestroying(): boolean;
|
|
367
373
|
set isDestroying(value: boolean);
|
|
374
|
+
/** @internal */
|
|
368
375
|
get isDestroyed(): boolean;
|
|
369
376
|
set isDestroyed(value: boolean);
|
|
370
377
|
/**
|
|
371
|
-
@method init
|
|
372
378
|
@private
|
|
373
379
|
*/
|
|
374
380
|
constructor(createArgs?: unknown);
|
|
381
|
+
/** @internal */
|
|
375
382
|
_run(cb: () => void): void;
|
|
376
383
|
/**
|
|
377
384
|
* Executes the callback, ensurng that any work that calls
|
|
@@ -383,6 +390,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
383
390
|
* @internal
|
|
384
391
|
*/
|
|
385
392
|
_join(cb: () => void): void;
|
|
393
|
+
/** @internal */
|
|
386
394
|
_schedule(name: 'coalesce' | 'sync' | 'notify', cb: () => void): void;
|
|
387
395
|
/**
|
|
388
396
|
* Retrieve the RequestStateService instance
|
|
@@ -391,11 +399,11 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
391
399
|
* This can be used to query the status of requests
|
|
392
400
|
* that have been initiated for a given identifier.
|
|
393
401
|
*
|
|
394
|
-
* @method getRequestStateService
|
|
395
402
|
* @return {RequestStateService}
|
|
396
403
|
* @public
|
|
397
404
|
*/
|
|
398
405
|
getRequestStateService(): RequestStateService;
|
|
406
|
+
/** @internal */
|
|
399
407
|
_getAllPending(): (Promise<unknown[]> & {
|
|
400
408
|
length: number;
|
|
401
409
|
}) | void;
|
|
@@ -447,7 +455,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
447
455
|
* is that `store.request` will attempt to hydrate the response content into
|
|
448
456
|
* a response Document containing RecordInstances.
|
|
449
457
|
*
|
|
450
|
-
* @method request
|
|
451
458
|
* @param {StoreRequestInput} requestConfig
|
|
452
459
|
* @return {Future}
|
|
453
460
|
* @public
|
|
@@ -462,7 +469,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
462
469
|
* mechanism of presenting cache data to the ui for access
|
|
463
470
|
* mutation, and interaction.
|
|
464
471
|
*
|
|
465
|
-
* @method instantiateRecord (hook)
|
|
466
472
|
* @param identifier
|
|
467
473
|
* @param createRecordArgs
|
|
468
474
|
* @param recordDataFor deprecated use this.cache
|
|
@@ -476,7 +482,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
476
482
|
* be used to teardown any custom record instances instantiated
|
|
477
483
|
* with `instantiateRecord`.
|
|
478
484
|
*
|
|
479
|
-
* @method teardownRecord (hook)
|
|
480
485
|
* @public
|
|
481
486
|
* @param record
|
|
482
487
|
*/
|
|
@@ -497,7 +502,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
497
502
|
[`relationshipNames`](/ember-data/release/classes/Model?anchor=relationshipNames)
|
|
498
503
|
for example.
|
|
499
504
|
|
|
500
|
-
@method modelFor
|
|
501
505
|
@public
|
|
502
506
|
@deprecated
|
|
503
507
|
@param {String} type
|
|
@@ -527,7 +531,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
527
531
|
});
|
|
528
532
|
```
|
|
529
533
|
|
|
530
|
-
@method createRecord
|
|
531
534
|
@public
|
|
532
535
|
@param {String} type the name of the resource
|
|
533
536
|
@param {Object} inputProperties a hash of properties to set on the
|
|
@@ -549,7 +552,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
549
552
|
store.deleteRecord(post);
|
|
550
553
|
```
|
|
551
554
|
|
|
552
|
-
@method deleteRecord
|
|
553
555
|
@public
|
|
554
556
|
@param {unknown} record
|
|
555
557
|
*/
|
|
@@ -565,7 +567,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
565
567
|
store.unloadRecord(post);
|
|
566
568
|
```
|
|
567
569
|
|
|
568
|
-
@method unloadRecord
|
|
569
570
|
@public
|
|
570
571
|
@param {Model} record
|
|
571
572
|
*/
|
|
@@ -581,7 +582,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
581
582
|
|
|
582
583
|
**Example 1**
|
|
583
584
|
|
|
584
|
-
```app/routes/post.js
|
|
585
|
+
```js [app/routes/post.js]
|
|
585
586
|
export default class PostRoute extends Route {
|
|
586
587
|
model({ post_id }) {
|
|
587
588
|
return this.store.findRecord('post', post_id);
|
|
@@ -595,7 +596,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
595
596
|
of `type` (modelName) and `id` as separate arguments. You may recognize this combo as
|
|
596
597
|
the typical pairing from [JSON:API](https://jsonapi.org/format/#document-resource-object-identification)
|
|
597
598
|
|
|
598
|
-
```app/routes/post.js
|
|
599
|
+
```js [app/routes/post.js]
|
|
599
600
|
export default class PostRoute extends Route {
|
|
600
601
|
model({ post_id: id }) {
|
|
601
602
|
return this.store.findRecord({ type: 'post', id });
|
|
@@ -608,7 +609,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
608
609
|
If you have previously received an lid via an Identifier for this record, and the record
|
|
609
610
|
has already been assigned an id, you can find the record again using just the lid.
|
|
610
611
|
|
|
611
|
-
```app/routes/post.js
|
|
612
|
+
```js [app/routes/post.js]
|
|
612
613
|
store.findRecord({ lid });
|
|
613
614
|
```
|
|
614
615
|
|
|
@@ -626,7 +627,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
626
627
|
for the comment also looks like `/posts/1/comments/2` if you want to fetch the comment
|
|
627
628
|
without also fetching the post you can pass in the post to the `findRecord` call:
|
|
628
629
|
|
|
629
|
-
```app/routes/post-comments.js
|
|
630
|
+
```js [app/routes/post-comments.js]
|
|
630
631
|
export default class PostRoute extends Route {
|
|
631
632
|
model({ post_id, comment_id: id }) {
|
|
632
633
|
return this.store.findRecord({ type: 'comment', id, { preload: { post: post_id }} });
|
|
@@ -637,7 +638,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
637
638
|
In your adapter you can then access this id without triggering a network request via the
|
|
638
639
|
snapshot:
|
|
639
640
|
|
|
640
|
-
```app/adapters/application.js
|
|
641
|
+
```js [app/adapters/application.js]
|
|
641
642
|
export default class Adapter {
|
|
642
643
|
|
|
643
644
|
findRecord(store, schema, id, snapshot) {
|
|
@@ -660,7 +661,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
660
661
|
This could also be achieved by supplying the post id to the adapter via the adapterOptions
|
|
661
662
|
property on the options hash.
|
|
662
663
|
|
|
663
|
-
```app/routes/post-comments.js
|
|
664
|
+
```js [app/routes/post-comments.js]
|
|
664
665
|
export default class PostRoute extends Route {
|
|
665
666
|
model({ post_id, comment_id: id }) {
|
|
666
667
|
return this.store.findRecord({ type: 'comment', id, { adapterOptions: { post: post_id }} });
|
|
@@ -668,7 +669,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
668
669
|
}
|
|
669
670
|
```
|
|
670
671
|
|
|
671
|
-
```app/adapters/application.js
|
|
672
|
+
```js [app/adapters/application.js]
|
|
672
673
|
export default class Adapter {
|
|
673
674
|
findRecord(store, schema, id, snapshot) {
|
|
674
675
|
let type = schema.modelName;
|
|
@@ -778,7 +779,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
778
779
|
boolean value for `backgroundReload` in the options object for
|
|
779
780
|
`findRecord`.
|
|
780
781
|
|
|
781
|
-
```app/routes/post/edit.js
|
|
782
|
+
```js [app/routes/post/edit.js]
|
|
782
783
|
export default class PostEditRoute extends Route {
|
|
783
784
|
model(params) {
|
|
784
785
|
return this.store.findRecord('post', params.post_id, { backgroundReload: false });
|
|
@@ -789,7 +790,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
789
790
|
If you pass an object on the `adapterOptions` property of the options
|
|
790
791
|
argument it will be passed to your adapter via the snapshot
|
|
791
792
|
|
|
792
|
-
```app/routes/post/edit.js
|
|
793
|
+
```js [app/routes/post/edit.js]
|
|
793
794
|
export default class PostEditRoute extends Route {
|
|
794
795
|
model(params) {
|
|
795
796
|
return this.store.findRecord('post', params.post_id, {
|
|
@@ -799,7 +800,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
799
800
|
}
|
|
800
801
|
```
|
|
801
802
|
|
|
802
|
-
```app/adapters/post.js
|
|
803
|
+
```js [app/adapters/post.js]
|
|
803
804
|
import MyCustomAdapter from './custom-adapter';
|
|
804
805
|
|
|
805
806
|
export default class PostAdapter extends MyCustomAdapter {
|
|
@@ -828,7 +829,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
828
829
|
model, when we retrieve a specific post we can have the server also return that post's
|
|
829
830
|
comments in the same request:
|
|
830
831
|
|
|
831
|
-
```app/routes/post.js
|
|
832
|
+
```js [app/routes/post.js]
|
|
832
833
|
export default class PostRoute extends Route {
|
|
833
834
|
model(params) {
|
|
834
835
|
return this.store.findRecord('post', params.post_id, { include: ['comments'] });
|
|
@@ -836,7 +837,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
836
837
|
}
|
|
837
838
|
```
|
|
838
839
|
|
|
839
|
-
```app/adapters/application.js
|
|
840
|
+
```js [app/adapters/application.js]
|
|
840
841
|
export default class Adapter {
|
|
841
842
|
findRecord(store, schema, id, snapshot) {
|
|
842
843
|
let type = schema.modelName;
|
|
@@ -863,7 +864,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
863
864
|
using a dot-separated sequence of relationship names. So to request both the post's
|
|
864
865
|
comments and the authors of those comments the request would look like this:
|
|
865
866
|
|
|
866
|
-
```app/routes/post.js
|
|
867
|
+
```js [app/routes/post.js]
|
|
867
868
|
export default class PostRoute extends Route {
|
|
868
869
|
model(params) {
|
|
869
870
|
return this.store.findRecord('post', params.post_id, { include: ['comments','comments.author'] });
|
|
@@ -878,7 +879,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
878
879
|
|
|
879
880
|
1. Implement `buildQuery` in your adapter.
|
|
880
881
|
|
|
881
|
-
```app/adapters/application.js
|
|
882
|
+
```js [app/adapters/application.js]
|
|
882
883
|
buildQuery(snapshot) {
|
|
883
884
|
let query = super.buildQuery(...arguments);
|
|
884
885
|
|
|
@@ -896,7 +897,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
896
897
|
|
|
897
898
|
Given a `post` model with attributes body, title, publishDate and meta, you can retrieve a filtered list of attributes.
|
|
898
899
|
|
|
899
|
-
```app/routes/post.js
|
|
900
|
+
```js [app/routes/post.js]
|
|
900
901
|
export default class extends Route {
|
|
901
902
|
model(params) {
|
|
902
903
|
return this.store.findRecord('post', params.post_id, { adapterOptions: { fields: { post: 'body,title' } });
|
|
@@ -907,7 +908,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
907
908
|
Moreover, you can filter attributes on related models as well. If a `post` has a `belongsTo` relationship to a user,
|
|
908
909
|
just include the relationship key and attributes.
|
|
909
910
|
|
|
910
|
-
```app/routes/post.js
|
|
911
|
+
```js [app/routes/post.js]
|
|
911
912
|
export default class extends Route {
|
|
912
913
|
model(params) {
|
|
913
914
|
return this.store.findRecord('post', params.post_id, { adapterOptions: { fields: { post: 'body,title', user: 'name,email' } });
|
|
@@ -916,7 +917,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
916
917
|
```
|
|
917
918
|
|
|
918
919
|
@since 1.13.0
|
|
919
|
-
@method findRecord
|
|
920
920
|
@public
|
|
921
921
|
@param {String|object} type - either a string representing the name of the resource or a ResourceIdentifier object containing both the type (a string) and the id (a string) for the record or an lid (a string) of an existing record
|
|
922
922
|
@param {(String|Integer|Object)} id - optional object with options for the request only if the first param is a ResourceIdentifier, else the string id of the record to be retrieved
|
|
@@ -958,7 +958,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
958
958
|
});
|
|
959
959
|
```
|
|
960
960
|
|
|
961
|
-
@method getReference
|
|
962
961
|
@public
|
|
963
962
|
@param {String|object} resource - modelName (string) or Identifier (object)
|
|
964
963
|
@param {String|Integer} id
|
|
@@ -1008,7 +1007,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1008
1007
|
|
|
1009
1008
|
|
|
1010
1009
|
@since 1.13.0
|
|
1011
|
-
@method peekRecord
|
|
1012
1010
|
@public
|
|
1013
1011
|
@param {String|object} modelName - either a string representing the modelName or a ResourceIdentifier object containing both the type (a string) and the id (a string) for the record or an lid (a string) of an existing record
|
|
1014
1012
|
@param {String|Integer} id - optional only if the first param is a ResourceIdentifier, else the string id of the record to be retrieved.
|
|
@@ -1062,7 +1060,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1062
1060
|
once the server returns.
|
|
1063
1061
|
|
|
1064
1062
|
@since 1.13.0
|
|
1065
|
-
@method query
|
|
1066
1063
|
@public
|
|
1067
1064
|
@param {String} type the name of the resource
|
|
1068
1065
|
@param {Object} query a query to be used by the adapter
|
|
@@ -1106,7 +1103,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1106
1103
|
|
|
1107
1104
|
The request is made through the adapters' `queryRecord`:
|
|
1108
1105
|
|
|
1109
|
-
```app/adapters/user.js
|
|
1106
|
+
```js [app/adapters/user.js]
|
|
1110
1107
|
import Adapter from '@ember-data/adapter';
|
|
1111
1108
|
import $ from 'jquery';
|
|
1112
1109
|
|
|
@@ -1162,7 +1159,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1162
1159
|
```
|
|
1163
1160
|
|
|
1164
1161
|
@since 1.13.0
|
|
1165
|
-
@method queryRecord
|
|
1166
1162
|
@public
|
|
1167
1163
|
@param {String} type
|
|
1168
1164
|
@param {Object} query an opaque query to be used by the adapter
|
|
@@ -1177,7 +1173,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1177
1173
|
this type present in the store, even if the adapter only returns a subset
|
|
1178
1174
|
of them.
|
|
1179
1175
|
|
|
1180
|
-
```app/routes/authors.js
|
|
1176
|
+
```js [app/routes/authors.js]
|
|
1181
1177
|
export default class AuthorsRoute extends Route {
|
|
1182
1178
|
model(params) {
|
|
1183
1179
|
return this.store.findAll('author');
|
|
@@ -1225,7 +1221,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1225
1221
|
which the promise resolves, is updated automatically so it contains all the
|
|
1226
1222
|
records in the store:
|
|
1227
1223
|
|
|
1228
|
-
```app/adapters/application.js
|
|
1224
|
+
```js [app/adapters/application.js]
|
|
1229
1225
|
import Adapter from '@ember-data/adapter';
|
|
1230
1226
|
|
|
1231
1227
|
export default class ApplicationAdapter extends Adapter {
|
|
@@ -1269,7 +1265,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1269
1265
|
boolean value for `backgroundReload` in the options object for
|
|
1270
1266
|
`findAll`.
|
|
1271
1267
|
|
|
1272
|
-
```app/routes/post/edit.js
|
|
1268
|
+
```js [app/routes/post/edit.js]
|
|
1273
1269
|
export default class PostEditRoute extends Route {
|
|
1274
1270
|
model() {
|
|
1275
1271
|
return this.store.findAll('post', { backgroundReload: false });
|
|
@@ -1280,7 +1276,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1280
1276
|
If you pass an object on the `adapterOptions` property of the options
|
|
1281
1277
|
argument it will be passed to you adapter via the `snapshotRecordArray`
|
|
1282
1278
|
|
|
1283
|
-
```app/routes/posts.js
|
|
1279
|
+
```js [app/routes/posts.js]
|
|
1284
1280
|
export default class PostsRoute extends Route {
|
|
1285
1281
|
model(params) {
|
|
1286
1282
|
return this.store.findAll('post', {
|
|
@@ -1290,7 +1286,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1290
1286
|
}
|
|
1291
1287
|
```
|
|
1292
1288
|
|
|
1293
|
-
```app/adapters/post.js
|
|
1289
|
+
```js [app/adapters/post.js]
|
|
1294
1290
|
import MyCustomAdapter from './custom-adapter';
|
|
1295
1291
|
|
|
1296
1292
|
export default class UserAdapter extends MyCustomAdapter {
|
|
@@ -1320,7 +1316,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1320
1316
|
model, when we retrieve all of the post records we can have the server also return
|
|
1321
1317
|
all of the posts' comments in the same request:
|
|
1322
1318
|
|
|
1323
|
-
```app/routes/posts.js
|
|
1319
|
+
```js [app/routes/posts.js]
|
|
1324
1320
|
export default class PostsRoute extends Route {
|
|
1325
1321
|
model() {
|
|
1326
1322
|
return this.store.findAll('post', { include: ['comments'] });
|
|
@@ -1332,7 +1328,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1332
1328
|
using a dot-separated sequence of relationship names. So to request both the posts'
|
|
1333
1329
|
comments and the authors of those comments the request would look like this:
|
|
1334
1330
|
|
|
1335
|
-
```app/routes/posts.js
|
|
1331
|
+
```js [app/routes/posts.js]
|
|
1336
1332
|
export default class PostsRoute extends Route {
|
|
1337
1333
|
model() {
|
|
1338
1334
|
return this.store.findAll('post', { include: ['comments','comments.author'] });
|
|
@@ -1343,7 +1339,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1343
1339
|
See [query](../methods/query?anchor=query) to only get a subset of records from the server.
|
|
1344
1340
|
|
|
1345
1341
|
@since 1.13.0
|
|
1346
|
-
@method findAll
|
|
1347
1342
|
@public
|
|
1348
1343
|
@param {String} type the name of the resource
|
|
1349
1344
|
@param {Object} options
|
|
@@ -1371,7 +1366,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1371
1366
|
```
|
|
1372
1367
|
|
|
1373
1368
|
@since 1.13.0
|
|
1374
|
-
@method peekAll
|
|
1375
1369
|
@public
|
|
1376
1370
|
@param {String} type the name of the resource
|
|
1377
1371
|
@return {RecordArray}
|
|
@@ -1389,7 +1383,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1389
1383
|
store.unloadAll('post');
|
|
1390
1384
|
```
|
|
1391
1385
|
|
|
1392
|
-
@method unloadAll
|
|
1393
1386
|
@param {String} type the name of the resource
|
|
1394
1387
|
@public
|
|
1395
1388
|
*/
|
|
@@ -1459,7 +1452,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1459
1452
|
|
|
1460
1453
|
For this model:
|
|
1461
1454
|
|
|
1462
|
-
```app/models/person.js
|
|
1455
|
+
```js [app/models/person.js]
|
|
1463
1456
|
import Model, { attr, hasMany } from '@ember-data/model';
|
|
1464
1457
|
|
|
1465
1458
|
export default class PersonRoute extends Route {
|
|
@@ -1540,7 +1533,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1540
1533
|
This method can be used both to push in brand new
|
|
1541
1534
|
records, as well as to update existing records.
|
|
1542
1535
|
|
|
1543
|
-
@method push
|
|
1544
1536
|
@public
|
|
1545
1537
|
@param {Object} data
|
|
1546
1538
|
@return the record(s) that was created or
|
|
@@ -1555,7 +1547,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1555
1547
|
Push some data in the form of a json-api document into the store,
|
|
1556
1548
|
without creating materialized records.
|
|
1557
1549
|
|
|
1558
|
-
@method _push
|
|
1559
1550
|
@private
|
|
1560
1551
|
@param {Object} jsonApiDoc
|
|
1561
1552
|
@return {StableRecordIdentifier|Array<StableRecordIdentifier>|null} identifiers for the primary records that had data loaded
|
|
@@ -1566,7 +1557,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1566
1557
|
*
|
|
1567
1558
|
* Returns a promise resolving with the same record when the save is complete.
|
|
1568
1559
|
*
|
|
1569
|
-
* @method saveRecord
|
|
1570
1560
|
* @public
|
|
1571
1561
|
* @param {unknown} record
|
|
1572
1562
|
* @param options
|
|
@@ -1580,7 +1570,6 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1580
1570
|
* This hook should not be called directly by consuming applications or libraries.
|
|
1581
1571
|
* Use `Store.cache` to access the Cache instance.
|
|
1582
1572
|
*
|
|
1583
|
-
* @method createCache (hook)
|
|
1584
1573
|
* @public
|
|
1585
1574
|
* @param storeWrapper
|
|
1586
1575
|
* @return {Cache}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-service.d.ts","sourceRoot":"","sources":["../../src/-private/store-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"store-service.d.ts","sourceRoot":"","sources":["../../src/-private/store-service.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAYlD,OAAO,KA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C,CAAC,CAAC,CAAC,GAAG,CAAC;IAC7D,IAAI,CAAC,IAAI,EAAE,sBAAsB,GAAG,oBAAoB;IACxD,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,0BAA0B,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;IACnE,IAAI,CAAC,IAAI,EAAE,0BAA0B,GAAG,oBAAoB,EAAE;IAkB9D;;;;;;;MAOE;IACF,KAAK,CACH,UAAU,EAAE,eAAe,EAC3B,UAAU,CAAC,EAAE,OAAO,GACnB,8BAA8B,GAAG,8BAA8B,EAAE,GAAG,IAAI;IAkB3E;;;;;;;;;OASG;IACH,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IA6C3E;;;;;;;;;;OAUG;IAEH;;;;;;;OAOG;IACH,IAAI,KAAK,IAAI,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAU3C;IAED,OAAO,IAAI,IAAI;IAkBf,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAG7C"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare module '@ember-data/store/-private/utils/coerce-id' {
|
|
2
|
-
/**
|
|
3
|
-
@module @ember-data/store
|
|
4
|
-
*/
|
|
5
2
|
type Coercable = string | number | boolean | null | undefined | symbol;
|
|
6
3
|
export function coerceId(id: unknown): string | null;
|
|
7
4
|
export function ensureStringId(id: Coercable): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coerce-id.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/coerce-id.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coerce-id.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/coerce-id.ts"],"names":[],"mappings":"AAWA,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC;AAEvE,wBAAgB,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAkCnD;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,CAWpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uuid-polyfill.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/uuid-polyfill.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"uuid-polyfill.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/uuid-polyfill.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,eAAe,SAiEtC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare module '@ember-data/store/-private' {
|
|
2
|
-
/**
|
|
3
|
-
@module @ember-data/store
|
|
4
|
-
*/
|
|
5
2
|
export { Store, storeFor } from '@ember-data/store/-private/store-service';
|
|
6
3
|
export { recordIdentifierFor } from '@ember-data/store/-private/caches/instance-cache';
|
|
7
4
|
export { CacheHandler, type StoreRequestContext } from '@ember-data/store/-private/cache-handler/handler';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../src/-private.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../src/-private.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,oBAAo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mB,EACxB,KAAK,wBAAwB,IAAI,YAAY,GAC9C,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,cAAc,EACd,YAAY,EACZ,yBAAyB,GAC1B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,YAAY,EACZ,aAAa,EACb,OAAO,EACP,KAAK,eAAe,EACpB,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,6CAA6C,CAAC"}
|
|
@@ -3,9 +3,6 @@ declare module '@ember-data/store/-types/q/cache-capabilities-manager' {
|
|
|
3
3
|
import type { IdentifierCache } from '@ember-data/store/-private/caches/identifier-cache';
|
|
4
4
|
import type { NotificationType } from '@ember-data/store/-private/managers/notification-manager';
|
|
5
5
|
import type { SchemaService } from '@ember-data/store/-types/q/schema-service';
|
|
6
|
-
/**
|
|
7
|
-
@module @ember-data/store
|
|
8
|
-
*/
|
|
9
6
|
/**
|
|
10
7
|
* CacheCapabilitiesManager provides encapsulated API access to the minimal
|
|
11
8
|
* subset of the Store's functionality that Cache implementations
|
|
@@ -40,7 +37,6 @@ declare module '@ember-data/store/-types/q/cache-capabilities-manager' {
|
|
|
40
37
|
* The SchemaService can be used to query for
|
|
41
38
|
* information about the schema of a resource.
|
|
42
39
|
*
|
|
43
|
-
* @method getSchemaDefinitionService
|
|
44
40
|
* @deprecated
|
|
45
41
|
* @public
|
|
46
42
|
*/
|
|
@@ -60,7 +56,6 @@ declare module '@ember-data/store/-types/q/cache-capabilities-manager' {
|
|
|
60
56
|
* Update the `id` for the record corresponding to the identifier
|
|
61
57
|
* This operation can only be done for records whose `id` is `null`.
|
|
62
58
|
*
|
|
63
|
-
* @method setRecordId
|
|
64
59
|
* @param {StableRecordIdentifier} identifier;
|
|
65
60
|
* @param {String} id;
|
|
66
61
|
* @public
|
|
@@ -72,7 +67,6 @@ declare module '@ember-data/store/-types/q/cache-capabilities-manager' {
|
|
|
72
67
|
* data exist for the identified resource, no known relationships still
|
|
73
68
|
* point to it either.
|
|
74
69
|
*
|
|
75
|
-
* @method disconnectRecord
|
|
76
70
|
* @param {StableRecordIdentifier} identifier
|
|
77
71
|
* @public
|
|
78
72
|
*/
|
|
@@ -81,7 +75,6 @@ declare module '@ember-data/store/-types/q/cache-capabilities-manager' {
|
|
|
81
75
|
* Use this method to determine if the Store has an instantiated record associated
|
|
82
76
|
* with an identifier.
|
|
83
77
|
*
|
|
84
|
-
* @method hasRecord
|
|
85
78
|
* @param identifier
|
|
86
79
|
* @return {Boolean}
|
|
87
80
|
* @public
|
|
@@ -95,7 +88,6 @@ declare module '@ember-data/store/-types/q/cache-capabilities-manager' {
|
|
|
95
88
|
*
|
|
96
89
|
* No other namespaces currently expect the `key` argument.
|
|
97
90
|
*
|
|
98
|
-
* @method notifyChange
|
|
99
91
|
* @param {StableRecordIdentifier} identifier
|
|
100
92
|
* @param {'attributes' | 'relationships' | 'identity' | 'errors' | 'meta' | 'state'} namespace
|
|
101
93
|
* @param {string|undefined} key
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-capabilities-manager.d.ts","sourceRoot":"","sources":["../../../src/-types/q/cache-capabilities-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE1G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD
|
|
1
|
+
{"version":3,"file":"cache-capabilities-manager.d.ts","sourceRoot":"","sources":["../../../src/-types/q/cache-capabilities-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EA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AAI,CAAC;CACT,CAAC"}
|
|
@@ -10,7 +10,6 @@ declare module '@ember-data/store/-types/q/ds-model' {
|
|
|
10
10
|
* for @ember-data/model or when wrapping schema for legacy
|
|
11
11
|
* Adapters/Serializers.
|
|
12
12
|
*
|
|
13
|
-
* @typedoc
|
|
14
13
|
*/
|
|
15
14
|
export interface ModelSchema<T = unknown> {
|
|
16
15
|
modelName: T extends TypedRecordInstance ? TypeFromInstance<T> : string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-model.d.ts","sourceRoot":"","sources":["../../../src/-types/q/ds-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE1G,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,SAAS,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC;AAExF
|
|
1
|
+
{"version":3,"file":"ds-model.d.ts","sourceRoot":"","sources":["../../../src/-types/q/ds-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE1G,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,SAAS,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC;AAExF;;;;;;;;GAQG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,OAAO;IACtC,SAAS,EAAE,CAAC,SAAS,mBAAmB,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;IACxE,MAAM,EAAE,GAAG,CAAC,WAAW,CAAC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