diff --git a/src/features/projects/api.ts b/src/features/projects/api.ts index 8c90721..ee93020 100644 --- a/src/features/projects/api.ts +++ b/src/features/projects/api.ts @@ -11,6 +11,13 @@ export const projectsApi = { request<{ projectId: string; status: string }>('/projects', { method: 'POST', body: input }), update: (id: string, input: UpdateProjectInput) => request(`/projects/${encodeURIComponent(id)}`, { method: 'PUT', body: input }), + deleteReadiness: (id: string, signal?: AbortSignal) => + request<{ + projectId: string + canDelete: boolean + totalActiveTasks: number + activeTasks: Record + }>(`/projects/${encodeURIComponent(id)}/delete-readiness`, { signal }), delete: (id: string) => request<{ id: string; deleted: boolean }>(`/projects/${encodeURIComponent(id)}`, { method: 'DELETE' }), state: (id: string, signal?: AbortSignal) =>