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

import { DownloadRepository } from '~/domain/models/download/downloadRepository'
export class DownloadApplicationService {
constructor(
private readonly repository: DownloadRepository
) {}
public async request(projectId: string, format: string, exportApproved: boolean): Promise<string> {
const item = await this.repository.prepare(projectId, format, exportApproved)
return item
}
public download(projectId: string, taskId: string): void {
this.repository.download(projectId, taskId)
}
}