Scheduling infrastructure for absolutely everyone.
feat: Add scheduleId to POST and PATCH requests in event-type endpoint (#10816)
Syed Ali Shahbazefa195059e28
diff --git a/apps/api/lib/validations/event-type.ts b/apps/api/lib/validations/event-type.tsindex ffe4cc4bede..5d84b03cca6 100644--- a/apps/api/lib/validations/event-type.ts+++ b/apps/api/lib/validations/event-type.ts@@ -67,6 +67,7 @@ const schemaEventTypeCreateParams = zseatsPerTimeSlot: z.number().optional(),seatsShowAttendees: z.boolean().optional(),bookingFields: eventTypeBookingFields.optional(),+ scheduleId: z.number().optional(),}).strict();@@ -85,6 +86,7 @@ const schemaEventTypeEditParams = zseatsPerTimeSlot: z.number().optional(),seatsShowAttendees: z.boolean().optional(),bookingFields: eventTypeBookingFields.optional(),+ scheduleId: z.number().optional(),}).strict();diff --git a/apps/api/pages/api/event-types/[id]/_patch.ts b/apps/api/pages/api/event-types/[id]/_patch.tsindex 2468d1621b7..0cd8b3cf240 100644--- a/apps/api/pages/api/event-types/[id]/_patch.ts+++ b/apps/api/pages/api/event-types/[id]/_patch.ts@@ -52,6 +52,9 @@ import checkTeamEventEditPermission from "../_utils/checkTeamEventEditPermission* slug:* type: string* description: Unique slug for the event type+ * scheduleId:+ * type: number+ * description: The ID of the schedule for this event type* hosts:* type: array* items:diff --git a/apps/api/pages/api/event-types/_post.ts b/apps/api/pages/api/event-types/_post.tsindex d87894c4df1..d588b40d68b 100644--- a/apps/api/pages/api/event-types/_post.ts+++ b/apps/api/pages/api/event-types/_post.ts@@ -60,6 +60,9 @@ import ensureOnlyMembersAsHosts from "./_utils/ensureOnlyMembersAsHosts";* hidden:* type: boolean* description: If the event type should be hidden from your public booking page+ * scheduleId:+ * type: number+ * description: The ID of the schedule for this event type* position:* type: integer* description: The position of the event type on the public booking page@@ -178,6 +181,7 @@ import ensureOnlyMembersAsHosts from "./_utils/ensureOnlyMembersAsHosts";* position: 0* eventName: null* timeZone: null+ * scheduleId: 5* periodType: UNLIMITED* periodStartDate: 2023-02-15T08:46:16.000Z* periodEndDate: 2023-0-15T08:46:16.000Z