update user
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-22 11:51:58 +03:30
parent ee1655493c
commit 4f2bf864e4
5 changed files with 102 additions and 6 deletions
@@ -5,6 +5,7 @@ import type {
CreateUserResponse,
CreateUserType,
GetCustomersResponse,
GetUserGroupsForUserResponse,
GetUsersParams,
ImportUsersResponse,
SearchUserByPhoneResponse,
@@ -40,6 +41,13 @@ export const updateUser = async (userId: string, params: UpdateUserType) => {
return data;
};
export const getUserGroups = async (userId: string) => {
const { data } = await axios.get<GetUserGroupsForUserResponse>(
`/admin/users/${userId}/groups`,
);
return data;
};
export const createUserAddress = async (
userId: string,
params: CreateUserAddressType,