44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
|
|
import { StockMovementsController } from '../_controllers/movements.controller';
|
|
import { StockMovementsService } from './movements.service';
|
|
|
|
import { MongooseModule } from '@nestjs/mongoose';
|
|
|
|
import { MovementRepository } from './movement.repository';
|
|
|
|
import { StockContent, StockContentSchema } from '../_entities/stock-content.entity';
|
|
import { StockMovement, StockMovementSchema } from '../_entities/stock-movement.entity';
|
|
import { Article, ArticleSchema } from 'src/catalog/_entities/article.entity';
|
|
import { ArticleVariant, ArticleVariantSchema } from 'src/catalog/_entities/article-variant.entity';
|
|
import { CatalogModule } from 'src/catalog/catalog.module';
|
|
import { StockContentModule } from '../stock-content/stock-content.module';
|
|
import { StockContentRepository } from '../stock-content/stock-content.repository';
|
|
import { StockContentService } from '../stock-content/stock-content.service';
|
|
|
|
|
|
|
|
@Module({
|
|
imports: [
|
|
MongooseModule.forFeature([
|
|
{ name: StockContent.name, schema: StockContentSchema },
|
|
{ name: StockMovement.name, schema: StockMovementSchema },
|
|
{ name: Article.name, schema: ArticleSchema },
|
|
{ name: ArticleVariant.name, schema: ArticleVariantSchema },
|
|
|
|
]),
|
|
CatalogModule,
|
|
|
|
],
|
|
|
|
controllers: [StockMovementsController],
|
|
providers: [
|
|
StockMovementsService,
|
|
StockContentService,
|
|
StockContentRepository,
|
|
MovementRepository,
|
|
],
|
|
|
|
})
|
|
export class MovementsModule { }
|