@experteam-mx/ngx-services 20.0.11 → 20.0.12
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.
|
@@ -1279,6 +1279,16 @@ class ApiCompaniesService {
|
|
|
1279
1279
|
return this.http.put(`${this.url}/employees/${id}`, body)
|
|
1280
1280
|
.pipe(map(({ data }) => data));
|
|
1281
1281
|
}
|
|
1282
|
+
/**
|
|
1283
|
+
* Updates an employee with the specified ID using the provided partial data.
|
|
1284
|
+
* @param id - The unique identifier of the employee to update
|
|
1285
|
+
* @param body - Partial employee data containing the fields to update
|
|
1286
|
+
* @returns An Observable that emits the updated employee data
|
|
1287
|
+
*/
|
|
1288
|
+
patchEmployee(id, body) {
|
|
1289
|
+
return this.http.patch(`${this.url}/employees/${id}`, body)
|
|
1290
|
+
.pipe(map(({ data }) => data));
|
|
1291
|
+
}
|
|
1282
1292
|
/**
|
|
1283
1293
|
* Deletes an employee based on the provided ID.
|
|
1284
1294
|
*
|