@experteam-mx/ngx-services 20.7.0-dev1.7 → 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);
@@ -3089,7 +3126,7 @@ class ApiExternalOperationsService {
3089
3126
  * Retrieves delivery confirmation details based on the provided OTP code.
3090
3127
  *
3091
3128
  * @param {string} otpCode - The OTP code used to search for delivery confirmation.
3092
- * @return {Observable<DeliveryConfirmationSearchOut>} An observable containing the delivery confirmation data.
3129
+ * @return {Observable<DeliveryConfirmationData>} An observable containing the delivery confirmation data.
3093
3130
  */
3094
3131
  getDeliveryConfirmation(otpCode) {
3095
3132
  return this.http.get(`${this.url}/delivery-confirmation/search/${otpCode}`)
@@ -3130,38 +3167,6 @@ class ApiExternalOperationsService {
3130
3167
  return this.http.put(`${this.url}/delivery-confirmation/confirmation/${otp}`, body)
3131
3168
  .pipe(map$1(({ data }) => data));
3132
3169
  }
3133
- /**
3134
- * Retrieves signature page confirmation information associated with an OTP code.
3135
- *
3136
- * @param {string} otpCode - OTP code used to search for the signature page confirmation.
3137
- * @returns {Observable<SignaturePageConfirmationOut>} An observable containing the signature page confirmation details.
3138
- */
3139
- getSignaturePageConfirmationSearch(otpCode) {
3140
- return this.http.get(`${this.url}/signature-page-confirmation/search/${otpCode}`)
3141
- .pipe(map$1(({ data }) => data));
3142
- }
3143
- /**
3144
- * Generates a signature page confirmation request for a shipment.
3145
- *
3146
- * @param {ShipmentSignaturePageIn} payload - Shipment data required to generate the signature page confirmation.
3147
- * @returns {Observable<SignaturePageConfirmationGenerateOut>} An observable containing the generated confirmation information.
3148
- */
3149
- postSignaturePageConfirmationGenerate(payload) {
3150
- return this.http.post(`${this.url}/signature-page-confirmation/generate`, payload)
3151
- .pipe(map$1(({ data }) => data));
3152
- }
3153
- /**
3154
- * Confirms a shipment signature page using an OTP code.
3155
- *
3156
- * @param {ShipmentSignaturePageConfirmationIn} input - Signature page confirmation data.
3157
- * @param {string} input.otp - OTP code used to validate the confirmation.
3158
- * @param {...Object} input.body - Additional confirmation information sent in the request body.
3159
- * @returns {Observable<{}>} An observable that emits the API response data.
3160
- */
3161
- putSignaturePageConfirmation({ otp, ...body }) {
3162
- return this.http.put(`${this.url}/signature-page-confirmation/${otp}`, body)
3163
- .pipe(map$1(({ data }) => data));
3164
- }
3165
3170
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3166
3171
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, providedIn: 'root' });
3167
3172
  }
@@ -3432,6 +3437,92 @@ class ApiInventoriesService {
3432
3437
  return this.http.get(`${this.url}/stock-update/packages/${id}`)
3433
3438
  .pipe(map(({ data }) => data));
3434
3439
  }
3440
+ /**
3441
+ * Retrieves a list of courier routes based on query parameters.
3442
+ *
3443
+ * @param {QueryParams} params - Query parameters for filtering the courier routes.
3444
+ * @returns {Observable<CourierRoutesOut>} An observable that emits the list of courier routes.
3445
+ */
3446
+ getCourierRoutes(params) {
3447
+ return this.http.get(`${this.url}/courier-routes`, {
3448
+ params
3449
+ }).pipe(map(({ data }) => data));
3450
+ }
3451
+ /**
3452
+ * Fetches the courier route details based on the provided courier route ID.
3453
+ *
3454
+ * @param {number} id - The courier route id
3455
+ * @return {Observable<CourierRouteOut>} An observable that emits the courier route data.
3456
+ */
3457
+ getCourierRoute(id) {
3458
+ return this.http.get(`${this.url}/courier-routes/${id}`)
3459
+ .pipe(map(({ data }) => data));
3460
+ }
3461
+ /**
3462
+ * Creates a new courier route.
3463
+ *
3464
+ * @param {CourierRouteIn} body - The data for the new courier route.
3465
+ * @returns {Observable<CourierRouteOut>} An observable the created courier route detail.
3466
+ */
3467
+ postCourierRoute(body) {
3468
+ return this.http.post(`${this.url}/courier-routes`, body).pipe(map(({ data }) => data));
3469
+ }
3470
+ /**
3471
+ * Update an existing courier route.
3472
+ *
3473
+ * @param {number} id - The identifier of the courier route record to update.
3474
+ * @param {CourierRouteIn} body - The courier route data to be updated.
3475
+ * @returns {Observable<CourierRouteOut>} An observable detail of the updated courier route.
3476
+ */
3477
+ putCourierRoute(id, body) {
3478
+ return this.http.put(`${this.url}/courier-routes/${id}`, body).pipe(map(({ data }) => data));
3479
+ }
3480
+ /**
3481
+ * Delete an existing courier route.
3482
+ *
3483
+ * @param {number} id - The unique identifier of the courier route to be deleted.
3484
+ * @returns {Observable<CourierRouteOut>} An observable that emits the result of the delete courier route.
3485
+ */
3486
+ deleteCourierRoute(id) {
3487
+ return this.http.delete(`${this.url}/courier-routes/${id}`)
3488
+ .pipe(map(({ data }) => data));
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
+ }
3435
3526
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3436
3527
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
3437
3528
  }
