2024-04-08 18:51:46 +08:00
|
|
|
import type { NodeDefault } from '../../types'
|
|
|
|
|
import type { StartNodeType } from './types'
|
2025-09-18 12:49:10 +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-09-18 12:49:10 +08:00
|
|
|
const metaData = genNodeMetaData({
|
|
|
|
|
sort: 0.1,
|
|
|
|
|
type: BlockEnum.Start,
|
|
|
|
|
isStart: true,
|
|
|
|
|
isRequired: true,
|
|
|
|
|
isUndeletable: true,
|
|
|
|
|
isSingleton: true,
|
|
|
|
|
isTypeFixed: true,
|
|
|
|
|
})
|
2024-04-08 18:51:46 +08:00
|
|
|
const nodeDefault: NodeDefault<StartNodeType> = {
|
2025-09-18 12:49:10 +08:00
|
|
|
metaData,
|
2024-04-08 18:51:46 +08:00
|
|
|
defaultValue: {
|
|
|
|
|
variables: [],
|
|
|
|
|
},
|
|
|
|
|
checkValid() {
|
|
|
|
|
return {
|
|
|
|
|
isValid: true,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default nodeDefault
|