Files
lcbp3/frontend/types/migration.ts
T
admin 11984bfa29
CI Pipeline / build (push) Failing after 12m41s
Build and Deploy / deploy (push) Failing after 2m44s
260322:1648 Correct Coresspondence / Doing RFA / Correct CI
2026-03-22 16:48:12 +07:00

67 lines
1.4 KiB
TypeScript

export enum MigrationReviewStatus {
PENDING = 'PENDING',
APPROVED = 'APPROVED',
REJECTED = 'REJECTED',
}
export interface MigrationReviewQueueItem {
id: number;
documentNumber: string;
title?: string;
originalTitle?: string;
aiSuggestedCategory?: string;
aiConfidence?: number;
aiIssues?: Record<string, unknown>;
reviewReason?: string;
status: MigrationReviewStatus;
reviewedBy?: string;
reviewedAt?: string;
createdAt: string;
projectId?: number;
senderOrganizationId?: number;
receiverOrganizationId?: number;
receivedDate?: string;
issuedDate?: string;
remarks?: string;
aiSummary?: string;
extractedTags?: Record<string, unknown>;
tempAttachmentId?: number;
}
export interface CommitBatchItemDto {
queueId: number;
dto: Record<string, unknown>;
}
export interface CommitBatchDto {
items: CommitBatchItemDto[];
batchId: string;
}
export enum MigrationErrorType {
FILE_NOT_FOUND = 'FILE_NOT_FOUND',
AI_PARSE_ERROR = 'AI_PARSE_ERROR',
API_ERROR = 'API_ERROR',
DB_ERROR = 'DB_ERROR',
SECURITY = 'SECURITY',
UNKNOWN = 'UNKNOWN',
}
export interface MigrationErrorItem {
id: number;
batchId?: string;
documentNumber?: string;
errorType?: MigrationErrorType;
errorMessage?: string;
rawAiResponse?: string;
createdAt: string;
}
export interface PaginatedResponse<T> {
items: T[];
total: number;
page: number;
limit: number;
totalPages: number;
}