import odooApi from '~/common/libs/odooApi'; import { RegisterResApiProps, RegisterProps, ActivationTokenProps, ActivationTokenResApiProps, ActivationOtpProps, ActivationOtpResApiProps, ActivationReqProps, ActivationReqResApiProps, } from '~/common/types/auth'; const BASE_PATH = '/api/v1/user'; export const registerUser = async ( data: RegisterProps ): Promise => { const response = await odooApi('POST', `${BASE_PATH}/register`, data); return response; }; export const activationUserToken = async ( params: ActivationTokenProps ): Promise => { const response = await odooApi( 'POST', `${BASE_PATH}/activation-token`, params ); return response; }; export const activationUserOTP = async ( params: ActivationOtpProps ): Promise => { const response = await odooApi('POST', `${BASE_PATH}/activation-otp`, params); return response; }; export const activationReq = async ( params: ActivationReqProps ): Promise => { const response = await odooApi( 'POST', `${BASE_PATH}/activation-request`, params ); return response; };