@experteam-mx/ngx-services 20.3.5-dev3.1 → 20.3.5

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.
@@ -547,6 +547,106 @@ class ApiCashOperationsService {
547
547
  return this.http.get(`${this.url}/deposits/${id}/slip`)
548
548
  .pipe(map(({ data }) => data));
549
549
  }
550
+ /**
551
+ * Creates a batch deposit slip for the provided deposit IDs.
552
+ *
553
+ * @param {number[]} ids - The deposit IDs to include in the batch slip.
554
+ * @returns {Observable<DepositSlipOut>} The generated deposit slip.
555
+ */
556
+ postDepositsBatchSlip(ids) {
557
+ return this.http.post(`${this.url}/deposits/batch/slip`, { ids })
558
+ .pipe(map(({ data }) => data));
559
+ }
560
+ /**
561
+ * Creates a new opening.
562
+ *
563
+ * @param {OpeningIn} body - The data to create the new opening.
564
+ * @returns {Observable<OpeningOut>} An observable that emits the newly created opening.
565
+ */
566
+ postOpening(body) {
567
+ return this.http.post(`${this.url}/openings`, { body })
568
+ .pipe(map(({ data }) => data));
569
+ }
570
+ /**
571
+ * Retrieves a specific opening by its ID.
572
+ *
573
+ * @param {number} id - The ID of the opening to retrieve.
574
+ * @returns {Observable<OpeningOut>} The requested opening.
575
+ */
576
+ getOpening(id) {
577
+ return this.http.get(`${this.url}/openings/${id}`)
578
+ .pipe(map(({ data }) => data));
579
+ }
580
+ /**
581
+ * Retrieves openings using the provided query parameters.
582
+ *
583
+ * @param {QueryParams} params - Query parameters for filtering openings.
584
+ * @returns {Observable<OpeningsOut>} The list of openings.
585
+ */
586
+ getOpenings(params) {
587
+ return this.http.get(`${this.url}/openings`, { params })
588
+ .pipe(map(({ data }) => data));
589
+ }
590
+ /**
591
+ * Retrieves bank accounts using the provided query parameters.
592
+ *
593
+ * @param {QueryParams} params - Query parameters for filtering bank accounts.
594
+ * @returns {Observable<BankAccountsOut>} The list of bank accounts.
595
+ */
596
+ getBankAccounts(params) {
597
+ return this.http.get(`${this.url}/bank-accounts`, { params })
598
+ .pipe(map(({ data }) => data));
599
+ }
600
+ /**
601
+ * Creates a pre-closing request for the current opening.
602
+ *
603
+ * @returns {Observable<{}>} The pre-closing request response.
604
+ */
605
+ postOpeningPreClosingRequest() {
606
+ return this.http.post(`${this.url}/openings/pre-closing-request`, {})
607
+ .pipe(map(({ data }) => data));
608
+ }
609
+ /**
610
+ * Updates a pre-closing request for the specified opening.
611
+ *
612
+ * @param {number} id - The ID of the opening to update.
613
+ * @param {OpeningPreClosingRequestIn} body - The updated pre-closing request data.
614
+ * @returns {Observable<OpeningOut>} The updated opening.
615
+ */
616
+ patchOpeningPreClosingRequest(id, body) {
617
+ return this.http.patch(`${this.url}/openings/pre-closing-request/${id}`, body)
618
+ .pipe(map(({ data }) => data));
619
+ }
620
+ /**
621
+ * Creates a pre-closing for the current opening.
622
+ *
623
+ * @returns {Observable<{}>} The pre-closing response.
624
+ */
625
+ postOpeningPreClosing() {
626
+ return this.http.post(`${this.url}/openings/pre-closing`, {})
627
+ .pipe(map(({ data }) => data));
628
+ }
629
+ /**
630
+ * Creates a closing record.
631
+ *
632
+ * @param {ClosingIn} body - The closing data to submit.
633
+ * @returns {Observable<ClosingOut>} The created closing record.
634
+ */
635
+ postClosing(body) {
636
+ return this.http.post(`${this.url}/closings`, body)
637
+ .pipe(map(({ data }) => data));
638
+ }
639
+ /**
640
+ * Updates an existing deposit.
641
+ *
642
+ * @param {number} id - The ID of the deposit to update.
643
+ * @param {DepositIn} body - The updated deposit data.
644
+ * @returns {Observable<DepositOut>} The updated deposit.
645
+ */
646
+ patchDeposit(id, body) {
647
+ return this.http.patch(`${this.url}/deposits/${id}`, body)
648
+ .pipe(map(({ data }) => data));
649
+ }
550
650
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiCashOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
551
651
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiCashOperationsService, providedIn: 'root' });
552
652
  }
