@experteam-mx/ngx-services 20.9.7 → 20.9.8

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.
@@ -3805,6 +3805,62 @@ class ApiInventoriesService {
3805
3805
  putPackageOnHold(body) {
3806
3806
  return this.http.put(`${this.url}/package-on-hold`, body).pipe(map(({ data }) => data));
3807
3807
  }
3808
+ /**
3809
+ * Retrieves inventory controls based on the provided query parameters.
3810
+ * @param params - Query parameters to filter, sort, or paginate inventory controls
3811
+ * @returns An Observable that emits the inventory controls data
3812
+ */
3813
+ getInventoryControls(params) {
3814
+ return this.http.get(`${this.url}/inventory-controls`, { params })
3815
+ .pipe(map(({ data }) => data));
3816
+ }
3817
+ /**
3818
+ * Fetches the inventory control details based on the provided inventory control ID.
3819
+ *
3820
+ * @param {number} id - The inventory control id
3821
+ * @return {Observable<InventoryControlOut>} An observable that emits the inventory control data.
3822
+ */
3823
+ getInventoryControl(id) {
3824
+ return this.http.get(`${this.url}/inventory-controls/${id}`)
3825
+ .pipe(map(({ data }) => data));
3826
+ }
3827
+ /**
3828
+ * Creates a new inventory control.
3829
+ * @param body - Inventory control data to create
3830
+ * @returns An Observable that emits the created inventory control
3831
+ */
3832
+ postInventoryControl(body) {
3833
+ return this.http.post(`${this.url}/inventory-controls`, body)
3834
+ .pipe(map(({ data }) => data));
3835
+ }
3836
+ /**
3837
+ * Updates an existing inventory control.
3838
+ * @param id - Identifier of the inventory control to update
3839
+ * @param body - Updated inventory control data
3840
+ * @returns An Observable that emits the updated inventory control
3841
+ */
3842
+ putInventoryControl(id, body) {
3843
+ return this.http.put(`${this.url}/inventory-controls/${id}`, body)
3844
+ .pipe(map(({ data }) => data));
3845
+ }
3846
+ /**
3847
+ * Deletes an inventory control by its identifier.
3848
+ * @param id - Identifier of the inventory control to delete
3849
+ * @returns An Observable that emits the operation result
3850
+ */
3851
+ deleteInventoryControl(id) {
3852
+ return this.http.delete(`${this.url}/inventory-controls/${id}`)
3853
+ .pipe(map(({ data }) => data));
3854
+ }
3855
+ /**
3856
+ * Get Inventory Capacity resource..
3857
+ *
3858
+ * @param {InventoryLocationCapacityIn} body - The inventory capacity data to be obtained.
3859
+ * @returns {Observable<InventoryLocationCapacityOut>} An observable with the Inventory Location Capacity resource.
3860
+ */
3861
+ postInventoryLocationCapacity(body) {
3862
+ return this.http.post(`${this.url}/inventory-location-capacities`, body).pipe(map(({ data }) => data));
3863
+ }
3808
3864
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3809
3865
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
3810
3866
  }
@@ -5811,6 +5867,11 @@ var RouteModelType;
5811
5867
  RouteModelType["COURIER"] = "Courier";
5812
5868
  RouteModelType["COURIER_ROUTE"] = "CourierRoute";
5813
5869
  })(RouteModelType || (RouteModelType = {}));
5870
+ var InventoryControlType;
5871
+ (function (InventoryControlType) {
5872
+ InventoryControlType["LAST_MILE"] = "lastMile";
5873
+ InventoryControlType["FIRST_MILE"] = "firstMile";
5874
+ })(InventoryControlType || (InventoryControlType = {}));
5814
5875
 
5815
5876
  var PaymentTypeCode;
5816
5877
  (function (PaymentTypeCode) {
@@ -6221,5 +6282,5 @@ const xmlHeaders = (format = 'object') => {
6221
6282
  * Generated bundle index. Do not edit.
6222
6283
  */
6223
6284
 
6224
- 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 };
6285
+ 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 };
6225
6286
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map