import { Module } from '@nestjs/common'; import { StockModule } from '../stock/stock.module'; import { SuggestionsModule } from '../suggestions/suggestions.module'; import { AutomationController } from './automation.controller'; import { AutomationEventHandlers } from './automation.handlers'; import { AutomationService } from './automation.service'; /** * Automation rules and the handlers that evaluate them on domain events. * The rules propose through SuggestionsService; the task follows when the * beekeeper accepts (TasksService, with calendar entry and task.created * webhook), so neither a TasksModule nor a WebhooksService is needed here. */ @Module({ imports: [SuggestionsModule, StockModule], controllers: [AutomationController], providers: [AutomationService, AutomationEventHandlers], exports: [AutomationService], }) export class AutomationModule {}