import { Connection } from 'mongoose'; import { factory } from '../factory'; export interface IAggregationByStatus { actionCount: number; avgDuration: number; maxDuration: number; minDuration: number; percentilesDuration: { name: string; value: number; }[]; } export interface IStatus { status: factory.actionStatusType; aggregation: IAggregationByStatus; } export interface IAggregateAction { statuses: IStatus[]; } type IAvailableActionType = Exclude; /** * アクション集計リポジトリ */ export declare class AggregateActionRepo { private readonly actionModel; constructor(connection: Connection); aggregateAuthorizeEventServiceOfferAction(params: { project?: { id?: { $ne?: string; }; }; startFrom: Date; startThrough: Date; typeOf: factory.actionType.AuthorizeAction; }): Promise; aggregateAuthorizePaymentAction(params: { project?: { id?: { $ne?: string; }; }; startFrom: Date; startThrough: Date; typeOf: factory.actionType.AuthorizeAction; }): Promise; aggregateAuthorizeOrderAction(params: { project?: { id?: { $ne?: string; }; }; startFrom: Date; startThrough: Date; typeOf: factory.actionType.AuthorizeAction; }): Promise; aggregateCancelReservationAction(params: { project?: { id?: { $ne?: string; }; }; startFrom: Date; startThrough: Date; }): Promise; /** * アクションタイプによる汎用的な集計 */ aggregateByTypeOf(params: { project?: { id?: { $ne?: string; }; }; startFrom: Date; startThrough: Date; typeOf: IAvailableActionType; }): Promise; aggregatePayMovieTicketAction(params: { project?: { id?: { $ne?: string; }; }; startFrom: Date; startThrough: Date; }): Promise; private agggregateByStatus; } export {};