@experteam-mx/ngx-services 20.7.1 → 20.7.3
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.
|
@@ -1440,6 +1440,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
1440
1440
|
}]
|
|
1441
1441
|
}] });
|
|
1442
1442
|
|
|
1443
|
+
class ApiCheckpointsService {
|
|
1444
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
1445
|
+
http = inject(HttpClient);
|
|
1446
|
+
/**
|
|
1447
|
+
* Retrieves the API checkpoints URL from the environment configuration.
|
|
1448
|
+
*
|
|
1449
|
+
* @returns {string} The API checkpoints URL.
|
|
1450
|
+
*/
|
|
1451
|
+
get url() {
|
|
1452
|
+
return this.environments.apiCheckpointsUrl ?? '';
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Retrieves event registers from the checkpoints API.
|
|
1456
|
+
*
|
|
1457
|
+
* @param {QueryParams} params - Query parameters for filtering and pagination.
|
|
1458
|
+
* @returns {Observable<EventRegistersOut>} An observable containing the event registers data.
|
|
1459
|
+
*/
|
|
1460
|
+
getEventRegisters(params) {
|
|
1461
|
+
return this.http.get(`${this.url}/event-registers`, { params })
|
|
1462
|
+
.pipe(map(({ data }) => data));
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* Retrieves checkpoints from the checkpoints API.
|
|
1466
|
+
*
|
|
1467
|
+
* @param {QueryParams} params - Query parameters for filtering and pagination.
|
|
1468
|
+
* @returns {Observable<CheckpointsInventoryOut>} An observable containing the checkpoints data.
|
|
1469
|
+
*/
|
|
1470
|
+
getCheckpoints(params) {
|
|
1471
|
+
return this.http.get(`${this.url}/checkpoints`, { params })
|
|
1472
|
+
.pipe(map(({ data }) => data));
|
|
1473
|
+
}
|
|
1474
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCheckpointsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1475
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCheckpointsService, providedIn: 'root' });
|
|
1476
|
+
}
|
|
1477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCheckpointsService, decorators: [{
|
|
1478
|
+
type: Injectable,
|
|
1479
|
+
args: [{
|
|
1480
|
+
providedIn: 'root'
|
|
1481
|
+
}]
|
|
1482
|
+
}] });
|
|
1483
|
+
|
|
1443
1484
|
class ApiCompaniesService {
|
|
1444
1485
|
environments = inject(ENVIRONMENT_TOKEN);
|
|
1445
1486
|
http = inject(HttpClient);
|
|
@@ -2047,19 +2088,18 @@ class ApiCompaniesService {
|
|
|
2047
2088
|
/**
|
|
2048
2089
|
* Retrieves the parameter values based on the provided parameter names.
|
|
2049
2090
|
*
|
|
2050
|
-
* @param {
|
|
2051
|
-
* @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.
|
|
2052
2092
|
* @return {Observable<ParametersValuesOut>} An observable that emits the fetched parameter values.
|
|
2053
2093
|
*/
|
|
2054
|
-
postParametersValues(
|
|
2055
|
-
const parameters =
|
|
2094
|
+
postParametersValues(names) {
|
|
2095
|
+
const parameters = names.map((name) => ({ name }));
|
|
2056
2096
|
return this.http.post(`${this.url}/parameters-values`, { parameters })
|
|
2057
2097
|
.pipe(map(({ data }) => data));
|
|
2058
2098
|
}
|
|
2059
2099
|
/**
|
|
2060
|
-
* Retrieves parameter values based on the provided
|
|
2100
|
+
* Retrieves parameter values based on the provided model configuration.
|
|
2061
2101
|
*
|
|
2062
|
-
* @param {
|
|
2102
|
+
* @param {ParametersByModelIn} parameters - The input object containing the criteria or model details to retrieve the parameters.
|
|
2063
2103
|
* @return {Observable<ParametersValuesOut>} An observable that emits the parameter values fetched from the server.
|
|
2064
2104
|
*/
|
|
2065
2105
|
postParameterValueByModel(parameters) {
|
|
@@ -2069,12 +2109,11 @@ class ApiCompaniesService {
|
|
|
2069
2109
|
/**
|
|
2070
2110
|
* Retrieves the value of a specified parameter.
|
|
2071
2111
|
*
|
|
2072
|
-
* @param {
|
|
2073
|
-
* @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.
|
|
2074
2113
|
* @return {Observable<ParameterValueOut>} An observable emitting the value of the specified parameter.
|
|
2075
2114
|
*/
|
|
2076
|
-
getParameterValue(
|
|
2077
|
-
return this.http.get(`${this.url}/parameters-values/${
|
|
2115
|
+
getParameterValue(name) {
|
|
2116
|
+
return this.http.get(`${this.url}/parameters-values/${name}`)
|
|
2078
2117
|
.pipe(map(({ data }) => data));
|
|
2079
2118
|
}
|
|
2080
2119
|
/**
|
|
@@ -2491,22 +2530,6 @@ class ApiCompaniesService {
|
|
|
2491
2530
|
return this.http.put(`${this.url}/tdx-account-settings/${id}`, body)
|
|
2492
2531
|
.pipe(map(({ data }) => data));
|
|
2493
2532
|
}
|
|
2494
|
-
/**
|
|
2495
|
-
* Retrieves the employees of a specific location using a provided token.
|
|
2496
|
-
*
|
|
2497
|
-
* @param params - Input parameters for the request, defined by the `LocationEmployeesIn` interface.
|
|
2498
|
-
* @returns An `Observable<LocationEmployeesOut>` that emits the employees
|
|
2499
|
-
* associated with the given location.
|
|
2500
|
-
* @returns The response type is `ApiSuccess<LocationEmployeesOut>`, from which the `data` field is extracted.
|
|
2501
|
-
*/
|
|
2502
|
-
getLocationEmployeesByToken(params) {
|
|
2503
|
-
return this.http.get(`${this.url}/location-employees`, {
|
|
2504
|
-
params: params.queryParams,
|
|
2505
|
-
headers: {
|
|
2506
|
-
Authorization: `Bearer ${params.token}`
|
|
2507
|
-
}
|
|
2508
|
-
}).pipe(map(({ data }) => data));
|
|
2509
|
-
}
|
|
2510
2533
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompaniesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2511
2534
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
|
|
2512
2535
|
}
|
|
@@ -3155,7 +3178,7 @@ class ApiInventoriesService {
|
|
|
3155
3178
|
* Retrieves a list of checkpoints based on query parameters.
|
|
3156
3179
|
*
|
|
3157
3180
|
* @param {QueryParams} params - Query parameters for filtering the checkpoints.
|
|
3158
|
-
* @returns {Observable<
|
|
3181
|
+
* @returns {Observable<CheckpointsInventoryOut>} The list of checkpoints.
|
|
3159
3182
|
*/
|
|
3160
3183
|
getCheckpoints(params) {
|
|
3161
3184
|
return this.http.get(`${this.url}/checkpoints`, {
|
|
@@ -4456,19 +4479,6 @@ class ApiSecurityService {
|
|
|
4456
4479
|
return this.http.get(`${this.url}/auth/me`)
|
|
4457
4480
|
.pipe(map(({ data }) => data));
|
|
4458
4481
|
}
|
|
4459
|
-
/**
|
|
4460
|
-
* Fetches the authenticated user's details from the server.
|
|
4461
|
-
*
|
|
4462
|
-
* @param token The JWT token used for authorization.
|
|
4463
|
-
* @return An Observable that emits the user's details encapsulated in a MeOut object.
|
|
4464
|
-
*/
|
|
4465
|
-
getOtherMe(token) {
|
|
4466
|
-
return this.http.get(`${this.url}/auth/me`, {
|
|
4467
|
-
headers: {
|
|
4468
|
-
Authorization: `Bearer ${token}`
|
|
4469
|
-
}
|
|
4470
|
-
}).pipe(map(({ data }) => data));
|
|
4471
|
-
}
|
|
4472
4482
|
/**
|
|
4473
4483
|
* Fetches a user by their unique ID.
|
|
4474
4484
|
*
|
|
@@ -5333,6 +5343,24 @@ var ShipmentIncomeTypeCode;
|
|
|
5333
5343
|
ShipmentIncomeTypeCode["EMBASSY"] = "EMB";
|
|
5334
5344
|
})(ShipmentIncomeTypeCode || (ShipmentIncomeTypeCode = {}));
|
|
5335
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
|
+
|
|
5336
5364
|
var OperationModuleStatus;
|
|
5337
5365
|
(function (OperationModuleStatus) {
|
|
5338
5366
|
OperationModuleStatus["CANCELED"] = "canceled";
|
|
@@ -5755,5 +5783,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
5755
5783
|
* Generated bundle index. Do not edit.
|
|
5756
5784
|
*/
|
|
5757
5785
|
|
|
5758
|
-
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, 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 };
|
|
5759
5787
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|