@rentman/rm-core 1.2.6 → 1.2.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 +6 -0
- package/dist/dist/classes/ApiFormatter.d.ts +40 -40
- package/dist/dist/classes/ApiRequestService.d.ts +18 -18
- package/dist/dist/classes/ApiResponseProcessor.d.ts +33 -33
- package/dist/dist/classes/BatchStatus.d.ts +19 -19
- package/dist/dist/classes/ChangesCompilation.d.ts +26 -26
- package/dist/dist/classes/ChangesProcessor.d.ts +37 -37
- package/dist/dist/classes/CollectionCache.d.ts +37 -37
- package/dist/dist/classes/CollectionEntryService.d.ts +26 -26
- package/dist/dist/classes/CollectionHandler.d.ts +56 -56
- package/dist/dist/classes/CollectionMatcher.d.ts +29 -29
- package/dist/dist/classes/CollectionResourceService.d.ts +5 -5
- package/dist/dist/classes/ColumnCache.d.ts +21 -21
- package/dist/dist/classes/ColumnExpansion.d.ts +14 -14
- package/dist/dist/classes/ColumnHandler.d.ts +21 -21
- package/dist/dist/classes/ColumnInfo.d.ts +12 -12
- package/dist/dist/classes/ColumnSet.d.ts +42 -38
- package/dist/dist/classes/ColumnUtil.d.ts +81 -81
- package/dist/dist/classes/CreateRequest.d.ts +20 -20
- package/dist/dist/classes/ItemAdministrator.d.ts +94 -94
- package/dist/dist/classes/ItemCache.d.ts +25 -25
- package/dist/dist/classes/ItemEntryService.d.ts +23 -23
- package/dist/dist/classes/ItemHandler.d.ts +76 -76
- package/dist/dist/classes/ItemRequestService.d.ts +23 -23
- package/dist/dist/classes/ItemResourceService.d.ts +5 -5
- package/dist/dist/classes/KeyService.d.ts +16 -16
- package/dist/dist/classes/LocalCache.d.ts +49 -49
- package/dist/dist/classes/LockService.d.ts +23 -23
- package/dist/dist/classes/ModuleChangesCompilation.d.ts +19 -19
- 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 -34
- package/dist/dist/constants.d.ts +16 -16
- package/dist/dist/factories/ApiResponseProcessorFactory.d.ts +6 -6
- package/dist/dist/factories/BatchStatusFactory.d.ts +9 -9
- package/dist/dist/factories/ChangesCompilationFactory.d.ts +8 -8
- package/dist/dist/factories/ChangesProcessorFactory.d.ts +18 -18
- package/dist/dist/factories/CollectionCacheFactory.d.ts +7 -7
- package/dist/dist/factories/CollectionEntryFactory.d.ts +18 -18
- package/dist/dist/factories/CollectionMatcherFactory.d.ts +7 -7
- package/dist/dist/factories/CollectionResourceFactory.d.ts +14 -14
- package/dist/dist/factories/ColumnExpansionFactory.d.ts +6 -6
- package/dist/dist/factories/ColumnInfoFactory.d.ts +6 -6
- package/dist/dist/factories/ColumnSetFactory.d.ts +11 -11
- package/dist/dist/factories/CreateRequestFactory.d.ts +10 -10
- package/dist/dist/factories/ItemCacheFactory.d.ts +7 -7
- package/dist/dist/factories/ItemEntryFactory.d.ts +19 -19
- package/dist/dist/factories/ItemResourceFactory.d.ts +15 -15
- package/dist/dist/factories/LocalCacheFactory.d.ts +16 -16
- package/dist/dist/factories/ModuleChangesCompilationFactory.d.ts +5 -5
- package/dist/dist/factories/QueryMatcherFactory.d.ts +7 -7
- package/dist/dist/factories/QueryParserFactory.d.ts +5 -5
- package/dist/dist/factories/RequestColumnExpansionFactory.d.ts +6 -6
- package/dist/dist/factories/TemplateFactory.d.ts +10 -10
- package/dist/dist/factories/index.d.ts +21 -21
- package/dist/dist/index.d.ts +7 -7
- package/dist/dist/interfaces/ApiRequestServiceInterface.d.ts +11 -11
- 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 +14 -14
- package/dist/dist/interfaces/SocketMessageInterface.d.ts +3 -3
- package/dist/dist/interfaces/index.d.ts +6 -6
- package/dist/dist/main.d.ts +48 -48
- package/dist/dist/models/CollectionEditResource.d.ts +15 -15
- package/dist/dist/models/CollectionEntry.d.ts +63 -63
- package/dist/dist/models/CollectionResource.d.ts +40 -40
- package/dist/dist/models/CollectionViewResource.d.ts +6 -6
- package/dist/dist/models/EditResource.d.ts +18 -18
- package/dist/dist/models/ItemEntry.d.ts +69 -61
- package/dist/dist/models/ItemResource.d.ts +23 -17
- package/dist/dist/models/Template.d.ts +11 -11
- package/dist/dist/models/ViewResource.d.ts +4 -4
- package/dist/dist/models/index.d.ts +9 -9
- package/dist/dist/types/ItemTypesCollection.d.ts +119 -119
- package/dist/dist/types/index.d.ts +1 -1
- package/dist/rm-core.js +6930 -6899
- package/dist/rm-core.min.js +1 -1
- package/package.json +1 -1
- package/readme.md +15 -15
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { CollectionEntryService, ItemEntryService, ItemHandler, ItemRequestService, KeyService, QueryService } from '../classes';
|
|
2
|
-
import { ColumnSetFactory, ItemEntryFactory } from '../factories';
|
|
3
|
-
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
-
import { CollectionEntry } from '../models/';
|
|
5
|
-
export declare class CollectionEntryFactory {
|
|
6
|
-
collectionEntryService: CollectionEntryService;
|
|
7
|
-
columnSetFactory: ColumnSetFactory;
|
|
8
|
-
errorHandler: ErrorHandlerInterface;
|
|
9
|
-
itemEntryFactory: ItemEntryFactory;
|
|
10
|
-
itemEntryService: ItemEntryService;
|
|
11
|
-
itemHandler: ItemHandler;
|
|
12
|
-
itemRequestService: ItemRequestService;
|
|
13
|
-
keyService: KeyService;
|
|
14
|
-
promiseService: PromiseInterface;
|
|
15
|
-
queryService: QueryService;
|
|
16
|
-
constructor(collectionEntryService: CollectionEntryService, columnSetFactory: ColumnSetFactory, errorHandler: ErrorHandlerInterface, itemEntryFactory: ItemEntryFactory, itemEntryService: ItemEntryService, itemHandler: ItemHandler, itemRequestService: ItemRequestService, keyService: KeyService, promiseService: PromiseInterface, queryService: QueryService);
|
|
17
|
-
construct(itemType: string, options: any): CollectionEntry;
|
|
18
|
-
}
|
|
1
|
+
import { CollectionEntryService, ItemEntryService, ItemHandler, ItemRequestService, KeyService, QueryService } from '../classes';
|
|
2
|
+
import { ColumnSetFactory, ItemEntryFactory } from '../factories';
|
|
3
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
+
import { CollectionEntry } from '../models/';
|
|
5
|
+
export declare class CollectionEntryFactory {
|
|
6
|
+
collectionEntryService: CollectionEntryService;
|
|
7
|
+
columnSetFactory: ColumnSetFactory;
|
|
8
|
+
errorHandler: ErrorHandlerInterface;
|
|
9
|
+
itemEntryFactory: ItemEntryFactory;
|
|
10
|
+
itemEntryService: ItemEntryService;
|
|
11
|
+
itemHandler: ItemHandler;
|
|
12
|
+
itemRequestService: ItemRequestService;
|
|
13
|
+
keyService: KeyService;
|
|
14
|
+
promiseService: PromiseInterface;
|
|
15
|
+
queryService: QueryService;
|
|
16
|
+
constructor(collectionEntryService: CollectionEntryService, columnSetFactory: ColumnSetFactory, errorHandler: ErrorHandlerInterface, itemEntryFactory: ItemEntryFactory, itemEntryService: ItemEntryService, itemHandler: ItemHandler, itemRequestService: ItemRequestService, keyService: KeyService, promiseService: PromiseInterface, queryService: QueryService);
|
|
17
|
+
construct(itemType: string, options: any): CollectionEntry;
|
|
18
|
+
}
|
|
@@ -1,7 +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, callOnActivate: boolean): CollectionMatcher;
|
|
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, callOnActivate: boolean): CollectionMatcher;
|
|
7
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CollectionResourceService, KeyService, LocalCache } from '../classes';
|
|
2
|
-
import { ChangesProcessorFactory, ItemResourceFactory } from '../factories';
|
|
3
|
-
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
-
import { CollectionEntry, CollectionResource } from '../models';
|
|
5
|
-
export declare class CollectionResourceFactory {
|
|
6
|
-
errorHandler: ErrorHandlerInterface;
|
|
7
|
-
itemResourceFactory: ItemResourceFactory;
|
|
8
|
-
changesProcessorFactory: ChangesProcessorFactory;
|
|
9
|
-
keyService: KeyService;
|
|
10
|
-
promiseService: PromiseInterface;
|
|
11
|
-
collectionResourceService: CollectionResourceService;
|
|
12
|
-
constructor(errorHandler: ErrorHandlerInterface, itemResourceFactory: ItemResourceFactory, changesProcessorFactory: ChangesProcessorFactory, keyService: KeyService, promiseService: PromiseInterface, collectionResourceService: CollectionResourceService);
|
|
13
|
-
construct(collectionEntry: CollectionEntry, options: any, localCache: LocalCache): CollectionResource;
|
|
14
|
-
}
|
|
1
|
+
import { CollectionResourceService, KeyService, LocalCache } from '../classes';
|
|
2
|
+
import { ChangesProcessorFactory, ItemResourceFactory } from '../factories';
|
|
3
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
+
import { CollectionEntry, CollectionResource } from '../models';
|
|
5
|
+
export declare class CollectionResourceFactory {
|
|
6
|
+
errorHandler: ErrorHandlerInterface;
|
|
7
|
+
itemResourceFactory: ItemResourceFactory;
|
|
8
|
+
changesProcessorFactory: ChangesProcessorFactory;
|
|
9
|
+
keyService: KeyService;
|
|
10
|
+
promiseService: PromiseInterface;
|
|
11
|
+
collectionResourceService: CollectionResourceService;
|
|
12
|
+
constructor(errorHandler: ErrorHandlerInterface, itemResourceFactory: ItemResourceFactory, changesProcessorFactory: ChangesProcessorFactory, keyService: KeyService, promiseService: PromiseInterface, collectionResourceService: CollectionResourceService);
|
|
13
|
+
construct(collectionEntry: CollectionEntry, options: any, localCache: LocalCache): CollectionResource;
|
|
14
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ColumnExpansion, ColumnUtil } from '../classes';
|
|
2
|
-
export declare class ColumnExpansionFactory {
|
|
3
|
-
private columnUtil;
|
|
4
|
-
constructor(columnUtil: ColumnUtil);
|
|
5
|
-
construct(itemType: string, requestColumns: any | boolean, responseColumns: any): ColumnExpansion;
|
|
6
|
-
}
|
|
1
|
+
import { ColumnExpansion, ColumnUtil } from '../classes';
|
|
2
|
+
export declare class ColumnExpansionFactory {
|
|
3
|
+
private columnUtil;
|
|
4
|
+
constructor(columnUtil: ColumnUtil);
|
|
5
|
+
construct(itemType: string, requestColumns: any | boolean, responseColumns: any): ColumnExpansion;
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ColumnInfo } from '../classes';
|
|
2
|
-
import { ResponseColumn } from '../types';
|
|
3
|
-
export declare class ColumnInfoFactory {
|
|
4
|
-
constructor();
|
|
5
|
-
construct(apiColumn: ResponseColumn, parent: ColumnInfo): ColumnInfo;
|
|
6
|
-
}
|
|
1
|
+
import { ColumnInfo } from '../classes';
|
|
2
|
+
import { ResponseColumn } from '../types';
|
|
3
|
+
export declare class ColumnInfoFactory {
|
|
4
|
+
constructor();
|
|
5
|
+
construct(apiColumn: ResponseColumn, parent: ColumnInfo): ColumnInfo;
|
|
6
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
+
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, 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?: any): 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?: any): CreateRequest;
|
|
10
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
+
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,19 +1,19 @@
|
|
|
1
|
-
import { ApiFormatter, ColumnSet, ItemEntryService, KeyService } from '../classes';
|
|
2
|
-
import { ColumnSetFactory } from '../factories';
|
|
3
|
-
import { AuthInterface, PromiseInterface } from '../interfaces';
|
|
4
|
-
import { ItemEntry, Template } from '../models';
|
|
5
|
-
import { EntryParentNull, FieldMap, ItemId, ItemIdConversionMap, ItemType, RequestColumns } from '../types';
|
|
6
|
-
export declare class ItemEntryFactory {
|
|
7
|
-
authInterface: AuthInterface;
|
|
8
|
-
apiFormatter: ApiFormatter;
|
|
9
|
-
columnSetFactory: ColumnSetFactory;
|
|
10
|
-
itemEntryService: ItemEntryService;
|
|
11
|
-
keyService: KeyService;
|
|
12
|
-
promiseService: PromiseInterface;
|
|
13
|
-
constructor(authInterface: AuthInterface, apiFormatter: ApiFormatter, columnSetFactory: ColumnSetFactory, itemEntryService: ItemEntryService, keyService: KeyService, promiseService: PromiseInterface);
|
|
14
|
-
constructStub(itemType: ItemType, itemId: ItemId, columnSetStub: ColumnSet): ItemEntry;
|
|
15
|
-
constructLocalLinked(itemType: ItemType, itemId: ItemId, initial: FieldMap, parent: EntryParentNull, columnSet: ColumnSet, conversionMap: ItemIdConversionMap): ItemEntry;
|
|
16
|
-
constructLocal(itemId: ItemId, template: Template, modified: FieldMap, derived: FieldMap, parent?: EntryParentNull, columnSet?: ColumnSet, 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
|
+
import { ApiFormatter, ColumnSet, ItemEntryService, KeyService } from '../classes';
|
|
2
|
+
import { ColumnSetFactory } from '../factories';
|
|
3
|
+
import { AuthInterface, PromiseInterface } from '../interfaces';
|
|
4
|
+
import { ItemEntry, Template } from '../models';
|
|
5
|
+
import { EntryParentNull, FieldMap, ItemId, ItemIdConversionMap, ItemType, RequestColumns } from '../types';
|
|
6
|
+
export declare class ItemEntryFactory {
|
|
7
|
+
authInterface: AuthInterface;
|
|
8
|
+
apiFormatter: ApiFormatter;
|
|
9
|
+
columnSetFactory: ColumnSetFactory;
|
|
10
|
+
itemEntryService: ItemEntryService;
|
|
11
|
+
keyService: KeyService;
|
|
12
|
+
promiseService: PromiseInterface;
|
|
13
|
+
constructor(authInterface: AuthInterface, apiFormatter: ApiFormatter, columnSetFactory: ColumnSetFactory, itemEntryService: ItemEntryService, keyService: KeyService, promiseService: PromiseInterface);
|
|
14
|
+
constructStub(itemType: ItemType, itemId: ItemId, columnSetStub: ColumnSet): ItemEntry;
|
|
15
|
+
constructLocalLinked(itemType: ItemType, itemId: ItemId, initial: FieldMap, parent: EntryParentNull, columnSet: ColumnSet, conversionMap: ItemIdConversionMap): ItemEntry;
|
|
16
|
+
constructLocal(itemId: ItemId, template: Template, modified: FieldMap, derived: FieldMap, parent?: EntryParentNull, columnSet?: ColumnSet, 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,15 +1,15 @@
|
|
|
1
|
-
import { ApiFormatter, ChangesProcessor, ItemResourceService, LockService } from '../classes';
|
|
2
|
-
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
-
import { ItemEntry, ItemResource } from '../models';
|
|
4
|
-
import { ItemOptions } from '../types';
|
|
5
|
-
export declare class ItemResourceFactory {
|
|
6
|
-
itemResourceService: ItemResourceService;
|
|
7
|
-
apiFormatter: ApiFormatter;
|
|
8
|
-
lockService: LockService;
|
|
9
|
-
changesProcessor: ChangesProcessor;
|
|
10
|
-
errorHandler: ErrorHandlerInterface;
|
|
11
|
-
promiseService: PromiseInterface;
|
|
12
|
-
constructor(itemResourceService: ItemResourceService, apiFormatter: ApiFormatter, lockService: LockService, changesProcessor: ChangesProcessor, errorHandler: ErrorHandlerInterface, promiseService: PromiseInterface);
|
|
13
|
-
getConstructor(options: ItemOptions): (itemEntry: ItemEntry) => ItemResource;
|
|
14
|
-
construct(itemEntry: ItemEntry, options: ItemOptions, isNew?: boolean): ItemResource;
|
|
15
|
-
}
|
|
1
|
+
import { ApiFormatter, ChangesProcessor, ItemResourceService, LockService } from '../classes';
|
|
2
|
+
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
3
|
+
import { ItemEntry, ItemResource } from '../models';
|
|
4
|
+
import { ItemOptions } from '../types';
|
|
5
|
+
export declare class ItemResourceFactory {
|
|
6
|
+
itemResourceService: ItemResourceService;
|
|
7
|
+
apiFormatter: ApiFormatter;
|
|
8
|
+
lockService: LockService;
|
|
9
|
+
changesProcessor: ChangesProcessor;
|
|
10
|
+
errorHandler: ErrorHandlerInterface;
|
|
11
|
+
promiseService: PromiseInterface;
|
|
12
|
+
constructor(itemResourceService: ItemResourceService, apiFormatter: ApiFormatter, lockService: LockService, changesProcessor: ChangesProcessor, errorHandler: ErrorHandlerInterface, promiseService: PromiseInterface);
|
|
13
|
+
getConstructor(options: ItemOptions): (itemEntry: ItemEntry) => ItemResource;
|
|
14
|
+
construct(itemEntry: ItemEntry, options: ItemOptions, isNew?: boolean): ItemResource;
|
|
15
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
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(id?: string): LocalCache;
|
|
16
|
-
}
|
|
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(id?: string): LocalCache;
|
|
16
|
+
}
|
|
@@ -1,5 +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
|
+
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,7 +1,7 @@
|
|
|
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
|
+
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 '../classes';
|
|
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,10 +1,10 @@
|
|
|
1
|
-
import { ColumnUtil } from '../classes';
|
|
2
|
-
import { ColumnSetFactory } from '../factories';
|
|
3
|
-
import { Template } from '../models';
|
|
4
|
-
import { ApiResponse, ItemType, ResponseColumnMap } from '../types';
|
|
5
|
-
export declare class TemplateFactory {
|
|
6
|
-
columnSetFactory: ColumnSetFactory;
|
|
7
|
-
columnUtil: ColumnUtil;
|
|
8
|
-
constructor(columnSetFactory: ColumnSetFactory, columnUtil: ColumnUtil);
|
|
9
|
-
construct(itemType: ItemType, response: ApiResponse, additionalColumns: ResponseColumnMap): Template;
|
|
10
|
-
}
|
|
1
|
+
import { ColumnUtil } from '../classes';
|
|
2
|
+
import { ColumnSetFactory } from '../factories';
|
|
3
|
+
import { Template } from '../models';
|
|
4
|
+
import { ApiResponse, ItemType, ResponseColumnMap } from '../types';
|
|
5
|
+
export declare class TemplateFactory {
|
|
6
|
+
columnSetFactory: ColumnSetFactory;
|
|
7
|
+
columnUtil: ColumnUtil;
|
|
8
|
+
constructor(columnSetFactory: ColumnSetFactory, columnUtil: ColumnUtil);
|
|
9
|
+
construct(itemType: ItemType, response: ApiResponse, additionalColumns: ResponseColumnMap): Template;
|
|
10
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
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';
|
|
21
|
-
export * from './TemplateFactory';
|
|
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';
|
|
21
|
+
export * from './TemplateFactory';
|
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,11 +1,11 @@
|
|
|
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
|
+
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
|
-
getCurrentLocalCache(userId: string): LocalCache;
|
|
4
|
-
setCurrentLocalCache(userId: string, entry: LocalCache): any;
|
|
5
|
-
}
|
|
1
|
+
import { LocalCache } from '../classes';
|
|
2
|
+
export interface LocalCacheManagerInterface {
|
|
3
|
+
getCurrentLocalCache(userId: string): LocalCache;
|
|
4
|
+
setCurrentLocalCache(userId: string, entry: LocalCache): any;
|
|
5
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface PromiseInterface {
|
|
2
|
-
all(iterable: Array<Promise<any> | any>): Promise<any[]>;
|
|
3
|
-
all(iterable: {
|
|
4
|
-
[key: string]: Promise<any> | any;
|
|
5
|
-
}): Promise<{
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}>;
|
|
8
|
-
when<T>(value?: T): Promise<T>;
|
|
9
|
-
reject(value?: any): Promise<any>;
|
|
10
|
-
defer(): {
|
|
11
|
-
(value?): any;
|
|
12
|
-
(value?): any;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
1
|
+
export interface PromiseInterface {
|
|
2
|
+
all(iterable: Array<Promise<any> | any>): Promise<any[]>;
|
|
3
|
+
all(iterable: {
|
|
4
|
+
[key: string]: Promise<any> | any;
|
|
5
|
+
}): Promise<{
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}>;
|
|
8
|
+
when<T>(value?: T): Promise<T>;
|
|
9
|
+
reject(value?: any): Promise<any>;
|
|
10
|
+
defer(): {
|
|
11
|
+
(value?): any;
|
|
12
|
+
(value?): any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -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';
|