import { z } from 'zod';

export const SearchByTermSchema = z.object({
  searchTerm: z.string().min(1, 'Search term must not be empty'),
  skip: z.number().int().min(0).default(0),
  take: z.number().int().min(1).max(100).default(20),
});

export type SearchByTerm = z.infer<typeof SearchByTermSchema>;

export type SearchByTermInput = z.input<typeof SearchByTermSchema>;
