Compare commits

..

2 Commits

Author SHA1 Message Date
e057f1409c Merge pull request 'Enhance startMeeting function to accept optional metadata and recording URL parameters' (#48) from feat/booking-panel into master
Reviewed-on: http://35.207.46.142/ATTUNE-HEART-THERAPY/website/pulls/48
2025-12-04 16:15:28 +00:00
iamkiddy
aecde6ce69 Enhance startMeeting function to accept optional metadata and recording URL parameters
Update the startMeeting function in appointments.ts to include optional parameters for metadata and recording URL. This enhancement allows for more flexible meeting initiation by enabling additional context and resources to be passed during the meeting start process.
2025-12-04 16:14:24 +00:00

View File

@ -738,7 +738,13 @@ export async function getJitsiMeetingInfo(id: string): Promise<JitsiMeetingInfo>
return data; return data;
} }
export async function startMeeting(id: string): Promise<Appointment> { export async function startMeeting(
id: string,
options?: {
metadata?: string;
recording_url?: string;
}
): Promise<Appointment> {
const tokens = getStoredTokens(); const tokens = getStoredTokens();
if (!tokens.access) { if (!tokens.access) {
throw new Error("Authentication required."); throw new Error("Authentication required.");
@ -750,6 +756,11 @@ export async function startMeeting(id: string): Promise<Appointment> {
"Content-Type": "application/json", "Content-Type": "application/json",
Authorization: `Bearer ${tokens.access}`, Authorization: `Bearer ${tokens.access}`,
}, },
body: JSON.stringify({
action: "start",
metadata: options?.metadata,
recording_url: options?.recording_url,
}),
}); });
const data = await parseResponse(response); const data = await parseResponse(response);