@experteam-mx/ngx-services 20.9.3 → 20.9.4

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.
@@ -1102,6 +1102,16 @@ class ApiCatalogsService {
1102
1102
  return this.http.put(`${this.url}/generic-folios/${id}`, body)
1103
1103
  .pipe(map(({ data }) => data));
1104
1104
  }
1105
+ /**
1106
+ * Retrieves the list of products.
1107
+ *
1108
+ * @param params Query parameters used to filter or paginate the products.
1109
+ * @returns An observable containing the list of products.
1110
+ */
1111
+ getProducts(params) {
1112
+ return this.http.get(`${this.url}/products`, { params })
1113
+ .pipe(map(({ data }) => data));
1114
+ }
1105
1115
  /**
1106
1116
  * Retrieves a product by its unique identifier.
1107
1117
  *
@@ -1510,6 +1520,83 @@ class ApiCatalogsService {
1510
1520
  return this.http.get(`${this.url}/export-reason-types`, { params })
1511
1521
  .pipe(map(({ data }) => data));
1512
1522
  }
1523
+ /**
1524
+ * Retrieves the list of upselling indicators.
1525
+ * @param params - Query parameters used to filter or paginate the results
1526
+ * @returns An Observable that emits the upselling indicators and total count
1527
+ */
1528
+ getUpsellingIndicators(params) {
1529
+ return this.http.get(`${this.url}/upselling-indicators`, { params })
1530
+ .pipe(map(({ data }) => data));
1531
+ }
1532
+ /**
1533
+ * Retrieves an upselling indicator by its ID.
1534
+ *
1535
+ * @param id Unique identifier of the upselling indicator.
1536
+ * @returns Observable containing the requested upselling indicator.
1537
+ */
1538
+ getUpsellingIndicator(id) {
1539
+ return this.http.get(`${this.url}/upselling-indicators/${id}`)
1540
+ .pipe(map(({ data }) => data));
1541
+ }
1542
+ /**
1543
+ * Creates a new upselling indicator.
1544
+ * @param body - Upselling indicator data
1545
+ * @returns An Observable that emits the created upselling indicator
1546
+ */
1547
+ postUpsellingIndicator(body) {
1548
+ return this.http.post(`${this.url}/upselling-indicators`, body)
1549
+ .pipe(map(({ data }) => data));
1550
+ }
1551
+ /**
1552
+ * Updates an existing upselling indicator.
1553
+ * @param id - Identifier of the upselling indicator to update
1554
+ * @param body - Updated upselling indicator data
1555
+ * @returns An Observable that emits the updated upselling indicator
1556
+ */
1557
+ putUpsellingIndicator(id, body) {
1558
+ return this.http.put(`${this.url}/upselling-indicators/${id}`, body)
1559
+ .pipe(map(({ data }) => data));
1560
+ }
1561
+ /**
1562
+ * Deletes an upselling indicator by its identifier.
1563
+ * @param id - Identifier of the upselling indicator to delete
1564
+ * @returns An Observable that emits the operation result
1565
+ */
1566
+ deleteUpsellingIndicator(id) {
1567
+ return this.http.delete(`${this.url}/upselling-indicators/${id}`)
1568
+ .pipe(map(({ data }) => data));
1569
+ }
1570
+ /**
1571
+ * Updates the active status of an upselling indicator.
1572
+ * @param id - Identifier of the upselling indicator
1573
+ * @param isActive - Indicates whether the upselling indicator should be active or inactive
1574
+ * @returns An Observable that emits the operation result
1575
+ */
1576
+ patchUpsellingIndicator(id, isActive) {
1577
+ return this.http.patch(`${this.url}/upselling-indicators/${id}`, { isActive })
1578
+ .pipe(map(({ data }) => data));
1579
+ }
1580
+ /**
1581
+ * Retrieves the list of upselling indicator methods.
1582
+ *
1583
+ * @param params Query parameters used to filter, paginate, or sort the methods.
1584
+ * @returns Observable containing the upselling indicator methods.
1585
+ */
1586
+ getUpsellingIndicatorMethods(params) {
1587
+ return this.http.get(`${this.url}/upselling-indicator-methods`, { params })
1588
+ .pipe(map(({ data }) => data));
1589
+ }
1590
+ /**
1591
+ * Retrieves an upselling indicator method by its ID.
1592
+ *
1593
+ * @param id Unique identifier of the upselling indicator method.
1594
+ * @returns Observable containing the requested upselling indicator method.
1595
+ */
1596
+ getUpsellingIndicatorMethod(id) {
1597
+ return this.http.get(`${this.url}/upselling-indicator-methods/${id}`)
1598
+ .pipe(map(({ data }) => data));
1599
+ }
1513
1600
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCatalogsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1514
1601
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
1515
1602
  }