260224:1606 20260224:1600 V1.8.0
All checks were successful
Build and Deploy / deploy (push) Successful in 6m25s

This commit is contained in:
admin
2026-02-24 16:06:15 +07:00
parent 97cc41f489
commit 158179d4a5
255 changed files with 5339 additions and 2094 deletions

View File

@@ -7,7 +7,7 @@ export interface CreateContractDto {
endDate?: string;
}
export interface UpdateContractDto extends Partial<CreateContractDto> {}
export type UpdateContractDto = Partial<CreateContractDto>;
export interface SearchContractDto {
search?: string;

View File

@@ -29,7 +29,7 @@ export interface CreateCorrespondenceDto {
dueDate?: string;
/** ข้อมูล JSON เฉพาะประเภท (เช่น RFI question, RFA details) */
details?: Record<string, any>;
details?: Record<string, unknown>;
/** เอกสารภายในหรือไม่ (True = ภายใน) */
isInternal?: boolean;

View File

@@ -25,7 +25,7 @@ export interface CreateContractDrawingDto {
}
// --- Update (Partial) ---
export interface UpdateContractDrawingDto extends Partial<CreateContractDrawingDto> {}
export type UpdateContractDrawingDto = Partial<CreateContractDrawingDto>;
// --- Search ---
export interface SearchContractDrawingDto {

View File

@@ -9,14 +9,14 @@ export interface CreateJsonSchemaDto {
version?: number;
/** โครงสร้าง JSON Schema (Standard Format) */
schemaDefinition: Record<string, any>;
schemaDefinition: Record<string, unknown>;
/** สถานะการใช้งาน */
isActive?: boolean;
}
// --- Update (Partial) ---
export interface UpdateJsonSchemaDto extends Partial<CreateJsonSchemaDto> {}
export type UpdateJsonSchemaDto = Partial<CreateJsonSchemaDto>;
// --- Search ---
export interface SearchJsonSchemaDto {
@@ -31,4 +31,4 @@ export interface SearchJsonSchemaDto {
/** จำนวนต่อหน้า (Default: 20) */
limit?: number;
}
}

View File

@@ -0,0 +1,24 @@
// File: src/types/dto/master/correspondence-type.dto.ts
export interface CreateCorrespondenceTypeDto {
/** ชื่อประเภทเอกสาร (เช่น 'Letter', 'RFA') */
typeName: string;
/** รหัสประเภทเอกสาร (เช่น 'LTR', 'RFA') */
typeCode: string;
/** มีการออกเลขเอกสารอัตโนมัติหรือไม่ */
hasNumbering?: boolean;
/** สถานะการใช้งาน (Default: true) */
isActive?: boolean;
}
export type UpdateCorrespondenceTypeDto = Partial<CreateCorrespondenceTypeDto>;
export interface SearchCorrespondenceTypeDto {
search?: string;
isActive?: boolean;
page?: number;
limit?: number;
}

View File

@@ -0,0 +1,21 @@
// File: src/types/dto/master/rfa-type.dto.ts
export interface CreateRfaTypeDto {
/** ชื่อประเภท RFA (เช่น 'Drawing Approval') */
typeName: string;
/** รหัสประเภท RFA (เช่น 'DWG', 'MAT') */
typeCode: string;
/** สถานะการใช้งาน (Default: true) */
isActive?: boolean;
}
export type UpdateRfaTypeDto = Partial<CreateRfaTypeDto>;
export interface SearchRfaTypeDto {
search?: string;
isActive?: boolean;
page?: number;
limit?: number;
}

View File

@@ -8,7 +8,7 @@ export interface CreateTagDto {
description?: string;
}
export interface UpdateTagDto extends Partial<CreateTagDto> {}
export type UpdateTagDto = Partial<CreateTagDto>;
export interface SearchTagDto {
/** คำค้นหา (ชื่อ Tag หรือ คำอธิบาย) */
@@ -19,4 +19,4 @@ export interface SearchTagDto {
/** จำนวนรายการต่อหน้า (Default: 20) */
limit?: number;
}
}

View File

@@ -1,6 +1,15 @@
import type { AuditLog } from '@/lib/services/audit-log.service';
export interface AuditErrorRecord {
code: string;
message: string;
timestamp: string;
context?: Record<string, unknown>;
}
export interface NumberingMetrics {
audit: any[]; // Replace with specific AuditLog type if available
errors: any[]; // Replace with specific ErrorLog type
audit: AuditLog[];
errors: AuditErrorRecord[];
}
export interface ManualOverrideDto {

View File

@@ -13,7 +13,7 @@ export interface CreateProjectDto {
}
// --- Update (Partial) ---
export interface UpdateProjectDto extends Partial<CreateProjectDto> {}
export type UpdateProjectDto = Partial<CreateProjectDto>;
// --- Search ---
export interface SearchProjectDto {
@@ -28,4 +28,4 @@ export interface SearchProjectDto {
/** จำนวนรายการต่อหน้า (Default: 20) */
limit?: number;
}
}

View File

@@ -37,7 +37,7 @@ export interface CreateRfaDto {
}
// --- Update (Partial) ---
export interface UpdateRfaDto extends Partial<CreateRfaDto> {}
export type UpdateRfaDto = Partial<CreateRfaDto>;
// --- Search ---
export interface SearchRfaDto {

View File

@@ -25,7 +25,7 @@ export interface CreateTransmittalItemDto {
}
// --- Update (Partial) ---
export interface UpdateTransmittalDto extends Partial<CreateTransmittalDto> {}
export type UpdateTransmittalDto = Partial<CreateTransmittalDto>;
// --- Search ---
export interface SearchTransmittalDto {

View File

@@ -13,13 +13,13 @@ export interface CreateUserDto {
}
// --- Update User ---
export interface UpdateUserDto extends Partial<CreateUserDto> {}
export type UpdateUserDto = Partial<CreateUserDto>;
// --- Assign Role ---
export interface AssignRoleDto {
userId: number;
roleId: number;
// Scope (Optional)
organizationId?: number;
projectId?: number;
@@ -32,4 +32,4 @@ export interface UpdatePreferenceDto {
notifyLine?: boolean;
digestMode?: boolean;
uiTheme?: 'light' | 'dark' | 'system';
}
}

View File

@@ -1,19 +1,42 @@
// File: src/types/dto/workflow-engine/workflow-engine.dto.ts
/** DSL JSON structure representing a Workflow definition.
* Uses an open-ended signature to support diverse workflow types (YAML-derived, visual, etc.)
*/
export interface WorkflowDsl {
/** Allow extra properties for different DSL formats */
[key: string]: unknown;
states?: Record<string, WorkflowState>;
initial_state?: string;
}
export interface WorkflowState {
transitions?: WorkflowTransition[];
on_enter?: string[];
on_exit?: string[];
}
export interface WorkflowTransition {
action: string;
target: string;
conditions?: string[];
roles?: string[];
}
// --- Create Definition ---
export interface CreateWorkflowDefinitionDto {
/** รหัสของ Workflow (เช่น 'RFA', 'CORRESPONDENCE') */
workflow_code: string;
/** นิยาม Workflow (DSL JSON Object) */
dsl: any;
dsl: WorkflowDsl;
/** เปิดใช้งานทันทีหรือไม่ (Default: true) */
is_active?: boolean;
}
// --- Update Definition ---
export interface UpdateWorkflowDefinitionDto extends Partial<CreateWorkflowDefinitionDto> {}
export type UpdateWorkflowDefinitionDto = Partial<CreateWorkflowDefinitionDto>;
// --- Evaluate (ประมวลผล/ตรวจสอบ State) ---
export interface EvaluateWorkflowDto {
@@ -27,7 +50,7 @@ export interface EvaluateWorkflowDto {
action: string;
/** Context ข้อมูลเพิ่มเติม (เช่น User ID, Data) */
context?: Record<string, any>;
context?: Record<string, unknown>;
}
// --- Get Available Actions ---
@@ -37,4 +60,4 @@ export interface GetAvailableActionsDto {
/** สถานะปัจจุบัน */
current_state: string;
}
}