@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/fesm2020/ngrx-data.mjs
CHANGED
|
@@ -1608,6 +1608,21 @@ class EntityDispatcherBase {
|
|
|
1608
1608
|
this.dispatch(action);
|
|
1609
1609
|
return this.getResponseData$(options.correlationId).pipe(shareReplay(1));
|
|
1610
1610
|
}
|
|
1611
|
+
/**
|
|
1612
|
+
* Dispatch action to query remote storage for the entities that satisfy a query expressed
|
|
1613
|
+
* with either a query parameter map or an HTTP URL query string,
|
|
1614
|
+
* and completely replace the cached collection with the queried entities.
|
|
1615
|
+
* @param queryParams the query in a form understood by the server
|
|
1616
|
+
* @param [options] options that influence load behavior
|
|
1617
|
+
* @returns A terminating Observable of the queried entities
|
|
1618
|
+
* after server reports successful query or the query error.
|
|
1619
|
+
*/
|
|
1620
|
+
loadWithQuery(queryParams, options) {
|
|
1621
|
+
options = this.setQueryEntityActionOptions(options);
|
|
1622
|
+
const action = this.createEntityAction(EntityOp.QUERY_MANY, queryParams, options);
|
|
1623
|
+
this.dispatch(action);
|
|
1624
|
+
return this.getResponseData$(options.correlationId).pipe(shareReplay(1));
|
|
1625
|
+
}
|
|
1611
1626
|
/**
|
|
1612
1627
|
* Dispatch action to save the updated entity (or partial entity) in remote storage.
|
|
1613
1628
|
* The update entity may be partial (but must have its key)
|
|
@@ -2281,6 +2296,18 @@ class EntityCollectionServiceBase {
|
|
|
2281
2296
|
load(options) {
|
|
2282
2297
|
return this.dispatcher.load(options);
|
|
2283
2298
|
}
|
|
2299
|
+
/**
|
|
2300
|
+
* Dispatch action to query remote storage for the entities that satisfy a query expressed
|
|
2301
|
+
* with either a query parameter map or an HTTP URL query string,
|
|
2302
|
+
* and completely replace the cached collection with the queried entities.
|
|
2303
|
+
* @param queryParams the query in a form understood by the server
|
|
2304
|
+
* @param [options] options that influence load behavior
|
|
2305
|
+
* @returns Observable of the queried entities
|
|
2306
|
+
* after server reports successful query or the query error.
|
|
2307
|
+
*/
|
|
2308
|
+
loadWithQuery(queryParams, options) {
|
|
2309
|
+
return this.dispatcher.loadWithQuery(queryParams, options);
|
|
2310
|
+
}
|
|
2284
2311
|
/**
|
|
2285
2312
|
* Dispatch action to save the updated entity (or partial entity) in remote storage.
|
|
2286
2313
|
* The update entity may be partial (but must have its key)
|