import type { User } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type ModifyUserInput = { userId: string user: { mobile_app_version: string } } const modifyUser = (http: HttpClient) => { return { query: ( input: ModifyUserInput, ): Promise, undefined, ApiError>> => { return http.put(`v3/users/${input.userId}`, { user: { ...input.user } }) }, } } export default modifyUser