@experteam-mx/ngx-services 20.9.5-dev1.5 → 20.9.5-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.
@@ -1597,47 +1597,6 @@ class ApiCatalogsService {
1597
1597
  return this.http.get(`${this.url}/upselling-indicator-methods/${id}`)
1598
1598
  .pipe(map(({ data }) => data));
1599
1599
  }
1600
- /**
1601
- * Retrieves all RPA shipment notifications.
1602
- *
1603
- * @param params Query parameters used to filter or paginate the RPA shipment notifications.
1604
- * @returns Observable containing the list of RPA shipment notifications.
1605
- */
1606
- getRpaShipmentNotifications(params) {
1607
- return this.http.get(`${this.url}/rpa-shipment-notifications`, { params })
1608
- .pipe(map(({ data }) => data));
1609
- }
1610
- /**
1611
- * Retrieves an RPA shipment notification by its ID.
1612
- *
1613
- * @param id Unique identifier of the RPA shipment notification.
1614
- * @returns Observable containing the requested RPA shipment notification.
1615
- */
1616
- getRpaShipmentNotification(id) {
1617
- return this.http.get(`${this.url}/rpa-shipment-notifications/${id}`)
1618
- .pipe(map(({ data }) => data));
1619
- }
1620
- /**
1621
- * Creates a new RPA shipment notification.
1622
- *
1623
- * @param body Data of the RPA shipment notification to create.
1624
- * @returns Observable containing the created RPA shipment notification.
1625
- */
1626
- postRpaShipmentNotification(body) {
1627
- return this.http.post(`${this.url}/rpa-shipment-notifications`, body)
1628
- .pipe(map(({ data }) => data));
1629
- }
1630
- /**
1631
- * Updates an existing RPA shipment notification by its ID.
1632
- *
1633
- * @param id Unique identifier of the RPA shipment notification to update.
1634
- * @param body Updated data of the RPA shipment notification.
1635
- * @returns Observable containing the updated RPA shipment notification.
1636
- */
1637
- putRpaShipmentNotification(id, body) {
1638
- return this.http.put(`${this.url}/rpa-shipment-notifications/${id}`, body)
1639
- .pipe(map(({ data }) => data));
1640
- }
1641
1600
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCatalogsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1642
1601
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
1643
1602
  }
@@ -3805,6 +3764,53 @@ class ApiInventoriesService {
3805
3764
  putPackageOnHold(body) {
3806
3765
  return this.http.put(`${this.url}/package-on-hold`, body).pipe(map(({ data }) => data));
3807
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
+ }
3808
3814
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3809
3815
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
3810
3816
  }
@@ -5791,6 +5797,11 @@ var RouteModelType;
5791
5797
  RouteModelType["COURIER"] = "Courier";
5792
5798
  RouteModelType["COURIER_ROUTE"] = "CourierRoute";
5793
5799
  })(RouteModelType || (RouteModelType = {}));
5800
+ var InventoryControlType;
5801
+ (function (InventoryControlType) {
5802
+ InventoryControlType["LAST_MILE"] = "lastMile";
5803
+ InventoryControlType["FIRST_MILE"] = "firstMile";
5804
+ })(InventoryControlType || (InventoryControlType = {}));
5794
5805
 
5795
5806
  var PaymentTypeCode;
5796
5807
  (function (PaymentTypeCode) {
@@ -6201,5 +6212,5 @@ const xmlHeaders = (format = 'object') => {
6201
6212
  * Generated bundle index. Do not edit.
6202
6213
  */
6203
6214
 
6204
- 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 };
6215
+ 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 };
6205
6216
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map