
import { generateUUID } from './index'

// 节点公共属性
const defaultNodesOptions = {
  tag: '1',
  custom: null,
  desc: undefined,
  parent: null,
  children: null,
  status: '1',
  remark: null
}
const powerNodes = {
  type: '5',
  width: 150,
  height: 100
}

export const nodes = [
  {
    id: generateUUID(),
    name: '读取资源(非结构化)',
    mark: 'readUnstructuredDataSourceNodeInterceptor',
    ...powerNodes,
    ...defaultNodesOptions
  },
  {
    id: generateUUID(),
    name: '读取资源',
    mark: 'readDataResourceNodeInterceptor',
    ...powerNodes,
    ...defaultNodesOptions
  },
  {
    id: generateUUID(),
    name: '大模型训练',
    mark: 'modelTrainingNodeInterceptor',
    ...powerNodes,
    ...defaultNodesOptions
  },
  {
    id: generateUUID(),
    name: '结束',
    type: '1',
    width: 50,
    height: 50,
    mark: 'endNodeInterceptor',
    ...defaultNodesOptions
  },
  {
    id: generateUUID(),
    name: '开始',
    type: '1',
    width: 50,
    height: 50,
    mark: 'beginNodeInterceptor',
    ...defaultNodesOptions
  }
]
