@ngrx/data 12.5.1 → 13.0.0-beta.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.
Files changed (67) hide show
  1. package/bundles/ngrx-data.umd.js +410 -498
  2. package/bundles/ngrx-data.umd.js.map +1 -1
  3. package/esm2015/ngrx-data.js +1 -2
  4. package/esm2015/src/actions/entity-action-factory.js +7 -5
  5. package/esm2015/src/dataservices/default-data.service.js +13 -20
  6. package/esm2015/src/dataservices/entity-cache-data.service.js +12 -20
  7. package/esm2015/src/dataservices/entity-data.service.js +8 -16
  8. package/esm2015/src/dataservices/http-url-generator.js +8 -16
  9. package/esm2015/src/dataservices/persistence-result-handler.service.js +9 -18
  10. package/esm2015/src/dispatchers/entity-cache-dispatcher.js +16 -22
  11. package/esm2015/src/dispatchers/entity-dispatcher-default-options.js +7 -5
  12. package/esm2015/src/dispatchers/entity-dispatcher-factory.js +19 -25
  13. package/esm2015/src/effects/entity-cache-effects.js +17 -23
  14. package/esm2015/src/effects/entity-effects.js +17 -23
  15. package/esm2015/src/entity-data-without-effects.module.js +77 -50
  16. package/esm2015/src/entity-data.module.js +47 -36
  17. package/esm2015/src/entity-metadata/entity-definition.service.js +12 -15
  18. package/esm2015/src/entity-services/entity-collection-service-elements-factory.js +11 -22
  19. package/esm2015/src/entity-services/entity-collection-service-factory.js +8 -16
  20. package/esm2015/src/entity-services/entity-services-base.js +8 -16
  21. package/esm2015/src/entity-services/entity-services-elements.js +11 -22
  22. package/esm2015/src/reducers/entity-cache-reducer.js +10 -20
  23. package/esm2015/src/reducers/entity-collection-creator.js +10 -16
  24. package/esm2015/src/reducers/entity-collection-reducer-methods.js +8 -16
  25. package/esm2015/src/reducers/entity-collection-reducer-registry.js +13 -17
  26. package/esm2015/src/reducers/entity-collection-reducer.js +8 -16
  27. package/esm2015/src/selectors/entity-selectors$.js +12 -19
  28. package/esm2015/src/selectors/entity-selectors.js +15 -16
  29. package/esm2015/src/utils/correlation-id-generator.js +7 -5
  30. package/esm2015/src/utils/default-logger.js +7 -5
  31. package/esm2015/src/utils/default-pluralizer.js +12 -15
  32. package/fesm2015/ngrx-data.js +311 -451
  33. package/fesm2015/ngrx-data.js.map +1 -1
  34. package/ngrx-data.d.ts +1 -1
  35. package/package.json +8 -9
  36. package/schematics-core/utility/libs-version.js +1 -1
  37. package/schematics-core/utility/libs-version.js.map +1 -1
  38. package/src/actions/entity-action-factory.d.ts +3 -0
  39. package/src/dataservices/default-data.service.d.ts +3 -0
  40. package/src/dataservices/entity-cache-data.service.d.ts +3 -0
  41. package/src/dataservices/entity-data.service.d.ts +3 -0
  42. package/src/dataservices/http-url-generator.d.ts +3 -0
  43. package/src/dataservices/persistence-result-handler.service.d.ts +3 -0
  44. package/src/dispatchers/entity-cache-dispatcher.d.ts +3 -0
  45. package/src/dispatchers/entity-dispatcher-default-options.d.ts +3 -0
  46. package/src/dispatchers/entity-dispatcher-factory.d.ts +3 -0
  47. package/src/effects/entity-cache-effects.d.ts +3 -0
  48. package/src/effects/entity-effects.d.ts +3 -0
  49. package/src/entity-data-without-effects.module.d.ts +5 -0
  50. package/src/entity-data.module.d.ts +6 -0
  51. package/src/entity-metadata/entity-definition.service.d.ts +3 -0
  52. package/src/entity-services/entity-collection-service-base.d.ts +1 -1
  53. package/src/entity-services/entity-collection-service-elements-factory.d.ts +3 -0
  54. package/src/entity-services/entity-collection-service-factory.d.ts +3 -0
  55. package/src/entity-services/entity-services-base.d.ts +3 -0
  56. package/src/entity-services/entity-services-elements.d.ts +3 -0
  57. package/src/reducers/entity-cache-reducer.d.ts +3 -0
  58. package/src/reducers/entity-collection-creator.d.ts +3 -0
  59. package/src/reducers/entity-collection-reducer-methods.d.ts +3 -0
  60. package/src/reducers/entity-collection-reducer-registry.d.ts +3 -0
  61. package/src/reducers/entity-collection-reducer.d.ts +3 -0
  62. package/src/selectors/entity-selectors$.d.ts +3 -0
  63. package/src/selectors/entity-selectors.d.ts +3 -0
  64. package/src/utils/correlation-id-generator.d.ts +3 -0
  65. package/src/utils/default-logger.d.ts +3 -0
  66. package/src/utils/default-pluralizer.d.ts +3 -0
  67. package/ngrx-data.metadata.json +0 -1
