chore: more fields event-types apiv2 (#15031)

This commit is contained in:
Morgan authored and GitHub committed 2024-05-14 22:51:21 +01:00
1 parent 46f67bba9b
commit 0a0c5ef61e
5 files changed
+92 -14

No files matched your search

+4
View File
@@ -15,6 +15,10 @@ export const createEventTypeInput = z.object({
locations: imports.eventTypeLocations,
metadata: imports.EventTypeMetaDataSchema.optional(),
disableGuests: z.boolean().optional(),
slotInterval: z.number().nullish(),
minimumBookingNotice: z.number().int().min(0).optional(),
beforeEventBuffer: z.number().int().optional(),
afterEventBuffer: z.number().int().optional(),
})
.partial({ hidden: true, locations: true })
.refine((data) => (data.teamId ? data.teamId && data.schedulingType : true), {