Files
lcbp3/backend/src/modules/migration/dto/create-migration-error.dto.ts
T
admin 2f0d67d8b2
Build and Deploy / deploy (push) Successful in 7m11s
260317:0837 Refactor to n8n
2026-03-17 08:37:01 +07:00

26 lines
501 B
TypeScript

import { IsString, IsOptional, IsEnum } from 'class-validator';
import { MigrationErrorType } from '../entities/migration-error.entity';
export class CreateMigrationErrorDto {
@IsString()
@IsOptional()
batch_id?: string;
@IsString()
@IsOptional()
document_number?: string;
@IsString()
@IsOptional()
@IsEnum(MigrationErrorType)
error_type?: MigrationErrorType;
@IsString()
@IsOptional()
error_message?: string;
@IsString()
@IsOptional()
raw_ai_response?: string;
}