You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
519 B

  1. import { DownloadRepository } from '~/domain/models/download/downloadRepository'
  2. export class DownloadApplicationService {
  3. constructor(
  4. private readonly repository: DownloadRepository
  5. ) {}
  6. public async request(projectId: string, format: string, exportApproved: boolean): Promise<string> {
  7. const item = await this.repository.prepare(projectId, format, exportApproved)
  8. return item
  9. }
  10. public download(projectId: string, taskId: string): void {
  11. this.repository.download(projectId, taskId)
  12. }
  13. }