import { Module } from '@nestjs/common';
import { DatabaseModule } from '../../database/src';
import { TripsRepository } from './trips.repository';
import { TripsService } from './trips.service';
import { TripSettingsRepository } from './trip-settings.repository';
import { TripSettingsService } from './trip-settings.service';
import { TripMembersRepository } from './trip-members.repository';
import { TripMembersService } from './trip-members.service';
import { TripMembershipGuard } from './trip-membership.guard';
import { TripInvitationsRepository } from './trip-invitations.repository';
import { TripInvitationsService } from './trip-invitations.service';

@Module({
  imports: [DatabaseModule],
  providers: [
    TripsRepository,
    TripsService,
    TripSettingsRepository,
    TripSettingsService,
    TripMembersRepository,
    TripMembersService,
    TripMembershipGuard,
    TripInvitationsRepository,
    TripInvitationsService,
  ],
  exports: [
    TripsService,
    TripSettingsService,
    TripMembersService,
    TripMembershipGuard,
    TripInvitationsService,
  ],
})
export class TripsLibModule {}
