lml-main
Version:
This is now a mono repository published into many standalone packages.
25 lines (24 loc) • 1.6 kB
TypeScript
import { RxHttpActionTypes, RxHttpRequestAction } from 'redux-rx-http';
import { LocationModel } from '@lml/cosmo-ts-data';
import { PostLocationRequest } from '../interfaces';
export declare const FETCH_LOCATION_BY_OBJECT_ID: RxHttpActionTypes;
export declare const FETCH_LOCATION_BY_OBJECT_ID_BATCH: RxHttpActionTypes;
export declare const POST_LOCATION: RxHttpActionTypes;
export declare const POST_COURIER_LOCATION: RxHttpActionTypes;
export declare const SET_LOCATION_BY_OBJECT_ID = "SET_LOCATION_BY_OBJECT_ID";
export declare const SET_LOCATION_BY_OBJECT_ID_BATCH = "SET_LOCATION_BY_OBJECT_ID_BATCH";
export interface SetLocationByObjectIdAction {
type: 'SET_LOCATION_BY_OBJECT_ID';
location: LocationModel;
}
export interface SetLocationByObjectIdBatchAction {
type: 'SET_LOCATION_BY_OBJECT_ID_BATCH';
locations: LocationModel[];
}
export declare type LocationsDataAction = SetLocationByObjectIdAction | SetLocationByObjectIdBatchAction;
export declare const fetchLocationById: (object: string, args?: any) => RxHttpRequestAction;
export declare const fetchLocationByIdBatch: (objects: string[], args?: any) => RxHttpRequestAction;
export declare const postLocation: (data: PostLocationRequest, args?: any) => RxHttpRequestAction;
export declare const postCourierLocation: (refId: string, latitude: number, longitude: number, args?: any) => RxHttpRequestAction;
export declare const setLocationByObjectId: (location: LocationModel) => SetLocationByObjectIdAction;
export declare const setLocationByObjectIdBatch: (locations: LocationModel[]) => SetLocationByObjectIdBatchAction;