@experteam-mx/ngx-services 18.8.22 → 18.8.24
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-companies.service.mjs +1 -11
- package/esm2022/lib/apis/api-external-ops.service.mjs +87 -0
- package/esm2022/lib/apis/api-quote.service.mjs +87 -0
- package/esm2022/lib/apis/models/api-companies.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-companies.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-external-ops.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-external-ops.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-quote.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-quote.types.mjs +2 -0
- package/esm2022/lib/interceptors/api-key.interceptor.mjs +48 -0
- package/esm2022/lib/ngx-services.models.mjs +1 -1
- package/esm2022/public-api.mjs +5 -2
- package/fesm2022/experteam-mx-ngx-services.mjs +133 -60
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-companies.service.d.ts +1 -8
- package/lib/apis/api-external-ops.service.d.ts +54 -0
- package/lib/apis/api-quote.service.d.ts +65 -0
- package/lib/apis/models/api-companies.interfaces.d.ts +0 -10
- package/lib/apis/models/api-companies.types.d.ts +4 -10
- package/lib/apis/models/api-external-ops.interfaces.d.ts +21 -0
- package/lib/apis/models/api-external-ops.types.d.ts +35 -0
- package/lib/apis/models/api-quote.interfaces.d.ts +13 -0
- package/lib/apis/models/api-quote.types.d.ts +17 -0
- package/lib/interceptors/api-key.interceptor.d.ts +35 -0
- package/lib/ngx-services.models.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -1
|
@@ -2105,16 +2105,6 @@ class ApiCompaniesService {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
}).pipe(map(({ data }) => data));
|
|
2107
2107
|
}
|
|
2108
|
-
/**
|
|
2109
|
-
* Sends a POST request to create the global configuration for extra charge entities.
|
|
2110
|
-
*
|
|
2111
|
-
* @param {ExtraChargeEntityGlobalConfigIn} body - The request body containing the global configuration data for extra charge entities.
|
|
2112
|
-
* @return {Observable<ExtraChargeEntityGlobalConfigOut>} An observable that emits the created global configuration for extra charge entities.
|
|
2113
|
-
*/
|
|
2114
|
-
postExtraChargeEntityGlobalConfig(body) {
|
|
2115
|
-
return this.http.post(`${this.url}/extracharge-entities/global-config`, body)
|
|
2116
|
-
.pipe(map(({ data }) => data));
|
|
2117
|
-
}
|
|
2118
2108
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCompaniesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2119
2109
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
|
|
2120
2110
|
}
|
|
@@ -2570,55 +2560,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
2570
2560
|
args: ['env']
|
|
2571
2561
|
}] }, { type: i1.HttpClient }] });
|
|
2572
2562
|
|
|
2573
|
-
class ApiEventsService {
|
|
2574
|
-
environments;
|
|
2575
|
-
http;
|
|
2576
|
-
constructor(environments, http) {
|
|
2577
|
-
this.environments = environments;
|
|
2578
|
-
this.http = http;
|
|
2579
|
-
}
|
|
2580
|
-
/**
|
|
2581
|
-
* Gets the API endpoint URL for Events from the environments configuration.
|
|
2582
|
-
*
|
|
2583
|
-
* @return {string} The URL for the Events API. Returns an empty string if not defined.
|
|
2584
|
-
*/
|
|
2585
|
-
get url() {
|
|
2586
|
-
return this.environments.apiEventsUrl ?? '';
|
|
2587
|
-
}
|
|
2588
|
-
/**
|
|
2589
|
-
* Sends a request to start an event
|
|
2590
|
-
*
|
|
2591
|
-
* @param {OperationModuleStartIn} body - The event information to be submitted.
|
|
2592
|
-
* @return {Observable<OperationModuleOut>} An Observable emitting the server's response containing the created event details.
|
|
2593
|
-
*/
|
|
2594
|
-
postOperationModulesStart(body) {
|
|
2595
|
-
return this.http.post(`${this.url}/operation-modules/start`, body)
|
|
2596
|
-
.pipe(map(({ data }) => data));
|
|
2597
|
-
}
|
|
2598
|
-
/**
|
|
2599
|
-
* Updates the discount information for a specific item.
|
|
2600
|
-
*
|
|
2601
|
-
* @param {number} id - The unique identifier of the item whose event is to be updated.
|
|
2602
|
-
* @param {OperationModuleEndIn} body - The payload containing the updated event details.
|
|
2603
|
-
* @return {Observable<OperationModuleOut>} An observable emitting the updated event details.
|
|
2604
|
-
*/
|
|
2605
|
-
putOperationModulesEnd(id, body) {
|
|
2606
|
-
return this.http.put(`${this.url}/operation-modules/${id}/end`, body)
|
|
2607
|
-
.pipe(map(({ data }) => data));
|
|
2608
|
-
}
|
|
2609
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiEventsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2610
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiEventsService, providedIn: 'root' });
|
|
2611
|
-
}
|
|
2612
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiEventsService, decorators: [{
|
|
2613
|
-
type: Injectable,
|
|
2614
|
-
args: [{
|
|
2615
|
-
providedIn: 'root'
|
|
2616
|
-
}]
|
|
2617
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2618
|
-
type: Inject,
|
|
2619
|
-
args: ['env']
|
|
2620
|
-
}] }, { type: i1.HttpClient }] });
|
|
2621
|
-
|
|
2622
2563
|
class ApiEToolsAutoBillingService {
|
|
2623
2564
|
environments;
|
|
2624
2565
|
http;
|
|
@@ -2690,6 +2631,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
2690
2631
|
args: ['env']
|
|
2691
2632
|
}] }, { type: i1.HttpClient }] });
|
|
2692
2633
|
|
|
2634
|
+
class ApiEventsService {
|
|
2635
|
+
environments;
|
|
2636
|
+
http;
|
|
2637
|
+
constructor(environments, http) {
|
|
2638
|
+
this.environments = environments;
|
|
2639
|
+
this.http = http;
|
|
2640
|
+
}
|
|
2641
|
+
/**
|
|
2642
|
+
* Gets the API endpoint URL for Events from the environments configuration.
|
|
2643
|
+
*
|
|
2644
|
+
* @return {string} The URL for the Events API. Returns an empty string if not defined.
|
|
2645
|
+
*/
|
|
2646
|
+
get url() {
|
|
2647
|
+
return this.environments.apiEventsUrl ?? '';
|
|
2648
|
+
}
|
|
2649
|
+
/**
|
|
2650
|
+
* Sends a request to start an event
|
|
2651
|
+
*
|
|
2652
|
+
* @param {OperationModuleStartIn} body - The event information to be submitted.
|
|
2653
|
+
* @return {Observable<OperationModuleOut>} An Observable emitting the server's response containing the created event details.
|
|
2654
|
+
*/
|
|
2655
|
+
postOperationModulesStart(body) {
|
|
2656
|
+
return this.http.post(`${this.url}/operation-modules/start`, body)
|
|
2657
|
+
.pipe(map(({ data }) => data));
|
|
2658
|
+
}
|
|
2659
|
+
/**
|
|
2660
|
+
* Updates the discount information for a specific item.
|
|
2661
|
+
*
|
|
2662
|
+
* @param {number} id - The unique identifier of the item whose event is to be updated.
|
|
2663
|
+
* @param {OperationModuleEndIn} body - The payload containing the updated event details.
|
|
2664
|
+
* @return {Observable<OperationModuleOut>} An observable emitting the updated event details.
|
|
2665
|
+
*/
|
|
2666
|
+
putOperationModulesEnd(id, body) {
|
|
2667
|
+
return this.http.put(`${this.url}/operation-modules/${id}/end`, body)
|
|
2668
|
+
.pipe(map(({ data }) => data));
|
|
2669
|
+
}
|
|
2670
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiEventsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2671
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiEventsService, providedIn: 'root' });
|
|
2672
|
+
}
|
|
2673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiEventsService, decorators: [{
|
|
2674
|
+
type: Injectable,
|
|
2675
|
+
args: [{
|
|
2676
|
+
providedIn: 'root'
|
|
2677
|
+
}]
|
|
2678
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2679
|
+
type: Inject,
|
|
2680
|
+
args: ['env']
|
|
2681
|
+
}] }, { type: i1.HttpClient }] });
|
|
2682
|
+
|
|
2693
2683
|
class ApiExternalPickupsService {
|
|
2694
2684
|
httpClient;
|
|
2695
2685
|
environment;
|
|
@@ -3516,6 +3506,89 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3516
3506
|
args: ['env']
|
|
3517
3507
|
}] }, { type: i1.HttpClient }] });
|
|
3518
3508
|
|
|
3509
|
+
/**
|
|
3510
|
+
* Service to manage quote-related events.
|
|
3511
|
+
*
|
|
3512
|
+
* This service provides methods to retrieve, create, and get event types
|
|
3513
|
+
* related to quote processes.
|
|
3514
|
+
*/
|
|
3515
|
+
class ApiQuoteService {
|
|
3516
|
+
environments;
|
|
3517
|
+
http;
|
|
3518
|
+
constructor(environments, http) {
|
|
3519
|
+
this.environments = environments;
|
|
3520
|
+
this.http = http;
|
|
3521
|
+
}
|
|
3522
|
+
/**
|
|
3523
|
+
* Base URL for the Quotes API.
|
|
3524
|
+
*/
|
|
3525
|
+
get url() {
|
|
3526
|
+
return this.environments.apiQuotesUrl ?? '';
|
|
3527
|
+
}
|
|
3528
|
+
/**
|
|
3529
|
+
* Retrieves all registered events for a specific quote.
|
|
3530
|
+
*
|
|
3531
|
+
* @param id - Quote identifier.
|
|
3532
|
+
* @param params - Optional query parameters such as pagination or filtering.
|
|
3533
|
+
* @returns Observable containing the list of quote events.
|
|
3534
|
+
*
|
|
3535
|
+
* @example
|
|
3536
|
+
* ```ts
|
|
3537
|
+
* this.apiQuoteService.getQuoteEvents(10, { page: 1 })
|
|
3538
|
+
* .subscribe((events) => console.log(events))
|
|
3539
|
+
* ```
|
|
3540
|
+
*/
|
|
3541
|
+
getQuoteEvents(id, params) {
|
|
3542
|
+
return this.http.get(`${this.url}/quotes/${id}/quote-events`, { params })
|
|
3543
|
+
.pipe(map(({ data }) => data));
|
|
3544
|
+
}
|
|
3545
|
+
/**
|
|
3546
|
+
* Registers a new event related to a specific quote.
|
|
3547
|
+
*
|
|
3548
|
+
* @param id - Quote identifier.
|
|
3549
|
+
* @param body - Event payload to be created.
|
|
3550
|
+
* @returns Observable containing the newly created event.
|
|
3551
|
+
*
|
|
3552
|
+
* @example
|
|
3553
|
+
* ```ts
|
|
3554
|
+
* const event: QuoteEventIn = { code: 'WON', note: 'Client approved' }
|
|
3555
|
+
* this.apiQuoteService.postQuoteEvents(10, event)
|
|
3556
|
+
* .subscribe((response) => console.log(response))
|
|
3557
|
+
* ```
|
|
3558
|
+
*/
|
|
3559
|
+
postQuoteEvents(id, body) {
|
|
3560
|
+
return this.http.post(`${this.url}/quotes/${id}/quote-events`, body)
|
|
3561
|
+
.pipe(map(({ data }) => data));
|
|
3562
|
+
}
|
|
3563
|
+
/**
|
|
3564
|
+
* Retrieves the available quote event types.
|
|
3565
|
+
*
|
|
3566
|
+
* @param params - Optional query parameters such as pagination or filtering.
|
|
3567
|
+
* @returns Observable containing the list of event types.
|
|
3568
|
+
*
|
|
3569
|
+
* @example
|
|
3570
|
+
* ```ts
|
|
3571
|
+
* this.apiQuoteService.getQuoteEventTypes({ page: 1 })
|
|
3572
|
+
* .subscribe((types) => console.log(types))
|
|
3573
|
+
* ```
|
|
3574
|
+
*/
|
|
3575
|
+
getQuoteEventTypes(params) {
|
|
3576
|
+
return this.http.get(`${this.url}/quote-event-types`, { params })
|
|
3577
|
+
.pipe(map(({ data }) => data));
|
|
3578
|
+
}
|
|
3579
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiQuoteService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3580
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiQuoteService, providedIn: 'root' });
|
|
3581
|
+
}
|
|
3582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiQuoteService, decorators: [{
|
|
3583
|
+
type: Injectable,
|
|
3584
|
+
args: [{
|
|
3585
|
+
providedIn: 'root'
|
|
3586
|
+
}]
|
|
3587
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
3588
|
+
type: Inject,
|
|
3589
|
+
args: ['env']
|
|
3590
|
+
}] }, { type: i1.HttpClient }] });
|
|
3591
|
+
|
|
3519
3592
|
class ApiReportsService {
|
|
3520
3593
|
environments;
|
|
3521
3594
|
http;
|
|
@@ -4656,5 +4729,5 @@ const downloadBase64Pdf = (base64) => window.open(base64PdfToUrl(base64));
|
|
|
4656
4729
|
* Generated bundle index. Do not edit.
|
|
4657
4730
|
*/
|
|
4658
4731
|
|
|
4659
|
-
export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalPickupsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
4732
|
+
export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalPickupsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
4660
4733
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|