chore: open disableGuests for event-types apiv2 (#15001)

* chore: open disableGuests for eventtypes apiv2

* fixup! chore: open disableGuests for eventtypes apiv2

* fixup! fixup! chore: open disableGuests for eventtypes apiv2

* chore: add disableGuests to create handler
This commit is contained in:
Morgan authored and GitHub committed 2024-05-14 10:50:12 +00:00
1 parent 1d309a6f09
commit 3942df369d
5 files changed
+54 -4

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ export const createEventTypeInput = z.object({
schedulingType: z.nativeEnum(SchedulingType).nullish(),
locations: imports.eventTypeLocations,
metadata: imports.EventTypeMetaDataSchema.optional(),
disableGuests: z.boolean().optional(),
})
.partial({ hidden: true, locations: true })
.refine((data) => (data.teamId ? data.teamId && data.schedulingType : true), {