@experteam-mx/ngx-services 20.7.0-dev2.1 → 20.7.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.
@@ -2935,6 +2935,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
2935
2935
  }]
2936
2936
  }] });
2937
2937
 
2938
+ class ApiDropoffsService {
2939
+ environments = inject(ENVIRONMENT_TOKEN);
2940
+ http = inject(HttpClient);
2941
+ /**
2942
+ * Retrieves the URL for the Inventories API from the environment configurations.
2943
+ *
2944
+ * @return {string} The URL of the Inventories API.
2945
+ */
2946
+ get url() {
2947
+ return this.environments.apiDropoffUrl ?? '';
2948
+ }
2949
+ /**
2950
+ * Send a Courier Request for Shipment.
2951
+ *
2952
+ * @param {ShipmentsBookingIn} body - The courier for shipment data.
2953
+ */
2954
+ postShipmentsBooking(body) {
2955
+ return this.http.post(`${this.url}/shipments/booking`, body).pipe(map(({ data }) => data));
2956
+ }
2957
+ /**
2958
+ * Send a EReceipt for Shipment.
2959
+ *
2960
+ * @param {ShipmentsEReceiptIn} body - The EReceipt for Shipment data.
2961
+ */
2962
+ postShipmentsEReceipt(body) {
2963
+ return this.http.post(`${this.url}/shipments/ereceipt`, body).pipe(map(({ data }) => data));
2964
+ }
2965
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDropoffsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2966
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDropoffsService, providedIn: 'root' });
2967
+ }
2968
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDropoffsService, decorators: [{
2969
+ type: Injectable,
2970
+ args: [{
2971
+ providedIn: 'root'
2972
+ }]
2973
+ }] });
2974
+
2938
2975
  class ApiEToolsAutoBillingService {
2939
2976
  environments = inject(ENVIRONMENT_TOKEN);
2940
2977
  http = inject(HttpClient);
@@ -3450,6 +3487,42 @@ class ApiInventoriesService {
3450
3487
  return this.http.delete(`${this.url}/courier-routes/${id}`)
3451
3488
  .pipe(map(({ data }) => data));
3452
3489
  }
3490
+ /**
3491
+ * Get a package/shipment enabled to perform an action.
3492
+ *
3493
+ * @param {PackageValidationActionIn} body - package/shipment number to validate.
3494
+ * @returns {Observable<PackageValidationActionOut>} An observable with the package/shipment validated.
3495
+ */
3496
+ postPackageValidationActions(body) {
3497
+ return this.http.post(`${this.url}/package-validation/actions`, body).pipe(map(({ data }) => data));
3498
+ }
3499
+ /**
3500
+ * Edit return first mile resource.
3501
+ *
3502
+ * @param {ReturnFirstMileIn} body - The first mile data to be updated.
3503
+ * @returns {Observable<ReturnFirstMileOut>} An observable with the first mile updated.
3504
+ */
3505
+ putReturnFirstMile(body) {
3506
+ return this.http.put(`${this.url}/return-first-mile`, body).pipe(map(({ data }) => data));
3507
+ }
3508
+ /**
3509
+ * Replaces a Package Reassign Position resource.
3510
+ *
3511
+ * @param {PackageReassignPositionIn} body - The Package Reassign Position resource data to be updated.
3512
+ * @returns {Observable<PackageReassignPositionOut>} An observable with the Package Reassign Position resource updated.
3513
+ */
3514
+ putPackageReassignPositions(body) {
3515
+ return this.http.put(`${this.url}/package-reassign-positions`, body).pipe(map(({ data }) => data));
3516
+ }
3517
+ /**
3518
+ * Edit missing package resource.
3519
+ *
3520
+ * @param {MissingPackagesIn} body - The missing package resource data to be updated.
3521
+ * @returns {Observable<MissingPackagesOut>} An observable with the missing package resource updated.
3522
+ */
3523
+ putMissingPackages(body) {
3524
+ return this.http.put(`${this.url}/missing-packages`, body).pipe(map(({ data }) => data));
3525
+ }
3453
3526
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3454
3527
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
3455
3528
  }
@@ -5370,6 +5443,34 @@ var Group;
5370
5443
  Group["expiration"] = "expiration";
5371
5444
  Group["verification"] = "verification";
5372
5445
  })(Group || (Group = {}));
5446
+ var InventoryActions;
5447
+ (function (InventoryActions) {
5448
+ InventoryActions["INVENTORY_CHECK_OUT"] = "inventoryCheckOut";
5449
+ InventoryActions["INVENTORY_COURIER_PICK_UP"] = "inventoryCourierPickUp";
5450
+ InventoryActions["INVENTORY_LOCATION_BACKROOM"] = "inventoryLocationBackroom";
5451
+ InventoryActions["INVENTORY_MISSING_PIECES"] = "inventoryMissingPieces";
5452
+ InventoryActions["INVENTORY_RE_ENTRY_MISSING_PIECES"] = "inventoryReEntryMissingPieces";
5453
+ InventoryActions["INVENTORY_ODD_NOTIFICATION"] = "inventoryOddNotifications";
5454
+ })(InventoryActions || (InventoryActions = {}));
5455
+ var InventoryErrorCodes;
5456
+ (function (InventoryErrorCodes) {
5457
+ InventoryErrorCodes["CODE_SHP_FORMAT"] = "INV-E001";
5458
+ InventoryErrorCodes["CODE_PCKG_FORMAT"] = "INV-E002";
5459
+ InventoryErrorCodes["CODE_PACKAGE_NOT_FOUND"] = "INV-E101";
5460
+ InventoryErrorCodes["CODE_EXISTS_INVENTORY_DIFFERENT_LOCATION"] = "INV-E007";
5461
+ InventoryErrorCodes["CODE_PACKAGE_NOT_IN_STOCK"] = "INV-E105";
5462
+ InventoryErrorCodes["CODE_PACKAGE_NOT_MISSING"] = "INV-E107";
5463
+ InventoryErrorCodes["CODE_ACTION_NOT_VALID"] = "INV-E108";
5464
+ InventoryErrorCodes["CODE_MULTIPLE_PACKAGES"] = "INV-E109";
5465
+ InventoryErrorCodes["CODE_PACKAGE_NOT_CHECK_IN"] = "INV-E110";
5466
+ InventoryErrorCodes["CODE_PACKAGE_NOT_DROP_OFF"] = "INV-E111";
5467
+ })(InventoryErrorCodes || (InventoryErrorCodes = {}));
5468
+ var RouteModelType;
5469
+ (function (RouteModelType) {
5470
+ RouteModelType["ROUTE_ID"] = "RouteId";
5471
+ RouteModelType["COURIER"] = "Courier";
5472
+ RouteModelType["COURIER_ROUTE"] = "CourierRoute";
5473
+ })(RouteModelType || (RouteModelType = {}));
5373
5474
 
5374
5475
  var PaymentTypeCode;
5375
5476
  (function (PaymentTypeCode) {
@@ -5755,5 +5856,5 @@ const xmlHeaders = (format = 'object') => {
5755
5856
  * Generated bundle index. Do not edit.
5756
5857
  */
5757
5858
 
5758
- export { AlphaNumeric, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, 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 };
5859
+ export { AlphaNumeric, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, 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 };
5759
5860
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map