UNPKG

@cranberry-money/shared-services

Version:

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

10 lines 989 B
import { AxiosInstance } from 'axios'; import type { InvestmentPreference, CreateInvestmentPreference, UpdateInvestmentPreference, PaginatedResponse } from '@cranberry-money/shared-types'; export declare const configureInvestmentPreferences: (apiClient: AxiosInstance) => void; type PaginatedInvestmentPreferences = PaginatedResponse<InvestmentPreference>; export declare const createInvestmentPreference: (data: CreateInvestmentPreference) => Promise<import("axios").AxiosResponse<InvestmentPreference, any>>; export declare const updateInvestmentPreference: (uuid: string, data: UpdateInvestmentPreference) => Promise<import("axios").AxiosResponse<InvestmentPreference, any>>; export declare const deleteInvestmentPreference: (uuid: string) => Promise<import("axios").AxiosResponse<void, any>>; export declare const getInvestmentPreferences: () => Promise<import("axios").AxiosResponse<PaginatedInvestmentPreferences, any>>; export {}; //# sourceMappingURL=investmentPreferences.d.ts.map