n8n
Version:
n8n Workflow Automation Tool
19 lines (18 loc) • 1.32 kB
TypeScript
import { DeleteDestinationQueryDto, GetDestinationQueryDto, TestDestinationQueryDto } from '@n8n/api-types';
import { InstanceSettingsLoaderConfig } from '@n8n/config';
import type { AuthenticatedRequest } from '@n8n/db';
import type { MessageEventBusDestinationOptions } from 'n8n-workflow';
import { MessageEventBus } from '../../eventbus/message-event-bus/message-event-bus';
import { LogStreamingDestinationService } from './log-streaming-destination.service';
export declare class EventBusController {
private readonly eventBus;
private readonly destinationService;
private readonly instanceSettingsLoaderConfig;
constructor(eventBus: MessageEventBus, destinationService: LogStreamingDestinationService, instanceSettingsLoaderConfig: InstanceSettingsLoaderConfig);
private assertNotManagedByEnv;
getEventNames(): Promise<string[]>;
getDestination(_req: AuthenticatedRequest, _res: unknown, query: GetDestinationQueryDto): Promise<MessageEventBusDestinationOptions[]>;
postDestination(req: AuthenticatedRequest): Promise<MessageEventBusDestinationOptions>;
sendTestMessage(_req: AuthenticatedRequest, _res: unknown, query: TestDestinationQueryDto): Promise<boolean>;
deleteDestination(_req: AuthenticatedRequest, _res: unknown, query: DeleteDestinationQueryDto): Promise<void>;
}