import {
  type SendEmailOtpPayload,
  type ConfirmEmailOtpPayload,
  type CompleteUserInfoPayload,
} from '../types/completionFormApiTypes';
import apiClient from '@/lib/apiClient';

// TODO: define generic type
export const sendEmailOtpApi = async (payload: SendEmailOtpPayload) => {
  return apiClient.post('/User/SendEmailOtp', payload);
};

export const confirmEmailOtpApi = async (payload: ConfirmEmailOtpPayload) => {
  return apiClient.post('/User/ConfirmEmailOtp', payload);
};

export const completeUserInformationApi = async (
  payload: CompleteUserInfoPayload,
) => {
  return apiClient.post('/User/CompleteUserInformation', payload);
};
