/**
 * @ai-summary API client for user profile endpoints
 */

import { apiClient } from '../../../core/api/client';
import {
  UserProfile,
  UpdateProfileRequest,
  DeletionStatus,
  RequestDeletionRequest,
  RequestDeletionResponse,
  CancelDeletionResponse,
} from '../types/profile.types';

export const profileApi = {
  getProfile: () => apiClient.get<UserProfile>('/user/profile'),
  updateProfile: (data: UpdateProfileRequest) => apiClient.put<UserProfile>('/user/profile', data),
  requestDeletion: (data: RequestDeletionRequest) => apiClient.post<RequestDeletionResponse>('/user/delete', data),
  cancelDeletion: () => apiClient.post<CancelDeletionResponse>('/user/cancel-deletion'),
  getDeletionStatus: () => apiClient.get<DeletionStatus>('/user/deletion-status'),
};
