diff --git a/public/swagger/swagger.json b/public/swagger/swagger.json index 7f553b3..244af9c 100644 --- a/public/swagger/swagger.json +++ b/public/swagger/swagger.json @@ -348,6 +348,14 @@ "type": "string" }, "required": true + }, + { + "in": "query", + "name": "isICalUId", + "schema": { + "type": "boolean" + }, + "required": true } ], "responses": { @@ -2440,7 +2448,6 @@ "description": "Request body of the details of the two meetings", "type": "object", "required": [ - "newMeeting", "oldMeeting" ], "properties": { @@ -2473,12 +2480,18 @@ "oldMeeting": { "type": "object", "required": [ - "msftMeetingID" + "msftMeetingID", + "ownerEmail" ], "properties": { + "ownerEmail": { + "type": "string", + "format": "email", + "description": "The email of the owner of the old meeting" + }, "msftMeetingID": { "type": "string", - "description": "The microsoft meeting ID of the old meeting if it exists" + "description": "The microsoft iCalUId meeting ID of the old meeting" }, "isOrganizerOptional": { "type": "boolean", @@ -2557,13 +2570,17 @@ "type": "object", "required": [ "msftMeetingID", - "meetingStartTime", - "meetingOwner" + "ownerEmail" ], "properties": { + "ownerEmail": { + "type": "string", + "format": "email", + "description": "The email of the owner of the old meeting" + }, "msftMeetingID": { "type": "string", - "description": "The microsoft meeting ID of the old meeting" + "description": "The microsoft iCalUId meeting ID of the old meeting" } } } @@ -2573,12 +2590,17 @@ "description": "Request body of the details of the old meeting", "type": "object", "required": [ - "msftMeetingID" + "msftMeetingID", + "ownerEmail" ], "properties": { + "ownerEmail": { + "type": "string", + "format": "email" + }, "msftMeetingID": { "type": "string", - "description": "The microsoft meeting ID of the old meeting" + "description": "The microsoft iCalUId meeting ID of the old meeting" } } }, @@ -2878,6 +2900,9 @@ "id": { "type": "string" }, + "iCalUId": { + "type": "string" + }, "attendees": { "type": "array", "items": { diff --git a/shared b/shared index 2c24047..e2c5f6a 160000 --- a/shared +++ b/shared @@ -1 +1 @@ -Subproject commit 2c2404713126cdb23c1729b63d8f2596600af3da +Subproject commit e2c5f6a98764cc26aaf91b29ddee6a33f83eb5b0 diff --git a/src/components/calendar-overview.tsx b/src/components/calendar-overview.tsx index 07f5375..5027b24 100644 --- a/src/components/calendar-overview.tsx +++ b/src/components/calendar-overview.tsx @@ -151,11 +151,16 @@ export function CalendarOverview() { return (doc.body.textContent || '').trim() } - const handleReschedule = async (selectedEventID: string) => { + const handleReschedule = async ( + selectedEventID: string, + ownerEmail: string, + ) => { if (!selectedEventID) return + if (!ownerEmail) return try { await slotifyClient.PostAPIRescheduleRequestSingle({ msftMeetingID: selectedEventID, + ownerEmail: ownerEmail, }) toast({ title: 'Reschedule sent', @@ -509,8 +514,14 @@ export function CalendarOverview() {