Add lead funnel, stage conversion, and dwell reports to the report builder.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-18 17:29:58 +03:30
co-authored by Cursor
parent 2788103488
commit 968252ec2f
6 changed files with 944 additions and 27 deletions
@@ -97,6 +97,15 @@ export class ReportsController {
});
}
/** قیف لید، تبدیل بین‌مرحله‌ای و میانگین ماندن در ستون‌ها */
@Get('leads')
leads(@CurrentUser() user: Actor, @Query() query: ReportsQueryDto) {
return this.reportsService.leadsAnalytics(user, {
from: query.from,
to: query.to,
});
}
/** داشبورد صفحهٔ خانه برای همه باز است */
@Get('home')
@RequirePermission('reports', { reads: false })