@experteam-mx/ngx-services 20.8.0-dev2.1 → 20.8.1

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,43 +2958,6 @@ 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
-
2998
2961
  class ApiEToolsAutoBillingService {
2999
2962
  environments = inject(ENVIRONMENT_TOKEN);
3000
2963
  http = inject(HttpClient);
@@ -3510,42 +3473,6 @@ class ApiInventoriesService {
3510
3473
  return this.http.delete(`${this.url}/courier-routes/${id}`)
3511
3474
  .pipe(map(({ data }) => data));
3512
3475
  }
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
3476
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3550
3477
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
3551
3478
  }
@@ -4911,41 +4838,54 @@ class ApiShipmentsService {
4911
4838
  .pipe(map(({ data }) => data));
4912
4839
  }
4913
4840
  /**
4914
- * Retrieves a paginated list of signature page settings
4915
- * @param {QueryParams} params - Query parameters for filtering and pagination
4916
- * @returns {Observable<SignaturePageSettingsOut>} Observable containing the list of signature page settings and pagination metadata
4841
+ * Retrieves a paginated list of document configurations.
4842
+ *
4843
+ * @param {QueryParams} params - Query parameters used for filtering, sorting, and pagination.
4844
+ * @returns {Observable<DocumentConfigurationsOut>} An observable containing the list of document configurations and pagination metadata.
4917
4845
  */
