2023-04-25 22:39:47 +00:00
|
|
|
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),
|
2023-08-02 03:54:28 +00:00
|
|
|
details: z.object({ credentialId: z.number().optional() }).optional(),
|
2023-04-25 22:39:47 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export type TEditLocationInputSchema = z.infer<typeof ZEditLocationInputSchema>;
|