2018-08-27 15:27:09 +00:00
|
|
|
export enum ActionType {
|
|
|
|
SELECT_INSTANCE = 'SELECT_INSTANCE',
|
|
|
|
REQUEST_INSTANCES = 'REQUEST_INSTANCES',
|
|
|
|
RECEIVE_INSTANCES = 'RECEIVE_INSTANCES',
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IAction {
|
|
|
|
type: ActionType,
|
|
|
|
payload: any,
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IInstance {
|
|
|
|
name: string,
|
|
|
|
numUsers?: number,
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IDataState {
|
|
|
|
instances?: IInstance[],
|
|
|
|
isLoadingInstances: boolean,
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IAppState {
|
2018-08-29 01:52:21 +00:00
|
|
|
currentInstanceName: string | null,
|
2018-08-27 15:27:09 +00:00
|
|
|
data: IDataState,
|
2018-08-29 00:17:08 +00:00
|
|
|
}
|