package/ngrx-data.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@ngrx/data" />
4
5
  export * from './index';
5
- export { ENTITY_EFFECTS_SCHEDULER as ɵa } from './src/effects/entity-effects-scheduler';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngrx/data",
3
- "version": "12.5.1",
3
+ "version": "13.0.0-beta.0",
4
4
  "description": "API management for NgRx",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,12 +20,12 @@
20
20
  },
21
21
  "homepage": "https://github.com/ngrx/platform#readme",
22
22
  "peerDependencies": {
23
- "@angular/common": "^12.0.0",
24
- "@angular/core": "^12.0.0",
25
- "@ngrx/store": "12.5.1",
26
- "@ngrx/effects": "12.5.1",
27
- "@ngrx/entity": "12.5.1",
28
- "rxjs": "^6.5.3 || ^7.0.0"
23
+ "@angular/common": "^13.0.0-rc.0",
24
+ "@angular/core": "^13.0.0-rc.0",
25
+ "@ngrx/store": "13.0.0-beta.0",
26
+ "@ngrx/effects": "13.0.0-beta.0",
27
+ "@ngrx/entity": "13.0.0-beta.0",
28
+ "rxjs": "^6.5.3 || ^7.4.0"
29
29
  },
30
30
  "schematics": "./schematics/collection.json",
