@rentman/rm-core 1.5.4 → 1.5.6
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.
|
@@ -18,5 +18,6 @@ export declare class ItemCache {
|
|
|
18
18
|
contains(itemType: ItemType, itemId: ItemId | string): boolean;
|
|
19
19
|
updateItemId(itemEntry: ItemEntry, oldItemId: any): ItemEntry;
|
|
20
20
|
clear(itemEntry: ItemEntry): boolean;
|
|
21
|
+
clearByItemId(itemType: ItemType, itemId: ItemId): boolean;
|
|
21
22
|
matchQuery(itemEntry: ItemEntry, query: any): boolean;
|
|
22
23
|
}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { ApiFormatter, CollectionHandler, ItemHandler } from '../classes';
|
|
2
2
|
import { ColumnExpansionFactory, ColumnSetFactory, ItemEntryFactory, RequestColumnExpansionFactory } from '../factories';
|
|
3
|
-
import { ApiRequestServiceInterface, ErrorHandlerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
3
|
+
import { ApiRequestServiceInterface, ErrorHandlerInterface, LocalCacheManagerInterface, PromiseLibraryInterface } from '../interfaces';
|
|
4
4
|
import { ItemEntry, ItemResource } from '../models';
|
|
5
5
|
import { ApiRequestColumns, ApiResponse, CollectionMatchResult, FieldMap, FunctionChangesResolveSocketMessage, GroupedExtendedCollectionMatchResult, ItemId, ItemType, PromiseInterface, ResponseColumn, SocketMessage } from '../types';
|
|
6
6
|
export declare type SocketCollectionMap = {
|
|
7
7
|
[itemId: number]: CollectionMatchResult;
|
|
8
8
|
};
|
|
9
9
|
export declare class SocketMessageHandler {
|
|
10
|
-
private
|
|
10
|
+
private apiFormatter;
|
|
11
11
|
private apiRequestService;
|
|
12
|
-
private itemHandler;
|
|
13
|
-
private itemEntryFactory;
|
|
14
12
|
private collectionHandler;
|
|
15
|
-
private columnSetFactory;
|
|
16
13
|
private columnExpansionFactory;
|
|
17
|
-
private
|
|
18
|
-
private apiFormatter;
|
|
14
|
+
private columnSetFactory;
|
|
19
15
|
private errorHandler;
|
|
20
|
-
|
|
16
|
+
private itemEntryFactory;
|
|
17
|
+
private itemHandler;
|
|
18
|
+
private localCacheManager;
|
|
19
|
+
private promiseService;
|
|
20
|
+
private requestColumnExpansionFactory;
|
|
21
|
+
constructor(apiFormatter: ApiFormatter, apiRequestService: ApiRequestServiceInterface, collectionHandler: CollectionHandler, columnExpansionFactory: ColumnExpansionFactory, columnSetFactory: ColumnSetFactory, errorHandler: ErrorHandlerInterface, itemEntryFactory: ItemEntryFactory, itemHandler: ItemHandler, localCacheManager: LocalCacheManagerInterface, promiseService: PromiseLibraryInterface, requestColumnExpansionFactory: RequestColumnExpansionFactory);
|
|
21
22
|
onMessageReceived(message: SocketMessage): any;
|
|
22
23
|
formatMessageValues(values: any, columns: ResponseColumn[]): FieldMap;
|
|
23
24
|
createCollectionMap(itemType: ItemType, items: {
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@rentman/rm-core",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "Rentman core functionalities",
|
|
5
|
-
"main": "./dist/rm-core.js",
|
|
6
|
-
"types": "./dist/src/index.d.ts",
|
|
7
|
-
"dependencies": {},
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/rentmanpublic/frontend-core"
|
|
11
|
-
},
|
|
12
|
-
"devDependencies": {
|
|
13
|
-
"@types/moment": "^2.13.0",
|
|
14
|
-
"@types/q": "^1.5.0",
|
|
15
|
-
"clean-webpack-plugin": "^0.1.19",
|
|
16
|
-
"ts-loader": "^4.4.1",
|
|
17
|
-
"tslint": "^5.12.1",
|
|
18
|
-
"typescript": "3.2.2",
|
|
19
|
-
"uglifyjs-webpack-plugin": "^1.2.5",
|
|
20
|
-
"webpack": "^4.16.3",
|
|
21
|
-
"webpack-cli": "^3.0.6",
|
|
22
|
-
"webpack-merge": "^4.1.3"
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist"
|
|
26
|
-
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"prepublishOnly": "npm run bundle",
|
|
29
|
-
"bundle-dev": "webpack --config webpack.dev.js",
|
|
30
|
-
"bundle": "webpack --config webpack.prod.js",
|
|
31
|
-
"type-check": "tsc --noEmit"
|
|
32
|
-
},
|
|
33
|
-
"author": "Martijn Welker <martijn@rentman.nl>",
|
|
34
|
-
"license": "UNLICENSED"
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@rentman/rm-core",
|
|
3
|
+
"version": "1.5.6",
|
|
4
|
+
"description": "Rentman core functionalities",
|
|
5
|
+
"main": "./dist/rm-core.js",
|
|
6
|
+
"types": "./dist/src/index.d.ts",
|
|
7
|
+
"dependencies": {},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/rentmanpublic/frontend-core"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@types/moment": "^2.13.0",
|
|
14
|
+
"@types/q": "^1.5.0",
|
|
15
|
+
"clean-webpack-plugin": "^0.1.19",
|
|
16
|
+
"ts-loader": "^4.4.1",
|
|
17
|
+
"tslint": "^5.12.1",
|
|
18
|
+
"typescript": "3.2.2",
|
|
19
|
+
"uglifyjs-webpack-plugin": "^1.2.5",
|
|
20
|
+
"webpack": "^4.16.3",
|
|
21
|
+
"webpack-cli": "^3.0.6",
|
|
22
|
+
"webpack-merge": "^4.1.3"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"prepublishOnly": "npm run bundle",
|
|
29
|
+
"bundle-dev": "webpack --config webpack.dev.js",
|
|
30
|
+
"bundle": "webpack --config webpack.prod.js",
|
|
31
|
+
"type-check": "tsc --noEmit"
|
|
32
|
+
},
|
|
33
|
+
"author": "Martijn Welker <martijn@rentman.nl>",
|
|
34
|
+
"license": "UNLICENSED"
|
|
35
|
+
}
|