@cranberry-money/shared-services
Version:
Platform-agnostic API services with pure functions and dependency injection. Includes auth, portfolios, assets, countries, sectors, and more.
6 lines • 447 B
JavaScript
import { ASSET_ENDPOINTS } from '@cranberry-money/shared-constants';
import { getNextPageParam } from '@cranberry-money/shared-utils';
export const getAssets = (apiClient, params) => apiClient.get(ASSET_ENDPOINTS.BASE, { params });
export const getAssetsNextPage = (lastPage) => getNextPageParam(lastPage.data);
export const getAssetByUuid = (apiClient, uuid) => apiClient.get(`${ASSET_ENDPOINTS.BASE}${uuid}/`);
//# sourceMappingURL=assets.js.map