@rentman/rm-core 8.1.7 → 8.1.8-dev1
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 +923 -917
- package/dist/rm-core.js +18307 -11023
- package/dist/rm-core.min.js +1 -16
- package/dist/types/classes/ApiFormatter.d.ts +73 -66
- package/dist/types/classes/ApiRequestService.d.ts +18 -21
- package/dist/types/classes/ApiResponseProcessor.d.ts +29 -30
- package/dist/types/classes/CacheSyncer.d.ts +36 -0
- package/dist/types/classes/ChangesCompilation.d.ts +33 -36
- package/dist/types/classes/ChangesDelta.d.ts +61 -68
- package/dist/types/classes/ChangesDeltaBase.d.ts +76 -79
- package/dist/types/classes/ChangesProcessor.d.ts +40 -45
- package/dist/types/classes/CollectionEntryService.d.ts +23 -27
- package/dist/types/classes/CollectionResourceService.d.ts +6 -7
- package/dist/types/classes/ColumnCache.d.ts +21 -22
- package/dist/types/classes/ColumnExpansion.d.ts +21 -23
- package/dist/types/classes/ColumnHandler.d.ts +20 -22
- package/dist/types/classes/ColumnInfo.d.ts +14 -14
- package/dist/types/classes/ColumnSet.d.ts +37 -39
- package/dist/types/classes/ColumnSubsetCache.d.ts +14 -15
- package/dist/types/classes/ColumnUtil.d.ts +100 -101
- package/dist/types/classes/ConversionMapService.d.ts +25 -28
- package/dist/types/classes/CreateRequest.d.ts +17 -20
- package/dist/types/classes/CreatedChangesDelta.d.ts +17 -18
- package/dist/types/classes/InternalChangesDelta.d.ts +47 -51
- package/dist/types/classes/ItemCache.d.ts +27 -30
- package/dist/types/classes/ItemCreateService.d.ts +18 -25
- package/dist/types/classes/ItemEntryService.d.ts +32 -35
- package/dist/types/classes/KeyService.d.ts +18 -18
- package/dist/types/classes/LockService.d.ts +29 -32
- package/dist/types/classes/ModuleChangesCompilation.d.ts +18 -19
- package/dist/types/classes/ParentChangesDelta.d.ts +39 -47
- package/dist/types/classes/QueryColumnExtractor.d.ts +18 -20
- package/dist/types/classes/QueryContainsLocalIdParser.d.ts +15 -17
- package/dist/types/classes/QueryLinkedToParser.d.ts +15 -16
- package/dist/types/classes/QueryLocallyMatchableParser.d.ts +18 -19
- package/dist/types/classes/QueryMatcher.d.ts +18 -19
- package/dist/types/classes/QueryParser.d.ts +25 -26
- package/dist/types/classes/QueryParserBase.d.ts +20 -20
- package/dist/types/classes/QueryParserIdUpdater.d.ts +15 -16
- package/dist/types/classes/QueryService.d.ts +12 -13
- package/dist/types/classes/RequestBuffer.d.ts +24 -29
- package/dist/types/classes/RequestBufferManager.d.ts +20 -26
- package/dist/types/classes/RequestColumnExpansion.d.ts +15 -16
- package/dist/types/classes/SocketMessageHandler.d.ts +34 -43
- package/dist/types/classes/TemplateCache.d.ts +63 -70
- package/dist/types/classes/Util.d.ts +28 -31
- package/dist/types/classes/cache/AbstractCache.d.ts +95 -112
- package/dist/types/classes/cache/CachedQueryHandlerBase.d.ts +68 -75
- package/dist/types/classes/cache/ItemHandlerBase.d.ts +95 -106
- package/dist/types/classes/cache/server/ServerCache.d.ts +82 -94
- package/dist/types/classes/cache/server/ServerCachedQueryHandler.d.ts +25 -34
- package/dist/types/classes/cache/server/ServerItemHandler.d.ts +44 -53
- package/dist/types/classes/cache/transaction/TransactionCache.d.ts +319 -327
- package/dist/types/classes/cache/transaction/TransactionCachedQueryHandler.d.ts +31 -30
- package/dist/types/classes/cache/transaction/TransactionCollectionHandler.d.ts +24 -30
- package/dist/types/classes/cache/transaction/TransactionEventHandler.d.ts +21 -24
- package/dist/types/classes/cache/transaction/TransactionItemHandler.d.ts +89 -97
- package/dist/types/classes/cache/transaction/TransactionValidator.d.ts +33 -35
- package/dist/types/constants.d.ts +7 -7
- package/dist/types/core.d.ts +45 -51
- package/dist/types/factories/ApiResponseProcessorFactory.d.ts +6 -6
- package/dist/types/factories/CacheSyncerFactory.d.ts +10 -0
- package/dist/types/factories/ChangesCompilationFactory.d.ts +5 -6
- package/dist/types/factories/ChangesDeltaFactory.d.ts +13 -15
- package/dist/types/factories/ChangesProcessorFactory.d.ts +13 -19
- package/dist/types/factories/CollectionEntryFactory.d.ts +11 -14
- package/dist/types/factories/CollectionResourceFactory.d.ts +18 -22
- package/dist/types/factories/ColumnExpansionFactory.d.ts +7 -9
- package/dist/types/factories/ColumnInfoFactory.d.ts +7 -8
- package/dist/types/factories/ColumnSetFactory.d.ts +18 -20
- package/dist/types/factories/ColumnSubsetCacheFactory.d.ts +8 -9
- package/dist/types/factories/CreateRequestFactory.d.ts +9 -11
- package/dist/types/factories/ItemCacheFactory.d.ts +6 -8
- package/dist/types/factories/ItemEntryFactory.d.ts +12 -15
- package/dist/types/factories/ItemResourceFactory.d.ts +11 -14
- package/dist/types/factories/ModuleChangesCompilationFactory.d.ts +4 -5
- package/dist/types/factories/QueryMatcherFactory.d.ts +7 -8
- package/dist/types/factories/QueryParserFactory.d.ts +5 -6
- package/dist/types/factories/RequestColumnExpansionFactory.d.ts +8 -9
- package/dist/types/factories/TemplateFactory.d.ts +8 -11
- package/dist/types/factories/TransactionCacheFactory.d.ts +13 -15
- package/dist/types/index.d.ts +1 -7
- package/dist/types/interfaces/AbstractCacheDependencyInterface.d.ts +36 -43
- package/dist/types/interfaces/ApiRequestServiceInterface.d.ts +12 -12
- package/dist/types/interfaces/AuthInterface.d.ts +10 -10
- package/dist/types/interfaces/ErrorHandlerInterface.d.ts +5 -5
- package/dist/types/interfaces/ExceptionHandlerInterface.d.ts +3 -3
- package/dist/types/interfaces/LinkTreeServiceInterface.d.ts +4 -4
- package/dist/types/interfaces/PromiseLibraryInterface.d.ts +25 -25
- package/dist/types/interfaces/ServerCacheDependencyInterface.d.ts +5 -7
- package/dist/types/interfaces/SocketMessageInterface.d.ts +3 -3
- package/dist/types/interfaces/TransactionCollectionHandlerDependencyInterface.d.ts +17 -21
- package/dist/types/interfaces/TransactionItemHandlerDependencyInterface.d.ts +22 -27
- package/dist/types/internal.d.ts +104 -0
- package/dist/types/models/CachedQueryItem.d.ts +19 -0
- package/dist/types/models/CollectionEntry.d.ts +21 -24
- package/dist/types/models/CollectionOptions.d.ts +42 -24
- package/dist/types/models/CollectionResource.d.ts +87 -78
- package/dist/types/models/ItemEntry.d.ts +18 -19
- package/dist/types/models/ItemEntryOptions.d.ts +8 -8
- package/dist/types/models/ItemResource.d.ts +90 -88
- package/dist/types/models/Template.d.ts +11 -13
- package/dist/types/types/ItemTypesCollection.d.ts +343 -345
- package/dist/types/types/PromiseInterface.d.ts +2 -2
- package/package.json +48 -38
- package/readme.md +15 -15
- package/dist/types/classes/CollectionMatcherBase.d.ts +0 -22
- package/dist/types/classes/CollectionMatcherCachedCollectionProcessor.d.ts +0 -32
- package/dist/types/classes/cache/CollectionMatcherCachedQueryProcessor.d.ts +0 -36
- package/dist/types/classes/index.d.ts +0 -46
- package/dist/types/factories/CollectionMatcherFactory.d.ts +0 -19
- package/dist/types/factories/index.d.ts +0 -21
- package/dist/types/interfaces/index.d.ts +0 -11
- package/dist/types/models/index.d.ts +0 -7
- package/dist/types/types/index.d.ts +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface ExceptionHandlerInterface {
|
|
2
|
-
(exception: any): void;
|
|
3
|
-
}
|
|
1
|
+
export interface ExceptionHandlerInterface {
|
|
2
|
+
(exception: any): void;
|
|
3
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiLinkTree } from '
|
|
2
|
-
export interface LinkTreeServiceInterface {
|
|
3
|
-
get: () => ApiLinkTree;
|
|
4
|
-
}
|
|
1
|
+
import { ApiLinkTree } from '../internal';
|
|
2
|
+
export interface LinkTreeServiceInterface {
|
|
3
|
+
get: () => ApiLinkTree;
|
|
4
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { PromiseInterface } from '../
|
|
2
|
-
export interface Deferred<T> {
|
|
3
|
-
resolve(value?: T | PromiseInterface<T>): void;
|
|
4
|
-
reject(reason?: any): void;
|
|
5
|
-
promise: PromiseInterface<T>;
|
|
6
|
-
}
|
|
7
|
-
export interface PromiseLibraryInterface {
|
|
8
|
-
all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>, T8 | PromiseInterface<T8>, T9 | PromiseInterface<T9>, T10 | PromiseInterface<T10>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
|
|
9
|
-
all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>, T8 | PromiseInterface<T8>, T9 | PromiseInterface<T9>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
|
|
10
|
-
all<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>, T8 | PromiseInterface<T8>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7, T8]>;
|
|
11
|
-
all<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7]>;
|
|
12
|
-
all<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>]): PromiseInterface<[T1, T2, T3, T4, T5, T6]>;
|
|
13
|
-
all<T1, T2, T3, T4, T5>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>]): PromiseInterface<[T1, T2, T3, T4, T5]>;
|
|
14
|
-
all<T1, T2, T3, T4>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>]): PromiseInterface<[T1, T2, T3, T4]>;
|
|
15
|
-
all<T1, T2, T3>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>]): PromiseInterface<[T1, T2, T3]>;
|
|
16
|
-
all<T1, T2>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>]): PromiseInterface<[T1, T2]>;
|
|
17
|
-
all<TAll>(promises: Array<TAll | PromiseInterface<TAll>>): PromiseInterface<TAll[]>;
|
|
18
|
-
all(iterable: Array<PromiseInterface<any> | any>): PromiseInterface<any[]>;
|
|
19
|
-
all<T>(promises: {
|
|
20
|
-
[K in keyof T]: (PromiseInterface<T[K]> | T[K] | null);
|
|
21
|
-
}): PromiseInterface<T>;
|
|
22
|
-
when<T>(value?: PromiseInterface<T> | T): PromiseInterface<T>;
|
|
23
|
-
reject(value?: any): PromiseInterface<any>;
|
|
24
|
-
defer<T>(): Deferred<T>;
|
|
25
|
-
}
|
|
1
|
+
import { PromiseInterface } from '../internal';
|
|
2
|
+
export interface Deferred<T> {
|
|
3
|
+
resolve(value?: T | PromiseInterface<T>): void;
|
|
4
|
+
reject(reason?: any): void;
|
|
5
|
+
promise: PromiseInterface<T>;
|
|
6
|
+
}
|
|
7
|
+
export interface PromiseLibraryInterface {
|
|
8
|
+
all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>, T8 | PromiseInterface<T8>, T9 | PromiseInterface<T9>, T10 | PromiseInterface<T10>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
|
|
9
|
+
all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>, T8 | PromiseInterface<T8>, T9 | PromiseInterface<T9>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
|
|
10
|
+
all<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>, T8 | PromiseInterface<T8>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7, T8]>;
|
|
11
|
+
all<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>, T7 | PromiseInterface<T7>]): PromiseInterface<[T1, T2, T3, T4, T5, T6, T7]>;
|
|
12
|
+
all<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>, T6 | PromiseInterface<T6>]): PromiseInterface<[T1, T2, T3, T4, T5, T6]>;
|
|
13
|
+
all<T1, T2, T3, T4, T5>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>, T5 | PromiseInterface<T5>]): PromiseInterface<[T1, T2, T3, T4, T5]>;
|
|
14
|
+
all<T1, T2, T3, T4>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>, T4 | PromiseInterface<T4>]): PromiseInterface<[T1, T2, T3, T4]>;
|
|
15
|
+
all<T1, T2, T3>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>, T3 | PromiseInterface<T3>]): PromiseInterface<[T1, T2, T3]>;
|
|
16
|
+
all<T1, T2>(values: [T1 | PromiseInterface<T1>, T2 | PromiseInterface<T2>]): PromiseInterface<[T1, T2]>;
|
|
17
|
+
all<TAll>(promises: Array<TAll | PromiseInterface<TAll>>): PromiseInterface<TAll[]>;
|
|
18
|
+
all(iterable: Array<PromiseInterface<any> | any>): PromiseInterface<any[]>;
|
|
19
|
+
all<T>(promises: {
|
|
20
|
+
[K in keyof T]: (PromiseInterface<T[K]> | T[K] | null);
|
|
21
|
+
}): PromiseInterface<T>;
|
|
22
|
+
when<T>(value?: PromiseInterface<T> | T): PromiseInterface<T>;
|
|
23
|
+
reject(value?: any): PromiseInterface<any>;
|
|
24
|
+
defer<T>(): Deferred<T>;
|
|
25
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { ItemCreateService } from '../
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
itemCreateService: ItemCreateService;
|
|
7
|
-
}
|
|
1
|
+
import { AbstractCacheDependencyInterface, ChangesProcessorFactory, ItemCreateService } from '../internal';
|
|
2
|
+
export interface ServerCacheDependencyInterface extends AbstractCacheDependencyInterface {
|
|
3
|
+
changesProcessorFactory: ChangesProcessorFactory;
|
|
4
|
+
itemCreateService: ItemCreateService;
|
|
5
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface SocketMessageInterface {
|
|
2
|
-
on(event: string, messageHandler: (message: any) => void): () => boolean;
|
|
3
|
-
}
|
|
1
|
+
export interface SocketMessageInterface {
|
|
2
|
+
on(event: string, messageHandler: (message: any) => void): () => boolean;
|
|
3
|
+
}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { CollectionEntryService, ColumnCache, ColumnHandler, ColumnUtil, KeyService, QueryService } from '../
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
exceptionHandler: ExceptionHandlerInterface;
|
|
19
|
-
queryService: QueryService;
|
|
20
|
-
columnCache: ColumnCache;
|
|
21
|
-
}
|
|
1
|
+
import { CacheSyncerFactory, ChangesDeltaFactory, CollectionEntryService, ColumnCache, ColumnExpansionFactory, ColumnHandler, ColumnSubsetCacheFactory, ColumnUtil, ErrorHandlerInterface, ExceptionHandlerInterface, KeyService, PromiseLibraryInterface, QueryService, RequestColumnExpansionFactory } from '../internal';
|
|
2
|
+
export interface TransactionCollectionHandlerDependencyInterface {
|
|
3
|
+
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
4
|
+
columnUtil: ColumnUtil;
|
|
5
|
+
columnSubsetCacheFactory: ColumnSubsetCacheFactory;
|
|
6
|
+
columnExpansionFactory: ColumnExpansionFactory;
|
|
7
|
+
changesDeltaFactory: ChangesDeltaFactory;
|
|
8
|
+
collectionEntryService: CollectionEntryService;
|
|
9
|
+
collectionMatcherFactory: CacheSyncerFactory;
|
|
10
|
+
columnHandler: ColumnHandler;
|
|
11
|
+
errorHandler: ErrorHandlerInterface;
|
|
12
|
+
keyService: KeyService;
|
|
13
|
+
promiseService: PromiseLibraryInterface;
|
|
14
|
+
exceptionHandler: ExceptionHandlerInterface;
|
|
15
|
+
queryService: QueryService;
|
|
16
|
+
columnCache: ColumnCache;
|
|
17
|
+
}
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
import { ApiFormatter, CollectionEntryService, ColumnHandler, ColumnUtil, ConversionMapService, ItemCreateService, ItemEntryService, KeyService } from '../
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
promiseService: PromiseLibraryInterface;
|
|
24
|
-
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
25
|
-
templateCache: TemplateCache;
|
|
26
|
-
collectionEntryService: CollectionEntryService;
|
|
27
|
-
}
|
|
1
|
+
import { ApiFormatter, ChangesDeltaFactory, CollectionEntryService, ColumnExpansionFactory, ColumnHandler, ColumnSetFactory, ColumnSubsetCacheFactory, ColumnUtil, ConversionMapService, ErrorHandlerInterface, ExceptionHandlerInterface, ItemCacheFactory, ItemCreateService, ItemEntryFactory, ItemEntryService, KeyService, PromiseLibraryInterface, RequestColumnExpansionFactory, TemplateCache } from '../internal';
|
|
2
|
+
export interface TransactionItemHandlerDependencyInterface {
|
|
3
|
+
apiFormatter: ApiFormatter;
|
|
4
|
+
changesDeltaFactory: ChangesDeltaFactory;
|
|
5
|
+
columnExpansionFactory: ColumnExpansionFactory;
|
|
6
|
+
columnHandler: ColumnHandler;
|
|
7
|
+
columnSetFactory: ColumnSetFactory;
|
|
8
|
+
columnSubsetCacheFactory: ColumnSubsetCacheFactory;
|
|
9
|
+
columnUtil: ColumnUtil;
|
|
10
|
+
conversionMapService: ConversionMapService;
|
|
11
|
+
errorHandler: ErrorHandlerInterface;
|
|
12
|
+
exceptionHandler: ExceptionHandlerInterface;
|
|
13
|
+
itemCacheFactory: ItemCacheFactory;
|
|
14
|
+
itemCreateService: ItemCreateService;
|
|
15
|
+
itemEntryFactory: ItemEntryFactory;
|
|
16
|
+
itemEntryService: ItemEntryService;
|
|
17
|
+
keyService: KeyService;
|
|
18
|
+
promiseService: PromiseLibraryInterface;
|
|
19
|
+
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
20
|
+
templateCache: TemplateCache;
|
|
21
|
+
collectionEntryService: CollectionEntryService;
|
|
22
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is the only place where things should be exported. *All files* should import from this file.
|
|
3
|
+
* Exports here should be ordered by inheritance.
|
|
4
|
+
*/
|
|
5
|
+
export * from './constants';
|
|
6
|
+
export * from './types/ItemTypesCollection';
|
|
7
|
+
export * from './types/PromiseInterface';
|
|
8
|
+
export * from './models/ItemEntryOptions';
|
|
9
|
+
export * from './models/ItemEntry';
|
|
10
|
+
export * from './models/ItemResource';
|
|
11
|
+
export * from './models/CachedQueryItem';
|
|
12
|
+
export * from './models/CollectionOptions';
|
|
13
|
+
export * from './models/CollectionEntry';
|
|
14
|
+
export * from './models/CollectionResource';
|
|
15
|
+
export * from './models/Template';
|
|
16
|
+
export * from './interfaces/PromiseLibraryInterface';
|
|
17
|
+
export * from './interfaces/ErrorHandlerInterface';
|
|
18
|
+
export * from './interfaces/ExceptionHandlerInterface';
|
|
19
|
+
export * from './interfaces/AuthInterface';
|
|
20
|
+
export * from './interfaces/ApiRequestServiceInterface';
|
|
21
|
+
export * from './interfaces/SocketMessageInterface';
|
|
22
|
+
export * from './interfaces/LinkTreeServiceInterface';
|
|
23
|
+
export * from './classes/Util';
|
|
24
|
+
export * from './classes/ApiFormatter';
|
|
25
|
+
export * from './classes/ApiRequestService';
|
|
26
|
+
export * from './classes/ApiResponseProcessor';
|
|
27
|
+
export * from './classes/ChangesCompilation';
|
|
28
|
+
export * from './classes/ChangesProcessor';
|
|
29
|
+
export * from './classes/CollectionEntryService';
|
|
30
|
+
export * from './classes/CacheSyncer';
|
|
31
|
+
export * from './classes/CollectionResourceService';
|
|
32
|
+
export * from './classes/ColumnCache';
|
|
33
|
+
export * from './classes/ColumnExpansion';
|
|
34
|
+
export * from './classes/ColumnHandler';
|
|
35
|
+
export * from './classes/ColumnInfo';
|
|
36
|
+
export * from './classes/ColumnSet';
|
|
37
|
+
export * from './classes/ColumnSubsetCache';
|
|
38
|
+
export * from './classes/ColumnUtil';
|
|
39
|
+
export * from './classes/ConversionMapService';
|
|
40
|
+
export * from './classes/CreateRequest';
|
|
41
|
+
export * from './classes/ItemCache';
|
|
42
|
+
export * from './classes/ItemEntryService';
|
|
43
|
+
export * from './classes/KeyService';
|
|
44
|
+
export * from './classes/cache/transaction/TransactionEventHandler';
|
|
45
|
+
export * from './classes/LockService';
|
|
46
|
+
export * from './classes/ModuleChangesCompilation';
|
|
47
|
+
export * from './classes/QueryMatcher';
|
|
48
|
+
export * from './classes/QueryParserBase';
|
|
49
|
+
export * from './classes/QueryColumnExtractor';
|
|
50
|
+
export * from './classes/QueryContainsLocalIdParser';
|
|
51
|
+
export * from './classes/QueryLinkedToParser';
|
|
52
|
+
export * from './classes/QueryLocallyMatchableParser';
|
|
53
|
+
export * from './classes/QueryParser';
|
|
54
|
+
export * from './classes/QueryParserIdUpdater';
|
|
55
|
+
export * from './classes/QueryService';
|
|
56
|
+
export * from './classes/RequestColumnExpansion';
|
|
57
|
+
export * from './classes/SocketMessageHandler';
|
|
58
|
+
export * from './classes/cache/AbstractCache';
|
|
59
|
+
export * from './classes/cache/server/ServerCache';
|
|
60
|
+
export * from './classes/cache/ItemHandlerBase';
|
|
61
|
+
export * from './classes/cache/server/ServerItemHandler';
|
|
62
|
+
export * from './classes/cache/CachedQueryHandlerBase';
|
|
63
|
+
export * from './classes/cache/server/ServerCachedQueryHandler';
|
|
64
|
+
export * from './classes/cache/transaction/TransactionCache';
|
|
65
|
+
export * from './classes/cache/transaction/TransactionItemHandler';
|
|
66
|
+
export * from './classes/cache/transaction/TransactionCachedQueryHandler';
|
|
67
|
+
export * from './classes/cache/transaction/TransactionCollectionHandler';
|
|
68
|
+
export * from './classes/cache/transaction/TransactionEventHandler';
|
|
69
|
+
export * from './classes/cache/transaction/TransactionValidator';
|
|
70
|
+
export * from './classes/ChangesDeltaBase';
|
|
71
|
+
export * from './classes/ChangesDelta';
|
|
72
|
+
export * from './classes/InternalChangesDelta';
|
|
73
|
+
export * from './classes/ParentChangesDelta';
|
|
74
|
+
export * from './classes/RequestBufferManager';
|
|
75
|
+
export * from './classes/RequestBuffer';
|
|
76
|
+
export * from './classes/ItemCreateService';
|
|
77
|
+
export * from './classes/CreatedChangesDelta';
|
|
78
|
+
export * from './classes/TemplateCache';
|
|
79
|
+
export * from './factories/ApiResponseProcessorFactory';
|
|
80
|
+
export * from './factories/ChangesCompilationFactory';
|
|
81
|
+
export * from './factories/CollectionEntryFactory';
|
|
82
|
+
export * from './factories/CacheSyncerFactory';
|
|
83
|
+
export * from './factories/CollectionResourceFactory';
|
|
84
|
+
export * from './factories/ColumnExpansionFactory';
|
|
85
|
+
export * from './factories/ColumnInfoFactory';
|
|
86
|
+
export * from './factories/ColumnSetFactory';
|
|
87
|
+
export * from './factories/ColumnSubsetCacheFactory';
|
|
88
|
+
export * from './factories/CreateRequestFactory';
|
|
89
|
+
export * from './factories/ItemCacheFactory';
|
|
90
|
+
export * from './factories/ItemEntryFactory';
|
|
91
|
+
export * from './factories/ItemResourceFactory';
|
|
92
|
+
export * from './factories/TransactionCacheFactory';
|
|
93
|
+
export * from './factories/ModuleChangesCompilationFactory';
|
|
94
|
+
export * from './factories/QueryMatcherFactory';
|
|
95
|
+
export * from './factories/QueryParserFactory';
|
|
96
|
+
export * from './factories/RequestColumnExpansionFactory';
|
|
97
|
+
export * from './factories/TemplateFactory';
|
|
98
|
+
export * from './factories/ChangesDeltaFactory';
|
|
99
|
+
export * from './factories/ChangesProcessorFactory';
|
|
100
|
+
export * from './interfaces/AbstractCacheDependencyInterface';
|
|
101
|
+
export * from './interfaces/TransactionItemHandlerDependencyInterface';
|
|
102
|
+
export * from './interfaces/TransactionCollectionHandlerDependencyInterface';
|
|
103
|
+
export * from './interfaces/ServerCacheDependencyInterface';
|
|
104
|
+
export * from './core';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
+
import { ApiRequestColumns, CollectionQuery, ItemEntry, PromiseInterface, PromiseLibraryInterface } from '../internal';
|
|
3
|
+
export declare class CachedQueryItem<ItemTypeType extends ApiEnumItemType = any> {
|
|
4
|
+
readonly itemType: ItemTypeType;
|
|
5
|
+
query: CollectionQuery;
|
|
6
|
+
items: ItemEntry<ItemTypeType>[];
|
|
7
|
+
requestColumns: ApiRequestColumns;
|
|
8
|
+
private promiseService;
|
|
9
|
+
promise: PromiseInterface<this>;
|
|
10
|
+
private deferred;
|
|
11
|
+
constructor(itemType: ItemTypeType, query: CollectionQuery, items: ItemEntry<ItemTypeType>[], requestColumns: ApiRequestColumns, promiseService: PromiseLibraryInterface);
|
|
12
|
+
itemsResolved(): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Resolve can be called on items that are already resolved. The request buffer might or might not combine
|
|
15
|
+
* requests together.
|
|
16
|
+
*/
|
|
17
|
+
resolve(): void;
|
|
18
|
+
reject(reason: any): void;
|
|
19
|
+
}
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import { ApiEnumItemType, ApiFields } from '@rentman/backend-types';
|
|
2
|
-
import { CollectionEntryService, ColumnCache, ColumnExpansion, ColumnSet, KeyService, QueryService } from '../
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
queueReload(): void;
|
|
23
|
-
expandColumns(columnExpansion: ColumnExpansion<ItemTypeType>): void;
|
|
24
|
-
}
|
|
1
|
+
import { ApiEnumItemType, ApiFields } from '@rentman/backend-types';
|
|
2
|
+
import { CollectionEntryService, CollectionOptions, CollectionQuery, ColumnCache, ColumnExpansion, ColumnSet, ColumnSetFactory, EntryParentNull, KeyService, PromiseInterface, QueryService } from '../internal';
|
|
3
|
+
export declare class CollectionEntry<ItemTypeType extends ApiEnumItemType = any, ColumnIds extends Array<keyof ApiFields[ItemTypeType]> = Array<keyof ApiFields[ItemTypeType]>> {
|
|
4
|
+
private collectionEntryService;
|
|
5
|
+
private queryService;
|
|
6
|
+
private columnSetFactory;
|
|
7
|
+
private keyService;
|
|
8
|
+
private columnCache;
|
|
9
|
+
itemType: ItemTypeType;
|
|
10
|
+
options: CollectionOptions<ItemTypeType, ColumnIds>;
|
|
11
|
+
id: number;
|
|
12
|
+
parent: EntryParentNull;
|
|
13
|
+
query: CollectionQuery;
|
|
14
|
+
columns: ColumnSet<ItemTypeType>;
|
|
15
|
+
reloadQueued: boolean;
|
|
16
|
+
promise: PromiseInterface<this>;
|
|
17
|
+
constructor(collectionEntryService: CollectionEntryService, queryService: QueryService, columnSetFactory: ColumnSetFactory, keyService: KeyService, columnCache: ColumnCache, itemType: ItemTypeType, options: CollectionOptions<ItemTypeType, ColumnIds>);
|
|
18
|
+
isLocal(): boolean;
|
|
19
|
+
queueReload(): void;
|
|
20
|
+
expandColumns(columnExpansion: ColumnExpansion<ItemTypeType>): void;
|
|
21
|
+
}
|
|
@@ -1,24 +1,42 @@
|
|
|
1
|
-
import { ApiEnumItemType, ApiFields } from '@rentman/backend-types';
|
|
2
|
-
import { CollectionResource, ItemResource } from '../
|
|
3
|
-
|
|
4
|
-
export declare type
|
|
5
|
-
export declare type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
preventCaching
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { ApiEnumItemType, ApiFields } from '@rentman/backend-types';
|
|
2
|
+
import { ApiQuery, ApiRequestColumns, ApiRequestLimit, ChildCollectionResourcesNull, CollectionResource, EntryParentNull, FieldChangeCallback, ItemResource } from '../internal';
|
|
3
|
+
export declare type CollectionResourceOnRemoveCallback<ItemTypeType extends ApiEnumItemType, ColumnIds extends Array<keyof ApiFields[ItemTypeType]> = Array<keyof ApiFields[ItemTypeType]>, Children extends ChildCollectionResourcesNull = any> = (itemResources: Array<ItemResource<ItemTypeType, ColumnIds, Children>>, collectionResource: CollectionResource<ItemTypeType, ColumnIds, Children>, isCalledAfterSocketUpdate: boolean) => void;
|
|
4
|
+
export declare type CollectionResourceOnAddCallback<ItemTypeType extends ApiEnumItemType, ColumnIds extends Array<keyof ApiFields[ItemTypeType]> = Array<keyof ApiFields[ItemTypeType]>, Children extends ChildCollectionResourcesNull = any> = (itemResources: Array<ItemResource<ItemTypeType, ColumnIds, Children>>, collectionResource: CollectionResource<ItemTypeType, ColumnIds, Children>, isInitialCall: boolean, isCalledAfterSocketUpdate: boolean) => void;
|
|
5
|
+
export declare type ChildCollectionOptions = {
|
|
6
|
+
[ChildItemType in ApiEnumItemType]?: CollectionOptions<ChildItemType>;
|
|
7
|
+
};
|
|
8
|
+
export interface CollectionOptionsInterface<ItemTypeType extends ApiEnumItemType = any, ColumnIds extends Array<keyof ApiFields[ItemTypeType]> = Array<keyof ApiFields[ItemTypeType]>> {
|
|
9
|
+
columns?: ApiRequestColumns;
|
|
10
|
+
query?: ApiQuery | null;
|
|
11
|
+
queryColumns?: ApiRequestColumns;
|
|
12
|
+
parent?: EntryParentNull;
|
|
13
|
+
limit?: ApiRequestLimit | null;
|
|
14
|
+
onAdd?: CollectionResourceOnAddCallback<ItemTypeType, ColumnIds>;
|
|
15
|
+
onRemove?: CollectionResourceOnRemoveCallback<ItemTypeType, ColumnIds>;
|
|
16
|
+
onChange?: FieldChangeCallback;
|
|
17
|
+
custom?: any;
|
|
18
|
+
callOnAddWithInitialItems?: boolean;
|
|
19
|
+
children?: {
|
|
20
|
+
[ChildItemType in ApiEnumItemType]?: CollectionOptionsInterface<ChildItemType>;
|
|
21
|
+
} | null;
|
|
22
|
+
preventCaching?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare class CollectionOptions<ItemTypeType extends ApiEnumItemType = any, ColumnIds extends Array<keyof ApiFields[ItemTypeType]> = Array<keyof ApiFields[ItemTypeType]>> implements Required<CollectionOptionsInterface> {
|
|
25
|
+
columns: ApiRequestColumns;
|
|
26
|
+
query: ApiQuery | null;
|
|
27
|
+
queryColumns: ApiRequestColumns;
|
|
28
|
+
parent: EntryParentNull;
|
|
29
|
+
limit: ApiRequestLimit | null;
|
|
30
|
+
onAdd: CollectionResourceOnAddCallback<ItemTypeType, ColumnIds>;
|
|
31
|
+
onRemove: CollectionResourceOnRemoveCallback<ItemTypeType, ColumnIds>;
|
|
32
|
+
onChange: FieldChangeCallback;
|
|
33
|
+
custom: any;
|
|
34
|
+
callOnAddWithInitialItems: boolean;
|
|
35
|
+
children: ChildCollectionOptions | null;
|
|
36
|
+
/**
|
|
37
|
+
* @description
|
|
38
|
+
* Prevents a CachedQueryItem from being cached (the CollectionResource will still be cached), you can use this when you fetch an Itemtype for which the backend doesn't send socket messages (so it never automatically updates)
|
|
39
|
+
*/
|
|
40
|
+
preventCaching: boolean;
|
|
41
|
+
constructor(optionsInterface: CollectionOptionsInterface<ItemTypeType, ColumnIds>);
|
|
42
|
+
}
|
|
@@ -1,78 +1,87 @@
|
|
|
1
|
-
import { ApiEnumItemType, ApiFields, ItemId } from '@rentman/backend-types';
|
|
2
|
-
import { TransactionCache } from '../
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
private
|
|
16
|
-
private readonly
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
*
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
1
|
+
import { ApiEnumItemType, ApiFields, ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ApiRequestLimit, ChangesDeltaResult, ChildCollectionResourcesNull, CollectionEntry, CollectionOptions, CollectionResourceFactory, CompareFieldCallback, DeregFunction, FieldMap, ItemEntry, ItemResource, OnAddCallback, OnChangeCallback, OnRemoveCallback, PromiseInterface, ResponseColumnItemTypeMap, TransactionCache } from '../internal';
|
|
3
|
+
export declare class CollectionResource<ItemTypeType extends ApiEnumItemType = any, ColumnIds extends Array<keyof ApiFields[ItemTypeType]> = Array<keyof ApiFields[ItemTypeType]>, Children extends ChildCollectionResourcesNull = any> {
|
|
4
|
+
protected factory: CollectionResourceFactory;
|
|
5
|
+
options: CollectionOptions<ItemTypeType, ColumnIds>;
|
|
6
|
+
transaction: TransactionCache;
|
|
7
|
+
entry: CollectionEntry<ItemTypeType, ColumnIds>;
|
|
8
|
+
columns: ResponseColumnItemTypeMap;
|
|
9
|
+
items: Array<ItemResource<ItemTypeType, ColumnIds, Children>>;
|
|
10
|
+
protected itemIdMap: {
|
|
11
|
+
[itemId: number]: ItemResource<ItemTypeType, ColumnIds, Children>;
|
|
12
|
+
};
|
|
13
|
+
private fieldChangeDeregFns;
|
|
14
|
+
private readonly onChangeCallbacks;
|
|
15
|
+
private readonly onAddCallbacks;
|
|
16
|
+
private readonly onRemoveCallbacks;
|
|
17
|
+
/**
|
|
18
|
+
* @description
|
|
19
|
+
* We store the ItemIds of the items that were taking out the collections so that we can include those when doing a not-in when having a limit
|
|
20
|
+
*/
|
|
21
|
+
private removedItemIds;
|
|
22
|
+
constructor(factory: CollectionResourceFactory, options: CollectionOptions<ItemTypeType, ColumnIds>, transaction: TransactionCache, itemType: ItemTypeType, initialItemEntries: Array<ItemEntry<ItemTypeType>>, childCollectionResourceMap: Children);
|
|
23
|
+
onConstruct(): void;
|
|
24
|
+
/**
|
|
25
|
+
* @description
|
|
26
|
+
* Removes the query (if it's cached) from the TransactionCachedQueryHandler and redoes the query
|
|
27
|
+
*/
|
|
28
|
+
refresh(): PromiseInterface<void>;
|
|
29
|
+
setLimit(newLimit: number | ApiRequestLimit): void;
|
|
30
|
+
onAdd(callback: OnAddCallback<ItemTypeType, ColumnIds, Children>): DeregFunction;
|
|
31
|
+
onChange(callback: OnChangeCallback<ItemTypeType, ColumnIds>): DeregFunction;
|
|
32
|
+
onRemove(callback: OnRemoveCallback<ItemTypeType, ColumnIds, Children>): DeregFunction;
|
|
33
|
+
__clear(): void;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated
|
|
36
|
+
* Use {@link ChangesDelta.setItemMoved ChangesDelta.setItemMoved}
|
|
37
|
+
*/
|
|
38
|
+
moveItems(itemEntries: Array<ItemEntry<ItemTypeType>>, destinationResource: CollectionResource<ItemTypeType>): void;
|
|
39
|
+
removeItems(idArray: ItemId[]): PromiseInterface<ChangesDeltaResult>;
|
|
40
|
+
removeItem(itemId: ItemId): PromiseInterface<ChangesDeltaResult>;
|
|
41
|
+
addItems(valuesArray: Array<Partial<FieldMap<ItemTypeType, ColumnIds>>>): PromiseInterface<ChangesDeltaResult>;
|
|
42
|
+
addItem(values: Partial<FieldMap<ItemTypeType>>): PromiseInterface<ChangesDeltaResult>;
|
|
43
|
+
getIdArray(): ItemId[];
|
|
44
|
+
getItemById(itemId: ItemId): ItemResource<ItemTypeType, ColumnIds, Children>;
|
|
45
|
+
/**
|
|
46
|
+
* Creates item resources and adds them to the `items` array.
|
|
47
|
+
* @param itemEntriesToBeAdded
|
|
48
|
+
*/
|
|
49
|
+
addItemEntries(itemEntriesToBeAdded: Array<ItemEntry<ItemTypeType>>, isInitialCall?: boolean, isCalledAfterSocketUpdate?: boolean): PromiseInterface<Array<ItemResource<ItemTypeType, ColumnIds, Children>>>;
|
|
50
|
+
/**
|
|
51
|
+
* Creates item resources and adds them to the `items` array. This function is also called when the collection
|
|
52
|
+
* resource is constructed. When adding item resources to the collection externally, {@link addItemEntries} should
|
|
53
|
+
* be called.
|
|
54
|
+
* @param itemEntriesToBeAdded - These item entries are assumed not to be in the collection yet.
|
|
55
|
+
*/
|
|
56
|
+
private addItemResources;
|
|
57
|
+
/**
|
|
58
|
+
* @description
|
|
59
|
+
* Returns the {@link ItemResource ItemResources} that where removed from the {@link CollectionResource collection}.
|
|
60
|
+
* Filters on {@link ItemResource ItemResource}.{@link ItemEntry entry} === {@link ItemEntry entry}
|
|
61
|
+
*/
|
|
62
|
+
removeItemResources(itemEntries: Array<ItemEntry<ItemTypeType>>, isCalledAfterSocketUpdate: boolean): Array<ItemResource<ItemTypeType, ColumnIds, Children>>;
|
|
63
|
+
callOnAdd(itemResources: Array<ItemResource<ItemTypeType, ColumnIds, Children>>, isInitialCall?: boolean, isCalledAfterSocketUpdate?: boolean): void;
|
|
64
|
+
callOnChange(itemEntry: ItemEntry<ItemTypeType>, compareField: CompareFieldCallback<FieldMap<ItemTypeType, ColumnIds>>, fields: FieldMap<ItemTypeType, ColumnIds>, isCalledAfterSocketUpdate: boolean, previous: FieldMap<ItemTypeType, ColumnIds>): void;
|
|
65
|
+
callOnRemove(itemResources: Array<ItemResource<ItemTypeType, ColumnIds, Children>>, isCalledAfterSocketUpdate: boolean): void;
|
|
66
|
+
forEach(callback: (itemResource: ItemResource<ItemTypeType, ColumnIds, Children>) => void): void;
|
|
67
|
+
filter(callback: (itemResource: ItemResource<ItemTypeType, ColumnIds, Children>) => boolean): Array<ItemResource<ItemTypeType, ColumnIds, Children>>;
|
|
68
|
+
first(callback: (itemResource: ItemResource<ItemTypeType, ColumnIds, Children>) => boolean): ItemResource<ItemTypeType, ColumnIds, Children> | null;
|
|
69
|
+
some(callback: (itemResource: ItemResource<ItemTypeType, ColumnIds, Children>) => boolean): boolean;
|
|
70
|
+
groupBy(argument: string | ((itemResource: ItemResource<ItemTypeType, ColumnIds, Children>) => string | null)): {
|
|
71
|
+
[key: string]: Array<ItemResource<ItemTypeType, ColumnIds, Children>>;
|
|
72
|
+
};
|
|
73
|
+
map<U>(argument: string | ((itemResource: ItemResource<ItemTypeType, ColumnIds, Children>) => U)): U[];
|
|
74
|
+
reduce<U>(callback: (itemResource: ItemResource<ItemTypeType, ColumnIds, Children>, value: U) => U, value: U): U;
|
|
75
|
+
/**
|
|
76
|
+
* @description
|
|
77
|
+
* Removes the reference to the {@link CollectionResource CollectionResource} from the {@link CollectionEntry CollectionEntry}
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
80
|
+
* - Doesn't revert changes on the items themselves
|
|
81
|
+
*/
|
|
82
|
+
clearResource(): void;
|
|
83
|
+
private registerListeners;
|
|
84
|
+
private __registerCallback;
|
|
85
|
+
private limitAfterRemove;
|
|
86
|
+
private limitAfterAdd;
|
|
87
|
+
}
|