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
@@ -0,0 +1,36 @@
import { IsInt, IsNotEmpty, IsOptional, IsString, } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class SetupBusinessDto {
@IsString()
@ApiProperty({ example: '01619684-aebc-47d4-acc4-2e912a3d9dce' })
danakSubscriptionId: string;
@IsString()
@ApiProperty()
name: string;
@IsString()
@ApiProperty()
slug: string;
@ApiProperty({ description: 'Mobile phone number' })
@IsNotEmpty()
@IsString()
phone!: string;
@ApiProperty({ description: 'First name', required: false })
@IsOptional()
@IsString()
firstName?: string;
@ApiProperty({ description: 'Last name', required: false })
@IsOptional()
@IsString()
lastName?: string;
@IsInt()
@ApiProperty()
maxCataloguesCount: number;
}