@@ -3598,16 +3698,6 @@ class ApiInvoicesService {
3598
3698
  return this.http.get(`${this.url}/country-document-types`, { params })
3599
3699
  .pipe(map(({ data }) => data));
3600
3700
  }
3601
- /**
3602
- * Updates the customer information for a specific document customer.
3603
- * @param id - The unique identifier of the document customer
3604
- * @param data - The customer information to update
3605
- * @returns An Observable that emits the updated DocumentTypeRangeOut object
3606
- */
3607
- putOperationDocumentCustomer(id, data) {
3608
- return this.http.put(`${this.url}/operation/document/${id}/customer`, data)
3609
- .pipe(map(({ data }) => data));
3610
- }
3611
3701
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiInvoicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3612
3702
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
3613
3703
  }
@@ -4821,6 +4911,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
4821
4911
  }]
4822
4912
  }] });
4823
4913
 
4914
+ var DepositTypeCode;
4915
+ (function (DepositTypeCode) {
4916
+ DepositTypeCode["CASH"] = "CASH";
4917
+ DepositTypeCode["CHECK"] = "CHECK";
4918
+ })(DepositTypeCode || (DepositTypeCode = {}));
4919
+ var OpeningStatusCode;
4920
+ (function (OpeningStatusCode) {
4921
+ OpeningStatusCode["OPEN"] = "ABT";
4922
+ OpeningStatusCode["UPDATING_INVENTORY"] = "AIV";
4923
+ OpeningStatusCode["FINISH_INVENTORY_UPDATE"] = "FIV";
4924
+ OpeningStatusCode["PRE_CLOSING_REQUEST"] = "SPR";
4925
+ OpeningStatusCode["PRE_CLOSING_DENIED"] = "PRD";
4926
+ OpeningStatusCode["PRE_CLOSING_APPROVED"] = "PRA";
4927
+ OpeningStatusCode["PRE_CLOSING"] = "PRE";
4928
+ OpeningStatusCode["CLOSED"] = "CER";
4929
+ })(OpeningStatusCode || (OpeningStatusCode = {}));
4930
+ var TransferenceTypeCode;
4931
+ (function (TransferenceTypeCode) {
4932
+ TransferenceTypeCode["RETC"] = "RETC";
4933
+ })(TransferenceTypeCode || (TransferenceTypeCode = {}));
4934
+
4824
4935
  var ViewSectionOption;
4825
4936
  (function (ViewSectionOption) {
4826
4937
  ViewSectionOption["SHIPMENT"] = "shipment";
@@ -4868,13 +4979,15 @@ var Group;
4868
4979
  Group["verification"] = "verification";
4869
4980
  })(Group || (Group = {}));
4870
4981
 
4871
- var DocumentStatusCode;
4872
- (function (DocumentStatusCode) {
4873
- DocumentStatusCode[DocumentStatusCode["CANCELLED"] = 2] = "CANCELLED";
4874
- DocumentStatusCode[DocumentStatusCode["COMPLETED"] = 1] = "COMPLETED";
4875
- DocumentStatusCode[DocumentStatusCode["PROCESSING"] = 0] = "PROCESSING";
4876
- DocumentStatusCode[DocumentStatusCode["WITH_ERRORS"] = 3] = "WITH_ERRORS";
4877
- })(DocumentStatusCode || (DocumentStatusCode = {}));
4982
+ var PaymentTypeCode;
4983
+ (function (PaymentTypeCode) {
4984
+ PaymentTypeCode["CASH"] = "cash";
4985
+ PaymentTypeCode["CHECK"] = "check";
4986
+ PaymentTypeCode["CREDIT_CARD"] = "credit_card";
4987
+ PaymentTypeCode["DEBIT_CARD"] = "debit_card";
4988
+ PaymentTypeCode["ELECTRONIC_TRANSFER"] = "electronic_transfer";
4989
+ PaymentTypeCode["DEPOSIT"] = "deposit";
4990
+ })(PaymentTypeCode || (PaymentTypeCode = {}));
4878
4991
 
4879
4992
  class WebSocketsService {
4880
4993
  pusher;
@@ -5291,5 +5404,5 @@ const xmlHeaders = (format = 'object') => {
5291
5404
  * Generated bundle index. Do not edit.
5292
5405
  */
5293
5406
 
5294
- 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, DocumentStatusCode, ENVIRONMENT_TOKEN, Event, Group, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
5407
+ 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, ENVIRONMENT_TOKEN, Event, Group, NgxServicesModule, OpeningStatusCode, OperationModuleStatus, PaymentTypeCode, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
5295
5408
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map