@accounter/server
Version:
Accounter GraphQL server
22 lines (21 loc) • 1.61 kB
TypeScript
import DataLoader from 'dataloader';
import { TenantAwareDBClient } from '../../app-providers/tenant-db-client.js';
import type { IDeleteFinancialAccountParams, IGetAllFinancialAccountsResult, IInsertFinancialAccountsParams, IUpdateFinancialAccountParams } from '../types.js';
export declare class FinancialAccountsProvider {
private db;
private context;
constructor(db: TenantAwareDBClient, context: GraphQLModules.GlobalContext);
private batchFinancialAccountsByOwnerIds;
getFinancialAccountsByOwnerIdLoader: DataLoader<string, import("../types.js").IGetFinancialAccountsByOwnerIdsResult[], string>;
private batchFinancialAccountsByAccountNumbers;
getFinancialAccountByAccountNumberLoader: DataLoader<string, import("../types.js").IGetFinancialAccountsByAccountNumbersResult | undefined, string>;
private batchFinancialAccountsByAccountIDs;
getFinancialAccountByAccountIDLoader: DataLoader<string, import("../types.js").IGetFinancialAccountsByAccountIDsResult | undefined, string>;
private allFinancialAccountsCache;
getAllFinancialAccounts(): Promise<IGetAllFinancialAccountsResult[]>;
updateFinancialAccount(params: IUpdateFinancialAccountParams): Promise<import("../types.js").IUpdateFinancialAccountResult>;
deleteFinancialAccount(params: IDeleteFinancialAccountParams): Promise<import("../types.js").IDeleteFinancialAccountResult[]>;
insertFinancialAccounts(params: IInsertFinancialAccountsParams): Promise<import("../types.js").IInsertFinancialAccountsResult[]>;
invalidateById(financialAccountId: string): void;
clearCache(): void;
}