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 08:09:39 +00:00
|
|
|
import { Probe } from '@overflow/commons-typescript/model/probe';
|
2018-04-06 11:02:18 +00:00
|
|
|
|
|
|
|
import { createEntityAdapter, EntityAdapter, EntityState } from '@ngrx/entity';
|
|
|
|
|
|
|
|
export interface State extends EntityState<Probe> {
|
|
|
|
error: RPCClientError | null;
|
|
|
|
isPending: boolean;
|
|
|
|
probe: Probe | null;
|
|
|
|
}
|
|
|
|
export const adapter: EntityAdapter<Probe> = createEntityAdapter<Probe>();
|
|
|
|
export const initialState: State = adapter.getInitialState({
|
|
|
|
error: null,
|
|
|
|
isPending: false,
|
|
|
|
probe: null,
|
|
|
|
});
|
|
|
|
|