Add deeper reports: stage conversion, period compare, and deal drill-down.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user