31
31
  "ng-update": {
@@ -51,6 +51,5 @@
51
51
  "es2015": "fesm2015/ngrx-data.js",
52
52
  "esm2015": "esm2015/ngrx-data.js",
53
53
  "fesm2015": "fesm2015/ngrx-data.js",
54
- "typings": "ngrx-data.d.ts",
55
- "metadata": "ngrx-data.metadata.json"
54
+ "typings": "ngrx-data.d.ts"
56
55
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
3
  exports.platformVersion = void 0;
4
- exports.platformVersion = '^12.5.1';
4
+ exports.platformVersion = '^13.0.0-beta.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 = '^12.5.1';\n"]}
1
+ {"version":3,"file":"libs-version.js","sourceRoot":"","sources":["../../../../../modules/data/schematics-core/utility/libs-version.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,gBAAgB,CAAC","sourcesContent":["export const platformVersion = '^13.0.0-beta.0';\n"]}
@@ -1,5 +1,6 @@
1
1
  import { EntityOp } from './entity-op';
2
2
  import { EntityAction, EntityActionOptions, EntityActionPayload } from './entity-action';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class EntityActionFactory {
4
5
  /**
5
6
  * Create an EntityAction to perform an operation (op) for a particular entity type
@@ -32,4 +33,6 @@ export declare class EntityActionFactory {
32
33
  */
33
34
  createFromAction<P = any>(from: EntityAction, newProperties: Partial<EntityActionPayload<P>>): EntityAction<P>;
34
35
  formatActionType(op: string, tag: string): string;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityActionFactory, never>;
37
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityActionFactory>;
35
38
  }
@@ -4,6 +4,7 @@ import { Update } from '@ngrx/entity';
4
4
  import { DefaultDataServiceConfig } from './default-data-service-config';
5
5
  import { EntityCollectionDataService, HttpMethods, QueryParams } from './interfaces';
6
6
  import { HttpUrlGenerator } from './http-url-generator';
7
+ import * as i0 from "@angular/core";
7
8
  /**
8
9
  * A basic, generic entity data service
9
10
  * suitable for persistence of most entities.
@@ -49,4 +50,6 @@ export declare class DefaultDataServiceFactory {
49
50
  * @param entityName {string} Name of the entity type for this data service
50
51
  */
51
52
  create<T>(entityName: string): EntityCollectionDataService<T>;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultDataServiceFactory, [null, null, { optional: true; }]>;
54
+ static ɵprov: i0.ɵɵInjectableDeclaration<DefaultDataServiceFactory>;
52
55
  }
@@ -5,6 +5,7 @@ import { ChangeSet } from '../actions/entity-cache-change-set';
5
5
  import { DefaultDataServiceConfig } from './default-data-service-config';
6
6
  import { EntityDefinitionService } from '../entity-metadata/entity-definition.service';
7
7
  import { RequestData } from './interfaces';
8
+ import * as i0 from "@angular/core";
8
9
  /**
9
10
  * Default data service for making remote service calls targeting the entire EntityCache.
10
11
  * See EntityDataService for services that target a single EntityCollection
@@ -52,4 +53,6 @@ export declare class EntityCacheDataService {
52
53
  * @param entityName name of the entity type
53
54
  */
54
55
  protected getIdSelector(entityName: string): IdSelector<any>;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityCacheDataService, [null, null, { optional: true; }]>;
57
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityCacheDataService>;
55
58
  }
@@ -1,5 +1,6 @@
1
1
  import { EntityCollectionDataService } from './interfaces';
2
2
  import { DefaultDataServiceFactory } from './default-data.service';
3
+ import * as i0 from "@angular/core";
3
4
  /**
4
5
  * Registry of EntityCollection data services that make REST-like CRUD calls
5
6
  * to entity collection endpoints.
@@ -42,4 +43,6 @@ export declare class EntityDataService {
42
43
  registerServices(services: {
43
44
  [name: string]: EntityCollectionDataService<any>;
44
45
  }): void;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityDataService, never>;
47
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityDataService>;
45
48
  }
@@ -1,4 +1,5 @@
1
1
  import { Pluralizer } from '../utils/interfaces';
2
+ import * as i0 from "@angular/core";
2
3
  /**
3
4
  * Known resource URLS for specific entity types.
4
5
  * Each entity's resource URLS are endpoints that
@@ -86,6 +87,8 @@ export declare class DefaultHttpUrlGenerator implements HttpUrlGenerator {
86
87
  * Note: this method does not ensure that resource urls are well-formed.
87
88
  */
88
89
  registerHttpResourceUrls(entityHttpResourceUrls: EntityHttpResourceUrls): void;
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultHttpUrlGenerator, never>;
91
+ static ɵprov: i0.ɵɵInjectableDeclaration<DefaultHttpUrlGenerator>;
89
92
  }
90
93
  /** Remove leading & trailing spaces or slashes */
91
94
  export declare function normalizeRoot(root: string): string;
@@ -3,6 +3,7 @@ import { DataServiceError, EntityActionDataServiceError } from './data-service-e
3
3
  import { EntityAction } from '../actions/entity-action';
4
4
  import { EntityActionFactory } from '../actions/entity-action-factory';
5
5
  import { Logger } from '../utils/interfaces';
6
+ import * as i0 from "@angular/core";
6
7
  /**
7
8
  * Handling of responses from persistence operation
8
9
  */
