fix(products): add clear search button, active filters bar, and fix suitableFor query dto validation
This commit is contained in:
1 parent
a62bfb77b3
commit
0da7cf14e8
13 files changed
+11542
-11342
No files matched your search
@@ -13,8 +13,20 @@ export class AdminQueryDto extends PaginationDto {
|
||||
@IsString()
|
||||
categoryId?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'فیلتر بر اساس گونه هدف محصول' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
suitableFor?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'فیلتر بر اساس وضعیت' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
status?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'وضعیت موجودی کالا' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
stockStatus?: string;
|
||||
}
|
||||
|
||||
export class AdminProductQueryDto extends AdminQueryDto {}
|
||||
Reference in new issue
Block a user