dify/web/app/components/workflow/nodes/trigger-schedule/constants.ts
lyzno1 327b354cc2
refactor: unify trigger node architecture and clean up technical debt (#24886)
Co-authored-by: hjlarry <hjlarry@163.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-09-01 15:47:44 +08:00

21 lines
469 B
TypeScript

import type { ScheduleTriggerNodeType } from './types'
// Unified default values for trigger schedule
export const getDefaultScheduleConfig = (): Partial<ScheduleTriggerNodeType> => ({
mode: 'visual',
frequency: 'weekly',
visual_config: {
time: '11:30 AM',
weekdays: ['sun'],
on_minute: 0,
monthly_days: [1],
},
})
export const getDefaultVisualConfig = () => ({
time: '11:30 AM',
weekdays: ['sun'],
on_minute: 0,
monthly_days: [1],
})