@@ -24,4 +25,6 @@ export declare class DefaultPersistenceResultHandler implements PersistenceResul
24
25
  handleSuccess(originalAction: EntityAction): (data: any) => Action;
25
26
  /** Handle error result of persistence operation on an EntityAction */
26
27
  handleError(originalAction: EntityAction): (error: DataServiceError | Error) => EntityAction<EntityActionDataServiceError>;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultPersistenceResultHandler, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<DefaultPersistenceResultHandler>;
27
30
  }
@@ -7,6 +7,7 @@ import { EntityDispatcherDefaultOptions } from './entity-dispatcher-default-opti
7
7
  import { MergeStrategy } from '../actions/merge-strategy';
8
8
  import { ChangeSet, ChangeSetItem } from '../actions/entity-cache-change-set';
9
9
  import { EntityCacheQuerySet } from '../actions/entity-cache-action';
10
+ import * as i0 from "@angular/core";
10
11
  /**
11
12
  * Dispatches Entity Cache actions to the EntityCache reducer
12
13
  */
@@ -108,4 +109,6 @@ export declare class EntityCacheDispatcher {
108
109
  * @param crid The correlationId for both the save and response actions.
109
110
  */
110
111
  private getSaveEntitiesResponseData$;
112
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityCacheDispatcher, never>;
113
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityCacheDispatcher>;
111
114
  }
@@ -1,3 +1,4 @@
1
+ import * as i0 from "@angular/core";
1
2
  /**
2
3
  * Default options for EntityDispatcher behavior
3
4
  * such as whether `add()` is optimistic or pessimistic by default.
@@ -17,4 +18,6 @@ export declare class EntityDispatcherDefaultOptions {
17
18
  optimisticUpsert: boolean;
18
19
  /** True if entities in a cache saveEntities request are saved optimistically; false if saved pessimistically. */
19
20
  optimisticSaveEntities: boolean;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityDispatcherDefaultOptions, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityDispatcherDefaultOptions>;
20
23
  }
@@ -8,6 +8,7 @@ import { EntityActionFactory } from '../actions/entity-action-factory';
8
8
  import { EntityCache } from '../reducers/entity-cache';
9
9
  import { EntityCacheSelector } from '../selectors/entity-cache-selector';
10
10
  import { EntityDispatcher } from './entity-dispatcher';
11
+ import * as i0 from "@angular/core";
11
12
  /** Creates EntityDispatchers for entity collections */
12
13
  export declare class EntityDispatcherFactory implements OnDestroy {
13
14
  private entityActionFactory;
@@ -38,4 +39,6 @@ export declare class EntityDispatcherFactory implements OnDestroy {
38
39
  */
39
40
  defaultOptions?: Partial<EntityDispatcherDefaultOptions>): EntityDispatcher<T>;
40
41
  ngOnDestroy(): void;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityDispatcherFactory, never>;
43
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityDispatcherFactory>;
41
44
  }
@@ -5,6 +5,7 @@ import { EntityActionFactory } from '../actions/entity-action-factory';
5
5
  import { SaveEntities, SaveEntitiesCancel } from '../actions/entity-cache-action';
6
6
  import { EntityCacheDataService } from '../dataservices/entity-cache-data.service';
7
7
  import { Logger } from '../utils/interfaces';
