export namespace AddLedger { export type NodeLevel = 0 | 1 | 2 | 3 export interface LedgerTreeNode { id?: string Id?: string pid?: string Pid?: string pids?: string Pids?: string parentId?: string parentIds?: string name?: string Name?: string level?: NodeLevel Level?: NodeLevel state?: number State?: number children?: LedgerTreeNode[] } export interface NormalizedTreeNode { id: string pid: string pids: string name: string level: NodeLevel children: NormalizedTreeNode[] raw: LedgerTreeNode } export interface DetailParams { id: string level: NodeLevel } export interface EngineeringForm { id?: string name: string province?: string city?: string description?: string } export interface ProjectForm { id?: string engineeringId?: string parentId?: string name: string area?: string description?: string } export interface EquipmentForm { id?: string engineeringId?: string projectId?: string parentId?: string name: string ndid: string mac: string dev_type?: string dev_model: string dev_access_method?: string node_id?: string node_process?: string upgrade?: number } export interface LineForm { id?: string line_id?: string deviceId?: string parentId?: string name: string line_no?: number conType?: number vol_grade?: number position?: string ct_ratio?: number ct2_ratio?: number pt_ratio?: number pt2_ratio?: number short_circuit_capacity?: number basic_capacity?: number protocol_capacity?: number dev_capacity?: number monitor_obj?: string is_govern?: number monitor_user?: string is_important?: number } export type NodeDetail = EngineeringForm | ProjectForm | EquipmentForm | LineForm export interface AvailableLineNoParams { deviceId: string lineId?: string } export interface DeleteNodeParams { id: string level: NodeLevel } export interface SelectOption { label: string value: T } }