import type { Connection, FilterQuery } from 'mongoose'; import { factory } from '../factory'; import { IDocType } from './mongoose/schemas/asyncAction'; import type { IExecutableTask } from '../taskSettings'; export type IExecutableAsyncAction = Pick, 'data' | 'expires' | 'id' | 'name' | 'project' | 'runsAt' | 'status'>; type IKeyOfProjection = keyof factory.task.ITask | 'expires'; type IFindParams = Pick; /** * 非同期アクション管理リポジトリ */ export declare class AdminAsyncActionRepo { private readonly asyncActionModel; constructor(connection: Connection); static CREATE_MONGO_CONDITIONS(params: Pick): FilterQuery[]; findAsyncActions(params: IFindParams, inclusion: IKeyOfProjection[]): Promise<(IDocType & { id: string; })[]>; } export {};