From 2bc67e971addf4aa64ebca22941bd1b78cf431e4 Mon Sep 17 00:00:00 2001 From: GouJ Date: Fri, 25 Sep 2026 01:06:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=A5=E5=85=A5=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=B0=B1=E7=BB=AA=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/projects/api.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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) =>