refactor(nestjs): add importable service to other modules

This commit is contained in:
Ahmed Bouhuolia
2025-04-12 19:26:15 +02:00
parent 51de3631fc
commit 1d53063e09
30 changed files with 1666 additions and 139 deletions

View File

@@ -3,8 +3,11 @@ import { PaymentReceivesApplication } from '../PaymentReceived.application';
import { IPaymentsReceivedFilter } from '../types/PaymentReceived.types';
import { EXPORT_SIZE_LIMIT } from '@/modules/Export/constants';
import { Exportable } from '@/modules/Export/Exportable';
import { ExportableService } from '@/modules/Export/decorators/ExportableModel.decorator';
import { PaymentReceived } from '../models/PaymentReceived';
@Injectable()
@ExportableService({ name: PaymentReceived.name })
export class PaymentsReceivedExportable extends Exportable {
constructor(private readonly paymentReceivedApp: PaymentReceivesApplication) {
super();

View File

@@ -4,8 +4,11 @@ import { Injectable } from '@nestjs/common';
import { PaymentsReceiveSampleData } from '../constants';
import { CreatePaymentReceivedService } from './CreatePaymentReceived.serivce';
import { Importable } from '@/modules/Import/Importable';
import { ImportableService } from '@/modules/Import/decorators/Import.decorator';
import { PaymentReceived } from '../models/PaymentReceived';
@Injectable()
@ImportableService({ name: PaymentReceived.name })
export class PaymentsReceivedImportable extends Importable {
constructor(
private readonly createPaymentReceiveService: CreatePaymentReceivedService,