@experteam-mx/ngx-services 20.0.22 → 20.0.24
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.
|
@@ -1298,6 +1298,15 @@ class ApiCompaniesService {
|
|
|
1298
1298
|
return this.http.patch(`${this.url}/employees/${id}`, body)
|
|
1299
1299
|
.pipe(map(({ data }) => data));
|
|
1300
1300
|
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Enable an employee with the specified ID.
|
|
1303
|
+
* @param id - The unique identifier of the employee to update
|
|
1304
|
+
* @returns An Observable that emits the enabled employee data
|
|
1305
|
+
*/
|
|
1306
|
+
patchEmployeeEnable(id) {
|
|
1307
|
+
return this.http.patch(`${this.url}/employees/${id}/enable`, {})
|
|
1308
|
+
.pipe(map(({ data }) => data));
|
|
1309
|
+
}
|
|
1301
1310
|
/**
|
|
1302
1311
|
* Deletes an employee based on the provided ID.
|
|
1303
1312
|
*
|
|
@@ -4293,6 +4302,15 @@ class ApiShipmentsService {
|
|
|
4293
4302
|
getEmployeeCustomer(id) {
|
|
4294
4303
|
return this.http.get(`${this.url}/shipments/employee-customer/${id}`).pipe(map(({ data }) => data));
|
|
4295
4304
|
}
|
|
4305
|
+
/**
|
|
4306
|
+
* Generate signature page PDF for one shipment
|
|
4307
|
+
*
|
|
4308
|
+
* @return {Observable<ShipmentSignaturePageOut>} An observable containing base64 file generated
|
|
4309
|
+
* @param id - the shipment id.
|
|
4310
|
+
*/
|
|
4311
|
+
getShipmentDocumentSignaturePage(id) {
|
|
4312
|
+
return this.http.get(`${this.url}/shipments/document-signature-page/${id}`).pipe(map(({ data }) => data));
|
|
4313
|
+
}
|
|
4296
4314
|
/**
|
|
4297
4315
|
* Cancels a specific shipment by providing its ID and a reason for cancellation.
|
|
4298
4316
|
* Sends a PATCH request to update the shipment's cancellation status with the specified reason.
|