import type { User } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type UserInput = { user: { address?: string | null birthdate?: Date | null city?: string | null civility?: string | null country?: string | null confirmation_code?: string | null email?: string | null first_name?: string | null is_delete?: boolean | null last_name?: string | null newsletter?: boolean | null nationality?: string | null phone?: string | null postal_code?: string | null owner_general_rental_condition_signed?: boolean | null terms_of_service_signed?: boolean | null unverified_email?: string | null unverified_phone?: string | null } } const modifyUserInfo = (http: HttpClient) => { return { query: ( input: UserInput, ): Promise, undefined, ApiError>> => { return http.put('v3/user/informations', input) }, } } export default modifyUserInfo