@experteam-mx/ngx-services 20.0.12 → 20.0.14
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
|
}
|
|
@@ -2469,7 +2478,7 @@ class ApiDiscountsService {
|
|
|
2469
2478
|
* @return {Observable<LoyaltyRuleOut>} An observable that emits the updated loyalty rule details.
|
|
2470
2479
|
*/
|
|
2471
2480
|
postLoyaltyRule(body) {
|
|
2472
|
-
return this.http.
|
|
2481
|
+
return this.http.post(`${this.url}/loyalty-rules`, body)
|
|
2473
2482
|
.pipe(map(({ data }) => data));
|
|
2474
2483
|
}
|
|
2475
2484
|
/**
|