@ngrx/data 15.1.0 → 15.2.0
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/esm2020/src/dispatchers/entity-commands.mjs +1 -1
- package/esm2020/src/dispatchers/entity-dispatcher-base.mjs +16 -1
- package/esm2020/src/entity-services/entity-collection-service-base.mjs +13 -1
- package/fesm2015/ngrx-data.mjs +27 -0
- package/fesm2015/ngrx-data.mjs.map +1 -1
- package/fesm2020/ngrx-data.mjs +27 -0
- package/fesm2020/ngrx-data.mjs.map +1 -1
- package/package.json +4 -4
- package/schematics-core/utility/libs-version.js +1 -1
- package/schematics-core/utility/libs-version.js.map +1 -1
- package/src/dispatchers/entity-commands.d.ts +11 -0
- package/src/dispatchers/entity-dispatcher-base.d.ts +10 -0
- package/src/entity-services/entity-collection-service-base.d.ts +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngrx/data",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.2.0",
|
|
4
4
|
"description": "API management for NgRx",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@angular/common": "^15.0.0",
|
|
24
24
|
"@angular/core": "^15.0.0",
|
|
25
|
-
"@ngrx/store": "15.
|
|
26
|
-
"@ngrx/effects": "15.
|
|
27
|
-
"@ngrx/entity": "15.
|
|
25
|
+
"@ngrx/store": "15.2.0",
|
|
26
|
+
"@ngrx/effects": "15.2.0",
|
|
27
|
+
"@ngrx/entity": "15.2.0",
|
|
28
28
|
"rxjs": "^6.5.3 || ^7.5.0"
|
|
29
29
|
},
|
|
30
30
|
"schematics": "./schematics/collection.json",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libs-version.js","sourceRoot":"","sources":["../../../../../modules/data/schematics-core/utility/libs-version.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,SAAS,CAAC","sourcesContent":["export const platformVersion = '^15.
|
|
1
|
+
{"version":3,"file":"libs-version.js","sourceRoot":"","sources":["../../../../../modules/data/schematics-core/utility/libs-version.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,SAAS,CAAC","sourcesContent":["export const platformVersion = '^15.2.0';\n"]}
|
|
@@ -72,6 +72,17 @@ export interface EntityServerCommands<T> {
|
|
|
72
72
|
* @see getAll
|
|
73
73
|
*/
|
|
74
74
|
load(options?: EntityActionOptions): Observable<T[]>;
|
|
75
|
+
/**
|
|
76
|
+
* Dispatch action to query remote storage for the entities that satisfy a query expressed
|
|
77
|
+
* with either a query parameter map or an HTTP URL query string, and
|
|
78
|
+
* completely replace the cached collection with the queried entities.
|
|
79
|
+
* @param queryParams the query in a form understood by the server
|
|
80
|
+
* @param [options] options that influence load behavior
|
|
81
|
+
* @returns A terminating Observable of the entities in the collection
|
|
82
|
+
* after server reports successful query or the query error.
|
|
83
|
+
* @see getWithQuery
|
|
84
|
+
*/
|
|
85
|
+
loadWithQuery(queryParams: QueryParams | string, options?: EntityActionOptions): Observable<T[]>;
|
|
75
86
|
/**
|
|
76
87
|
* Dispatch action to save the updated entity (or partial entity) in remote storage.
|
|
77
88
|
* The update entity may be partial (but must have its key)
|
|
@@ -147,6 +147,16 @@ export declare class EntityDispatcherBase<T> implements EntityDispatcher<T> {
|
|
|
147
147
|
* @see getAll
|
|
148
148
|
*/
|
|
149
149
|
load(options?: EntityActionOptions): Observable<T[]>;
|
|
150
|
+
/**
|
|
151
|
+
* Dispatch action to query remote storage for the entities that satisfy a query expressed
|
|
152
|
+
* with either a query parameter map or an HTTP URL query string,
|
|
153
|
+
* and completely replace the cached collection with the queried entities.
|
|
154
|
+
* @param queryParams the query in a form understood by the server
|
|
155
|
+
* @param [options] options that influence load behavior
|
|
156
|
+
* @returns A terminating Observable of the queried entities
|
|
157
|
+
* after server reports successful query or the query error.
|
|
158
|
+
*/
|
|
159
|
+
loadWithQuery(queryParams: QueryParams | string, options?: EntityActionOptions): Observable<T[]>;
|
|
150
160
|
/**
|
|
151
161
|
* Dispatch action to save the updated entity (or partial entity) in remote storage.
|
|
152
162
|
* The update entity may be partial (but must have its key)
|
|
@@ -140,6 +140,16 @@ export declare class EntityCollectionServiceBase<T, S$ extends EntitySelectors$<
|
|
|
140
140
|
* @see getAll
|
|
141
141
|
*/
|
|
142
142
|
load(options?: EntityActionOptions): Observable<T[]>;
|
|
143
|
+
/**
|
|
144
|
+
* Dispatch action to query remote storage for the entities that satisfy a query expressed
|
|
145
|
+
* with either a query parameter map or an HTTP URL query string,
|
|
146
|
+
* and completely replace the cached collection with the queried entities.
|
|
147
|
+
* @param queryParams the query in a form understood by the server
|
|
148
|
+
* @param [options] options that influence load behavior
|
|
149
|
+
* @returns Observable of the queried entities
|
|
150
|
+
* after server reports successful query or the query error.
|
|
151
|
+
*/
|
|
152
|
+
loadWithQuery(queryParams: QueryParams | string, options?: EntityActionOptions): Observable<T[]>;
|
|
143
153
|
/**
|
|
144
154
|
* Dispatch action to save the updated entity (or partial entity) in remote storage.
|
|
145
155
|
* The update entity may be partial (but must have its key)
|