import type { Connection, FilterQuery } from 'mongoose'; import { factory } from '../factory'; import type { IDocType } from './mongoose/schemas/action'; import { IKeyOfProjection, IAction, IActionRecipe, ActionProcessRepo } from './action/anyAction/actionProcess'; import { IFindAnyActionsParams } from './factory/action/createMongoConditions'; type IAvailableActionRecipe = IActionRecipe>; type StartableActionType = factory.actionType; export type IAction4transaction = T extends factory.actionType.AcceptAction ? factory.action.accept.coaOffer.IAction | factory.action.accept.pay.IAction : T extends factory.actionType.AuthorizeAction ? (factory.action.authorize.offer.eventService.IAction | factory.action.authorize.paymentMethod.any.IAction) : never; export interface IDeleteActionResult { identifier: string; deletedCount?: number; } /** * アクション管理リポジトリ */ export declare class AdminActionRepo extends ActionProcessRepo, IAvailableActionRecipe> { constructor(connection: Connection); /** * 汎用アクション検索 */ adminFindAnyActions(params: IFindAnyActionsParams, inclusion: IKeyOfProjection[]): Promise[]>; /** * 取引に対するアクションを検索する */ searchByPurpose(params: { typeOf?: T; purpose: { typeOf: factory.transactionType; id: string; }; object?: { typeOf?: { $eq?: factory.action.authorize.offer.eventService.ObjectType.SeatReservation | factory.action.authorize.paymentMethod.any.ResultType.Payment; }; paymentMethodId?: { $eq?: string; }; }; actionStatus?: { $eq?: factory.actionStatusType.CompletedActionStatus; }; sort?: factory.action.ISortOrder; }): Promise[]>; /** * 注文番号から、注文に対するアクションを検索する */ searchByOrderNumber(params: { orderNumber: string; sort?: factory.action.ISortOrder; }): Promise[]>; /** * 注文番号から、注文に対するアクションを削除する */ deleteActionsByOrderNumber(params: { project: { id: string; }; orderNumber: string; }): Promise; deleteByProject(params: { project: { id: string; }; }): Promise; /** * 取引からアクションを削除する */ deleteActionsByTransactionId(params: { project: { id: string; }; transaction: { typeOf: factory.transactionType; id: string; }; typeOf: { $in: factory.actionType[]; }; }): Promise; getCursor(conditions: any, projection: any): import("mongoose").Cursor, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & IDocType & { _id: import("mongoose").Types.ObjectId; } & { __v: number; }, import("mongoose").QueryOptions, (import("mongoose").Document, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & IDocType & { _id: import("mongoose").Types.ObjectId; } & { __v: number; }) | null>; unsetUnnecessaryFields(params: { filter: FilterQuery>>; $unset: any; }): Promise; } export {};