@rentman/rm-core 8.1.2 → 8.1.4
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/changelog.md +16 -0
- package/dist/rm-core.js +33 -38
- package/dist/rm-core.min.js +2 -2
- package/dist/types/classes/cache/transaction/TransactionCachedQueryHandler.d.ts +7 -1
- package/dist/types/classes/cache/transaction/TransactionItemHandler.d.ts +1 -1
- package/dist/types/factories/TransactionCacheFactory.d.ts +2 -2
- package/package.json +1 -1
|
@@ -9,7 +9,13 @@ export declare class TransactionCachedQueryHandler extends CachedQueryHandlerBas
|
|
|
9
9
|
private itemHandler;
|
|
10
10
|
protected transaction: TransactionCache;
|
|
11
11
|
constructor(dependencies: TransactionCollectionHandlerDependencyInterface, itemHandler: TransactionItemHandler, transaction: TransactionCache);
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* @description
|
|
14
|
+
* Updates all cached queries which references one of the updated IDs in the conversionMap
|
|
15
|
+
*
|
|
16
|
+
* @param conversionMap ConversionMap with the updated IDs
|
|
17
|
+
*/
|
|
18
|
+
updateLocalItemIdReferences(conversionMap: ItemIdConversionMap): void;
|
|
13
19
|
__fetchCachedQueryItem<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, options: CollectionOptions): PromiseInterface<CachedQueryItem<ItemTypeType>>;
|
|
14
20
|
__expandCachedQuery<ItemTypeType extends ApiEnumItemType>(cachedQuery: CachedQueryItem<ItemTypeType>, newColumns: ApiRequestColumns, force?: boolean): PromiseInterface<CachedQueryItem<ItemTypeType>>;
|
|
15
21
|
__addItemEntriesToCachedQueries<ItemTypeType extends ApiEnumItemType = any>(itemType: ItemTypeType, parsedQuery: CollectionQuery, itemEntries: Array<ItemEntry<ItemTypeType>>): void;
|
|
@@ -35,7 +35,7 @@ export declare class TransactionItemHandler extends ItemHandlerBase {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
constructor(dependencies: TransactionItemHandlerDependencyInterface, transaction: TransactionCache, validator?: TransactionValidator | undefined);
|
|
38
|
-
updateLocalItemIdReferences(itemType: ApiEnumItemType, oldItemId: ItemId, newItemId: ItemId, changesDelta?: ChangesDeltaBase
|
|
38
|
+
updateLocalItemIdReferences(itemType: ApiEnumItemType, oldItemId: ItemId, newItemId: ItemId, changesDelta?: ChangesDeltaBase): void;
|
|
39
39
|
registerFieldChangeCallback<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, itemId: ItemId, callback: FieldChangeCallback<ItemTypeType>): DeregFunction;
|
|
40
40
|
copyTransactionItemEntryChanges(itemEntryChanges: TransactionItemEntryChanges, entry: ItemEntry): TransactionItemEntryChanges;
|
|
41
41
|
createItemEntry(createTuple: ChangesDeltaItemCreateDelta): ItemEntry;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServerCache, TransactionCache, TransactionValidatorFactory } from '../classes';
|
|
1
|
+
import { ServerCache, TransactionCache, TransactionOptions, TransactionValidatorFactory } from '../classes';
|
|
2
2
|
import { RmCore } from '../core';
|
|
3
3
|
import { ServerCacheDependencyInterface } from '../interfaces';
|
|
4
4
|
export declare class TransactionCacheFactory {
|
|
@@ -10,6 +10,6 @@ export declare class TransactionCacheFactory {
|
|
|
10
10
|
* Todo[cache] Store a map of all transactions by transaction id ?
|
|
11
11
|
*/
|
|
12
12
|
getById(id: string): TransactionCache | undefined;
|
|
13
|
-
construct(id?: string, validatorFactory?: TransactionValidatorFactory): TransactionCache;
|
|
13
|
+
construct(id?: string, validatorFactory?: TransactionValidatorFactory, transactionOptions?: TransactionOptions): TransactionCache;
|
|
14
14
|
getServerCache(): ServerCache;
|
|
15
15
|
}
|