mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
13 lines
406 B
TypeScript
13 lines
406 B
TypeScript
import { z } from "zod";
|
|
|
|
import { DailyLocationType } from "@calcom/app-store/constants";
|
|
|
|
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>;
|