@experteam-mx/ngx-services 20.7.2 → 20.8.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.
|
@@ -2088,19 +2088,18 @@ class ApiCompaniesService {
|
|
|
2088
2088
|
/**
|
|
2089
2089
|
* Retrieves the parameter values based on the provided parameter names.
|
|
2090
2090
|
*
|
|
2091
|
-
* @param {
|
|
2092
|
-
* @param {string[]} params.paramNames - An array of parameter names for which the values need to be fetched.
|
|
2091
|
+
* @param {string[]} names - An array of parameter names for which the values need to be fetched.
|
|
2093
2092
|
* @return {Observable<ParametersValuesOut>} An observable that emits the fetched parameter values.
|
|
2094
2093
|
*/
|
|
2095
|
-
postParametersValues(
|
|
2096
|
-
const parameters =
|
|
2094
|
+
postParametersValues(names) {
|
|
2095
|
+
const parameters = names.map((name) => ({ name }));
|
|
2097
2096
|
return this.http.post(`${this.url}/parameters-values`, { parameters })
|
|
2098
2097
|
.pipe(map(({ data }) => data));
|
|
2099
2098
|
}
|
|
2100
2099
|
/**
|
|
2101
|
-
* Retrieves parameter values based on the provided
|
|
2100
|
+
* Retrieves parameter values based on the provided model configuration.
|
|
2102
2101
|
*
|
|
2103
|
-
* @param {
|
|
2102
|
+
* @param {ParametersByModelIn} parameters - The input object containing the criteria or model details to retrieve the parameters.
|
|
2104
2103
|
* @return {Observable<ParametersValuesOut>} An observable that emits the parameter values fetched from the server.
|
|
2105
2104
|
*/
|
|
2106
2105
|
postParameterValueByModel(parameters) {
|
|
@@ -2110,12 +2109,11 @@ class ApiCompaniesService {
|
|
|
2110
2109
|
/**
|
|
2111
2110
|
* Retrieves the value of a specified parameter.
|
|
2112
2111
|
*
|
|
2113
|
-
* @param {
|
|
2114
|
-
* @param {string} input.paramName - The name of the parameter whose value is to be retrieved.
|
|
2112
|
+
* @param {string} name - The name of the parameter whose value is to be retrieved.
|
|
2115
2113
|
* @return {Observable<ParameterValueOut>} An observable emitting the value of the specified parameter.
|
|
2116
2114
|
*/
|
|
2117
|
-
getParameterValue(
|
|
2118
|
-
return this.http.get(`${this.url}/parameters-values/${
|
|
2115
|
+
getParameterValue(name) {
|
|
2116
|
+
return this.http.get(`${this.url}/parameters-values/${name}`)
|
|
2119
2117
|
.pipe(map(({ data }) => data));
|
|
2120
2118
|
}
|
|
2121
2119
|
/**
|
|
@@ -2532,22 +2530,6 @@ class ApiCompaniesService {
|
|
|
2532
2530
|
return this.http.put(`${this.url}/tdx-account-settings/${id}`, body)
|
|
2533
2531
|
.pipe(map(({ data }) => data));
|
|
2534
2532
|
}
|
|
2535
|
-
/**
|
|
2536
|
-
* Retrieves the employees of a specific location using a provided token.
|
|
2537
|
-
*
|
|
2538
|
-
* @param params - Input parameters for the request, defined by the `LocationEmployeesIn` interface.
|
|
2539
|
-
* @returns An `Observable<LocationEmployeesOut>` that emits the employees
|
|
2540
|
-
* associated with the given location.
|
|
2541
|
-
* @returns The response type is `ApiSuccess<LocationEmployeesOut>`, from which the `data` field is extracted.
|
|
2542
|
-
*/
|
|
2543
|
-
getLocationEmployeesByToken(params) {
|
|
2544
|
-
return this.http.get(`${this.url}/location-employees`, {
|
|
2545
|
-
params: params.queryParams,
|
|
2546
|
-
headers: {
|
|
2547
|
-
Authorization: `Bearer ${params.token}`
|
|
2548
|
-
}
|
|
2549
|
-
}).pipe(map(({ data }) => data));
|
|
2550
|
-
}
|
|
2551
2533
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompaniesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2552
2534
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
|
|
2553
2535
|
}
|
|
@@ -4497,19 +4479,6 @@ class ApiSecurityService {
|
|
|
4497
4479
|
return this.http.get(`${this.url}/auth/me`)
|
|
4498
4480
|
.pipe(map(({ data }) => data));
|
|
4499
4481
|
}
|
|
4500
|
-
/**
|
|
4501
|
-
* Fetches the authenticated user's details from the server.
|
|
4502
|
-
*
|
|
4503
|
-
* @param token The JWT token used for authorization.
|
|
4504
|
-
* @return An Observable that emits the user's details encapsulated in a MeOut object.
|
|
4505
|
-
*/
|
|
4506
|
-
getOtherMe(token) {
|
|
4507
|
-
return this.http.get(`${this.url}/auth/me`, {
|
|
4508
|
-
headers: {
|
|
4509
|
-
Authorization: `Bearer ${token}`
|
|
4510
|
-
}
|
|
4511
|
-
}).pipe(map(({ data }) => data));
|
|
4512
|
-
}
|
|
4513
4482
|
/**
|
|
4514
4483
|
* Fetches a user by their unique ID.
|
|
4515
4484
|
*
|
|
@@ -5374,6 +5343,24 @@ var ShipmentIncomeTypeCode;
|
|
|
5374
5343
|
ShipmentIncomeTypeCode["EMBASSY"] = "EMB";
|
|
5375
5344
|
})(ShipmentIncomeTypeCode || (ShipmentIncomeTypeCode = {}));
|
|
5376
5345
|
|
|
5346
|
+
var AccountTypeId;
|
|
5347
|
+
(function (AccountTypeId) {
|
|
5348
|
+
AccountTypeId[AccountTypeId["CASH"] = 1] = "CASH";
|
|
5349
|
+
AccountTypeId[AccountTypeId["COMAT"] = 2] = "COMAT";
|
|
5350
|
+
AccountTypeId[AccountTypeId["FOC"] = 3] = "FOC";
|
|
5351
|
+
AccountTypeId[AccountTypeId["EMPLOYEE"] = 4] = "EMPLOYEE";
|
|
5352
|
+
AccountTypeId[AccountTypeId["RPA"] = 5] = "RPA";
|
|
5353
|
+
AccountTypeId[AccountTypeId["GL"] = 6] = "GL";
|
|
5354
|
+
AccountTypeId[AccountTypeId["CUS"] = 7] = "CUS";
|
|
5355
|
+
AccountTypeId[AccountTypeId["VENDOR"] = 8] = "VENDOR";
|
|
5356
|
+
AccountTypeId[AccountTypeId["WPX"] = 9] = "WPX";
|
|
5357
|
+
AccountTypeId[AccountTypeId["DHL"] = 12] = "DHL";
|
|
5358
|
+
})(AccountTypeId || (AccountTypeId = {}));
|
|
5359
|
+
var AccountTypeName;
|
|
5360
|
+
(function (AccountTypeName) {
|
|
5361
|
+
AccountTypeName["EMBASSY"] = "EMBASSY";
|
|
5362
|
+
})(AccountTypeName || (AccountTypeName = {}));
|
|
5363
|
+
|
|
5377
5364
|
var OperationModuleStatus;
|
|
5378
5365
|
(function (OperationModuleStatus) {
|
|
5379
5366
|
OperationModuleStatus["CANCELED"] = "canceled";
|
|
@@ -5796,5 +5783,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
5796
5783
|
* Generated bundle index. Do not edit.
|
|
5797
5784
|
*/
|
|
5798
5785
|
|
|
5799
|
-
export { 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 };
|
|
5786
|
+
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 };
|
|
5800
5787
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|