21dc06829a
feat(products): implement bulk update for product categories feat(recipes): add servings input to WriteRecipePage and update MealPlanClient for servings management refactor(types): enhance Product and Category types with additional properties
13 lines
273 B
TypeScript
13 lines
273 B
TypeScript
import { IsArray, IsInt, IsNumber, IsOptional, ArrayMinSize } from 'class-validator';
|
|
|
|
export class BulkUpdateProductsDto {
|
|
@IsArray()
|
|
@ArrayMinSize(1)
|
|
@IsInt({ each: true })
|
|
ids: number[];
|
|
|
|
@IsOptional()
|
|
@IsNumber()
|
|
categoryId?: number | null;
|
|
}
|