@experteam-mx/ngx-services 20.9.2 → 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
  }
@@ -2641,6 +2728,16 @@ class ApiCompositionService {
2641
2728
  return this.http.get(`${this.url}/shipments/${id}`)
2642
2729
  .pipe(map(({ data }) => data));
2643
2730
  }
2731
+ /**
2732
+ * Retrieves shipments based on the provided query parameters.
2733
+ *
2734
+ * @param {QueryParams} params - The query parameters for the API request.
2735
+ * @returns {Observable<ShipmentsOut>} An observable that emits the shipments data.
2736
+ */
2737
+ getShipments(params) {
2738
+ return this.http.get(`${this.url}/shipments`, { params })
2739
+ .pipe(map(({ data }) => data));
2740
+ }
2644
2741
  /**
2645
2742
  * Fetches the country references data based on the provided query parameters.
2646
2743
  *
@@ -5662,6 +5759,14 @@ var DocumentStatusCode;
5662
5759
  DocumentStatusCode[DocumentStatusCode["WITH_ERRORS"] = 3] = "WITH_ERRORS";
5663
5760
  })(DocumentStatusCode || (DocumentStatusCode = {}));
5664
5761
 
5762
+ var CustomerRoleType;
5763
+ (function (CustomerRoleType) {
5764
+ CustomerRoleType["SHIPPER"] = "SP";
5765
+ CustomerRoleType["CONSIGNEE"] = "RV";
5766
+ CustomerRoleType["IMPORTER"] = "IP";
5767
+ CustomerRoleType["EXPORTER"] = "EP";
5768
+ })(CustomerRoleType || (CustomerRoleType = {}));
5769
+
5665
5770
  class WebSocketsService {
5666
5771
  pusher;
5667
5772
  environments = inject(ENVIRONMENT_TOKEN);
@@ -6045,5 +6150,5 @@ const xmlHeaders = (format = 'object') => {
6045
6150
  * Generated bundle index. Do not edit.
6046
6151
  */
6047
6152
 
6048
- 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, 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 };
6153
+ 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 };
6049
6154
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map