8
+ import * as i0 from "@angular/core";
8
9
  export declare class EntityCacheEffects {
9
10
  private actions;
10
11
  private dataService;
@@ -40,4 +41,6 @@ export declare class EntityCacheEffects {
40
41
  private handleSaveEntitiesError$;
41
42
  /** return handler of the ChangeSet result of successful saveEntities() */
42
43
  private handleSaveEntitiesSuccess$;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityCacheEffects, [null, null, null, null, { optional: true; }]>;
45
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityCacheEffects>;
43
46
  }
@@ -6,6 +6,7 @@ import { EntityActionFactory } from '../actions/entity-action-factory';
6
6
  import { EntityOp } from '../actions/entity-op';
7
7
  import { EntityDataService } from '../dataservices/entity-data.service';
8
8
  import { PersistenceResultHandler } from '../dataservices/persistence-result-handler.service';
9
+ import * as i0 from "@angular/core";
9
10
  export declare const persistOps: EntityOp[];
10
11
  export declare class EntityEffects {
11
12
  private actions;
@@ -49,4 +50,6 @@ export declare class EntityEffects {
49
50
  * return a scalar success action that looks like the operation succeeded.
50
51
  */
51
52
  private handleSkipSuccess$;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityEffects, [null, null, null, null, { optional: true; }]>;
54
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityEffects>;
52
55
  }
@@ -5,6 +5,8 @@ import { EntityCache } from './reducers/entity-cache';
5
5
  import { EntityCollection } from './reducers/entity-collection';
6
6
  import { EntityMetadataMap } from './entity-metadata/entity-metadata';
7
7
  import { EntityCacheReducerFactory } from './reducers/entity-cache-reducer';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "@ngrx/store";
8
10
  export interface EntityDataModuleConfig {
9
11
  entityMetadata?: EntityMetadataMap;
10
12
  entityCacheMetaReducers?: (MetaReducer<EntityCache, Action> | InjectionToken<MetaReducer<EntityCache, Action>>)[];
@@ -30,4 +32,7 @@ export declare class EntityDataModuleWithoutEffects implements OnDestroy {
30
32
  static forRoot(config: EntityDataModuleConfig): ModuleWithProviders<EntityDataModuleWithoutEffects>;
31
33
  constructor(reducerManager: ReducerManager, entityCacheReducerFactory: EntityCacheReducerFactory, injector: Injector, entityCacheName: string, initialState: any, metaReducers: (MetaReducer<EntityCache, Action> | InjectionToken<MetaReducer<EntityCache, Action>>)[]);
32
34
  ngOnDestroy(): void;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityDataModuleWithoutEffects, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
36
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EntityDataModuleWithoutEffects, never, [typeof i1.StoreModule], never>;
37
+ static ɵinj: i0.ɵɵInjectorDeclaration<EntityDataModuleWithoutEffects>;
33
38
  }
@@ -3,6 +3,9 @@ import { EffectSources } from '@ngrx/effects';
3
3
  import { EntityCacheEffects } from './effects/entity-cache-effects';
4
4
  import { EntityEffects } from './effects/entity-effects';
5
5
  import { EntityDataModuleConfig } from './entity-data-without-effects.module';
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "./entity-data-without-effects.module";
8
+ import * as i2 from "@ngrx/effects";
6
9
  /**
7
10
  * entity-data main module includes effects and HTTP data services
8
11
  * Configure with `forRoot`.
@@ -18,4 +21,7 @@ export declare class EntityDataModule {
18
21
  * Warning: undocumented @ngrx/effects API
19
22
  */
20
23
  addEffects(effectSourceInstance: any): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityDataModule, never>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EntityDataModule, never, [typeof i1.EntityDataModuleWithoutEffects, typeof i2.EffectsModule], never>;
26
+ static ɵinj: i0.ɵɵInjectorDeclaration<EntityDataModule>;
21
27
  }
@@ -1,5 +1,6 @@
1
1
  import { EntityDefinition } from './entity-definition';
2
2
  import { EntityMetadata, EntityMetadataMap } from './entity-metadata';
3
+ import * as i0 from "@angular/core";
3
4
  export interface EntityDefinitions {
4
5
  [entityName: string]: EntityDefinition<any>;
5
6
  }
@@ -56,4 +57,6 @@ export declare class EntityDefinitionService {
56
57
  * });
57
58
  */
58
59
  registerDefinitions(definitions: EntityDefinitions): void;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityDefinitionService, [{ optional: true; }]>;
61
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityDefinitionService>;
59
62
  }
@@ -55,7 +55,7 @@ export declare class EntityCollectionServiceBase<T, S$ extends EntitySelectors$<
55
55
  */
56
56
  dispatch(action: Action): Action;
