project summaries addition
This commit is contained in:
@@ -212,3 +212,14 @@ export async function fetchSessionSummaries(sessionId) {
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export async function generateProjectSummary(projectId) {
|
||||
const res = await fetch(`${BASE_URL}/summaries/project/${projectId}/generate`, { method: 'POST' });
|
||||
if (!res.ok) throw new Error(`Failed to generate project summary: ${res.status}`);
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export async function fetchProjectOverviewSummary(projectId) {
|
||||
const res = await fetch(`${BASE_URL}/summaries/project/${projectId}/overview`);
|
||||
if (!res.ok) throw new Error(`Failed to fetch project overview: ${res.status}`);
|
||||
return res.json(); // null if none exists yet
|
||||
}
|
||||
Reference in New Issue
Block a user