2024-04-08 18:51:46 +08:00
|
|
|
import type { NodeDefault } from '../../types'
|
|
|
|
import type { StartNodeType } from './types'
|
2025-04-24 16:29:58 +08:00
|
|
|
import { genNodeMetaData } from '@/app/components/workflow/utils'
|
|
|
|
import { BlockEnum } from '@/app/components/workflow/types'
|
2024-04-08 18:51:46 +08:00
|
|
|
|
2025-04-29 16:11:54 +08:00
|
|
|
const metaData = genNodeMetaData({
|
|
|
|
sort: 0.1,
|
|
|
|
type: BlockEnum.Start,
|
|
|
|
})
|
2024-04-08 18:51:46 +08:00
|
|
|
const nodeDefault: NodeDefault<StartNodeType> = {
|
2025-04-29 16:11:54 +08:00
|
|
|
metaData,
|
2024-04-08 18:51:46 +08:00
|
|
|
defaultValue: {
|
|
|
|
variables: [],
|
|
|
|
},
|
|
|
|
checkValid() {
|
|
|
|
return {
|
|
|
|
isValid: true,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
export default nodeDefault
|