UNPKG

@cranberry-money/shared-services

Version:

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

12 lines 1.66 kB
import { AxiosInstance } from 'axios'; import type { PaginatedResponse, BlueberryCashAccountTransaction as CashAccountTransaction, BlueberryCashAccountTransactionQueryParams as CashAccountTransactionQueryParams } from '@cranberry-money/shared-types'; import { formatTransactionAmount, getTransactionTypeLabel } from '@cranberry-money/shared-utils'; export declare const configureCashAccountTransactions: (apiClient: AxiosInstance) => void; export type PaginatedCashAccountTransactions = PaginatedResponse<CashAccountTransaction>; export declare const getCashAccountTransactions: (params?: CashAccountTransactionQueryParams) => Promise<import("axios").AxiosResponse<PaginatedCashAccountTransactions, any>>; export declare const getCashAccountTransactionByUuid: (uuid: string) => Promise<import("axios").AxiosResponse<CashAccountTransaction, any>>; export declare const getCashAccountTransactionsByAccount: (cashAccountUuid: string, params?: Omit<CashAccountTransactionQueryParams, "cash_account">) => Promise<import("axios").AxiosResponse<PaginatedCashAccountTransactions, any>>; export declare const getTransactionsByDateRange: (startDate: string, endDate: string, params?: Omit<CashAccountTransactionQueryParams, "start_date" | "end_date">) => Promise<import("axios").AxiosResponse<PaginatedCashAccountTransactions, any>>; export declare const getRecentTransactions: (days?: number, params?: Omit<CashAccountTransactionQueryParams, "start_date" | "end_date">) => Promise<import("axios").AxiosResponse<PaginatedCashAccountTransactions, any>>; export { formatTransactionAmount, getTransactionTypeLabel }; //# sourceMappingURL=cashAccountTransactions.d.ts.map