@rentman/rm-core 1.0.34 → 1.1.0
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 +131 -72
- package/dist/dist/classes/ApiFormatter.d.ts +37 -37
- package/dist/dist/classes/ApiRequestService.d.ts +18 -17
- package/dist/dist/classes/ApiResponseProcessor.d.ts +33 -31
- package/dist/dist/classes/BatchStatus.d.ts +18 -18
- package/dist/dist/classes/ChangesCompilation.d.ts +26 -0
- package/dist/dist/classes/ChangesProcessor.d.ts +34 -41
- package/dist/dist/classes/CollectionCache.d.ts +33 -40
- package/dist/dist/classes/CollectionEntryService.d.ts +26 -23
- package/dist/dist/classes/CollectionHandler.d.ts +49 -64
- package/dist/dist/classes/CollectionMatcher.d.ts +28 -0
- package/dist/dist/classes/CollectionResourceService.d.ts +5 -5
- package/dist/dist/classes/ColumnCache.d.ts +18 -18
- package/dist/dist/classes/ColumnExpansion.d.ts +14 -16
- package/dist/dist/classes/ColumnHandler.d.ts +16 -17
- package/dist/dist/classes/ColumnInfo.d.ts +12 -0
- package/dist/dist/classes/ColumnSet.d.ts +34 -54
- package/dist/dist/classes/ColumnUtil.d.ts +79 -81
- package/dist/dist/classes/CreateRequest.d.ts +20 -20
- package/dist/dist/classes/ItemAdministrator.d.ts +99 -114
- package/dist/dist/classes/ItemCache.d.ts +25 -22
- package/dist/dist/classes/ItemEntryService.d.ts +18 -51
- package/dist/dist/classes/ItemHandler.d.ts +57 -82
- package/dist/dist/classes/ItemRequestService.d.ts +22 -28
- package/dist/dist/classes/ItemResourceService.d.ts +7 -7
- package/dist/dist/classes/KeyService.d.ts +25 -28
- package/dist/dist/classes/LocalCache.d.ts +57 -66
- package/dist/dist/classes/LockService.d.ts +23 -23
- package/dist/dist/classes/{ModuleChangesCompiler.d.ts → ModuleChangesCompilation.d.ts} +19 -22
- package/dist/dist/classes/QueryMatcher.d.ts +14 -14
- package/dist/dist/classes/QueryParser.d.ts +16 -16
- package/dist/dist/classes/QueryService.d.ts +19 -19
- package/dist/dist/classes/RequestColumnExpansion.d.ts +9 -9
- package/dist/dist/classes/SocketMessageHandler.d.ts +32 -32
- package/dist/dist/classes/Util.d.ts +25 -25
- package/dist/dist/classes/index.d.ts +34 -32
- package/dist/dist/constants.d.ts +15 -10
- package/dist/dist/factories/ApiResponseProcessorFactory.d.ts +6 -6
- package/dist/dist/factories/BatchStatusFactory.d.ts +9 -8
- package/dist/dist/factories/ChangesCompilationFactory.d.ts +8 -0
- package/dist/dist/factories/ChangesProcessorFactory.d.ts +18 -23
- package/dist/dist/factories/CollectionCacheFactory.d.ts +7 -7
- package/dist/dist/factories/CollectionEntryFactory.d.ts +14 -14
- package/dist/dist/factories/CollectionMatcherFactory.d.ts +7 -0
- package/dist/dist/factories/CollectionResourceFactory.d.ts +16 -16
- package/dist/dist/factories/ColumnExpansionFactory.d.ts +8 -9
- package/dist/dist/factories/ColumnInfoFactory.d.ts +6 -0
- package/dist/dist/factories/ColumnSetFactory.d.ts +11 -7
- package/dist/dist/factories/CreateRequestFactory.d.ts +10 -10
- package/dist/dist/factories/ItemCacheFactory.d.ts +7 -8
- package/dist/dist/factories/ItemEntryFactory.d.ts +19 -5
- package/dist/dist/factories/ItemResourceFactory.d.ts +14 -16
- package/dist/dist/factories/LocalCacheFactory.d.ts +16 -25
- package/dist/dist/factories/ModuleChangesCompilationFactory.d.ts +5 -0
- package/dist/dist/factories/QueryMatcherFactory.d.ts +7 -6
- package/dist/dist/factories/QueryParserFactory.d.ts +5 -5
- package/dist/dist/factories/RequestColumnExpansionFactory.d.ts +6 -6
- package/dist/dist/factories/index.d.ts +20 -18
- package/dist/dist/index.d.ts +7 -7
- package/dist/dist/interfaces/ApiRequestServiceInterface.d.ts +11 -10
- package/dist/dist/interfaces/AuthInterface.d.ts +9 -9
- package/dist/dist/interfaces/ErrorHandlerInterface.d.ts +4 -4
- package/dist/dist/interfaces/LocalCacheManagerInterface.d.ts +5 -5
- package/dist/dist/interfaces/PromiseInterface.d.ts +11 -11
- package/dist/dist/interfaces/SocketMessageInterface.d.ts +3 -3
- package/dist/dist/interfaces/index.d.ts +6 -6
- package/dist/dist/main.d.ts +46 -44
- package/dist/dist/models/CollectionEditResource.d.ts +21 -20
- package/dist/dist/models/CollectionEntry.d.ts +60 -57
- package/dist/dist/models/CollectionResource.d.ts +36 -37
- package/dist/dist/models/CollectionViewResource.d.ts +5 -13
- package/dist/dist/models/EditResource.d.ts +22 -25
- package/dist/dist/models/ItemEntry.d.ts +62 -18
- package/dist/dist/models/ItemResource.d.ts +16 -15
- package/dist/dist/models/ViewResource.d.ts +4 -6
- package/dist/dist/models/index.d.ts +8 -8
- package/dist/dist/types/ItemTypesCollection.d.ts +87 -49
- package/dist/dist/types/index.d.ts +1 -0
- package/dist/rm-core.js +6697 -6531
- package/dist/rm-core.min.js +1 -1
- package/package.json +35 -35
- package/readme.md +15 -15
- package/dist/dist/classes/ChangesCompiler.d.ts +0 -33
- package/dist/dist/factories/ChangesCompilerFactory.d.ts +0 -7
- package/dist/dist/factories/ModuleChangesCompilerFactory.d.ts +0 -7
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
import { ApiFormatter, ChangesProcessor, CollectionEntryService, CollectionHandler,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
private apiFormatter;
|
|
20
|
-
private promiseService;
|
|
21
|
-
constructor(apiRequestService: ApiRequestServiceInterface, errorHandler: ErrorHandlerInterface, itemHandler: ItemHandler, collectionHandler: CollectionHandler, columnHandler: ColumnHandler, changesCompilerFactory: ChangesCompilerFactory, createRequestFactory: CreateRequestFactory, columnExpansionFactory: ColumnExpansionFactory, requestColumnExpansionFactory: RequestColumnExpansionFactory, collectionEntryService: CollectionEntryService, itemEntryService: ItemEntryService, apiFormatter: ApiFormatter, promiseService: PromiseInterface);
|
|
22
|
-
construct(): ChangesProcessor;
|
|
23
|
-
}
|
|
1
|
+
import { ApiFormatter, ChangesProcessor, CollectionEntryService, CollectionHandler, ItemHandler } from '../classes';
|
|
2
|
+
import { ChangesCompilationFactory, ColumnExpansionFactory, CreateRequestFactory, RequestColumnExpansionFactory } from '../factories';
|
|
3
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
+
export declare class ChangesProcessorFactory {
|
|
5
|
+
private apiRequestService;
|
|
6
|
+
private errorHandler;
|
|
7
|
+
private itemHandler;
|
|
8
|
+
private collectionHandler;
|
|
9
|
+
private changesCompilationFactory;
|
|
10
|
+
private createRequestFactory;
|
|
11
|
+
private columnExpansionFactory;
|
|
12
|
+
private requestColumnExpansionFactory;
|
|
13
|
+
private collectionEntryService;
|
|
14
|
+
private apiFormatter;
|
|
15
|
+
private promiseService;
|
|
16
|
+
constructor(apiRequestService: ApiRequestServiceInterface, errorHandler: ErrorHandlerInterface, itemHandler: ItemHandler, collectionHandler: CollectionHandler, changesCompilationFactory: ChangesCompilationFactory, createRequestFactory: CreateRequestFactory, columnExpansionFactory: ColumnExpansionFactory, requestColumnExpansionFactory: RequestColumnExpansionFactory, collectionEntryService: CollectionEntryService, apiFormatter: ApiFormatter, promiseService: PromiseInterface);
|
|
17
|
+
construct(): ChangesProcessor;
|
|
18
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CollectionCache } from
|
|
2
|
-
import { QueryMatcherFactory } from
|
|
3
|
-
export declare class CollectionCacheFactory {
|
|
4
|
-
private queryMatcherFactory;
|
|
5
|
-
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
6
|
-
construct(): CollectionCache;
|
|
7
|
-
}
|
|
1
|
+
import { CollectionCache } from '../classes';
|
|
2
|
+
import { QueryMatcherFactory } from '../factories';
|
|
3
|
+
export declare class CollectionCacheFactory {
|
|
4
|
+
private queryMatcherFactory;
|
|
5
|
+
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
6
|
+
construct(): CollectionCache;
|
|
7
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CollectionEntryService, ItemEntryService, ItemRequestService, KeyService, QueryService } from
|
|
2
|
-
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
-
import { CollectionEntry } from
|
|
4
|
-
export declare class CollectionEntryFactory {
|
|
5
|
-
private
|
|
6
|
-
private
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
private keyService;
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
constructor(errorHandler: ErrorHandlerInterface,
|
|
13
|
-
construct(itemType: string, options: any): CollectionEntry;
|
|
14
|
-
}
|
|
1
|
+
import { CollectionEntryService, ItemEntryService, ItemRequestService, KeyService, QueryService } from '../classes';
|
|
2
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { CollectionEntry } from '../models/';
|
|
4
|
+
export declare class CollectionEntryFactory {
|
|
5
|
+
private collectionEntryService;
|
|
6
|
+
private errorHandler;
|
|
7
|
+
private itemEntryService;
|
|
8
|
+
private itemRequestService;
|
|
9
|
+
private keyService;
|
|
10
|
+
private promiseService;
|
|
11
|
+
private queryService;
|
|
12
|
+
constructor(collectionEntryService: CollectionEntryService, errorHandler: ErrorHandlerInterface, itemEntryService: ItemEntryService, itemRequestService: ItemRequestService, keyService: KeyService, promiseService: PromiseInterface, queryService: QueryService);
|
|
13
|
+
construct(itemType: string, options: any): CollectionEntry;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CollectionCache, CollectionMatcher } from '../classes';
|
|
2
|
+
import { QueryMatcherFactory } from '../factories';
|
|
3
|
+
export declare class CollectionMatcherFactory {
|
|
4
|
+
private queryMatcherFactory;
|
|
5
|
+
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
6
|
+
construct(collectionCaches: CollectionCache[], updateInitial: boolean): CollectionMatcher;
|
|
7
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { CollectionResourceService, ItemHandler, KeyService } from '../classes';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
private
|
|
8
|
-
private itemHandler;
|
|
9
|
-
private itemResourceFactory;
|
|
10
|
-
private changesProcessorFactory;
|
|
11
|
-
private keyService;
|
|
12
|
-
private promiseService;
|
|
13
|
-
private collectionResourceService;
|
|
14
|
-
constructor(errorHandler: ErrorHandlerInterface, itemHandler: ItemHandler, itemResourceFactory: ItemResourceFactory, changesProcessorFactory: ChangesProcessorFactory, keyService: KeyService, promiseService: PromiseInterface, collectionResourceService: CollectionResourceService);
|
|
15
|
-
construct(collectionEntry: CollectionEntry, options: any): CollectionResource;
|
|
16
|
-
}
|
|
1
|
+
import { CollectionResourceService, ItemHandler, KeyService } from '../classes';
|
|
2
|
+
import { ChangesProcessorFactory, ItemEntryFactory, ItemResourceFactory } from '../factories';
|
|
3
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
+
import { CollectionEntry, CollectionResource } from '../models';
|
|
5
|
+
export declare class CollectionResourceFactory {
|
|
6
|
+
private errorHandler;
|
|
7
|
+
private itemEntryFactory;
|
|
8
|
+
private itemHandler;
|
|
9
|
+
private itemResourceFactory;
|
|
10
|
+
private changesProcessorFactory;
|
|
11
|
+
private keyService;
|
|
12
|
+
private promiseService;
|
|
13
|
+
private collectionResourceService;
|
|
14
|
+
constructor(errorHandler: ErrorHandlerInterface, itemEntryFactory: ItemEntryFactory, itemHandler: ItemHandler, itemResourceFactory: ItemResourceFactory, changesProcessorFactory: ChangesProcessorFactory, keyService: KeyService, promiseService: PromiseInterface, collectionResourceService: CollectionResourceService);
|
|
15
|
+
construct(collectionEntry: CollectionEntry, options: any): CollectionResource;
|
|
16
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ColumnExpansion,
|
|
2
|
-
import { ColumnSetFactory } from
|
|
3
|
-
export declare class ColumnExpansionFactory {
|
|
4
|
-
private
|
|
5
|
-
private
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
import { ColumnExpansion, ColumnUtil } from '../classes';
|
|
2
|
+
import { ColumnSetFactory } from '../factories';
|
|
3
|
+
export declare class ColumnExpansionFactory {
|
|
4
|
+
private columnSetFactory;
|
|
5
|
+
private columnUtil;
|
|
6
|
+
constructor(columnSetFactory: ColumnSetFactory, columnUtil: ColumnUtil);
|
|
7
|
+
construct(itemType: string, requestColumns: any | boolean, responseColumns: any): ColumnExpansion;
|
|
8
|
+
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { ColumnHandler, ColumnSet, ColumnUtil } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { ColumnHandler, ColumnSet, ColumnUtil } from '../classes';
|
|
2
|
+
import { ColumnInfoFactory } from '../factories';
|
|
3
|
+
import { ItemType, RequestColumns, ResponseColumnMap } from '../types';
|
|
4
|
+
export declare class ColumnSetFactory {
|
|
5
|
+
private columnHandler;
|
|
6
|
+
private columnUtil;
|
|
7
|
+
private columnInfoFactory;
|
|
8
|
+
constructor(columnHandler: ColumnHandler, columnUtil: ColumnUtil, columnInfoFactory: ColumnInfoFactory);
|
|
9
|
+
constructStub(itemType: ItemType, requestColumns: RequestColumns): ColumnSet;
|
|
10
|
+
construct(itemType: ItemType, requestColumns: RequestColumns, responseColumns: ResponseColumnMap, enableCaching?: any, includeIdColumn?: any): ColumnSet;
|
|
11
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CollectionHandler, CreateRequest,
|
|
2
|
-
import { RequestColumnExpansionFactory } from
|
|
3
|
-
export declare class CreateRequestFactory {
|
|
4
|
-
private collectionHandler;
|
|
5
|
-
private
|
|
6
|
-
private
|
|
7
|
-
private
|
|
8
|
-
constructor(collectionHandler: CollectionHandler,
|
|
9
|
-
construct(compilation: any, parameterMap: any, breakupByParent?: boolean): CreateRequest;
|
|
10
|
-
}
|
|
1
|
+
import { CollectionHandler, CreateRequest, KeyService } from '../classes';
|
|
2
|
+
import { CollectionMatcherFactory, RequestColumnExpansionFactory } from '../factories';
|
|
3
|
+
export declare class CreateRequestFactory {
|
|
4
|
+
private collectionHandler;
|
|
5
|
+
private collectionMatcherFactory;
|
|
6
|
+
private keyService;
|
|
7
|
+
private requestColumnExpansionFactory;
|
|
8
|
+
constructor(collectionHandler: CollectionHandler, collectionMatcherFactory: CollectionMatcherFactory, keyService: KeyService, requestColumnExpansionFactory: RequestColumnExpansionFactory);
|
|
9
|
+
construct(compilation: any, collectionEntries: any, parameterMap: any, breakupByParent?: boolean): CreateRequest;
|
|
10
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ItemCache
|
|
2
|
-
import { QueryMatcherFactory } from
|
|
3
|
-
export declare class ItemCacheFactory {
|
|
4
|
-
private queryMatcherFactory;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
import { ItemCache } from '../classes';
|
|
2
|
+
import { QueryMatcherFactory } from '../factories';
|
|
3
|
+
export declare class ItemCacheFactory {
|
|
4
|
+
private queryMatcherFactory;
|
|
5
|
+
constructor(queryMatcherFactory: QueryMatcherFactory);
|
|
6
|
+
construct(): ItemCache;
|
|
7
|
+
}
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
import { ApiFormatter, ColumnSet, ItemEntryService, KeyService } from '../classes';
|
|
2
|
+
import { ColumnSetFactory } from '../factories';
|
|
3
|
+
import { AuthInterface, PromiseInterface } from '../interfaces';
|
|
4
|
+
import { ItemEntry } from '../models';
|
|
5
|
+
import { EntryParentNull, FieldMap, ItemId, ItemIdConversionMap, ItemType, RequestColumns } from '../types';
|
|
6
|
+
export declare class ItemEntryFactory {
|
|
7
|
+
private authInterface;
|
|
8
|
+
private apiFormatter;
|
|
9
|
+
private columnSetFactory;
|
|
10
|
+
private itemEntryService;
|
|
11
|
+
private keyService;
|
|
12
|
+
private promiseInterface;
|
|
13
|
+
constructor(authInterface: AuthInterface, apiFormatter: ApiFormatter, columnSetFactory: ColumnSetFactory, itemEntryService: ItemEntryService, keyService: KeyService, promiseInterface: PromiseInterface);
|
|
14
|
+
constructStub(itemType: ItemType, itemId: ItemId, columnSetStub: any): ItemEntry;
|
|
15
|
+
constructLocalLinked(itemType: ItemType, localItemId: ItemId, initial: FieldMap, parent: EntryParentNull, columnSet: ColumnSet, conversionMap: ItemIdConversionMap): ItemEntry;
|
|
16
|
+
constructLocal(itemId: ItemId, template: any, modified: FieldMap, derived: FieldMap, parent?: EntryParentNull, conversionMap?: any): ItemEntry;
|
|
17
|
+
constructDeferred(itemType: ItemType, itemId: ItemId, requestColumns: RequestColumns, deferRequest: boolean): ItemEntry;
|
|
18
|
+
construct(itemId: ItemId, initial: FieldMap, derived: FieldMap, columnInfo: ColumnSet): ItemEntry;
|
|
19
|
+
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { ApiFormatter, ChangesProcessor,
|
|
2
|
-
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
-
import { EditResource, ItemEntry, ItemResource, ViewResource } from
|
|
4
|
-
export declare class ItemResourceFactory {
|
|
5
|
-
private
|
|
6
|
-
private
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
construct(itemEntry: ItemEntry, options: any): ItemResource;
|
|
16
|
-
}
|
|
1
|
+
import { ApiFormatter, ChangesProcessor, ItemResourceService, LockService } from '../classes';
|
|
2
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { EditResource, ItemEntry, ItemResource, ViewResource } from '../models';
|
|
4
|
+
export declare class ItemResourceFactory {
|
|
5
|
+
private itemResourceService;
|
|
6
|
+
private apiFormatter;
|
|
7
|
+
private lockService;
|
|
8
|
+
private changesProcessor;
|
|
9
|
+
private errorHandler;
|
|
10
|
+
private promiseService;
|
|
11
|
+
constructor(itemResourceService: ItemResourceService, apiFormatter: ApiFormatter, lockService: LockService, changesProcessor: ChangesProcessor, errorHandler: ErrorHandlerInterface, promiseService: PromiseInterface);
|
|
12
|
+
getConstructor(options: any): (itemEntry: any) => EditResource | ViewResource;
|
|
13
|
+
construct(itemEntry: ItemEntry, options: any): ItemResource;
|
|
14
|
+
}
|
|
@@ -1,25 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
private changesProcessorFactory;
|
|
18
|
-
private itemCacheFactory;
|
|
19
|
-
private collectionResourceFactory;
|
|
20
|
-
private itemEntryService;
|
|
21
|
-
private itemResourceService;
|
|
22
|
-
private promiseService;
|
|
23
|
-
constructor(apiRequestService: ApiRequestServiceInterface, errorHandler: ErrorHandlerInterface, itemHandler: ItemHandler, collectionHandler: CollectionHandler, columnHandler: ColumnHandler, lockService: LockService, itemResourceFactory: ItemResourceFactory, collectionCacheFactory: CollectionCacheFactory, changesProcessorFactory: ChangesProcessorFactory, itemCacheFactory: ItemCacheFactory, collectionResourceFactory: CollectionResourceFactory, itemEntryService: ItemEntryService, itemResourceService: ItemResourceService, promiseService: PromiseInterface);
|
|
24
|
-
construct(): LocalCache;
|
|
25
|
-
}
|
|
1
|
+
import { ItemResourceService, LocalCache, LockService } from '../classes';
|
|
2
|
+
import { ChangesProcessorFactory, CollectionCacheFactory, CollectionResourceFactory, ItemCacheFactory, ItemResourceFactory } from '../factories';
|
|
3
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
+
export declare class LocalCacheFactory {
|
|
5
|
+
private errorHandler;
|
|
6
|
+
private lockService;
|
|
7
|
+
private itemResourceFactory;
|
|
8
|
+
private collectionCacheFactory;
|
|
9
|
+
private changesProcessorFactory;
|
|
10
|
+
private itemCacheFactory;
|
|
11
|
+
private collectionResourceFactory;
|
|
12
|
+
private itemResourceService;
|
|
13
|
+
private promiseService;
|
|
14
|
+
constructor(errorHandler: ErrorHandlerInterface, lockService: LockService, itemResourceFactory: ItemResourceFactory, collectionCacheFactory: CollectionCacheFactory, changesProcessorFactory: ChangesProcessorFactory, itemCacheFactory: ItemCacheFactory, collectionResourceFactory: CollectionResourceFactory, itemResourceService: ItemResourceService, promiseService: PromiseInterface);
|
|
15
|
+
construct(): LocalCache;
|
|
16
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CollectionCache, ItemCache, ModuleChangesCompilation } from '../classes';
|
|
2
|
+
import { ItemEntry } from '../models';
|
|
3
|
+
export declare class ModuleChangesCompilationFactory {
|
|
4
|
+
construct(rootItem: ItemEntry, singleItemCache: ItemCache, collectionCache: CollectionCache): ModuleChangesCompilation;
|
|
5
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ApiFormatter, QueryMatcher } from '../classes';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ApiFormatter, QueryMatcher } from '../classes';
|
|
2
|
+
import { EntryParentNull, FieldMap, ItemType } from '../types';
|
|
3
|
+
export declare class QueryMatcherFactory {
|
|
4
|
+
private apiFormatter;
|
|
5
|
+
constructor(apiFormatter: ApiFormatter);
|
|
6
|
+
construct(itemType: ItemType, fields: FieldMap, parent: EntryParentNull): QueryMatcher;
|
|
7
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QueryParser } from
|
|
2
|
-
export declare class QueryParserFactory {
|
|
3
|
-
constructor();
|
|
4
|
-
construct(query: any, parameters?: any): QueryParser;
|
|
5
|
-
}
|
|
1
|
+
import { QueryParser } from '../classes';
|
|
2
|
+
export declare class QueryParserFactory {
|
|
3
|
+
constructor();
|
|
4
|
+
construct(query: any, parameters?: any): QueryParser;
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ColumnUtil, RequestColumnExpansion } from '../classes';
|
|
2
|
-
export declare class RequestColumnExpansionFactory {
|
|
3
|
-
private columnUtil;
|
|
4
|
-
constructor(columnUtil: ColumnUtil);
|
|
5
|
-
construct(): RequestColumnExpansion;
|
|
6
|
-
}
|
|
1
|
+
import { ColumnUtil, RequestColumnExpansion } from '../classes';
|
|
2
|
+
export declare class RequestColumnExpansionFactory {
|
|
3
|
+
private columnUtil;
|
|
4
|
+
constructor(columnUtil: ColumnUtil);
|
|
5
|
+
construct(): RequestColumnExpansion;
|
|
6
|
+
}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
export * from './ApiResponseProcessorFactory';
|
|
2
|
-
export * from './BatchStatusFactory';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './ChangesProcessorFactory';
|
|
5
|
-
export * from './CollectionCacheFactory';
|
|
6
|
-
export * from './CollectionEntryFactory';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
1
|
+
export * from './ApiResponseProcessorFactory';
|
|
2
|
+
export * from './BatchStatusFactory';
|
|
3
|
+
export * from './ChangesCompilationFactory';
|
|
4
|
+
export * from './ChangesProcessorFactory';
|
|
5
|
+
export * from './CollectionCacheFactory';
|
|
6
|
+
export * from './CollectionEntryFactory';
|
|
7
|
+
export * from './CollectionMatcherFactory';
|
|
8
|
+
export * from './CollectionResourceFactory';
|
|
9
|
+
export * from './ColumnExpansionFactory';
|
|
10
|
+
export * from './ColumnInfoFactory';
|
|
11
|
+
export * from './ColumnSetFactory';
|
|
12
|
+
export * from './CreateRequestFactory';
|
|
13
|
+
export * from './ItemCacheFactory';
|
|
14
|
+
export * from './ItemEntryFactory';
|
|
15
|
+
export * from './ItemResourceFactory';
|
|
16
|
+
export * from './LocalCacheFactory';
|
|
17
|
+
export * from './ModuleChangesCompilationFactory';
|
|
18
|
+
export * from './QueryMatcherFactory';
|
|
19
|
+
export * from './QueryParserFactory';
|
|
20
|
+
export * from './RequestColumnExpansionFactory';
|
package/dist/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './main';
|
|
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 './main';
|
|
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,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { ItemId, ItemType } from '../types';
|
|
2
|
+
export interface ApiRequestServiceInterface {
|
|
3
|
+
template(itemType: string, params: any): Promise<any>;
|
|
4
|
+
create(itemType: ItemType, itemId: ItemId, values: any, parentType?: ItemType, parentId?: ItemId): Promise<any>;
|
|
5
|
+
delete(itemType: ItemType, itemIds: ItemId[]): Promise<any>;
|
|
6
|
+
updateItems(itemType: ItemType, items: object, columns: any): Promise<any>;
|
|
7
|
+
requestSkeleton(params: any, requestCanceler?: Promise<any>): Promise<any>;
|
|
8
|
+
moveItems(parentType: ItemType, parentId: ItemId, items: object): Promise<any>;
|
|
9
|
+
columns(itemType: ItemType, columns: object, params?: any): Promise<any>;
|
|
10
|
+
query(itemType: ItemType, query: object, columns: object, limit?: object): Promise<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,4 +1,4 @@
|
|
|
1
|
-
export interface ErrorHandlerInterface {
|
|
2
|
-
reject(error?: object): Promise<any>;
|
|
3
|
-
notifyError(error?: any): Promise<any>;
|
|
4
|
-
}
|
|
1
|
+
export interface ErrorHandlerInterface {
|
|
2
|
+
reject(error?: object): Promise<any>;
|
|
3
|
+
notifyError(error?: any): Promise<any>;
|
|
4
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LocalCache } from '../classes';
|
|
2
|
-
export interface LocalCacheManagerInterface {
|
|
3
|
-
getCacheManager(userId: string): LocalCache;
|
|
4
|
-
setCacheManager(userId: string, entry: LocalCache): any;
|
|
5
|
-
}
|
|
1
|
+
import { LocalCache } from '../classes';
|
|
2
|
+
export interface LocalCacheManagerInterface {
|
|
3
|
+
getCacheManager(userId: string): LocalCache;
|
|
4
|
+
setCacheManager(userId: string, entry: LocalCache): any;
|
|
5
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export interface PromiseInterface {
|
|
2
|
-
all(iterable: Array<Promise<any> | any> | {
|
|
3
|
-
key: Promise<any> | any;
|
|
4
|
-
}): Promise<any>;
|
|
5
|
-
when(value?: any): Promise<any>;
|
|
6
|
-
reject(value?: any): Promise<any>;
|
|
7
|
-
defer(): {
|
|
8
|
-
(value?): any;
|
|
9
|
-
(value?): any;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
1
|
+
export interface PromiseInterface {
|
|
2
|
+
all(iterable: Array<Promise<any> | any> | {
|
|
3
|
+
key: Promise<any> | any;
|
|
4
|
+
}): Promise<any>;
|
|
5
|
+
when(value?: any): Promise<any>;
|
|
6
|
+
reject(value?: any): Promise<any>;
|
|
7
|
+
defer(): {
|
|
8
|
+
(value?): any;
|
|
9
|
+
(value?): any;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
export * from './PromiseInterface';
|
|
2
|
-
export * from './LocalCacheManagerInterface';
|
|
3
|
-
export * from './ErrorHandlerInterface';
|
|
4
|
-
export * from './AuthInterface';
|
|
5
|
-
export * from './ApiRequestServiceInterface';
|
|
6
|
-
export * from './SocketMessageInterface';
|
|
1
|
+
export * from './PromiseInterface';
|
|
2
|
+
export * from './LocalCacheManagerInterface';
|
|
3
|
+
export * from './ErrorHandlerInterface';
|
|
4
|
+
export * from './AuthInterface';
|
|
5
|
+
export * from './ApiRequestServiceInterface';
|
|
6
|
+
export * from './SocketMessageInterface';
|