@ember-data-types/store 5.4.0-alpha.64 → 5.4.0-alpha.71

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 (58) hide show
  1. package/package.json +1 -1
  2. package/unstable-preview-types/-private/cache-handler.d.ts +7 -4
  3. package/unstable-preview-types/-private/cache-handler.d.ts.map +1 -1
  4. package/unstable-preview-types/-private/caches/cache-utils.d.ts +3 -3
  5. package/unstable-preview-types/-private/caches/cache-utils.d.ts.map +1 -1
  6. package/unstable-preview-types/-private/caches/identifier-cache.d.ts +1 -2
  7. package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +1 -1
  8. package/unstable-preview-types/-private/caches/instance-cache.d.ts +3 -5
  9. package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +1 -1
  10. package/unstable-preview-types/-private/document.d.ts +7 -7
  11. package/unstable-preview-types/-private/document.d.ts.map +1 -1
  12. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +2 -2
  13. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +1 -1
  14. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +6 -6
  15. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts.map +1 -1
  16. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +5 -3
  17. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +1 -1
  18. package/unstable-preview-types/-private/managers/cache-manager.d.ts +2 -3
  19. package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +1 -1
  20. package/unstable-preview-types/-private/managers/notification-manager.d.ts +2 -4
  21. package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +1 -1
  22. package/unstable-preview-types/-private/managers/record-array-manager.d.ts +5 -5
  23. package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +1 -1
  24. package/unstable-preview-types/-private/network/request-cache.d.ts +4 -4
  25. package/unstable-preview-types/-private/network/request-cache.d.ts.map +1 -1
  26. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +22 -17
  27. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +1 -1
  28. package/unstable-preview-types/-private/store-service.d.ts +158 -196
  29. package/unstable-preview-types/-private/store-service.d.ts.map +1 -1
  30. package/unstable-preview-types/-private/utils/coerce-id.d.ts +2 -2
  31. package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +1 -1
  32. package/unstable-preview-types/-private/utils/construct-resource.d.ts +6 -7
  33. package/unstable-preview-types/-private/utils/construct-resource.d.ts.map +1 -1
  34. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts +1 -1
  35. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts.map +1 -1
  36. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts +1 -1
  37. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts.map +1 -1
  38. package/unstable-preview-types/-private.d.ts +12 -8
  39. package/unstable-preview-types/-private.d.ts.map +1 -1
  40. package/unstable-preview-types/-types/q/{cache-store-wrapper.d.ts → cache-capabilities-manager.d.ts} +8 -6
  41. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts.map +1 -0
  42. package/unstable-preview-types/-types/q/ds-model.d.ts +15 -5
  43. package/unstable-preview-types/-types/q/ds-model.d.ts.map +1 -1
  44. package/unstable-preview-types/-types/q/identifier.d.ts +0 -2
  45. package/unstable-preview-types/-types/q/identifier.d.ts.map +1 -1
  46. package/unstable-preview-types/-types/q/record-data-json-api.d.ts +1 -1
  47. package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +1 -1
  48. package/unstable-preview-types/-types/q/schema-service.d.ts +173 -29
  49. package/unstable-preview-types/-types/q/schema-service.d.ts.map +1 -1
  50. package/unstable-preview-types/index.d.ts +26 -27
  51. package/unstable-preview-types/index.d.ts.map +1 -1
  52. package/unstable-preview-types/types.d.ts +7 -0
  53. package/unstable-preview-types/types.d.ts.map +1 -0
  54. package/unstable-preview-types/-private/utils/identifier-debug-consts.d.ts +0 -7
  55. package/unstable-preview-types/-private/utils/identifier-debug-consts.d.ts.map +0 -1
  56. package/unstable-preview-types/-types/q/cache-store-wrapper.d.ts.map +0 -1
  57. package/unstable-preview-types/-types/q/cache.d.ts +0 -47
  58. package/unstable-preview-types/-types/q/cache.d.ts.map +0 -1
