Files
dpage-api/src/modules/business/dto/setup-business.dto.ts
T
2026-03-15 10:57:16 +03:30

37 lines
813 B
TypeScript

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;
}