/**
 * @ai-summary API client for user preferences endpoints
 * @ai-context Handles unit system, currency, and timezone preferences sync
 */

import { apiClient } from '../../../core/api/client';
import { UserPreferences, UpdatePreferencesRequest } from '../types/preferences.types';

export const preferencesApi = {
  getPreferences: () => apiClient.get<UserPreferences>('/user/preferences'),
  updatePreferences: (data: UpdatePreferencesRequest) =>
    apiClient.put<UserPreferences>('/user/preferences', data),
};
