Add deeper reports: stage conversion, period compare, and deal drill-down.

This commit is contained in:
2026-09-27 10:39:09 +03:30
parent d133c8ca34
commit 6a9e864b07
5 changed files with 889 additions and 60 deletions
+19 -1
View File
@@ -1,4 +1,5 @@
import { IsOptional, IsString } from 'class-validator';
import { IsIn, IsOptional, IsString } from 'class-validator';
import { REPORTS_DRILL_KINDS } from '@mento/shared';
export class ReportsQueryDto {
@IsOptional()
@@ -9,3 +10,20 @@ export class ReportsQueryDto {
@IsString()
to?: string;
}
export class ReportsDrilldownQueryDto {
@IsIn([...REPORTS_DRILL_KINDS])
kind!: (typeof REPORTS_DRILL_KINDS)[number];
@IsOptional()
@IsString()
id?: string;
@IsOptional()
@IsString()
from?: string;
@IsOptional()
@IsString()
to?: string;
}