Creates an instance of GetCurrentUser
The actions for the fetchable data
The dispatch count. Used for the dispatchId
User token expiration stream Will emit when a service returns a 401 and the user token has expired
The store section name Used to name the rootState member and postfixed to all actions
The reducers for the fetchable data
The url to fetch the data from
Initial state with extended properties
Create a fetch action using the class request type This helper will setup and add promises for the fetch call and any chain that is triggered
TODO: If typings provide optional-ness correctly we can remove the Partial
NOTE: omitSessionId is deprecated but remains to not mess up parameter ordering
Create a response action using the class response type
Called when a 401 response is received to expire the current user token and state
Retrieves the requested data from the EVA backend
The redux action
Return an observable that contains the current user if it is of type anonymous
Return an observable that contains the current user if it is of type customer
Return an observable that contains the current user if it is of type employee
Returns the error property as an observable stream
Return an observable that contains the current user if it is of type customer or employee
Retrieves a specific property path from this reducers state from the root state as an observable stream
The extended collection of reducer functions
Returns the response property as an observable stream
Returns the response property as an observable stream
Retrieves section specific state from the root state
Retrieves section specific state from the root state as an observable stream
The observable stream
Expose a helper function to get the full url
Returns the isFetching property as an observable stream
The saga listener for this store section
Helper method for an async-awaitable timeout
Implements GetCurrentUser fetch for the Redux store