diff --git a/packages/nestjs-report/src/interfaces/report-strategy-service.interface.ts b/packages/nestjs-report/src/interfaces/report-strategy-service.interface.ts index 1c62a55a..d4e32843 100644 --- a/packages/nestjs-report/src/interfaces/report-strategy-service.interface.ts +++ b/packages/nestjs-report/src/interfaces/report-strategy-service.interface.ts @@ -1,7 +1,9 @@ -import { ReportInterface } from '@concepta/ts-common'; +import { ReportCreatableInterface } from '@concepta/ts-common'; import { ReportGeneratorResultInterface } from './report-generator-result.interface'; export interface ReportStrategyServiceInterface { - generate(report: ReportInterface): Promise; - getDownloadUrl(report: ReportInterface): Promise; + generate( + report: ReportCreatableInterface, + ): Promise; + getDownloadUrl(report: ReportCreatableInterface): Promise; } diff --git a/packages/nestjs-report/src/services/report-strategy.service.ts b/packages/nestjs-report/src/services/report-strategy.service.ts index 3afcc11e..616a4214 100644 --- a/packages/nestjs-report/src/services/report-strategy.service.ts +++ b/packages/nestjs-report/src/services/report-strategy.service.ts @@ -3,7 +3,6 @@ import { ReportCreatableInterface } from '@concepta/ts-common'; import { mapNonErrorToException } from '@concepta/ts-core'; import { ReportGeneratorServiceNotFoundException } from '../exceptions/report-generator-service-not-found.exception'; import { ReportTimeoutException } from '../exceptions/report-timeout.exception'; -import { ReportEntityInterface } from '../interfaces/report-entity.interface'; import { ReportGeneratorResultInterface } from '../interfaces/report-generator-result.interface'; import { ReportGeneratorServiceInterface } from '../interfaces/report-generator-service.interface'; import { ReportSettingsInterface } from '../interfaces/report-settings.interface'; @@ -25,7 +24,7 @@ export class ReportStrategyService implements ReportStrategyServiceInterface { } async generate( - report: ReportEntityInterface, + report: ReportCreatableInterface, ): Promise { try { const generatorService = this.resolveGeneratorService(report); diff --git a/packages/nestjs-report/src/services/report.service.ts b/packages/nestjs-report/src/services/report.service.ts index 3aa38017..641914d5 100644 --- a/packages/nestjs-report/src/services/report.service.ts +++ b/packages/nestjs-report/src/services/report.service.ts @@ -75,7 +75,7 @@ export class ReportService implements ReportServiceInterface { } protected async generateAndProcessReport( - reportDb: ReportEntityInterface, + reportDb: ReportInterface, ): Promise { try { const result = await this.reportStrategyService.generate(reportDb); @@ -109,7 +109,7 @@ export class ReportService implements ReportServiceInterface { } protected async addDownloadUrl( - report: ReportEntityInterface, + report: ReportInterface, ): Promise { if (report.file?.id) { try {