import { Module } from '@nestjs/common'; import { SeasonModule } from '../season/season.module'; import { SuggestionsModule } from '../suggestions/suggestions.module'; import { AutopilotEventHandlers } from './autopilot.handlers'; import { AutopilotTodayController } from './autopilot-today.controller'; import { AutopilotService } from './autopilot.service'; import { AutopilotStep } from './autopilot.step'; import { ColonyNextStepsController } from './colony-next-steps.controller'; import { NextStepsService } from './next-steps.service'; import { SuggestionsExpiryStep } from './suggestions-expiry.step'; /** * The season autopilot: the event handler and the daily steps that keep the * autopilot suggestions of each colony in line with the rules, and the read * side "next steps" / "today". Imported by AppModule and WorkerModule (the * handler), JobsModule (the steps) and ApiariesModule (the colony overview). */ @Module({ imports: [SeasonModule, SuggestionsModule], controllers: [ColonyNextStepsController, AutopilotTodayController], providers: [ AutopilotService, NextStepsService, AutopilotEventHandlers, AutopilotStep, SuggestionsExpiryStep, ], exports: [ AutopilotService, NextStepsService, AutopilotStep, SuggestionsExpiryStep, ], }) export class AutopilotModule {}