@ember-data/legacy-compat 5.6.0-alpha.2 → 5.6.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{-private-Bnt-3W7M.js → -private-CVvkihLY.js} +16 -35
- package/dist/-private-CVvkihLY.js.map +1 -0
- package/dist/-private.js +1 -1
- package/dist/builders.js +0 -31
- package/dist/builders.js.map +1 -1
- package/dist/index.js +5 -14
- package/dist/index.js.map +1 -1
- package/dist/utils.js +1 -23
- package/dist/utils.js.map +1 -1
- package/package.json +15 -18
- package/unstable-preview-types/-private.d.ts +1 -2
- package/unstable-preview-types/-private.d.ts.map +1 -1
- package/unstable-preview-types/builders/find-all.d.ts +0 -6
- package/unstable-preview-types/builders/find-all.d.ts.map +1 -1
- package/unstable-preview-types/builders/find-record.d.ts +0 -6
- package/unstable-preview-types/builders/find-record.d.ts.map +1 -1
- package/unstable-preview-types/builders/query.d.ts +0 -9
- package/unstable-preview-types/builders/query.d.ts.map +1 -1
- package/unstable-preview-types/builders/save-record.d.ts +0 -6
- package/unstable-preview-types/builders/save-record.d.ts.map +1 -1
- package/unstable-preview-types/builders.d.ts +1 -2
- package/unstable-preview-types/builders.d.ts.map +1 -1
- package/unstable-preview-types/index.d.ts +12 -20
- package/unstable-preview-types/index.d.ts.map +1 -1
- package/unstable-preview-types/legacy-network-handler/minimum-adapter-interface.d.ts +1 -21
- package/unstable-preview-types/legacy-network-handler/minimum-adapter-interface.d.ts.map +1 -1
- package/unstable-preview-types/legacy-network-handler/minimum-serializer-interface.d.ts +1 -10
- package/unstable-preview-types/legacy-network-handler/minimum-serializer-interface.d.ts.map +1 -1
- package/unstable-preview-types/legacy-network-handler/snapshot-record-array.d.ts +2 -7
- package/unstable-preview-types/legacy-network-handler/snapshot-record-array.d.ts.map +1 -1
- package/unstable-preview-types/legacy-network-handler/snapshot.d.ts +1 -10
- package/unstable-preview-types/legacy-network-handler/snapshot.d.ts.map +1 -1
- package/unstable-preview-types/utils.d.ts +0 -21
- package/unstable-preview-types/utils.d.ts.map +1 -1
- package/dist/-private-Bnt-3W7M.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data/legacy-compat",
|
|
3
3
|
"description": "Compatibility Shims for Older EmberData",
|
|
4
|
-
"version": "5.6.0-alpha.
|
|
4
|
+
"version": "5.6.0-alpha.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Chris Thoburn <runspired@users.noreply.github.com>",
|
|
7
7
|
"repository": {
|
|
@@ -11,9 +11,6 @@
|
|
|
11
11
|
},
|
|
12
12
|
"homepage": "https://github.com/emberjs/data",
|
|
13
13
|
"bugs": "https://github.com/emberjs/data/issues",
|
|
14
|
-
"engines": {
|
|
15
|
-
"node": ">= 18.20.8"
|
|
16
|
-
},
|
|
17
14
|
"keywords": [
|
|
18
15
|
"ember-addon"
|
|
19
16
|
],
|
|
@@ -54,31 +51,31 @@
|
|
|
54
51
|
},
|
|
55
52
|
"dependencies": {
|
|
56
53
|
"@embroider/macros": "^1.16.12",
|
|
57
|
-
"@warp-drive/build-config": "5.6.0-alpha.
|
|
54
|
+
"@warp-drive/build-config": "5.6.0-alpha.4"
|
|
58
55
|
},
|
|
59
56
|
"peerDependencies": {
|
|
60
|
-
"@ember-data/graph": "5.6.0-alpha.
|
|
61
|
-
"@ember-data/json-api": "5.6.0-alpha.
|
|
62
|
-
"@ember-data/request": "5.6.0-alpha.
|
|
63
|
-
"@ember-data/request-utils": "5.6.0-alpha.
|
|
64
|
-
"@ember-data/store": "5.6.0-alpha.
|
|
57
|
+
"@ember-data/graph": "5.6.0-alpha.4",
|
|
58
|
+
"@ember-data/json-api": "5.6.0-alpha.4",
|
|
59
|
+
"@ember-data/request": "5.6.0-alpha.4",
|
|
60
|
+
"@ember-data/request-utils": "5.6.0-alpha.4",
|
|
61
|
+
"@ember-data/store": "5.6.0-alpha.4",
|
|
65
62
|
"@ember/test-waiters": "^3.1.0 || >= 4.0.0",
|
|
66
|
-
"@warp-drive/core-types": "5.6.0-alpha.
|
|
63
|
+
"@warp-drive/core-types": "5.6.0-alpha.4"
|
|
67
64
|
},
|
|
68
65
|
"devDependencies": {
|
|
69
66
|
"@babel/core": "^7.26.10",
|
|
70
67
|
"@babel/plugin-transform-typescript": "^7.27.0",
|
|
71
68
|
"@babel/preset-env": "^7.26.9",
|
|
72
69
|
"@babel/preset-typescript": "^7.27.0",
|
|
73
|
-
"@ember-data/graph": "5.6.0-alpha.
|
|
74
|
-
"@ember-data/json-api": "5.6.0-alpha.
|
|
75
|
-
"@ember-data/request": "5.6.0-alpha.
|
|
76
|
-
"@ember-data/request-utils": "5.6.0-alpha.
|
|
77
|
-
"@ember-data/store": "5.6.0-alpha.
|
|
70
|
+
"@ember-data/graph": "5.6.0-alpha.4",
|
|
71
|
+
"@ember-data/json-api": "5.6.0-alpha.4",
|
|
72
|
+
"@ember-data/request": "5.6.0-alpha.4",
|
|
73
|
+
"@ember-data/request-utils": "5.6.0-alpha.4",
|
|
74
|
+
"@ember-data/store": "5.6.0-alpha.4",
|
|
78
75
|
"@ember/test-waiters": "^4.1.0",
|
|
79
76
|
"@glimmer/component": "^2.0.0",
|
|
80
|
-
"@warp-drive/core-types": "5.6.0-alpha.
|
|
81
|
-
"@warp-drive/internal-config": "5.6.0-alpha.
|
|
77
|
+
"@warp-drive/core-types": "5.6.0-alpha.4",
|
|
78
|
+
"@warp-drive/internal-config": "5.6.0-alpha.4",
|
|
82
79
|
"ember-source": "~6.3.0",
|
|
83
80
|
"typescript": "^5.8.3",
|
|
84
81
|
"vite": "^5.4.15"
|
|
@@ -5,8 +5,7 @@ declare module '@ember-data/legacy-compat/-private' {
|
|
|
5
5
|
* Utilities - often temporary - for maintaining backwards compatibility with
|
|
6
6
|
* older parts of EmberData.
|
|
7
7
|
*
|
|
8
|
-
@module
|
|
9
|
-
@main @ember-data/legacy-compat
|
|
8
|
+
@module
|
|
10
9
|
*/
|
|
11
10
|
export { SnapshotRecordArray } from '@ember-data/legacy-compat/legacy-network-handler/snapshot-record-array';
|
|
12
11
|
export { SaveOp } from '@ember-data/legacy-compat/legacy-network-handler/fetch-manager';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../src/-private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAErC
|
|
1
|
+
{"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../src/-private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAErC;;;;;EAKE;AACF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE7D,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,WAAW,CAAG"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare module '@ember-data/legacy-compat/builders/find-all' {
|
|
2
|
-
/**
|
|
3
|
-
* @module @ember-data/legacy-compat/builders
|
|
4
|
-
*/
|
|
5
2
|
import type { StoreRequestInput } from '@ember-data/store';
|
|
6
3
|
import type { FindAllOptions } from '@ember-data/store/types';
|
|
7
4
|
import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
|
|
@@ -24,11 +21,8 @@ declare module '@ember-data/legacy-compat/builders/find-all' {
|
|
|
24
21
|
This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
|
|
25
22
|
To that end, these builders are deprecated and will be removed in a future version of Ember Data.
|
|
26
23
|
|
|
27
|
-
@method findAll
|
|
28
24
|
@deprecated
|
|
29
25
|
@public
|
|
30
|
-
@static
|
|
31
|
-
@for @ember-data/legacy-compat/builders
|
|
32
26
|
@param {String} type the name of the resource
|
|
33
27
|
@param {Object} query a query to be used by the adapter
|
|
34
28
|
@param {FindAllBuilderOptions} [options] optional, may include `adapterOptions` hash which will be passed to adapter.findAll
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-all.d.ts","sourceRoot":"","sources":["../../src/builders/find-all.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"find-all.d.ts","sourceRoot":"","sources":["../../src/builders/find-all.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAIvE,KAAK,mBAAmB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,OAAO,EAAE,IAAI,iBAAiB,GAAG;IACxF,EAAE,EAAE,SAAS,CAAC;IACd,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC,CAAC;QACR,OAAO,EAAE,qBAAqB,CAAC;KAChC,CAAC;IACF,CAAC,gBAAgB,CAAC,CAAC,EAAE,EAAE,CAAC;CACzB,CAAC;AAEF,KAAK,qBAAqB,CAAC,CAAC,GAAG,OAAO,IAAI,cAAc,CAAC,CAAC,CAAC,CAAC;AAE5D;;;;;;;;;;;;;;;EAeE;AACF,wBAAgB,cAAc,CAAC,CAAC,SAAS,mBAAmB,EAC1D,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,EACzB,OAAO,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,GACjC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACjD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,mBAAmB,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare module '@ember-data/legacy-compat/builders/find-record' {
|
|
2
|
-
/**
|
|
3
|
-
* @module @ember-data/legacy-compat/builders
|
|
4
|
-
*/
|
|
5
2
|
import type { StoreRequestInput } from '@ember-data/store';
|
|
6
3
|
import type { FindRecordOptions } from '@ember-data/store/types';
|
|
7
4
|
import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
|
|
@@ -43,11 +40,8 @@ declare module '@ember-data/legacy-compat/builders/find-record' {
|
|
|
43
40
|
This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
|
|
44
41
|
To that end, these builders are deprecated and will be removed in a future version of Ember Data.
|
|
45
42
|
|
|
46
|
-
@method findRecord
|
|
47
43
|
@deprecated
|
|
48
44
|
@public
|
|
49
|
-
@static
|
|
50
|
-
@for @ember-data/legacy-compat/builders
|
|
51
45
|
@param {string|object} resource - either a string representing the name of the resource or a ResourceIdentifier object containing both the type (a string) and the id (a string) for the record or an lid (a string) of an existing record
|
|
52
46
|
@param {string|number|object} id - optional object with options for the request only if the first param is a ResourceIdentifier, else the string id of the record to be retrieved
|
|
53
47
|
@param {FindRecordBuilderOptions} [options] - if the first param is a string this will be the optional options for the request. See examples for available options.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-record.d.ts","sourceRoot":"","sources":["../../src/builders/find-record.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"find-record.d.ts","sourceRoot":"","sources":["../../src/builders/find-record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA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AAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAClD,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,wBAAwB,EAClC,OAAO,CAAC,EAAE,wBAAwB,GACjC,sBAAsB,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare module '@ember-data/legacy-compat/builders/query' {
|
|
2
|
-
/**
|
|
3
|
-
* @module @ember-data/legacy-compat/builders
|
|
4
|
-
*/
|
|
5
2
|
import type { StoreRequestInput } from '@ember-data/store';
|
|
6
3
|
import type { LegacyResourceQuery, QueryOptions } from '@ember-data/store/types';
|
|
7
4
|
import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
|
|
@@ -25,11 +22,8 @@ declare module '@ember-data/legacy-compat/builders/query' {
|
|
|
25
22
|
This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
|
|
26
23
|
To that end, these builders are deprecated and will be removed in a future version of Ember Data.
|
|
27
24
|
|
|
28
|
-
@method query
|
|
29
25
|
@deprecated
|
|
30
26
|
@public
|
|
31
|
-
@static
|
|
32
|
-
@for @ember-data/legacy-compat/builders
|
|
33
27
|
@param {String} type the name of the resource
|
|
34
28
|
@param {Object} query a query to be used by the adapter
|
|
35
29
|
@param {QueryBuilderOptions} [options] optional, may include `adapterOptions` hash which will be passed to adapter.query
|
|
@@ -55,11 +49,8 @@ declare module '@ember-data/legacy-compat/builders/query' {
|
|
|
55
49
|
This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
|
|
56
50
|
To that end, these builders are deprecated and will be removed in a future version of Ember Data.
|
|
57
51
|
|
|
58
|
-
@method queryRecord
|
|
59
52
|
@deprecated
|
|
60
53
|
@public
|
|
61
|
-
@static
|
|
62
|
-
@for @ember-data/legacy-compat/builders
|
|
63
54
|
@param {String} type the name of the resource
|
|
64
55
|
@param {Object} query a query to be used by the adapter
|
|
65
56
|
@param {QueryBuilderOptions} [options] optional, may include `adapterOptions` hash which will be passed to adapter.query
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/builders/query.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/builders/query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAIvE,KAAK,iBAAiB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,OAAO,EAAE,IAAI,iBAAiB,GAAG;IACtF,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC,CAAC;QACR,KAAK,EAAE,mBAAmB,CAAC;QAC3B,OAAO,EAAE,mBAAmB,CAAC;KAC9B,CAAC;IACF,CAAC,gBAAgB,CAAC,CAAC,EAAE,EAAE,CAAC;CACzB,CAAC;AAEF,KAAK,mBAAmB,GAAG,YAAY,CAAC;AAExC;;;;;;;;;;;;;;;EAeE;AACF,wBAAgB,YAAY,CAAC,CAAC,SAAS,mBAAmB,EACxD,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,EACzB,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAC7B,OAAO,CAAC,EAAE,mBAAmB,GAC5B,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC/C,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,mBAAmB,EAC1B,OAAO,CAAC,EAAE,mBAAmB,GAC5B,iBAAiB,CAAC;AAwBrB,KAAK,uBAAuB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,OAAO,IAAI,iBAAiB,GAAG;IAC1F,EAAE,EAAE,aAAa,CAAC;IAClB,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC,CAAC;QACR,KAAK,EAAE,mBAAmB,CAAC;QAC3B,OAAO,EAAE,mBAAmB,CAAC;KAC9B,CAAC;IACF,CAAC,gBAAgB,CAAC,CAAC,EAAE,EAAE,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;EAeE;AACF,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,mBAAmB,EAC9D,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,EACzB,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAC7B,OAAO,CAAC,EAAE,mBAAmB,GAC5B,uBAAuB,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;AAC1D,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,mBAAmB,EAC1B,OAAO,CAAC,EAAE,mBAAmB,GAC5B,uBAAuB,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare module '@ember-data/legacy-compat/builders/save-record' {
|
|
2
|
-
/**
|
|
3
|
-
* @module @ember-data/legacy-compat/builders
|
|
4
|
-
*/
|
|
5
2
|
import { type StoreRequestInput } from '@ember-data/store';
|
|
6
3
|
import type { StableRecordIdentifier } from '@warp-drive/core-types';
|
|
7
4
|
import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
|
|
@@ -25,11 +22,8 @@ declare module '@ember-data/legacy-compat/builders/save-record' {
|
|
|
25
22
|
This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
|
|
26
23
|
To that end, these builders are deprecated and will be removed in a future version of Ember Data.
|
|
27
24
|
|
|
28
|
-
@method saveRecord
|
|
29
25
|
@deprecated
|
|
30
26
|
@public
|
|
31
|
-
@static
|
|
32
|
-
@for @ember-data/legacy-compat/builders
|
|
33
27
|
@param {Object} record a record to save
|
|
34
28
|
@param {SaveRecordBuilderOptions} options optional, may include `adapterOptions` hash which will be passed to adapter.saveRecord
|
|
35
29
|
@return {SaveRecordRequestInput} request config
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-record.d.ts","sourceRoot":"","sources":["../../src/builders/save-record.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"save-record.d.ts","sourceRoot":"","sources":["../../src/builders/save-record.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG1F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,KAAK,sBAAsB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,OAAO,IAAI,iBAAiB,GAAG;IACzF,EAAE,EAAE,cAAc,GAAG,cAAc,GAAG,cAAc,CAAC;IACrD,IAAI,EAAE;QACJ,MAAM,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;QAClC,OAAO,EAAE,wBAAwB,CAAC;KACnC,CAAC;IACF,OAAO,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,gBAAgB,CAAC,CAAC,EAAE,EAAE,CAAC;CACzB,CAAC;AAEF,KAAK,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAWxD;;;;;;;;;;;;;;EAcE;AACF,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,mBAAmB,EAC7D,MAAM,EAAE,CAAC,EACT,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACpC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAuChD"}
|
|
@@ -6,8 +6,7 @@ declare module '@ember-data/legacy-compat/builders' {
|
|
|
6
6
|
This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
|
|
7
7
|
To that end, these builders are deprecated and will be removed in a future version of Ember Data.
|
|
8
8
|
|
|
9
|
-
@module
|
|
10
|
-
@main @ember-data/legacy-compat/builders
|
|
9
|
+
@module
|
|
11
10
|
@deprecated
|
|
12
11
|
*/
|
|
13
12
|
export { findAllBuilder as findAll } from '@ember-data/legacy-compat/builders/find-all';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../src/builders.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../src/builders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;EASE;AAEF,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAE,iBAAiB,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzE,OAAO,EAAE,YAAY,IAAI,KAAK,EAAE,kBAAkB,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5F,OAAO,EAAE,iBAAiB,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/// <reference path="./utils.d.ts" />
|
|
2
|
-
/// <reference path="./-private.d.ts" />
|
|
3
1
|
/// <reference path="./builders.d.ts" />
|
|
4
|
-
/// <reference path="
|
|
2
|
+
/// <reference path="./-private.d.ts" />
|
|
3
|
+
/// <reference path="./utils.d.ts" />
|
|
5
4
|
/// <reference path="./builders/utils.d.ts" />
|
|
5
|
+
/// <reference path="./builders/find-record.d.ts" />
|
|
6
6
|
/// <reference path="./builders/save-record.d.ts" />
|
|
7
|
+
/// <reference path="./builders/query.d.ts" />
|
|
7
8
|
/// <reference path="./builders/find-all.d.ts" />
|
|
8
|
-
/// <reference path="./
|
|
9
|
+
/// <reference path="./legacy-network-handler/snapshot-record-array.d.ts" />
|
|
10
|
+
/// <reference path="./legacy-network-handler/legacy-network-handler.d.ts" />
|
|
9
11
|
/// <reference path="./legacy-network-handler/snapshot.d.ts" />
|
|
10
12
|
/// <reference path="./legacy-network-handler/identifier-has-id.d.ts" />
|
|
11
|
-
/// <reference path="./legacy-network-handler/serializer-response.d.ts" />
|
|
12
13
|
/// <reference path="./legacy-network-handler/minimum-serializer-interface.d.ts" />
|
|
13
|
-
/// <reference path="./legacy-network-handler/legacy-network-handler.d.ts" />
|
|
14
|
-
/// <reference path="./legacy-network-handler/minimum-adapter-interface.d.ts" />
|
|
15
14
|
/// <reference path="./legacy-network-handler/fetch-manager.d.ts" />
|
|
15
|
+
/// <reference path="./legacy-network-handler/serializer-response.d.ts" />
|
|
16
|
+
/// <reference path="./legacy-network-handler/minimum-adapter-interface.d.ts" />
|
|
16
17
|
/// <reference path="./legacy-network-handler/legacy-data-fetch.d.ts" />
|
|
17
18
|
/// <reference path="./legacy-network-handler/legacy-data-utils.d.ts" />
|
|
18
|
-
/// <reference path="./legacy-network-handler/snapshot-record-array.d.ts" />
|
|
19
19
|
declare module '@ember-data/legacy-compat' {
|
|
20
20
|
import type Store from '@ember-data/store';
|
|
21
21
|
import type { ObjectValue } from '@warp-drive/core-types/json/raw';
|
|
@@ -24,10 +24,6 @@ declare module '@ember-data/legacy-compat' {
|
|
|
24
24
|
import type { MinimumSerializerInterface, SerializerOptions } from '@ember-data/legacy-compat/legacy-network-handler/minimum-serializer-interface';
|
|
25
25
|
export { LegacyNetworkHandler } from '@ember-data/legacy-compat/legacy-network-handler/legacy-network-handler';
|
|
26
26
|
export type { MinimumAdapterInterface, MinimumSerializerInterface, SerializerOptions, AdapterPayload };
|
|
27
|
-
/**
|
|
28
|
-
* @module @ember-data/store
|
|
29
|
-
* @class Store
|
|
30
|
-
*/
|
|
31
27
|
export type LegacyStoreCompat = {
|
|
32
28
|
_fetchManager: FetchManager;
|
|
33
29
|
adapterFor(this: Store, modelName: string): MinimumAdapterInterface;
|
|
@@ -53,10 +49,9 @@ declare module '@ember-data/legacy-compat' {
|
|
|
53
49
|
for an `application` adapter (the default adapter for
|
|
54
50
|
your entire application).
|
|
55
51
|
|
|
56
|
-
@method adapterFor
|
|
57
52
|
@public
|
|
58
53
|
@param {String} modelName
|
|
59
|
-
@return Adapter
|
|
54
|
+
@return {Adapter}
|
|
60
55
|
*/
|
|
61
56
|
export function adapterFor(this: Store, modelName: string): MinimumAdapterInterface;
|
|
62
57
|
export function adapterFor(this: Store, modelName: string, _allowMissing: true): MinimumAdapterInterface | undefined;
|
|
@@ -72,7 +67,6 @@ declare module '@ember-data/legacy-compat' {
|
|
|
72
67
|
If a serializer cannot be found on the adapter, it will fall back
|
|
73
68
|
to an instance of `JSONSerializer`.
|
|
74
69
|
|
|
75
|
-
@method serializerFor
|
|
76
70
|
@public
|
|
77
71
|
@param {String} modelName the record to serialize
|
|
78
72
|
@return {Serializer}
|
|
@@ -92,7 +86,6 @@ declare module '@ember-data/legacy-compat' {
|
|
|
92
86
|
});
|
|
93
87
|
```
|
|
94
88
|
|
|
95
|
-
@method normalize
|
|
96
89
|
@public
|
|
97
90
|
@param {String} modelName The name of the model type for this payload
|
|
98
91
|
@param {Object} payload
|
|
@@ -108,7 +101,7 @@ declare module '@ember-data/legacy-compat' {
|
|
|
108
101
|
All objects should be in the format expected by the
|
|
109
102
|
serializer.
|
|
110
103
|
|
|
111
|
-
```app/serializers/application.js
|
|
104
|
+
```js [app/serializers/application.js]
|
|
112
105
|
import RESTSerializer from '@ember-data/serializer/rest';
|
|
113
106
|
|
|
114
107
|
export default class ApplicationSerializer extends RESTSerializer;
|
|
@@ -133,13 +126,13 @@ declare module '@ember-data/legacy-compat' {
|
|
|
133
126
|
Alternatively, `pushPayload` will accept a model type which
|
|
134
127
|
will determine which serializer will process the payload.
|
|
135
128
|
|
|
136
|
-
```app/serializers/application.js
|
|
129
|
+
```js [app/serializers/application.js]
|
|
137
130
|
import RESTSerializer from '@ember-data/serializer/rest';
|
|
138
131
|
|
|
139
132
|
export default class ApplicationSerializer extends RESTSerializer;
|
|
140
133
|
```
|
|
141
134
|
|
|
142
|
-
```app/serializers/post.js
|
|
135
|
+
```js [app/serializers/post.js]
|
|
143
136
|
import JSONSerializer from '@ember-data/serializer/json';
|
|
144
137
|
|
|
145
138
|
export default JSONSerializer;
|
|
@@ -150,7 +143,6 @@ declare module '@ember-data/legacy-compat' {
|
|
|
150
143
|
store.pushPayload('post', pushData); // Will use the post serializer
|
|
151
144
|
```
|
|
152
145
|
|
|
153
|
-
@method pushPayload
|
|
154
146
|
@public
|
|
155
147
|
@param {String} modelName Optionally, a model type used to determine which serializer will be used
|
|
156
148
|
@param {Object} inputPayload
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAI3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAgB,MAAM,YAAY,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AAClH,OAAO,KAAK,EACV,0BAA0B,EAC1B,iBAAiB,EAClB,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AAEvF,YAAY,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC;AAEvG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],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A0B,GAAG;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;CACjF,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,iBAAiB,CAAC;AAEpD;;;;;;;;;;;;IAYI;AACJ,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,uBAAuB,CAAC;AACpF,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,GAAG,uBAAuB,GAAG,SAAS,CAAC;AA8CrH;;;;;;;;;;;;;;;IAeI;AACJ,wBAAgB,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,0BAA0B,GAAG,IAAI,CAwC/F;AAED;;;;;;;;;;;;;;;;;;IAkBI;AAEJ,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,6EAmB7E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsDI;AAEJ,wBAAgB,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,GAAG,IAAI,CAgB3F;AAGD,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAQlG;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,KAAK,QAgBlC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter-interface' {
|
|
2
|
-
/**
|
|
3
|
-
* @module @ember-data/experimental-preview-types
|
|
4
|
-
*/
|
|
5
2
|
import type Store from '@ember-data/store';
|
|
6
3
|
import type { CollectionRecordArray } from '@ember-data/store/-private';
|
|
7
4
|
import type { ModelSchema } from '@ember-data/store/types';
|
|
@@ -25,7 +22,7 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
25
22
|
|
|
26
23
|
Methods that are not required are marked as **optional**.
|
|
27
24
|
|
|
28
|
-
@class
|
|
25
|
+
@class (Interface) Adapter
|
|
29
26
|
@public
|
|
30
27
|
*/
|
|
31
28
|
export interface MinimumAdapterInterface {
|
|
@@ -47,7 +44,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
47
44
|
* `adapter.findRecord` is called whenever the `store` needs to load, reload, or backgroundReload
|
|
48
45
|
* the resource data for a given `type` and `id`.
|
|
49
46
|
*
|
|
50
|
-
* @method findRecord
|
|
51
47
|
* @public
|
|
52
48
|
* @param {Store} store The store service that initiated the request being normalized
|
|
53
49
|
* @param {ModelSchema} schema An object with methods for accessing information about
|
|
@@ -77,7 +73,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
77
73
|
*
|
|
78
74
|
* See also `shouldReloadAll` and `shouldBackgroundReloadAll`
|
|
79
75
|
*
|
|
80
|
-
* @method findAll
|
|
81
76
|
* @public
|
|
82
77
|
* @param {Store} store The store service that initiated the request being normalized
|
|
83
78
|
* @param {ModelSchema} schema An object with methods for accessing information about
|
|
@@ -109,7 +104,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
109
104
|
* returned by the `store`. For `findAll` the result is all known records of the `type`,
|
|
110
105
|
* while for `query` it will only be the records returned from `adapter.query`.
|
|
111
106
|
*
|
|
112
|
-
* @method query
|
|
113
107
|
* @public
|
|
114
108
|
* @param {Store} store The store service that initiated the request being normalized
|
|
115
109
|
* @param {ModelSchema} schema An object with methods for accessing information about
|
|
@@ -136,7 +130,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
136
130
|
* call will NOT be made. In this scenario you may need to do at least a minimum amount of response
|
|
137
131
|
* processing within the adapter.
|
|
138
132
|
*
|
|
139
|
-
* @method queryRecord
|
|
140
133
|
* @public
|
|
141
134
|
* @param {Store} store The store service that initiated the request being normalized
|
|
142
135
|
* @param {ModelSchema} schema An object with methods for accessing information about
|
|
@@ -191,7 +184,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
191
184
|
* throw error;
|
|
192
185
|
* ```
|
|
193
186
|
*
|
|
194
|
-
* @method createRecord
|
|
195
187
|
* @public
|
|
196
188
|
* @param {Store} store The store service that initiated the request being normalized
|
|
197
189
|
* @param {ModelSchema} schema An object with methods for accessing information about
|
|
@@ -243,7 +235,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
243
235
|
* throw error;
|
|
244
236
|
* ```
|
|
245
237
|
*
|
|
246
|
-
* @method updateRecord
|
|
247
238
|
* @public
|
|
248
239
|
* @param {Store} store The store service that initiated the request being normalized
|
|
249
240
|
* @param {ModelSchema} schema An object with methods for accessing information about
|
|
@@ -269,7 +260,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
269
260
|
* If the adapter rejects or errors the record will need to be saved again once the reason
|
|
270
261
|
* for the error is addressed in order to persist the deleted state.
|
|
271
262
|
*
|
|
272
|
-
* @method deleteRecord
|
|
273
263
|
* @public
|
|
274
264
|
* @param {Store} store The store service that initiated the request being normalized
|
|
275
265
|
* @param {ModelSchema} schema An object with methods for accessing information about
|
|
@@ -299,7 +289,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
299
289
|
* call will NOT be made. In this scenario you may need to do at least a minimum amount of response
|
|
300
290
|
* processing within the adapter.
|
|
301
291
|
*
|
|
302
|
-
* @method findBelongsTo [OPTIONAL]
|
|
303
292
|
* @public
|
|
304
293
|
* @optional
|
|
305
294
|
* @param {Store} store The store service that initiated the request being normalized
|
|
@@ -331,7 +320,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
331
320
|
* call will NOT be made. In this scenario you may need to do at least a minimum amount of response
|
|
332
321
|
* processing within the adapter.
|
|
333
322
|
*
|
|
334
|
-
* @method findhasMany [OPTIONAL]
|
|
335
323
|
* @public
|
|
336
324
|
* @optional
|
|
337
325
|
* @param {Store} store The store service that initiated the request being normalized
|
|
@@ -360,7 +348,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
360
348
|
*
|
|
361
349
|
* See also `groupRecordsForFindMany` and `coalesceFindRequests`
|
|
362
350
|
*
|
|
363
|
-
* @method findMany [OPTIONAL]
|
|
364
351
|
* @public
|
|
365
352
|
* @optional
|
|
366
353
|
* @param {Store} store The store service that initiated the request being normalized
|
|
@@ -382,7 +369,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
382
369
|
* let newRecord = store.createRecord(type, { id });
|
|
383
370
|
* ```
|
|
384
371
|
*
|
|
385
|
-
* @method generateIdForRecord [OPTIONAL]
|
|
386
372
|
* @public
|
|
387
373
|
* @optional
|
|
388
374
|
* @param {Store} store The store service that initiated the request being normalized
|
|
@@ -424,7 +410,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
424
410
|
*
|
|
425
411
|
* See also `findMany` and `coalesceFindRequests`
|
|
426
412
|
*
|
|
427
|
-
* @method groupRecordsForFindMany [OPTIONAL]
|
|
428
413
|
* @public
|
|
429
414
|
* @optional
|
|
430
415
|
* @param {Store} store The store service that initiated the request being normalized
|
|
@@ -449,7 +434,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
449
434
|
*
|
|
450
435
|
* See also the documentation for `shouldBackgroundReloadRecord` which defaults to `true`.
|
|
451
436
|
*
|
|
452
|
-
* @method shouldReloadRecord [OPTIONAL]
|
|
453
437
|
* @public
|
|
454
438
|
* @optional
|
|
455
439
|
* @param {Store} store The store service that initiated the request being normalized
|
|
@@ -475,7 +459,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
475
459
|
* returned by `store.peekAll` for that type, and will include all records in the store for
|
|
476
460
|
* the given type, including any previously existing records not returned by the reload request.
|
|
477
461
|
*
|
|
478
|
-
* @method shouldReloadAll [OPTIONAL]
|
|
479
462
|
* @public
|
|
480
463
|
* @optional
|
|
481
464
|
* @param {Store} store The store service that initiated the request being normalized
|
|
@@ -501,7 +484,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
501
484
|
* The default behavior if this method is not implemented and the option was not specified is to
|
|
502
485
|
* background reload, the same as a return of `true`.
|
|
503
486
|
*
|
|
504
|
-
* @method shouldBackgroundReloadRecord [OPTIONAL]
|
|
505
487
|
* @public
|
|
506
488
|
* @optional
|
|
507
489
|
* @param {Store} store The store service that initiated the request being normalized
|
|
@@ -524,7 +506,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
524
506
|
* The default behavior if this method is not implemented and the option is not specified is to
|
|
525
507
|
* perform a reload, the same as a return of `true`.
|
|
526
508
|
*
|
|
527
|
-
* @method shouldBackgroundReloadAll [OPTIONAL]
|
|
528
509
|
* @public
|
|
529
510
|
* @optional
|
|
530
511
|
* @param {Store} store The store service that initiated the request being normalized
|
|
@@ -538,7 +519,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
|
|
|
538
519
|
*
|
|
539
520
|
* If not implemented, the store does not inform the adapter of destruction.
|
|
540
521
|
*
|
|
541
|
-
* @method destroy [OPTIONAL]
|
|
542
522
|
* @public
|
|
543
523
|
* @optional
|
|
544
524
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minimum-adapter-interface.d.ts","sourceRoot":"","sources":["../../src/legacy-network-handler/minimum-adapter-interface.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"minimum-adapter-interface.d.ts","sourceRoot":"","sources":["../../src/legacy-network-handler/minimum-adapter-interface.ts"],"names":[],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-
*/
|
|
5
2
|
import type Store from '@ember-data/store';
|
|
6
3
|
import type { ModelSchema } from '@ember-data/store/types';
|
|
7
4
|
import type { ObjectValue } from '@warp-drive/core-types/json/raw';
|
|
@@ -27,7 +24,7 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-seriali
|
|
|
27
24
|
|
|
28
25
|
Methods that are not required are marked as **optional**.
|
|
29
26
|
|
|
30
|
-
@class
|
|
27
|
+
@class (Interface) Serializer
|
|
31
28
|
@public
|
|
32
29
|
*/
|
|
33
30
|
export interface MinimumSerializerInterface {
|
|
@@ -46,7 +43,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-seriali
|
|
|
46
43
|
* a valid optional sibling to `id` and `type` in both [Resources](https://jsonapi.org/format/#document-resource-objects)
|
|
47
44
|
* and [Resource Identifier Objects](https://jsonapi.org/format/#document-resource-identifier-objects)
|
|
48
45
|
*
|
|
49
|
-
* @method normalizeResponse
|
|
50
46
|
* @public
|
|
51
47
|
* @param {Store} store The store service that initiated the request being normalized
|
|
52
48
|
* @param {ModelSchema} schema An object with methods for accessing information about
|
|
@@ -74,7 +70,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-seriali
|
|
|
74
70
|
* by `updateRecord` and `createRecord` if `Serializer.serializeIntoHash`
|
|
75
71
|
* is not implemented.
|
|
76
72
|
*
|
|
77
|
-
* @method serialize
|
|
78
73
|
* @public
|
|
79
74
|
* @param {Snapshot} snapshot A Snapshot for the record to serialize
|
|
80
75
|
* @param {Object} [options]
|
|
@@ -122,7 +117,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-seriali
|
|
|
122
117
|
* your application we recommend implementing this method, but caution that
|
|
123
118
|
* it may lead to unexpected mixing of formats.
|
|
124
119
|
*
|
|
125
|
-
* @method normalize [OPTIONAL]
|
|
126
120
|
* @public
|
|
127
121
|
* @optional
|
|
128
122
|
* @param {ModelSchema} schema An object with methods for accessing information about
|
|
@@ -164,7 +158,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-seriali
|
|
|
164
158
|
* }
|
|
165
159
|
* ```
|
|
166
160
|
*
|
|
167
|
-
* @method serializeIntoHash [OPTIONAL]
|
|
168
161
|
* @public
|
|
169
162
|
* @optional
|
|
170
163
|
* @param hash A top most object of the request payload onto
|
|
@@ -210,7 +203,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-seriali
|
|
|
210
203
|
* }
|
|
211
204
|
* ```
|
|
212
205
|
*
|
|
213
|
-
* @method pushPayload [OPTIONAL]
|
|
214
206
|
* @public
|
|
215
207
|
* @optional
|
|
216
208
|
* @param {Store} store The store service that initiated the request being normalized
|
|
@@ -225,7 +217,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-seriali
|
|
|
225
217
|
*
|
|
226
218
|
* If not implemented, the store does not inform the serializer of destruction.
|
|
227
219
|
*
|
|
228
|
-
* @method destroy [OPTIONAL]
|
|
229
220
|
* @public
|
|
230
221
|
* @optional
|
|
231
222
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minimum-serializer-interface.d.ts","sourceRoot":"","sources":["../../src/legacy-network-handler/minimum-serializer-interface.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"minimum-serializer-interface.d.ts","sourceRoot":"","sources":["../../src/legacy-network-handler/minimum-serializer-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAExG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,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;;;;;;;OAQG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;CAClB"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare module '@ember-data/legacy-compat/legacy-network-handler/snapshot-record-array' {
|
|
2
|
-
/**
|
|
3
|
-
@module @ember-data/legacy-compat
|
|
4
|
-
*/
|
|
5
2
|
import type Store from '@ember-data/store';
|
|
6
3
|
import type { LiveArray } from '@ember-data/store/-private';
|
|
7
4
|
import type { FindAllOptions, ModelSchema } from '@ember-data/store/types';
|
|
@@ -26,7 +23,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/snapshot-record
|
|
|
26
23
|
Instances are provided to consuming application's
|
|
27
24
|
adapters and serializers for certain requests.
|
|
28
25
|
|
|
29
|
-
@method constructor
|
|
30
26
|
@private
|
|
31
27
|
@constructor
|
|
32
28
|
@param {Store} store
|
|
@@ -47,7 +43,7 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/snapshot-record
|
|
|
47
43
|
|
|
48
44
|
Example
|
|
49
45
|
|
|
50
|
-
```app/adapters/post.js
|
|
46
|
+
```js [app/adapters/post.js]
|
|
51
47
|
import JSONAPIAdapter from '@ember-data/adapter/json-api';
|
|
52
48
|
|
|
53
49
|
export default class PostAdapter extends JSONAPIAdapter {
|
|
@@ -67,7 +63,7 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/snapshot-record
|
|
|
67
63
|
|
|
68
64
|
Example
|
|
69
65
|
|
|
70
|
-
```app/adapters/post.js
|
|
66
|
+
```js [app/adapters/post.js]
|
|
71
67
|
import JSONAPIAdapter from '@ember-data/adapter/json-api';
|
|
72
68
|
|
|
73
69
|
export default class PostAdapter extends JSONAPIAdapter {
|
|
@@ -86,7 +82,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/snapshot-record
|
|
|
86
82
|
}
|
|
87
83
|
```
|
|
88
84
|
|
|
89
|
-
@method snapshots
|
|
90
85
|
@public
|
|
91
86
|
@return {Array} Array of snapshots
|
|
92
87
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-record-array.d.ts","sourceRoot":"","sources":["../../src/legacy-network-handler/snapshot-record-array.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"snapshot-record-array.d.ts","sourceRoot":"","sources":["../../src/legacy-network-handler/snapshot-record-array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAI3E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C;;;;;;;EAOE;AACF,qBAAa,mBAAmB;IACtB,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAC9B,KAAK,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,KAAK,CAAC;IAEf,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEpC;;;;;;;;;;OAUG;gBACS,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,cAAmB;IAkEpE;;;;;;MAME;IACF,IAAI,YAAY,IAAI,SAAS,CAE5B;IAED;;;;;;;;;;;;;;;;;;QAkBI;IACJ,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;MA0BE;IACF,SAAS;CAaV"}
|