@ember-data-types/store 5.4.0-alpha.63 → 5.4.0-alpha.70

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 +160 -195
  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 +164 -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,31 +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 };
28
- type FilteredKeys<T> = Omit<T, typeof ResourceType | keyof EmberObject | 'constructor'>;
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
+ type AwaitedKeys<T> = {
29
+ [K in keyof T & string]: DownlevelArrays<Awaited<T[K]>>;
30
+ };
31
+ type FilteredKeys<T> = AwaitedKeys<Omit<T, typeof ResourceType | EmberObjectKey | DSModelKeys | 'constructor'>>;
29
32
  type MaybeHasId = {
30
33
  id?: string | null;
31
34
  };
@@ -46,35 +49,143 @@ declare module '@ember-data/store/-private/store-service' {
46
49
  *
47
50
  * @typedoc
48
51
  */
49
- 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>;
50
- /**
51
- * A Store coordinates interaction between your application, a [Cache](https://api.emberjs.com/ember-data/release/classes/%3CInterface%3E%20Cache),
52
- * and sources of data (such as your API or a local persistence layer)
53
- * accessed via a [RequestManager](https://github.com/emberjs/data/tree/main/packages/request).
54
- *
55
- * ```app/services/store.js
56
- * import Store from '@ember-data/store';
57
- *
58
- * export default class extends Store {}
59
- * ```
60
- *
61
- * Most Ember applications will only have a single `Store` configured as a Service
62
- * in this manner. However, setting up multiple stores is possible, including using
63
- * each as a unique service.
64
- *
65
-
66
- @class Store
67
- @public
68
- */
69
- interface Store {
70
- createRecordDataFor?(identifier: StableRecordIdentifier, wrapper: CacheCapabilitiesManager): Cache | CacheV1;
71
- createCache(storeWrapper: CacheCapabilitiesManager): Cache;
72
- 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: {
73
59
  [key: string]: unknown;
74
60
  }): OpaqueRecordInstance;
75
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;
76
187
  }
