@ngrx/data 15.1.0 → 15.2.1

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.
@@ -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)
@@ -4939,3 +4966,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
4939
4966
 
4940
4967
  export { ChangeSetItemFactory, ChangeSetOperation, ChangeType, ClearCollections, CorrelationIdGenerator, DataServiceError, DefaultDataService, DefaultDataServiceConfig, DefaultDataServiceFactory, DefaultHttpUrlGenerator, DefaultLogger, DefaultPersistenceResultHandler, DefaultPluralizer, ENTITY_CACHE_META_REDUCERS, ENTITY_CACHE_NAME, ENTITY_CACHE_NAME_TOKEN, ENTITY_CACHE_SELECTOR_TOKEN, ENTITY_COLLECTION_META_REDUCERS, ENTITY_METADATA_TOKEN, EntityActionFactory, EntityActionGuard, EntityCacheAction, EntityCacheDataService, EntityCacheDispatcher, EntityCacheEffects, EntityCacheReducerFactory, EntityChangeTrackerBase, EntityCollectionCreator, EntityCollectionReducerFactory, EntityCollectionReducerMethods, EntityCollectionReducerMethodsFactory, EntityCollectionReducerRegistry, EntityCollectionServiceBase, EntityCollectionServiceElementsFactory, EntityCollectionServiceFactory, EntityDataModule, EntityDataModuleWithoutEffects, EntityDataService, EntityDefinitionService, EntityDispatcherBase, EntityDispatcherDefaultOptions, EntityDispatcherFactory, EntityEffects, EntityHttpResourceUrls, EntityOp, EntitySelectors$Factory, EntitySelectorsFactory, EntityServices, EntityServicesBase, EntityServicesElements, HttpUrlGenerator, INITIAL_ENTITY_CACHE_STATE, LoadCollections, Logger, MergeQuerySet, MergeStrategy, OP_ERROR, OP_SUCCESS, PLURAL_NAMES_TOKEN, PersistanceCanceled, PersistenceResultHandler, Pluralizer, PropsFilterFnFactory, SaveEntities, SaveEntitiesCancel, SaveEntitiesCanceled, SaveEntitiesError, SaveEntitiesSuccess, SetEntityCache, changeSetItemFactory, createEmptyEntityCollection, createEntityCacheSelector, createEntityDefinition, defaultSelectId, entityCacheSelectorProvider, excludeEmptyChangeSetItems, flattenArgs, getGuid, getGuidComb, guidComparer, makeErrorOp, makeSuccessOp, normalizeRoot, ofEntityOp, ofEntityType, persistOps, provideEntityData, toUpdateFactory, withEffects };
4941
4968
  //# sourceMappingURL=ngrx-data.mjs.map
4969
+ //# sourceMappingURL=ngrx-data.mjs.map