@experteam-mx/ngx-services 20.9.6-dev1.0 → 20.9.6-dev3.2
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.
|
@@ -1597,47 +1597,6 @@ class ApiCatalogsService {
|
|
|
1597
1597
|
return this.http.get(`${this.url}/upselling-indicator-methods/${id}`)
|
|
1598
1598
|
.pipe(map(({ data }) => data));
|
|
1599
1599
|
}
|
|
1600
|
-
/**
|
|
1601
|
-
* Retrieves all RPA shipment notifications.
|
|
1602
|
-
*
|
|
1603
|
-
* @param params Query parameters used to filter or paginate the RPA shipment notifications.
|
|
1604
|
-
* @returns Observable containing the list of RPA shipment notifications.
|
|
1605
|
-
*/
|
|
1606
|
-
getRpaShipmentNotifications(params) {
|
|
1607
|
-
return this.http.get(`${this.url}/rpa-shipment-notifications`, { params })
|
|
1608
|
-
.pipe(map(({ data }) => data));
|
|
1609
|
-
}
|
|
1610
|
-
/**
|
|
1611
|
-
* Retrieves an RPA shipment notification by its ID.
|
|
1612
|
-
*
|
|
1613
|
-
* @param id Unique identifier of the RPA shipment notification.
|
|
1614
|
-
* @returns Observable containing the requested RPA shipment notification.
|
|
1615
|
-
*/
|
|
1616
|
-
getRpaShipmentNotification(id) {
|
|
1617
|
-
return this.http.get(`${this.url}/rpa-shipment-notifications/${id}`)
|
|
1618
|
-
.pipe(map(({ data }) => data));
|
|
1619
|
-
}
|
|
1620
|
-
/**
|
|
1621
|
-
* Creates a new RPA shipment notification.
|
|
1622
|
-
*
|
|
1623
|
-
* @param body Data of the RPA shipment notification to create.
|
|
1624
|
-
* @returns Observable containing the created RPA shipment notification.
|
|
1625
|
-
*/
|
|
1626
|
-
postRpaShipmentNotification(body) {
|
|
1627
|
-
return this.http.post(`${this.url}/rpa-shipment-notifications`, body)
|
|
1628
|
-
.pipe(map(({ data }) => data));
|
|
1629
|
-
}
|
|
1630
|
-
/**
|
|
1631
|
-
* Updates an existing RPA shipment notification by its ID.
|
|
1632
|
-
*
|
|
1633
|
-
* @param id Unique identifier of the RPA shipment notification to update.
|
|
1634
|
-
* @param body Updated data of the RPA shipment notification.
|
|
1635
|
-
* @returns Observable containing the updated RPA shipment notification.
|
|
1636
|
-
*/
|
|
1637
|
-
putRpaShipmentNotification(id, body) {
|
|
1638
|
-
return this.http.put(`${this.url}/rpa-shipment-notifications/${id}`, body)
|
|
1639
|
-
.pipe(map(({ data }) => data));
|
|
1640
|
-
}
|
|
1641
1600
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCatalogsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1642
1601
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
|
|
1643
1602
|
}
|
|
@@ -1903,6 +1862,19 @@ class ApiCompaniesService {
|
|
|
1903
1862
|
return this.http.delete(`${this.url}/employees/${id}`)
|
|
1904
1863
|
.pipe(map(({ data }) => data));
|
|
1905
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
|
+
}
|
|
1906
1878
|
/**
|
|
1907
1879
|
* Retrieves the list of employees for a specified location based on provided query parameters.
|
|
1908
1880
|
*
|
|
@@ -4876,6 +4848,18 @@ class ApiSecurityService {
|
|
|
4876
4848
|
return this.http.get(`${this.url}/roles`, { params })
|
|
4877
4849
|
.pipe(map(({ data }) => data));
|
|
4878
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
|
+
}
|
|
4879
4863
|
/**
|
|
4880
4864
|
* Retrieves roles by the specified ID.
|
|
4881
4865
|
*
|