77
- class Store extends EmberObject {
188
+ export class Store extends BaseClass {
78
189
  recordArrayManager: RecordArrayManager;
79
190
  /**
80
191
  * Provides access to the NotificationManager associated
@@ -97,7 +208,7 @@ declare module '@ember-data/store/-private/store-service' {
97
208
  * @property {SchemaService} schema
98
209
  * @public
99
210
  */
100
- get schema(): SchemaService;
211
+ get schema(): ReturnType<this['createSchemaService']>;
101
212
  _schema: SchemaService;
102
213
  /**
103
214
  * Provides access to the IdentifierCache instance
@@ -122,7 +233,7 @@ declare module '@ember-data/store/-private/store-service' {
122
233
  * ```ts
123
234
  * import Store, { CacheHandler } from '@ember-data/store';
124
235
  * import RequestManager from '@ember-data/request';
125
- * import Fetch from '@ember/data/request/fetch';
236
+ * import Fetch from '@ember-data/request/fetch';
126
237
  *
127
238
  * class extends Store {
128
239
  * constructor() {
@@ -139,7 +250,7 @@ declare module '@ember-data/store/-private/store-service' {
139
250
  */
140
251
  requestManager: RequestManager;
141
252
  /**
142
- * A Property which an App may set to provide a Lifetimes Service
253
+ * A Property which an App may set to provide a CachePolicy
143
254
  * to control when a cached request becomes stale.
144
255
  *
145
256
  * Note, when defined, these methods will only be invoked if a
@@ -165,9 +276,9 @@ declare module '@ember-data/store/-private/store-service' {
165
276
  * ```
166
277
  *
167
278
  * @public
168
- * @property {LivetimesService|undefined} lifetimes
279
+ * @property {CachePolicy|undefined} lifetimes
169
280
  */
170
- lifetimes?: LifetimesService;
281
+ lifetimes?: CachePolicy;
171
282
  _graph?: Graph;
172
283
  _requestCache: RequestStateService;
173
284
  _instanceCache: InstanceCache;
@@ -239,7 +350,7 @@ declare module '@ember-data/store/-private/store-service' {
239
350
  * When a cache-key is determined, the request may fulfill
240
351
  * from cache provided the cache is not stale.
241
352
  *
242
- * Cache staleness is determined by the configured LifetimesService
353
+ * Cache staleness is determined by the configured CachePolicy
243
354
  * with priority given to the `cacheOptions.reload` and
244
355
  * `cacheOptions.backgroundReload` on the request if present.
245
356
  *
@@ -290,124 +401,6 @@ declare module '@ember-data/store/-private/store-service' {
290
401
  * @public
291
402
  * @param record
292
403
  */
293
- /**
294
- * Provides access to the SchemaDefinitionService instance
295
- * for this Store instance.
296
- *
297
- * The SchemaDefinitionService can be used to query for
298
- * information about the schema of a resource.
299
- *
300
- * @method getSchemaDefinitionService
301
- * @public
302
- */
303
- getSchemaDefinitionService(): SchemaService;
304
- /**
305
- * DEPRECATED - Use `registerSchema` instead.
306
- *
307
- * Allows an app to register a custom SchemaService
308
- * for use when information about a resource's schema needs
309
- * to be queried.
310
- *
311
- * This method can only be called more than once, but only one schema
312
- * definition service may exist. Therefore if you wish to chain services
313
- * you must lookup the existing service and close over it with the new
314
- * service by accessing `store.schema` prior to registration.
315
- *
316
- * For Example:
317
- *
318
- * ```ts
319
- * import Store from '@ember-data/store';
320
- *
321
- * class SchemaDelegator {
322
- * constructor(schema) {
323
- * this._schema = schema;
324
- * }
325
- *
326
- * doesTypeExist(type: string): boolean {
327
- * if (AbstractSchemas.has(type)) {
328
- * return true;
329
- * }
330
- * return this._schema.doesTypeExist(type);
331
- * }
332
- *
333
- * attributesDefinitionFor(identifier: RecordIdentifier | { type: string }): AttributesSchema {
334
- * return this._schema.attributesDefinitionFor(identifier);
335
- * }
336
- *
337
- * relationshipsDefinitionFor(identifier: RecordIdentifier | { type: string }): RelationshipsSchema {
338
- * const schema = AbstractSchemas.get(identifier.type);
339
- * return schema || this._schema.relationshipsDefinitionFor(identifier);
340
- * }
341
- * }
342
- *
343
- * export default class extends Store {
344
- * constructor(...args) {
345
- * super(...args);
346
- *
347
- * const schema = this.schema;
348
- * this.registerSchemaDefinitionService(new SchemaDelegator(schema));
349
- * }
350
- * }
351
- * ```
352
- *
353
- * @method registerSchemaDefinitionService
354
- * @param {SchemaService} schema
355
- * @deprecated
356
- * @public
357
- */
358
- registerSchemaDefinitionService(schema: SchemaService): void;
359
- /**
360
- * Allows an app to register a custom SchemaService
361
- * for use when information about a resource's schema needs
362
- * to be queried.
363
- *
364
- * This method can only be called more than once, but only one schema
365
- * definition service may exist. Therefore if you wish to chain services
366
- * you must lookup the existing service and close over it with the new
367
- * service by accessing `store.schema` prior to registration.
368
- *
369
- * For Example:
370
- *
371
- * ```ts
372
- * import Store from '@ember-data/store';
373
- *
374
- * class SchemaDelegator {
375
- * constructor(schema) {
376
- * this._schema = schema;
377
- * }
378
- *
379
- * doesTypeExist(type: string): boolean {
380
- * if (AbstractSchemas.has(type)) {
381
- * return true;
382
- * }
383
- * return this._schema.doesTypeExist(type);
384
- * }
385
- *
386
- * attributesDefinitionFor(identifier: RecordIdentifier | { type: string }): AttributesSchema {
387
- * return this._schema.attributesDefinitionFor(identifier);
388
- * }
389
- *
390
- * relationshipsDefinitionFor(identifier: RecordIdentifier | { type: string }): RelationshipsSchema {
391
- * const schema = AbstractSchemas.get(identifier.type);
392
- * return schema || this._schema.relationshipsDefinitionFor(identifier);
393
- * }
394
- * }
395
- *
396
- * export default class extends Store {
397
- * constructor(...args) {
398
- * super(...args);
399
- *
400
- * const schema = this.schema;
401
- * this.registerSchema(new SchemaDelegator(schema));
402
- * }
403
- * }
404
- * ```
405
- *
406
- * @method registerSchema
407
- * @param {SchemaService} schema
408
- * @public
409
- */
410
- registerSchema(schema: SchemaService): void;
411
404
  /**
412
405
  Returns the schema for a particular resource type (modelName).
413
406
 
@@ -427,6 +420,7 @@ declare module '@ember-data/store/-private/store-service' {
427
420
 
428
421
  @method modelFor
429
422
  @public
423
+ @deprecated
430
424
  @param {string} type
431
425
  @return {ModelSchema}
432
426
  */
@@ -510,8 +504,6 @@ declare module '@ember-data/store/-private/store-service' {
510
504
  **Example 1**
511
505
 
512
506
  ```app/routes/post.js
513
- import Route from '@ember/routing/route';
514
-
515
507
  export default class PostRoute extends Route {
516
508
  model({ post_id }) {
517
509
  return this.store.findRecord('post', post_id);
@@ -526,8 +518,6 @@ declare module '@ember-data/store/-private/store-service' {
526
518
  the typical pairing from [JSON:API](https://jsonapi.org/format/#document-resource-object-identification)
527
519
 
528
520
  ```app/routes/post.js
529
- import Route from '@ember/routing/route';
530
-
531
521
  export default class PostRoute extends Route {
532
522
  model({ post_id: id }) {
533
523
  return this.store.findRecord({ type: 'post', id });
@@ -559,8 +549,6 @@ declare module '@ember-data/store/-private/store-service' {
559
549
  without also fetching the post you can pass in the post to the `findRecord` call:
560
550
 
561
551
  ```app/routes/post-comments.js
562
- import Route from '@ember/routing/route';
563
-
564
552
  export default class PostRoute extends Route {
565
553
  model({ post_id, comment_id: id }) {
566
554
  return this.store.findRecord({ type: 'comment', id, { preload: { post: post_id }} });
@@ -595,8 +583,6 @@ declare module '@ember-data/store/-private/store-service' {
595
583
  property on the options hash.
596
584
 
597
585
  ```app/routes/post-comments.js
598
- import Route from '@ember/routing/route';
599
-
600
586
  export default class PostRoute extends Route {
601
587
  model({ post_id, comment_id: id }) {
602
588
  return this.store.findRecord({ type: 'comment', id, { adapterOptions: { post: post_id }} });
@@ -715,8 +701,6 @@ declare module '@ember-data/store/-private/store-service' {
715
701
  `findRecord`.
716
702
 
717
703
  ```app/routes/post/edit.js
718
- import Route from '@ember/routing/route';
719
-
720
704
  export default class PostEditRoute extends Route {
721
705
  model(params) {
722
706
  return this.store.findRecord('post', params.post_id, { backgroundReload: false });
@@ -728,8 +712,6 @@ declare module '@ember-data/store/-private/store-service' {
728
712
  argument it will be passed to your adapter via the snapshot
729
713
 
730
714
  ```app/routes/post/edit.js
731
- import Route from '@ember/routing/route';
732
-
733
715
  export default class PostEditRoute extends Route {
734
716
  model(params) {
735
717
  return this.store.findRecord('post', params.post_id, {
@@ -769,8 +751,6 @@ declare module '@ember-data/store/-private/store-service' {
769
751
  comments in the same request:
770
752
 
771
753
  ```app/routes/post.js
772
- import Route from '@ember/routing/route';
773
-
774
754
  export default class PostRoute extends Route {
775
755
  model(params) {
776
756
  return this.store.findRecord('post', params.post_id, { include: 'comments' });
@@ -806,8 +786,6 @@ declare module '@ember-data/store/-private/store-service' {
806
786
  comments and the authors of those comments the request would look like this:
807
787
 
808
788
  ```app/routes/post.js
809
- import Route from '@ember/routing/route';
810
-
811
789
  export default class PostRoute extends Route {
812
790
  model(params) {
813
791
  return this.store.findRecord('post', params.post_id, { include: 'comments,comments.author' });
@@ -841,24 +819,22 @@ declare module '@ember-data/store/-private/store-service' {
841
819
  Given a `post` model with attributes body, title, publishDate and meta, you can retrieve a filtered list of attributes.
842
820
 
843
821
  ```app/routes/post.js
844
- import Route from '@ember/routing/route';
845
- export default Route.extend({
822
+ export default class extends Route {
846
823
  model(params) {
847
824
  return this.store.findRecord('post', params.post_id, { adapterOptions: { fields: { post: 'body,title' } });
848
825
  }
849
- });
826
+ }
850
827
  ```
851
828
 
852
829
  Moreover, you can filter attributes on related models as well. If a `post` has a `belongsTo` relationship to a user,
853
830
  just include the relationship key and attributes.
854
831
 
855
832
  ```app/routes/post.js
856
- import Route from '@ember/routing/route';
857
- export default Route.extend({
833
+ export default class extends Route {
858
834
  model(params) {
859
835
  return this.store.findRecord('post', params.post_id, { adapterOptions: { fields: { post: 'body,title', user: 'name,email' } });
860
836
  }
861
- });
837
+ }
862
838
  ```
863
839
 
864
840
  @since 1.13.0
@@ -1124,8 +1100,6 @@ declare module '@ember-data/store/-private/store-service' {
1124
1100
  of them.
1125
1101
 
1126
1102
  ```app/routes/authors.js
1127
- import Route from '@ember/routing/route';
1128
-
1129
1103
  export default class AuthorsRoute extends Route {
1130
1104
  model(params) {
1131
1105
  return this.store.findAll('author');
@@ -1218,8 +1192,6 @@ declare module '@ember-data/store/-private/store-service' {
1218
1192
  `findAll`.
1219
1193
 
1220
1194
  ```app/routes/post/edit.js
1221
- import Route from '@ember/routing/route';
1222
-
1223
1195
  export default class PostEditRoute extends Route {
1224
1196
  model() {
1225
1197
  return this.store.findAll('post', { backgroundReload: false });
@@ -1231,8 +1203,6 @@ declare module '@ember-data/store/-private/store-service' {
1231
1203
  argument it will be passed to you adapter via the `snapshotRecordArray`
1232
1204
 
1233
1205
  ```app/routes/posts.js
1234
- import Route from '@ember/routing/route';
1235
-
1236
1206
  export default class PostsRoute extends Route {
1237
1207
  model(params) {
1238
1208
  return this.store.findAll('post', {
@@ -1273,8 +1243,6 @@ declare module '@ember-data/store/-private/store-service' {
1273
1243
  all of the posts' comments in the same request:
1274
1244
 
1275
1245
  ```app/routes/posts.js
1276
- import Route from '@ember/routing/route';
1277
-
1278
1246
  export default class PostsRoute extends Route {
1279
1247
  model() {
1280
1248
  return this.store.findAll('post', { include: 'comments' });
@@ -1287,8 +1255,6 @@ declare module '@ember-data/store/-private/store-service' {
1287
1255
  comments and the authors of those comments the request would look like this:
1288
1256
 
1289
1257
  ```app/routes/posts.js
1290
- import Route from '@ember/routing/route';
1291
-
1292
1258
  export default class PostsRoute extends Route {
1293
1259
  model() {
1294
1260
  return this.store.findAll('post', { include: 'comments,comments.author' });
@@ -1548,10 +1514,9 @@ declare module '@ember-data/store/-private/store-service' {
1548
1514
  * @property {Cache} cache
1549
1515
  * @public
1550
1516
  */
1551
- get cache(): Cache;
1517
+ get cache(): ReturnType<this['createCache']>;
1552
1518
  destroy(): void;
1553
1519
  static create(args?: Record<string, unknown>): Store;
1554
1520
  }
1555
- export default Store;
1556
1521
  }
1557
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,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,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M,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