2018-05-24 06:44:13 +00:00
|
|
|
import { RPCClientError } from '@loafer/ng-rpc';
|
2018-04-06 11:02:18 +00:00
|
|
|
|
2018-05-02 07:23:35 +00:00
|
|
|
import { Zone } from '@overflow/commons-typescript/model/discovery';
|
2018-04-06 11:02:18 +00:00
|
|
|
|
|
|
|
export interface State {
|
|
|
|
error: RPCClientError | null;
|
|
|
|
processing: boolean;
|
|
|
|
zones: Map<string, Zone> | null;
|
2018-04-23 12:31:16 +00:00
|
|
|
isReq: boolean;
|
|
|
|
isStart: boolean;
|
|
|
|
isEnd: boolean;
|
2018-04-06 11:02:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const initialState: State = {
|
|
|
|
error: null,
|
|
|
|
processing: false,
|
|
|
|
zones: null,
|
2018-04-23 12:31:16 +00:00
|
|
|
isReq: false,
|
|
|
|
isStart: false,
|
|
|
|
isEnd: false
|
2018-04-06 11:02:18 +00:00
|
|
|
};
|
|
|
|
|