@ember-data-types/serializer 5.4.0-alpha.56 → 5.4.0-alpha.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -62,38 +62,7 @@ declare module '@ember-data/serializer/rest' {
|
|
|
62
62
|
normalizeFindRecordResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
|
|
63
63
|
normalizeQueryRecordResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
|
|
64
64
|
normalizeFindAllResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
|
|
65
|
-
normalizeFindBelongsToResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
|
|
66
|
-
This method allows you to push a payload containing top-level
|
|
67
|
-
collections of records organized per type.
|
|
68
|
-
|
|
69
|
-
```js
|
|
70
|
-
{
|
|
71
|
-
"posts": [{
|
|
72
|
-
"id": "1",
|
|
73
|
-
"title": "Rails is omakase",
|
|
74
|
-
"author", "1",
|
|
75
|
-
"comments": [ "1" ]
|
|
76
|
-
}],
|
|
77
|
-
"comments": [{
|
|
78
|
-
"id": "1",
|
|
79
|
-
"body": "FIRST"
|
|
80
|
-
}],
|
|
81
|
-
"users": [{
|
|
82
|
-
"id": "1",
|
|
83
|
-
"name": "@d2h"
|
|
84
|
-
}]
|
|
85
|
-
}
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
It will first normalize the payload, so you can use this to push
|
|
89
|
-
in data streaming in from your server structured the same way
|
|
90
|
-
that fetches and saves are structured.
|
|
91
|
-
|
|
92
|
-
@method pushPayload
|
|
93
|
-
@public
|
|
94
|
-
@param {Store} store
|
|
95
|
-
@param {Object} payload
|
|
96
|
-
*/
|
|
65
|
+
normalizeFindBelongsToResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
|
|
97
66
|
normalizeFindHasManyResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
|
|
98
67
|
normalizeFindManyResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
|
|
99
68
|
normalizeQueryResponse(store: Store, primaryModelClass: Model, payload: Object, id: string | number, requestType: string, ...args: any[]): Object;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest.d.ts","sourceRoot":"","sources":["../src/rest.js"],"names":[],"mappings":";;;AAiBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDE;AACF
|
|
1
|
+
{"version":3,"file":"rest.d.ts","sourceRoot":"","sources":["../src/rest.js"],"names":[],"mappings":";;;AAiBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACE;;;;;;;;;;;;;;;;;;;;;;;;;MAyBE;;IAOF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkEE;IAEF;;;;;;;;;;;MAWE;gEAJQ,MAAM,iBAEL,MAAM;;IA0CjB;;;;;;;;;;MAUE;wEANQ,MAAM,MACN,eAAa,2CAGZ,MAAM;;IAsIjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+BE;uCADQ,MAAM;IA+BhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyDE;;IAOF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwJ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