UNPKG

@accounter/server

Version:
18 lines (17 loc) • 1.17 kB
import DataLoader from 'dataloader'; import { TenantAwareDBClient } from '../../app-providers/tenant-db-client.js'; import type { IDeleteBankAccountParams, IGetAllFinancialBankAccountsResult, IInsertBankAccountsParams, IUpdateBankAccountParams } from '../types.js'; export declare class FinancialBankAccountsProvider { private db; private context; constructor(db: TenantAwareDBClient, context: GraphQLModules.GlobalContext); private batchFinancialBankAccountsByIds; getFinancialBankAccountByIdLoader: DataLoader<string, import("../types.js").IGetFinancialBankAccountsByIdsResult | undefined, string>; private allFinancialBankAccountsCache; 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; }