lml-main
Version:
This is now a mono repository published into many standalone packages.
21 lines (20 loc) • 935 B
TypeScript
import { RxHttpActionTypes, RxHttpRequestAction } from 'redux-rx-http';
import { TrackingModel } from '@lml/cosmo-ts-data';
export declare const FETCH_TRACKING_BY_ID: RxHttpActionTypes;
export declare const SET_TRACKING_BY_ID = "SET_TRACKING_BY_ID";
export interface SetTrackingByIdAction {
type: 'SET_TRACKING_BY_ID';
clientReferenceNumber: string;
tracking: TrackingModel;
}
export declare type TrackingApiDataAction = SetTrackingByIdAction;
/**
* Note the client reference number is not the order id
* unlike the id the client reference number includes the
* customer namespace. It may also be encoded.
*
* @param clientReferenceNumber
* @param token
* @param args
*/ export declare const fetchTrackingById: (clientReferenceNumber: string, token: string, args?: any) => RxHttpRequestAction;
export declare const setTrackingById: (clientReferenceNumber: string, tracking: TrackingModel) => SetTrackingByIdAction;