first (part 3: src directory)
Deploy Iddaai Backend / build-and-deploy (push) Successful in 33s

This commit is contained in:
2026-04-16 15:12:27 +03:00
parent 2f0b85a0c7
commit 182f4aae16
125 changed files with 22552 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
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 [];
}
}