lml-main
Version:
This is now a mono repository published into many standalone packages.
30 lines (29 loc) • 1.03 kB
TypeScript
import { Store } from 'redux';
import { Observable } from 'rxjs';
import { ActionsObservable, Epic } from 'redux-observable';
import { AppState } from '../../common/reducers';
/**
* Reload all couriers...
*
* - when courier status is changed
* - when courier vehicles are changed
* - when selected frequencies are changed
* - when a courier is moved between frequencies
*
* Please note that frequencies has its own epic called handle-frequencies-change
* which also triggers the loadAllCouriers actions when the frequencies are changed
*
* @param action$
* @param store
*/
export declare const reloadCouriersByStatus: (action$: ActionsObservable<any>, store: Store<AppState>) => Observable<any>;
/**
* Reload a particular courier...
*
* - when a job is allocated to the courier
*
* @param action$
* @param store
*/
export declare const reloadCourierOnAllocation: (action$: ActionsObservable<any>, store: Store<AppState>) => Observable<any>;
export declare const reloadCouriersEpics: Epic<any, AppState, any>;