@rentman/rm-core 1.0.20 → 1.0.21
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/dist/definitions/src/classes/ColumnUtil.d.ts +1 -0
- package/dist/definitions/src/classes/ItemAdministrator.d.ts +5 -1
- package/dist/definitions/src/classes/ItemCache.d.ts +1 -1
- package/dist/definitions/src/classes/ModuleChangesCompiler.d.ts +5 -1
- package/dist/definitions/src/classes/QueryParser.d.ts +1 -1
- package/dist/definitions/src/classes/SocketMessageHandler.d.ts +1 -5
- package/dist/definitions/src/classes/Util.d.ts +1 -1
- package/dist/definitions/src/factories/QueryParserFactory.d.ts +1 -1
- package/dist/definitions/src/index.d.ts +2 -2
- package/dist/rm-core.js +43 -25
- package/package.json +1 -1
- package/readme.md +2 -2
- package/dist/definitions/src/models/Column.d.ts +0 -2
|
@@ -81,7 +81,11 @@ export default class ItemAdministrator {
|
|
|
81
81
|
saveCurrentResourceCache(closeTab: boolean, parameters: any, breakupByParent: boolean, onAfterCreateCallback: any, keepTabHeading?: boolean): any;
|
|
82
82
|
getCurrentCollections(): CollectionCache;
|
|
83
83
|
getCurrentItems(): ItemCache;
|
|
84
|
-
getCurrentChanges():
|
|
84
|
+
getCurrentChanges(): {
|
|
85
|
+
itemType: string;
|
|
86
|
+
itemId: number;
|
|
87
|
+
items: any;
|
|
88
|
+
};
|
|
85
89
|
addSingleItem(itemEntry: any, options: any, isRoot?: boolean): ItemResource;
|
|
86
90
|
addSingleItems(itemEntries: any[], options: any): any[];
|
|
87
91
|
addCollection(collectionEntry: any, resourceOptions: any, processOptions?: any): CollectionResource;
|
|
@@ -6,7 +6,7 @@ export default class ItemCache {
|
|
|
6
6
|
private itemEntryService;
|
|
7
7
|
entries: {};
|
|
8
8
|
constructor(queryMatcherFactory: QueryMatcherFactory, itemEntryService: ItemEntryService);
|
|
9
|
-
some(callback:
|
|
9
|
+
some(callback: (itemEntry) => boolean): boolean;
|
|
10
10
|
getByItemType(itemType: any): any[];
|
|
11
11
|
getByQuery(itemType: any, query: any): any[];
|
|
12
12
|
getLocalByQuery(itemType: any, query: any): any[];
|
|
@@ -10,7 +10,11 @@ export default class ModuleChangesCompiler {
|
|
|
10
10
|
parentMap: any;
|
|
11
11
|
destination: any;
|
|
12
12
|
constructor(itemEntryService: ItemEntryService, rootItemEntry: ItemEntry, singleItemCache: ItemCache, collectionCache: CollectionCache);
|
|
13
|
-
process():
|
|
13
|
+
process(): {
|
|
14
|
+
itemType: string;
|
|
15
|
+
itemId: number;
|
|
16
|
+
items: any;
|
|
17
|
+
};
|
|
14
18
|
private createParentMap(itemCache);
|
|
15
19
|
private processItems(itemType, itemEntries, linkAccumulator);
|
|
16
20
|
private processItem(itemEntry);
|
|
@@ -3,7 +3,6 @@ import ColumnSetFactory from '../factories/ColumnSetFactory';
|
|
|
3
3
|
import RequestColumnExpansionFactory from '../factories/RequestColumnExpansionFactory';
|
|
4
4
|
import ApiRequestServiceInterface from '../interfaces/ApiRequestServiceInterface';
|
|
5
5
|
import ErrorHandlerInterface from '../interfaces/ErrorHandlerInterface';
|
|
6
|
-
import SocketMessageInterface from '../interfaces/SocketMessageInterface';
|
|
7
6
|
import ApiFormatter from './ApiFormatter';
|
|
8
7
|
import CollectionHandler from './CollectionHandler';
|
|
9
8
|
import ItemEntryService from './ItemEntryService';
|
|
@@ -12,7 +11,6 @@ import PromiseService from './PromiseService';
|
|
|
12
11
|
export default class SocketMessageHandler {
|
|
13
12
|
private promiseService;
|
|
14
13
|
private apiRequestService;
|
|
15
|
-
private socketMessageService;
|
|
16
14
|
private itemHandler;
|
|
17
15
|
private itemEntryService;
|
|
18
16
|
private collectionHandler;
|
|
@@ -21,9 +19,7 @@ export default class SocketMessageHandler {
|
|
|
21
19
|
private requestColumnExpansionFactory;
|
|
22
20
|
private apiFormatter;
|
|
23
21
|
private errorHandler;
|
|
24
|
-
|
|
25
|
-
constructor(promiseService: PromiseService, apiRequestService: ApiRequestServiceInterface, socketMessageService: SocketMessageInterface, itemHandler: ItemHandler, itemEntryService: ItemEntryService, collectionHandler: CollectionHandler, columnSetFactory: ColumnSetFactory, columnExpansionFactory: ColumnExpansionFactory, requestColumnExpansionFactory: RequestColumnExpansionFactory, apiFormatter: ApiFormatter, errorHandler: ErrorHandlerInterface);
|
|
26
|
-
destroy(): void;
|
|
22
|
+
constructor(promiseService: PromiseService, apiRequestService: ApiRequestServiceInterface, itemHandler: ItemHandler, itemEntryService: ItemEntryService, collectionHandler: CollectionHandler, columnSetFactory: ColumnSetFactory, columnExpansionFactory: ColumnExpansionFactory, requestColumnExpansionFactory: RequestColumnExpansionFactory, apiFormatter: ApiFormatter, errorHandler: ErrorHandlerInterface);
|
|
27
23
|
onMessageReceived(message: any): void;
|
|
28
24
|
formatMessageValues(values: any, columns: any): {};
|
|
29
25
|
createCollectionMap(itemType: any, items: any, columns: any): {};
|
|
@@ -22,4 +22,4 @@ export declare function isElement(node: any): boolean;
|
|
|
22
22
|
export declare function isWindow(obj: any): boolean;
|
|
23
23
|
export declare function isDefined(value: any): boolean;
|
|
24
24
|
export declare function equals(o1: any, o2: any): boolean;
|
|
25
|
-
export declare function copy(source: any, destination?: any, maxDepth?:
|
|
25
|
+
export declare function copy(source: any, destination?: any, maxDepth?: any): any;
|
|
@@ -38,8 +38,8 @@ import ApiRequestServiceInterface from './interfaces/ApiRequestServiceInterface'
|
|
|
38
38
|
import AuthInterface from './interfaces/AuthInterface';
|
|
39
39
|
import ErrorHandlerInterface from './interfaces/ErrorHandlerInterface';
|
|
40
40
|
import ResourceCacheInterface from './interfaces/ResourceCacheInterface';
|
|
41
|
-
import SocketMessageInterface from './interfaces/SocketMessageInterface';
|
|
42
41
|
export default class RmCore {
|
|
42
|
+
version: string;
|
|
43
43
|
promiseService: PromiseService;
|
|
44
44
|
apiFormatter: ApiFormatter;
|
|
45
45
|
keyService: KeyService;
|
|
@@ -77,7 +77,7 @@ export default class RmCore {
|
|
|
77
77
|
socketMessageHandler: SocketMessageHandler;
|
|
78
78
|
apiRequestService: ApiRequestService;
|
|
79
79
|
destroy: () => void;
|
|
80
|
-
constructor(externalApiRequestService: ApiRequestServiceInterface, resourceCacheInterface: ResourceCacheInterface, authInterface: AuthInterface, errorHandlerInterface: ErrorHandlerInterface
|
|
80
|
+
constructor(externalApiRequestService: ApiRequestServiceInterface, resourceCacheInterface: ResourceCacheInterface, authInterface: AuthInterface, errorHandlerInterface: ErrorHandlerInterface);
|
|
81
81
|
}
|
|
82
82
|
export declare function noop(): void;
|
|
83
83
|
export declare function identity(value: any): any;
|