UNPKG

agenda-admin

Version:
18 lines (17 loc) 632 B
import { NextFunction, Request, Response } from 'express'; import { StatusType } from '../types'; interface ReqQuery { sortBy: 'lastRunAt' | 'nextRunAt'; sortType: 'desc' | 'asc'; page: number; status: StatusType | null; name: string | null; property: string | null; value: any | null; } interface ReqBody { ids: string[]; } export declare const requeueJobsByQuery: (req: Request<any, any, any, ReqQuery>, res: Response, next: NextFunction) => Promise<void>; export declare const requeueJobsById: (req: Request<any, any, ReqBody, any>, res: Response, next: NextFunction) => Promise<void>; export {};