All files / src/modules/social social.module.ts

0% Statements 0/23
100% Branches 0/0
100% Functions 0/0
0% Lines 0/21

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60                                                                                                                       
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { ConfigModule } from '@nestjs/config';
import { BullModule } from '@nestjs/bull';
import { SocialController } from './social.controller';
import { SocialService } from './social.service';
import { User, UserSchema } from '../../database/schemas/user.schema';
import { Product, ProductSchema } from '../../database/schemas/product.schema';
import { UserConnection, UserConnectionSchema } from '../../database/schemas/user-connection.schema';
import { SharedWishlist, SharedWishlistSchema } from '../../database/schemas/shared-wishlist.schema';
import { CommunityChallenge, CommunityChallengeSchema } from '../../database/schemas/community-challenge.schema';
import { SocialActivity, SocialActivitySchema } from '../../database/schemas/social-activity.schema';
import { UserInteraction, UserInteractionSchema } from '../../database/schemas/user-interaction.schema';
import { ConnectionService } from './services/connection.service';
import { WishlistService } from './services/wishlist.service';
import { ChallengeService } from './services/challenge.service';
import { ActivityService } from './services/activity.service';
import { SocialAnalyticsService } from './services/social-analytics.service';
import { NotificationService } from './services/notification.service';
import { SocialProcessor } from './processors/social.processor';
 
@Module({
  imports: [
    ConfigModule,
    MongooseModule.forFeature([
      { name: User.name, schema: UserSchema },
      { name: Product.name, schema: ProductSchema },
      { name: UserConnection.name, schema: UserConnectionSchema },
      { name: SharedWishlist.name, schema: SharedWishlistSchema },
      { name: CommunityChallenge.name, schema: CommunityChallengeSchema },
      { name: SocialActivity.name, schema: SocialActivitySchema },
      { name: UserInteraction.name, schema: UserInteractionSchema },
    ]),
    BullModule.registerQueue({
      name: 'social-processing',
    }),
  ],
  controllers: [SocialController],
  providers: [
    SocialService,
    ConnectionService,
    WishlistService,
    ChallengeService,
    ActivityService,
    SocialAnalyticsService,
    NotificationService,
    SocialProcessor,
  ],
  exports: [
    SocialService,
    ConnectionService,
    WishlistService,
    ChallengeService,
    ActivityService,
    SocialAnalyticsService,
    NotificationService,
  ],
})
export class SocialModule {}