fix: align ForkInfo type with backend schema, remove redundant fork fields

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-02-25 00:06:53 -05:00
parent db444c83e0
commit 023a4ab211

View File

@@ -140,10 +140,11 @@ export interface ProceduralTreeStructure {
} }
export interface ForkInfo { export interface ForkInfo {
parent_tree_id: string parent_tree_id: string | null
parent_tree_name: string | null root_tree_id: string | null
fork_depth: number
fork_reason: string | null fork_reason: string | null
fork_depth: number
parent_updated_at: string | null
has_parent_updates: boolean has_parent_updates: boolean
} }
@@ -173,8 +174,6 @@ export interface Tree {
updated_at: string updated_at: string
usage_count: number usage_count: number
fork_info?: ForkInfo | null fork_info?: ForkInfo | null
parent_tree_id?: string | null
fork_depth?: number
} }
export interface TreeListItem { export interface TreeListItem {
@@ -198,8 +197,6 @@ export interface TreeListItem {
created_at: string created_at: string
updated_at: string updated_at: string
visibility: 'private' | 'team' | 'link' | 'public' visibility: 'private' | 'team' | 'link' | 'public'
fork_depth?: number
parent_tree_id?: string | null
} }
export interface TreeCreate { export interface TreeCreate {