@rentman/rm-core 1.6.3 → 1.6.5

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.
@@ -17,6 +17,7 @@ export declare class CollectionMatcher {
17
17
  private queryMatcherFactory;
18
18
  private collectionCaches;
19
19
  private updateInitial;
20
+ private callOnAdd;
20
21
  private callOnActivate;
21
22
  map: {
22
23
  [collectionEntryId: number]: {
@@ -24,7 +25,7 @@ export declare class CollectionMatcher {
24
25
  matches: CollectionMatcherMatches;
25
26
  };
26
27
  };
27
- constructor(queryMatcherFactory: QueryMatcherFactory, collectionCaches: CollectionCache[], updateInitial: boolean, callOnActivate: boolean);
28
+ constructor(queryMatcherFactory: QueryMatcherFactory, collectionCaches: CollectionCache[], updateInitial: boolean, callOnAdd: boolean, callOnActivate: boolean);
28
29
  expand(itemEntry: ItemEntry): this;
29
30
  private _expand;
30
31
  getCollectionsWithFittingItems(): CollectionEntry[];
@@ -20,7 +20,7 @@ export declare class ItemAdministrator {
20
20
  private queryService;
21
21
  constructor(apiRequestService: ApiRequestServiceInterface, authInterface: AuthInterface, collectionHandler: CollectionHandler, collectionMatcherFactory: CollectionMatcherFactory, columnSetFactory: ColumnSetFactory, errorHandler: ErrorHandlerInterface, itemHandler: ItemHandler, itemRequestService: ItemRequestService, keyService: KeyService, localCacheFactory: LocalCacheFactory, localCacheManager: LocalCacheManagerInterface, moduleChangesCompilationFactory: ModuleChangesCompilationFactory, promiseInterface: PromiseLibraryInterface, queryService: QueryService);
22
22
  invalidateCache(): void;
23
- getCollectionMatcher(itemEntries: ItemEntry[], addToTab?: boolean): CollectionMatcher;
23
+ getCollectionMatcher(itemEntries: ItemEntry[], addToTab?: boolean, callOnAdd?: boolean): CollectionMatcher;
24
24
  fetchTitle(itemType: ItemType, itemId: ItemId, deferRequest?: boolean): PromiseInterface<string>;
25
25
  getItemById(itemType: ItemType, itemId: ItemId, options: ItemOptionsInterface & {
26
26
  edit: true;
@@ -205,8 +205,8 @@ export declare class ItemAdministrator {
205
205
  private getColumnSuperset;
206
206
  getLocalCache(): LocalCache;
207
207
  resetLocalCache(): void;
208
- addToCollections<T extends CollectionResource = CollectionViewResource>(itemEntries: ItemEntry[], resultCollectionResource: T): T['items'];
209
- addToCollections(itemEntries: ItemEntry[], resultCollectionResource?: null): null;
208
+ addToCollections<T extends CollectionResource = CollectionViewResource>(itemEntries: ItemEntry[], resultCollectionResource: T, callOnAdd?: boolean): T['items'];
209
+ addToCollections(itemEntries: ItemEntry[], resultCollectionResource?: null, callOnAdd?: boolean): null;
210
210
  removeFromCollections<T extends CollectionResource = CollectionViewResource>(itemEntries: ItemEntry[], resultCollectionResource: T): T['items'];
211
211
  removeFromCollections(itemEntries: ItemEntry[], resultCollectionResource?: null): null;
212
212
  saveLocal(itemResource: ItemResource): PromiseInterface<ItemResource>;
@@ -3,5 +3,5 @@ import { QueryMatcherFactory } from '../factories';
3
3
  export declare class CollectionMatcherFactory {
4
4
  private queryMatcherFactory;
5
5
  constructor(queryMatcherFactory: QueryMatcherFactory);
6
- construct(collectionCaches: CollectionCache[], updateInitial: boolean, callOnActivate: boolean): CollectionMatcher;
6
+ construct(collectionCaches: CollectionCache[], updateInitial: boolean, callOnAdd: boolean, callOnActivate: boolean): CollectionMatcher;
7
7
  }
@@ -10,6 +10,7 @@ export declare abstract class CollectionResource<T extends ItemResource = LocalV
10
10
  items: T[];
11
11
  itemIdMap: ItemResourceItemIdMap<T>;
12
12
  columns: ResponseColumnMap;
13
+ private readonly onChange;
13
14
  protected constructor(factory: CollectionResourceFactory, entry: CollectionEntry, options: CollectionResourceOptions, localCache: LocalCache);
14
15
  getItemById(itemId: number): T;
15
16
  rebuildMap(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rentman/rm-core",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "description": "Rentman core functionalities",
5
5
  "main": "./dist/rm-core.js",
6
6
  "types": "./dist/src/index.d.ts",