added product model dtos

This commit is contained in:
hannathkadher
2024-12-20 08:05:04 +04:00
parent 038f93f16a
commit 9bb59f0474

View File

@ -67,7 +67,17 @@ export class UpdateSpaceProductModelDto {
items: CreateProductItemModelDto[];
}
export class ModifyProductItemModelDto {
export class DeleteProductModelDto {
@ApiProperty({
description: 'ID of the product model',
example: 'product-uuid',
})
@IsNotEmpty()
@IsString()
productModelUuid: string;
}
export class ModifyProductModelDto {
@IsArray()
@ApiProperty({
description: 'Create the product model ',
@ -85,4 +95,12 @@ export class ModifyProductItemModelDto {
@ValidateNested({ each: true })
@IsOptional()
update?: UpdateSpaceProductModelDto[];
@IsArray()
@ApiProperty({
description: 'Update the product model ',
type: [UpdateSpaceProductModelDto],
})
@IsOptional()
delete?: DeleteProductModelDto[];
}