/** * 取引サービス */ import { factory } from '../factory'; import type { SettingRepo } from '../repo/setting'; import type { ScheduledTaskRepo } from '../repo/scheduledTask'; import type { TaskRepo } from '../repo/task'; import type { TransactionRepo } from '../repo/transaction'; import type { PlaceOrderRepo } from '../repo/transaction/placeOrder'; import { deleteTransaction } from './transaction/deleteTransaction'; import * as PlaceOrderTransactionService from './transaction/placeOrder'; import * as ReturnOrderTransactionService from './transaction/returnOrder'; export type ITransactionOperation = (repos: { transaction: TransactionRepo; }) => Promise; export import placeOrder = PlaceOrderTransactionService; export import returnOrder = ReturnOrderTransactionService; export { deleteTransaction }; export type IExportTasksOperation = (repos: { setting: SettingRepo; scheduledTask: ScheduledTaskRepo; task: TaskRepo; placeOrder: PlaceOrderRepo; transaction: TransactionRepo; }) => Promise; export declare function exportOneTransactionTasksIfExists(params: { /** * タスク実行日時バッファ */ runsTasksAfterInSeconds?: number; status?: { $eq?: factory.transactionStatusType; }; id?: string; tasksExportAction: { agent: { name: string; }; }; endDate: { $lt: Date; }; sort?: { endDate?: factory.sortType; startDate?: factory.sortType; }; }): IExportTasksOperation | undefined>;