|
@@ -1,14 +1,19 @@
|
|
|
|
+import { AnyAction } from 'redux';
|
|
import { ActionType } from 'typesafe-actions';
|
|
import { ActionType } from 'typesafe-actions';
|
|
|
|
+import { ThunkAction } from 'redux-thunk';
|
|
|
|
+
|
|
import * as topicsActions from 'redux/reducers/topics/actions';
|
|
import * as topicsActions from 'redux/reducers/topics/actions';
|
|
import * as clustersActions from 'redux/reducers/clusters/actions';
|
|
import * as clustersActions from 'redux/reducers/clusters/actions';
|
|
-import { ThunkAction } from 'redux-thunk';
|
|
|
|
-import { TopicsState } from './topic';
|
|
|
|
-import { AnyAction } from 'redux';
|
|
|
|
-import { ClustersState } from './cluster';
|
|
|
|
|
|
+import * as brokersActions from 'redux/reducers/brokers/actions';
|
|
|
|
+
|
|
|
|
+import { Topic } from './topic';
|
|
|
|
+import { Cluster } from './cluster';
|
|
|
|
+import { Broker } from './broker';
|
|
import { LoaderState } from './loader';
|
|
import { LoaderState } from './loader';
|
|
|
|
|
|
export * from './topic';
|
|
export * from './topic';
|
|
export * from './cluster';
|
|
export * from './cluster';
|
|
|
|
+export * from './broker';
|
|
export * from './loader';
|
|
export * from './loader';
|
|
|
|
|
|
export enum FetchStatus {
|
|
export enum FetchStatus {
|
|
@@ -19,11 +24,12 @@ export enum FetchStatus {
|
|
}
|
|
}
|
|
|
|
|
|
export interface RootState {
|
|
export interface RootState {
|
|
- topics: TopicsState;
|
|
|
|
- clusters: ClustersState;
|
|
|
|
|
|
+ topics: Topic[];
|
|
|
|
+ clusters: Cluster[];
|
|
|
|
+ brokers: Broker[];
|
|
loader: LoaderState;
|
|
loader: LoaderState;
|
|
}
|
|
}
|
|
|
|
|
|
-export type Action = ActionType<typeof topicsActions | typeof clustersActions>;
|
|
|
|
|
|
+export type Action = ActionType<typeof topicsActions | typeof clustersActions | typeof brokersActions>;
|
|
|
|
|
|
export type PromiseThunk<T> = ThunkAction<Promise<T>, RootState, undefined, AnyAction>;
|
|
export type PromiseThunk<T> = ThunkAction<Promise<T>, RootState, undefined, AnyAction>;
|