@experteam-mx/ngx-services 20.7.2 → 20.8.0-dev2.1
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
|
}
|
|
@@ -2976,6 +2958,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
2976
2958
|
}]
|
|
2977
2959
|
}] });
|
|
2978
2960
|
|
|
2961
|
+
class ApiDropoffsService {
|
|
2962
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2963
|
+
http = inject(HttpClient);
|
|
2964
|
+
/**
|
|
2965
|
+
* Retrieves the URL for the Inventories API from the environment configurations.
|
|
2966
|
+
*
|
|
2967
|
+
* @return {string} The URL of the Inventories API.
|
|
2968
|
+
*/
|
|
2969
|
+
get url() {
|
|
2970
|
+
return this.environments.apiDropoffUrl ?? '';
|
|
2971
|
+
}
|
|
2972
|
+
/**
|
|
2973
|
+
* Send a Courier Request for Shipment.
|
|
2974
|
+
*
|
|
2975
|
+
* @param {ShipmentsBookingIn} body - The courier for shipment data.
|
|
2976
|
+
*/
|
|
2977
|
+
postShipmentsBooking(body) {
|
|
2978
|
+
return this.http.post(`${this.url}/shipments/booking`, body).pipe(map(({ data }) => data));
|
|
2979
|
+
}
|
|
2980
|
+
/**
|
|
2981
|
+
* Send a EReceipt for Shipment.
|
|
2982
|
+
*
|
|
2983
|
+
* @param {ShipmentsEReceiptIn} body - The EReceipt for Shipment data.
|
|
2984
|
+
*/
|
|
2985
|
+
postShipmentsEReceipt(body) {
|
|
2986
|
+
return this.http.post(`${this.url}/shipments/ereceipt`, body).pipe(map(({ data }) => data));
|
|
2987
|
+
}
|
|
2988
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDropoffsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2989
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDropoffsService, providedIn: 'root' });
|
|
2990
|
+
}
|
|
2991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDropoffsService, decorators: [{
|
|
2992
|
+
type: Injectable,
|
|
2993
|
+
args: [{
|
|
2994
|
+
providedIn: 'root'
|
|
2995
|
+
}]
|
|
2996
|
+
}] });
|
|
2997
|
+
|
|
2979
2998
|
class ApiEToolsAutoBillingService {
|
|
2980
2999
|
environments = inject(ENVIRONMENT_TOKEN);
|
|
2981
3000
|
http = inject(HttpClient);
|
|
@@ -3491,6 +3510,42 @@ class ApiInventoriesService {
|
|
|
3491
3510
|
return this.http.delete(`${this.url}/courier-routes/${id}`)
|
|
3492
3511
|
.pipe(map(({ data }) => data));
|
|
3493
3512
|
}
|
|
3513
|
+
/**
|
|
3514
|
+
* Get a package/shipment enabled to perform an action.
|
|
3515
|
+
*
|
|
3516
|
+
* @param {PackageValidationActionIn} body - package/shipment number to validate.
|
|
3517
|
+
* @returns {Observable<PackageValidationActionOut>} An observable with the package/shipment validated.
|
|
3518
|
+
*/
|
|
3519
|
+
postPackageValidationActions(body) {
|
|
3520
|
+
return this.http.post(`${this.url}/package-validation/actions`, body).pipe(map(({ data }) => data));
|
|
3521
|
+
}
|
|
3522
|
+
/**
|
|
3523
|
+
* Edit return first mile resource.
|
|
3524
|
+
*
|
|
3525
|
+
* @param {ReturnFirstMileIn} body - The first mile data to be updated.
|
|
3526
|
+
* @returns {Observable<ReturnFirstMileOut>} An observable with the first mile updated.
|
|
3527
|
+
*/
|
|
3528
|
+
putReturnFirstMile(body) {
|
|
3529
|
+
return this.http.put(`${this.url}/return-first-mile`, body).pipe(map(({ data }) => data));
|
|
3530
|
+
}
|
|
3531
|
+
/**
|
|
3532
|
+
* Replaces a Package Reassign Position resource.
|
|
3533
|
+
*
|
|
3534
|
+
* @param {PackageReassignPositionIn} body - The Package Reassign Position resource data to be updated.
|
|
3535
|
+
* @returns {Observable<PackageReassignPositionOut>} An observable with the Package Reassign Position resource updated.
|
|
3536
|
+
*/
|
|
3537
|
+
putPackageReassignPositions(body) {
|
|
3538
|
+
return this.http.put(`${this.url}/package-reassign-positions`, body).pipe(map(({ data }) => data));
|
|
3539
|
+
}
|
|
3540
|
+
/**
|
|
3541
|
+
* Edit missing package resource.
|
|
3542
|
+
*
|
|
3543
|
+
* @param {MissingPackagesIn} body - The missing package resource data to be updated.
|
|
3544
|
+
* @returns {Observable<MissingPackagesOut>} An observable with the missing package resource updated.
|
|
3545
|
+
*/
|
|
3546
|
+
putMissingPackages(body) {
|
|
3547
|
+
return this.http.put(`${this.url}/missing-packages`, body).pipe(map(({ data }) => data));
|
|
3548
|
+
}
|
|
3494
3549
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3495
3550
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
|
|
3496
3551
|
}
|
|
@@ -4497,19 +4552,6 @@ class ApiSecurityService {
|
|
|
4497
4552
|
return this.http.get(`${this.url}/auth/me`)
|
|
4498
4553
|
.pipe(map(({ data }) => data));
|
|
4499
4554
|
}
|
|
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
4555
|
/**
|
|
4514
4556
|
* Fetches a user by their unique ID.
|
|
4515
4557
|
*
|
|
@@ -5374,6 +5416,24 @@ var ShipmentIncomeTypeCode;
|
|
|
5374
5416
|
ShipmentIncomeTypeCode["EMBASSY"] = "EMB";
|
|
5375
5417
|
})(ShipmentIncomeTypeCode || (ShipmentIncomeTypeCode = {}));
|
|
5376
5418
|
|
|
5419
|
+
var AccountTypeId;
|
|
5420
|
+
(function (AccountTypeId) {
|
|
5421
|
+
AccountTypeId[AccountTypeId["CASH"] = 1] = "CASH";
|
|
5422
|
+
AccountTypeId[AccountTypeId["COMAT"] = 2] = "COMAT";
|
|
5423
|
+
AccountTypeId[AccountTypeId["FOC"] = 3] = "FOC";
|
|
5424
|
+
AccountTypeId[AccountTypeId["EMPLOYEE"] = 4] = "EMPLOYEE";
|
|
5425
|
+
AccountTypeId[AccountTypeId["RPA"] = 5] = "RPA";
|
|
5426
|
+
AccountTypeId[AccountTypeId["GL"] = 6] = "GL";
|
|
5427
|
+
AccountTypeId[AccountTypeId["CUS"] = 7] = "CUS";
|
|
5428
|
+
AccountTypeId[AccountTypeId["VENDOR"] = 8] = "VENDOR";
|
|
5429
|
+
AccountTypeId[AccountTypeId["WPX"] = 9] = "WPX";
|
|
5430
|
+
AccountTypeId[AccountTypeId["DHL"] = 12] = "DHL";
|
|
5431
|
+
})(AccountTypeId || (AccountTypeId = {}));
|
|
5432
|
+
var AccountTypeName;
|
|
5433
|
+
(function (AccountTypeName) {
|
|
5434
|
+
AccountTypeName["EMBASSY"] = "EMBASSY";
|
|
5435
|
+
})(AccountTypeName || (AccountTypeName = {}));
|
|
5436
|
+
|
|
5377
5437
|
var OperationModuleStatus;
|
|
5378
5438
|
(function (OperationModuleStatus) {
|
|
5379
5439
|
OperationModuleStatus["CANCELED"] = "canceled";
|
|
@@ -5411,6 +5471,34 @@ var Group;
|
|
|
5411
5471
|
Group["expiration"] = "expiration";
|
|
5412
5472
|
Group["verification"] = "verification";
|
|
5413
5473
|
})(Group || (Group = {}));
|
|
5474
|
+
var InventoryActions;
|
|
5475
|
+
(function (InventoryActions) {
|
|
5476
|
+
InventoryActions["INVENTORY_CHECK_OUT"] = "inventoryCheckOut";
|
|
5477
|
+
InventoryActions["INVENTORY_COURIER_PICK_UP"] = "inventoryCourierPickUp";
|
|
5478
|
+
InventoryActions["INVENTORY_LOCATION_BACKROOM"] = "inventoryLocationBackroom";
|
|
5479
|
+
InventoryActions["INVENTORY_MISSING_PIECES"] = "inventoryMissingPieces";
|
|
5480
|
+
InventoryActions["INVENTORY_RE_ENTRY_MISSING_PIECES"] = "inventoryReEntryMissingPieces";
|
|
5481
|
+
InventoryActions["INVENTORY_ODD_NOTIFICATION"] = "inventoryOddNotifications";
|
|
5482
|
+
})(InventoryActions || (InventoryActions = {}));
|
|
5483
|
+
var InventoryErrorCodes;
|
|
5484
|
+
(function (InventoryErrorCodes) {
|
|
5485
|
+
InventoryErrorCodes["CODE_SHP_FORMAT"] = "INV-E001";
|
|
5486
|
+
InventoryErrorCodes["CODE_PCKG_FORMAT"] = "INV-E002";
|
|
5487
|
+
InventoryErrorCodes["CODE_PACKAGE_NOT_FOUND"] = "INV-E101";
|
|
5488
|
+
InventoryErrorCodes["CODE_EXISTS_INVENTORY_DIFFERENT_LOCATION"] = "INV-E007";
|
|
5489
|
+
InventoryErrorCodes["CODE_PACKAGE_NOT_IN_STOCK"] = "INV-E105";
|
|
5490
|
+
InventoryErrorCodes["CODE_PACKAGE_NOT_MISSING"] = "INV-E107";
|
|
5491
|
+
InventoryErrorCodes["CODE_ACTION_NOT_VALID"] = "INV-E108";
|
|
5492
|
+
InventoryErrorCodes["CODE_MULTIPLE_PACKAGES"] = "INV-E109";
|
|
5493
|
+
InventoryErrorCodes["CODE_PACKAGE_NOT_CHECK_IN"] = "INV-E110";
|
|
5494
|
+
InventoryErrorCodes["CODE_PACKAGE_NOT_DROP_OFF"] = "INV-E111";
|
|
5495
|
+
})(InventoryErrorCodes || (InventoryErrorCodes = {}));
|
|
5496
|
+
var RouteModelType;
|
|
5497
|
+
(function (RouteModelType) {
|
|
5498
|
+
RouteModelType["ROUTE_ID"] = "RouteId";
|
|
5499
|
+
RouteModelType["COURIER"] = "Courier";
|
|
5500
|
+
RouteModelType["COURIER_ROUTE"] = "CourierRoute";
|
|
5501
|
+
})(RouteModelType || (RouteModelType = {}));
|
|
5414
5502
|
|
|
5415
5503
|
var PaymentTypeCode;
|
|
5416
5504
|
(function (PaymentTypeCode) {
|
|
@@ -5796,5 +5884,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
5796
5884
|
* Generated bundle index. Do not edit.
|
|
5797
5885
|
*/
|
|
5798
5886
|
|
|
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 };
|
|
5887
|
+
export { AccountTypeId, AccountTypeName, AlphaNumeric, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCheckpointsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiDropoffsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, DefaultValueType, DepositTypeCode, DocumentStatusCode, ENVIRONMENT_TOKEN, Event, Group, InventoryActions, InventoryErrorCodes, NgxServicesModule, OpeningStatusCode, OperationModuleStatus, PaymentTypeCode, PrintMode, PrintableFormat, PrintersService, PrintersType, RouteModelType, ShipmentIncomeTypeCode, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
5800
5888
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|