@experteam-mx/ngx-services 20.9.5-dev1.0 → 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.
|
@@ -3764,6 +3764,53 @@ class ApiInventoriesService {
|
|
|
3764
3764
|
putPackageOnHold(body) {
|
|
3765
3765
|
return this.http.put(`${this.url}/package-on-hold`, body).pipe(map(({ data }) => data));
|
|
3766
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
|
+
}
|
|
3767
3814
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3768
3815
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
|
|
3769
3816
|
}
|
|
@@ -5750,6 +5797,11 @@ var RouteModelType;
|
|
|
5750
5797
|
RouteModelType["COURIER"] = "Courier";
|
|
5751
5798
|
RouteModelType["COURIER_ROUTE"] = "CourierRoute";
|
|
5752
5799
|
})(RouteModelType || (RouteModelType = {}));
|
|
5800
|
+
var InventoryControlType;
|
|
5801
|
+
(function (InventoryControlType) {
|
|
5802
|
+
InventoryControlType["LAST_MILE"] = "lastMile";
|
|
5803
|
+
InventoryControlType["FIRST_MILE"] = "firstMile";
|
|
5804
|
+
})(InventoryControlType || (InventoryControlType = {}));
|
|
5753
5805
|
|
|
5754
5806
|
var PaymentTypeCode;
|
|
5755
5807
|
(function (PaymentTypeCode) {
|
|
@@ -6160,5 +6212,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
6160
6212
|
* Generated bundle index. Do not edit.
|
|
6161
6213
|
*/
|
|
6162
6214
|
|
|
6163
|
-
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 };
|
|
6164
6216
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|