@rentman/rm-core 6.3.10 → 7.0.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.
- package/changelog.md +7 -0
- package/dist/rm-core.js +74 -88
- package/dist/rm-core.min.js +2 -2
- package/dist/types/classes/LockService.d.ts +3 -3
- package/dist/types/classes/cache/transaction/TransactionCache.d.ts +4 -11
- package/dist/types/interfaces/TransactionItemHandlerDependencyInterface.d.ts +2 -1
- package/package.json +1 -1
|
@@ -22,11 +22,11 @@ export declare class LockService {
|
|
|
22
22
|
hasLock(lockTokenId: ItemId): boolean;
|
|
23
23
|
isLocked(itemEntry: ItemEntry<any>): boolean;
|
|
24
24
|
getMessage(itemEntry: ItemEntry<any>): undefined | string;
|
|
25
|
-
|
|
26
|
-
fetchLock(itemEntry: ItemEntry<any>): PromiseInterface<string>;
|
|
27
|
-
requestLock(itemEntry: ItemEntry<any>): PromiseInterface<LockToken>;
|
|
25
|
+
fetchLock(itemEntry: ItemEntry<any>): PromiseInterface<LockToken>;
|
|
28
26
|
deleteLock(itemEntry: ItemEntry<any>): PromiseInterface<void>;
|
|
29
27
|
clearLock(itemEntry: ItemEntry<any>): boolean;
|
|
28
|
+
private requestLock;
|
|
29
|
+
private fetchCachedLock;
|
|
30
30
|
private getValue;
|
|
31
31
|
private setValue;
|
|
32
32
|
}
|
|
@@ -90,7 +90,6 @@ export declare class TransactionCache extends AbstractCache {
|
|
|
90
90
|
readonly collectionHandler: TransactionCollectionHandler;
|
|
91
91
|
readonly eventHandler: TransactionEventHandler;
|
|
92
92
|
private readonly validator?;
|
|
93
|
-
private changesInterval;
|
|
94
93
|
private _isValid;
|
|
95
94
|
constructor(dependencies: AbstractCacheDependencyInterface, core: RmCore, parent: AbstractCache,
|
|
96
95
|
/**
|
|
@@ -192,16 +191,6 @@ export declare class TransactionCache extends AbstractCache {
|
|
|
192
191
|
* Returns whether or not the {@link TransactionCache.rootItem rootItem} is uses locks
|
|
193
192
|
*/
|
|
194
193
|
isLockable(): boolean;
|
|
195
|
-
/**
|
|
196
|
-
* @description
|
|
197
|
-
* Disables the transaction's changes watcher, the transaction will no longer automatically detect changes on items
|
|
198
|
-
*/
|
|
199
|
-
disableChangesWatcher(): void;
|
|
200
|
-
/**
|
|
201
|
-
* @description
|
|
202
|
-
* Enables the transaction's changes watcher, the transaction will now automatically detect changes on items
|
|
203
|
-
*/
|
|
204
|
-
enableChangesWatcher(): void;
|
|
205
194
|
/**
|
|
206
195
|
* @description
|
|
207
196
|
* Saves the transaction, this has a different effect depending on the transaction's parent.
|
|
@@ -210,6 +199,10 @@ export declare class TransactionCache extends AbstractCache {
|
|
|
210
199
|
* - If the parent is the {@link ServerCache ServerCache} it will save the changes to the APi
|
|
211
200
|
*/
|
|
212
201
|
save(closeTab?: boolean, parameters?: CreateRequestParameterMap, breakUpByParent?: boolean, onAfterCreateCallback?: OnAfterCreateCallback): PromiseInterface<void>;
|
|
202
|
+
/**
|
|
203
|
+
* Rejects when another user is holding the lock, as opposed to {@link LockService.fetchLock}.
|
|
204
|
+
*/
|
|
205
|
+
fetchLock(): PromiseInterface<void>;
|
|
213
206
|
detectChanges(): boolean;
|
|
214
207
|
/**
|
|
215
208
|
* @description
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiFormatter, ColumnHandler, ColumnUtil, ConversionMapService, ItemCreateService, ItemEntryService, KeyService } from '../classes';
|
|
1
|
+
import { ApiFormatter, ColumnHandler, ColumnUtil, ConversionMapService, ItemCreateService, ItemEntryService, KeyService, LockService } from '../classes';
|
|
2
2
|
import { TemplateCache } from '../classes/TemplateCache';
|
|
3
3
|
import { ChangesDeltaFactory, ColumnExpansionFactory, ColumnSetFactory, ColumnSubsetCacheFactory, ItemCacheFactory, ItemEntryFactory, RequestColumnExpansionFactory } from '../factories';
|
|
4
4
|
import { ErrorHandlerInterface } from './ErrorHandlerInterface';
|
|
@@ -20,6 +20,7 @@ export interface TransactionItemHandlerDependencyInterface {
|
|
|
20
20
|
itemEntryFactory: ItemEntryFactory;
|
|
21
21
|
itemEntryService: ItemEntryService;
|
|
22
22
|
keyService: KeyService;
|
|
23
|
+
lockService: LockService;
|
|
23
24
|
promiseService: PromiseLibraryInterface;
|
|
24
25
|
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
25
26
|
templateCache: TemplateCache;
|