260322:1648 Correct Coresspondence / Doing RFA / Correct CI
CI Pipeline / build (push) Failing after 12m41s
Build and Deploy / deploy (push) Failing after 2m44s

This commit is contained in:
admin
2026-03-22 16:48:12 +07:00
parent e5deedb42e
commit 11984bfa29
683 changed files with 105251 additions and 29068 deletions
+1 -1
View File
@@ -26,5 +26,5 @@ export interface PendingTask {
description: string;
daysOverdue: number;
url: string;
priority: "HIGH" | "MEDIUM" | "LOW";
priority: 'HIGH' | 'MEDIUM' | 'LOW';
}
+1 -1
View File
@@ -74,7 +74,7 @@ export interface Drawing {
}
export interface CreateDrawingDto {
drawingType: "CONTRACT" | "SHOP";
drawingType: 'CONTRACT' | 'SHOP';
drawingNumber: string;
title: string;
disciplineId: number;
@@ -2,12 +2,12 @@
export interface SearchCirculationDto {
/** ค้นหาจาก Subject หรือ No. */
search?: string;
search?: string;
/** OPEN, COMPLETED, CANCELLED */
status?: string;
status?: string;
page?: number;
limit?: number;
}
}
@@ -8,4 +8,4 @@ export interface AddReferenceDto {
export interface RemoveReferenceDto {
/** ID ของเอกสารที่ต้องการลบการอ้างอิง */
targetId: number;
}
}
@@ -1,10 +1,10 @@
// File: src/types/dto/correspondence/search-correspondence.dto.ts
export interface SearchCorrespondenceDto {
search?: string; // ค้นหาจาก Title หรือ Number
typeId?: number; // กรองตามประเภทเอกสาร
projectId?: number; // กรองตามโครงการ
statusId?: number; // กรองตามสถานะ (จาก Revision ปัจจุบัน)
search?: string; // ค้นหาจาก Title หรือ Number
typeId?: number; // กรองตามประเภทเอกสาร
projectId?: number; // กรองตามโครงการ
statusId?: number; // กรองตามสถานะ (จาก Revision ปัจจุบัน)
revisionStatus?: 'CURRENT' | 'ALL' | 'OLD'; // กรองตามสถานะ Revision
// เพิ่มเติมสำหรับการแบ่งหน้า (Pagination)
@@ -4,13 +4,13 @@ export type WorkflowAction = 'APPROVE' | 'REJECT' | 'RETURN' | 'ACKNOWLEDGE' | '
export interface WorkflowActionDto {
/** การกระทำ (Approve, Reject, etc.) */
action: WorkflowAction;
action: WorkflowAction;
/** ความคิดเห็นเพิ่มเติม */
comments?: string;
/** * ลำดับที่ต้องการส่งกลับ (ใช้กรณี action = RETURN)
/** * ลำดับที่ต้องการส่งกลับ (ใช้กรณี action = RETURN)
* เช่น ส่งกลับไป step 1
*/
returnToSequence?: number;
}
}
@@ -35,6 +35,6 @@ export interface SearchAsBuiltDrawingDto {
projectUuid: string;
search?: string;
page?: number; // Default: 1
limit?: number; // Default: 20
page?: number; // Default: 1
limit?: number; // Default: 20
}
@@ -36,6 +36,6 @@ export interface SearchContractDrawingDto {
mapCatId?: number;
search?: string; // ค้นหาจาก Title หรือ Number
page?: number; // Default: 1
limit?: number; // Default: 20
page?: number; // Default: 1
limit?: number; // Default: 20
}
@@ -35,6 +35,6 @@ export interface SearchShopDrawingDto {
subCategoryId?: number;
search?: string;
page?: number; // Default: 1
limit?: number; // Default: 20
page?: number; // Default: 1
limit?: number; // Default: 20
}
+1 -1
View File
@@ -11,4 +11,4 @@ export interface CreateDisciplineDto {
codeNameEn?: string;
isActive?: boolean;
}
}
@@ -7,4 +7,4 @@ export interface SaveNumberFormatDto {
/** รูปแบบ Template เช่น '{ORG}-{TYPE}-{DISCIPLINE}-{SEQ:4}' */
formatTemplate: string;
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ export interface CreateSubTypeDto {
/** เลขรหัสสำหรับ Running Number (เช่น '11') */
subTypeNumber?: string;
}
}
@@ -6,4 +6,4 @@ export interface SetMaintenanceDto {
/** เหตุผลที่ปิดปรับปรุง (แสดงให้ User เห็น) */
reason?: string;
}
}
@@ -36,4 +36,4 @@ export interface SearchNotificationDto {
/** กรอง: อ่านแล้ว (true) / ยังไม่อ่าน (false) */
isRead?: boolean;
}
}
@@ -15,4 +15,4 @@ export interface SearchQueryDto {
/** จำนวนต่อหน้า (Default: 20) */
limit?: number;
}
}
+3 -3
View File
@@ -11,7 +11,7 @@ export interface MigrationReviewQueueItem {
originalTitle?: string;
aiSuggestedCategory?: string;
aiConfidence?: number;
aiIssues?: any;
aiIssues?: Record<string, unknown>;
reviewReason?: string;
status: MigrationReviewStatus;
reviewedBy?: string;
@@ -24,13 +24,13 @@ export interface MigrationReviewQueueItem {
issuedDate?: string;
remarks?: string;
aiSummary?: string;
extractedTags?: any;
extractedTags?: Record<string, unknown>;
tempAttachmentId?: number;
}
export interface CommitBatchItemDto {
queueId: number;
dto: Record<string, any>;
dto: Record<string, unknown>;
}
export interface CommitBatchDto {
+4 -4
View File
@@ -1,14 +1,14 @@
// File: types/next-auth.d.ts
import NextAuth, { DefaultSession } from "next-auth"
import _NextAuth, { DefaultSession } from 'next-auth';
declare module "next-auth" {
declare module 'next-auth' {
interface Session {
user: {
id: string;
username: string; // ✅ Added
role: string;
organizationId?: number;
} & DefaultSession["user"]
} & DefaultSession['user'];
accessToken?: string;
refreshToken?: string;
error?: string;
@@ -24,7 +24,7 @@ declare module "next-auth" {
}
}
declare module "next-auth/jwt" {
declare module 'next-auth/jwt' {
interface JWT {
id: string;
username: string; // ✅ Added
+1 -1
View File
@@ -3,7 +3,7 @@ export interface Notification {
notificationId?: number; // Excluded from API responses (ADR-019)
title: string;
message: string;
type: "INFO" | "SUCCESS" | "WARNING" | "ERROR";
type: 'INFO' | 'SUCCESS' | 'WARNING' | 'ERROR';
isRead: boolean;
createdAt: string;
link?: string;
+1 -1
View File
@@ -1,5 +1,5 @@
// Re-export types from API file to keep single source of truth
export type { NumberingTemplate, NumberSequence } from "@/lib/api/numbering";
export type { NumberingTemplate, NumberSequence } from '@/lib/api/numbering';
export interface CreateTemplateDto {
documentTypeId: string;
+1 -1
View File
@@ -1,6 +1,6 @@
export interface RFAItem {
id?: number;
itemType: "SHOP" | "AS_BUILT";
itemType: 'SHOP' | 'AS_BUILT';
shopDrawingRevision?: {
uuid?: string;
revisionLabel?: string;
+1 -1
View File
@@ -1,7 +1,7 @@
export interface SearchResult {
uuid: string;
id?: number; // Excluded from API responses (ADR-019)
type: "correspondence" | "rfa" | "drawing";
type: 'correspondence' | 'rfa' | 'drawing';
title: string;
description?: string;
status: string;
+2 -2
View File
@@ -1,9 +1,9 @@
export type WorkflowType = "CORRESPONDENCE" | "RFA" | "DRAWING";
export type WorkflowType = 'CORRESPONDENCE' | 'RFA' | 'DRAWING';
export interface WorkflowStep {
stepId?: string;
stepName: string;
stepType: "APPROVAL" | "REVIEW" | "ENDORSEMENT";
stepType: 'APPROVAL' | 'REVIEW' | 'ENDORSEMENT';
approverRoleId?: number;
approverRoleName?: string;
nextStepSuccess?: string;