catalogues count

This commit is contained in:
2026-03-15 10:57:16 +03:30
parent 3c5c0ab2da
commit f4c73732cb
5 changed files with 17 additions and 8 deletions
@@ -1,4 +1,4 @@
import { IsNotEmpty, IsOptional, IsString, } from 'class-validator';
import { IsInt, IsNotEmpty, IsOptional, IsString, } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class SetupBusinessDto {
@@ -29,4 +29,8 @@ export class SetupBusinessDto {
@IsString()
lastName?: string;
@IsInt()
@ApiProperty()
maxCataloguesCount: number;
}
@@ -1,4 +1,4 @@
import { PartialType } from '@nestjs/swagger';
import { SetupBusinessDto } from './create-business.dto';
import { SetupBusinessDto } from './setup-business.dto';
export class UpdateBusinessDto extends PartialType(SetupBusinessDto) { }