mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* feat: report booking * refactor: improvements * test: add unit test * test: add unit test * chore * refactor: feedback * refactor: feedback * refactor: feedback * fix: use string * fix: schema * chore: improvements * refactor: create service * fix: udate test * fix: feedback * fix: schema * fix: type * fix: type * refactor: address feedback * refactor: move to new file * refactor: move to new file * chor: remove * fix UserRepository import * fix type of bookingUid * fix: import path * fix: remove cancellation * chore: duplicate * fix: tests * refactor: feedback * chore: remove table from here * fix: types * fix: types --------- Co-authored-by: CarinaWolli <[email protected]>
12 lines
336 B
TypeScript
12 lines
336 B
TypeScript
import { z } from "zod";
|
|
|
|
import { BookingReportReason } from "@calcom/prisma/enums";
|
|
|
|
export const ZReportBookingInputSchema = z.object({
|
|
bookingUid: z.string(),
|
|
reason: z.nativeEnum(BookingReportReason),
|
|
description: z.string().optional(),
|
|
});
|
|
|
|
export type TReportBookingInputSchema = z.infer<typeof ZReportBookingInputSchema>;
|