diff --git a/lib/api/index.ts b/lib/api/index.ts index eccb530..5fd50cf 100644 --- a/lib/api/index.ts +++ b/lib/api/index.ts @@ -2,18 +2,18 @@ export { login, register, resetPassword } from "./auth" export { sendForgotPasswordCode } from "./auth-extra" export { getChatSessionById, listChatMessages, listChatSessions } from "./chat" export { requestWithAuth } from "./client" -export { addComment, listComments, listCommentsByPost, toggleCommentLike } from "./comments" +export { addComment, listCommentsByPost, toggleCommentLike } from "./comments" export { getDisputeByOrderId, listDisputes } from "./disputes" export { sendEmailVerificationCode } from "./email" -export { isFavorited, listFavorites, listFavoritesByUser } from "./favorites" +export { isFavorited, listFavorites } from "./favorites" export { getFileById } from "./files" export { getGameById, listGames } from "./games" -export { addNotification, listNotifications, markNotificationAsRead } from "./notifications" +export { listNotifications, markNotificationAsRead } from "./notifications" export { getOrderById, listOrders, listOrdersByConsumer } from "./orders" export { getPlayerById, listPlayers, listPlayersByShop } from "./players" export { getPostById, listPosts, listPostsByAuthor, togglePostLike } from "./posts" export { listReviews, listReviewsByOrder, listReviewsByTargetUser } from "./reviews" export { getServiceById, listServices, listServicesByPlayer } from "./services" export { getShopById, getShopByOwnerId, listShops } from "./shops" -export { listTransactions } from "./transactions" -export { getCurrentUserForLogin, getUserById, listUsers } from "./users" +export { getWalletBalance, listWalletTransactions } from "./transactions" +export { getCurrentUserForLogin, getUserById } from "./users" diff --git a/lib/api/users.ts b/lib/api/users.ts index bd55a6a..a8e982a 100644 --- a/lib/api/users.ts +++ b/lib/api/users.ts @@ -1,12 +1,7 @@ import { httpJson } from "@/lib/api/http" import { isApiError } from "@/lib/errors" -import { mockUsers } from "@/lib/mock" import type { User } from "@/lib/types" -export function listUsers() { - return mockUsers -} - export async function getUserById(userId: string): Promise { try { return await httpJson(`/api/v1/users/${userId}`)