2018-04-06 11:02:18 +00:00
|
|
|
import {
|
|
|
|
createSelector,
|
|
|
|
createFeatureSelector,
|
|
|
|
} from '@ngrx/store';
|
|
|
|
|
|
|
|
import { MODULE } from '../noauth-probe.constant';
|
|
|
|
|
2018-05-27 06:40:46 +00:00
|
|
|
import * as NoAuthProbeEntityStore from './entity/noauth-probe';
|
2018-04-06 11:02:18 +00:00
|
|
|
|
2018-05-28 08:58:10 +00:00
|
|
|
import * as NoAuthProbeListContainerStore from './container/noauth-probe-list';
|
|
|
|
|
2018-04-06 11:02:18 +00:00
|
|
|
export interface State {
|
2018-05-28 08:58:10 +00:00
|
|
|
noauth_probe_list: NoAuthProbeListContainerStore.State;
|
2018-04-06 11:02:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const REDUCERS = {
|
2018-05-28 08:58:10 +00:00
|
|
|
noauth_probe_list: NoAuthProbeListContainerStore.reducer,
|
2018-04-06 11:02:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const EFFECTS = [
|
2018-05-27 06:40:46 +00:00
|
|
|
NoAuthProbeEntityStore.Effects,
|
2018-04-06 11:02:18 +00:00
|
|
|
];
|
|
|
|
|
2018-05-25 11:31:58 +00:00
|
|
|
export const selectState = createFeatureSelector<State>(MODULE.name);
|
2018-04-06 11:02:18 +00:00
|
|
|
|
2018-05-28 08:58:10 +00:00
|
|
|
export const NoAuthProbeListContainerSelector = NoAuthProbeListContainerStore.getSelectors(createSelector(
|
2018-05-25 11:31:58 +00:00
|
|
|
selectState,
|
2018-05-28 08:58:10 +00:00
|
|
|
(state: State) => state.noauth_probe_list
|
2018-04-06 11:02:18 +00:00
|
|
|
));
|