Skip to content

feat(account-deletion): getStatus(), cancel() and listForOffice() (Scaffald/SaaS#1313) - #37

Merged
thinkclay merged 1 commit into
mainfrom
feat/1313-account-deletion-status-cancel
Oct 18, 2026
Merged

thinkclay merged 1 commit into
mainfrom
feat/1313-account-deletion-status-cancel

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

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) or null. 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.
  • RequestDeletionResponse gains requestedAt, 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

…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant