aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/connectApp/src/handlers/connectAppRootHandler.tsx
blob: f67d5b8c99fa8617d686cb3e699d3e4fc9a78ef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { combineActionHandler } from '../../../../framework/src/flux/middleware';
import { IRequiredNetworkElementsState, requiredNetworkElementsActionHandler  } from './requiredNetworkElementsHandler';
import { IMountedNetworkElementsState, mountedNetworkElementsActionHandler } from './mountedNetworkElementsHandler';
import { IConnectionStatusLogState, connectionStatusLogActionHandler } from './connectionStatusLogHandler';

export interface IConnectAppStoreState {
  requiredNetworkElements: IRequiredNetworkElementsState;
  mountedNetworkElements: IMountedNetworkElementsState;
  connectionStatusLog: IConnectionStatusLogState;
}

declare module '../../../../framework/src/store/applicationStore' {
  interface IApplicationStoreState {
    connect: IConnectAppStoreState
  }
}

const actionHandlers = {
  requiredNetworkElements: requiredNetworkElementsActionHandler,
  mountedNetworkElements: mountedNetworkElementsActionHandler,
  connectionStatusLog: connectionStatusLogActionHandler
};

export const connectAppRootHandler = combineActionHandler <IConnectAppStoreState>(actionHandlers);
export default connectAppRootHandler;