( type: ExecutionTrigger['type'], additionalData?: Record<string, unknown> )
| 13 | } from '@/lib/workflows/persistence/utils' |
| 14 | |
| 15 | export function createTriggerObject( |
| 16 | type: ExecutionTrigger['type'], |
| 17 | additionalData?: Record<string, unknown> |
| 18 | ): ExecutionTrigger { |
| 19 | return { |
| 20 | type, |
| 21 | source: type, |
| 22 | timestamp: new Date().toISOString(), |
| 23 | ...(additionalData && { data: additionalData }), |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | export function createEnvironmentObject( |
| 28 | workflowId: string, |
no outgoing calls
no test coverage detected