feat: max-seats-per-time-slot (#20213)
* feat: max-seats-per-time-slot * fix : test * enhancements * enhancements * fix:test * fix:test
This commit is contained in:
1 parent
cb365117b3
commit
8d59c2fc16
7 files changed
+32
-9
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { templateTypeEnum } from "@calcom/features/ee/cal-ai-phone/zod-utils";
|
||||
import { MAX_SEATS_PER_TIME_SLOT } from "@calcom/lib/constants";
|
||||
import { _DestinationCalendarModel, _EventTypeModel } from "@calcom/prisma/zod";
|
||||
import {
|
||||
customInputSchema,
|
||||
@@ -71,6 +72,7 @@ const BaseEventTypeUpdateInput = _EventTypeModel
|
||||
assignRRMembersUsingSegment: z.boolean().optional(),
|
||||
rrSegmentQueryValue: rrSegmentQueryValueSchema.optional(),
|
||||
useEventLevelSelectedCalendars: z.boolean().optional(),
|
||||
seatsPerTimeSlot: z.number().min(1).max(MAX_SEATS_PER_TIME_SLOT).nullable().optional(),
|
||||
})
|
||||
.partial()
|
||||
.extend(_EventTypeModel.pick({ id: true }).shape);
|
||||
|
||||
Reference in new issue
Block a user