@experteam-mx/ngx-services 20.9.6 → 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
  }
@@ -5065,6 +5121,26 @@ class ApiServicesService {
5065
5121
  params: queryParams
5066
5122
  }).pipe(map(({ data }) => data));
5067
5123
  }
5124
+ /**
5125
+ * Starts an Adyen terminal payment.
5126
+ *
5127
+ * @param {AdyenPaymentIn} body - The payment request payload.
5128
+ * @return {Observable<AdyenPaymentOut>} An observable that emits the started payment identifiers.
5129
+ */
5130
+ postAdyenPayment(body) {
5131
+ return this.http.post(`${this.url}/adyen/payments`, body)
5132
+ .pipe(map(({ data }) => data));
5133
+ }
5134
+ /**
5135
+ * Aborts an in-progress Adyen terminal payment.
5136
+ *
5137
+ * @param {AdyenAbortIn} body - The abort request payload.
5138
+ * @return {Observable<AdyenAbortOut>} An observable that emits the abort service identifier.
5139
+ */
5140
+ postAdyenAbort(body) {
5141
+ return this.http.post(`${this.url}/adyen/aborts`, body)
5142
+ .pipe(map(({ data }) => data));
5143
+ }
5068
5144
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiServicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5069
5145
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiServicesService, providedIn: 'root' });
5070
5146
  }
@@ -5791,6 +5867,11 @@ var RouteModelType;
5791
5867
  RouteModelType["COURIER"] = "Courier";
5792
5868
  RouteModelType["COURIER_ROUTE"] = "CourierRoute";
5793
5869
  })(RouteModelType || (RouteModelType = {}));
5870
+ var InventoryControlType;
5871
+ (function (InventoryControlType) {
5872
+ InventoryControlType["LAST_MILE"] = "lastMile";
5873
+ InventoryControlType["FIRST_MILE"] = "firstMile";
5874
+ })(InventoryControlType || (InventoryControlType = {}));
5794
5875
 
5795
5876
  var PaymentTypeCode;
5796
5877
  (function (PaymentTypeCode) {
@@ -6201,5 +6282,5 @@ const xmlHeaders = (format = 'object') => {
6201
6282
  * Generated bundle index. Do not edit.
6202
6283
  */
6203
6284
 
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 };
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 };
6205
6286
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map