57
57
  /** The NgRx Store for the {EntityCache} */
58
- get store(): Store<import("..").EntityCache>;
58
+ get store(): Store<import("@ngrx/data").EntityCache>;
59
59
  /**
60
60
  * Utility class with methods to validate EntityAction payloads.
61
61
  */
@@ -3,6 +3,7 @@ import { EntityDispatcherFactory } from '../dispatchers/entity-dispatcher-factor
3
3
  import { EntityDefinitionService } from '../entity-metadata/entity-definition.service';
4
4
  import { EntitySelectors, EntitySelectorsFactory } from '../selectors/entity-selectors';
5
5
  import { EntitySelectors$, EntitySelectors$Factory } from '../selectors/entity-selectors$';
6
+ import * as i0 from "@angular/core";
6
7
  /** Core ingredients of an EntityCollectionService */
7
8
  export interface EntityCollectionServiceElements<T, S$ extends EntitySelectors$<T> = EntitySelectors$<T>> {
8
9
  readonly dispatcher: EntityDispatcher<T>;
@@ -22,4 +23,6 @@ export declare class EntityCollectionServiceElementsFactory {
22
23
  * @param entityName - name of the entity type
23
24
  */
24
25
  create<T, S$ extends EntitySelectors$<T> = EntitySelectors$<T>>(entityName: string): EntityCollectionServiceElements<T, S$>;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityCollectionServiceElementsFactory, never>;
27
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityCollectionServiceElementsFactory>;
25
28
  }
@@ -1,6 +1,7 @@
1
1
  import { EntityCollectionService } from './entity-collection-service';
2
2
  import { EntityCollectionServiceElementsFactory } from './entity-collection-service-elements-factory';
3
3
  import { EntitySelectors$ } from '../selectors/entity-selectors$';
4
+ import * as i0 from "@angular/core";
4
5
  /**
5
6
  * Creates EntityCollectionService instances for
6
7
  * a cached collection of T entities in the ngrx store.
@@ -16,4 +17,6 @@ export declare class EntityCollectionServiceFactory {
16
17
  * @param entityName - name of the entity type
17
18
  */
18
19
  create<T, S$ extends EntitySelectors$<T> = EntitySelectors$<T>>(entityName: string): EntityCollectionService<T>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityCollectionServiceFactory, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityCollectionServiceFactory>;
19
22
  }
@@ -7,6 +7,7 @@ import { EntityCollectionServiceFactory } from './entity-collection-service-fact
7
7
  import { EntityCollectionServiceMap, EntityServices } from './entity-services';
8
8
  import { EntitySelectors$ } from '../selectors/entity-selectors$';
9
9
  import { EntityServicesElements } from './entity-services-elements';
10
+ import * as i0 from "@angular/core";
10
11
  /**
11
12
  * Base/default class of a central registry of EntityCollectionServices for all entity types.
12
13
  * Create your own subclass to add app-specific members for an improved developer experience.
@@ -73,4 +74,6 @@ export declare class EntityServicesBase implements EntityServices {
73
74
  * EntityCollectionServices to register, either as a map or an array
74
75
  */
75
76
  registerEntityCollectionServices(entityCollectionServices: EntityCollectionServiceMap | EntityCollectionService<any>[]): void;
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityServicesBase, never>;
78
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityServicesBase>;
76
79
  }
@@ -5,6 +5,7 @@ import { EntityCache } from '../reducers/entity-cache';
5
5
  import { EntityDispatcherFactory } from '../dispatchers/entity-dispatcher-factory';
6
6
  import { EntitySelectors$Factory } from '../selectors/entity-selectors$';
7
7
  import { EntityCollectionServiceFactory } from './entity-collection-service-factory';
8
+ import * as i0 from "@angular/core";
8
9
  /** Core ingredients of an EntityServices class */
9
10
  export declare class EntityServicesElements {
10
11
  /**
@@ -35,4 +36,6 @@ export declare class EntityServicesElements {
35
36
  * A replay observable of the most recent action reduced by the store.
36
37
  */
37
38
  readonly reducedActions$: Observable<Action>;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityServicesElements, never>;
40
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityServicesElements>;
38
41
  }
