@experteam-mx/ngx-services 20.7.0-dev1.13 → 20.7.0-dev1.15

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.
@@ -1449,6 +1449,16 @@ class ApiCatalogsService {
1449
1449
  return this.http.get(`${this.url}/upselling-indicators`, { params })
1450
1450
  .pipe(map(({ data }) => data));
1451
1451
  }
1452
+ /**
1453
+ * Retrieves an upselling indicator by its ID.
1454
+ *
1455
+ * @param id Unique identifier of the upselling indicator.
1456
+ * @returns Observable containing the requested upselling indicator.
1457
+ */
1458
+ getUpsellingIndicator(id) {
1459
+ return this.http.get(`${this.url}/upselling-indicators/${id}`)
1460
+ .pipe(map(({ data }) => data));
1461
+ }
1452
1462
  /**
1453
1463
  * Creates a new upselling indicator.
1454
1464
  * @param body - Upselling indicator data
@@ -1487,6 +1497,26 @@ class ApiCatalogsService {
1487
1497
  return this.http.patch(`${this.url}/upselling-indicators/${id}`, { isActive })
1488
1498
  .pipe(map(({ data }) => data));
1489
1499
  }
1500
+ /**
1501
+ * Retrieves the list of upselling indicator methods.
1502
+ *
1503
+ * @param params Query parameters used to filter, paginate, or sort the methods.
1504
+ * @returns Observable containing the upselling indicator methods.
1505
+ */
1506
+ getUpsellingIndicatorMethods(params) {
1507
+ return this.http.get(`${this.url}/upselling-indicator-methods`, { params })
1508
+ .pipe(map(({ data }) => data));
1509
+ }
1510
+ /**
1511
+ * Retrieves an upselling indicator method by its ID.
1512
+ *
1513
+ * @param id Unique identifier of the upselling indicator method.
1514
+ * @returns Observable containing the requested upselling indicator method.
1515
+ */
1516
+ getUpsellingIndicatorMethod(id) {
1517
+ return this.http.get(`${this.url}/upselling-indicator-methods/${id}`)
1518
+ .pipe(map(({ data }) => data));
1519
+ }
1490
1520
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCatalogsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1491
1521
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
1492
1522
  }