chore: api-v2 slotInterval, afterEventBuffer, beforeEventBuffer min 0 (#15039)
This commit is contained in:
1 parent
e3741f3e06
commit
b3fab3aacd
3 files changed
+9
-3
No files matched your search
@@ -15,10 +15,10 @@ export const createEventTypeInput = z.object({
|
||||
locations: imports.eventTypeLocations,
|
||||
metadata: imports.EventTypeMetaDataSchema.optional(),
|
||||
disableGuests: z.boolean().optional(),
|
||||
slotInterval: z.number().nullish(),
|
||||
slotInterval: z.number().min(0).nullish(),
|
||||
minimumBookingNotice: z.number().int().min(0).optional(),
|
||||
beforeEventBuffer: z.number().int().optional(),
|
||||
afterEventBuffer: z.number().int().optional(),
|
||||
beforeEventBuffer: z.number().int().min(0).optional(),
|
||||
afterEventBuffer: z.number().int().min(0).optional(),
|
||||
})
|
||||
.partial({ hidden: true, locations: true })
|
||||
.refine((data) => (data.teamId ? data.teamId && data.schedulingType : true), {
|
||||
|
||||
Reference in new issue
Block a user