Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

662 B
Raw Blame
import {
  ApplicationEventName,
  EventDestinationFormat,
  EventDestinationScope,
} from '@activepieces/shared';
import type { EventDestination } from '@activepieces/shared';

export function makeDestination(
  overrides: Partial<Omit<EventDestination, 'scope'>> = {},
): EventDestination {
  return {
    id: 'dest1',
    created: '2026-01-01T00:00:00.000Z',
    updated: '2026-01-01T00:00:00.000Z',
    platformId: 'platform1',
    scope: EventDestinationScope.PLATFORM,
    events: [ApplicationEventName.FLOW_CREATED],
    url: 'https://example.com/hook',
    enabled: true,
    headers: {},
    format: EventDestinationFormat.RAW,
    ...overrides,
  };
}