/**
 * @ai-summary API client for onboarding endpoints
 */

import { apiClient } from '../../../core/api/client';
import { OnboardingPreferences, OnboardingStatus } from '../types/onboarding.types';

export const onboardingApi = {
  savePreferences: async (data: OnboardingPreferences) => {
    const response = await apiClient.post('/onboarding/preferences', data);
    return response.data;
  },

  completeOnboarding: async () => {
    const response = await apiClient.post('/onboarding/complete');
    return response.data;
  },

  getStatus: async () => {
    const response = await apiClient.get<OnboardingStatus>('/onboarding/status');
    return response.data;
  },
};
