mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
25 lines
695 B
TypeScript
25 lines
695 B
TypeScript
import { type NextFunction, type Response } from 'express';
|
|
|
|
import type { ListQuery } from '@/requests';
|
|
|
|
import { filterListQueryMiddleware } from './filter';
|
|
import { paginationListQueryMiddleware } from './pagination';
|
|
import { selectListQueryMiddleware } from './select';
|
|
import { sortByQueryMiddleware } from './sort-by';
|
|
|
|
export type ListQueryMiddleware = (
|
|
req: ListQuery.Request,
|
|
res: Response,
|
|
next: NextFunction,
|
|
) => void;
|
|
|
|
/**
|
|
* @deprecated Please create Zod validators in `@n8n/api-types` instead.
|
|
*/
|
|
export const listQueryMiddleware: ListQueryMiddleware[] = [
|
|
filterListQueryMiddleware,
|
|
selectListQueryMiddleware,
|
|
paginationListQueryMiddleware,
|
|
sortByQueryMiddleware,
|
|
];
|