import { Module } from '@nestjs/common'; import { MatchModule } from '../match/match.module'; import { RiotModule } from '../riot/riot.module'; import { DAKAO_OPTIONS, createDefaultDakaoOptions } from './dakao.options'; import { DakaoPublisher } from './dakao.publisher'; import { DakaoSubscriber } from './dakao.subscriber'; import { DakaoInboxService } from './dakao-inbox.service'; import { DakaoJetStreamResourceService } from './dakao-jetstream-resource.service'; import { DakaoOutboxSweeperService } from './dakao-outbox-sweeper.service'; import { DakaoOutboxService } from './dakao-outbox.service'; import { DakaoUserService } from './dakao-user.service'; import { DakaoSendResultSubscriber } from './dakao-send-result.subscriber'; import { DakaoUrlShortenerService } from './dakao-url-shortener.service'; import { AccountRegisterHandler } from './handlers/account-register.handler'; import { MatchCancelHandler } from './handlers/match-cancel.handler'; import { MatchJoinHandler } from './handlers/match-join.handler'; import { MatchListHandler } from './handlers/match-list.handler'; import { PreferredPositionRegisterHandler } from './handlers/preferred-position-register.handler'; import { PrimaryAccountChangeHandler } from './handlers/primary-account-change.handler'; @Module({ imports: [RiotModule, MatchModule], providers: [ { provide: DAKAO_OPTIONS, useFactory: createDefaultDakaoOptions, }, DakaoOutboxService, DakaoOutboxSweeperService, DakaoInboxService, DakaoJetStreamResourceService, DakaoPublisher, DakaoSubscriber, DakaoSendResultSubscriber, DakaoUserService, DakaoUrlShortenerService, AccountRegisterHandler, MatchListHandler, MatchJoinHandler, MatchCancelHandler, PreferredPositionRegisterHandler, PrimaryAccountChangeHandler, ], exports: [DakaoPublisher], }) export class DakaoModule {}