@experteam-mx/ngx-services 20.3.5-dev3.1 → 20.3.6-dev1.0
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
|
}
|
|
@@ -1170,6 +1270,64 @@ class ApiCatalogsService {
|
|
|
1170
1270
|
return this.http.get(`${this.url}/package-locations`, { params })
|
|
1171
1271
|
.pipe(map(({ data }) => data));
|
|
1172
1272
|
}
|
|
1273
|
+
/**
|
|
1274
|
+
* Retrieves export reasons based on the provided query parameters.
|
|
1275
|
+
* @param params - Query parameters to filter, sort, or paginate export reasons
|
|
1276
|
+
* @returns An Observable that emits the export reasons data
|
|
1277
|
+
*/
|
|
1278
|
+
getExportReasons(params) {
|
|
1279
|
+
return this.http.get(`${this.url}/export-reasons`, { params })
|
|
1280
|
+
.pipe(map(({ data }) => data));
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* Creates a new export reason.
|
|
1284
|
+
* @param body - Export reason data to create
|
|
1285
|
+
* @returns An Observable that emits the created export reason
|
|
1286
|
+
*/
|
|
1287
|
+
postExportReason(body) {
|
|
1288
|
+
return this.http.post(`${this.url}/export-reasons`, body)
|
|
1289
|
+
.pipe(map(({ data }) => data));
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* Updates an existing export reason.
|
|
1293
|
+
* @param id - Identifier of the export reason to update
|
|
1294
|
+
* @param body - Updated export reason data
|
|
1295
|
+
* @returns An Observable that emits the updated export reason
|
|
1296
|
+
*/
|
|
1297
|
+
putExportReason(id, body) {
|
|
1298
|
+
return this.http.put(`${this.url}/export-reasons/${id}`, body)
|
|
1299
|
+
.pipe(map(({ data }) => data));
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Deletes an export reason by its identifier.
|
|
1303
|
+
* @param id - Identifier of the export reason to delete
|
|
1304
|
+
* @returns An Observable that emits the operation result
|
|
1305
|
+
*/
|
|
1306
|
+
deleteExportReason(id) {
|
|
1307
|
+
return this.http.delete(`${this.url}/export-reasons/${id}`)
|
|
1308
|
+
.pipe(map(({ data }) => data));
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* Updates the active status of an export reason.
|
|
1312
|
+
* @param id - Identifier of the export reason
|
|
1313
|
+
* @param isActive - Indicates whether the export reason should be active or inactive
|
|
1314
|
+
* @returns An Observable that emits the operation result
|
|
1315
|
+
*/
|
|
1316
|
+
patchExportReason(id, isActive) {
|
|
1317
|
+
return this.http.patch(`${this.url}/export-reasons/${id}`, {
|
|
1318
|
+
isActive
|
|
1319
|
+
})
|
|
1320
|
+
.pipe(map(({ data }) => data));
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Retrieves export reason types based on the provided query parameters.
|
|
1324
|
+
* @param params - Query parameters to filter, sort, or paginate export reason types
|
|
1325
|
+
* @returns An Observable that emits the export reason types data
|
|
1326
|
+
*/
|
|
1327
|
+
getExportReasonTypes(params) {
|
|
1328
|
+
return this.http.get(`${this.url}/export-reason-types`, { params })
|
|
1329
|
+
.pipe(map(({ data }) => data));
|
|
1330
|
+
}
|
|
1173
1331
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiCatalogsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1174
1332
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
|
|
1175
1333
|
}
|
|
@@ -3598,16 +3756,6 @@ class ApiInvoicesService {
|
|
|
3598
3756
|
return this.http.get(`${this.url}/country-document-types`, { params })
|
|
3599
3757
|
.pipe(map(({ data }) => data));
|
|
3600
3758
|
}
|
|
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
3759
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiInvoicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3612
3760
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
|
|
3613
3761
|
}
|
|
@@ -4821,6 +4969,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
4821
4969
|
}]
|
|
4822
4970
|
}] });
|
|
4823
4971
|
|
|
4972
|
+
var DepositTypeCode;
|
|
4973
|
+
(function (DepositTypeCode) {
|
|
4974
|
+
DepositTypeCode["CASH"] = "CASH";
|
|
4975
|
+
DepositTypeCode["CHECK"] = "CHECK";
|
|
4976
|
+
})(DepositTypeCode || (DepositTypeCode = {}));
|
|
4977
|
+
var OpeningStatusCode;
|
|
4978
|
+
(function (OpeningStatusCode) {
|
|
4979
|
+
OpeningStatusCode["OPEN"] = "ABT";
|
|
4980
|
+
OpeningStatusCode["UPDATING_INVENTORY"] = "AIV";
|
|
4981
|
+
OpeningStatusCode["FINISH_INVENTORY_UPDATE"] = "FIV";
|
|
4982
|
+
OpeningStatusCode["PRE_CLOSING_REQUEST"] = "SPR";
|
|
4983
|
+
OpeningStatusCode["PRE_CLOSING_DENIED"] = "PRD";
|
|
4984
|
+
OpeningStatusCode["PRE_CLOSING_APPROVED"] = "PRA";
|
|
4985
|
+
OpeningStatusCode["PRE_CLOSING"] = "PRE";
|
|
4986
|
+
OpeningStatusCode["CLOSED"] = "CER";
|
|
4987
|
+
})(OpeningStatusCode || (OpeningStatusCode = {}));
|
|
4988
|
+
var TransferenceTypeCode;
|
|
4989
|
+
(function (TransferenceTypeCode) {
|
|
4990
|
+
TransferenceTypeCode["RETC"] = "RETC";
|
|
4991
|
+
})(TransferenceTypeCode || (TransferenceTypeCode = {}));
|
|
4992
|
+
|
|
4824
4993
|
var ViewSectionOption;
|
|
4825
4994
|
(function (ViewSectionOption) {
|
|
4826
4995
|
ViewSectionOption["SHIPMENT"] = "shipment";
|
|
@@ -4868,13 +5037,15 @@ var Group;
|
|
|
4868
5037
|
Group["verification"] = "verification";
|
|
4869
5038
|
})(Group || (Group = {}));
|
|
4870
5039
|
|
|
4871
|
-
var
|
|
4872
|
-
(function (
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
5040
|
+
var PaymentTypeCode;
|
|
5041
|
+
(function (PaymentTypeCode) {
|
|
5042
|
+
PaymentTypeCode["CASH"] = "cash";
|
|
5043
|
+
PaymentTypeCode["CHECK"] = "check";
|
|
5044
|
+
PaymentTypeCode["CREDIT_CARD"] = "credit_card";
|
|
5045
|
+
PaymentTypeCode["DEBIT_CARD"] = "debit_card";
|
|
5046
|
+
PaymentTypeCode["ELECTRONIC_TRANSFER"] = "electronic_transfer";
|
|
5047
|
+
PaymentTypeCode["DEPOSIT"] = "deposit";
|
|
5048
|
+
})(PaymentTypeCode || (PaymentTypeCode = {}));
|
|
4878
5049
|
|
|
4879
5050
|
class WebSocketsService {
|
|
4880
5051
|
pusher;
|
|
@@ -5291,5 +5462,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
5291
5462
|
* Generated bundle index. Do not edit.
|
|
5292
5463
|
*/
|
|
5293
5464
|
|
|
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,
|
|
5465
|
+
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
5466
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|