@experteam-mx/ngx-services 20.7.3 → 20.8.0-dev2.2
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.
|
@@ -2958,6 +2958,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
2958
2958
|
}]
|
|
2959
2959
|
}] });
|
|
2960
2960
|
|
|
2961
|
+
class ApiDropoffsService {
|
|
2962
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2963
|
+
http = inject(HttpClient);
|
|
2964
|
+
/**
|
|
2965
|
+
* Retrieves the URL for the Inventories API from the environment configurations.
|
|
2966
|
+
*
|
|
2967
|
+
* @return {string} The URL of the Inventories API.
|
|
2968
|
+
*/
|
|
2969
|
+
get url() {
|
|
2970
|
+
return this.environments.apiDropoffUrl ?? '';
|
|
2971
|
+
}
|
|
2972
|
+
/**
|
|
2973
|
+
* Send a Courier Request for Shipment.
|
|
2974
|
+
*
|
|
2975
|
+
* @param {ShipmentsBookingIn} body - The courier for shipment data.
|
|
2976
|
+
*/
|
|
2977
|
+
postShipmentsBooking(body) {
|
|
2978
|
+
return this.http.post(`${this.url}/shipments/booking`, body).pipe(map(({ data }) => data));
|
|
2979
|
+
}
|
|
2980
|
+
/**
|
|
2981
|
+
* Send a EReceipt for Shipment.
|
|
2982
|
+
*
|
|
2983
|
+
* @param {ShipmentsEReceiptIn} body - The EReceipt for Shipment data.
|
|
2984
|
+
*/
|
|
2985
|
+
postShipmentsEReceipt(body) {
|
|
2986
|
+
return this.http.post(`${this.url}/shipments/ereceipt`, body).pipe(map(({ data }) => data));
|
|
2987
|
+
}
|
|
2988
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDropoffsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2989
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDropoffsService, providedIn: 'root' });
|
|
2990
|
+
}
|
|
2991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDropoffsService, decorators: [{
|
|
2992
|
+
type: Injectable,
|
|
2993
|
+
args: [{
|
|
2994
|
+
providedIn: 'root'
|
|
2995
|
+
}]
|
|
2996
|
+
}] });
|
|
2997
|
+
|
|
2961
2998
|
class ApiEToolsAutoBillingService {
|
|
2962
2999
|
environments = inject(ENVIRONMENT_TOKEN);
|
|
2963
3000
|
http = inject(HttpClient);
|
|
@@ -3473,6 +3510,51 @@ class ApiInventoriesService {
|
|
|
3473
3510
|
return this.http.delete(`${this.url}/courier-routes/${id}`)
|
|
3474
3511
|
.pipe(map(({ data }) => data));
|
|
3475
3512
|
}
|
|
3513
|
+
/**
|
|
3514
|
+
* Get a package/shipment enabled to perform an action.
|
|
3515
|
+
*
|
|
3516
|
+
* @param {PackageValidationActionIn} body - package/shipment number to validate.
|
|
3517
|
+
* @returns {Observable<PackageValidationActionOut>} An observable with the package/shipment validated.
|
|
3518
|
+
*/
|
|
3519
|
+
postPackageValidationActions(body) {
|
|
3520
|
+
return this.http.post(`${this.url}/package-validation/actions`, body).pipe(map(({ data }) => data));
|
|
3521
|
+
}
|
|
3522
|
+
/**
|
|
3523
|
+
* Edit return first mile resource.
|
|
3524
|
+
*
|
|
3525
|
+
* @param {ReturnFirstMileIn} body - The first mile data to be updated.
|
|
3526
|
+
* @returns {Observable<ReturnFirstMileOut>} An observable with the first mile updated.
|
|
3527
|
+
*/
|
|
3528
|
+
putReturnFirstMile(body) {
|
|
3529
|
+
return this.http.put(`${this.url}/return-first-mile`, body).pipe(map(({ data }) => data));
|
|
3530
|
+
}
|
|
3531
|
+
/**
|
|
3532
|
+
* Replaces a Package Reassign Position resource.
|
|
3533
|
+
*
|
|
3534
|
+
* @param {PackageReassignPositionIn} body - The Package Reassign Position resource data to be updated.
|
|
3535
|
+
* @returns {Observable<PackageReassignPositionOut>} An observable with the Package Reassign Position resource updated.
|
|
3536
|
+
*/
|
|
3537
|
+
putPackageReassignPositions(body) {
|
|
3538
|
+
return this.http.put(`${this.url}/package-reassign-positions`, body).pipe(map(({ data }) => data));
|
|
3539
|
+
}
|
|
3540
|
+
/**
|
|
3541
|
+
* Edit missing package resource.
|
|
3542
|
+
*
|
|
3543
|
+
* @param {MissingPackagesIn} body - The missing package resource data to be updated.
|
|
3544
|
+
* @returns {Observable<MissingPackagesOut>} An observable with the missing package resource updated.
|
|
3545
|
+
*/
|
|
3546
|
+
putMissingPackages(body) {
|
|
3547
|
+
return this.http.put(`${this.url}/missing-packages`, body).pipe(map(({ data }) => data));
|
|
3548
|
+
}
|
|
3549
|
+
/**
|
|
3550
|
+
* Edit package on hold resource..
|
|
3551
|
+
*
|
|
3552
|
+
* @param {PackageOnHoldIn} body - The package on hold resource data to be updated.
|
|
3553
|
+
* @returns {Observable<PackageOnHoldOut>} An observable with the package on hold resource updated.
|
|
3554
|
+
*/
|
|
3555
|
+
putPackageOnHold(body) {
|
|
3556
|
+
return this.http.put(`${this.url}/package-on-hold`, body).pipe(map(({ data }) => data));
|
|
3557
|
+
}
|
|
3476
3558
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3477
3559
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
|
|
3478
3560
|
}
|
|
@@ -4838,41 +4920,63 @@ class ApiShipmentsService {
|
|
|
4838
4920
|
.pipe(map(({ data }) => data));
|
|
4839
4921
|
}
|
|
4840
4922
|
/**
|
|
4841
|
-
* Retrieves a paginated list of
|
|
4842
|
-
*
|
|
4843
|
-
* @
|
|
4923
|
+
* Retrieves a paginated list of document configurations.
|
|
4924
|
+
*
|
|
4925
|
+
* @param {QueryParams} params - Query parameters used for filtering, sorting, and pagination.
|
|
4926
|
+
* @returns {Observable<DocumentConfigurationsOut>} An observable containing the list of document configurations and pagination metadata.
|
|
4844
4927
|
*/
|
|
4845
|
-
|
|
4846
|
-
return this.http.get(`${this.url}/
|
|
4928
|
+
getDocumentConfigurations(params) {
|
|
4929
|
+
return this.http.get(`${this.url}/document-configurations`, {
|
|
4847
4930
|
params
|
|
4848
4931
|
}).pipe(map(({ data }) => data));
|
|
4849
4932
|
}
|
|
4850
4933
|
/**
|
|
4851
|
-
* Retrieves
|
|
4934
|
+
* Retrieves a document configuration by its identifier.
|
|
4935
|
+
*
|
|
4936
|
+
* @param {number} id - The unique identifier of the document configuration.
|
|
4937
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the document configuration details.
|
|
4938
|
+
*/
|
|
4939
|
+
getDocumentConfiguration(id) {
|
|
4940
|
+
return this.http.get(`${this.url}/document-configurations/${id}`).pipe(map(({ data }) => data));
|
|
4941
|
+
}
|
|
4942
|
+
/**
|
|
4943
|
+
* Creates a new document configuration.
|
|
4852
4944
|
*
|
|
4853
|
-
* @param {
|
|
4854
|
-
* @
|
|
4945
|
+
* @param {DocumentConfigurationIn} body - The document configuration data to create.
|
|
4946
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the newly created document configuration.
|
|
4855
4947
|
*/
|
|
4856
|
-
|
|
4857
|
-
return this.http.
|
|
4948
|
+
postDocumentConfiguration(body) {
|
|
4949
|
+
return this.http.post(`${this.url}/document-configurations`, body)
|
|
4950
|
+
.pipe(map(({ data }) => data));
|
|
4858
4951
|
}
|
|
4859
4952
|
/**
|
|
4860
|
-
*
|
|
4861
|
-
*
|
|
4862
|
-
* @
|
|
4953
|
+
* Updates an existing document configuration.
|
|
4954
|
+
*
|
|
4955
|
+
* @param {number} id - The unique identifier of the document configuration to update.
|
|
4956
|
+
* @param {DocumentConfigurationIn} body - The updated document configuration data.
|
|
4957
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the updated document configuration.
|
|
4863
4958
|
*/
|
|
4864
|
-
|
|
4865
|
-
return this.http.
|
|
4959
|
+
putDocumentConfiguration(id, body) {
|
|
4960
|
+
return this.http.put(`${this.url}/document-configurations/${id}`, body)
|
|
4866
4961
|
.pipe(map(({ data }) => data));
|
|
4867
4962
|
}
|
|
4868
4963
|
/**
|
|
4869
|
-
*
|
|
4870
|
-
*
|
|
4871
|
-
* @param {
|
|
4872
|
-
* @returns {Observable<
|
|
4964
|
+
* Generates a preview for a document configuration.
|
|
4965
|
+
*
|
|
4966
|
+
* @param {DocumentConfigurationsPreviewIn} body - The data used to generate the document preview.
|
|
4967
|
+
* @returns {Observable<DocumentConfigurationsPreviewOut>} An observable containing the generated document preview.
|
|
4873
4968
|
*/
|
|
4874
|
-
|
|
4875
|
-
return this.http.
|
|
4969
|
+
postDocumentConfigurationPreview(body) {
|
|
4970
|
+
return this.http.post(`${this.url}/document-configurations/preview`, body)
|
|
4971
|
+
.pipe(map(({ data }) => data));
|
|
4972
|
+
}
|
|
4973
|
+
/**
|
|
4974
|
+
* Retrieves the shipment documents associated with a document configuration
|
|
4975
|
+
* @param {number} id - The unique identifier of the document configuration
|
|
4976
|
+
* @returns {Observable<ShipmentDocumentsOut>} observable containing the shipment documents
|
|
4977
|
+
* */
|
|
4978
|
+
getDocuments(id) {
|
|
4979
|
+
return this.http.get(`${this.url}/shipments/${id}/documents`)
|
|
4876
4980
|
.pipe(map(({ data }) => data));
|
|
4877
4981
|
}
|
|
4878
4982
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -5398,6 +5502,35 @@ var Group;
|
|
|
5398
5502
|
Group["expiration"] = "expiration";
|
|
5399
5503
|
Group["verification"] = "verification";
|
|
5400
5504
|
})(Group || (Group = {}));
|
|
5505
|
+
var InventoryActions;
|
|
5506
|
+
(function (InventoryActions) {
|
|
5507
|
+
InventoryActions["INVENTORY_CHECK_OUT"] = "inventoryCheckOut";
|
|
5508
|
+
InventoryActions["INVENTORY_COURIER_PICK_UP"] = "inventoryCourierPickUp";
|
|
5509
|
+
InventoryActions["INVENTORY_LOCATION_BACKROOM"] = "inventoryLocationBackroom";
|
|
5510
|
+
InventoryActions["INVENTORY_MISSING_PIECES"] = "inventoryMissingPieces";
|
|
5511
|
+
InventoryActions["INVENTORY_RE_ENTRY_MISSING_PIECES"] = "inventoryReEntryMissingPieces";
|
|
5512
|
+
InventoryActions["INVENTORY_ODD_NOTIFICATION"] = "inventoryOddNotifications";
|
|
5513
|
+
InventoryActions["INVENTORY_ON_HOLD_MISSED_CONNECTION"] = "inventoryOnHoldMissed";
|
|
5514
|
+
})(InventoryActions || (InventoryActions = {}));
|
|
5515
|
+
var InventoryErrorCodes;
|
|
5516
|
+
(function (InventoryErrorCodes) {
|
|
5517
|
+
InventoryErrorCodes["CODE_SHP_FORMAT"] = "INV-E001";
|
|
5518
|
+
InventoryErrorCodes["CODE_PCKG_FORMAT"] = "INV-E002";
|
|
5519
|
+
InventoryErrorCodes["CODE_PACKAGE_NOT_FOUND"] = "INV-E101";
|
|
5520
|
+
InventoryErrorCodes["CODE_EXISTS_INVENTORY_DIFFERENT_LOCATION"] = "INV-E007";
|
|
5521
|
+
InventoryErrorCodes["CODE_PACKAGE_NOT_IN_STOCK"] = "INV-E105";
|
|
5522
|
+
InventoryErrorCodes["CODE_PACKAGE_NOT_MISSING"] = "INV-E107";
|
|
5523
|
+
InventoryErrorCodes["CODE_ACTION_NOT_VALID"] = "INV-E108";
|
|
5524
|
+
InventoryErrorCodes["CODE_MULTIPLE_PACKAGES"] = "INV-E109";
|
|
5525
|
+
InventoryErrorCodes["CODE_PACKAGE_NOT_CHECK_IN"] = "INV-E110";
|
|
5526
|
+
InventoryErrorCodes["CODE_PACKAGE_NOT_DROP_OFF"] = "INV-E111";
|
|
5527
|
+
})(InventoryErrorCodes || (InventoryErrorCodes = {}));
|
|
5528
|
+
var RouteModelType;
|
|
5529
|
+
(function (RouteModelType) {
|
|
5530
|
+
RouteModelType["ROUTE_ID"] = "RouteId";
|
|
5531
|
+
RouteModelType["COURIER"] = "Courier";
|
|
5532
|
+
RouteModelType["COURIER_ROUTE"] = "CourierRoute";
|
|
5533
|
+
})(RouteModelType || (RouteModelType = {}));
|
|
5401
5534
|
|
|
5402
5535
|
var PaymentTypeCode;
|
|
5403
5536
|
(function (PaymentTypeCode) {
|
|
@@ -5783,5 +5916,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
5783
5916
|
* Generated bundle index. Do not edit.
|
|
5784
5917
|
*/
|
|
5785
5918
|
|
|
5786
|
-
export { AccountTypeId, AccountTypeName, AlphaNumeric, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCheckpointsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, DefaultValueType, DepositTypeCode, DocumentStatusCode, ENVIRONMENT_TOKEN, Event, Group, NgxServicesModule, OpeningStatusCode, OperationModuleStatus, PaymentTypeCode, PrintMode, PrintableFormat, PrintersService, PrintersType, ShipmentIncomeTypeCode, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
5919
|
+
export { AccountTypeId, AccountTypeName, AlphaNumeric, 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 };
|
|
5787
5920
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|