import { BlockEnum } from '../../types' import type { NodeDefault } from '../../types' import type { PluginTriggerNodeType } from './types' import { ALL_COMPLETION_AVAILABLE_BLOCKS } from '@/app/components/workflow/blocks' const nodeDefault: NodeDefault = { defaultValue: { plugin_id: '', trigger_name: '', event_type: '', config: {}, }, getAvailablePrevNodes(_isChatMode: boolean) { return [] }, getAvailableNextNodes(isChatMode: boolean) { const nodes = isChatMode ? [] : ALL_COMPLETION_AVAILABLE_BLOCKS return nodes.filter(type => type !== BlockEnum.Start) }, checkValid(_payload: PluginTriggerNodeType, _t: any) { return { isValid: true, errorMessage: '', } }, } export default nodeDefault