@experteam-mx/ngx-services 20.0.11 → 20.0.13
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.
|
@@ -1077,6 +1077,15 @@ class ApiCatalogsService {
|
|
|
1077
1077
|
getBusinessPartyTraderTypes(params) {
|
|
1078
1078
|
return this.http.get(`${this.url}/business-party-trader-types`, { params }).pipe(map(({ data }) => data));
|
|
1079
1079
|
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Retrieves package locations based on the provided query parameters.
|
|
1082
|
+
* @param params - Query parameters to filter or configure the package locations request
|
|
1083
|
+
* @returns An Observable that emits the package locations data
|
|
1084
|
+
*/
|
|
1085
|
+
getPackageLocations(params) {
|
|
1086
|
+
return this.http.get(`${this.url}/package-locations`, { params })
|
|
1087
|
+
.pipe(map(({ data }) => data));
|
|
1088
|
+
}
|
|
1080
1089
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCatalogsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1081
1090
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
|
|
1082
1091
|
}
|
|
@@ -1279,6 +1288,16 @@ class ApiCompaniesService {
|
|
|
1279
1288
|
return this.http.put(`${this.url}/employees/${id}`, body)
|
|
1280
1289
|
.pipe(map(({ data }) => data));
|
|
1281
1290
|
}
|
|
1291
|
+
/**
|
|
1292
|
+
* Updates an employee with the specified ID using the provided partial data.
|
|
1293
|
+
* @param id - The unique identifier of the employee to update
|
|
1294
|
+
* @param body - Partial employee data containing the fields to update
|
|
1295
|
+
* @returns An Observable that emits the updated employee data
|
|
1296
|
+
*/
|
|
1297
|
+
patchEmployee(id, body) {
|
|
1298
|
+
return this.http.patch(`${this.url}/employees/${id}`, body)
|
|
1299
|
+
.pipe(map(({ data }) => data));
|
|
1300
|
+
}
|
|
1282
1301
|
/**
|
|
1283
1302
|
* Deletes an employee based on the provided ID.
|
|
1284
1303
|
*
|