import { IsBoolean, IsOptional, IsString, MaxLength, MinLength, } from 'class-validator'; export class CreateMontifyConnectionDto { @IsString() @MinLength(2) @MaxLength(80) label!: string; @IsString() @MinLength(8) @MaxLength(300) baseUrl!: string; @IsString() @MinLength(8) @MaxLength(500) token!: string; @IsOptional() @IsString() @MaxLength(100) storeId?: string; @IsOptional() @IsBoolean() enabled?: boolean; } export class UpdateMontifyConnectionDto { @IsOptional() @IsString() @MinLength(2) @MaxLength(80) label?: string; @IsOptional() @IsString() @MinLength(8) @MaxLength(300) baseUrl?: string; @IsOptional() @IsString() @MaxLength(500) token?: string; @IsOptional() @IsString() @MaxLength(100) storeId?: string; @IsOptional() @IsBoolean() enabled?: boolean; }