feat: add AI recommendations flow for tenders

Implement company AI onboarding/recommendation models, services, repository, and tender UI integration with supporting tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
AmirReza Jamali
2026-06-16 11:47:52 +03:30
parent 83b32549ce
commit 50e4f43738
34 changed files with 2558 additions and 112 deletions
+14
View File
@@ -0,0 +1,14 @@
/// Backend endpoints that power AI-based tender recommendations.
///
/// The app talks only to the backend; it gathers company data, forwards it to
/// the AI service and returns results in the standard API envelope. The
/// `company_id` is read from the JWT, so neither endpoint takes a request body.
class CompanyAiApi {
CompanyAiApi._();
/// Registers the company with the AI service. Asynchronous on the AI side.
static const String onboarding = '/api/v1/onboarding';
/// Fetches ranked AI tender recommendations for the company.
static const String recommend = '/api/v1/recommend';
}