@accounter/server
Version:
The test suite is split into three Vitest projects for efficiency and isolation:
25 lines (24 loc) • 1.49 kB
TypeScript
import DataLoader from 'dataloader';
import { DBProvider } from '../../app-providers/db.provider.js';
import type { IDeleteBankAccountParams, IGetAllFinancialBankAccountsResult, IInsertBankAccountsParams, IUpdateBankAccountParams } from '../types.js';
export declare class FinancialBankAccountsProvider {
private dbProvider;
cache: {
get: <T>(key: import("node-cache").Key) => T | undefined;
set: {
<T>(key: import("node-cache").Key, value: T, ttl: number | string): boolean;
<T>(key: import("node-cache").Key, value: T): boolean;
};
delete: (keys: import("node-cache").Key | import("node-cache").Key[]) => number;
clear: () => void;
};
constructor(dbProvider: DBProvider);
private batchFinancialBankAccountsByIds;
getFinancialBankAccountByIdLoader: DataLoader<string, import("../types.js").IGetFinancialBankAccountsByIdsResult | undefined, import("node-cache").Key | import("node-cache").Key[]>;
getAllFinancialBankAccounts(): Promise<IGetAllFinancialBankAccountsResult[]>;
updateBankAccount(params: IUpdateBankAccountParams): Promise<import("../types.js").IUpdateBankAccountResult>;
deleteBankAccount(params: IDeleteBankAccountParams): Promise<import("../types.js").IDeleteBankAccountResult[]>;
insertBankAccounts(params: IInsertBankAccountsParams): Promise<import("../types.js").IInsertBankAccountsResult[]>;
invalidateById(bankAccountId: string): void;
clearCache(): void;
}