@experteam-mx/ngx-services 20.5.0 → 20.6.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.
|
@@ -680,7 +680,7 @@ class ApiCatalogsService {
|
|
|
680
680
|
}).pipe(map(({ data }) => data));
|
|
681
681
|
}
|
|
682
682
|
/**
|
|
683
|
-
* Retrieves the list of
|
|
683
|
+
* Retrieves the list of identifications types
|
|
684
684
|
*
|
|
685
685
|
* @param {QueryParams} params - The query parameters used to fetch the identification types.
|
|
686
686
|
* @return {Observable<IdentificationTypesOut[]>} An observable that emits an array of identification type.
|
|
@@ -693,7 +693,7 @@ class ApiCatalogsService {
|
|
|
693
693
|
/**
|
|
694
694
|
* Retrieve a single identification type by its id.
|
|
695
695
|
*
|
|
696
|
-
* Sends an HTTP GET request to the
|
|
696
|
+
* Sends an HTTP GET request to the identification type endpoint and returns an Observable that emits
|
|
697
697
|
* the IdentificationTypeOut payload extracted from the API success envelope.
|
|
698
698
|
*
|
|
699
699
|
* @param id - The numeric identifier of the identification type to fetch.
|
|
@@ -849,6 +849,16 @@ class ApiCatalogsService {
|
|
|
849
849
|
return this.http.get(`${this.url}/zones`, { params })
|
|
850
850
|
.pipe(map(({ data }) => data));
|
|
851
851
|
}
|
|
852
|
+
/**
|
|
853
|
+
* Retrieves a zone by its ID.
|
|
854
|
+
*
|
|
855
|
+
* @param {number} id - The ID of the zone.
|
|
856
|
+
* @return {Observable<ZoneOut>} An observable containing the zone data.
|
|
857
|
+
*/
|
|
858
|
+
getZone(id) {
|
|
859
|
+
return this.http.get(`${this.url}/zones/${id}`)
|
|
860
|
+
.pipe(map(({ data }) => data));
|
|
861
|
+
}
|
|
852
862
|
/**
|
|
853
863
|
* Fetches the management areas based on the provided query parameters.
|
|
854
864
|
*
|
|
@@ -919,6 +929,16 @@ class ApiCatalogsService {
|
|
|
919
929
|
return this.http.get(`${this.url}/languages`, { params })
|
|
920
930
|
.pipe(map(({ data }) => data));
|
|
921
931
|
}
|
|
932
|
+
/**
|
|
933
|
+
* Retrieves a language by its ID.
|
|
934
|
+
*
|
|
935
|
+
* @param {number} id - The ID of the language.
|
|
936
|
+
* @return {Observable<LanguageOut>} An observable containing the language data.
|
|
937
|
+
*/
|
|
938
|
+
getLanguage(id) {
|
|
939
|
+
return this.http.get(`${this.url}/languages/${id}`)
|
|
940
|
+
.pipe(map(({ data }) => data));
|
|
941
|
+
}
|
|
922
942
|
/**
|
|
923
943
|
* Fetches the available units from the API based on the provided query parameters.
|
|
924
944
|
*
|
|
@@ -959,6 +979,17 @@ class ApiCatalogsService {
|
|
|
959
979
|
return this.http.get(`${this.url}/generic-folios`, { params })
|
|
960
980
|
.pipe(map(({ data }) => data));
|
|
961
981
|
}
|
|
982
|
+
/**
|
|
983
|
+
* Retrieves a generic folio by its country ID and code.
|
|
984
|
+
*
|
|
985
|
+
* @param {number} countryId - The ID of the country.
|
|
986
|
+
* @param {string} code - The code of the generic folio.
|
|
987
|
+
* @return {Observable<GenericFolioOut>} An observable containing the generic folio data.
|
|
988
|
+
*/
|
|
989
|
+
getGenericFolioByCountryAndCode(countryId, code) {
|
|
990
|
+
return this.http.get(`${this.url}/generic-folios/${countryId}/${code}`)
|
|
991
|
+
.pipe(map(({ data }) => data));
|
|
992
|
+
}
|
|
962
993
|
/**
|
|
963
994
|
* Sends a POST request to create or update a generic folio.
|
|
964
995
|
*
|
|
@@ -991,6 +1022,16 @@ class ApiCatalogsService {
|
|
|
991
1022
|
return this.http.put(`${this.url}/generic-folios/${id}`, body)
|
|
992
1023
|
.pipe(map(({ data }) => data));
|
|
993
1024
|
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Retrieves a product by its unique identifier.
|
|
1027
|
+
*
|
|
1028
|
+
* @param {number} id - The unique identifier of the product to retrieve.
|
|
1029
|
+
* @return {Observable<ProductOut>} An observable containing the product data.
|
|
1030
|
+
*/
|
|
1031
|
+
getProduct(id) {
|
|
1032
|
+
return this.http.get(`${this.url}/products/${id}`)
|
|
1033
|
+
.pipe(map(({ data }) => data));
|
|
1034
|
+
}
|
|
994
1035
|
/**
|
|
995
1036
|
* Sends a POST request to create a new product.
|
|
996
1037
|
*
|
|
@@ -1270,6 +1311,69 @@ class ApiCatalogsService {
|
|
|
1270
1311
|
return this.http.get(`${this.url}/package-locations`, { params })
|
|
1271
1312
|
.pipe(map(({ data }) => data));
|
|
1272
1313
|
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Retrieves trading transaction types based on the provided query parameters.
|
|
1316
|
+
* @param params - Query parameters to filter or configure the trading transaction types request
|
|
1317
|
+
* @returns An Observable that emits the trading transaction types data
|
|
1318
|
+
*/
|
|
1319
|
+
getTradingTransactionTypes(params) {
|
|
1320
|
+
return this.http.get(`${this.url}/trading-transaction-types`, { params })
|
|
1321
|
+
.pipe(map(({ data }) => data));
|
|
1322
|
+
}
|
|
1323
|
+
/**
|
|
1324
|
+
* Retrieves document types based on the provided query parameters.
|
|
1325
|
+
* @param params - Query parameters to filter or configure the document types request
|
|
1326
|
+
* @returns An Observable that emits the document types data
|
|
1327
|
+
*/
|
|
1328
|
+
getDocumentTypes(params) {
|
|
1329
|
+
return this.http.get(`${this.url}/document-types`, { params })
|
|
1330
|
+
.pipe(map(({ data }) => data));
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* Retrieves commodities based on the provided query parameters.
|
|
1334
|
+
* @param params - Query parameters to filter or configure the commodities request
|
|
1335
|
+
* @returns An Observable that emits the commodities data
|
|
1336
|
+
*/
|
|
1337
|
+
getCommodities(params) {
|
|
1338
|
+
return this.http.get(`${this.url}/commodities`, { params })
|
|
1339
|
+
.pipe(map(({ data }) => data));
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
* Retrieves quantity units based on the provided query parameters.
|
|
1343
|
+
* @param params - Query parameters to filter or configure the quantity units request
|
|
1344
|
+
* @returns An Observable that emits the quantity units data
|
|
1345
|
+
*/
|
|
1346
|
+
getQuantityUnits(params) {
|
|
1347
|
+
return this.http.get(`${this.url}/quantity-units`, { params })
|
|
1348
|
+
.pipe(map(({ data }) => data));
|
|
1349
|
+
}
|
|
1350
|
+
/**
|
|
1351
|
+
* Retrieves shipment descriptions based on the provided query parameters.
|
|
1352
|
+
* @param params - Query parameters to filter or configure the shipment descriptions request
|
|
1353
|
+
* @returns An Observable that emits the shipment descriptions data
|
|
1354
|
+
*/
|
|
1355
|
+
getShipmentDescriptions(params) {
|
|
1356
|
+
return this.http.get(`${this.url}/shipment-descriptions`, { params })
|
|
1357
|
+
.pipe(map(({ data }) => data));
|
|
1358
|
+
}
|
|
1359
|
+
/**
|
|
1360
|
+
* Retrieves price override approvers based on the provided query parameters.
|
|
1361
|
+
* @param params - Query parameters to filter or configure the price override approvers request
|
|
1362
|
+
* @returns An Observable that emits the price override approvers data
|
|
1363
|
+
*/
|
|
1364
|
+
getPriceOverrideApprovers(params) {
|
|
1365
|
+
return this.http.get(`${this.url}/price-override-approvers`, { params })
|
|
1366
|
+
.pipe(map(({ data }) => data));
|
|
1367
|
+
}
|
|
1368
|
+
/**
|
|
1369
|
+
* Retrieves price override reasons based on the provided query parameters.
|
|
1370
|
+
* @param params - Query parameters to filter or configure the price override reasons request
|
|
1371
|
+
* @returns An Observable that emits the price override reasons data
|
|
1372
|
+
*/
|
|
1373
|
+
getPriceOverrideReasons(params) {
|
|
1374
|
+
return this.http.get(`${this.url}/price-override-reasons`, { params })
|
|
1375
|
+
.pipe(map(({ data }) => data));
|
|
1376
|
+
}
|
|
1273
1377
|
/**
|
|
1274
1378
|
* Retrieves export reasons based on the provided query parameters.
|
|
1275
1379
|
* @param params - Query parameters to filter, sort, or paginate export reasons
|
|
@@ -1314,9 +1418,7 @@ class ApiCatalogsService {
|
|
|
1314
1418
|
* @returns An Observable that emits the operation result
|
|
1315
1419
|
*/
|
|
1316
1420
|
patchExportReason(id, isActive) {
|
|
1317
|
-
return this.http.patch(`${this.url}/export-reasons/${id}`, {
|
|
1318
|
-
isActive
|
|
1319
|
-
})
|
|
1421
|
+
return this.http.patch(`${this.url}/export-reasons/${id}`, { isActive })
|
|
1320
1422
|
.pipe(map(({ data }) => data));
|
|
1321
1423
|
}
|
|
1322
1424
|
/**
|
|
@@ -4994,6 +5096,14 @@ var ViewSectionOption;
|
|
|
4994
5096
|
ViewSectionOption["BILLING"] = "billing";
|
|
4995
5097
|
ViewSectionOption["CUSTOMER_RESTRICTION"] = "customerRestriction";
|
|
4996
5098
|
})(ViewSectionOption || (ViewSectionOption = {}));
|
|
5099
|
+
var ShipmentIncomeTypeCode;
|
|
5100
|
+
(function (ShipmentIncomeTypeCode) {
|
|
5101
|
+
ShipmentIncomeTypeCode["MANUAL"] = "EM";
|
|
5102
|
+
ShipmentIncomeTypeCode["MOBILE"] = "EE";
|
|
5103
|
+
ShipmentIncomeTypeCode["FOLIO"] = "EF";
|
|
5104
|
+
ShipmentIncomeTypeCode["EMPLOYEE"] = "EEM";
|
|
5105
|
+
ShipmentIncomeTypeCode["EMBASSY"] = "EMB";
|
|
5106
|
+
})(ShipmentIncomeTypeCode || (ShipmentIncomeTypeCode = {}));
|
|
4997
5107
|
|
|
4998
5108
|
var OperationModuleStatus;
|
|
4999
5109
|
(function (OperationModuleStatus) {
|
|
@@ -5426,5 +5536,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
5426
5536
|
* Generated bundle index. Do not edit.
|
|
5427
5537
|
*/
|
|
5428
5538
|
|
|
5429
|
-
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, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
5539
|
+
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, ShipmentIncomeTypeCode, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
5430
5540
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|