feat(FN-783): add supported overlap blocker repair API

This commit is contained in:
Phil Larson
2026-06-25 03:44:06 -07:00
parent e2a84d4dd6
commit 8cc5fd895e
8 changed files with 464 additions and 43 deletions

View File

@@ -458,6 +458,29 @@ export async function createTask(
}
}
export interface RepairOverlapBlockerResult {
taskId: string;
dryRun: boolean;
repaired: boolean;
statusCleared: boolean;
previousOverlapBlockedBy?: string;
currentOverlapBlockedBy?: string;
reason: string;
message: string;
task?: Task;
}
export function repairOverlapBlocker(
id: string,
options: { dryRun?: boolean; reason?: string } = {},
projectId?: string,
): Promise<RepairOverlapBlockerResult> {
return api<RepairOverlapBlockerResult>(withProjectId(`/tasks/${id}/repair-overlap-blocker`, projectId), {
method: "POST",
body: JSON.stringify(options),
});
}
export function updateTask(
id: string,
updates: {