@experteam-mx/ngx-services 18.6.1 → 18.7.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.
- package/esm2022/lib/apis/api-composition.service.mjs +45 -0
- package/esm2022/lib/apis/api-reports.service.mjs +33 -1
- package/esm2022/lib/apis/models/api-companies.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-composition.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-composition.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-security.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-security.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-shipments.enums.mjs +8 -0
- package/esm2022/lib/ngx-services.models.mjs +1 -1
- package/esm2022/public-api.mjs +5 -2
- package/fesm2022/experteam-mx-ngx-services.mjs +74 -2
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-composition.service.d.ts +27 -0
- package/lib/apis/api-reports.service.d.ts +23 -2
- package/lib/apis/models/api-companies.interfaces.d.ts +36 -30
- package/lib/apis/models/api-composition.interfaces.d.ts +289 -0
- package/lib/apis/models/api-composition.types.d.ts +4 -0
- package/lib/apis/models/api-invoices.interfaces.d.ts +1 -3
- package/lib/apis/models/api-invoices.types.d.ts +15 -13
- package/lib/apis/models/api-reports.interfaces.d.ts +3 -3
- package/lib/apis/models/api-reports.types.d.ts +25 -2
- package/lib/apis/models/api-security.interfaces.d.ts +17 -13
- package/lib/apis/models/api-security.types.d.ts +2 -17
- package/lib/apis/models/api-shipments.enums.d.ts +6 -0
- package/lib/ngx-services.models.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -1
|
@@ -3,9 +3,9 @@ import { InjectionToken, NgModule, Injectable, Inject, inject } from '@angular/c
|
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
4
|
import { provideHttpClient, HttpHeaders, HttpResponse, HttpParams } from '@angular/common/http';
|
|
5
5
|
import { map, mergeMap, forkJoin, tap, Observable, of } from 'rxjs';
|
|
6
|
-
import { map as map$1, tap as tap$1 } from 'rxjs/operators';
|
|
7
6
|
import * as i1$1 from 'ngx-cookie-service';
|
|
8
7
|
import { CookieService } from 'ngx-cookie-service';
|
|
8
|
+
import { map as map$1, tap as tap$1 } from 'rxjs/operators';
|
|
9
9
|
import Pusher from 'pusher-js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1614,6 +1614,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1614
1614
|
args: ['env']
|
|
1615
1615
|
}] }, { type: i1.HttpClient }] });
|
|
1616
1616
|
|
|
1617
|
+
class ApiCompositionService {
|
|
1618
|
+
environments;
|
|
1619
|
+
cookie;
|
|
1620
|
+
http;
|
|
1621
|
+
constructor(environments, cookie, http) {
|
|
1622
|
+
this.environments = environments;
|
|
1623
|
+
this.cookie = cookie;
|
|
1624
|
+
this.http = http;
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* Retrieves the API security URL from the environment configuration.
|
|
1628
|
+
*
|
|
1629
|
+
* @return {string} The API security URL.
|
|
1630
|
+
*/
|
|
1631
|
+
get url() {
|
|
1632
|
+
return this.environments.apiCompositionUrl ?? '';
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
* Retrieves shipment details based on the provided shipment ID.
|
|
1636
|
+
*
|
|
1637
|
+
* @param {number} id - The unique identifier of the shipment to retrieve.
|
|
1638
|
+
* @return {Observable<ShipmentOut>} An observable that emits the details of the shipment.
|
|
1639
|
+
*/
|
|
1640
|
+
getShipment(id) {
|
|
1641
|
+
return this.http.get(`${this.url}/shipments/${id}`)
|
|
1642
|
+
.pipe(map(({ data }) => data));
|
|
1643
|
+
}
|
|
1644
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCompositionService, deps: [{ token: 'env' }, { token: i1$1.CookieService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1645
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCompositionService, providedIn: 'root' });
|
|
1646
|
+
}
|
|
1647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCompositionService, decorators: [{
|
|
1648
|
+
type: Injectable,
|
|
1649
|
+
args: [{
|
|
1650
|
+
providedIn: 'root'
|
|
1651
|
+
}]
|
|
1652
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1653
|
+
type: Inject,
|
|
1654
|
+
args: ['env']
|
|
1655
|
+
}] }, { type: i1$1.CookieService }, { type: i1.HttpClient }] });
|
|
1656
|
+
|
|
1617
1657
|
class ApiEToolsAutoBillingService {
|
|
1618
1658
|
environments;
|
|
1619
1659
|
http;
|
|
@@ -2392,6 +2432,38 @@ class ApiReportsService {
|
|
|
2392
2432
|
params
|
|
2393
2433
|
}).pipe(map(({ data }) => data));
|
|
2394
2434
|
}
|
|
2435
|
+
/**
|
|
2436
|
+
* Retrieves the downloadable resource associated with the given transaction ID.
|
|
2437
|
+
*
|
|
2438
|
+
* @param {string} transactionId - The unique identifier of the transaction whose download is requested.
|
|
2439
|
+
* @return {Observable<HttpResponse<ArrayBuffer>>} An observable that emits the HTTP response containing the resource in the form of an ArrayBuffer.
|
|
2440
|
+
*/
|
|
2441
|
+
getDownload(transactionId) {
|
|
2442
|
+
return this.http.get(`${this.url}/download/${transactionId}`, {
|
|
2443
|
+
observe: 'response',
|
|
2444
|
+
responseType: 'arraybuffer'
|
|
2445
|
+
});
|
|
2446
|
+
}
|
|
2447
|
+
/**
|
|
2448
|
+
* Retrieves file check information for the specified transaction ID.
|
|
2449
|
+
*
|
|
2450
|
+
* @param {string} transactionId - The ID of the transaction for which the file check information is to be retrieved.
|
|
2451
|
+
* @return {Observable<FileCheckOut>} An observable that emits the file check information associated with the given transaction ID.
|
|
2452
|
+
*/
|
|
2453
|
+
getFileCheck(transactionId) {
|
|
2454
|
+
return this.http.get(`${this.url}/file-check/${transactionId}`)
|
|
2455
|
+
.pipe(map(({ data }) => data));
|
|
2456
|
+
}
|
|
2457
|
+
/**
|
|
2458
|
+
* Deletes the file check associated with the provided transaction ID.
|
|
2459
|
+
*
|
|
2460
|
+
* @param {string} transactionId - The unique identifier of the transaction whose file check is to be deleted.
|
|
2461
|
+
* @return {Observable<{}>} An observable emitting the response data after the deletion is processed.
|
|
2462
|
+
*/
|
|
2463
|
+
deleteFileCheck(transactionId) {
|
|
2464
|
+
return this.http.delete(`${this.url}/file-check/${transactionId}`)
|
|
2465
|
+
.pipe(map(({ data }) => data));
|
|
2466
|
+
}
|
|
2395
2467
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiReportsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2396
2468
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
|
|
2397
2469
|
}
|
|
@@ -3094,5 +3166,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
3094
3166
|
* Generated bundle index. Do not edit.
|
|
3095
3167
|
*/
|
|
3096
3168
|
|
|
3097
|
-
export { AlphaNumeric, ApiBillingDOService, ApiBillingMxService, ApiBillingPaService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiEToolsAutoBillingService, ApiExternalPickupsService, ApiInventoriesService, ApiInvoicesService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiShipmentsService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
3169
|
+
export { AlphaNumeric, ApiBillingDOService, ApiBillingMxService, ApiBillingPaService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiEToolsAutoBillingService, ApiExternalPickupsService, ApiInventoriesService, ApiInvoicesService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiShipmentsService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
3098
3170
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|