@@ -4810,63 +4901,41 @@ class ApiShipmentsService {
4810
4901
  .pipe(map(({ data }) => data));
4811
4902
  }
4812
4903
  /**
4813
- * Retrieves a paginated list of document configurations.
4814
- *
4815
- * @param {QueryParams} params - Query parameters used for filtering, sorting, and pagination.
4816
- * @returns {Observable<DocumentConfigurationsOut>} An observable containing the list of document configurations and pagination metadata.
4904
+ * Retrieves a paginated list of signature page settings
4905
+ * @param {QueryParams} params - Query parameters for filtering and pagination
4906
+ * @returns {Observable<SignaturePageSettingsOut>} Observable containing the list of signature page settings and pagination metadata
4817
4907
  */
4818
- getDocumentConfigurations(params) {
4819
- return this.http.get(`${this.url}/document-configurations`, {
4908
+ getSignaturePageSettings(params) {
4909
+ return this.http.get(`${this.url}/signature-page-settings`, {
4820
4910
  params
4821
4911
  }).pipe(map(({ data }) => data));
4822
4912
  }
4823
4913
  /**
4824
- * Retrieves a document configuration by its identifier.
4914
+ * Retrieves the details of a signature page setting based on its ID.
4825
4915
  *
4826
- * @param {number} id - The unique identifier of the document configuration.
4827
- * @returns {Observable<DocumentConfigurationOut>} An observable containing the document configuration details.
4916
+ * @param {number} id - The identifier of the signature page setting to fetch.
4917
+ * @return {Observable<SignaturePageSettingOut>} An observable that emits the signature page setting data.
4828
4918
  */
4829
- getDocumentConfiguration(id) {
4830
- return this.http.get(`${this.url}/document-configurations/${id}`).pipe(map(({ data }) => data));
4919
+ getSignaturePageSetting(id) {
4920
+ return this.http.get(`${this.url}/signature-page-settings/${id}`).pipe(map(({ data }) => data));
4831
4921
  }
4832
4922
  /**
4833
- * Creates a new document configuration.
4834
- *
4835
- * @param {DocumentConfigurationIn} body - The document configuration data to create.
4836
- * @returns {Observable<DocumentConfigurationOut>} An observable containing the newly created document configuration.
4923
+ * Creates a new signature page setting
4924
+ * @param {SignaturePageSettingIn} body - The signature page setting data to create
4925
+ * @returns {Observable<SignaturePageSettingOut>} Observable containing the created signature page setting with its assigned ID
4837
4926
  */
4838
- postDocumentConfiguration(body) {
4839
- return this.http.post(`${this.url}/document-configurations`, body)
4927
+ postSignaturePageSetting(body) {
4928
+ return this.http.post(`${this.url}/signature-page-settings`, body)
4840
4929
  .pipe(map(({ data }) => data));
4841
4930
  }
4842
4931
  /**
4843
- * Updates an existing document configuration.
4844
- *
4845
- * @param {number} id - The unique identifier of the document configuration to update.
4846
- * @param {DocumentConfigurationIn} body - The updated document configuration data.
4847
- * @returns {Observable<DocumentConfigurationOut>} An observable containing the updated document configuration.
4932
+ * Updates an existing signature page setting
4933
+ * @param {number} id - The unique identifier of the signature page setting to update
4934
+ * @param {SignaturePageSettingIn} body - The updated signature page setting data
4935
+ * @returns {Observable<SignaturePageSettingOut>} Observable containing the updated signature page setting
4848
4936
  */
4849
- putDocumentConfiguration(id, body) {
4850
- return this.http.put(`${this.url}/document-configurations/${id}`, body)
4851
- .pipe(map(({ data }) => data));
4852
- }
4853
- /**
4854
- * Generates a preview for a document configuration.
4855
- *
4856
- * @param {DocumentConfigurationsPreviewIn} body - The data used to generate the document preview.
4857
- * @returns {Observable<DocumentConfigurationsPreviewOut>} An observable containing the generated document preview.
4858
- */
4859
- postDocumentConfigurationPreview(body) {
4860
- return this.http.post(`${this.url}/document-configurations/preview`, body)
4861
- .pipe(map(({ data }) => data));
4862
- }
4863
- /**
4864
- * Retrieves the shipment documents associated with a document configuration
4865
- * @param {number} id - The unique identifier of the document configuration
4866
- * @returns {Observable<ShipmentDocumentsOut>} observable containing the shipment documents
4867
- * */
4868
- getDocuments(id) {
4869
- return this.http.get(`${this.url}/shipments/${id}/documents`)
4937
+ putSignaturePageSetting(id, body) {
4938
+ return this.http.put(`${this.url}/signature-page-settings/${id}`, body)
4870
4939
  .pipe(map(({ data }) => data));
4871
4940
  }
4872
4941
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
@@ -5374,6 +5443,34 @@ var Group;
5374
5443
  Group["expiration"] = "expiration";
5375
5444
  Group["verification"] = "verification";
5376
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 = {}));
5377
5474
 
5378
5475
  var PaymentTypeCode;
5379
5476
  (function (PaymentTypeCode) {
@@ -5759,5 +5856,5 @@ const xmlHeaders = (format = 'object') => {
5759
5856
  * Generated bundle index. Do not edit.
5760
5857
  */
5761
5858
 
5762
- 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 };
5763
5860
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map