@ngrx/data 15.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngrx/data",
3
- "version": "15.0.0",
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.0.0",
26
- "@ngrx/effects": "15.0.0",
27
- "@ngrx/entity": "15.0.0",
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,5 +1,5 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
3
  exports.platformVersion = void 0;
4
- exports.platformVersion = '^15.0.0';
4
+ exports.platformVersion = '^15.2.0';
5
5
  //# sourceMappingURL=libs-version.js.map
@@ -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.0.0';\n"]}
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"]}
@@ -22,6 +22,6 @@ export declare abstract class DefaultDataServiceConfig {
22
22
  saveDelay?: number;
23
23
  /** request timeout in MS (default: 0)*/
24
24
  timeout?: number;
25
- /** to keep trailing slashes or not; false by default */
25
+ /** to keep leading & trailing slashes or not; false by default */
26
26
  trailingSlashEndpoints?: boolean;
27
27
  }
@@ -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)