mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-30 11:19:12 +01:00
* feat(spotlight): add search settings link * feat(search-engine): add to manage pages * feat(spotlight): add children option for external search engines * chore: revert search settings * fix: deepsource issue * fix: inconsistent breadcrum placement * chore: address pull request feedback
23 lines
476 B
TypeScript
23 lines
476 B
TypeScript
import { z } from "zod";
|
|
|
|
const paginatedSchema = z.object({
|
|
search: z.string().optional(),
|
|
pageSize: z.number().int().positive().default(10),
|
|
page: z.number().int().positive().default(1),
|
|
});
|
|
|
|
export const byIdSchema = z.object({
|
|
id: z.string(),
|
|
});
|
|
|
|
const searchSchema = z.object({
|
|
query: z.string(),
|
|
limit: z.number().int().positive().default(10),
|
|
});
|
|
|
|
export const commonSchemas = {
|
|
paginated: paginatedSchema,
|
|
byId: byIdSchema,
|
|
search: searchSchema,
|
|
};
|