feat: export resource tables to pdf

This commit is contained in:
Ahmed Bouhuolia
2024-05-23 14:23:49 +02:00
parent 1227111fae
commit fe41f7976d
10 changed files with 195 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
import { Inject, Service } from 'typedi';
import { ExportResourceService } from './ExportService';
import { ExportFormat } from './common';
@Service()
export class ExportApplication {
@@ -9,9 +10,9 @@ export class ExportApplication {
/**
* Exports the given resource to csv, xlsx or pdf format.
* @param {string} reosurce
* @param {string} format
* @param {ExportFormat} format
*/
public export(tenantId: number, resource: string, format: string) {
public export(tenantId: number, resource: string, format: ExportFormat) {
return this.exportResource.export(tenantId, resource, format);
}
}