Files
06d6c180d1 feat: report booking (#24324)
* 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]>
2025-10-14 09:23:31 +01:00

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>;