- Fix class-validator decorators imported wrongly from @nestjs/common in 9 controllers - Create src/common/decorators/ re-export stubs (public + current-session) - Remove AiModule import from trade.module.ts (was pulling broken modules/ai into compile) - Fix dataquery.dto.ts: add ! to required property declarations - Fix ask.dto.ts: add ! to required property declarations - Remove non-existent metadata field from export.controller.ts consent insert - Add assumptions and outcomeReviews tables to schema.ts (with correct field types) - Add boolean import to drizzle-orm/pg-core imports in schema.ts
28 lines
529 B
TypeScript
28 lines
529 B
TypeScript
import { IsIn, IsNotEmpty, IsOptional, IsString, MaxLength, MinLength } from 'class-validator';
|
|
|
|
export class CompanyLookupDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@MinLength(2)
|
|
@MaxLength(200)
|
|
name!: string;
|
|
|
|
@IsOptional()
|
|
@IsIn(['ro', 'de', 'uk', 'us', 'all'])
|
|
country?: 'ro' | 'de' | 'uk' | 'us' | 'all';
|
|
}
|
|
|
|
export class SanctionsCheckDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@MinLength(2)
|
|
@MaxLength(300)
|
|
name!: string;
|
|
}
|
|
|
|
export class RawQueryDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@MaxLength(2000)
|
|
sql!: string;
|
|
}
|