first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { IsBoolean, IsOptional, IsString, IsUrl, MinLength } from 'class-validator';
|
||||
|
||||
export class UpdateEvolutionConfigDto {
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MinLength(2)
|
||||
nome?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsUrl({ protocols: ['http', 'https'], require_tld: false, require_protocol: true })
|
||||
base_url?: string;
|
||||
|
||||
/** Texto puro na entrada — cifrado (AES-256-GCM) antes de gravar em `api_key_cripto`. */
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MinLength(8)
|
||||
api_key?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
versao?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
ativo?: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user