260322:1648 Correct Coresspondence / Doing RFA / Correct CI
This commit is contained in:
@@ -26,5 +26,5 @@ export interface PendingTask {
|
||||
description: string;
|
||||
daysOverdue: number;
|
||||
url: string;
|
||||
priority: "HIGH" | "MEDIUM" | "LOW";
|
||||
priority: 'HIGH' | 'MEDIUM' | 'LOW';
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Vendored
+4
-4
@@ -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
|
||||
|
||||
@@ -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,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,6 +1,6 @@
|
||||
export interface RFAItem {
|
||||
id?: number;
|
||||
itemType: "SHOP" | "AS_BUILT";
|
||||
itemType: 'SHOP' | 'AS_BUILT';
|
||||
shopDrawingRevision?: {
|
||||
uuid?: string;
|
||||
revisionLabel?: string;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user