feat: ability to edit suggestions when accepting

This commit is contained in:
2026-02-04 21:37:57 -08:00
parent 729f410443
commit 800b9f6c2d
5 changed files with 383 additions and 11 deletions
@@ -49,6 +49,10 @@ export class SuggestionService {
return firstValueFrom(this.api.put<Suggestion>(`/suggestions/${id}/accept`, {}));
}
async acceptSuggestionWithEdits(id: string, data: any): Promise<Suggestion> {
return firstValueFrom(this.api.put<Suggestion>(`/suggestions/${id}/accept-with-edits`, data));
}
async declineSuggestion(id: string, data: DeclineSuggestionDto): Promise<Suggestion> {
return firstValueFrom(this.api.put<Suggestion>(`/suggestions/${id}/decline`, data));
}