Migrate user api to ts

This commit is contained in:
2025-05-06 20:16:22 +02:00
parent 905df9f6dd
commit 66fe5e485b
3 changed files with 53 additions and 16 deletions

12
app/src/types/userApi.ts Normal file
View File

@@ -0,0 +1,12 @@
// UpdateProfileRequest represents a user profile update request
export interface UpdateProfileRequest {
displayName?: string;
email?: string;
currentPassword?: string;
newPassword?: string;
}
// DeleteAccountRequest represents a user account deletion request
export interface DeleteAccountRequest {
password: string;
}