UNPKG

@accounter/server

Version:

The test suite is split into three Vitest projects for efficiency and isolation:

24 lines (23 loc) 1.8 kB
import DataLoader from 'dataloader'; import { DBProvider } from '../../app-providers/db.provider.js'; import type { IDeleteBusinessTripEmployeePaymentParams, IInsertBusinessTripEmployeePaymentParams, IReplaceBusinessTripsEmployeePaymentsChargeIdParams, IUpdateBusinessTripEmployeePaymentParams } from '../types.js'; export declare class BusinessTripEmployeePaymentsProvider { 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 batchBusinessTripEmployeePaymentsByChargeIds; getBusinessTripEmployeePaymentsByChargeIdLoader: DataLoader<string, import("../types.js").IGetBusinessTripEmployeePaymentsByChargeIdsResult[], import("node-cache").Key | import("node-cache").Key[]>; updateBusinessTripEmployeePayment(params: IUpdateBusinessTripEmployeePaymentParams): Promise<import("../types.js").IUpdateBusinessTripEmployeePaymentResult[]>; replaceBusinessTripsEmployeePaymentsChargeId(params: IReplaceBusinessTripsEmployeePaymentsChargeIdParams): Promise<import("../types.js").IReplaceBusinessTripsEmployeePaymentsChargeIdResult[]>; insertBusinessTripEmployeePayment(params: IInsertBusinessTripEmployeePaymentParams): Promise<import("../types.js").IInsertBusinessTripEmployeePaymentResult[]>; deleteBusinessTripEmployeePayment(params: IDeleteBusinessTripEmployeePaymentParams): Promise<import("../types.js").IDeleteBusinessTripEmployeePaymentResult[]>; clearCache(): void; }