-
Notifications
You must be signed in to change notification settings - Fork 4
/
updater.js
39 lines (35 loc) · 1.19 KB
/
updater.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { concat, handleAction, constantState } from 'redux-fp'
import { updater as agents } from 'dogstack-agents'
import { updater as tokens } from './tokens/dux/tokens'
import { updater as tokenConsumes } from './tokens/dux/tokenConsumes'
import { updater as taskPlans } from './tasks/dux/plans'
import { updater as taskWorks } from './tasks/dux/works'
import { updater as orders } from './ordering/dux/orders'
import taskRecipes from './tasks/updaters/recipes'
import { updater as products } from './supply/dux/products'
import { updater as priceSpecs } from './supply/dux/priceSpecs'
import { updater as resourceTypes } from './resources/dux/resourceTypes'
import { updater as orderIntents } from './ordering/dux/orderIntents'
import { updater as orderPlans } from './ordering/dux/orderPlans'
import { authentication as authenticationActions } from 'dogstack-agents/actions'
const resetOnLogOut = handleAction(
authenticationActions.logOutSuccess.toString(),
constantState({
config: window.config
})
)
export default concat(
resetOnLogOut,
agents,
tokens,
tokenConsumes,
orders,
taskPlans,
taskWorks,
taskRecipes,
products,
priceSpecs,
resourceTypes,
orderIntents,
orderPlans
)