690325:2132 Fixing Naming convention missunderstand #01
CI / CD Pipeline / build (push) Failing after 38m8s
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
2026-03-25 21:32:47 +07:00
parent 509fe7b597
commit d36d4b0bf4
32 changed files with 648 additions and 527 deletions
+11 -11
View File
@@ -22,15 +22,15 @@ export interface CirculationRouting {
updatedAt: string;
// Joined relations from API
assignee?: {
user_id: number;
userId: number;
username: string;
first_name?: string;
last_name?: string;
firstName?: string;
lastName?: string;
};
organization?: {
id: number;
organization_code: string;
organization_name: string;
organizationCode: string;
organizationName: string;
};
}
@@ -55,20 +55,20 @@ export interface Circulation {
correspondence?: {
uuid: string;
id?: number;
correspondence_number: string;
correspondenceNumber: string;
};
organization?: {
uuid: string;
id?: number;
organization_code: string;
organization_name: string;
organizationCode: string;
organizationName: string;
};
creator?: {
uuid: string;
user_id?: number;
userId?: number;
username: string;
first_name?: string;
last_name?: string;
firstName?: string;
lastName?: string;
};
}
+4 -4
View File
@@ -2,13 +2,13 @@
export interface CreateTagDto {
/** ID โครงการ (NULL = Global) */
project_id?: number | null;
projectId?: number | null;
/** ชื่อ Tag (เช่น 'URGENT') */
tag_name: string;
tagName: string;
/** รหัสสี หรือชื่อคลาสสำหรับ UI */
color_code?: string;
colorCode?: string;
/** คำอธิบาย */
description?: string;
@@ -18,7 +18,7 @@ export type UpdateTagDto = Partial<CreateTagDto>;
export interface SearchTagDto {
/** ID โครงการ (ใช้กรอง Tag ของแต่ละโปรเจกต์) */
project_id?: number;
projectId?: number;
/** คำค้นหา (ชื่อ Tag หรือ คำอธิบาย) */
search?: string;
@@ -7,13 +7,13 @@ export interface WorkflowDsl {
/** Allow extra properties for different DSL formats */
[key: string]: unknown;
states?: Record<string, WorkflowState>;
initial_state?: string;
initialState?: string;
}
export interface WorkflowState {
transitions?: WorkflowTransition[];
on_enter?: string[];
on_exit?: string[];
onEnter?: string[];
onExit?: string[];
}
export interface WorkflowTransition {
@@ -26,13 +26,13 @@ export interface WorkflowTransition {
// --- Create Definition ---
export interface CreateWorkflowDefinitionDto {
/** รหัสของ Workflow (เช่น 'RFA', 'CORRESPONDENCE') */
workflow_code: string;
workflowCode: string;
/** นิยาม Workflow (DSL JSON Object) */
dsl: WorkflowDsl;
/** เปิดใช้งานทันทีหรือไม่ (Default: true) */
is_active?: boolean;
isActive?: boolean;
}
// --- Update Definition ---
@@ -41,10 +41,10 @@ export type UpdateWorkflowDefinitionDto = Partial<CreateWorkflowDefinitionDto>;
// --- Evaluate (ประมวลผล/ตรวจสอบ State) ---
export interface EvaluateWorkflowDto {
/** รหัส Workflow */
workflow_code: string;
workflowCode: string;
/** สถานะปัจจุบัน */
current_state: string;
currentState: string;
/** Action ที่ต้องการทำ (เช่น 'SUBMIT', 'APPROVE') */
action: string;
@@ -56,8 +56,8 @@ export interface EvaluateWorkflowDto {
// --- Get Available Actions ---
export interface GetAvailableActionsDto {
/** รหัส Workflow */
workflow_code: string;
workflowCode: string;
/** สถานะปัจจุบัน */
current_state: string;
currentState: string;
}
+2 -2
View File
@@ -29,8 +29,8 @@ export interface RfaType {
export interface Tag {
id: number;
tag_name: string;
color_code?: string;
tagName: string;
colorCode?: string;
description?: string;
}