feat: AI commentary skeleton loading - separate async endpoint
Deploy Iddaai Frontend / build-and-deploy (push) Successful in 2m20s

This commit is contained in:
2026-05-17 16:46:53 +03:00
parent e744a62fc2
commit 71a6ed320c
8 changed files with 228 additions and 40 deletions
+9
View File
@@ -65,6 +65,14 @@ const checkHealth = () => {
});
};
const getCommentary = (matchId: string) => {
return apiRequest<ApiResponse<{ commentary: string | null }>>({
url: `/predictions/${matchId}/commentary`,
client: "core",
method: "get",
});
};
const generateSmartCoupon = (body: SmartCouponRequestDto) => {
return apiRequest<ApiResponse<SmartCouponResponseDto>>({
url: "/predictions/smart-coupon",
@@ -82,4 +90,5 @@ export const predictionsService = {
getHistory,
checkHealth,
generateSmartCoupon,
getCommentary,
};