@ember-data/model 5.5.0-alpha.2 → 5.5.0-alpha.21

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