mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
14 lines
325 B
TypeScript
14 lines
325 B
TypeScript
import { z } from "zod";
|
|
|
|
export type TSubmitRatingInputSchema = {
|
|
bookingUid: string;
|
|
rating: number;
|
|
comment?: string;
|
|
};
|
|
|
|
export const ZSubmitRatingInputSchema: z.ZodType<TSubmitRatingInputSchema> = z.object({
|
|
bookingUid: z.string(),
|
|
rating: z.number().int().min(1).max(5),
|
|
comment: z.string().optional(),
|
|
});
|