@experteam-mx/ngx-services 20.9.8 → 20.9.9
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.
|
@@ -1903,6 +1903,19 @@ class ApiCompaniesService {
|
|
|
1903
1903
|
return this.http.delete(`${this.url}/employees/${id}`)
|
|
1904
1904
|
.pipe(map(({ data }) => data));
|
|
1905
1905
|
}
|
|
1906
|
+
/**
|
|
1907
|
+
* Exports the filtered employees list as a PDF file.
|
|
1908
|
+
*
|
|
1909
|
+
* @param {QueryParams} params - Query parameters used to filter the employees included in the export.
|
|
1910
|
+
* @return {Observable<HttpResponse<ArrayBuffer>>} An observable that emits the HTTP response containing the PDF as an ArrayBuffer.
|
|
1911
|
+
*/
|
|
1912
|
+
getEmployeesExportPdf(params) {
|
|
1913
|
+
return this.http.get(`${this.url}/employees/exportPdf`, {
|
|
1914
|
+
params,
|
|
1915
|
+
observe: 'response',
|
|
1916
|
+
responseType: 'arraybuffer'
|
|
1917
|
+
});
|
|
1918
|
+
}
|
|
1906
1919
|
/**
|
|
1907
1920
|
* Retrieves the list of employees for a specified location based on provided query parameters.
|
|
1908
1921
|
*
|