@@ -1,34 +1,34 @@
1
1
  declare module '@ember-data/store/-private/store-service' {
2
- /// <reference types="ember-source/types" />
3
- import EmberObject from '@ember/object';
4
2
  import type RequestManager from '@ember-data/request';
5
- import type { Future } from '@ember-data/request/-private/types';
3
+ import type { Future } from '@ember-data/request';
4
+ import type { Cache } from '@warp-drive/core-types/cache';
6
5
  import type { Graph } from '@warp-drive/core-types/graph';
7
6
  import type { StableDocumentIdentifier, StableExistingRecordIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
8
7
  import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
9
- import type { CollectionResourceDocument, EmptyResourceDocument, JsonApiDocument, ResourceIdentifierObject, SingleResourceDocument } from '@warp-drive/core-types/spec/raw';
8
+ import type { CollectionResourceDocument, EmptyResourceDocument, JsonApiDocument, ResourceIdentifierObject, SingleResourceDocument } from '@warp-drive/core-types/spec/json-api-raw';
10
9
  import type { ResourceType } from '@warp-drive/core-types/symbols';
11
- import type { Cache, CacheV1 } from '@ember-data/store/-types/q/cache';
12
- import type { CacheCapabilitiesManager } from '@ember-data/store/-types/q/cache-store-wrapper';
10
+ import type { CacheCapabilitiesManager } from '@ember-data/store/-types/q/cache-capabilities-manager';
13
11
  import type { ModelSchema } from '@ember-data/store/-types/q/ds-model';
14
12
  import type { OpaqueRecordInstance } from '@ember-data/store/-types/q/record-instance';
15
13
  import type { SchemaService } from '@ember-data/store/-types/q/schema-service';
16
14
  import type { FindAllOptions, FindRecordOptions, LegacyResourceQuery, QueryOptions } from '@ember-data/store/-types/q/store';
17
- import type { LifetimesService, StoreRequestInput } from '@ember-data/store/-private/cache-handler';
15
+ import type { CachePolicy, StoreRequestInput } from '@ember-data/store/-private/cache-handler';
18
16
  import { IdentifierCache } from '@ember-data/store/-private/caches/identifier-cache';
19
17
  import { InstanceCache, storeFor } from '@ember-data/store/-private/caches/instance-cache';
20
18
  import type { Document } from '@ember-data/store/-private/document';
21
19
  import type RecordReference from '@ember-data/store/-private/legacy-model-support/record-reference';
22
20
  import NotificationManager from '@ember-data/store/-private/managers/notification-manager';
23
- import RecordArrayManager from '@ember-data/store/-private/managers/record-array-manager';
24
- import RequestStateService from '@ember-data/store/-private/network/request-cache';
25
- import type { Collection } from '@ember-data/store/-private/record-arrays/identifier-array';
26
- import type IdentifierArray from '@ember-data/store/-private/record-arrays/identifier-array';
21
+ import { RecordArrayManager } from '@ember-data/store/-private/managers/record-array-manager';
22
+ import { RequestStateService } from '@ember-data/store/-private/network/request-cache';
23
+ import type { Collection, IdentifierArray } from '@ember-data/store/-private/record-arrays/identifier-array';
27
24
  export { storeFor };
25
+ type EmberObjectKey = '_debugContainerKey' | '_super' | 'addObserver' | 'cacheFor' | 'concatenatedProperties' | 'decrementProperty' | 'destroy' | 'get' | 'getProperties' | 'incrementProperty' | 'init' | 'isDestroyed' | 'isDestroying' | 'mergedProperties' | 'notifyPropertyChange' | 'removeObserver' | 'reopen' | 'set' | 'setProperties' | 'toggleProperty' | 'toString' | 'willDestroy';
26
+ type DSModelKeys = '___(unique) Symbol(Store)' | '___private_notifications' | '___recordState' | '_createSnapshot' | 'adapterError' | 'attr' | 'belongsTo' | 'changedAttributes' | 'currentState' | 'deleteRecord' | 'destroyRecord' | 'dirtyType' | 'eachAttribute' | 'eachRelationship' | 'errors' | 'hasDirtyAttributes' | 'hasMany' | 'inverseFor' | 'isDeleted' | 'isEmpty' | 'isError' | 'isLoaded' | 'isLoading' | 'isNew' | 'isReloading' | 'isSaving' | 'isValid' | 'relationshipFor' | 'reload' | 'rollbackAttributes' | 'save' | 'serialize' | 'store' | 'unloadRecord';
27
+ type DownlevelArrays<T> = T extends Array<infer U> ? U[] : T;
28
28
  type AwaitedKeys<T> = {
29
- [K in keyof T]: Awaited<T[K]>;
29
+ [K in keyof T & string]: DownlevelArrays<Awaited<T[K]>>;
30
30
  };
31
- type FilteredKeys<T> = AwaitedKeys<Omit<T, typeof ResourceType | keyof EmberObject | 'constructor'>>;
31
+ type FilteredKeys<T> = AwaitedKeys<Omit<T, typeof ResourceType | EmberObjectKey | DSModelKeys | 'constructor'>>;
32
32
  type MaybeHasId = {
33
33
  id?: string | null;
34
34
  };
@@ -49,35 +49,143 @@ declare module '@ember-data/store/-private/store-service' {
49
49
  *
50
50
  * @typedoc
51
51
  */
52
- export type CreateRecordProperties<T = MaybeHasId & Record<string, unknown>> = T extends TypedRecordInstance ? FilteredKeys<Partial<T>> : T extends MaybeHasId ? MaybeHasId & FilteredKeys<Partial<T>> : MaybeHasId & Record<string, unknown>;
53
- /**
54
- * A Store coordinates interaction between your application, a [Cache](https://api.emberjs.com/ember-data/release/classes/%3CInterface%3E%20Cache),
55
- * and sources of data (such as your API or a local persistence layer)
56
- * accessed via a [RequestManager](https://github.com/emberjs/data/tree/main/packages/request).
57
- *
58
- * ```app/services/store.js
59
- * import Store from '@ember-data/store';
60
- *
61
- * export default class extends Store {}
62
- * ```
63
- *
64
- * Most Ember applications will only have a single `Store` configured as a Service
65
- * in this manner. However, setting up multiple stores is possible, including using
66
- * each as a unique service.
67
- *
68
-
69
- @class Store
70
- @public
71
- */
72
- interface Store {
73
- createRecordDataFor?(identifier: StableRecordIdentifier, wrapper: CacheCapabilitiesManager): Cache | CacheV1;
74
- createCache(storeWrapper: CacheCapabilitiesManager): Cache;
75
- instantiateRecord(identifier: StableRecordIdentifier, createRecordArgs: {
52
+ 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
+ const BaseClass: {
54
+ new (args?: unknown): {};
55
+ };
56
+ export interface Store {
57
+ createCache(capabilities: CacheCapabilitiesManager): Cache;
58
+ instantiateRecord<T>(identifier: StableRecordIdentifier, createRecordArgs: {
76
59
  [key: string]: unknown;
77
60
  }): OpaqueRecordInstance;
78
61
  teardownRecord(record: OpaqueRecordInstance): void;
62
+ createSchemaService(): SchemaService;
63
+ /**
64
+ * DEPRECATED - Use the property `store.schema` instead.
65
+ *
66
+ * Provides access to the SchemaDefinitionService instance
67
+ * for this Store instance.
68
+ *
69
+ * The SchemaDefinitionService can be used to query for
70
+ * information about the schema of a resource.
71
+ *
72
+ * @method getSchemaDefinitionService
73
+ * @deprecated
74
+ * @public
75
+ */
76
+ getSchemaDefinitionService(): SchemaService;
77
+ /**
78
+ * DEPRECATED - Use `createSchemaService` instead.
79
+ *
80
+ * Allows an app to register a custom SchemaService
81
+ * for use when information about a resource's schema needs
82
+ * to be queried.
83
+ *
84
+ * This method can only be called more than once, but only one schema
85
+ * definition service may exist. Therefore if you wish to chain services
86
+ * you must lookup the existing service and close over it with the new
87
+ * service by accessing `store.schema` prior to registration.
88
+ *
89
+ * For Example:
90
+ *
91
+ * ```ts
92
+ * import Store from '@ember-data/store';
93
+ *
94
+ * class SchemaDelegator {
95
+ * constructor(schema) {
96
+ * this._schema = schema;
97
+ * }
98
+ *
99
+ * hasResource(resource: { type: string }): boolean {
100
+ * if (AbstractSchemas.has(resource.type)) {
101
+ * return true;
102
+ * }
103
+ * return this._schema.hasResource(resource);
104
+ * }
105
+ *
106
+ * attributesDefinitionFor(identifier: RecordIdentifier | { type: string }): AttributesSchema {
107
+ * return this._schema.attributesDefinitionFor(identifier);
108
+ * }
109
+ *
110
+ * relationshipsDefinitionFor(identifier: RecordIdentifier | { type: string }): RelationshipsSchema {
111
+ * const schema = AbstractSchemas.get(identifier.type);
112
+ * return schema || this._schema.relationshipsDefinitionFor(identifier);
113
+ * }
114
+ * }
115
+ *
116
+ * export default class extends Store {
117
+ * constructor(...args) {
118
+ * super(...args);
119
+ *
120
+ * const schema = this.createSchemaService();
121
+ * this.registerSchemaDefinitionService(new SchemaDelegator(schema));
122
+ * }
123
+ * }
124
+ * ```
125
+ *
126
+ * @method registerSchemaDefinitionService
127
+ * @param {SchemaService} schema
128
+ * @deprecated
129
+ * @public
130
+ */
131
+ registerSchemaDefinitionService(schema: SchemaService): void;
132
+ /**
133
+ * DEPRECATED - Use `createSchemaService` instead.
134
+ *
135
+ * Allows an app to register a custom SchemaService
136
+ * for use when information about a resource's schema needs
137
+ * to be queried.
138
+ *
139
+ * This method can only be called more than once, but only one schema
140
+ * definition service may exist. Therefore if you wish to chain services
141
+ * you must lookup the existing service and close over it with the new
142
+ * service by accessing `store.schema` prior to registration.
143
+ *
144
+ * For Example:
145
+ *
146
+ * ```ts
147
+ * import Store from '@ember-data/store';
148
+ *
149
+ * class SchemaDelegator {
150
+ * constructor(schema) {
151
+ * this._schema = schema;
152
+ * }
153
+ *
154
+ * hasResource(resource: { type: string }): boolean {
155
+ * if (AbstractSchemas.has(resource.type)) {
156
+ * return true;
157
+ * }
158
+ * return this._schema.hasResource(resource);
159
+ * }
160
+ *
161
+ * attributesDefinitionFor(identifier: RecordIdentifier | { type: string }): AttributesSchema {
162
+ * return this._schema.attributesDefinitionFor(identifier);
163
+ * }
164
+ *
165
+ * relationshipsDefinitionFor(identifier: RecordIdentifier | { type: string }): RelationshipsSchema {
166
+ * const schema = AbstractSchemas.get(identifier.type);
167
+ * return schema || this._schema.relationshipsDefinitionFor(identifier);
168
+ * }
169
+ * }
170
+ *
171
+ * export default class extends Store {
172
+ * constructor(...args) {
173
+ * super(...args);
174
+ *
175
+ * const schema = this.schema;
176
+ * this.registerSchema(new SchemaDelegator(schema));
177
+ * }
178
+ * }
179
+ * ```
180
+ *
181
+ * @method registerSchema
182
+ * @param {SchemaService} schema
183
+ * @deprecated
184
+ * @public
185
+ */
186
+ registerSchema(schema: SchemaService): void;
79
187
  }
80
- class Store extends EmberObject {
188
+ export class Store extends BaseClass {
81
189
  recordArrayManager: RecordArrayManager;
82
190
  /**
83
191
  * Provides access to the NotificationManager associated
@@ -100,7 +208,7 @@ declare module '@ember-data/store/-private/store-service' {
100
208
  * @property {SchemaService} schema
101
209
  * @public
102
210
  */
103
- get schema(): SchemaService;
211
+ get schema(): ReturnType<this['createSchemaService']>;
104
212
  _schema: SchemaService;
105
213
  /**
106
214
  * Provides access to the IdentifierCache instance
@@ -125,7 +233,7 @@ declare module '@ember-data/store/-private/store-service' {
125
233
  * ```ts
126
234
  * import Store, { CacheHandler } from '@ember-data/store';
127
235
  * import RequestManager from '@ember-data/request';
128
- * import Fetch from '@ember/data/request/fetch';
236
+ * import Fetch from '@ember-data/request/fetch';
129
237
  *
130
238
  * class extends Store {
131
239
  * constructor() {
@@ -142,7 +250,7 @@ declare module '@ember-data/store/-private/store-service' {
142
250
  */
143
251
  requestManager: RequestManager;
144
252
  /**
145
- * A Property which an App may set to provide a Lifetimes Service
253
+ * A Property which an App may set to provide a CachePolicy
146
254
  * to control when a cached request becomes stale.
147
255
  *
148
256
  * Note, when defined, these methods will only be invoked if a
@@ -168,9 +276,9 @@ declare module '@ember-data/store/-private/store-service' {
168
276
  * ```
169
277
  *
170
278
  * @public
171
- * @property {LivetimesService|undefined} lifetimes
279
+ * @property {CachePolicy|undefined} lifetimes
172
280
  */
173
- lifetimes?: LifetimesService;
281
+ lifetimes?: CachePolicy;
174
282
  _graph?: Graph;
175
283
  _requestCache: RequestStateService;
176
284
  _instanceCache: InstanceCache;
@@ -242,7 +350,7 @@ declare module '@ember-data/store/-private/store-service' {
242
350
  * When a cache-key is determined, the request may fulfill
243
351
  * from cache provided the cache is not stale.
244
352
  *
245
- * Cache staleness is determined by the configured LifetimesService
353
+ * Cache staleness is determined by the configured CachePolicy
246
354
  * with priority given to the `cacheOptions.reload` and
247
355
  * `cacheOptions.backgroundReload` on the request if present.
248
356
  *
@@ -293,124 +401,6 @@ declare module '@ember-data/store/-private/store-service' {
293
401
  * @public
294
402
  * @param record
295
403
  */
296
- /**
297
- * Provides access to the SchemaDefinitionService instance
298
- * for this Store instance.
299
- *
300
- * The SchemaDefinitionService can be used to query for
301
- * information about the schema of a resource.
302
- *
303
- * @method getSchemaDefinitionService
304
- * @public
305
- */
306
- getSchemaDefinitionService(): SchemaService;
307
- /**
308
- * DEPRECATED - Use `registerSchema` instead.
309
- *
310
- * Allows an app to register a custom SchemaService
311
- * for use when information about a resource's schema needs
312
- * to be queried.
313
- *
314
- * This method can only be called more than once, but only one schema
315
- * definition service may exist. Therefore if you wish to chain services
316
- * you must lookup the existing service and close over it with the new
317
- * service by accessing `store.schema` prior to registration.
318
- *
319
- * For Example:
320
- *
321
- * ```ts
322
- * import Store from '@ember-data/store';
323
- *
324
- * class SchemaDelegator {
325
- * constructor(schema) {
326
- * this._schema = schema;
327
- * }
328
- *
329
- * doesTypeExist(type: string): boolean {
330
- * if (AbstractSchemas.has(type)) {
331
- * return true;
332
- * }
333
- * return this._schema.doesTypeExist(type);
334
- * }
335
- *
336
- * attributesDefinitionFor(identifier: RecordIdentifier | { type: string }): AttributesSchema {
337
- * return this._schema.attributesDefinitionFor(identifier);
338
- * }
339
- *
340
- * relationshipsDefinitionFor(identifier: RecordIdentifier | { type: string }): RelationshipsSchema {
341
- * const schema = AbstractSchemas.get(identifier.type);
342
- * return schema || this._schema.relationshipsDefinitionFor(identifier);
343
- * }
344
- * }
345
- *
346
- * export default class extends Store {
347
- * constructor(...args) {
348
- * super(...args);
349
- *
350
- * const schema = this.schema;
351
- * this.registerSchemaDefinitionService(new SchemaDelegator(schema));
352
- * }
353
- * }
354
- * ```
355
- *
356
- * @method registerSchemaDefinitionService
357
- * @param {SchemaService} schema
358
- * @deprecated
359
- * @public
360
- */
361
- registerSchemaDefinitionService(schema: SchemaService): void;
362
- /**
363
- * Allows an app to register a custom SchemaService
364
- * for use when information about a resource's schema needs
365
- * to be queried.
366
- *
367
- * This method can only be called more than once, but only one schema
368
- * definition service may exist. Therefore if you wish to chain services
369
- * you must lookup the existing service and close over it with the new
370
- * service by accessing `store.schema` prior to registration.
371
- *
372
- * For Example:
373
- *
374
- * ```ts
375
- * import Store from '@ember-data/store';
376
- *
377
- * class SchemaDelegator {
378
- * constructor(schema) {
379
- * this._schema = schema;
380
- * }
381
- *
382
- * doesTypeExist(type: string): boolean {
383
- * if (AbstractSchemas.has(type)) {
384
- * return true;
385
- * }
386
- * return this._schema.doesTypeExist(type);
387
- * }
388
- *
389
- * attributesDefinitionFor(identifier: RecordIdentifier | { type: string }): AttributesSchema {
390
- * return this._schema.attributesDefinitionFor(identifier);
391
- * }
392
- *
393
- * relationshipsDefinitionFor(identifier: RecordIdentifier | { type: string }): RelationshipsSchema {
394
- * const schema = AbstractSchemas.get(identifier.type);
395
- * return schema || this._schema.relationshipsDefinitionFor(identifier);
396
- * }
397
- * }
398
- *
399
- * export default class extends Store {
400
- * constructor(...args) {
401
- * super(...args);
402
- *
403
- * const schema = this.schema;
404
- * this.registerSchema(new SchemaDelegator(schema));
405
- * }
406
- * }
407
- * ```
408
- *
409
- * @method registerSchema
410
- * @param {SchemaService} schema
411
- * @public
412
- */
413
- registerSchema(schema: SchemaService): void;
414
404
  /**
415
405
  Returns the schema for a particular resource type (modelName).
416
406
 
@@ -430,6 +420,7 @@ declare module '@ember-data/store/-private/store-service' {
430
420
 
431
421
  @method modelFor
432
422
  @public
423
+ @deprecated
433
424
  @param {string} type
434
425
  @return {ModelSchema}
435
426
  */
@@ -513,8 +504,6 @@ declare module '@ember-data/store/-private/store-service' {
513
504
  **Example 1**
514
505
 
515
506
  ```app/routes/post.js
516
- import Route from '@ember/routing/route';
517
-
518
507
  export default class PostRoute extends Route {
519
508
  model({ post_id }) {
520
509
  return this.store.findRecord('post', post_id);
@@ -529,8 +518,6 @@ declare module '@ember-data/store/-private/store-service' {
529
518
  the typical pairing from [JSON:API](https://jsonapi.org/format/#document-resource-object-identification)
530
519
 
531
520
  ```app/routes/post.js
532
- import Route from '@ember/routing/route';
533
-
534
521
  export default class PostRoute extends Route {
535
522
  model({ post_id: id }) {
536
523
  return this.store.findRecord({ type: 'post', id });
@@ -562,8 +549,6 @@ declare module '@ember-data/store/-private/store-service' {
562
549
  without also fetching the post you can pass in the post to the `findRecord` call:
563
550
 
564
551
  ```app/routes/post-comments.js
565
- import Route from '@ember/routing/route';
566
-
567
552
  export default class PostRoute extends Route {
568
553
  model({ post_id, comment_id: id }) {
569
554
  return this.store.findRecord({ type: 'comment', id, { preload: { post: post_id }} });
@@ -598,8 +583,6 @@ declare module '@ember-data/store/-private/store-service' {
598
583
  property on the options hash.
599
584
 
600
585
  ```app/routes/post-comments.js
601
- import Route from '@ember/routing/route';
602
-
603
586
  export default class PostRoute extends Route {
604
587
  model({ post_id, comment_id: id }) {
605
588
  return this.store.findRecord({ type: 'comment', id, { adapterOptions: { post: post_id }} });
@@ -718,8 +701,6 @@ declare module '@ember-data/store/-private/store-service' {
718
701
  `findRecord`.
719
702
 
720
703
  ```app/routes/post/edit.js
721
- import Route from '@ember/routing/route';
722
-
723
704
  export default class PostEditRoute extends Route {
724
705
  model(params) {
725
706
  return this.store.findRecord('post', params.post_id, { backgroundReload: false });
@@ -731,8 +712,6 @@ declare module '@ember-data/store/-private/store-service' {
731
712
  argument it will be passed to your adapter via the snapshot
732
713
 
733
714
  ```app/routes/post/edit.js
734
- import Route from '@ember/routing/route';
735
-
736
715
  export default class PostEditRoute extends Route {
737
716
  model(params) {
738
717
  return this.store.findRecord('post', params.post_id, {
@@ -772,8 +751,6 @@ declare module '@ember-data/store/-private/store-service' {
772
751
  comments in the same request:
773
752
 
774
753
  ```app/routes/post.js
775
- import Route from '@ember/routing/route';
776
-
777
754
  export default class PostRoute extends Route {
778
755
  model(params) {
779
756
  return this.store.findRecord('post', params.post_id, { include: 'comments' });
@@ -809,8 +786,6 @@ declare module '@ember-data/store/-private/store-service' {
809
786
  comments and the authors of those comments the request would look like this:
810
787
 
811
788
  ```app/routes/post.js
812
- import Route from '@ember/routing/route';
813
-
814
789
  export default class PostRoute extends Route {
815
790
  model(params) {
816
791
  return this.store.findRecord('post', params.post_id, { include: 'comments,comments.author' });
@@ -844,24 +819,22 @@ declare module '@ember-data/store/-private/store-service' {
844
819
  Given a `post` model with attributes body, title, publishDate and meta, you can retrieve a filtered list of attributes.
845
820
 
846
821
  ```app/routes/post.js
847
- import Route from '@ember/routing/route';
848
- export default Route.extend({
822
+ export default class extends Route {
849
823
  model(params) {
850
824
  return this.store.findRecord('post', params.post_id, { adapterOptions: { fields: { post: 'body,title' } });
851
825
  }
852
- });
826
+ }
853
827
  ```
854
828
 
855
829
  Moreover, you can filter attributes on related models as well. If a `post` has a `belongsTo` relationship to a user,
856
830
  just include the relationship key and attributes.
857
831
 
858
832
  ```app/routes/post.js
859
- import Route from '@ember/routing/route';
860
- export default Route.extend({
833
+ export default class extends Route {
861
834
  model(params) {
862
835
  return this.store.findRecord('post', params.post_id, { adapterOptions: { fields: { post: 'body,title', user: 'name,email' } });
863
836
  }
864
- });
837
+ }
865
838
  ```
866
839
 
867
840
  @since 1.13.0
@@ -1127,8 +1100,6 @@ declare module '@ember-data/store/-private/store-service' {
1127
1100
  of them.
1128
1101
 
1129
1102
  ```app/routes/authors.js
1130
- import Route from '@ember/routing/route';
1131
-
1132
1103
  export default class AuthorsRoute extends Route {
1133
1104
  model(params) {
1134
1105
  return this.store.findAll('author');
@@ -1221,8 +1192,6 @@ declare module '@ember-data/store/-private/store-service' {
1221
1192
  `findAll`.
1222
1193
 
1223
1194
  ```app/routes/post/edit.js
1224
- import Route from '@ember/routing/route';
1225
-
1226
1195
  export default class PostEditRoute extends Route {
1227
1196
  model() {
1228
1197
  return this.store.findAll('post', { backgroundReload: false });
@@ -1234,8 +1203,6 @@ declare module '@ember-data/store/-private/store-service' {
1234
1203
  argument it will be passed to you adapter via the `snapshotRecordArray`
1235
1204
 
1236
1205
  ```app/routes/posts.js
1237
- import Route from '@ember/routing/route';
1238
-
1239
1206
  export default class PostsRoute extends Route {
1240
1207
  model(params) {
1241
1208
  return this.store.findAll('post', {
@@ -1276,8 +1243,6 @@ declare module '@ember-data/store/-private/store-service' {
1276
1243
  all of the posts' comments in the same request:
1277
1244
 
1278
1245
  ```app/routes/posts.js
1279
- import Route from '@ember/routing/route';
1280
-
1281
1246
  export default class PostsRoute extends Route {
1282
1247
  model() {
1283
1248
  return this.store.findAll('post', { include: 'comments' });
@@ -1290,8 +1255,6 @@ declare module '@ember-data/store/-private/store-service' {
1290
1255
  comments and the authors of those comments the request would look like this:
1291
1256
 
1292
1257
  ```app/routes/posts.js
1293
- import Route from '@ember/routing/route';
1294
-
1295
1258
  export default class PostsRoute extends Route {
1296
1259
  model() {
1297
1260
  return this.store.findAll('post', { include: 'comments,comments.author' });
@@ -1551,10 +1514,9 @@ declare module '@ember-data/store/-private/store-service' {
1551
1514
  * @property {Cache} cache
1552
1515
  * @public
1553
1516
  */
1554
- get cache(): Cache;
1517
+ get cache(): ReturnType<this['createCache']>;
1555
1518
  destroy(): void;
1556
1519
  static create(args?: Record<string, unknown>): Store;
1557
1520
  }
1558
- export default Store;
1559
1521
  }
1560
1522
  //# sourceMappingURL=store-service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"store-service.d.ts","sourceRoot":"","sources":["../../src/-private/store-service.ts"],"names":[],"mappings":";AAKA,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAGjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EACV,wBAAwB,EACxB,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAG3F,OAAO,KAAK,EACV,0BAA0B,EAC1B,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,i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O,CAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IA6C3E;;;;;;;;;;;OAWG;IAEH;;;;;;OAMG;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"}
@@ -3,8 +3,8 @@ declare module '@ember-data/store/-private/utils/coerce-id' {
3
3
  @module @ember-data/store
4
4
  */
5
5
  type Coercable = string | number | boolean | null | undefined | symbol;
6
- function coerceId(id: unknown): string | null;
6
+ export function coerceId(id: unknown): string | null;
7
7
  export function ensureStringId(id: Coercable): string;
8
- export default coerceId;
8
+ export {};
9
9
  }
10
10
  //# sourceMappingURL=coerce-id.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"coerce-id.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/coerce-id.ts"],"names":[],"mappings":"AAAA;;EAEE;AAYF,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC;AAEvE,iBAAS,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAkC5C;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,CAWpD;AAED,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"coerce-id.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/coerce-id.ts"],"names":[],"mappings":"AAAA;;EAEE;AAaF,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,10 +1,9 @@
1
1
  declare module '@ember-data/store/-private/utils/construct-resource' {
2
- import type { ExistingResourceIdentifierObject, ResourceIdentifierObject } from '@warp-drive/core-types/spec/raw';
3
- function constructResource(type: ResourceIdentifierObject): ResourceIdentifierObject;
4
- function constructResource(type: string, id: string, lid: string): ExistingResourceIdentifierObject;
5
- function constructResource(type: string | undefined, id: null | undefined, lid: string): ExistingResourceIdentifierObject;
6
- function constructResource(type: string, id: string, lid?: string | null): ExistingResourceIdentifierObject;
7
- function constructResource(type: string, id?: string | number | null, lid?: string | null): ResourceIdentifierObject;
8
- export default constructResource;
2
+ import type { ExistingResourceIdentifierObject, ResourceIdentifierObject } from '@warp-drive/core-types/spec/json-api-raw';
3
+ export function constructResource(type: ResourceIdentifierObject): ResourceIdentifierObject;
4
+ export function constructResource(type: string, id: string, lid: string): ExistingResourceIdentifierObject;
5
+ export function constructResource(type: string | undefined, id: null | undefined, lid: string): ExistingResourceIdentifierObject;
6
+ export function constructResource(type: string, id: string, lid?: string | null): ExistingResourceIdentifierObject;
7
+ export function constructResource(type: string, id?: string | number | null, lid?: string | null): ResourceIdentifierObject;
9
8
  }
10
9
  //# sourceMappingURL=construct-resource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"construct-resource.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/construct-resource.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gCAAgC,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAMlH,iBAAS,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,GAAG,wBAAwB,CAAC;AACrF,iBAAS,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,gCAAgC,CAAC;AACpG,iBAAS,iBAAiB,CACxB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,EAAE,EAAE,IAAI,GAAG,SAAS,EACpB,GAAG,EAAE,MAAM,GACV,gCAAgC,CAAC;AACpC,iBAAS,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,gCAAgC,CAAC;AAC5G,iBAAS,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,wBAAwB,CAAC;AAyCrH,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"construct-resource.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/construct-resource.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gCAAgC,EAChC,wBAAwB,EACzB,MAAM,0CAA0C,CAAC;AAMlD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,GAAG,wBAAwB,CAAC;AAC5F,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,gCAAgC,CAAC;AAC3G,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,EAAE,EAAE,IAAI,GAAG,SAAS,EACpB,GAAG,EAAE,MAAM,GACV,gCAAgC,CAAC;AACpC,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,gCAAgC,CAAC;AACnH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAClB,wBAAwB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  declare module '@ember-data/store/-private/utils/is-non-empty-string' {
2
- export default function isNonEmptyString(str: unknown): str is string;
2
+ export function isNonEmptyString(str: unknown): str is string;
3
3
  }
4
4
  //# sourceMappingURL=is-non-empty-string.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-non-empty-string.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/is-non-empty-string.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAEpE"}
1
+ {"version":3,"file":"is-non-empty-string.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/is-non-empty-string.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAE5D"}
@@ -1,4 +1,4 @@
1
1
  declare module '@ember-data/store/-private/utils/normalize-model-name' {
2
- export default function normalizeModelName(type: string): string;
2
+ export function normalizeModelName(type: string): string;
3
3
  }
4
4
  //# sourceMappingURL=normalize-model-name.d.ts.map