UNPKG

@cranberry-money/shared-services

Version:

Platform-agnostic API services with pure functions and dependency injection. Includes auth, portfolios, instruments, countries, sectors, and more.

8 lines 835 B
import { AxiosInstance } from 'axios'; import type { AssetAllocation, CreateAssetAllocation, UpdateAssetAllocation } from '@cranberry-money/shared-types'; export declare const configurePortfolioAllocations: (apiClient: AxiosInstance) => void; export declare const getPortfolioAllocations: (portfolioUuid: string) => Promise<import("axios").AxiosResponse<AssetAllocation[], any>>; export declare const createAssetAllocation: (data: CreateAssetAllocation) => Promise<import("axios").AxiosResponse<AssetAllocation, any>>; export declare const updateAssetAllocation: (uuid: string, data: UpdateAssetAllocation) => Promise<import("axios").AxiosResponse<AssetAllocation, any>>; export declare const deleteAssetAllocation: (uuid: string) => Promise<import("axios").AxiosResponse<void, any>>; //# sourceMappingURL=portfolioAllocations.d.ts.map