Repository navigation
feat(account-deletion): getStatus(), cancel() and listForOffice() (Scaffald/SaaS#1313) - #37
Merged
Merged
Conversation
…affald/SaaS#1313) A deletion request now waits 14 days before the account-deletion-process job carries it out. getStatus() reads the open request (scheduledFor, canCancel) for the sign-in notice; cancel() withdraws it during the grace period; listForOffice() reads GET /v1/office/account-deletions (failed, partial, overdue and organization requests). RequestDeletionResponse gains requestedAt, scheduledFor and canCancel, which the routes now return. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to the Scaffald/SaaS PR for #1313 (account deletion is recorded but never carried out).
accountDeletion.getStatus()→GET /v1/account-deletion/status: the signed-in user's open request (scheduledFor,canCancel) ornull. The app shows it on sign-in.accountDeletion.cancel()→POST /v1/account-deletion/cancel: withdraw during the 14-day grace period.accountDeletion.listForOffice()→GET /v1/office/account-deletions: failed, partial, overdue and organization requests.RequestDeletionResponsegainsrequestedAt,scheduledFor,canCancel(additive).Bodies are bare, matching the routes. MSW handlers +
src/__tests__/account-deletion.test.ts(3 passing). Do not merge before the SaaS PR is reviewed.🤖 Generated with Claude Code