@@ -4,6 +4,7 @@ import { ClearCollections, LoadCollections, MergeQuerySet, SaveEntities, SaveEnt
4
4
  import { EntityCollectionCreator } from './entity-collection-creator';
5
5
  import { EntityCollectionReducerRegistry } from './entity-collection-reducer-registry';
6
6
  import { Logger } from '../utils/interfaces';
7
+ import * as i0 from "@angular/core";
7
8
  /**
8
9
  * Creates the EntityCacheReducer via its create() method
9
10
  */
@@ -44,4 +45,6 @@ export declare class EntityCacheReducerFactory {
44
45
  private applyCollectionReducer;
45
46
  /** Ensure loading is false for every collection in entityNames */
46
47
  private clearLoadingFlags;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityCacheReducerFactory, never>;
49
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityCacheReducerFactory>;
47
50
  }
@@ -1,5 +1,6 @@
1
1
  import { EntityCollection } from './entity-collection';
2
2
  import { EntityDefinitionService } from '../entity-metadata/entity-definition.service';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class EntityCollectionCreator {
4
5
  private entityDefinitionService?;
5
6
  constructor(entityDefinitionService?: EntityDefinitionService);
@@ -8,5 +9,7 @@ export declare class EntityCollectionCreator {
8
9
  * @param entityName {string} entity type name
9
10
  */
10
11
  create<T = any, S extends EntityCollection<T> = EntityCollection<T>>(entityName: string): S;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityCollectionCreator, [{ optional: true; }]>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityCollectionCreator>;
11
14
  }
12
15
  export declare function createEmptyEntityCollection<T>(entityName?: string): EntityCollection<T>;
@@ -8,6 +8,7 @@ import { EntityDefinition } from '../entity-metadata/entity-definition';
8
8
  import { EntityDefinitionService } from '../entity-metadata/entity-definition.service';
9
9
  import { MergeStrategy } from '../actions/merge-strategy';
10
10
  import { UpdateResponseData } from '../actions/update-response-data';
11
+ import * as i0 from "@angular/core";
11
12
  /**
12
13
  * Map of {EntityOp} to reducer method for the operation.
13
14
  * If an operation is missing, caller should return the collection for that reducer.
@@ -359,4 +360,6 @@ export declare class EntityCollectionReducerMethodsFactory {
359
360
  constructor(entityDefinitionService: EntityDefinitionService);
360
361
  /** Create the {EntityCollectionReducerMethods} for the named entity type */
361
362
  create<T>(entityName: string): EntityCollectionReducerMethodMap<T>;
363
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityCollectionReducerMethodsFactory, never>;
364
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityCollectionReducerMethodsFactory>;
362
365
  }
@@ -2,6 +2,7 @@ import { MetaReducer } from '@ngrx/store';
2
2
  import { EntityAction } from '../actions/entity-action';
3
3
  import { EntityCollection } from './entity-collection';
4
4
  import { EntityCollectionReducer, EntityCollectionReducerFactory } from './entity-collection-reducer';
5
+ import * as i0 from "@angular/core";
5
6
  /** A hash of EntityCollectionReducers */
6
7
  export interface EntityCollectionReducers {
7
8
  [entity: string]: EntityCollectionReducer<any>;
@@ -41,4 +42,6 @@ export declare class EntityCollectionReducerRegistry {
41
42
  * });
42
43
  */
43
44
  registerReducers(reducers: EntityCollectionReducers): void;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityCollectionReducerRegistry, [null, { optional: true; }]>;
46
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityCollectionReducerRegistry>;
44
47
  }
@@ -1,6 +1,7 @@
1
1
  import { EntityAction } from '../actions/entity-action';
2
2
  import { EntityCollection } from './entity-collection';
3
3
  import { EntityCollectionReducerMethodsFactory } from './entity-collection-reducer-methods';
