Files
cal.diy/packages/trpc/server/routers/viewer/bookings/editLocation.schema.ts
T
Hariom Balhara e362c37ff3 fix: Location Change to Organizer Default Conferencing App (#16379)
* Fix

* Dont include test files

* Fix location change

* Self review fixes

* Add unit test

* Add more test

* Add a bookingScenario as well
2024-09-11 21:31:53 +09:00

13 lines
406 B
TypeScript

import { z } from "zod";
import { DailyLocationType } from "@calcom/app-store/locations";
import { commonBookingSchema } from "./types";
export const ZEditLocationInputSchema = commonBookingSchema.extend({
newLocation: z.string().transform((val) => val || DailyLocationType),
credentialId: z.number().nullable(),
});
export type TEditLocationInputSchema = z.infer<typeof ZEditLocationInputSchema>;