@rentman/rm-core 9.1.2 → 9.2.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 +1005 -996
- package/dist/rm-core.js +2253 -2112
- package/dist/rm-core.min.js +1 -1
- package/dist/types/classes/ApiFormatter.d.ts +73 -73
- package/dist/types/classes/ApiRequestService.d.ts +18 -18
- package/dist/types/classes/ApiResponseProcessor.d.ts +29 -29
- package/dist/types/classes/CacheSyncer.d.ts +44 -44
- package/dist/types/classes/ChangesCompilation.d.ts +33 -33
- package/dist/types/classes/ChangesDelta.d.ts +61 -61
- package/dist/types/classes/ChangesDeltaBase.d.ts +78 -73
- package/dist/types/classes/ChangesProcessor.d.ts +40 -40
- package/dist/types/classes/CollectionEntryService.d.ts +24 -24
- package/dist/types/classes/CollectionResourceService.d.ts +6 -6
- package/dist/types/classes/ColumnCache.d.ts +19 -21
- package/dist/types/classes/ColumnExpansion.d.ts +19 -21
- package/dist/types/classes/ColumnHandler.d.ts +20 -20
- package/dist/types/classes/ColumnInfo.d.ts +15 -14
- package/dist/types/classes/ColumnSet.d.ts +37 -37
- package/dist/types/classes/ColumnSubsetCache.d.ts +14 -14
- package/dist/types/classes/ColumnUtil.d.ts +101 -101
- package/dist/types/classes/ConversionMapService.d.ts +25 -25
- package/dist/types/classes/CreateRequest.d.ts +17 -17
- package/dist/types/classes/CreatedChangesDelta.d.ts +17 -17
- package/dist/types/classes/InternalChangesDelta.d.ts +43 -43
- package/dist/types/classes/ItemCache.d.ts +27 -27
- package/dist/types/classes/ItemCreateService.d.ts +18 -18
- package/dist/types/classes/ItemEntryService.d.ts +32 -32
- package/dist/types/classes/KeyService.d.ts +18 -18
- package/dist/types/classes/LockService.d.ts +29 -29
- package/dist/types/classes/ModuleChangesCompilation.d.ts +18 -18
- package/dist/types/classes/ParentChangesDelta.d.ts +39 -39
- package/dist/types/classes/QueryColumnExtractor.d.ts +18 -18
- package/dist/types/classes/QueryContainsLocalIdParser.d.ts +17 -15
- package/dist/types/classes/QueryLinkedToParser.d.ts +17 -15
- package/dist/types/classes/QueryLocallyMatchableParser.d.ts +20 -18
- package/dist/types/classes/QueryMatcher.d.ts +24 -18
- package/dist/types/classes/QueryParser.d.ts +25 -25
- package/dist/types/classes/QueryParserBase.d.ts +20 -20
- package/dist/types/classes/QueryParserIdUpdater.d.ts +17 -15
- package/dist/types/classes/QueryService.d.ts +12 -12
- package/dist/types/classes/RequestBuffer.d.ts +24 -24
- package/dist/types/classes/RequestBufferManager.d.ts +32 -20
- package/dist/types/classes/RequestColumnExpansion.d.ts +15 -15
- package/dist/types/classes/SocketMessageHandler.d.ts +34 -34
- package/dist/types/classes/TemplateCache.d.ts +62 -62
- package/dist/types/classes/Util.d.ts +28 -28
- package/dist/types/classes/cache/AbstractCache.d.ts +85 -85
- package/dist/types/classes/cache/CachedQueryHandlerBase.d.ts +68 -68
- package/dist/types/classes/cache/ItemHandlerBase.d.ts +102 -102
- package/dist/types/classes/cache/server/ServerCache.d.ts +78 -78
- package/dist/types/classes/cache/server/ServerCachedQueryHandler.d.ts +25 -25
- package/dist/types/classes/cache/server/ServerItemHandler.d.ts +43 -43
- package/dist/types/classes/cache/transaction/TransactionCache.d.ts +318 -317
- package/dist/types/classes/cache/transaction/TransactionCachedQueryHandler.d.ts +36 -34
- package/dist/types/classes/cache/transaction/TransactionCollectionHandler.d.ts +24 -24
- package/dist/types/classes/cache/transaction/TransactionEventHandler.d.ts +21 -21
- package/dist/types/classes/cache/transaction/TransactionItemHandler.d.ts +90 -91
- package/dist/types/classes/cache/transaction/TransactionValidator.d.ts +33 -33
- package/dist/types/constants.d.ts +7 -7
- package/dist/types/core.d.ts +45 -45
- package/dist/types/factories/ApiResponseProcessorFactory.d.ts +6 -6
- package/dist/types/factories/CacheSyncerFactory.d.ts +10 -10
- package/dist/types/factories/ChangesCompilationFactory.d.ts +5 -5
- package/dist/types/factories/ChangesDeltaFactory.d.ts +13 -13
- package/dist/types/factories/ChangesProcessorFactory.d.ts +13 -13
- package/dist/types/factories/CollectionEntryFactory.d.ts +11 -11
- package/dist/types/factories/CollectionResourceFactory.d.ts +18 -18
- package/dist/types/factories/ColumnExpansionFactory.d.ts +7 -7
- package/dist/types/factories/ColumnInfoFactory.d.ts +7 -7
- package/dist/types/factories/ColumnSetFactory.d.ts +18 -18
- package/dist/types/factories/ColumnSubsetCacheFactory.d.ts +8 -8
- package/dist/types/factories/CreateRequestFactory.d.ts +9 -9
- package/dist/types/factories/ItemCacheFactory.d.ts +6 -6
- package/dist/types/factories/ItemEntryFactory.d.ts +12 -12
- package/dist/types/factories/ItemResourceFactory.d.ts +11 -11
- package/dist/types/factories/ModuleChangesCompilationFactory.d.ts +4 -4
- package/dist/types/factories/QueryMatcherFactory.d.ts +7 -7
- package/dist/types/factories/QueryParserFactory.d.ts +5 -5
- package/dist/types/factories/RequestColumnExpansionFactory.d.ts +8 -8
- package/dist/types/factories/TemplateFactory.d.ts +8 -8
- package/dist/types/factories/TransactionCacheFactory.d.ts +13 -13
- package/dist/types/index.d.ts +1 -1
- package/dist/types/interfaces/AbstractCacheDependencyInterface.d.ts +36 -36
- 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 -5
- package/dist/types/interfaces/SocketMessageInterface.d.ts +3 -3
- package/dist/types/interfaces/TransactionCollectionHandlerDependencyInterface.d.ts +17 -17
- package/dist/types/interfaces/TransactionItemHandlerDependencyInterface.d.ts +22 -22
- package/dist/types/internal.d.ts +104 -104
- package/dist/types/models/CachedQueryItem.d.ts +19 -19
- package/dist/types/models/CollectionEntry.d.ts +21 -21
- package/dist/types/models/CollectionOptions.d.ts +44 -42
- package/dist/types/models/CollectionResource.d.ts +87 -87
- package/dist/types/models/ItemEntry.d.ts +18 -18
- package/dist/types/models/ItemEntryOptions.d.ts +8 -8
- package/dist/types/models/ItemResource.d.ts +90 -90
- package/dist/types/models/Template.d.ts +11 -11
- package/dist/types/types/ItemTypesCollection.d.ts +345 -343
- package/dist/types/types/PromiseInterface.d.ts +2 -2
- package/package.json +50 -48
- package/readme.md +15 -15
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ApiRequestService, ChangesCompilationFactory, ChangesDeltaFactory, ChangesProcessor, CreateRequestFactory, ErrorHandlerInterface, ItemEntryService, OnAfterCreateCallback, PromiseLibraryInterface, RequestColumnExpansionFactory, TransactionCache } from '../internal';
|
|
2
|
-
export declare class ChangesProcessorFactory {
|
|
3
|
-
private changesDeltaFactory;
|
|
4
|
-
private apiRequestService;
|
|
5
|
-
private changesCompilationFactory;
|
|
6
|
-
private createRequestFactory;
|
|
7
|
-
private errorHandler;
|
|
8
|
-
private promiseService;
|
|
9
|
-
private requestColumnExpansionFactory;
|
|
10
|
-
private itemEntryService;
|
|
11
|
-
constructor(changesDeltaFactory: ChangesDeltaFactory, apiRequestService: ApiRequestService, changesCompilationFactory: ChangesCompilationFactory, createRequestFactory: CreateRequestFactory, errorHandler: ErrorHandlerInterface, promiseService: PromiseLibraryInterface, requestColumnExpansionFactory: RequestColumnExpansionFactory, itemEntryService: ItemEntryService);
|
|
12
|
-
construct(transaction: TransactionCache, breakUpByParent?: boolean, onAfterCreateCallback?: OnAfterCreateCallback): ChangesProcessor;
|
|
13
|
-
}
|
|
1
|
+
import { ApiRequestService, ChangesCompilationFactory, ChangesDeltaFactory, ChangesProcessor, CreateRequestFactory, ErrorHandlerInterface, ItemEntryService, OnAfterCreateCallback, PromiseLibraryInterface, RequestColumnExpansionFactory, TransactionCache } from '../internal';
|
|
2
|
+
export declare class ChangesProcessorFactory {
|
|
3
|
+
private changesDeltaFactory;
|
|
4
|
+
private apiRequestService;
|
|
5
|
+
private changesCompilationFactory;
|
|
6
|
+
private createRequestFactory;
|
|
7
|
+
private errorHandler;
|
|
8
|
+
private promiseService;
|
|
9
|
+
private requestColumnExpansionFactory;
|
|
10
|
+
private itemEntryService;
|
|
11
|
+
constructor(changesDeltaFactory: ChangesDeltaFactory, apiRequestService: ApiRequestService, changesCompilationFactory: ChangesCompilationFactory, createRequestFactory: CreateRequestFactory, errorHandler: ErrorHandlerInterface, promiseService: PromiseLibraryInterface, requestColumnExpansionFactory: RequestColumnExpansionFactory, itemEntryService: ItemEntryService);
|
|
12
|
+
construct(transaction: TransactionCache, breakUpByParent?: boolean, onAfterCreateCallback?: OnAfterCreateCallback): ChangesProcessor;
|
|
13
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ApiEnumItemType
|
|
2
|
-
import { CollectionEntry, CollectionEntryService, CollectionOptionsInterface, ColumnCache, ColumnSetFactory, KeyService, QueryService } from '../internal';
|
|
3
|
-
export declare class CollectionEntryFactory {
|
|
4
|
-
private collectionEntryService;
|
|
5
|
-
private columnSetFactory;
|
|
6
|
-
private keyService;
|
|
7
|
-
private queryService;
|
|
8
|
-
private columnCache;
|
|
9
|
-
constructor(collectionEntryService: CollectionEntryService, columnSetFactory: ColumnSetFactory, keyService: KeyService, queryService: QueryService, columnCache: ColumnCache);
|
|
10
|
-
construct<ItemTypeType extends ApiEnumItemType, ColumnIds extends
|
|
11
|
-
}
|
|
1
|
+
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
+
import { CollectionEntry, CollectionEntryService, CollectionOptionsInterface, ColumnCache, ColumnSetFactory, ItemTypeColumnIds, KeyService, QueryService } from '../internal';
|
|
3
|
+
export declare class CollectionEntryFactory {
|
|
4
|
+
private collectionEntryService;
|
|
5
|
+
private columnSetFactory;
|
|
6
|
+
private keyService;
|
|
7
|
+
private queryService;
|
|
8
|
+
private columnCache;
|
|
9
|
+
constructor(collectionEntryService: CollectionEntryService, columnSetFactory: ColumnSetFactory, keyService: KeyService, queryService: QueryService, columnCache: ColumnCache);
|
|
10
|
+
construct<ItemTypeType extends ApiEnumItemType, ColumnIds extends ItemTypeColumnIds<ItemTypeType> = ItemTypeColumnIds<ItemTypeType>>(itemType: ItemTypeType, options: CollectionOptionsInterface<ItemTypeType, ColumnIds>): CollectionEntry<ItemTypeType, ColumnIds>;
|
|
11
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
-
import { ChangesDeltaFactory, CollectionEntryFactory, CollectionOptions, CollectionResource, ColumnSetFactory, ErrorHandlerInterface, ExceptionHandlerInterface, ItemEntry, ItemEntryService, KeyService, ParentItemMap, PromiseLibraryInterface, QueryService, TransactionCache } from '../internal';
|
|
3
|
-
export declare class CollectionResourceFactory {
|
|
4
|
-
errorHandler: ErrorHandlerInterface;
|
|
5
|
-
exceptionHandler: ExceptionHandlerInterface;
|
|
6
|
-
keyService: KeyService;
|
|
7
|
-
promiseService: PromiseLibraryInterface;
|
|
8
|
-
changesDeltaFactory: ChangesDeltaFactory;
|
|
9
|
-
itemEntryService: ItemEntryService;
|
|
10
|
-
collectionEntryFactory: CollectionEntryFactory;
|
|
11
|
-
queryService: QueryService;
|
|
12
|
-
columnSetFactory: ColumnSetFactory;
|
|
13
|
-
constructor(errorHandler: ErrorHandlerInterface, exceptionHandler: ExceptionHandlerInterface, keyService: KeyService, promiseService: PromiseLibraryInterface, changesDeltaFactory: ChangesDeltaFactory, itemEntryService: ItemEntryService, collectionEntryFactory: CollectionEntryFactory, queryService: QueryService, columnSetFactory: ColumnSetFactory);
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
construct<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, options: CollectionOptions<ItemTypeType>, transaction: TransactionCache, initialItemEntries:
|
|
18
|
-
}
|
|
1
|
+
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
+
import { ChangesDeltaFactory, CollectionEntryFactory, CollectionOptions, CollectionResource, ColumnSetFactory, ErrorHandlerInterface, ExceptionHandlerInterface, ItemEntry, ItemEntryService, KeyService, ParentItemMap, PromiseLibraryInterface, QueryService, TransactionCache } from '../internal';
|
|
3
|
+
export declare class CollectionResourceFactory {
|
|
4
|
+
errorHandler: ErrorHandlerInterface;
|
|
5
|
+
exceptionHandler: ExceptionHandlerInterface;
|
|
6
|
+
keyService: KeyService;
|
|
7
|
+
promiseService: PromiseLibraryInterface;
|
|
8
|
+
changesDeltaFactory: ChangesDeltaFactory;
|
|
9
|
+
itemEntryService: ItemEntryService;
|
|
10
|
+
collectionEntryFactory: CollectionEntryFactory;
|
|
11
|
+
queryService: QueryService;
|
|
12
|
+
columnSetFactory: ColumnSetFactory;
|
|
13
|
+
constructor(errorHandler: ErrorHandlerInterface, exceptionHandler: ExceptionHandlerInterface, keyService: KeyService, promiseService: PromiseLibraryInterface, changesDeltaFactory: ChangesDeltaFactory, itemEntryService: ItemEntryService, collectionEntryFactory: CollectionEntryFactory, queryService: QueryService, columnSetFactory: ColumnSetFactory);
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
construct<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, options: CollectionOptions<ItemTypeType>, transaction: TransactionCache, initialItemEntries: ItemEntry<ItemTypeType>[], childCollectionResourceMap: ParentItemMap<CollectionResource> | null): CollectionResource<ItemTypeType>;
|
|
18
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
-
import { ApiRequestColumns, ColumnExpansion, ColumnInfoFactory, ResponseColumnItemTypeMap } from '../internal';
|
|
3
|
-
export declare class ColumnExpansionFactory {
|
|
4
|
-
private columnInfoFactory;
|
|
5
|
-
constructor(columnInfoFactory: ColumnInfoFactory);
|
|
6
|
-
construct<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, requestColumns: ApiRequestColumns, responseColumns: ResponseColumnItemTypeMap): ColumnExpansion<ItemTypeType>;
|
|
7
|
-
}
|
|
1
|
+
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
+
import { ApiRequestColumns, ColumnExpansion, ColumnInfoFactory, ResponseColumnItemTypeMap } from '../internal';
|
|
3
|
+
export declare class ColumnExpansionFactory {
|
|
4
|
+
private columnInfoFactory;
|
|
5
|
+
constructor(columnInfoFactory: ColumnInfoFactory);
|
|
6
|
+
construct<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, requestColumns: ApiRequestColumns, responseColumns: ResponseColumnItemTypeMap): ColumnExpansion<ItemTypeType>;
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ApiEnumItemType, ApiFields, GetColumnType } from '@rentman/backend-types';
|
|
2
|
-
import { ColumnInfo, RootColumnMap } from '../internal';
|
|
3
|
-
export declare class ColumnInfoFactory {
|
|
4
|
-
constructor();
|
|
5
|
-
construct<ItemTypeType extends ApiEnumItemType = any, ColumnId extends keyof ApiFields[ItemTypeType] = any>(apiColumn: GetColumnType<ItemTypeType, ColumnId>, parent: ColumnInfo | null): ColumnInfo<ItemTypeType>;
|
|
6
|
-
constructFromRootMap<ItemTypeType extends ApiEnumItemType = any, ColumnIds extends
|
|
7
|
-
}
|
|
1
|
+
import { ApiEnumItemType, ApiFields, GetColumnType } from '@rentman/backend-types';
|
|
2
|
+
import { ColumnInfo, ItemTypeColumnIds, RootColumnMap } from '../internal';
|
|
3
|
+
export declare class ColumnInfoFactory {
|
|
4
|
+
constructor();
|
|
5
|
+
construct<ItemTypeType extends ApiEnumItemType = any, ColumnId extends keyof ApiFields[ItemTypeType] = any>(apiColumn: GetColumnType<ItemTypeType, ColumnId>, parent: ColumnInfo | null): ColumnInfo<ItemTypeType>;
|
|
6
|
+
constructFromRootMap<ItemTypeType extends ApiEnumItemType = any, ColumnIds extends ItemTypeColumnIds<ItemTypeType> = any>(rootColumnMap: RootColumnMap<ItemTypeType, ColumnIds>, parent?: ColumnInfo | null): ColumnInfo<ItemTypeType, ColumnIds[number]>[];
|
|
7
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
-
import { ApiRequestColumns, ColumnHandler, ColumnInfoFactory, ColumnSet, ColumnUtil, ResponseColumnItemTypeMap } from '../internal';
|
|
3
|
-
export declare class ColumnSetFactory {
|
|
4
|
-
private columnHandler;
|
|
5
|
-
private columnUtil;
|
|
6
|
-
private columnInfoFactory;
|
|
7
|
-
constructor(columnHandler: ColumnHandler, columnUtil: ColumnUtil, columnInfoFactory: ColumnInfoFactory);
|
|
8
|
-
constructStub<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, requestColumns: ApiRequestColumns): ColumnSet<ItemTypeType>;
|
|
9
|
-
resolveStub<ItemTypeType extends ApiEnumItemType>(columnSet: ColumnSet<ItemTypeType>, responseColumns: ResponseColumnItemTypeMap, enableCaching?: boolean, includeIdColumn?: boolean): ColumnSet<ItemTypeType>;
|
|
10
|
-
construct<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, requestColumns: ApiRequestColumns, responseColumns: ResponseColumnItemTypeMap, enableCaching?: boolean, includeIdColumn?: boolean): ColumnSet<ItemTypeType>;
|
|
11
|
-
constructFromResponse<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, responseColumns: ResponseColumnItemTypeMap, enableCaching?: boolean): ColumnSet<ItemTypeType>;
|
|
12
|
-
private processResponseColumns;
|
|
13
|
-
private constructRequestColumnsFromRootColumnMap;
|
|
14
|
-
private expandRootColumnMapFromResponseColumns;
|
|
15
|
-
private processRequestColumns;
|
|
16
|
-
private processColumnInfo;
|
|
17
|
-
private expandRootColumnMap;
|
|
18
|
-
}
|
|
1
|
+
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
+
import { ApiRequestColumns, ColumnHandler, ColumnInfoFactory, ColumnSet, ColumnUtil, ResponseColumnItemTypeMap } from '../internal';
|
|
3
|
+
export declare class ColumnSetFactory {
|
|
4
|
+
private columnHandler;
|
|
5
|
+
private columnUtil;
|
|
6
|
+
private columnInfoFactory;
|
|
7
|
+
constructor(columnHandler: ColumnHandler, columnUtil: ColumnUtil, columnInfoFactory: ColumnInfoFactory);
|
|
8
|
+
constructStub<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, requestColumns: ApiRequestColumns): ColumnSet<ItemTypeType>;
|
|
9
|
+
resolveStub<ItemTypeType extends ApiEnumItemType>(columnSet: ColumnSet<ItemTypeType>, responseColumns: ResponseColumnItemTypeMap, enableCaching?: boolean, includeIdColumn?: boolean): ColumnSet<ItemTypeType>;
|
|
10
|
+
construct<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, requestColumns: ApiRequestColumns, responseColumns: ResponseColumnItemTypeMap, enableCaching?: boolean, includeIdColumn?: boolean): ColumnSet<ItemTypeType>;
|
|
11
|
+
constructFromResponse<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, responseColumns: ResponseColumnItemTypeMap, enableCaching?: boolean): ColumnSet<ItemTypeType>;
|
|
12
|
+
private processResponseColumns;
|
|
13
|
+
private constructRequestColumnsFromRootColumnMap;
|
|
14
|
+
private expandRootColumnMapFromResponseColumns;
|
|
15
|
+
private processRequestColumns;
|
|
16
|
+
private processColumnInfo;
|
|
17
|
+
private expandRootColumnMap;
|
|
18
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
-
import { ApiRequestColumns, ColumnCache, ColumnSubsetCache, ColumnUtil } from '../internal';
|
|
3
|
-
export declare class ColumnSubsetCacheFactory {
|
|
4
|
-
private columnUtil;
|
|
5
|
-
private columnCache;
|
|
6
|
-
constructor(columnUtil: ColumnUtil, columnCache: ColumnCache);
|
|
7
|
-
construct<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, requestColumns: ApiRequestColumns): ColumnSubsetCache<ItemTypeType>;
|
|
8
|
-
}
|
|
1
|
+
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
+
import { ApiRequestColumns, ColumnCache, ColumnSubsetCache, ColumnUtil } from '../internal';
|
|
3
|
+
export declare class ColumnSubsetCacheFactory {
|
|
4
|
+
private columnUtil;
|
|
5
|
+
private columnCache;
|
|
6
|
+
constructor(columnUtil: ColumnUtil, columnCache: ColumnCache);
|
|
7
|
+
construct<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, requestColumns: ApiRequestColumns): ColumnSubsetCache<ItemTypeType>;
|
|
8
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
-
import { ApiFormatter, CreateCompilation, CreateRequest, KeyService, RequestColumnExpansionFactory, TransactionCache } from '../internal';
|
|
3
|
-
export declare class CreateRequestFactory {
|
|
4
|
-
private apiFormatter;
|
|
5
|
-
private keyService;
|
|
6
|
-
private requestColumnExpansionFactory;
|
|
7
|
-
constructor(apiFormatter: ApiFormatter, keyService: KeyService, requestColumnExpansionFactory: RequestColumnExpansionFactory);
|
|
8
|
-
construct<ItemTypeType extends ApiEnumItemType>(compilation: CreateCompilation, transaction: TransactionCache, breakupByParent?: boolean): CreateRequest<ItemTypeType>;
|
|
9
|
-
}
|
|
1
|
+
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
+
import { ApiFormatter, CreateCompilation, CreateRequest, KeyService, RequestColumnExpansionFactory, TransactionCache } from '../internal';
|
|
3
|
+
export declare class CreateRequestFactory {
|
|
4
|
+
private apiFormatter;
|
|
5
|
+
private keyService;
|
|
6
|
+
private requestColumnExpansionFactory;
|
|
7
|
+
constructor(apiFormatter: ApiFormatter, keyService: KeyService, requestColumnExpansionFactory: RequestColumnExpansionFactory);
|
|
8
|
+
construct<ItemTypeType extends ApiEnumItemType>(compilation: CreateCompilation, transaction: TransactionCache, breakupByParent?: boolean): CreateRequest<ItemTypeType>;
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AbstractCache, ItemCache, QueryMatcherFactory } from '../internal';
|
|
2
|
-
export declare class ItemCacheFactory {
|
|
3
|
-
private queryMatcherFactory;
|
|
4
|
-
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
5
|
-
construct(transaction: AbstractCache): ItemCache;
|
|
6
|
-
}
|
|
1
|
+
import { AbstractCache, ItemCache, QueryMatcherFactory } from '../internal';
|
|
2
|
+
export declare class ItemCacheFactory {
|
|
3
|
+
private queryMatcherFactory;
|
|
4
|
+
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
5
|
+
construct(transaction: AbstractCache): ItemCache;
|
|
6
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ApiEnumItemType, ItemId } from '@rentman/backend-types';
|
|
2
|
-
import { ApiFormatter, ColumnSet, ColumnSetFactory, ExceptionHandlerInterface, ItemEntry, ItemEntryService, KeyService, PromiseLibraryInterface } from '../internal';
|
|
3
|
-
export declare class ItemEntryFactory {
|
|
4
|
-
apiFormatter: ApiFormatter;
|
|
5
|
-
columnSetFactory: ColumnSetFactory;
|
|
6
|
-
exceptionHandler: ExceptionHandlerInterface;
|
|
7
|
-
itemEntryService: ItemEntryService;
|
|
8
|
-
keyService: KeyService;
|
|
9
|
-
promiseService: PromiseLibraryInterface;
|
|
10
|
-
constructor(apiFormatter: ApiFormatter, columnSetFactory: ColumnSetFactory, exceptionHandler: ExceptionHandlerInterface, itemEntryService: ItemEntryService, keyService: KeyService, promiseService: PromiseLibraryInterface);
|
|
11
|
-
construct<ItemTypeType extends ApiEnumItemType>(itemId: ItemId, columnInfo: ColumnSet<ItemTypeType>): ItemEntry<ItemTypeType>;
|
|
12
|
-
}
|
|
1
|
+
import { ApiEnumItemType, ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ApiFormatter, ColumnSet, ColumnSetFactory, ExceptionHandlerInterface, ItemEntry, ItemEntryService, KeyService, PromiseLibraryInterface } from '../internal';
|
|
3
|
+
export declare class ItemEntryFactory {
|
|
4
|
+
apiFormatter: ApiFormatter;
|
|
5
|
+
columnSetFactory: ColumnSetFactory;
|
|
6
|
+
exceptionHandler: ExceptionHandlerInterface;
|
|
7
|
+
itemEntryService: ItemEntryService;
|
|
8
|
+
keyService: KeyService;
|
|
9
|
+
promiseService: PromiseLibraryInterface;
|
|
10
|
+
constructor(apiFormatter: ApiFormatter, columnSetFactory: ColumnSetFactory, exceptionHandler: ExceptionHandlerInterface, itemEntryService: ItemEntryService, keyService: KeyService, promiseService: PromiseLibraryInterface);
|
|
11
|
+
construct<ItemTypeType extends ApiEnumItemType>(itemId: ItemId, columnInfo: ColumnSet<ItemTypeType>): ItemEntry<ItemTypeType>;
|
|
12
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ApiEnumItemType
|
|
2
|
-
import { ApiFormatter, ChildCollectionResourcesNull, ColumnUtil, ErrorHandlerInterface, ExceptionHandlerInterface, ItemEntry, ItemResource, PromiseLibraryInterface, TransactionCache } from '../internal';
|
|
3
|
-
export declare class ItemResourceFactory {
|
|
4
|
-
apiFormatter: ApiFormatter;
|
|
5
|
-
errorHandler: ErrorHandlerInterface;
|
|
6
|
-
promiseService: PromiseLibraryInterface;
|
|
7
|
-
exceptionHandler: ExceptionHandlerInterface;
|
|
8
|
-
columnUtil: ColumnUtil;
|
|
9
|
-
constructor(apiFormatter: ApiFormatter, errorHandler: ErrorHandlerInterface, promiseService: PromiseLibraryInterface, exceptionHandler: ExceptionHandlerInterface, columnUtil: ColumnUtil);
|
|
10
|
-
construct<ItemTypeType extends ApiEnumItemType, ColumnIds extends
|
|
11
|
-
}
|
|
1
|
+
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
+
import { ApiFormatter, ChildCollectionResourcesNull, ColumnUtil, ErrorHandlerInterface, ExceptionHandlerInterface, ItemEntry, ItemResource, ItemTypeColumnIds, PromiseLibraryInterface, TransactionCache } from '../internal';
|
|
3
|
+
export declare class ItemResourceFactory {
|
|
4
|
+
apiFormatter: ApiFormatter;
|
|
5
|
+
errorHandler: ErrorHandlerInterface;
|
|
6
|
+
promiseService: PromiseLibraryInterface;
|
|
7
|
+
exceptionHandler: ExceptionHandlerInterface;
|
|
8
|
+
columnUtil: ColumnUtil;
|
|
9
|
+
constructor(apiFormatter: ApiFormatter, errorHandler: ErrorHandlerInterface, promiseService: PromiseLibraryInterface, exceptionHandler: ExceptionHandlerInterface, columnUtil: ColumnUtil);
|
|
10
|
+
construct<ItemTypeType extends ApiEnumItemType, ColumnIds extends ItemTypeColumnIds<ItemTypeType> = ItemTypeColumnIds<ItemTypeType>, Children extends ChildCollectionResourcesNull = any>(itemEntry: ItemEntry<ItemTypeType>, transaction: TransactionCache, childCollections: Children, isNew?: boolean): ItemResource<ItemTypeType, ColumnIds, Children>;
|
|
11
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModuleChangesCompilation, TransactionCache } from '../internal';
|
|
2
|
-
export declare class ModuleChangesCompilationFactory {
|
|
3
|
-
construct(transaction: TransactionCache): ModuleChangesCompilation;
|
|
4
|
-
}
|
|
1
|
+
import { ModuleChangesCompilation, TransactionCache } from '../internal';
|
|
2
|
+
export declare class ModuleChangesCompilationFactory {
|
|
3
|
+
construct(transaction: TransactionCache): ModuleChangesCompilation;
|
|
4
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
-
import { ApiFormatter, EntryParentNull, FieldMap, QueryMatcher } from '../internal';
|
|
3
|
-
export declare class QueryMatcherFactory {
|
|
4
|
-
private apiFormatter;
|
|
5
|
-
constructor(apiFormatter: ApiFormatter);
|
|
6
|
-
construct(itemType: ApiEnumItemType, fields: FieldMap, parent: EntryParentNull): QueryMatcher;
|
|
7
|
-
}
|
|
1
|
+
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
+
import { ApiFormatter, EntryParentNull, FieldMap, QueryMatcher } from '../internal';
|
|
3
|
+
export declare class QueryMatcherFactory {
|
|
4
|
+
private apiFormatter;
|
|
5
|
+
constructor(apiFormatter: ApiFormatter);
|
|
6
|
+
construct(itemType: ApiEnumItemType, fields: FieldMap | [FieldMap, FieldMap], parent: EntryParentNull): QueryMatcher;
|
|
7
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiQuery, QueryParser } from '../internal';
|
|
2
|
-
export declare class QueryParserFactory {
|
|
3
|
-
constructor();
|
|
4
|
-
construct(query: ApiQuery): QueryParser;
|
|
5
|
-
}
|
|
1
|
+
import { ApiQuery, QueryParser } from '../internal';
|
|
2
|
+
export declare class QueryParserFactory {
|
|
3
|
+
constructor();
|
|
4
|
+
construct(query: ApiQuery): QueryParser;
|
|
5
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
-
import { AbstractCache, ApiRequestColumnMap, ApiRequestColumns, ColumnUtil, RequestColumnExpansion } from '../internal';
|
|
3
|
-
export declare class RequestColumnExpansionFactory {
|
|
4
|
-
private columnUtil;
|
|
5
|
-
constructor(columnUtil: ColumnUtil);
|
|
6
|
-
construct(): RequestColumnExpansion;
|
|
7
|
-
expandColumnsWithCachedQueryColumns(transaction: AbstractCache, itemType: ApiEnumItemType, requestColumns?: ApiRequestColumns, requestColumnExpansion?: RequestColumnExpansion): ApiRequestColumnMap;
|
|
8
|
-
}
|
|
1
|
+
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
+
import { AbstractCache, ApiRequestColumnMap, ApiRequestColumns, ColumnUtil, RequestColumnExpansion } from '../internal';
|
|
3
|
+
export declare class RequestColumnExpansionFactory {
|
|
4
|
+
private columnUtil;
|
|
5
|
+
constructor(columnUtil: ColumnUtil);
|
|
6
|
+
construct(): RequestColumnExpansion;
|
|
7
|
+
expandColumnsWithCachedQueryColumns(transaction: AbstractCache, itemType: ApiEnumItemType, requestColumns?: ApiRequestColumns, requestColumnExpansion?: RequestColumnExpansion): ApiRequestColumnMap;
|
|
8
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
-
import { ApiRequestColumnMap, ApiResponse, ColumnSetFactory, ColumnUtil, ItemTypeMap, ResponseColumnItemTypeMap, Template } from '../internal';
|
|
3
|
-
export declare class TemplateFactory {
|
|
4
|
-
columnSetFactory: ColumnSetFactory;
|
|
5
|
-
columnUtil: ColumnUtil;
|
|
6
|
-
constructor(columnSetFactory: ColumnSetFactory, columnUtil: ColumnUtil);
|
|
7
|
-
construct<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, response: ApiResponse, additionalRequestColumns: ApiRequestColumnMap, additionalResponseColumns: ItemTypeMap<ResponseColumnItemTypeMap>): Template<ItemTypeType>;
|
|
8
|
-
}
|
|
1
|
+
import { ApiEnumItemType } from '@rentman/backend-types';
|
|
2
|
+
import { ApiRequestColumnMap, ApiResponse, ColumnSetFactory, ColumnUtil, ItemTypeMap, ResponseColumnItemTypeMap, Template } from '../internal';
|
|
3
|
+
export declare class TemplateFactory {
|
|
4
|
+
columnSetFactory: ColumnSetFactory;
|
|
5
|
+
columnUtil: ColumnUtil;
|
|
6
|
+
constructor(columnSetFactory: ColumnSetFactory, columnUtil: ColumnUtil);
|
|
7
|
+
construct<ItemTypeType extends ApiEnumItemType>(itemType: ItemTypeType, response: ApiResponse, additionalRequestColumns: ApiRequestColumnMap, additionalResponseColumns: ItemTypeMap<ResponseColumnItemTypeMap>): Template<ItemTypeType>;
|
|
8
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { RmCore, ServerCache, ServerCacheDependencyInterface, TransactionCache, TransactionOptions, TransactionValidatorFactory } from '../internal';
|
|
2
|
-
export declare class TransactionCacheFactory {
|
|
3
|
-
private dependencies;
|
|
4
|
-
private core;
|
|
5
|
-
private readonly serverCache;
|
|
6
|
-
constructor(dependencies: ServerCacheDependencyInterface, core: RmCore);
|
|
7
|
-
/**
|
|
8
|
-
* Todo[cache] Store a map of all transactions by transaction id ?
|
|
9
|
-
*/
|
|
10
|
-
getById(id: string): TransactionCache | undefined;
|
|
11
|
-
construct(id?: string, validatorFactory?: TransactionValidatorFactory, transactionOptions?: TransactionOptions): TransactionCache;
|
|
12
|
-
getServerCache(): ServerCache;
|
|
13
|
-
}
|
|
1
|
+
import { RmCore, ServerCache, ServerCacheDependencyInterface, TransactionCache, TransactionOptions, TransactionValidatorFactory } from '../internal';
|
|
2
|
+
export declare class TransactionCacheFactory {
|
|
3
|
+
private dependencies;
|
|
4
|
+
private core;
|
|
5
|
+
private readonly serverCache;
|
|
6
|
+
constructor(dependencies: ServerCacheDependencyInterface, core: RmCore);
|
|
7
|
+
/**
|
|
8
|
+
* Todo[cache] Store a map of all transactions by transaction id ?
|
|
9
|
+
*/
|
|
10
|
+
getById(id: string): TransactionCache | undefined;
|
|
11
|
+
construct(id?: string, validatorFactory?: TransactionValidatorFactory, transactionOptions?: TransactionOptions): TransactionCache;
|
|
12
|
+
getServerCache(): ServerCache;
|
|
13
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './internal';
|
|
1
|
+
export * from './internal';
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { ApiFormatter, ApiRequestService, AuthInterface, CacheSyncerFactory, ChangesDeltaFactory, CollectionEntryFactory, CollectionEntryService, CollectionResourceFactory, ColumnCache, ColumnExpansionFactory, ColumnHandler, ColumnSetFactory, ColumnSubsetCacheFactory, ColumnUtil, ConversionMapService, ErrorHandlerInterface, ExceptionHandlerInterface, ItemCacheFactory, ItemCreateService, ItemEntryFactory, ItemEntryService, ItemResourceFactory, KeyService, LinkTreeServiceInterface, LockService, ModuleChangesCompilationFactory, PromiseLibraryInterface, QueryMatcherFactory, QueryParserFactory, QueryService, RequestBufferManager, RequestColumnExpansionFactory, TemplateCache } from '../internal';
|
|
2
|
-
export interface AbstractCacheDependencyInterface {
|
|
3
|
-
apiFormatter: ApiFormatter;
|
|
4
|
-
apiRequestService: ApiRequestService;
|
|
5
|
-
authInterface: AuthInterface;
|
|
6
|
-
changesDeltaFactory: ChangesDeltaFactory;
|
|
7
|
-
collectionEntryFactory: CollectionEntryFactory;
|
|
8
|
-
collectionEntryService: CollectionEntryService;
|
|
9
|
-
collectionMatcherFactory: CacheSyncerFactory;
|
|
10
|
-
collectionResourceFactory: CollectionResourceFactory;
|
|
11
|
-
columnCache: ColumnCache;
|
|
12
|
-
columnExpansionFactory: ColumnExpansionFactory;
|
|
13
|
-
columnHandler: ColumnHandler;
|
|
14
|
-
columnSetFactory: ColumnSetFactory;
|
|
15
|
-
columnSubsetCacheFactory: ColumnSubsetCacheFactory;
|
|
16
|
-
columnUtil: ColumnUtil;
|
|
17
|
-
conversionMapService: ConversionMapService;
|
|
18
|
-
errorHandler: ErrorHandlerInterface;
|
|
19
|
-
exceptionHandler: ExceptionHandlerInterface;
|
|
20
|
-
itemCacheFactory: ItemCacheFactory;
|
|
21
|
-
itemCreateService: ItemCreateService;
|
|
22
|
-
itemEntryFactory: ItemEntryFactory;
|
|
23
|
-
itemEntryService: ItemEntryService;
|
|
24
|
-
itemResourceFactory: ItemResourceFactory;
|
|
25
|
-
keyService: KeyService;
|
|
26
|
-
linkTreeService: LinkTreeServiceInterface;
|
|
27
|
-
lockService: LockService;
|
|
28
|
-
moduleChangesCompilationFactory: ModuleChangesCompilationFactory;
|
|
29
|
-
promiseService: PromiseLibraryInterface;
|
|
30
|
-
queryMatcherFactory: QueryMatcherFactory;
|
|
31
|
-
queryParserFactory: QueryParserFactory;
|
|
32
|
-
queryService: QueryService;
|
|
33
|
-
requestBufferManager: RequestBufferManager;
|
|
34
|
-
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
35
|
-
templateCache: TemplateCache;
|
|
36
|
-
}
|
|
1
|
+
import { ApiFormatter, ApiRequestService, AuthInterface, CacheSyncerFactory, ChangesDeltaFactory, CollectionEntryFactory, CollectionEntryService, CollectionResourceFactory, ColumnCache, ColumnExpansionFactory, ColumnHandler, ColumnSetFactory, ColumnSubsetCacheFactory, ColumnUtil, ConversionMapService, ErrorHandlerInterface, ExceptionHandlerInterface, ItemCacheFactory, ItemCreateService, ItemEntryFactory, ItemEntryService, ItemResourceFactory, KeyService, LinkTreeServiceInterface, LockService, ModuleChangesCompilationFactory, PromiseLibraryInterface, QueryMatcherFactory, QueryParserFactory, QueryService, RequestBufferManager, RequestColumnExpansionFactory, TemplateCache } from '../internal';
|
|
2
|
+
export interface AbstractCacheDependencyInterface {
|
|
3
|
+
apiFormatter: ApiFormatter;
|
|
4
|
+
apiRequestService: ApiRequestService;
|
|
5
|
+
authInterface: AuthInterface;
|
|
6
|
+
changesDeltaFactory: ChangesDeltaFactory;
|
|
7
|
+
collectionEntryFactory: CollectionEntryFactory;
|
|
8
|
+
collectionEntryService: CollectionEntryService;
|
|
9
|
+
collectionMatcherFactory: CacheSyncerFactory;
|
|
10
|
+
collectionResourceFactory: CollectionResourceFactory;
|
|
11
|
+
columnCache: ColumnCache;
|
|
12
|
+
columnExpansionFactory: ColumnExpansionFactory;
|
|
13
|
+
columnHandler: ColumnHandler;
|
|
14
|
+
columnSetFactory: ColumnSetFactory;
|
|
15
|
+
columnSubsetCacheFactory: ColumnSubsetCacheFactory;
|
|
16
|
+
columnUtil: ColumnUtil;
|
|
17
|
+
conversionMapService: ConversionMapService;
|
|
18
|
+
errorHandler: ErrorHandlerInterface;
|
|
19
|
+
exceptionHandler: ExceptionHandlerInterface;
|
|
20
|
+
itemCacheFactory: ItemCacheFactory;
|
|
21
|
+
itemCreateService: ItemCreateService;
|
|
22
|
+
itemEntryFactory: ItemEntryFactory;
|
|
23
|
+
itemEntryService: ItemEntryService;
|
|
24
|
+
itemResourceFactory: ItemResourceFactory;
|
|
25
|
+
keyService: KeyService;
|
|
26
|
+
linkTreeService: LinkTreeServiceInterface;
|
|
27
|
+
lockService: LockService;
|
|
28
|
+
moduleChangesCompilationFactory: ModuleChangesCompilationFactory;
|
|
29
|
+
promiseService: PromiseLibraryInterface;
|
|
30
|
+
queryMatcherFactory: QueryMatcherFactory;
|
|
31
|
+
queryParserFactory: QueryParserFactory;
|
|
32
|
+
queryService: QueryService;
|
|
33
|
+
requestBufferManager: RequestBufferManager;
|
|
34
|
+
requestColumnExpansionFactory: RequestColumnExpansionFactory;
|
|
35
|
+
templateCache: TemplateCache;
|
|
36
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ApiEnumItemType, ItemId } from '@rentman/backend-types';
|
|
2
|
-
import { ApiRequestColumnMap, ApiRequestItemMap, ApiRequestLimit, ApiRequestMoveItems, PromiseInterface } from '../internal';
|
|
3
|
-
export interface ApiRequestServiceInterface {
|
|
4
|
-
template(itemType: ApiEnumItemType, params: any): PromiseInterface<any>;
|
|
5
|
-
create(itemType: ApiEnumItemType, itemId: ItemId, values: any, parentType?: ApiEnumItemType, parentId?: ItemId): PromiseInterface<any>;
|
|
6
|
-
delete(itemType: ApiEnumItemType, itemIds: ItemId[]): PromiseInterface<any>;
|
|
7
|
-
updateItems(itemType: ApiEnumItemType, items: ApiRequestItemMap, columns: ApiRequestColumnMap): PromiseInterface<any>;
|
|
8
|
-
requestSkeleton(params: any, requestCanceler?: PromiseInterface<any>): PromiseInterface<any>;
|
|
9
|
-
moveItems(parentType: ApiEnumItemType, parentId: ItemId, items: ApiRequestMoveItems): PromiseInterface<any>;
|
|
10
|
-
columns(itemType: ApiEnumItemType, columns: ApiRequestColumnMap, params?: any): PromiseInterface<any>;
|
|
11
|
-
query(itemType: ApiEnumItemType, query: any, columns: ApiRequestColumnMap, limit?: ApiRequestLimit): PromiseInterface<any>;
|
|
12
|
-
}
|
|
1
|
+
import { ApiEnumItemType, ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ApiRequestColumnMap, ApiRequestItemMap, ApiRequestLimit, ApiRequestMoveItems, PromiseInterface } from '../internal';
|
|
3
|
+
export interface ApiRequestServiceInterface {
|
|
4
|
+
template(itemType: ApiEnumItemType, params: any): PromiseInterface<any>;
|
|
5
|
+
create(itemType: ApiEnumItemType, itemId: ItemId, values: any, parentType?: ApiEnumItemType, parentId?: ItemId): PromiseInterface<any>;
|
|
6
|
+
delete(itemType: ApiEnumItemType, itemIds: ItemId[]): PromiseInterface<any>;
|
|
7
|
+
updateItems(itemType: ApiEnumItemType, items: ApiRequestItemMap, columns: ApiRequestColumnMap): PromiseInterface<any>;
|
|
8
|
+
requestSkeleton(params: any, requestCanceler?: PromiseInterface<any>): PromiseInterface<any>;
|
|
9
|
+
moveItems(parentType: ApiEnumItemType, parentId: ItemId, items: ApiRequestMoveItems): PromiseInterface<any>;
|
|
10
|
+
columns(itemType: ApiEnumItemType, columns: ApiRequestColumnMap, params?: any): PromiseInterface<any>;
|
|
11
|
+
query(itemType: ApiEnumItemType, query: any, columns: ApiRequestColumnMap, limit?: ApiRequestLimit): PromiseInterface<any>;
|
|
12
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ItemId } from '@rentman/backend-types';
|
|
2
|
-
export interface AuthInterface {
|
|
3
|
-
/**
|
|
4
|
-
* @returns {string} A uniquely identifying string for each user of the api
|
|
5
|
-
*/
|
|
6
|
-
getUniqueUserId(): string;
|
|
7
|
-
getUserId(): ItemId;
|
|
8
|
-
getUserAccountname(): string;
|
|
9
|
-
getUserDisplayname(): string;
|
|
10
|
-
}
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
export interface AuthInterface {
|
|
3
|
+
/**
|
|
4
|
+
* @returns {string} A uniquely identifying string for each user of the api
|
|
5
|
+
*/
|
|
6
|
+
getUniqueUserId(): string;
|
|
7
|
+
getUserId(): ItemId;
|
|
8
|
+
getUserAccountname(): string;
|
|
9
|
+
getUserDisplayname(): string;
|
|
10
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PromiseInterface } from '../internal';
|
|
2
|
-
export interface ErrorHandlerInterface {
|
|
3
|
-
reject(error?: object): PromiseInterface<any>;
|
|
4
|
-
notifyError(error?: any): void;
|
|
5
|
-
}
|
|
1
|
+
import { PromiseInterface } from '../internal';
|
|
2
|
+
export interface ErrorHandlerInterface {
|
|
3
|
+
reject(error?: object): PromiseInterface<any>;
|
|
4
|
+
notifyError(error?: any): void;
|
|
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 '../internal';
|
|
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 '../internal';
|
|
2
|
-
export interface Deferred<T> {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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:
|
|
18
|
-
all(iterable:
|
|
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
|
+
promise: PromiseInterface<T>;
|
|
4
|
+
resolve(value?: T | PromiseInterface<T>): void;
|
|
5
|
+
reject(reason?: any): void;
|
|
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: (TAll | PromiseInterface<TAll>)[]): PromiseInterface<TAll[]>;
|
|
18
|
+
all(iterable: (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,5 +1,5 @@
|
|
|
1
|
-
import { AbstractCacheDependencyInterface, ChangesProcessorFactory, ItemCreateService } from '../internal';
|
|
2
|
-
export interface ServerCacheDependencyInterface extends AbstractCacheDependencyInterface {
|
|
3
|
-
changesProcessorFactory: ChangesProcessorFactory;
|
|
4
|
-
itemCreateService: ItemCreateService;
|
|
5
|
-
}
|
|
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
|
+
}
|