UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

22 lines (21 loc) 1.34 kB
import { RxHttpRequestAction, RxHttpActionTypes } from 'redux-rx-http'; import { CourierModel, CourierStatusType, CourierVehicleType } from '@lml/cosmo-ts-data'; export declare const FETCH_COURIER_BY_ID: RxHttpActionTypes; export declare const FETCH_COURIERS_BY_ID_BATCH: RxHttpActionTypes; export declare const FETCH_COURIERS_BY_STATUS: RxHttpActionTypes; export declare const SET_COURIER_BY_ID = "SET_COURIER_BY_ID"; export declare const SET_COURIERS_BY_ID_BATCH = "SET_COURIERS_BY_ID_BATCH"; export interface SetCourierByIdAction { type: 'SET_COURIER_BY_ID'; courier: CourierModel; } export interface SetCouriersByIdBatchAction { type: 'SET_COURIERS_BY_ID_BATCH'; couriers: CourierModel[]; } export declare type CouriersDataAction = SetCourierByIdAction | SetCouriersByIdBatchAction; export declare const fetchCourierById: (refId: string, args?: any) => RxHttpRequestAction; export declare const fetchCouriersByIdBatch: (refIds: string[], args?: any) => RxHttpRequestAction; export declare const fetchCouriersByStatus: (statuses: CourierStatusType[], vehicles: CourierVehicleType[], labels: string[], args?: any) => RxHttpRequestAction; export declare const setCourierById: (courier: CourierModel) => SetCourierByIdAction; export declare const setCouriersByIdBatch: (couriers: CourierModel[]) => SetCouriersByIdBatchAction;