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 732 B
import { AxiosInstance } from 'axios'; import type { Account, CreateAccount, UpdateAccount, PaginatedResponse } from '@cranberry-money/shared-types'; export declare const configureAccounts: (apiClient: AxiosInstance) => void; export declare const getAccounts: () => Promise<import("axios").AxiosResponse<PaginatedResponse<Account>, any>>; export declare const createAccount: (data: CreateAccount) => Promise<import("axios").AxiosResponse<Account, any>>; export declare const updateAccount: (uuid: string, data: UpdateAccount) => Promise<import("axios").AxiosResponse<Account, any>>; export declare const getAccountByUuid: (uuid: string) => Promise<import("axios").AxiosResponse<Account, any>>; //# sourceMappingURL=accounts.d.ts.map