4
+ import * as i0 from "@angular/core";
4
5
  export declare type EntityCollectionReducer<T = any> = (collection: EntityCollection<T>, action: EntityAction) => EntityCollection<T>;
5
6
  /** Create a default reducer for a specific entity collection */
6
7
  export declare class EntityCollectionReducerFactory {
@@ -8,4 +9,6 @@ export declare class EntityCollectionReducerFactory {
8
9
  constructor(methodsFactory: EntityCollectionReducerMethodsFactory);
9
10
  /** Create a default reducer for a collection of entities of T */
10
11
  create<T = any>(entityName: string): EntityCollectionReducer<T>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityCollectionReducerFactory, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntityCollectionReducerFactory>;
11
14
  }
@@ -7,6 +7,7 @@ import { EntityCacheSelector } from './entity-cache-selector';
7
7
  import { EntitySelectors } from './entity-selectors';
8
8
  import { EntityCache } from '../reducers/entity-cache';
9
9
  import { EntityCollection, ChangeStateMap } from '../reducers/entity-collection';
10
+ import * as i0 from "@angular/core";
10
11
  /**
11
12
  * The selector observable functions for entity collection members.
12
13
  */
@@ -57,4 +58,6 @@ export declare class EntitySelectors$Factory {
57
58
  * @param selectors - selector functions for this collection.
58
59
  **/
59
60
  create<T, S$ extends EntitySelectors$<T> = EntitySelectors$<T>>(entityName: string, selectors: EntitySelectors<T>): S$;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntitySelectors$Factory, never>;
62
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntitySelectors$Factory>;
60
63
  }
@@ -6,6 +6,7 @@ import { EntityCacheSelector } from './entity-cache-selector';
6
6
  import { EntityCollection, ChangeStateMap } from '../reducers/entity-collection';
7
7
  import { EntityCollectionCreator } from '../reducers/entity-collection-creator';
8
8
  import { EntityMetadata } from '../entity-metadata/entity-metadata';
9
+ import * as i0 from "@angular/core";
9
10
  /**
10
11
  * The selector functions for entity collection members,
11
12
  * Selects from the entity collection to the collection member
@@ -111,4 +112,6 @@ export declare class EntitySelectorsFactory {
111
112
  * through the collection, to the collection members.
112
113
  */
113
114
  create<T, S extends EntitySelectors<T> = EntitySelectors<T>>(entityName: string): S;
115
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntitySelectorsFactory, [{ optional: true; }, { optional: true; }]>;
116
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntitySelectorsFactory>;
114
117
  }
@@ -1,3 +1,4 @@
1
+ import * as i0 from "@angular/core";
1
2
  /**
2
3
  * Generates a string id beginning 'CRID',
3
4
  * followed by a monotonically increasing integer for use as a correlation id.
@@ -14,4 +15,6 @@ export declare class CorrelationIdGenerator {
14
15
  protected prefix: string;
15
16
  /** Return the next correlation id */
16
17
  next(): string;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<CorrelationIdGenerator, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<CorrelationIdGenerator>;
17
20
  }
@@ -1,6 +1,9 @@
1
1
  import { Logger } from './interfaces';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class DefaultLogger implements Logger {
3
4
  error(message?: any, extra?: any): void;
4
5
  log(message?: any, extra?: any): void;
5
6
  warn(message?: any, extra?: any): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultLogger, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<DefaultLogger>;
6
9
  }
@@ -1,4 +1,5 @@
1
1
  import { EntityPluralNames } from './interfaces';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class DefaultPluralizer {
3
4
  pluralNames: EntityPluralNames;
4
5
  constructor(pluralNames: EntityPluralNames[]);
@@ -12,4 +13,6 @@ export declare class DefaultPluralizer {
12
13
  * @param pluralNames {EntityPluralNames} plural names for entity types
13
14
  */
14
15
  registerPluralNames(pluralNames: EntityPluralNames): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultPluralizer, [{ optional: true; }]>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<DefaultPluralizer>;
15
18
  }