@experteam-mx/ngx-services 20.9.0 → 20.9.1-dev3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1695,6 +1695,19 @@ class ApiCompaniesService {
|
|
|
1695
1695
|
return this.http.delete(`${this.url}/employees/${id}`)
|
|
1696
1696
|
.pipe(map(({ data }) => data));
|
|
1697
1697
|
}
|
|
1698
|
+
/**
|
|
1699
|
+
* Exports the filtered employees list as a PDF file.
|
|
1700
|
+
*
|
|
1701
|
+
* @param {QueryParams} params - Query parameters used to filter the employees included in the export.
|
|
1702
|
+
* @return {Observable<HttpResponse<ArrayBuffer>>} An observable that emits the HTTP response containing the PDF as an ArrayBuffer.
|
|
1703
|
+
*/
|
|
1704
|
+
getEmployeesExportPdf(params) {
|
|
1705
|
+
return this.http.get(`${this.url}/employees/exportPdf`, {
|
|
1706
|
+
params,
|
|
1707
|
+
observe: 'response',
|
|
1708
|
+
responseType: 'arraybuffer'
|
|
1709
|
+
});
|
|
1710
|
+
}
|
|
1698
1711
|
/**
|
|
1699
1712
|
* Retrieves the list of employees for a specified location based on provided query parameters.
|
|
1700
1713
|
*
|