@ngrx/data 20.1.0 → 21.0.0-rc.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/fesm2022/ngrx-data.mjs +86 -86
- package/package.json +8 -8
- package/schematics/ng-add/index.js +39 -42
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/schema.js +0 -2
- package/schematics-core/index.js +24 -75
- package/schematics-core/index.js.map +1 -1
- package/schematics-core/utility/ast-utils.js +28 -44
- package/schematics-core/utility/ast-utils.js.map +1 -1
- package/schematics-core/utility/change.js +8 -15
- package/schematics-core/utility/change.js.map +1 -1
- package/schematics-core/utility/config.js +4 -8
- package/schematics-core/utility/config.js.map +1 -1
- package/schematics-core/utility/find-component.js +17 -22
- package/schematics-core/utility/find-component.js.map +1 -1
- package/schematics-core/utility/find-module.js +19 -24
- package/schematics-core/utility/find-module.js.map +1 -1
- package/schematics-core/utility/json-utilts.js +1 -4
- package/schematics-core/utility/json-utilts.js.map +1 -1
- package/schematics-core/utility/libs-version.js +1 -4
- package/schematics-core/utility/libs-version.js.map +1 -1
- package/schematics-core/utility/ngrx-utils.js +28 -36
- package/schematics-core/utility/ngrx-utils.js.map +1 -1
- package/schematics-core/utility/package.js +1 -4
- package/schematics-core/utility/package.js.map +1 -1
- package/schematics-core/utility/parse-name.js +5 -8
- package/schematics-core/utility/parse-name.js.map +1 -1
- package/schematics-core/utility/project.js +9 -15
- package/schematics-core/utility/project.js.map +1 -1
- package/schematics-core/utility/standalone.js +13 -18
- package/schematics-core/utility/standalone.js.map +1 -1
- package/schematics-core/utility/strings.js +9 -20
- package/schematics-core/utility/strings.js.map +1 -1
- package/schematics-core/utility/update.js +4 -7
- package/schematics-core/utility/update.js.map +1 -1
- package/schematics-core/utility/visitors.js +16 -30
- package/schematics-core/utility/visitors.js.map +1 -1
- package/types/ngrx-data.d.ts +3465 -0
- package/index.d.ts +0 -6
- package/public_api.d.ts +0 -1
- package/src/actions/entity-action-factory.d.ts +0 -38
- package/src/actions/entity-action-guard.d.ts +0 -33
- package/src/actions/entity-action-operators.d.ts +0 -30
- package/src/actions/entity-action.d.ts +0 -37
- package/src/actions/entity-cache-action.d.ts +0 -147
- package/src/actions/entity-cache-change-set.d.ts +0 -66
- package/src/actions/entity-op.d.ts +0 -70
- package/src/actions/merge-strategy.d.ts +0 -20
- package/src/actions/update-response-data.d.ts +0 -20
- package/src/dataservices/data-service-error.d.ts +0 -18
- package/src/dataservices/default-data-service-config.d.ts +0 -27
- package/src/dataservices/default-data.service.d.ts +0 -57
- package/src/dataservices/entity-cache-data.service.d.ts +0 -58
- package/src/dataservices/entity-data.service.d.ts +0 -48
- package/src/dataservices/http-url-generator.d.ts +0 -94
- package/src/dataservices/interfaces.d.ts +0 -61
- package/src/dataservices/persistence-result-handler.service.d.ts +0 -30
- package/src/dispatchers/entity-cache-dispatcher.d.ts +0 -114
- package/src/dispatchers/entity-commands.d.ts +0 -217
- package/src/dispatchers/entity-dispatcher-base.d.ts +0 -269
- package/src/dispatchers/entity-dispatcher-default-options.d.ts +0 -23
- package/src/dispatchers/entity-dispatcher-factory.d.ts +0 -46
- package/src/dispatchers/entity-dispatcher.d.ts +0 -58
- package/src/effects/entity-cache-effects.d.ts +0 -46
- package/src/effects/entity-effects-scheduler.d.ts +0 -4
- package/src/effects/entity-effects.d.ts +0 -55
- package/src/entity-data-config.d.ts +0 -15
- package/src/entity-data-without-effects.module.d.ts +0 -15
- package/src/entity-data.module.d.ts +0 -15
- package/src/entity-metadata/entity-definition.d.ts +0 -16
- package/src/entity-metadata/entity-definition.service.d.ts +0 -62
- package/src/entity-metadata/entity-filters.d.ts +0 -12
- package/src/entity-metadata/entity-metadata.d.ts +0 -19
- package/src/entity-services/entity-collection-service-base.d.ts +0 -299
- package/src/entity-services/entity-collection-service-elements-factory.d.ts +0 -28
- package/src/entity-services/entity-collection-service-factory.d.ts +0 -22
- package/src/entity-services/entity-collection-service.d.ts +0 -37
- package/src/entity-services/entity-services-base.d.ts +0 -79
- package/src/entity-services/entity-services-elements.d.ts +0 -41
- package/src/entity-services/entity-services.d.ts +0 -50
- package/src/index.d.ts +0 -65
- package/src/provide-entity-data.d.ts +0 -78
- package/src/reducers/constants.d.ts +0 -8
- package/src/reducers/entity-cache-reducer.d.ts +0 -50
- package/src/reducers/entity-cache.d.ts +0 -4
- package/src/reducers/entity-change-tracker-base.d.ts +0 -181
- package/src/reducers/entity-change-tracker.d.ts +0 -169
- package/src/reducers/entity-collection-creator.d.ts +0 -15
- package/src/reducers/entity-collection-reducer-methods.d.ts +0 -365
- package/src/reducers/entity-collection-reducer-registry.d.ts +0 -47
- package/src/reducers/entity-collection-reducer.d.ts +0 -14
- package/src/reducers/entity-collection.d.ts +0 -41
- package/src/selectors/entity-cache-selector.d.ts +0 -7
- package/src/selectors/entity-selectors$.d.ts +0 -63
- package/src/selectors/entity-selectors.d.ts +0 -117
- package/src/utils/correlation-id-generator.d.ts +0 -20
- package/src/utils/default-logger.d.ts +0 -9
- package/src/utils/default-pluralizer.d.ts +0 -18
- package/src/utils/guid-fns.d.ts +0 -24
- package/src/utils/interfaces.d.ts +0 -16
- package/src/utils/utilities.d.ts +0 -26
package/index.d.ts
DELETED
package/public_api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/index';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { EntityOp } from './entity-op';
|
|
2
|
-
import { EntityAction, EntityActionOptions, EntityActionPayload } from './entity-action';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class EntityActionFactory {
|
|
5
|
-
/**
|
|
6
|
-
* Create an EntityAction to perform an operation (op) for a particular entity type
|
|
7
|
-
* (entityName) with optional data and other optional flags
|
|
8
|
-
* @param entityName Name of the entity type
|
|
9
|
-
* @param entityOp Operation to perform (EntityOp)
|
|
10
|
-
* @param [data] data for the operation
|
|
11
|
-
* @param [options] additional options
|
|
12
|
-
*/
|
|
13
|
-
create<P = any>(entityName: string, entityOp: EntityOp, data?: P, options?: EntityActionOptions): EntityAction<P>;
|
|
14
|
-
/**
|
|
15
|
-
* Create an EntityAction to perform an operation (op) for a particular entity type
|
|
16
|
-
* (entityName) with optional data and other optional flags
|
|
17
|
-
* @param payload Defines the EntityAction and its options
|
|
18
|
-
*/
|
|
19
|
-
create<P = any>(payload: EntityActionPayload<P>): EntityAction<P>;
|
|
20
|
-
/**
|
|
21
|
-
* Create an EntityAction to perform an operation (op) for a particular entity type
|
|
22
|
-
* (entityName) with optional data and other optional flags
|
|
23
|
-
* @param payload Defines the EntityAction and its options
|
|
24
|
-
*/
|
|
25
|
-
protected createCore<P = any>(payload: EntityActionPayload<P>): {
|
|
26
|
-
type: string;
|
|
27
|
-
payload: EntityActionPayload<P>;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Create an EntityAction from another EntityAction, replacing properties with those from newPayload;
|
|
31
|
-
* @param from Source action that is the base for the new action
|
|
32
|
-
* @param newProperties New EntityAction properties that replace the source action properties
|
|
33
|
-
*/
|
|
34
|
-
createFromAction<P = any>(from: EntityAction, newProperties: Partial<EntityActionPayload<P>>): EntityAction<P>;
|
|
35
|
-
formatActionType(op: string, tag: string): string;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntityActionFactory, never>;
|
|
37
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EntityActionFactory>;
|
|
38
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { IdSelector, Update } from '@ngrx/entity';
|
|
2
|
-
import { EntityAction } from './entity-action';
|
|
3
|
-
import { UpdateResponseData } from '../actions/update-response-data';
|
|
4
|
-
/**
|
|
5
|
-
* Guard methods that ensure EntityAction payload is as expected.
|
|
6
|
-
* Each method returns that payload if it passes the guard or
|
|
7
|
-
* throws an error.
|
|
8
|
-
*/
|
|
9
|
-
export declare class EntityActionGuard<T> {
|
|
10
|
-
private entityName;
|
|
11
|
-
private selectId;
|
|
12
|
-
constructor(entityName: string, selectId: IdSelector<T>);
|
|
13
|
-
/** Throw if the action payload is not an entity with a valid key */
|
|
14
|
-
mustBeEntity(action: EntityAction<T>): T;
|
|
15
|
-
/** Throw if the action payload is not an array of entities with valid keys */
|
|
16
|
-
mustBeEntities(action: EntityAction<T[]>): T[];
|
|
17
|
-
/** Throw if the action payload is not a single, valid key */
|
|
18
|
-
mustBeKey(action: EntityAction<string | number>): string | number | never;
|
|
19
|
-
/** Throw if the action payload is not an array of valid keys */
|
|
20
|
-
mustBeKeys(action: EntityAction<(string | number)[]>): (string | number)[];
|
|
21
|
-
/** Throw if the action payload is not an update with a valid key (id) */
|
|
22
|
-
mustBeUpdate(action: EntityAction<Update<T>>): Update<T>;
|
|
23
|
-
/** Throw if the action payload is not an array of updates with valid keys (ids) */
|
|
24
|
-
mustBeUpdates(action: EntityAction<Update<T>[]>): Update<T>[];
|
|
25
|
-
/** Throw if the action payload is not an update response with a valid key (id) */
|
|
26
|
-
mustBeUpdateResponse(action: EntityAction<UpdateResponseData<T>>): UpdateResponseData<T>;
|
|
27
|
-
/** Throw if the action payload is not an array of update responses with valid keys (ids) */
|
|
28
|
-
mustBeUpdateResponses(action: EntityAction<UpdateResponseData<T>[]>): UpdateResponseData<T>[];
|
|
29
|
-
private extractData;
|
|
30
|
-
/** Return true if this key (id) is invalid */
|
|
31
|
-
private isNotKeyType;
|
|
32
|
-
private throwError;
|
|
33
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { OperatorFunction } from 'rxjs';
|
|
2
|
-
import { EntityAction } from './entity-action';
|
|
3
|
-
import { EntityOp } from './entity-op';
|
|
4
|
-
/**
|
|
5
|
-
* Select actions concerning one of the allowed Entity operations
|
|
6
|
-
* @param allowedEntityOps Entity operations (e.g, EntityOp.QUERY_ALL) whose actions should be selected
|
|
7
|
-
* Example:
|
|
8
|
-
* ```
|
|
9
|
-
* this.actions.pipe(ofEntityOp(EntityOp.QUERY_ALL, EntityOp.QUERY_MANY), ...)
|
|
10
|
-
* this.actions.pipe(ofEntityOp(...queryOps), ...)
|
|
11
|
-
* this.actions.pipe(ofEntityOp(queryOps), ...)
|
|
12
|
-
* this.actions.pipe(ofEntityOp(), ...) // any action with a defined `entityOp` property
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare function ofEntityOp<T extends EntityAction>(allowedOps: string[] | EntityOp[]): OperatorFunction<EntityAction, T>;
|
|
16
|
-
export declare function ofEntityOp<T extends EntityAction>(...allowedOps: (string | EntityOp)[]): OperatorFunction<EntityAction, T>;
|
|
17
|
-
/**
|
|
18
|
-
* Select actions concerning one of the allowed Entity types
|
|
19
|
-
* @param allowedEntityNames Entity-type names (e.g, 'Hero') whose actions should be selected
|
|
20
|
-
* Example:
|
|
21
|
-
* ```
|
|
22
|
-
* this.actions.pipe(ofEntityType(), ...) // ayn EntityAction with a defined entity type property
|
|
23
|
-
* this.actions.pipe(ofEntityType('Hero'), ...) // EntityActions for the Hero entity
|
|
24
|
-
* this.actions.pipe(ofEntityType('Hero', 'Villain', 'Sidekick'), ...)
|
|
25
|
-
* this.actions.pipe(ofEntityType(...theChosen), ...)
|
|
26
|
-
* this.actions.pipe(ofEntityType(theChosen), ...)
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare function ofEntityType<T extends EntityAction>(allowedEntityNames?: string[]): OperatorFunction<EntityAction, T>;
|
|
30
|
-
export declare function ofEntityType<T extends EntityAction>(...allowedEntityNames: string[]): OperatorFunction<EntityAction, T>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { EntityOp } from './entity-op';
|
|
3
|
-
import { MergeStrategy } from './merge-strategy';
|
|
4
|
-
import { HttpOptions } from '../dataservices/interfaces';
|
|
5
|
-
/** Action concerning an entity collection. */
|
|
6
|
-
export interface EntityAction<P = any> extends Action {
|
|
7
|
-
readonly type: string;
|
|
8
|
-
readonly payload: EntityActionPayload<P>;
|
|
9
|
-
}
|
|
10
|
-
/** Options of an EntityAction */
|
|
11
|
-
export interface EntityActionOptions {
|
|
12
|
-
/** Correlate related EntityActions, particularly related saves. Must be serializable. */
|
|
13
|
-
readonly correlationId?: any;
|
|
14
|
-
/** True if should perform action optimistically (before server responds) */
|
|
15
|
-
readonly isOptimistic?: boolean;
|
|
16
|
-
readonly mergeStrategy?: MergeStrategy;
|
|
17
|
-
/** The tag to use in the action's type. The entityName if no tag specified. */
|
|
18
|
-
readonly tag?: string;
|
|
19
|
-
/** Options that will be passed to the dataService http request. Allows setting of Query Parameters and Headers */
|
|
20
|
-
readonly httpOptions?: HttpOptions;
|
|
21
|
-
/**
|
|
22
|
-
* The action was determined (usually by a reducer) to be in error.
|
|
23
|
-
* Downstream effects should not process but rather treat it as an error.
|
|
24
|
-
*/
|
|
25
|
-
error?: Error;
|
|
26
|
-
/**
|
|
27
|
-
* Downstream effects should skip processing this action but should return
|
|
28
|
-
* an innocuous Observable<Action> of success.
|
|
29
|
-
*/
|
|
30
|
-
skip?: boolean;
|
|
31
|
-
}
|
|
32
|
-
/** Payload of an EntityAction */
|
|
33
|
-
export interface EntityActionPayload<P = any> extends EntityActionOptions {
|
|
34
|
-
readonly entityName: string;
|
|
35
|
-
readonly entityOp: EntityOp;
|
|
36
|
-
readonly data?: P;
|
|
37
|
-
}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { ChangeSet } from './entity-cache-change-set';
|
|
3
|
-
export { ChangeSet, ChangeSetOperation } from './entity-cache-change-set';
|
|
4
|
-
import { DataServiceError } from '../dataservices/data-service-error';
|
|
5
|
-
import { EntityActionOptions } from '../actions/entity-action';
|
|
6
|
-
import { EntityCache } from '../reducers/entity-cache';
|
|
7
|
-
import { MergeStrategy } from '../actions/merge-strategy';
|
|
8
|
-
export declare enum EntityCacheAction {
|
|
9
|
-
CLEAR_COLLECTIONS = "@ngrx/data/entity-cache/clear-collections",
|
|
10
|
-
LOAD_COLLECTIONS = "@ngrx/data/entity-cache/load-collections",
|
|
11
|
-
MERGE_QUERY_SET = "@ngrx/data/entity-cache/merge-query-set",
|
|
12
|
-
SET_ENTITY_CACHE = "@ngrx/data/entity-cache/set-cache",
|
|
13
|
-
SAVE_ENTITIES = "@ngrx/data/entity-cache/save-entities",
|
|
14
|
-
SAVE_ENTITIES_CANCEL = "@ngrx/data/entity-cache/save-entities-cancel",
|
|
15
|
-
SAVE_ENTITIES_CANCELED = "@ngrx/data/entity-cache/save-entities-canceled",
|
|
16
|
-
SAVE_ENTITIES_ERROR = "@ngrx/data/entity-cache/save-entities-error",
|
|
17
|
-
SAVE_ENTITIES_SUCCESS = "@ngrx/data/entity-cache/save-entities-success"
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Hash of entities keyed by EntityCollection name,
|
|
21
|
-
* typically the result of a query that returned results from a multi-collection query
|
|
22
|
-
* that will be merged into an EntityCache via the `MergeQuerySet` action.
|
|
23
|
-
*/
|
|
24
|
-
export interface EntityCacheQuerySet {
|
|
25
|
-
[entityName: string]: any[];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Clear the collections identified in the collectionSet.
|
|
29
|
-
* @param [collections] Array of names of the collections to clear.
|
|
30
|
-
* If empty array, does nothing. If no array, clear all collections.
|
|
31
|
-
* @param [tag] Optional tag to identify the operation from the app perspective.
|
|
32
|
-
*/
|
|
33
|
-
export declare class ClearCollections implements Action {
|
|
34
|
-
readonly payload: {
|
|
35
|
-
collections?: string[];
|
|
36
|
-
tag?: string;
|
|
37
|
-
};
|
|
38
|
-
readonly type = EntityCacheAction.CLEAR_COLLECTIONS;
|
|
39
|
-
constructor(collections?: string[], tag?: string);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Create entity cache action that loads multiple entity collections at the same time.
|
|
43
|
-
* before any selectors$ observables emit.
|
|
44
|
-
* @param querySet The collections to load, typically the result of a query.
|
|
45
|
-
* @param [tag] Optional tag to identify the operation from the app perspective.
|
|
46
|
-
* in the form of a map of entity collections.
|
|
47
|
-
*/
|
|
48
|
-
export declare class LoadCollections implements Action {
|
|
49
|
-
readonly payload: {
|
|
50
|
-
collections: EntityCacheQuerySet;
|
|
51
|
-
tag?: string;
|
|
52
|
-
};
|
|
53
|
-
readonly type = EntityCacheAction.LOAD_COLLECTIONS;
|
|
54
|
-
constructor(collections: EntityCacheQuerySet, tag?: string);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Create entity cache action that merges entities from a query result
|
|
58
|
-
* that returned entities from multiple collections.
|
|
59
|
-
* Corresponding entity cache reducer should add and update all collections
|
|
60
|
-
* at the same time, before any selectors$ observables emit.
|
|
61
|
-
* @param querySet The result of the query in the form of a map of entity collections.
|
|
62
|
-
* These are the entity data to merge into the respective collections.
|
|
63
|
-
* @param mergeStrategy How to merge a queried entity when it is already in the collection.
|
|
64
|
-
* The default is MergeStrategy.PreserveChanges
|
|
65
|
-
* @param [tag] Optional tag to identify the operation from the app perspective.
|
|
66
|
-
*/
|
|
67
|
-
export declare class MergeQuerySet implements Action {
|
|
68
|
-
readonly payload: {
|
|
69
|
-
querySet: EntityCacheQuerySet;
|
|
70
|
-
mergeStrategy?: MergeStrategy;
|
|
71
|
-
tag?: string;
|
|
72
|
-
};
|
|
73
|
-
readonly type = EntityCacheAction.MERGE_QUERY_SET;
|
|
74
|
-
constructor(querySet: EntityCacheQuerySet, mergeStrategy?: MergeStrategy, tag?: string);
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Create entity cache action for replacing the entire entity cache.
|
|
78
|
-
* Dangerous because brute force but useful as when re-hydrating an EntityCache
|
|
79
|
-
* from local browser storage when the application launches.
|
|
80
|
-
* @param cache New state of the entity cache
|
|
81
|
-
* @param [tag] Optional tag to identify the operation from the app perspective.
|
|
82
|
-
*/
|
|
83
|
-
export declare class SetEntityCache implements Action {
|
|
84
|
-
readonly cache: EntityCache;
|
|
85
|
-
readonly payload: {
|
|
86
|
-
cache: EntityCache;
|
|
87
|
-
tag?: string;
|
|
88
|
-
};
|
|
89
|
-
readonly type = EntityCacheAction.SET_ENTITY_CACHE;
|
|
90
|
-
constructor(cache: EntityCache, tag?: string);
|
|
91
|
-
}
|
|
92
|
-
export declare class SaveEntities implements Action {
|
|
93
|
-
readonly payload: {
|
|
94
|
-
readonly changeSet: ChangeSet;
|
|
95
|
-
readonly url: string;
|
|
96
|
-
readonly correlationId?: any;
|
|
97
|
-
readonly isOptimistic?: boolean;
|
|
98
|
-
readonly mergeStrategy?: MergeStrategy;
|
|
99
|
-
readonly tag?: string;
|
|
100
|
-
error?: Error;
|
|
101
|
-
skip?: boolean;
|
|
102
|
-
};
|
|
103
|
-
readonly type = EntityCacheAction.SAVE_ENTITIES;
|
|
104
|
-
constructor(changeSet: ChangeSet, url: string, options?: EntityActionOptions);
|
|
105
|
-
}
|
|
106
|
-
export declare class SaveEntitiesCancel implements Action {
|
|
107
|
-
readonly payload: {
|
|
108
|
-
readonly correlationId: any;
|
|
109
|
-
readonly reason?: string;
|
|
110
|
-
readonly entityNames?: string[];
|
|
111
|
-
readonly tag?: string;
|
|
112
|
-
};
|
|
113
|
-
readonly type = EntityCacheAction.SAVE_ENTITIES_CANCEL;
|
|
114
|
-
constructor(correlationId: any, reason?: string, entityNames?: string[], tag?: string);
|
|
115
|
-
}
|
|
116
|
-
export declare class SaveEntitiesCanceled implements Action {
|
|
117
|
-
readonly payload: {
|
|
118
|
-
readonly correlationId: any;
|
|
119
|
-
readonly reason?: string;
|
|
120
|
-
readonly tag?: string;
|
|
121
|
-
};
|
|
122
|
-
readonly type = EntityCacheAction.SAVE_ENTITIES_CANCELED;
|
|
123
|
-
constructor(correlationId: any, reason?: string, tag?: string);
|
|
124
|
-
}
|
|
125
|
-
export declare class SaveEntitiesError {
|
|
126
|
-
readonly payload: {
|
|
127
|
-
readonly error: DataServiceError;
|
|
128
|
-
readonly originalAction: SaveEntities;
|
|
129
|
-
readonly correlationId: any;
|
|
130
|
-
};
|
|
131
|
-
readonly type = EntityCacheAction.SAVE_ENTITIES_ERROR;
|
|
132
|
-
constructor(error: DataServiceError, originalAction: SaveEntities);
|
|
133
|
-
}
|
|
134
|
-
export declare class SaveEntitiesSuccess implements Action {
|
|
135
|
-
readonly payload: {
|
|
136
|
-
readonly changeSet: ChangeSet;
|
|
137
|
-
readonly url: string;
|
|
138
|
-
readonly correlationId?: any;
|
|
139
|
-
readonly isOptimistic?: boolean;
|
|
140
|
-
readonly mergeStrategy?: MergeStrategy;
|
|
141
|
-
readonly tag?: string;
|
|
142
|
-
error?: Error;
|
|
143
|
-
skip?: boolean;
|
|
144
|
-
};
|
|
145
|
-
readonly type = EntityCacheAction.SAVE_ENTITIES_SUCCESS;
|
|
146
|
-
constructor(changeSet: ChangeSet, url: string, options?: EntityActionOptions);
|
|
147
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Update } from '@ngrx/entity';
|
|
2
|
-
export declare enum ChangeSetOperation {
|
|
3
|
-
Add = "Add",
|
|
4
|
-
Delete = "Delete",
|
|
5
|
-
Update = "Update",
|
|
6
|
-
Upsert = "Upsert"
|
|
7
|
-
}
|
|
8
|
-
export interface ChangeSetAdd<T = any> {
|
|
9
|
-
op: ChangeSetOperation.Add;
|
|
10
|
-
entityName: string;
|
|
11
|
-
entities: T[];
|
|
12
|
-
}
|
|
13
|
-
export interface ChangeSetDelete {
|
|
14
|
-
op: ChangeSetOperation.Delete;
|
|
15
|
-
entityName: string;
|
|
16
|
-
entities: string[] | number[];
|
|
17
|
-
}
|
|
18
|
-
export interface ChangeSetUpdate<T = any> {
|
|
19
|
-
op: ChangeSetOperation.Update;
|
|
20
|
-
entityName: string;
|
|
21
|
-
entities: Update<T>[];
|
|
22
|
-
}
|
|
23
|
-
export interface ChangeSetUpsert<T = any> {
|
|
24
|
-
op: ChangeSetOperation.Upsert;
|
|
25
|
-
entityName: string;
|
|
26
|
-
entities: T[];
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* A entities of a single entity type, which are changed in the same way by a ChangeSetOperation
|
|
30
|
-
*/
|
|
31
|
-
export type ChangeSetItem = ChangeSetAdd | ChangeSetDelete | ChangeSetUpdate | ChangeSetUpsert;
|
|
32
|
-
export interface ChangeSet<T = any> {
|
|
33
|
-
/** An array of ChangeSetItems to be processed in the array order */
|
|
34
|
-
changes: ChangeSetItem[];
|
|
35
|
-
/**
|
|
36
|
-
* An arbitrary, serializable object that should travel with the ChangeSet.
|
|
37
|
-
* Meaningful to the ChangeSet producer and consumer. Ignored by @ngrx/data.
|
|
38
|
-
*/
|
|
39
|
-
extras?: T;
|
|
40
|
-
/** An arbitrary string, identifying the ChangeSet and perhaps its purpose */
|
|
41
|
-
tag?: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Factory to create a ChangeSetItem for a ChangeSetOperation
|
|
45
|
-
*/
|
|
46
|
-
export declare class ChangeSetItemFactory {
|
|
47
|
-
/** Create the ChangeSetAdd for new entities of the given entity type */
|
|
48
|
-
add<T>(entityName: string, entities: T | T[]): ChangeSetAdd<T>;
|
|
49
|
-
/** Create the ChangeSetDelete for primary keys of the given entity type */
|
|
50
|
-
delete(entityName: string, keys: number | number[] | string | string[]): ChangeSetDelete;
|
|
51
|
-
/** Create the ChangeSetUpdate for Updates of entities of the given entity type */
|
|
52
|
-
update<T extends {
|
|
53
|
-
id: string | number;
|
|
54
|
-
}>(entityName: string, updates: Update<T> | Update<T>[]): ChangeSetUpdate<T>;
|
|
55
|
-
/** Create the ChangeSetUpsert for new or existing entities of the given entity type */
|
|
56
|
-
upsert<T>(entityName: string, entities: T | T[]): ChangeSetUpsert<T>;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Instance of a factory to create a ChangeSetItem for a ChangeSetOperation
|
|
60
|
-
*/
|
|
61
|
-
export declare const changeSetItemFactory: ChangeSetItemFactory;
|
|
62
|
-
/**
|
|
63
|
-
* Return ChangeSet after filtering out null and empty ChangeSetItems.
|
|
64
|
-
* @param changeSet ChangeSet with changes to filter
|
|
65
|
-
*/
|
|
66
|
-
export declare function excludeEmptyChangeSetItems(changeSet: ChangeSet): ChangeSet;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/** General purpose entity action operations, good for any entity type */
|
|
2
|
-
export declare enum EntityOp {
|
|
3
|
-
CANCEL_PERSIST = "@ngrx/data/cancel-persist",
|
|
4
|
-
CANCELED_PERSIST = "@ngrx/data/canceled-persist",
|
|
5
|
-
QUERY_ALL = "@ngrx/data/query-all",
|
|
6
|
-
QUERY_ALL_SUCCESS = "@ngrx/data/query-all/success",
|
|
7
|
-
QUERY_ALL_ERROR = "@ngrx/data/query-all/error",
|
|
8
|
-
QUERY_LOAD = "@ngrx/data/query-load",
|
|
9
|
-
QUERY_LOAD_SUCCESS = "@ngrx/data/query-load/success",
|
|
10
|
-
QUERY_LOAD_ERROR = "@ngrx/data/query-load/error",
|
|
11
|
-
QUERY_MANY = "@ngrx/data/query-many",
|
|
12
|
-
QUERY_MANY_SUCCESS = "@ngrx/data/query-many/success",
|
|
13
|
-
QUERY_MANY_ERROR = "@ngrx/data/query-many/error",
|
|
14
|
-
QUERY_BY_KEY = "@ngrx/data/query-by-key",
|
|
15
|
-
QUERY_BY_KEY_SUCCESS = "@ngrx/data/query-by-key/success",
|
|
16
|
-
QUERY_BY_KEY_ERROR = "@ngrx/data/query-by-key/error",
|
|
17
|
-
SAVE_ADD_MANY = "@ngrx/data/save/add-many",
|
|
18
|
-
SAVE_ADD_MANY_ERROR = "@ngrx/data/save/add-many/error",
|
|
19
|
-
SAVE_ADD_MANY_SUCCESS = "@ngrx/data/save/add-many/success",
|
|
20
|
-
SAVE_ADD_ONE = "@ngrx/data/save/add-one",
|
|
21
|
-
SAVE_ADD_ONE_ERROR = "@ngrx/data/save/add-one/error",
|
|
22
|
-
SAVE_ADD_ONE_SUCCESS = "@ngrx/data/save/add-one/success",
|
|
23
|
-
SAVE_DELETE_MANY = "@ngrx/data/save/delete-many",
|
|
24
|
-
SAVE_DELETE_MANY_SUCCESS = "@ngrx/data/save/delete-many/success",
|
|
25
|
-
SAVE_DELETE_MANY_ERROR = "@ngrx/data/save/delete-many/error",
|
|
26
|
-
SAVE_DELETE_ONE = "@ngrx/data/save/delete-one",
|
|
27
|
-
SAVE_DELETE_ONE_SUCCESS = "@ngrx/data/save/delete-one/success",
|
|
28
|
-
SAVE_DELETE_ONE_ERROR = "@ngrx/data/save/delete-one/error",
|
|
29
|
-
SAVE_UPDATE_MANY = "@ngrx/data/save/update-many",
|
|
30
|
-
SAVE_UPDATE_MANY_SUCCESS = "@ngrx/data/save/update-many/success",
|
|
31
|
-
SAVE_UPDATE_MANY_ERROR = "@ngrx/data/save/update-many/error",
|
|
32
|
-
SAVE_UPDATE_ONE = "@ngrx/data/save/update-one",
|
|
33
|
-
SAVE_UPDATE_ONE_SUCCESS = "@ngrx/data/save/update-one/success",
|
|
34
|
-
SAVE_UPDATE_ONE_ERROR = "@ngrx/data/save/update-one/error",
|
|
35
|
-
SAVE_UPSERT_MANY = "@ngrx/data/save/upsert-many",
|
|
36
|
-
SAVE_UPSERT_MANY_SUCCESS = "@ngrx/data/save/upsert-many/success",
|
|
37
|
-
SAVE_UPSERT_MANY_ERROR = "@ngrx/data/save/upsert-many/error",
|
|
38
|
-
SAVE_UPSERT_ONE = "@ngrx/data/save/upsert-one",
|
|
39
|
-
SAVE_UPSERT_ONE_SUCCESS = "@ngrx/data/save/upsert-one/success",
|
|
40
|
-
SAVE_UPSERT_ONE_ERROR = "@ngrx/data/save/upsert-one/error",
|
|
41
|
-
ADD_ALL = "@ngrx/data/add-all",
|
|
42
|
-
ADD_MANY = "@ngrx/data/add-many",
|
|
43
|
-
ADD_ONE = "@ngrx/data/add-one",
|
|
44
|
-
REMOVE_ALL = "@ngrx/data/remove-all",
|
|
45
|
-
REMOVE_MANY = "@ngrx/data/remove-many",
|
|
46
|
-
REMOVE_ONE = "@ngrx/data/remove-one",
|
|
47
|
-
UPDATE_MANY = "@ngrx/data/update-many",
|
|
48
|
-
UPDATE_ONE = "@ngrx/data/update-one",
|
|
49
|
-
UPSERT_MANY = "@ngrx/data/upsert-many",
|
|
50
|
-
UPSERT_ONE = "@ngrx/data/upsert-one",
|
|
51
|
-
COMMIT_ALL = "@ngrx/data/commit-all",
|
|
52
|
-
COMMIT_MANY = "@ngrx/data/commit-many",
|
|
53
|
-
COMMIT_ONE = "@ngrx/data/commit-one",
|
|
54
|
-
UNDO_ALL = "@ngrx/data/undo-all",
|
|
55
|
-
UNDO_MANY = "@ngrx/data/undo-many",
|
|
56
|
-
UNDO_ONE = "@ngrx/data/undo-one",
|
|
57
|
-
SET_CHANGE_STATE = "@ngrx/data/set-change-state",
|
|
58
|
-
SET_COLLECTION = "@ngrx/data/set-collection",
|
|
59
|
-
SET_FILTER = "@ngrx/data/set-filter",
|
|
60
|
-
SET_LOADED = "@ngrx/data/set-loaded",
|
|
61
|
-
SET_LOADING = "@ngrx/data/set-loading"
|
|
62
|
-
}
|
|
63
|
-
/** "Success" suffix appended to EntityOps that are successful.*/
|
|
64
|
-
export declare const OP_SUCCESS = "/success";
|
|
65
|
-
/** "Error" suffix appended to EntityOps that have failed.*/
|
|
66
|
-
export declare const OP_ERROR = "/error";
|
|
67
|
-
/** Make the error EntityOp corresponding to the given EntityOp */
|
|
68
|
-
export declare function makeErrorOp(op: EntityOp): EntityOp;
|
|
69
|
-
/** Make the success EntityOp corresponding to the given EntityOp */
|
|
70
|
-
export declare function makeSuccessOp(op: EntityOp): EntityOp;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/** How to merge an entity, after query or save, when the corresponding entity in the collection has unsaved changes. */
|
|
2
|
-
export declare enum MergeStrategy {
|
|
3
|
-
/**
|
|
4
|
-
* Update the collection entities and ignore all change tracking for this operation.
|
|
5
|
-
* Each entity's `changeState` is untouched.
|
|
6
|
-
*/
|
|
7
|
-
IgnoreChanges = 0,
|
|
8
|
-
/**
|
|
9
|
-
* Updates current values for unchanged entities.
|
|
10
|
-
* For each changed entity it preserves the current value and overwrites the `originalValue` with the merge entity.
|
|
11
|
-
* This is the query-success default.
|
|
12
|
-
*/
|
|
13
|
-
PreserveChanges = 1,
|
|
14
|
-
/**
|
|
15
|
-
* Replace the current collection entities.
|
|
16
|
-
* For each merged entity it discards the `changeState` and sets the `changeType` to "unchanged".
|
|
17
|
-
* This is the save-success default.
|
|
18
|
-
*/
|
|
19
|
-
OverwriteChanges = 2
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Data returned in an EntityAction from the EntityEffects for SAVE_UPDATE_ONE_SUCCESS.
|
|
3
|
-
* Effectively extends Update<T> with a 'changed' flag.
|
|
4
|
-
* The is true if the server sent back changes to the entity data after update.
|
|
5
|
-
* Such changes must be in the entity data in changes property.
|
|
6
|
-
* Default is false (server did not return entity data; assume it changed nothing).
|
|
7
|
-
* See EntityEffects.
|
|
8
|
-
*/
|
|
9
|
-
export interface UpdateResponseData<T> {
|
|
10
|
-
/** Original key (id) of the entity */
|
|
11
|
-
id: number | string;
|
|
12
|
-
/** Entity update data. Should include the key (original or changed) */
|
|
13
|
-
changes: Partial<T>;
|
|
14
|
-
/**
|
|
15
|
-
* Whether the server made additional changes after processing the update.
|
|
16
|
-
* Such additional changes should be in the 'changes' object.
|
|
17
|
-
* Default is false
|
|
18
|
-
*/
|
|
19
|
-
changed?: boolean;
|
|
20
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { EntityAction } from '../actions/entity-action';
|
|
2
|
-
import { RequestData } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Error from a DataService
|
|
5
|
-
* The source error either comes from a failed HTTP response or was thrown within the service.
|
|
6
|
-
* @param error the HttpErrorResponse or the error thrown by the service
|
|
7
|
-
* @param requestData the HTTP request information such as the method and the url.
|
|
8
|
-
*/
|
|
9
|
-
export declare class DataServiceError extends Error {
|
|
10
|
-
error: any;
|
|
11
|
-
requestData: RequestData | null;
|
|
12
|
-
constructor(error: any, requestData: RequestData | null);
|
|
13
|
-
}
|
|
14
|
-
/** Payload for an EntityAction data service error such as QUERY_ALL_ERROR */
|
|
15
|
-
export interface EntityActionDataServiceError {
|
|
16
|
-
error: DataServiceError;
|
|
17
|
-
originalAction: EntityAction;
|
|
18
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { EntityHttpResourceUrls } from './http-url-generator';
|
|
2
|
-
/**
|
|
3
|
-
* Optional configuration settings for an entity collection data service
|
|
4
|
-
* such as the `DefaultDataService<T>`.
|
|
5
|
-
*/
|
|
6
|
-
export declare abstract class DefaultDataServiceConfig {
|
|
7
|
-
/**
|
|
8
|
-
* root path of the web api. may also include protocol, domain, and port
|
|
9
|
-
* for remote api, e.g.: `'https://api-domain.com:8000/api/v1'` (default: 'api')
|
|
10
|
-
*/
|
|
11
|
-
root?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Known entity HttpResourceUrls.
|
|
14
|
-
* HttpUrlGenerator will create these URLs for entity types not listed here.
|
|
15
|
-
*/
|
|
16
|
-
entityHttpResourceUrls?: EntityHttpResourceUrls;
|
|
17
|
-
/** Is a DELETE 404 really OK? (default: true) */
|
|
18
|
-
delete404OK?: boolean;
|
|
19
|
-
/** Simulate GET latency in a demo (default: 0) */
|
|
20
|
-
getDelay?: number;
|
|
21
|
-
/** Simulate save method (PUT/POST/DELETE) latency in a demo (default: 0) */
|
|
22
|
-
saveDelay?: number;
|
|
23
|
-
/** request timeout in MS (default: 0)*/
|
|
24
|
-
timeout?: number;
|
|
25
|
-
/** to keep leading & trailing slashes or not; false by default */
|
|
26
|
-
trailingSlashEndpoints?: boolean;
|
|
27
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { Update } from '@ngrx/entity';
|
|
4
|
-
import { DefaultDataServiceConfig } from './default-data-service-config';
|
|
5
|
-
import { EntityCollectionDataService, HttpMethods, HttpOptions, QueryParams } from './interfaces';
|
|
6
|
-
import { HttpUrlGenerator } from './http-url-generator';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* A basic, generic entity data service
|
|
10
|
-
* suitable for persistence of most entities.
|
|
11
|
-
* Assumes a common REST-y web API
|
|
12
|
-
*/
|
|
13
|
-
export declare class DefaultDataService<T> implements EntityCollectionDataService<T> {
|
|
14
|
-
protected http: HttpClient;
|
|
15
|
-
protected httpUrlGenerator: HttpUrlGenerator;
|
|
16
|
-
protected _name: string;
|
|
17
|
-
protected delete404OK: boolean;
|
|
18
|
-
protected entityName: string;
|
|
19
|
-
protected entityUrl: string;
|
|
20
|
-
protected entitiesUrl: string;
|
|
21
|
-
protected getDelay: number;
|
|
22
|
-
protected saveDelay: number;
|
|
23
|
-
protected timeout: number;
|
|
24
|
-
protected trailingSlashEndpoints: boolean;
|
|
25
|
-
get name(): string;
|
|
26
|
-
constructor(entityName: string, http: HttpClient, httpUrlGenerator: HttpUrlGenerator, config?: DefaultDataServiceConfig);
|
|
27
|
-
add(entity: T, options?: HttpOptions): Observable<T>;
|
|
28
|
-
delete(key: number | string, options?: HttpOptions): Observable<number | string>;
|
|
29
|
-
getAll(options?: HttpOptions): Observable<T[]>;
|
|
30
|
-
getById(key: number | string, options?: HttpOptions): Observable<T>;
|
|
31
|
-
getWithQuery(queryParams: QueryParams | string | undefined, options?: HttpOptions): Observable<T[]>;
|
|
32
|
-
update(update: Update<T>, options?: HttpOptions): Observable<T>;
|
|
33
|
-
upsert(entity: T, options?: HttpOptions): Observable<T>;
|
|
34
|
-
protected execute(method: HttpMethods, url: string, data?: any, // data, error, or undefined/null
|
|
35
|
-
options?: any, // options or undefined/null
|
|
36
|
-
httpOptions?: HttpOptions): Observable<any>;
|
|
37
|
-
private handleError;
|
|
38
|
-
private handleDelete404;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Create a basic, generic entity data service
|
|
42
|
-
* suitable for persistence of most entities.
|
|
43
|
-
* Assumes a common REST-y web API
|
|
44
|
-
*/
|
|
45
|
-
export declare class DefaultDataServiceFactory {
|
|
46
|
-
protected http: HttpClient;
|
|
47
|
-
protected httpUrlGenerator: HttpUrlGenerator;
|
|
48
|
-
protected config?: DefaultDataServiceConfig;
|
|
49
|
-
constructor(http: HttpClient, httpUrlGenerator: HttpUrlGenerator, config?: DefaultDataServiceConfig);
|
|
50
|
-
/**
|
|
51
|
-
* Create a default {EntityCollectionDataService} for the given entity type
|
|
52
|
-
* @param entityName {string} Name of the entity type for this data service
|
|
53
|
-
*/
|
|
54
|
-
create<T>(entityName: string): EntityCollectionDataService<T>;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultDataServiceFactory, [null, null, { optional: true; }]>;
|
|
56
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DefaultDataServiceFactory>;
|
|
57
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { IdSelector } from '@ngrx/entity';
|
|
4
|
-
import { ChangeSet } from '../actions/entity-cache-change-set';
|
|
5
|
-
import { DefaultDataServiceConfig } from './default-data-service-config';
|
|
6
|
-
import { EntityDefinitionService } from '../entity-metadata/entity-definition.service';
|
|
7
|
-
import { RequestData } from './interfaces';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Default data service for making remote service calls targeting the entire EntityCache.
|
|
11
|
-
* See EntityDataService for services that target a single EntityCollection
|
|
12
|
-
*/
|
|
13
|
-
export declare class EntityCacheDataService {
|
|
14
|
-
protected entityDefinitionService: EntityDefinitionService;
|
|
15
|
-
protected http: HttpClient;
|
|
16
|
-
protected idSelectors: {
|
|
17
|
-
[entityName: string]: IdSelector<any>;
|
|
18
|
-
};
|
|
19
|
-
protected saveDelay: number;
|
|
20
|
-
protected timeout: number;
|
|
21
|
-
constructor(entityDefinitionService: EntityDefinitionService, http: HttpClient, config?: DefaultDataServiceConfig);
|
|
22
|
-
/**
|
|
23
|
-
* Save changes to multiple entities across one or more entity collections.
|
|
24
|
-
* Server endpoint must understand the essential SaveEntities protocol,
|
|
25
|
-
* in particular the ChangeSet interface (except for Update<T>).
|
|
26
|
-
* This implementation extracts the entity changes from a ChangeSet Update<T>[] and sends those.
|
|
27
|
-
* It then reconstructs Update<T>[] in the returned observable result.
|
|
28
|
-
* @param changeSet An array of SaveEntityItems.
|
|
29
|
-
* Each SaveEntityItem describe a change operation for one or more entities of a single collection,
|
|
30
|
-
* known by its 'entityName'.
|
|
31
|
-
* @param url The server endpoint that receives this request.
|
|
32
|
-
*/
|
|
33
|
-
saveEntities(changeSet: ChangeSet, url: string): Observable<ChangeSet>;
|
|
34
|
-
protected handleError(reqData: RequestData): (err: any) => Observable<never>;
|
|
35
|
-
/**
|
|
36
|
-
* Filter changeSet to remove unwanted ChangeSetItems.
|
|
37
|
-
* This implementation excludes null and empty ChangeSetItems.
|
|
38
|
-
* @param changeSet ChangeSet with changes to filter
|
|
39
|
-
*/
|
|
40
|
-
protected filterChangeSet(changeSet: ChangeSet): ChangeSet;
|
|
41
|
-
/**
|
|
42
|
-
* Convert the entities in update changes from @ngrx Update<T> structure to just T.
|
|
43
|
-
* Reverse of restoreUpdates().
|
|
44
|
-
*/
|
|
45
|
-
protected flattenUpdates(changeSet: ChangeSet): ChangeSet;
|
|
46
|
-
/**
|
|
47
|
-
* Convert the flattened T entities in update changes back to @ngrx Update<T> structures.
|
|
48
|
-
* Reverse of flattenUpdates().
|
|
49
|
-
*/
|
|
50
|
-
protected restoreUpdates(changeSet: ChangeSet): ChangeSet;
|
|
51
|
-
/**
|
|
52
|
-
* Get the id (primary key) selector function for an entity type
|
|
53
|
-
* @param entityName name of the entity type
|
|
54
|
-
*/
|
|
55
|
-
protected getIdSelector(entityName: string): IdSelector<any>;
|
|
56
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntityCacheDataService, [null, null, { optional: true; }]>;
|
|
57
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EntityCacheDataService>;
|
|
58
|
-
}
|