4918
- getSignaturePageSettings(params) {
4919
- return this.http.get(`${this.url}/signature-page-settings`, {
4846
+ getDocumentConfigurations(params) {
4847
+ return this.http.get(`${this.url}/document-configurations`, {
4920
4848
  params
4921
4849
  }).pipe(map(({ data }) => data));
4922
4850
  }
4923
4851
  /**
4924
- * Retrieves the details of a signature page setting based on its ID.
4852
+ * Retrieves a document configuration by its identifier.
4853
+ *
4854
+ * @param {number} id - The unique identifier of the document configuration.
4855
+ * @returns {Observable<DocumentConfigurationOut>} An observable containing the document configuration details.
4856
+ */
4857
+ getDocumentConfiguration(id) {
4858
+ return this.http.get(`${this.url}/document-configurations/${id}`).pipe(map(({ data }) => data));
4859
+ }
4860
+ /**
4861
+ * Creates a new document configuration.
4925
4862
  *
4926
- * @param {number} id - The identifier of the signature page setting to fetch.
4927
- * @return {Observable<SignaturePageSettingOut>} An observable that emits the signature page setting data.
4863
+ * @param {DocumentConfigurationIn} body - The document configuration data to create.
4864
+ * @returns {Observable<DocumentConfigurationOut>} An observable containing the newly created document configuration.
4928
4865
  */
4929
- getSignaturePageSetting(id) {
4930
- return this.http.get(`${this.url}/signature-page-settings/${id}`).pipe(map(({ data }) => data));
4866
+ postDocumentConfiguration(body) {
4867
+ return this.http.post(`${this.url}/document-configurations`, body)
4868
+ .pipe(map(({ data }) => data));
4931
4869
  }
4932
4870
  /**
4933
- * Creates a new signature page setting
4934
- * @param {SignaturePageSettingIn} body - The signature page setting data to create
4935
- * @returns {Observable<SignaturePageSettingOut>} Observable containing the created signature page setting with its assigned ID
4871
+ * Updates an existing document configuration.
4872
+ *
4873
+ * @param {number} id - The unique identifier of the document configuration to update.
4874
+ * @param {DocumentConfigurationIn} body - The updated document configuration data.
4875
+ * @returns {Observable<DocumentConfigurationOut>} An observable containing the updated document configuration.
4936
4876
  */
4937
- postSignaturePageSetting(body) {
4938
- return this.http.post(`${this.url}/signature-page-settings`, body)
4877
+ putDocumentConfiguration(id, body) {
4878
+ return this.http.put(`${this.url}/document-configurations/${id}`, body)
4939
4879
  .pipe(map(({ data }) => data));
4940
4880
  }
4941
4881
  /**
4942
- * Updates an existing signature page setting
4943
- * @param {number} id - The unique identifier of the signature page setting to update
4944
- * @param {SignaturePageSettingIn} body - The updated signature page setting data
4945
- * @returns {Observable<SignaturePageSettingOut>} Observable containing the updated signature page setting
4882
+ * Generates a preview for a document configuration.
4883
+ *
4884
+ * @param {DocumentConfigurationsPreviewIn} body - The data used to generate the document preview.
4885
+ * @returns {Observable<DocumentConfigurationsPreviewOut>} An observable containing the generated document preview.
4946
4886
  */
4947
- putSignaturePageSetting(id, body) {
4948
- return this.http.put(`${this.url}/signature-page-settings/${id}`, body)
4887
+ postDocumentConfigurationPreview(body) {
4888
+ return this.http.post(`${this.url}/document-configurations/preview`, body)
4949
4889
  .pipe(map(({ data }) => data));
4950
4890
  }
4951
4891
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
@@ -5471,34 +5411,6 @@ var Group;
5471
5411
  Group["expiration"] = "expiration";
5472
5412
  Group["verification"] = "verification";
5473
5413
  })(Group || (Group = {}));
5474
- var InventoryActions;
5475
- (function (InventoryActions) {
5476
- InventoryActions["INVENTORY_CHECK_OUT"] = "inventoryCheckOut";
5477
- InventoryActions["INVENTORY_COURIER_PICK_UP"] = "inventoryCourierPickUp";
5478
- InventoryActions["INVENTORY_LOCATION_BACKROOM"] = "inventoryLocationBackroom";
5479
- InventoryActions["INVENTORY_MISSING_PIECES"] = "inventoryMissingPieces";
5480
- InventoryActions["INVENTORY_RE_ENTRY_MISSING_PIECES"] = "inventoryReEntryMissingPieces";
5481
- InventoryActions["INVENTORY_ODD_NOTIFICATION"] = "inventoryOddNotifications";
5482
- })(InventoryActions || (InventoryActions = {}));
5483
- var InventoryErrorCodes;
5484
- (function (InventoryErrorCodes) {
5485
- InventoryErrorCodes["CODE_SHP_FORMAT"] = "INV-E001";
5486
- InventoryErrorCodes["CODE_PCKG_FORMAT"] = "INV-E002";
5487
- InventoryErrorCodes["CODE_PACKAGE_NOT_FOUND"] = "INV-E101";
5488
- InventoryErrorCodes["CODE_EXISTS_INVENTORY_DIFFERENT_LOCATION"] = "INV-E007";
5489
- InventoryErrorCodes["CODE_PACKAGE_NOT_IN_STOCK"] = "INV-E105";
5490
- InventoryErrorCodes["CODE_PACKAGE_NOT_MISSING"] = "INV-E107";
5491
- InventoryErrorCodes["CODE_ACTION_NOT_VALID"] = "INV-E108";
5492
- InventoryErrorCodes["CODE_MULTIPLE_PACKAGES"] = "INV-E109";
5493
- InventoryErrorCodes["CODE_PACKAGE_NOT_CHECK_IN"] = "INV-E110";
5494
- InventoryErrorCodes["CODE_PACKAGE_NOT_DROP_OFF"] = "INV-E111";
5495
- })(InventoryErrorCodes || (InventoryErrorCodes = {}));
5496
- var RouteModelType;
5497
- (function (RouteModelType) {
5498
- RouteModelType["ROUTE_ID"] = "RouteId";
5499
- RouteModelType["COURIER"] = "Courier";
5500
- RouteModelType["COURIER_ROUTE"] = "CourierRoute";
5501
- })(RouteModelType || (RouteModelType = {}));
5502
5414
 
5503
5415
  var PaymentTypeCode;
5504
5416
  (function (PaymentTypeCode) {
@@ -5884,5 +5796,5 @@ const xmlHeaders = (format = 'object') => {
5884
5796
  * Generated bundle index. Do not edit.
5885
5797
  */
5886
5798
 
5887
- 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 };
5799
+ 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 };
5888
5800
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map