import { API } from "./API" ; import { APIUtils } from "./APIUtils" ; const DashboardAPI = { getActivity : async ( options ) : Promise < any > => { return API . getRequest ( "dashboard/activity" , true , { limit : options . limit } ) . then ( APIUtils . handleErrors ) . catch ( APIUtils . handleErrors ) ; } } ; export { DashboardAPI } ;