feat(migration): ADR-028 migration architecture refactor
- เพิ่ม POST /api/ai/jobs + GET /api/ai/jobs/:jobId endpoints (FR-001, FR-002) - เพิ่ม BullMQ Worker MigrateDocumentWorker + OCR auto-detect (FR-003, FR-004) - เพิ่ม cleanup-temp-files + expire-pending-reviews workers (FR-005, FR-005a/b) - สร้าง SQL deltas: tags, correspondence_tags, alter migration_review_queue (FR-006, ADR-009) - เพิ่ม MigrationReviewService.commitRecord() + SELECT FOR UPDATE (FR-007, FR-007a) - เพิ่ม CASL permission migration.commit + MigrationReviewController (FR-007) - สร้าง TagsModule + TagsService + TagsController (US3) - สร้าง Migration Review Queue frontend page + ReviewQueueTable (US2) - อัปเดต n8n guide: deterministic Idempotency-Key + token pre-flight (FR-001a, FR-010a/b) - สร้าง spec.md, plan.md, tasks.md, data-model.md, contracts/, quickstart.md - สร้าง ADR-028 document + validation-report.md (PASS 32/32 tasks, 173/173 tests)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// File: types/dto/migration/migration-review.dto.ts
|
||||
// Change Log:
|
||||
// - 2026-05-22: Initial creation for US2 - Staging Migration Review Commit Types
|
||||
// - 2026-05-22: Update to support hybrid ID (number | string) for projects and organizations per ADR-019
|
||||
|
||||
export interface CommitMigrationReviewDto {
|
||||
publicId: string;
|
||||
subject?: string;
|
||||
category?: string;
|
||||
projectId?: number | string;
|
||||
senderId?: number | string;
|
||||
receiverId?: number | string;
|
||||
issuedDate?: string;
|
||||
receivedDate?: string;
|
||||
tags?: string[];
|
||||
body?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user