feat(engagement): ✨ Update EngagementQuery DTO to support additional query parameters and modify response structure
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
dd50408432
commit
4516ffb282
1 changed files with 19 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ export class EngagementQueryDto {
|
|||
@Type(() => Number)
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
@Max(100)
|
||||
@Max(500)
|
||||
limit?: number = 20;
|
||||
}
|
||||
|
||||
|
|
@ -102,3 +102,21 @@ export class UserFlowQueryDto {
|
|||
@Max(50)
|
||||
limit?: number = 10;
|
||||
}
|
||||
|
||||
export class NavigationFlowsQueryDto {
|
||||
@IsString()
|
||||
from!: string;
|
||||
|
||||
@IsDateString()
|
||||
startDate!: string;
|
||||
|
||||
@IsDateString()
|
||||
endDate!: string;
|
||||
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
@Max(50)
|
||||
limit?: number = 10;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue