690325:2132 Fixing Naming convention missunderstand #01
This commit is contained in:
@@ -4,22 +4,22 @@ import { MigrationErrorType } from '../entities/migration-error.entity';
|
||||
export class CreateMigrationErrorDto {
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
batch_id?: string;
|
||||
batchId?: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
document_number?: string;
|
||||
documentNumber?: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
@IsEnum(MigrationErrorType)
|
||||
error_type?: MigrationErrorType;
|
||||
errorType?: MigrationErrorType;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
error_message?: string;
|
||||
errorMessage?: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
raw_ai_response?: string;
|
||||
rawAiResponse?: string;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
export class EnqueueMigrationDto {
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
document_number!: string;
|
||||
documentNumber!: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
@@ -18,7 +18,7 @@ export class EnqueueMigrationDto {
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
original_subject?: string;
|
||||
originalSubject?: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
@@ -30,27 +30,27 @@ export class EnqueueMigrationDto {
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
ai_summary?: string;
|
||||
aiSummary?: string;
|
||||
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
project_id?: number;
|
||||
projectId?: number;
|
||||
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
sender_org_id?: number;
|
||||
senderOrgId?: number;
|
||||
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
receiver_org_id?: number;
|
||||
receiverOrgId?: number;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
issued_date?: string;
|
||||
issuedDate?: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
received_date?: string;
|
||||
receivedDate?: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
@@ -58,18 +58,18 @@ export class EnqueueMigrationDto {
|
||||
|
||||
@IsArray()
|
||||
@IsOptional()
|
||||
extracted_tags?: Record<string, string>[];
|
||||
extractedTags?: Record<string, string>[];
|
||||
|
||||
@IsOptional()
|
||||
details?: Record<string, unknown>;
|
||||
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
temp_attachment_id?: number;
|
||||
tempAttachmentId?: number;
|
||||
|
||||
@IsBoolean()
|
||||
@IsOptional()
|
||||
is_valid?: boolean;
|
||||
isValid?: boolean;
|
||||
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
@@ -77,5 +77,5 @@ export class EnqueueMigrationDto {
|
||||
|
||||
@IsArray()
|
||||
@IsOptional()
|
||||
ai_issues?: Record<string, unknown>[];
|
||||
aiIssues?: Record<string, unknown>[];
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
export class ImportCorrespondenceDto {
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
document_number!: string;
|
||||
documentNumber!: string;
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
@@ -21,26 +21,26 @@ export class ImportCorrespondenceDto {
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
source_file_path?: string;
|
||||
sourceFilePath?: string;
|
||||
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
temp_attachment_id?: number;
|
||||
tempAttachmentId?: number;
|
||||
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
ai_confidence?: number;
|
||||
aiConfidence?: number;
|
||||
|
||||
@IsOptional()
|
||||
ai_issues?: Record<string, unknown>[];
|
||||
aiIssues?: Record<string, unknown>[];
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
migrated_by!: string; // "SYSTEM_IMPORT"
|
||||
migratedBy!: string; // "SYSTEM_IMPORT"
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
batch_id!: string;
|
||||
batchId!: string;
|
||||
|
||||
@IsObject()
|
||||
@IsOptional()
|
||||
@@ -48,31 +48,31 @@ export class ImportCorrespondenceDto {
|
||||
|
||||
@IsNumber()
|
||||
@IsNotEmpty()
|
||||
project_id!: number;
|
||||
projectId!: number;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
issued_date?: string;
|
||||
issuedDate?: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
received_date?: string;
|
||||
receivedDate?: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
document_date?: string;
|
||||
documentDate?: string;
|
||||
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
discipline_id?: number;
|
||||
disciplineId?: number;
|
||||
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
sender_id?: number;
|
||||
senderId?: number;
|
||||
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
receiver_id?: number;
|
||||
receiverId?: number;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
|
||||
Reference in New Issue
Block a user