This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user