@rentman/rm-core 1.0.12 → 1.0.14

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.
@@ -3,7 +3,7 @@ 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 SocketMessageService from '../interfaces/SocketMessageService';
6
+ import SocketMessageInterface from '../interfaces/SocketMessageInterface';
7
7
  import ApiFormatter from './ApiFormatter';
8
8
  import CollectionHandler from './CollectionHandler';
9
9
  import ItemEntryService from './ItemEntryService';
@@ -21,7 +21,7 @@ export default class SocketMessageHandler {
21
21
  private requestColumnExpansionFactory;
22
22
  private apiFormatter;
23
23
  private errorHandler;
24
- constructor(promiseService: PromiseService, apiRequestService: ApiRequestServiceInterface, socketMessageService: SocketMessageService, itemHandler: ItemHandler, itemEntryService: ItemEntryService, collectionHandler: CollectionHandler, columnSetFactory: ColumnSetFactory, columnExpansionFactory: ColumnExpansionFactory, requestColumnExpansionFactory: RequestColumnExpansionFactory, apiFormatter: ApiFormatter, errorHandler: ErrorHandlerInterface);
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
25
  onMessageReceived(message: any): void;
26
26
  formatMessageValues(values: any, columns: any): {};
27
27
  createCollectionMap(itemType: any, items: any, columns: any): {};
@@ -36,7 +36,7 @@ import ApiRequestServiceInterface from './interfaces/ApiRequestServiceInterface'
36
36
  import AuthInterface from './interfaces/AuthInterface';
37
37
  import ErrorHandlerInterface from './interfaces/ErrorHandlerInterface';
38
38
  import ResourceCacheInterface from './interfaces/ResourceCacheInterface';
39
- import SocketMessageService from './interfaces/SocketMessageService';
39
+ import SocketMessageInterface from './interfaces/SocketMessageInterface';
40
40
  export default class RmCore {
41
41
  promiseService: PromiseService;
42
42
  apiFormatter: ApiFormatter;
@@ -72,7 +72,7 @@ export default class RmCore {
72
72
  queryParserFactory: QueryParserFactory;
73
73
  batchStatusFactory: BatchStatusFactory;
74
74
  socketMessageHandler: SocketMessageHandler;
75
- constructor(apiRequestService: ApiRequestServiceInterface, resourceCacheInterface: ResourceCacheInterface, authInterface: AuthInterface, errorHandlerInterface: ErrorHandlerInterface, socketMessageService: SocketMessageService);
75
+ constructor(apiRequestService: ApiRequestServiceInterface, resourceCacheInterface: ResourceCacheInterface, authInterface: AuthInterface, errorHandlerInterface: ErrorHandlerInterface, socketMessageService: SocketMessageInterface);
76
76
  }
77
77
  export declare function noop(): void;
78
78
  export declare function identity(value: any): any;
@@ -0,0 +1,3 @@
1
+ export default interface SocketMessageInterface {
2
+ on(event: string, messageHandler: (message: any) => void): void;
3
+ }