import type { Connection, FilterQuery } from 'mongoose'; import { IDocType } from './mongoose/schemas/assetTransaction'; import { factory } from '../factory'; type AvailableAssetTransactionType = factory.assetTransactionType.CancelReservation | factory.assetTransactionType.Pay | factory.assetTransactionType.Refund | factory.assetTransactionType.Reserve; /** * 資産取引管理リポジトリ */ export declare class AdminAssetTransactionRepo { private readonly transactionModel; constructor(connection: Connection); static CREATE_MONGO_CONDITIONS(params: factory.assetTransaction.ISearchConditions): FilterQuery[]; 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-17~) */ countPotentiallyExpired(params: { expires: { $lt: Date; }; limit?: number; }): Promise<{ count: number; }>; /** * add(2025-03-12~) */ makeOneExpiredIfExists(params: { expires: { $lt: Date; }; }): Promise, 'id' | 'typeOf'> | undefined>; countAssetTransactions(params: factory.assetTransaction.ISearchConditions): Promise<{ count: number; }>; /** * 取引を検索する */ findAssetTransactions(params: factory.assetTransaction.ISearchConditions, inclusion?: string[], exclusion?: string[]): Promise[]>; getCursor(conditions: any, projection: any): import("mongoose").Cursor, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & ((import("@chevre/factory/lib/chevre/assetTransaction/cancelReservation").IAttributes & { id: string; } & { seller?: any; } & { _id: import("mongoose").Types.ObjectId; } & { __v: number; }) | (import("@chevre/factory/lib/chevre/assetTransaction/pay").IAttributes & { id: string; } & { seller?: any; } & { _id: import("mongoose").Types.ObjectId; } & { __v: number; }) | (import("@chevre/factory/lib/chevre/assetTransaction/refund").IAttributes & { id: string; } & { seller?: any; } & { _id: import("mongoose").Types.ObjectId; } & { __v: number; }) | (import("@chevre/factory/lib/chevre/assetTransaction/reserve").IAttributes & { id: string; } & { seller?: any; } & { _id: import("mongoose").Types.ObjectId; } & { __v: number; })), import("mongoose").QueryOptions, (import("mongoose").Document, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & ((import("@chevre/factory/lib/chevre/assetTransaction/cancelReservation").IAttributes & { id: string; } & { seller?: any; } & { _id: import("mongoose").Types.ObjectId; } & { __v: number; }) | (import("@chevre/factory/lib/chevre/assetTransaction/pay").IAttributes & { id: string; } & { seller?: any; } & { _id: import("mongoose").Types.ObjectId; } & { __v: number; }) | (import("@chevre/factory/lib/chevre/assetTransaction/refund").IAttributes & { id: string; } & { seller?: any; } & { _id: import("mongoose").Types.ObjectId; } & { __v: number; }) | (import("@chevre/factory/lib/chevre/assetTransaction/reserve").IAttributes & { id: string; } & { seller?: any; } & { _id: import("mongoose").Types.ObjectId; } & { __v: number; }))) | null>; unsetUnnecessaryFields(params: { filter: any; $unset: any; }): Promise; } export {};