Add public profiles and cosmetic shop
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 7m10s

This commit is contained in:
2026-10-15 17:30:10 +05:00
parent 44e62cff2f
commit c541cc09b4
28 changed files with 1359 additions and 45 deletions

15
lib/profile-cosmetics.ts Normal file
View File

@@ -0,0 +1,15 @@
import "server-only";
import { admin, required } from "./supabase";
import {
cosmeticShopStateSchema,
type CosmeticShopState,
} from "@/shared/profile-cosmetics";
export async function profileCosmeticsState(
userId: string,
): Promise<CosmeticShopState> {
const result = required(
await admin().rpc("cosmetics_shop_state", { p_user: userId }),
);
return cosmeticShopStateSchema.parse(result);
}