조건 그룹핑 구현

This commit is contained in:
hyeonsu
2025-09-15 11:17:46 +09:00
parent dbad9bbc0c
commit 41f40ac216
3 changed files with 819 additions and 385 deletions

View File

@@ -5,17 +5,19 @@ import { apiClient, ApiResponse } from "./client";
// 조건부 연결 관련 타입들
export interface ConditionControl {
triggerType: "insert" | "update" | "delete" | "insert_update";
conditionTree: ConditionNode;
conditionTree: ConditionNode | ConditionNode[] | null;
}
export interface ConditionNode {
type: "group" | "condition";
operator?: "AND" | "OR";
children?: ConditionNode[];
id: string; // 고유 ID
type: "condition" | "group-start" | "group-end";
field?: string;
operator_type?: "=" | "!=" | ">" | "<" | ">=" | "<=" | "LIKE";
value?: any;
dataType?: string;
logicalOperator?: "AND" | "OR"; // 다음 조건과의 논리 연산자
groupId?: string; // 그룹 ID (group-start와 group-end가 같은 groupId를 가짐)
groupLevel?: number; // 중첩 레벨 (0, 1, 2, ...)
}
export interface ConnectionCategory {