feat: add generated code

This commit is contained in:
aid-orchestrator
2026-05-12 09:31:32 +00:00
parent 62b4b052a3
commit 12179f2160
51 changed files with 1143 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { IsString, IsNotEmpty, IsNumber, IsBoolean, IsOptional } from 'class-validator';
import { Type } from 'class-transformer';
import { ApiProperty } from '@nestjs/swagger';
export class CreateStockStatusDto {
@ApiProperty({ description: 'ID товара' })
@IsString()
@IsNotEmpty()
productId: string;
@ApiProperty({ description: 'Текущее количество на складе', required: false })
@IsNumber()
@IsOptional()
@Type(() => Number)
quantity?: number;
@ApiProperty({ description: 'Признак наличия товара', required: false })
@IsBoolean()
@IsOptional()
inStock?: boolean;
@ApiProperty({ description: 'Дата последнего обновления', required: false })
@IsOptional()
updatedAt?: Date;
}

View File

@@ -0,0 +1,4 @@
import { PartialType } from '@nestjs/mapped-types';
import { CreateStockStatusDto } from './create-stock-status.dto';
export class UpdateStockStatusDto extends PartialType(CreateStockStatusDto) {}