Skip to content

Scheduling infrastructure for absolutely everyone.

Allow seatsPerTimeSlot and seatsShowAttendees in event type calls (#216)

Joe Au-Yeung5d892df019b8
diff --git a/lib/validations/event-type.ts b/lib/validations/event-type.ts
index a2177df1118..5836945abbd 100644
--- a/lib/validations/event-type.ts
+++ b/lib/validations/event-type.ts
@@ -56,6 +56,8 @@ const schemaEventTypeCreateParams = z
length: z.number().int(),
metadata: z.any().optional(),
recurringEvent: recurringEventInputSchema.optional(),
+ seatsPerTimeSlot: z.number().optional(),
+ seatsShowAttendees: z.boolean().optional(),
})
.strict();
@@ -68,6 +70,8 @@ const schemaEventTypeEditParams = z
title: z.string().optional(),
slug: z.string().optional(),
length: z.number().int().optional(),
+ seatsPerTimeSlot: z.number().optional(),
+ seatsShowAttendees: z.boolean().optional(),
})
.strict();
@@ -103,6 +107,8 @@ export const schemaEventTypeReadPublic = EventType.pick({
description: true,
locations: true,
metadata: true,
+ seatsPerTimeSlot: true,
+ seatsShowAttendees: true,
}).merge(
z.object({
locations: z
diff --git a/pages/api/event-types/_post.ts b/pages/api/event-types/_post.ts
index a0bc450c119..11ce826e6e7 100644
--- a/pages/api/event-types/_post.ts
+++ b/pages/api/event-types/_post.ts
@@ -37,6 +37,7 @@ import { schemaEventTypeCreateBodyParams, schemaEventTypeReadPublic } from "~/li
* slug:
* type: string
* example: my-event
+ *
* tags:
* - event-types
* externalDocs: