@rentman/rm-core 1.0.11 → 1.0.13
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/ItemEntryService.d.ts +1 -1
- package/dist/definitions/src/classes/SocketMessageHandler.d.ts +38 -0
- package/dist/definitions/src/index.d.ts +4 -1
- package/dist/definitions/src/interfaces/ErrorHandlerInterface.d.ts +1 -0
- package/dist/definitions/src/interfaces/SocketMessageInterface.d.ts +3 -0
- package/dist/rm-core.js +2 -2
- package/dist/rm-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ export default class ItemEntryService {
|
|
|
38
38
|
isLockable(entry: any): boolean;
|
|
39
39
|
hasChanges(entry: any): boolean;
|
|
40
40
|
resetModified(entry: any): void;
|
|
41
|
-
setInitial(entry: any, values: any, enableCallbacks
|
|
41
|
+
setInitial(entry: any, values: any, enableCallbacks?: any): any;
|
|
42
42
|
/**
|
|
43
43
|
* Does a shallow copy of values!
|
|
44
44
|
*/
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import ColumnExpansionFactory from '../factories/ColumnExpansionFactory';
|
|
2
|
+
import ColumnSetFactory from '../factories/ColumnSetFactory';
|
|
3
|
+
import RequestColumnExpansionFactory from '../factories/RequestColumnExpansionFactory';
|
|
4
|
+
import ApiRequestServiceInterface from '../interfaces/ApiRequestServiceInterface';
|
|
5
|
+
import ErrorHandlerInterface from '../interfaces/ErrorHandlerInterface';
|
|
6
|
+
import SocketMessageInterface from '../interfaces/SocketMessageInterface';
|
|
7
|
+
import ApiFormatter from './ApiFormatter';
|
|
8
|
+
import CollectionHandler from './CollectionHandler';
|
|
9
|
+
import ItemEntryService from './ItemEntryService';
|
|
10
|
+
import ItemHandler from './ItemHandler';
|
|
11
|
+
import PromiseService from './PromiseService';
|
|
12
|
+
export default class SocketMessageHandler {
|
|
13
|
+
private promiseService;
|
|
14
|
+
private apiRequestService;
|
|
15
|
+
private socketMessageService;
|
|
16
|
+
private itemHandler;
|
|
17
|
+
private itemEntryService;
|
|
18
|
+
private collectionHandler;
|
|
19
|
+
private columnSetFactory;
|
|
20
|
+
private columnExpansionFactory;
|
|
21
|
+
private requestColumnExpansionFactory;
|
|
22
|
+
private apiFormatter;
|
|
23
|
+
private errorHandler;
|
|
24
|
+
constructor(promiseService: PromiseService, apiRequestService: ApiRequestServiceInterface, socketMessageService: SocketMessageInterface, itemHandler: ItemHandler, itemEntryService: ItemEntryService, collectionHandler: CollectionHandler, columnSetFactory: ColumnSetFactory, columnExpansionFactory: ColumnExpansionFactory, requestColumnExpansionFactory: RequestColumnExpansionFactory, apiFormatter: ApiFormatter, errorHandler: ErrorHandlerInterface);
|
|
25
|
+
onMessageReceived(message: any): void;
|
|
26
|
+
formatMessageValues(values: any, columns: any): {};
|
|
27
|
+
createCollectionMap(itemType: any, items: any, columns: any): {};
|
|
28
|
+
groupByCollectionId(itemType: any, collectionMap: any): {};
|
|
29
|
+
getRequestColumns(itemType: any, collectionMap: any): {};
|
|
30
|
+
deferEntry(itemEntry: any): any;
|
|
31
|
+
processMessage(body: any): any;
|
|
32
|
+
processFunctionChangesResolve(body: any): any;
|
|
33
|
+
handleResponse(itemType: any, requestIds: any, requestColumns: any, response: any, collectionMap: any): {};
|
|
34
|
+
handleCreate(message: any): any;
|
|
35
|
+
handleUpdate(message: any): any;
|
|
36
|
+
handleDelete(message: any): void;
|
|
37
|
+
handleLinkMove(message: any): void;
|
|
38
|
+
}
|
|
@@ -14,6 +14,7 @@ import KeyService from './classes/KeyService';
|
|
|
14
14
|
import LockService from "./classes/LockService";
|
|
15
15
|
import PromiseService from './classes/PromiseService';
|
|
16
16
|
import QueryService from './classes/QueryService';
|
|
17
|
+
import SocketMessageHandler from './classes/SocketMessageHandler';
|
|
17
18
|
import BatchStatusFactory from "./factories/BatchStatusFactory";
|
|
18
19
|
import ChangesCompilerFactory from "./factories/ChangesCompilerFactory";
|
|
19
20
|
import ChangesProcessorFactory from "./factories/ChangesProcessorFactory";
|
|
@@ -35,6 +36,7 @@ import ApiRequestServiceInterface from './interfaces/ApiRequestServiceInterface'
|
|
|
35
36
|
import AuthInterface from './interfaces/AuthInterface';
|
|
36
37
|
import ErrorHandlerInterface from './interfaces/ErrorHandlerInterface';
|
|
37
38
|
import ResourceCacheInterface from './interfaces/ResourceCacheInterface';
|
|
39
|
+
import SocketMessageInterface from './interfaces/SocketMessageInterface';
|
|
38
40
|
export default class RmCore {
|
|
39
41
|
promiseService: PromiseService;
|
|
40
42
|
apiFormatter: ApiFormatter;
|
|
@@ -69,7 +71,8 @@ export default class RmCore {
|
|
|
69
71
|
moduleChangesCompilerFactory: ModuleChangesCompilerFactory;
|
|
70
72
|
queryParserFactory: QueryParserFactory;
|
|
71
73
|
batchStatusFactory: BatchStatusFactory;
|
|
72
|
-
|
|
74
|
+
socketMessageHandler: SocketMessageHandler;
|
|
75
|
+
constructor(apiRequestService: ApiRequestServiceInterface, resourceCacheInterface: ResourceCacheInterface, authInterface: AuthInterface, errorHandlerInterface: ErrorHandlerInterface, socketMessageService: SocketMessageInterface);
|
|
73
76
|
}
|
|
74
77
|
export declare function noop(): void;
|
|
75
78
|
export declare function identity(value: any): any;
|