@experteam-mx/ngx-services 20.9.5 → 20.9.6-dev3.1
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.
|
@@ -1862,6 +1862,19 @@ class ApiCompaniesService {
|
|
|
1862
1862
|
return this.http.delete(`${this.url}/employees/${id}`)
|
|
1863
1863
|
.pipe(map(({ data }) => data));
|
|
1864
1864
|
}
|
|
1865
|
+
/**
|
|
1866
|
+
* Exports the filtered employees list as a PDF file.
|
|
1867
|
+
*
|
|
1868
|
+
* @param {QueryParams} params - Query parameters used to filter the employees included in the export.
|
|
1869
|
+
* @return {Observable<HttpResponse<ArrayBuffer>>} An observable that emits the HTTP response containing the PDF as an ArrayBuffer.
|
|
1870
|
+
*/
|
|
1871
|
+
getEmployeesExportPdf(params) {
|
|
1872
|
+
return this.http.get(`${this.url}/employees/exportPdf`, {
|
|
1873
|
+
params,
|
|
1874
|
+
observe: 'response',
|
|
1875
|
+
responseType: 'arraybuffer'
|
|
1876
|
+
});
|
|
1877
|
+
}
|
|
1865
1878
|
/**
|
|
1866
1879
|
* Retrieves the list of employees for a specified location based on provided query parameters.
|
|
1867
1880
|
*
|
|
@@ -4835,6 +4848,18 @@ class ApiSecurityService {
|
|
|
4835
4848
|
return this.http.get(`${this.url}/roles`, { params })
|
|
4836
4849
|
.pipe(map(({ data }) => data));
|
|
4837
4850
|
}
|
|
4851
|
+
/**
|
|
4852
|
+
* Downloads a PDF export of roles filtered by the provided query parameters (no pagination).
|
|
4853
|
+
*
|
|
4854
|
+
* @param {QueryParams} params - Filter query parameters mirroring the roles list (without limit/offset).
|
|
4855
|
+
* @return {Observable<Blob>} An observable that emits the PDF file blob.
|
|
4856
|
+
*/
|
|
4857
|
+
getRolesExportPdf(params) {
|
|
4858
|
+
return this.http.get(`${this.url}/roles/exportPdf`, {
|
|
4859
|
+
params,
|
|
4860
|
+
responseType: 'blob'
|
|
4861
|
+
});
|
|
4862
|
+
}
|
|
4838
4863
|
/**
|
|
4839
4864
|
* Retrieves roles by the specified ID.
|
|
4840
4865
|
*
|