@rentman/rm-core 7.0.6 → 7.0.8
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 +828 -820
- package/dist/rm-core.js +9929 -9910
- package/dist/rm-core.min.js +2 -2
- package/dist/types/classes/ApiFormatter.d.ts +65 -65
- package/dist/types/classes/ApiRequestService.d.ts +20 -20
- package/dist/types/classes/ApiResponseProcessor.d.ts +31 -31
- package/dist/types/classes/ChangesCompilation.d.ts +34 -34
- package/dist/types/classes/ChangesDelta.d.ts +61 -61
- package/dist/types/classes/ChangesDeltaBase.d.ts +51 -51
- package/dist/types/classes/ChangesProcessor.d.ts +47 -47
- package/dist/types/classes/CollectionEntryService.d.ts +26 -26
- package/dist/types/classes/CollectionMatcherBase.d.ts +21 -21
- package/dist/types/classes/CollectionMatcherCachedCollectionProcessor.d.ts +31 -31
- package/dist/types/classes/CollectionResourceService.d.ts +7 -7
- package/dist/types/classes/ColumnCache.d.ts +21 -21
- package/dist/types/classes/ColumnExpansion.d.ts +22 -22
- package/dist/types/classes/ColumnHandler.d.ts +21 -21
- package/dist/types/classes/ColumnInfo.d.ts +14 -14
- package/dist/types/classes/ColumnSet.d.ts +38 -38
- package/dist/types/classes/ColumnSubsetCache.d.ts +10 -10
- package/dist/types/classes/ColumnUtil.d.ts +99 -99
- package/dist/types/classes/ConversionMapService.d.ts +27 -27
- package/dist/types/classes/CreateRequest.d.ts +19 -19
- package/dist/types/classes/CreatedChangesDelta.d.ts +16 -16
- package/dist/types/classes/InternalChangesDelta.d.ts +39 -39
- package/dist/types/classes/ItemCache.d.ts +29 -29
- package/dist/types/classes/ItemCreateService.d.ts +24 -24
- package/dist/types/classes/ItemEntryService.d.ts +34 -34
- package/dist/types/classes/KeyService.d.ts +17 -17
- package/dist/types/classes/LockService.d.ts +32 -32
- package/dist/types/classes/ModuleChangesCompilation.d.ts +18 -18
- package/dist/types/classes/QueryColumnExtractor.d.ts +20 -20
- package/dist/types/classes/QueryContainsLocalIdParser.d.ts +17 -17
- package/dist/types/classes/QueryLinkedToParser.d.ts +16 -16
- package/dist/types/classes/QueryLocallyMatchableParser.d.ts +19 -19
- package/dist/types/classes/QueryMatcher.d.ts +18 -18
- package/dist/types/classes/QueryParser.d.ts +24 -24
- package/dist/types/classes/QueryParserBase.d.ts +29 -29
- package/dist/types/classes/QueryParserIdUpdater.d.ts +16 -16
- package/dist/types/classes/QueryService.d.ts +18 -18
- package/dist/types/classes/RequestBuffer.d.ts +28 -28
- package/dist/types/classes/RequestBufferManager.d.ts +25 -25
- package/dist/types/classes/RequestColumnExpansion.d.ts +15 -15
- package/dist/types/classes/SocketMessageHandler.d.ts +39 -39
- package/dist/types/classes/TemplateCache.d.ts +66 -66
- package/dist/types/classes/Util.d.ts +31 -31
- package/dist/types/classes/cache/AbstractCache.d.ts +103 -103
- package/dist/types/classes/cache/CachedQueryHandlerBase.d.ts +74 -74
- package/dist/types/classes/cache/CollectionMatcherCachedQueryProcessor.d.ts +35 -35
- package/dist/types/classes/cache/ItemHandlerBase.d.ts +105 -105
- package/dist/types/classes/cache/server/ServerCache.d.ts +82 -82
- package/dist/types/classes/cache/server/ServerCachedQueryHandler.d.ts +34 -34
- package/dist/types/classes/cache/server/ServerItemHandler.d.ts +52 -52
- package/dist/types/classes/cache/transaction/TransactionCache.d.ts +324 -324
- package/dist/types/classes/cache/transaction/TransactionCachedQueryHandler.d.ts +23 -23
- package/dist/types/classes/cache/transaction/TransactionCollectionHandler.d.ts +28 -28
- package/dist/types/classes/cache/transaction/TransactionEventHandler.d.ts +24 -24
- package/dist/types/classes/cache/transaction/TransactionItemHandler.d.ts +90 -90
- package/dist/types/classes/cache/transaction/TransactionValidator.d.ts +34 -34
- package/dist/types/classes/index.d.ts +46 -46
- package/dist/types/constants.d.ts +7 -7
- package/dist/types/core.d.ts +51 -51
- package/dist/types/factories/ApiResponseProcessorFactory.d.ts +6 -6
- package/dist/types/factories/ChangesCompilationFactory.d.ts +6 -6
- package/dist/types/factories/ChangesDeltaFactory.d.ts +13 -13
- package/dist/types/factories/ChangesProcessorFactory.d.ts +22 -22
- package/dist/types/factories/CollectionEntryFactory.d.ts +14 -14
- package/dist/types/factories/CollectionMatcherFactory.d.ts +19 -19
- package/dist/types/factories/CollectionResourceFactory.d.ts +22 -22
- package/dist/types/factories/ColumnExpansionFactory.d.ts +8 -8
- package/dist/types/factories/ColumnInfoFactory.d.ts +7 -7
- package/dist/types/factories/ColumnSetFactory.d.ts +19 -19
- package/dist/types/factories/ColumnSubsetCacheFactory.d.ts +7 -7
- package/dist/types/factories/CreateRequestFactory.d.ts +11 -11
- package/dist/types/factories/ItemCacheFactory.d.ts +8 -8
- package/dist/types/factories/ItemEntryFactory.d.ts +15 -15
- package/dist/types/factories/ItemResourceFactory.d.ts +14 -14
- package/dist/types/factories/ModuleChangesCompilationFactory.d.ts +5 -5
- package/dist/types/factories/QueryMatcherFactory.d.ts +7 -7
- package/dist/types/factories/QueryParserFactory.d.ts +6 -6
- package/dist/types/factories/RequestColumnExpansionFactory.d.ts +6 -6
- package/dist/types/factories/TemplateFactory.d.ts +10 -10
- package/dist/types/factories/TransactionCacheFactory.d.ts +15 -15
- package/dist/types/factories/index.d.ts +21 -21
- package/dist/types/index.d.ts +7 -7
- package/dist/types/interfaces/AbstractCacheDependencyInterface.d.ts +43 -43
- package/dist/types/interfaces/ApiRequestServiceInterface.d.ts +11 -11
- package/dist/types/interfaces/AuthInterface.d.ts +9 -9
- 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 +7 -7
- package/dist/types/interfaces/SocketMessageInterface.d.ts +3 -3
- package/dist/types/interfaces/TransactionCollectionHandlerDependencyInterface.d.ts +20 -20
- package/dist/types/interfaces/TransactionItemHandlerDependencyInterface.d.ts +26 -26
- package/dist/types/interfaces/index.d.ts +11 -11
- package/dist/types/models/CollectionEntry.d.ts +23 -23
- package/dist/types/models/CollectionOptions.d.ts +18 -18
- package/dist/types/models/CollectionResource.d.ts +77 -72
- package/dist/types/models/ItemEntry.d.ts +19 -19
- package/dist/types/models/ItemEntryOptions.d.ts +8 -8
- package/dist/types/models/ItemResource.d.ts +84 -84
- package/dist/types/models/Template.d.ts +11 -11
- package/dist/types/models/index.d.ts +7 -7
- package/dist/types/types/ItemTypesCollection.d.ts +262 -262
- package/dist/types/types/PromiseInterface.d.ts +2 -2
- package/dist/types/types/index.d.ts +2 -2
- package/package.json +36 -36
- package/readme.md +15 -15
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ServerCache, TransactionCache, TransactionValidatorFactory } from '../classes';
|
|
2
|
-
import { RmCore } from '../core';
|
|
3
|
-
import { ServerCacheDependencyInterface } from '../interfaces';
|
|
4
|
-
export declare class TransactionCacheFactory {
|
|
5
|
-
private dependencies;
|
|
6
|
-
private core;
|
|
7
|
-
private readonly serverCache;
|
|
8
|
-
constructor(dependencies: ServerCacheDependencyInterface, core: RmCore);
|
|
9
|
-
/**
|
|
10
|
-
* Todo[cache] Store a map of all transactions by transaction id ?
|
|
11
|
-
*/
|
|
12
|
-
getById(id: string): TransactionCache | undefined;
|
|
13
|
-
construct(id?: string, validatorFactory?: TransactionValidatorFactory): TransactionCache;
|
|
14
|
-
getServerCache(): ServerCache;
|
|
15
|
-
}
|
|
1
|
+
import { ServerCache, TransactionCache, TransactionValidatorFactory } from '../classes';
|
|
2
|
+
import { RmCore } from '../core';
|
|
3
|
+
import { ServerCacheDependencyInterface } from '../interfaces';
|
|
4
|
+
export declare class TransactionCacheFactory {
|
|
5
|
+
private dependencies;
|
|
6
|
+
private core;
|
|
7
|
+
private readonly serverCache;
|
|
8
|
+
constructor(dependencies: ServerCacheDependencyInterface, core: RmCore);
|
|
9
|
+
/**
|
|
10
|
+
* Todo[cache] Store a map of all transactions by transaction id ?
|
|
11
|
+
*/
|
|
12
|
+
getById(id: string): TransactionCache | undefined;
|
|
13
|
+
construct(id?: string, validatorFactory?: TransactionValidatorFactory): TransactionCache;
|
|
14
|
+
getServerCache(): ServerCache;
|
|
15
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export * from './ApiResponseProcessorFactory';
|
|
2
|
-
export * from './ChangesCompilationFactory';
|
|
3
|
-
export * from './CollectionEntryFactory';
|
|
4
|
-
export * from './CollectionMatcherFactory';
|
|
5
|
-
export * from './CollectionResourceFactory';
|
|
6
|
-
export * from './ColumnExpansionFactory';
|
|
7
|
-
export * from './ColumnInfoFactory';
|
|
8
|
-
export * from './ColumnSetFactory';
|
|
9
|
-
export * from './ColumnSubsetCacheFactory';
|
|
10
|
-
export * from './CreateRequestFactory';
|
|
11
|
-
export * from './ItemCacheFactory';
|
|
12
|
-
export * from './ItemEntryFactory';
|
|
13
|
-
export * from './ItemResourceFactory';
|
|
14
|
-
export * from './TransactionCacheFactory';
|
|
15
|
-
export * from './ModuleChangesCompilationFactory';
|
|
16
|
-
export * from './QueryMatcherFactory';
|
|
17
|
-
export * from './QueryParserFactory';
|
|
18
|
-
export * from './RequestColumnExpansionFactory';
|
|
19
|
-
export * from './TemplateFactory';
|
|
20
|
-
export * from './ChangesDeltaFactory';
|
|
21
|
-
export * from './ChangesProcessorFactory';
|
|
1
|
+
export * from './ApiResponseProcessorFactory';
|
|
2
|
+
export * from './ChangesCompilationFactory';
|
|
3
|
+
export * from './CollectionEntryFactory';
|
|
4
|
+
export * from './CollectionMatcherFactory';
|
|
5
|
+
export * from './CollectionResourceFactory';
|
|
6
|
+
export * from './ColumnExpansionFactory';
|
|
7
|
+
export * from './ColumnInfoFactory';
|
|
8
|
+
export * from './ColumnSetFactory';
|
|
9
|
+
export * from './ColumnSubsetCacheFactory';
|
|
10
|
+
export * from './CreateRequestFactory';
|
|
11
|
+
export * from './ItemCacheFactory';
|
|
12
|
+
export * from './ItemEntryFactory';
|
|
13
|
+
export * from './ItemResourceFactory';
|
|
14
|
+
export * from './TransactionCacheFactory';
|
|
15
|
+
export * from './ModuleChangesCompilationFactory';
|
|
16
|
+
export * from './QueryMatcherFactory';
|
|
17
|
+
export * from './QueryParserFactory';
|
|
18
|
+
export * from './RequestColumnExpansionFactory';
|
|
19
|
+
export * from './TemplateFactory';
|
|
20
|
+
export * from './ChangesDeltaFactory';
|
|
21
|
+
export * from './ChangesProcessorFactory';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './core';
|
|
2
|
-
export * from './constants';
|
|
3
|
-
export * from './models';
|
|
4
|
-
export * from './interfaces';
|
|
5
|
-
export * from './classes';
|
|
6
|
-
export * from './factories';
|
|
7
|
-
export * from './types';
|
|
1
|
+
export * from './core';
|
|
2
|
+
export * from './constants';
|
|
3
|
+
export * from './models';
|
|
4
|
+
export * from './interfaces';
|
|
5
|
+
export * from './classes';
|
|
6
|
+
export * from './factories';
|
|
7
|
+
export * from './types';
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { ApiFormatter, ApiRequestService, CollectionEntryService, ColumnCache, ColumnHandler, ColumnUtil, ConversionMapService, ItemCreateService, ItemEntryService, KeyService, LockService, QueryService, RequestBufferManager } from '../classes';
|
|
2
|
-
import { TemplateCache } from '../classes/TemplateCache';
|
|
3
|
-
import { ChangesDeltaFactory, CollectionEntryFactory, CollectionMatcherFactory, CollectionResourceFactory, ColumnExpansionFactory, ColumnSetFactory, ColumnSubsetCacheFactory, ItemCacheFactory, ItemEntryFactory, ItemResourceFactory, ModuleChangesCompilationFactory, QueryMatcherFactory, QueryParserFactory, RequestColumnExpansionFactory } from '../factories';
|
|
4
|
-
import { AuthInterface } from './AuthInterface';
|
|
5
|
-
import { ErrorHandlerInterface } from './ErrorHandlerInterface';
|
|
6
|
-
import { ExceptionHandlerInterface } from './ExceptionHandlerInterface';
|
|
7
|
-
import { LinkTreeServiceInterface } from './LinkTreeServiceInterface';
|
|
8
|
-
import { PromiseLibraryInterface } from './PromiseLibraryInterface';
|
|
9
|
-
export interface AbstractCacheDependencyInterface {
|
|
10
|
-
apiFormatter: ApiFormatter;
|
|
11
|
-
apiRequestService: ApiRequestService;
|
|
12
|
-
authInterface: AuthInterface;
|
|
13
|
-
changesDeltaFactory: ChangesDeltaFactory;
|
|
14
|
-
collectionEntryFactory: CollectionEntryFactory;
|
|
15
|
-
collectionEntryService: CollectionEntryService;
|
|
16
|
-
collectionMatcherFactory: CollectionMatcherFactory;
|
|
17
|
-
collectionResourceFactory: CollectionResourceFactory;
|
|
18
|
-
columnCache: ColumnCache;
|
|
19
|
-
columnExpansionFactory: ColumnExpansionFactory;
|
|
20
|
-
columnHandler: ColumnHandler;
|
|
21
|
-
columnSetFactory: ColumnSetFactory;
|
|
22
|
-
columnSubsetCacheFactory: ColumnSubsetCacheFactory;
|
|
23
|
-
columnUtil: ColumnUtil;
|
|
24
|
-
conversionMapService: ConversionMapService;
|
|
25
|
-
errorHandler: ErrorHandlerInterface;
|
|
26
|
-
exceptionHandler: ExceptionHandlerInterface;
|
|
27
|
-
itemCacheFactory: ItemCacheFactory;
|
|
28
|
-
itemCreateService: ItemCreateService;
|
|
29
|
-
itemEntryFactory: ItemEntryFactory;
|
|
30
|
-
itemEntryService: ItemEntryService;
|
|
31
|
-
itemResourceFactory: ItemResourceFactory;
|
|
32
|
-
keyService: KeyService;
|
|
33
|
-
linkTreeService: LinkTreeServiceInterface;
|
|
34
|
-
lockService: LockService;
|
|
35
|
-
moduleChangesCompilationFactory: ModuleChangesCompilationFactory;
|
|
36
|
-
promiseService: PromiseLibraryInterface;
|
|
37
|
-
queryMatcherFactory: QueryMatcherFactory;
|
|
38
|
-
queryParserFactory: QueryParserFactory;
|
|
39
|
-
queryService: QueryService;
|
|
40
|
-
requestBufferManager: RequestBufferManager;
|
|
41
|
-
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
42
|
-
templateCache: TemplateCache;
|
|
43
|
-
}
|
|
1
|
+
import { ApiFormatter, ApiRequestService, CollectionEntryService, ColumnCache, ColumnHandler, ColumnUtil, ConversionMapService, ItemCreateService, ItemEntryService, KeyService, LockService, QueryService, RequestBufferManager } from '../classes';
|
|
2
|
+
import { TemplateCache } from '../classes/TemplateCache';
|
|
3
|
+
import { ChangesDeltaFactory, CollectionEntryFactory, CollectionMatcherFactory, CollectionResourceFactory, ColumnExpansionFactory, ColumnSetFactory, ColumnSubsetCacheFactory, ItemCacheFactory, ItemEntryFactory, ItemResourceFactory, ModuleChangesCompilationFactory, QueryMatcherFactory, QueryParserFactory, RequestColumnExpansionFactory } from '../factories';
|
|
4
|
+
import { AuthInterface } from './AuthInterface';
|
|
5
|
+
import { ErrorHandlerInterface } from './ErrorHandlerInterface';
|
|
6
|
+
import { ExceptionHandlerInterface } from './ExceptionHandlerInterface';
|
|
7
|
+
import { LinkTreeServiceInterface } from './LinkTreeServiceInterface';
|
|
8
|
+
import { PromiseLibraryInterface } from './PromiseLibraryInterface';
|
|
9
|
+
export interface AbstractCacheDependencyInterface {
|
|
10
|
+
apiFormatter: ApiFormatter;
|
|
11
|
+
apiRequestService: ApiRequestService;
|
|
12
|
+
authInterface: AuthInterface;
|
|
13
|
+
changesDeltaFactory: ChangesDeltaFactory;
|
|
14
|
+
collectionEntryFactory: CollectionEntryFactory;
|
|
15
|
+
collectionEntryService: CollectionEntryService;
|
|
16
|
+
collectionMatcherFactory: CollectionMatcherFactory;
|
|
17
|
+
collectionResourceFactory: CollectionResourceFactory;
|
|
18
|
+
columnCache: ColumnCache;
|
|
19
|
+
columnExpansionFactory: ColumnExpansionFactory;
|
|
20
|
+
columnHandler: ColumnHandler;
|
|
21
|
+
columnSetFactory: ColumnSetFactory;
|
|
22
|
+
columnSubsetCacheFactory: ColumnSubsetCacheFactory;
|
|
23
|
+
columnUtil: ColumnUtil;
|
|
24
|
+
conversionMapService: ConversionMapService;
|
|
25
|
+
errorHandler: ErrorHandlerInterface;
|
|
26
|
+
exceptionHandler: ExceptionHandlerInterface;
|
|
27
|
+
itemCacheFactory: ItemCacheFactory;
|
|
28
|
+
itemCreateService: ItemCreateService;
|
|
29
|
+
itemEntryFactory: ItemEntryFactory;
|
|
30
|
+
itemEntryService: ItemEntryService;
|
|
31
|
+
itemResourceFactory: ItemResourceFactory;
|
|
32
|
+
keyService: KeyService;
|
|
33
|
+
linkTreeService: LinkTreeServiceInterface;
|
|
34
|
+
lockService: LockService;
|
|
35
|
+
moduleChangesCompilationFactory: ModuleChangesCompilationFactory;
|
|
36
|
+
promiseService: PromiseLibraryInterface;
|
|
37
|
+
queryMatcherFactory: QueryMatcherFactory;
|
|
38
|
+
queryParserFactory: QueryParserFactory;
|
|
39
|
+
queryService: QueryService;
|
|
40
|
+
requestBufferManager: RequestBufferManager;
|
|
41
|
+
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
42
|
+
templateCache: TemplateCache;
|
|
43
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ApiRequestColumnMap, ApiRequestItemMap, ApiRequestLimit, ApiRequestMoveItems, ItemId, ItemType, PromiseInterface } from '../types';
|
|
2
|
-
export interface ApiRequestServiceInterface {
|
|
3
|
-
template(itemType: ItemType, params: any): PromiseInterface<any>;
|
|
4
|
-
create(itemType: ItemType, itemId: ItemId, values: any, parentType?: ItemType, parentId?: ItemId): PromiseInterface<any>;
|
|
5
|
-
delete(itemType: ItemType, itemIds: ItemId[]): PromiseInterface<any>;
|
|
6
|
-
updateItems(itemType: ItemType, items: ApiRequestItemMap, columns: ApiRequestColumnMap): PromiseInterface<any>;
|
|
7
|
-
requestSkeleton(params: any, requestCanceler?: PromiseInterface<any>): PromiseInterface<any>;
|
|
8
|
-
moveItems(parentType: ItemType, parentId: ItemId, items: ApiRequestMoveItems): PromiseInterface<any>;
|
|
9
|
-
columns(itemType: ItemType, columns: ApiRequestColumnMap, params?: any): PromiseInterface<any>;
|
|
10
|
-
query(itemType: ItemType, query: any, columns: ApiRequestColumnMap, limit?: ApiRequestLimit): PromiseInterface<any>;
|
|
11
|
-
}
|
|
1
|
+
import { ApiRequestColumnMap, ApiRequestItemMap, ApiRequestLimit, ApiRequestMoveItems, ItemId, ItemType, PromiseInterface } from '../types';
|
|
2
|
+
export interface ApiRequestServiceInterface {
|
|
3
|
+
template(itemType: ItemType, params: any): PromiseInterface<any>;
|
|
4
|
+
create(itemType: ItemType, itemId: ItemId, values: any, parentType?: ItemType, parentId?: ItemId): PromiseInterface<any>;
|
|
5
|
+
delete(itemType: ItemType, itemIds: ItemId[]): PromiseInterface<any>;
|
|
6
|
+
updateItems(itemType: ItemType, items: ApiRequestItemMap, columns: ApiRequestColumnMap): PromiseInterface<any>;
|
|
7
|
+
requestSkeleton(params: any, requestCanceler?: PromiseInterface<any>): PromiseInterface<any>;
|
|
8
|
+
moveItems(parentType: ItemType, parentId: ItemId, items: ApiRequestMoveItems): PromiseInterface<any>;
|
|
9
|
+
columns(itemType: ItemType, columns: ApiRequestColumnMap, params?: any): PromiseInterface<any>;
|
|
10
|
+
query(itemType: ItemType, query: any, columns: ApiRequestColumnMap, limit?: ApiRequestLimit): PromiseInterface<any>;
|
|
11
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface AuthInterface {
|
|
2
|
-
/**
|
|
3
|
-
* @returns {string} A uniquely identifying string for each user of the api
|
|
4
|
-
*/
|
|
5
|
-
getUniqueUserId(): string;
|
|
6
|
-
getUserId(): number;
|
|
7
|
-
getUserAccountname(): string;
|
|
8
|
-
getUserDisplayname(): string;
|
|
9
|
-
}
|
|
1
|
+
export interface AuthInterface {
|
|
2
|
+
/**
|
|
3
|
+
* @returns {string} A uniquely identifying string for each user of the api
|
|
4
|
+
*/
|
|
5
|
+
getUniqueUserId(): string;
|
|
6
|
+
getUserId(): number;
|
|
7
|
+
getUserAccountname(): string;
|
|
8
|
+
getUserDisplayname(): string;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PromiseInterface } from '../types';
|
|
2
|
-
export interface ErrorHandlerInterface {
|
|
3
|
-
reject(error?: object): PromiseInterface<any>;
|
|
4
|
-
notifyError(error?: any): PromiseInterface<any>;
|
|
5
|
-
}
|
|
1
|
+
import { PromiseInterface } from '../types';
|
|
2
|
+
export interface ErrorHandlerInterface {
|
|
3
|
+
reject(error?: object): PromiseInterface<any>;
|
|
4
|
+
notifyError(error?: any): PromiseInterface<any>;
|
|
5
|
+
}
|
|
@@ -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 '../types';
|
|
2
|
-
export interface LinkTreeServiceInterface {
|
|
3
|
-
get: () => ApiLinkTree;
|
|
4
|
-
}
|
|
1
|
+
import { ApiLinkTree } from '../types';
|
|
2
|
+
export interface LinkTreeServiceInterface {
|
|
3
|
+
get: () => ApiLinkTree;
|
|
4
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { PromiseInterface } from '../types';
|
|
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 '../types';
|
|
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,7 @@
|
|
|
1
|
-
import { ItemCreateService } from '../classes';
|
|
2
|
-
import { ChangesProcessorFactory } from '../factories';
|
|
3
|
-
import { AbstractCacheDependencyInterface } from './AbstractCacheDependencyInterface';
|
|
4
|
-
export interface ServerCacheDependencyInterface extends AbstractCacheDependencyInterface {
|
|
5
|
-
changesProcessorFactory: ChangesProcessorFactory;
|
|
6
|
-
itemCreateService: ItemCreateService;
|
|
7
|
-
}
|
|
1
|
+
import { ItemCreateService } from '../classes';
|
|
2
|
+
import { ChangesProcessorFactory } from '../factories';
|
|
3
|
+
import { AbstractCacheDependencyInterface } from './AbstractCacheDependencyInterface';
|
|
4
|
+
export interface ServerCacheDependencyInterface extends AbstractCacheDependencyInterface {
|
|
5
|
+
changesProcessorFactory: ChangesProcessorFactory;
|
|
6
|
+
itemCreateService: ItemCreateService;
|
|
7
|
+
}
|
|
@@ -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,20 +1,20 @@
|
|
|
1
|
-
import { CollectionEntryService, ColumnHandler, ColumnUtil, KeyService, QueryService } from '../classes';
|
|
2
|
-
import { ChangesDeltaFactory, CollectionMatcherFactory, ColumnExpansionFactory, ColumnSubsetCacheFactory, RequestColumnExpansionFactory } from '../factories';
|
|
3
|
-
import { ErrorHandlerInterface } from './ErrorHandlerInterface';
|
|
4
|
-
import { ExceptionHandlerInterface } from './ExceptionHandlerInterface';
|
|
5
|
-
import { PromiseLibraryInterface } from './PromiseLibraryInterface';
|
|
6
|
-
export interface TransactionCollectionHandlerDependencyInterface {
|
|
7
|
-
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
8
|
-
columnUtil: ColumnUtil;
|
|
9
|
-
columnSubsetCacheFactory: ColumnSubsetCacheFactory;
|
|
10
|
-
columnExpansionFactory: ColumnExpansionFactory;
|
|
11
|
-
changesDeltaFactory: ChangesDeltaFactory;
|
|
12
|
-
collectionEntryService: CollectionEntryService;
|
|
13
|
-
collectionMatcherFactory: CollectionMatcherFactory;
|
|
14
|
-
columnHandler: ColumnHandler;
|
|
15
|
-
errorHandler: ErrorHandlerInterface;
|
|
16
|
-
keyService: KeyService;
|
|
17
|
-
promiseService: PromiseLibraryInterface;
|
|
18
|
-
exceptionHandler: ExceptionHandlerInterface;
|
|
19
|
-
queryService: QueryService;
|
|
20
|
-
}
|
|
1
|
+
import { CollectionEntryService, ColumnHandler, ColumnUtil, KeyService, QueryService } from '../classes';
|
|
2
|
+
import { ChangesDeltaFactory, CollectionMatcherFactory, ColumnExpansionFactory, ColumnSubsetCacheFactory, RequestColumnExpansionFactory } from '../factories';
|
|
3
|
+
import { ErrorHandlerInterface } from './ErrorHandlerInterface';
|
|
4
|
+
import { ExceptionHandlerInterface } from './ExceptionHandlerInterface';
|
|
5
|
+
import { PromiseLibraryInterface } from './PromiseLibraryInterface';
|
|
6
|
+
export interface TransactionCollectionHandlerDependencyInterface {
|
|
7
|
+
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
8
|
+
columnUtil: ColumnUtil;
|
|
9
|
+
columnSubsetCacheFactory: ColumnSubsetCacheFactory;
|
|
10
|
+
columnExpansionFactory: ColumnExpansionFactory;
|
|
11
|
+
changesDeltaFactory: ChangesDeltaFactory;
|
|
12
|
+
collectionEntryService: CollectionEntryService;
|
|
13
|
+
collectionMatcherFactory: CollectionMatcherFactory;
|
|
14
|
+
columnHandler: ColumnHandler;
|
|
15
|
+
errorHandler: ErrorHandlerInterface;
|
|
16
|
+
keyService: KeyService;
|
|
17
|
+
promiseService: PromiseLibraryInterface;
|
|
18
|
+
exceptionHandler: ExceptionHandlerInterface;
|
|
19
|
+
queryService: QueryService;
|
|
20
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { ApiFormatter, ColumnHandler, ColumnUtil, ConversionMapService, ItemCreateService, ItemEntryService, KeyService } from '../classes';
|
|
2
|
-
import { TemplateCache } from '../classes/TemplateCache';
|
|
3
|
-
import { ChangesDeltaFactory, ColumnExpansionFactory, ColumnSetFactory, ColumnSubsetCacheFactory, ItemCacheFactory, ItemEntryFactory, RequestColumnExpansionFactory } from '../factories';
|
|
4
|
-
import { ErrorHandlerInterface } from './ErrorHandlerInterface';
|
|
5
|
-
import { ExceptionHandlerInterface } from './ExceptionHandlerInterface';
|
|
6
|
-
import { PromiseLibraryInterface } from './PromiseLibraryInterface';
|
|
7
|
-
export interface TransactionItemHandlerDependencyInterface {
|
|
8
|
-
apiFormatter: ApiFormatter;
|
|
9
|
-
changesDeltaFactory: ChangesDeltaFactory;
|
|
10
|
-
columnExpansionFactory: ColumnExpansionFactory;
|
|
11
|
-
columnHandler: ColumnHandler;
|
|
12
|
-
columnSetFactory: ColumnSetFactory;
|
|
13
|
-
columnSubsetCacheFactory: ColumnSubsetCacheFactory;
|
|
14
|
-
columnUtil: ColumnUtil;
|
|
15
|
-
conversionMapService: ConversionMapService;
|
|
16
|
-
errorHandler: ErrorHandlerInterface;
|
|
17
|
-
exceptionHandler: ExceptionHandlerInterface;
|
|
18
|
-
itemCacheFactory: ItemCacheFactory;
|
|
19
|
-
itemCreateService: ItemCreateService;
|
|
20
|
-
itemEntryFactory: ItemEntryFactory;
|
|
21
|
-
itemEntryService: ItemEntryService;
|
|
22
|
-
keyService: KeyService;
|
|
23
|
-
promiseService: PromiseLibraryInterface;
|
|
24
|
-
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
25
|
-
templateCache: TemplateCache;
|
|
26
|
-
}
|
|
1
|
+
import { ApiFormatter, ColumnHandler, ColumnUtil, ConversionMapService, ItemCreateService, ItemEntryService, KeyService } from '../classes';
|
|
2
|
+
import { TemplateCache } from '../classes/TemplateCache';
|
|
3
|
+
import { ChangesDeltaFactory, ColumnExpansionFactory, ColumnSetFactory, ColumnSubsetCacheFactory, ItemCacheFactory, ItemEntryFactory, RequestColumnExpansionFactory } from '../factories';
|
|
4
|
+
import { ErrorHandlerInterface } from './ErrorHandlerInterface';
|
|
5
|
+
import { ExceptionHandlerInterface } from './ExceptionHandlerInterface';
|
|
6
|
+
import { PromiseLibraryInterface } from './PromiseLibraryInterface';
|
|
7
|
+
export interface TransactionItemHandlerDependencyInterface {
|
|
8
|
+
apiFormatter: ApiFormatter;
|
|
9
|
+
changesDeltaFactory: ChangesDeltaFactory;
|
|
10
|
+
columnExpansionFactory: ColumnExpansionFactory;
|
|
11
|
+
columnHandler: ColumnHandler;
|
|
12
|
+
columnSetFactory: ColumnSetFactory;
|
|
13
|
+
columnSubsetCacheFactory: ColumnSubsetCacheFactory;
|
|
14
|
+
columnUtil: ColumnUtil;
|
|
15
|
+
conversionMapService: ConversionMapService;
|
|
16
|
+
errorHandler: ErrorHandlerInterface;
|
|
17
|
+
exceptionHandler: ExceptionHandlerInterface;
|
|
18
|
+
itemCacheFactory: ItemCacheFactory;
|
|
19
|
+
itemCreateService: ItemCreateService;
|
|
20
|
+
itemEntryFactory: ItemEntryFactory;
|
|
21
|
+
itemEntryService: ItemEntryService;
|
|
22
|
+
keyService: KeyService;
|
|
23
|
+
promiseService: PromiseLibraryInterface;
|
|
24
|
+
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
25
|
+
templateCache: TemplateCache;
|
|
26
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from './PromiseLibraryInterface';
|
|
2
|
-
export * from './ErrorHandlerInterface';
|
|
3
|
-
export * from './ExceptionHandlerInterface';
|
|
4
|
-
export * from './AuthInterface';
|
|
5
|
-
export * from './ApiRequestServiceInterface';
|
|
6
|
-
export * from './SocketMessageInterface';
|
|
7
|
-
export * from './LinkTreeServiceInterface';
|
|
8
|
-
export * from './AbstractCacheDependencyInterface';
|
|
9
|
-
export * from './TransactionItemHandlerDependencyInterface';
|
|
10
|
-
export * from './TransactionCollectionHandlerDependencyInterface';
|
|
11
|
-
export * from './ServerCacheDependencyInterface';
|
|
1
|
+
export * from './PromiseLibraryInterface';
|
|
2
|
+
export * from './ErrorHandlerInterface';
|
|
3
|
+
export * from './ExceptionHandlerInterface';
|
|
4
|
+
export * from './AuthInterface';
|
|
5
|
+
export * from './ApiRequestServiceInterface';
|
|
6
|
+
export * from './SocketMessageInterface';
|
|
7
|
+
export * from './LinkTreeServiceInterface';
|
|
8
|
+
export * from './AbstractCacheDependencyInterface';
|
|
9
|
+
export * from './TransactionItemHandlerDependencyInterface';
|
|
10
|
+
export * from './TransactionCollectionHandlerDependencyInterface';
|
|
11
|
+
export * from './ServerCacheDependencyInterface';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { CollectionEntryService, ColumnCache, ColumnExpansion, ColumnSet, KeyService, QueryService } from '../classes';
|
|
2
|
-
import { ColumnSetFactory } from '../factories';
|
|
3
|
-
import { CollectionQuery, ColumnIdTypeMap, EntryParentNull, ItemType, PromiseInterface } from '../types';
|
|
4
|
-
import { CollectionOptions } from './CollectionOptions';
|
|
5
|
-
export declare class CollectionEntry<ItemTypeType extends ItemType = any, Fields extends ColumnIdTypeMap = any> {
|
|
6
|
-
private collectionEntryService;
|
|
7
|
-
private queryService;
|
|
8
|
-
private columnSetFactory;
|
|
9
|
-
private keyService;
|
|
10
|
-
private columnCache;
|
|
11
|
-
itemType: ItemTypeType;
|
|
12
|
-
options: CollectionOptions<ItemTypeType, Fields>;
|
|
13
|
-
id: number;
|
|
14
|
-
parent: EntryParentNull;
|
|
15
|
-
query: CollectionQuery;
|
|
16
|
-
columns: ColumnSet<ItemTypeType>;
|
|
17
|
-
reloadQueued: boolean;
|
|
18
|
-
promise: PromiseInterface<this>;
|
|
19
|
-
constructor(collectionEntryService: CollectionEntryService, queryService: QueryService, columnSetFactory: ColumnSetFactory, keyService: KeyService, columnCache: ColumnCache, itemType: ItemTypeType, options: CollectionOptions<ItemTypeType, Fields>);
|
|
20
|
-
isLocal(): boolean;
|
|
21
|
-
queueReload(): void;
|
|
22
|
-
expandColumns(columnExpansion: ColumnExpansion<ItemTypeType>): void;
|
|
23
|
-
}
|
|
1
|
+
import { CollectionEntryService, ColumnCache, ColumnExpansion, ColumnSet, KeyService, QueryService } from '../classes';
|
|
2
|
+
import { ColumnSetFactory } from '../factories';
|
|
3
|
+
import { CollectionQuery, ColumnIdTypeMap, EntryParentNull, ItemType, PromiseInterface } from '../types';
|
|
4
|
+
import { CollectionOptions } from './CollectionOptions';
|
|
5
|
+
export declare class CollectionEntry<ItemTypeType extends ItemType = any, Fields extends ColumnIdTypeMap = any> {
|
|
6
|
+
private collectionEntryService;
|
|
7
|
+
private queryService;
|
|
8
|
+
private columnSetFactory;
|
|
9
|
+
private keyService;
|
|
10
|
+
private columnCache;
|
|
11
|
+
itemType: ItemTypeType;
|
|
12
|
+
options: CollectionOptions<ItemTypeType, Fields>;
|
|
13
|
+
id: number;
|
|
14
|
+
parent: EntryParentNull;
|
|
15
|
+
query: CollectionQuery;
|
|
16
|
+
columns: ColumnSet<ItemTypeType>;
|
|
17
|
+
reloadQueued: boolean;
|
|
18
|
+
promise: PromiseInterface<this>;
|
|
19
|
+
constructor(collectionEntryService: CollectionEntryService, queryService: QueryService, columnSetFactory: ColumnSetFactory, keyService: KeyService, columnCache: ColumnCache, itemType: ItemTypeType, options: CollectionOptions<ItemTypeType, Fields>);
|
|
20
|
+
isLocal(): boolean;
|
|
21
|
+
queueReload(): void;
|
|
22
|
+
expandColumns(columnExpansion: ColumnExpansion<ItemTypeType>): void;
|
|
23
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { CollectionResource, ItemResource } from '../models';
|
|
2
|
-
import { ApiQuery, ApiRequestColumns, ApiRequestLimit, ColumnIdTypeMap, EntryParentNull, FieldChangeCallback, ItemType } from '../types';
|
|
3
|
-
export declare type CollectionResourceCallback<ItemTypeType extends ItemType, Fields extends ColumnIdTypeMap = any> = (itemResources: Array<ItemResource<ItemTypeType, Fields>>, collectionResource: CollectionResource<ItemTypeType, Fields>, isCalledAfterSocketUpdate: boolean) => void;
|
|
4
|
-
export declare type CollectionResourceOnAddCallback<ItemTypeType extends ItemType, Fields extends ColumnIdTypeMap = any> = (itemResources: Array<ItemResource<ItemTypeType, Fields>>, collectionResource: CollectionResource<ItemTypeType, Fields>, isInitialCall: boolean, isCalledAfterSocketUpdate: boolean) => void;
|
|
5
|
-
export declare type CollectionOptionsInterface<ItemTypeType extends ItemType, Fields extends ColumnIdTypeMap = any> = Partial<CollectionOptions<ItemTypeType, Fields>>;
|
|
6
|
-
export declare class CollectionOptions<ItemTypeType extends ItemType = any, Fields extends ColumnIdTypeMap = any> {
|
|
7
|
-
columns: ApiRequestColumns;
|
|
8
|
-
query: ApiQuery | null;
|
|
9
|
-
queryColumns: ApiRequestColumns;
|
|
10
|
-
parent: EntryParentNull;
|
|
11
|
-
limit: ApiRequestLimit | null;
|
|
12
|
-
onAdd: CollectionResourceOnAddCallback<ItemTypeType, Fields>;
|
|
13
|
-
onRemove: CollectionResourceCallback<ItemTypeType, Fields>;
|
|
14
|
-
onChange: FieldChangeCallback;
|
|
15
|
-
custom: any;
|
|
16
|
-
callOnAddWithInitialItems: boolean;
|
|
17
|
-
constructor(values: CollectionOptionsInterface<ItemTypeType, Fields>);
|
|
18
|
-
}
|
|
1
|
+
import { CollectionResource, ItemResource } from '../models';
|
|
2
|
+
import { ApiQuery, ApiRequestColumns, ApiRequestLimit, ColumnIdTypeMap, EntryParentNull, FieldChangeCallback, ItemType } from '../types';
|
|
3
|
+
export declare type CollectionResourceCallback<ItemTypeType extends ItemType, Fields extends ColumnIdTypeMap = any> = (itemResources: Array<ItemResource<ItemTypeType, Fields>>, collectionResource: CollectionResource<ItemTypeType, Fields>, isCalledAfterSocketUpdate: boolean) => void;
|
|
4
|
+
export declare type CollectionResourceOnAddCallback<ItemTypeType extends ItemType, Fields extends ColumnIdTypeMap = any> = (itemResources: Array<ItemResource<ItemTypeType, Fields>>, collectionResource: CollectionResource<ItemTypeType, Fields>, isInitialCall: boolean, isCalledAfterSocketUpdate: boolean) => void;
|
|
5
|
+
export declare type CollectionOptionsInterface<ItemTypeType extends ItemType, Fields extends ColumnIdTypeMap = any> = Partial<CollectionOptions<ItemTypeType, Fields>>;
|
|
6
|
+
export declare class CollectionOptions<ItemTypeType extends ItemType = any, Fields extends ColumnIdTypeMap = any> {
|
|
7
|
+
columns: ApiRequestColumns;
|
|
8
|
+
query: ApiQuery | null;
|
|
9
|
+
queryColumns: ApiRequestColumns;
|
|
10
|
+
parent: EntryParentNull;
|
|
11
|
+
limit: ApiRequestLimit | null;
|
|
12
|
+
onAdd: CollectionResourceOnAddCallback<ItemTypeType, Fields>;
|
|
13
|
+
onRemove: CollectionResourceCallback<ItemTypeType, Fields>;
|
|
14
|
+
onChange: FieldChangeCallback;
|
|
15
|
+
custom: any;
|
|
16
|
+
callOnAddWithInitialItems: boolean;
|
|
17
|
+
constructor(values: CollectionOptionsInterface<ItemTypeType, Fields>);
|
|
18
|
+
}
|