@experteam-mx/ngx-services 20.9.3 → 20.9.4-dev2.0

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
  }
@@ -3677,6 +3764,53 @@ class ApiInventoriesService {
3677
3764
  putPackageOnHold(body) {
3678
3765
  return this.http.put(`${this.url}/package-on-hold`, body).pipe(map(({ data }) => data));
3679
3766
  }
3767
+ /**
3768
+ * Retrieves inventory controls based on the provided query parameters.
3769
+ * @param params - Query parameters to filter, sort, or paginate inventory controls
3770
+ * @returns An Observable that emits the inventory controls data
3771
+ */
3772
+ getInventoryControls(params) {
3773
+ return this.http.get(`${this.url}/inventory-controls`, { params })
3774
+ .pipe(map(({ data }) => data));
3775
+ }
3776
+ /**
3777
+ * Fetches the inventory control details based on the provided inventory control ID.
3778
+ *
3779
+ * @param {number} id - The inventory control id
3780
+ * @return {Observable<InventoryControlOut>} An observable that emits the inventory control data.
3781
+ */
3782
+ getInventoryControl(id) {
3783
+ return this.http.get(`${this.url}/inventory-controls/${id}`)
3784
+ .pipe(map(({ data }) => data));
3785
+ }
3786
+ /**
3787
+ * Creates a new inventory control.
3788
+ * @param body - Inventory control data to create
3789
+ * @returns An Observable that emits the created inventory control
3790
+ */
3791
+ postInventoryControl(body) {
3792
+ return this.http.post(`${this.url}/inventory-controls`, body)
3793
+ .pipe(map(({ data }) => data));
3794
+ }
3795
+ /**
3796
+ * Updates an existing inventory control.
3797
+ * @param id - Identifier of the inventory control to update
3798
+ * @param body - Updated inventory control data
3799
+ * @returns An Observable that emits the updated inventory control
3800
+ */
3801
+ putInventoryControl(id, body) {
3802
+ return this.http.put(`${this.url}/inventory-controls/${id}`, body)
3803
+ .pipe(map(({ data }) => data));
3804
+ }
3805
+ /**
3806
+ * Deletes an inventory control by its identifier.
3807
+ * @param id - Identifier of the inventory control to delete
3808
+ * @returns An Observable that emits the operation result
3809
+ */
3810
+ deleteInventoryControl(id) {
3811
+ return this.http.delete(`${this.url}/inventory-controls/${id}`)
3812
+ .pipe(map(({ data }) => data));
3813
+ }
3680
3814
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3681
3815
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
3682
3816
  }
@@ -5653,6 +5787,11 @@ var RouteModelType;
5653
5787
  RouteModelType["COURIER"] = "Courier";
5654
5788
  RouteModelType["COURIER_ROUTE"] = "CourierRoute";
5655
5789
  })(RouteModelType || (RouteModelType = {}));
5790
+ var InventoryControlType;
5791
+ (function (InventoryControlType) {
5792
+ InventoryControlType["LAST_MILE"] = "lastMile";
5793
+ InventoryControlType["FIRST_MILE"] = "firstMile";
5794
+ })(InventoryControlType || (InventoryControlType = {}));
5656
5795
 
5657
5796
  var PaymentTypeCode;
5658
5797
  (function (PaymentTypeCode) {
@@ -6063,5 +6202,5 @@ const xmlHeaders = (format = 'object') => {
6063
6202
  * Generated bundle index. Do not edit.
6064
6203
  */
6065
6204
 
6066
- export { AccountTypeId, AccountTypeName, AlphaNumeric, ApiAuditsService, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCheckpointsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiDropoffsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, CustomerRoleType, DefaultValueType, DepositTypeCode, DocumentStatusCode, ENVIRONMENT_TOKEN, Event, Group, InventoryActions, InventoryErrorCodes, NgxServicesModule, OpeningStatusCode, OperationModuleStatus, PaymentTypeCode, PrintMode, PrintableFormat, PrintersService, PrintersType, RouteModelType, ShipmentIncomeTypeCode, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
6205
+ export { AccountTypeId, AccountTypeName, AlphaNumeric, ApiAuditsService, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCheckpointsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiDropoffsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, CustomerRoleType, DefaultValueType, DepositTypeCode, DocumentStatusCode, ENVIRONMENT_TOKEN, Event, Group, InventoryActions, InventoryControlType, InventoryErrorCodes, NgxServicesModule, OpeningStatusCode, OperationModuleStatus, PaymentTypeCode, PrintMode, PrintableFormat, PrintersService, PrintersType, RouteModelType, ShipmentIncomeTypeCode, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
6067
6206
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map