import type { Connection } from 'mongoose'; import { factory } from '../factory'; /** * 取引管理リポジトリ */ export declare class AdminTransactionRepo { private readonly transactionModel; constructor(connection: Connection); countPotentiallyExportTasks(params: { endDate: { $lt: Date; }; limit?: number; }): Promise<{ count: number; }>; /** * tasksExportAction.actionStatusがActiveActionStatusのまま一定時間経過した取引について * PotentialActionStatusに変更する * 2025-03-10~ */ reExportAction(params: { startDate: { $lt: Date; }; }): Promise; /** * add(2025-03-13~) */ countPotentiallyExpired(params: { expires: { $lt: Date; }; limit?: number; }): Promise<{ count: number; }>; /** * add(2025-03-03~) */ makeOneExpiredIfExists(params: { expires: { $lt: Date; }; }): Promise | undefined>; findByIdAndDelete(params: { id: string; }): Promise; unsetUnnecessaryFields(params: { filter: any; $unset: any; }): Promise; getCursor(conditions: any, projection: any, sort?: factory.sortType): import("mongoose").Cursor, { object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject; endDate?: Date | undefined; startDate: Date; typeOf: factory.transactionType.PlaceOrder; project: import("@chevre/factory/lib/chevre/transaction").IProject; seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller; expires: Date; result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined; instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined; agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent; status: factory.transactionStatusType; tasksExportAction?: import("@chevre/factory/lib/chevre/transaction/placeOrder").ITasksExportAction | undefined; }, import("./mongoose/virtuals").IVirtuals, {}> & { object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject; endDate?: Date | undefined; startDate: Date; typeOf: factory.transactionType.PlaceOrder; project: import("@chevre/factory/lib/chevre/transaction").IProject; seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller; expires: Date; result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined; instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined; agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent; status: factory.transactionStatusType; tasksExportAction?: import("@chevre/factory/lib/chevre/transaction/placeOrder").ITasksExportAction | undefined; } & { _id: import("mongoose").Types.ObjectId; } & { __v: number; }, import("mongoose").QueryOptions<{ object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject; endDate?: Date | undefined; startDate: Date; typeOf: factory.transactionType.PlaceOrder; project: import("@chevre/factory/lib/chevre/transaction").IProject; seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller; expires: Date; result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined; instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined; agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent; status: factory.transactionStatusType; tasksExportAction?: import("@chevre/factory/lib/chevre/transaction/placeOrder").ITasksExportAction | undefined; }>, (import("mongoose").Document, { object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject; endDate?: Date | undefined; startDate: Date; typeOf: factory.transactionType.PlaceOrder; project: import("@chevre/factory/lib/chevre/transaction").IProject; seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller; expires: Date; result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined; instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined; agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent; status: factory.transactionStatusType; tasksExportAction?: import("@chevre/factory/lib/chevre/transaction/placeOrder").ITasksExportAction | undefined; }, import("./mongoose/virtuals").IVirtuals, {}> & { object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject; endDate?: Date | undefined; startDate: Date; typeOf: factory.transactionType.PlaceOrder; project: import("@chevre/factory/lib/chevre/transaction").IProject; seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller; expires: Date; result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined; instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined; agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent; status: factory.transactionStatusType; tasksExportAction?: import("@chevre/factory/lib/chevre/transaction/placeOrder").ITasksExportAction | undefined; } & { _id: import("mongoose").Types.ObjectId; } & { __v: number; }) | null>; }