feat: document export functions

This commit is contained in:
Ahmed Bouhuolia
2024-06-02 13:24:21 +02:00
parent f15fecde54
commit 1b237323f6
2 changed files with 9 additions and 9 deletions

View File

@@ -12,12 +12,12 @@ export class ExportPdf {
private chromiumlyTenancy: ChromiumlyTenancy; private chromiumlyTenancy: ChromiumlyTenancy;
/** /**
* * Generates the pdf table sheet for the given data and columns.
* @param tenantId * @param {number} tenantId
* @param columns * @param {} columns
* @param data * @param {Record<string, string>} data
* @param sheetTitle * @param {string} sheetTitle
* @param sheetDescription * @param {string} sheetDescription
* @returns * @returns
*/ */
public async pdf( public async pdf(

View File

@@ -27,9 +27,9 @@ export const getDataAccessor = (col: any) => {
}; };
/** /**
* * Maps the data retrieved from the service layer to the pdf document.
* @param columns * @param {any} columns
* @param data * @param {Record<stringm any>} data
* @returns * @returns
*/ */
export const mapPdfRows = (columns: any, data: Record<string, any>) => { export const mapPdfRows = (columns: any, data: Record<string, any>) => {