UNPKG

@accounter/server

Version:
18 lines (17 loc) 1.08 kB
import DataLoader from 'dataloader'; import { TenantAwareDBClient } from '../../app-providers/tenant-db-client.js'; import type { IInsertDeelInvoiceRecordsParams } from '../types.js'; export declare class DeelInvoicesProvider { private db; private context; constructor(db: TenantAwareDBClient, context: GraphQLModules.GlobalContext); private batchInvoicesByIssueDates; getInvoicesByIssueDates(from: Date, to: Date): Promise<import("../types.js").IGetInvoicesByIssueDatesResult[]>; getInvoicesByIssueDateLoader: DataLoader<Date, import("../types.js").IGetInvoicesByIssueDatesResult[], Date>; private batchInvoicesByIds; getInvoicesByIdLoader: DataLoader<string, import("../types.js").IGetInvoicesByIdsResult | undefined, string>; private batchChargeIdsByPaymentIds; getChargeIdByPaymentIdLoader: DataLoader<string, string | null | undefined, string>; getReceiptToCharge(): Promise<Map<string, string>>; insertDeelInvoiceRecords(params: IInsertDeelInvoiceRecordsParams): Promise<import("../types.js").IInsertDeelInvoiceRecordsResult[]>; }