Files
iddaai-be/src/modules/coupons/coupons.service.ts
T
2026-04-16 17:21:48 +03:00

39 lines
857 B
TypeScript
Executable File

import { Injectable, Logger } from "@nestjs/common";
import { PrismaService } from "../../database/prisma.service";
import { AiService } from "../../services/ai.service";
// [REMOVED V16 IMPORTS]
export type RiskLevel = "banko" | "safe" | "value";
export interface CouponMatch {
matchId: string;
matchName: string;
prediction: string;
confidence: number;
odd: number;
}
export interface GeneratedCoupon {
id: string;
matches: CouponMatch[];
totalOdd: number;
riskLevel: RiskLevel;
generatedAt: string;
}
@Injectable()
export class CouponsService {
private readonly logger = new Logger(CouponsService.name);
constructor(
private readonly prisma: PrismaService,
private readonly aiService: AiService,
) {}
/**
* Legacy history/history methods...
*/
getCouponHistory(_limit: number = 10) {
return [];
}
}