@experteam-mx/ngx-services 20.6.0 → 20.7.0-dev1.10
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/fesm2022/experteam-mx-ngx-services.mjs +354 -131
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/index.d.ts +393 -37
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, makeEnvironmentProviders, NgModule, inject, Injectable } from '@angular/core';
|
|
3
3
|
import { provideHttpClient, HttpClient, HttpHeaders, HttpResponse, HttpParams } from '@angular/common/http';
|
|
4
|
-
import { map, mergeMap, forkJoin, tap, Observable, of } from 'rxjs';
|
|
4
|
+
import { map, mergeMap, forkJoin, tap, BehaviorSubject, merge, firstValueFrom, Observable, of } from 'rxjs';
|
|
5
5
|
import { map as map$1, tap as tap$1, finalize, shareReplay } from 'rxjs/operators';
|
|
6
6
|
import { CookieService } from 'ngx-cookie-service';
|
|
7
7
|
import Pusher from 'pusher-js';
|
|
@@ -48,11 +48,11 @@ class NgxServicesModule {
|
|
|
48
48
|
providers: [provideNgxServices(environment)]
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
52
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
53
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
51
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: NgxServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
52
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: NgxServicesModule });
|
|
53
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: NgxServicesModule, providers: [provideHttpClient()] });
|
|
54
54
|
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: NgxServicesModule, decorators: [{
|
|
56
56
|
type: NgModule,
|
|
57
57
|
args: [{
|
|
58
58
|
providers: [provideHttpClient()]
|
|
@@ -159,10 +159,10 @@ class ApiBillingCOService {
|
|
|
159
159
|
return this.http.get(`${this.url}/tributes`, { params })
|
|
160
160
|
.pipe(map(({ data }) => data));
|
|
161
161
|
}
|
|
162
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
163
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
162
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingCOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
163
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingCOService, providedIn: 'root' });
|
|
164
164
|
}
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingCOService, decorators: [{
|
|
166
166
|
type: Injectable,
|
|
167
167
|
args: [{
|
|
168
168
|
providedIn: 'root'
|
|
@@ -189,10 +189,10 @@ class ApiBillingDOService {
|
|
|
189
189
|
return this.http.get(`${this.url}/income-types`)
|
|
190
190
|
.pipe(map(({ data }) => data));
|
|
191
191
|
}
|
|
192
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
193
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
192
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingDOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
193
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingDOService, providedIn: 'root' });
|
|
194
194
|
}
|
|
195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingDOService, decorators: [{
|
|
196
196
|
type: Injectable,
|
|
197
197
|
args: [{
|
|
198
198
|
providedIn: 'root'
|
|
@@ -239,10 +239,10 @@ class ApiBillingGtService {
|
|
|
239
239
|
return this.http.post(`${this.url}/locations`, body)
|
|
240
240
|
.pipe(map(({ data }) => data));
|
|
241
241
|
}
|
|
242
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
243
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingGtService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
243
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingGtService, providedIn: 'root' });
|
|
244
244
|
}
|
|
245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingGtService, decorators: [{
|
|
246
246
|
type: Injectable,
|
|
247
247
|
args: [{
|
|
248
248
|
providedIn: 'root'
|
|
@@ -290,10 +290,10 @@ class ApiBillingMxService {
|
|
|
290
290
|
return this.http.get(`${this.url}/postal-codes`, { params })
|
|
291
291
|
.pipe(map(({ data }) => data));
|
|
292
292
|
}
|
|
293
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
294
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
293
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingMxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
294
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingMxService, providedIn: 'root' });
|
|
295
295
|
}
|
|
296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingMxService, decorators: [{
|
|
297
297
|
type: Injectable,
|
|
298
298
|
args: [{
|
|
299
299
|
providedIn: 'root'
|
|
@@ -384,10 +384,10 @@ class ApiBillingPaService {
|
|
|
384
384
|
return this.http.post(`${this.url}/locations`, body)
|
|
385
385
|
.pipe(map(({ data }) => data));
|
|
386
386
|
}
|
|
387
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
388
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
387
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingPaService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
388
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingPaService, providedIn: 'root' });
|
|
389
389
|
}
|
|
390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingPaService, decorators: [{
|
|
391
391
|
type: Injectable,
|
|
392
392
|
args: [{
|
|
393
393
|
providedIn: 'root'
|
|
@@ -456,10 +456,10 @@ class ApiBillingSvService {
|
|
|
456
456
|
return this.http.get(`${this.url}/municipalities`, { params })
|
|
457
457
|
.pipe(map(({ data }) => data));
|
|
458
458
|
}
|
|
459
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
460
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
459
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingSvService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
460
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingSvService, providedIn: 'root' });
|
|
461
461
|
}
|
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingSvService, decorators: [{
|
|
463
463
|
type: Injectable,
|
|
464
464
|
args: [{
|
|
465
465
|
providedIn: 'root'
|
|
@@ -647,10 +647,10 @@ class ApiCashOperationsService {
|
|
|
647
647
|
return this.http.patch(`${this.url}/deposits/${id}`, body)
|
|
648
648
|
.pipe(map(({ data }) => data));
|
|
649
649
|
}
|
|
650
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
651
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
650
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCashOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
651
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCashOperationsService, providedIn: 'root' });
|
|
652
652
|
}
|
|
653
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCashOperationsService, decorators: [{
|
|
654
654
|
type: Injectable,
|
|
655
655
|
args: [{
|
|
656
656
|
providedIn: 'root'
|
|
@@ -1430,10 +1430,10 @@ class ApiCatalogsService {
|
|
|
1430
1430
|
return this.http.get(`${this.url}/export-reason-types`, { params })
|
|
1431
1431
|
.pipe(map(({ data }) => data));
|
|
1432
1432
|
}
|
|
1433
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1434
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1433
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCatalogsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1434
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
|
|
1435
1435
|
}
|
|
1436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCatalogsService, decorators: [{
|
|
1437
1437
|
type: Injectable,
|
|
1438
1438
|
args: [{
|
|
1439
1439
|
providedIn: 'root'
|
|
@@ -2507,10 +2507,10 @@ class ApiCompaniesService {
|
|
|
2507
2507
|
}
|
|
2508
2508
|
}).pipe(map(({ data }) => data));
|
|
2509
2509
|
}
|
|
2510
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2511
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2510
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompaniesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2511
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
|
|
2512
2512
|
}
|
|
2513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2513
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompaniesService, decorators: [{
|
|
2514
2514
|
type: Injectable,
|
|
2515
2515
|
args: [{
|
|
2516
2516
|
providedIn: 'root'
|
|
@@ -2548,10 +2548,10 @@ class ApiCompositionService {
|
|
|
2548
2548
|
return this.http.get(`${this.url}/country-references`, { params })
|
|
2549
2549
|
.pipe(map(({ data }) => data));
|
|
2550
2550
|
}
|
|
2551
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2552
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2551
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompositionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2552
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompositionService, providedIn: 'root' });
|
|
2553
2553
|
}
|
|
2554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompositionService, decorators: [{
|
|
2555
2555
|
type: Injectable,
|
|
2556
2556
|
args: [{
|
|
2557
2557
|
providedIn: 'root'
|
|
@@ -2694,10 +2694,10 @@ class ApiCustomsService {
|
|
|
2694
2694
|
params
|
|
2695
2695
|
}).pipe(map(({ data }) => data));
|
|
2696
2696
|
}
|
|
2697
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2698
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2697
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCustomsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2698
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCustomsService, providedIn: 'root' });
|
|
2699
2699
|
}
|
|
2700
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2700
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCustomsService, decorators: [{
|
|
2701
2701
|
type: Injectable,
|
|
2702
2702
|
args: [{
|
|
2703
2703
|
providedIn: 'root'
|
|
@@ -2925,10 +2925,10 @@ class ApiDiscountsService {
|
|
|
2925
2925
|
return this.http.put(`${this.url}/customer-restrictions/V2/${id}`, body)
|
|
2926
2926
|
.pipe(map(({ data }) => data));
|
|
2927
2927
|
}
|
|
2928
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2929
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2928
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDiscountsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2929
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDiscountsService, providedIn: 'root' });
|
|
2930
2930
|
}
|
|
2931
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDiscountsService, decorators: [{
|
|
2932
2932
|
type: Injectable,
|
|
2933
2933
|
args: [{
|
|
2934
2934
|
providedIn: 'root'
|
|
@@ -3020,10 +3020,10 @@ class ApiEToolsAutoBillingService {
|
|
|
3020
3020
|
return this.http.post(`${this.url}/external-shipments/${id}/re-billing`, body)
|
|
3021
3021
|
.pipe(map(({ data }) => data));
|
|
3022
3022
|
}
|
|
3023
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3024
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3023
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEToolsAutoBillingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3024
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEToolsAutoBillingService, providedIn: 'root' });
|
|
3025
3025
|
}
|
|
3026
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3026
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEToolsAutoBillingService, decorators: [{
|
|
3027
3027
|
type: Injectable,
|
|
3028
3028
|
args: [{
|
|
3029
3029
|
providedIn: 'root'
|
|
@@ -3062,10 +3062,10 @@ class ApiEventsService {
|
|
|
3062
3062
|
return this.http.put(`${this.url}/operation-modules/${id}/end`, body)
|
|
3063
3063
|
.pipe(map(({ data }) => data));
|
|
3064
3064
|
}
|
|
3065
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3066
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3065
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3066
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEventsService, providedIn: 'root' });
|
|
3067
3067
|
}
|
|
3068
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEventsService, decorators: [{
|
|
3069
3069
|
type: Injectable,
|
|
3070
3070
|
args: [{
|
|
3071
3071
|
providedIn: 'root'
|
|
@@ -3089,7 +3089,7 @@ class ApiExternalOperationsService {
|
|
|
3089
3089
|
* Retrieves delivery confirmation details based on the provided OTP code.
|
|
3090
3090
|
*
|
|
3091
3091
|
* @param {string} otpCode - The OTP code used to search for delivery confirmation.
|
|
3092
|
-
* @return {Observable<
|
|
3092
|
+
* @return {Observable<DeliveryConfirmationSearchOut>} An observable containing the delivery confirmation data.
|
|
3093
3093
|
*/
|
|
3094
3094
|
getDeliveryConfirmation(otpCode) {
|
|
3095
3095
|
return this.http.get(`${this.url}/delivery-confirmation/search/${otpCode}`)
|
|
@@ -3130,10 +3130,42 @@ class ApiExternalOperationsService {
|
|
|
3130
3130
|
return this.http.put(`${this.url}/delivery-confirmation/confirmation/${otp}`, body)
|
|
3131
3131
|
.pipe(map$1(({ data }) => data));
|
|
3132
3132
|
}
|
|
3133
|
-
|
|
3134
|
-
|
|
3133
|
+
/**
|
|
3134
|
+
* Retrieves signature page confirmation information associated with an OTP code.
|
|
3135
|
+
*
|
|
3136
|
+
* @param {string} otpCode - OTP code used to search for the signature page confirmation.
|
|
3137
|
+
* @returns {Observable<SignaturePageConfirmationOut>} An observable containing the signature page confirmation details.
|
|
3138
|
+
*/
|
|
3139
|
+
getSignaturePageConfirmationSearch(otpCode) {
|
|
3140
|
+
return this.http.get(`${this.url}/signature-page-confirmation/search/${otpCode}`)
|
|
3141
|
+
.pipe(map$1(({ data }) => data));
|
|
3142
|
+
}
|
|
3143
|
+
/**
|
|
3144
|
+
* Generates a signature page confirmation request for a shipment.
|
|
3145
|
+
*
|
|
3146
|
+
* @param {ShipmentSignaturePageIn} payload - Shipment data required to generate the signature page confirmation.
|
|
3147
|
+
* @returns {Observable<SignaturePageConfirmationGenerateOut>} An observable containing the generated confirmation information.
|
|
3148
|
+
*/
|
|
3149
|
+
postSignaturePageConfirmationGenerate(payload) {
|
|
3150
|
+
return this.http.post(`${this.url}/signature-page-confirmation/generate`, payload)
|
|
3151
|
+
.pipe(map$1(({ data }) => data));
|
|
3152
|
+
}
|
|
3153
|
+
/**
|
|
3154
|
+
* Confirms a shipment signature page using an OTP code.
|
|
3155
|
+
*
|
|
3156
|
+
* @param {ShipmentSignaturePageConfirmationIn} input - Signature page confirmation data.
|
|
3157
|
+
* @param {string} input.otp - OTP code used to validate the confirmation.
|
|
3158
|
+
* @param {...Object} input.body - Additional confirmation information sent in the request body.
|
|
3159
|
+
* @returns {Observable<{}>} An observable that emits the API response data.
|
|
3160
|
+
*/
|
|
3161
|
+
putSignaturePageConfirmation({ otp, ...body }) {
|
|
3162
|
+
return this.http.put(`${this.url}/signature-page-confirmation/${otp}`, body)
|
|
3163
|
+
.pipe(map$1(({ data }) => data));
|
|
3164
|
+
}
|
|
3165
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3166
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, providedIn: 'root' });
|
|
3135
3167
|
}
|
|
3136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, decorators: [{
|
|
3137
3169
|
type: Injectable,
|
|
3138
3170
|
args: [{
|
|
3139
3171
|
providedIn: 'root'
|
|
@@ -3400,10 +3432,10 @@ class ApiInventoriesService {
|
|
|
3400
3432
|
return this.http.get(`${this.url}/stock-update/packages/${id}`)
|
|
3401
3433
|
.pipe(map(({ data }) => data));
|
|
3402
3434
|
}
|
|
3403
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3404
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3435
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3436
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
|
|
3405
3437
|
}
|
|
3406
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, decorators: [{
|
|
3407
3439
|
type: Injectable,
|
|
3408
3440
|
args: [{
|
|
3409
3441
|
providedIn: 'root'
|
|
@@ -3421,6 +3453,32 @@ class ApiInvoicesService {
|
|
|
3421
3453
|
get url() {
|
|
3422
3454
|
return this.environments.apiInvoicesUrl ?? '';
|
|
3423
3455
|
}
|
|
3456
|
+
/**
|
|
3457
|
+
* Retrieves the printable ticket payload for a billing operation.
|
|
3458
|
+
*
|
|
3459
|
+
* Sends a GET request to `/operation/print/ticket/{documentId}` and unwraps
|
|
3460
|
+
* the `data` field from the API success envelope.
|
|
3461
|
+
*
|
|
3462
|
+
* @param documentId - Numeric identifier of the document to print.
|
|
3463
|
+
* @returns An Observable that emits the ticket data for the given document.
|
|
3464
|
+
*/
|
|
3465
|
+
getOperationPrintTicket(documentId) {
|
|
3466
|
+
return this.http.get(`${this.url}/operation/print/ticket/${documentId}`)
|
|
3467
|
+
.pipe(map(({ data }) => data));
|
|
3468
|
+
}
|
|
3469
|
+
/**
|
|
3470
|
+
* Retrieves the printable document payload for a billing operation.
|
|
3471
|
+
*
|
|
3472
|
+
* Sends a GET request to `/operation/print/document/{documentId}` and unwraps
|
|
3473
|
+
* the `data` field from the API success envelope.
|
|
3474
|
+
*
|
|
3475
|
+
* @param documentId - Numeric identifier of the document to print.
|
|
3476
|
+
* @returns An Observable that emits the printable document data for the given document.
|
|
3477
|
+
*/
|
|
3478
|
+
getOperationPrintDocument(documentId) {
|
|
3479
|
+
return this.http.get(`${this.url}/operation/print/document/${documentId}`)
|
|
3480
|
+
.pipe(map(({ data }) => data));
|
|
3481
|
+
}
|
|
3424
3482
|
/**
|
|
3425
3483
|
* Sends an operation document to the server and processes the response.
|
|
3426
3484
|
*
|
|
@@ -3525,16 +3583,6 @@ class ApiInvoicesService {
|
|
|
3525
3583
|
return this.http.post(`${this.url}/operation/shipment/external/payment`, params)
|
|
3526
3584
|
.pipe(map(({ data }) => data));
|
|
3527
3585
|
}
|
|
3528
|
-
/**
|
|
3529
|
-
* Retrieves and returns billing operation print details for a given document ID.
|
|
3530
|
-
*
|
|
3531
|
-
* @param {number} documentId - The ID of the document for which to fetch the print billing operation details.
|
|
3532
|
-
* @return {Observable<OperationPrintDocumentOut>} An observable emitting the print billing operation details for the specified document.
|
|
3533
|
-
*/
|
|
3534
|
-
getOperationPrintDocument(documentId) {
|
|
3535
|
-
return this.http.get(`${this.url}/operation/print/document/${documentId}`)
|
|
3536
|
-
.pipe(map(({ data }) => data));
|
|
3537
|
-
}
|
|
3538
3586
|
/**
|
|
3539
3587
|
* Fetches all country payment types.
|
|
3540
3588
|
*
|
|
@@ -3861,10 +3909,10 @@ class ApiInvoicesService {
|
|
|
3861
3909
|
return this.http.put(`${this.url}/operation/document/${id}/customer`, data)
|
|
3862
3910
|
.pipe(map(({ data }) => data));
|
|
3863
3911
|
}
|
|
3864
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3865
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3912
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInvoicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3913
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
|
|
3866
3914
|
}
|
|
3867
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInvoicesService, decorators: [{
|
|
3868
3916
|
type: Injectable,
|
|
3869
3917
|
args: [{
|
|
3870
3918
|
providedIn: 'root'
|
|
@@ -3954,10 +4002,10 @@ class ApiNotificationsService {
|
|
|
3954
4002
|
return this.http.get(`${this.url}/notification-types`, { params })
|
|
3955
4003
|
.pipe(map(({ data }) => data));
|
|
3956
4004
|
}
|
|
3957
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3958
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4005
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiNotificationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4006
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiNotificationsService, providedIn: 'root' });
|
|
3959
4007
|
}
|
|
3960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4008
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiNotificationsService, decorators: [{
|
|
3961
4009
|
type: Injectable,
|
|
3962
4010
|
args: [{
|
|
3963
4011
|
providedIn: 'root'
|
|
@@ -4005,10 +4053,10 @@ class ApiOpenItemsService {
|
|
|
4005
4053
|
return this.http.post(`${this.url}/other-invoices`, body)
|
|
4006
4054
|
.pipe(map(({ data }) => data));
|
|
4007
4055
|
}
|
|
4008
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4009
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4056
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiOpenItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4057
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiOpenItemsService, providedIn: 'root' });
|
|
4010
4058
|
}
|
|
4011
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiOpenItemsService, decorators: [{
|
|
4012
4060
|
type: Injectable,
|
|
4013
4061
|
args: [{
|
|
4014
4062
|
providedIn: 'root'
|
|
@@ -4075,10 +4123,10 @@ class ApiQuoteService {
|
|
|
4075
4123
|
return this.http.get(`${this.url}/quote-event-types`, { params })
|
|
4076
4124
|
.pipe(map(({ data }) => data));
|
|
4077
4125
|
}
|
|
4078
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4079
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4126
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiQuoteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4127
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiQuoteService, providedIn: 'root' });
|
|
4080
4128
|
}
|
|
4081
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiQuoteService, decorators: [{
|
|
4082
4130
|
type: Injectable,
|
|
4083
4131
|
args: [{
|
|
4084
4132
|
providedIn: 'root'
|
|
@@ -4296,10 +4344,10 @@ class ApiReportsService {
|
|
|
4296
4344
|
return this.http.get(`${this.url}/billing-details`, { params })
|
|
4297
4345
|
.pipe(map(({ data }) => data));
|
|
4298
4346
|
}
|
|
4299
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4300
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4347
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiReportsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4348
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
|
|
4301
4349
|
}
|
|
4302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiReportsService, decorators: [{
|
|
4303
4351
|
type: Injectable,
|
|
4304
4352
|
args: [{
|
|
4305
4353
|
providedIn: 'root'
|
|
@@ -4535,10 +4583,10 @@ class ApiSecurityService {
|
|
|
4535
4583
|
}
|
|
4536
4584
|
}).pipe(map(({ data }) => data));
|
|
4537
4585
|
}
|
|
4538
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4539
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4586
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSecurityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4587
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSecurityService, providedIn: 'root' });
|
|
4540
4588
|
}
|
|
4541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSecurityService, decorators: [{
|
|
4542
4590
|
type: Injectable,
|
|
4543
4591
|
args: [{
|
|
4544
4592
|
providedIn: 'root'
|
|
@@ -4647,10 +4695,10 @@ class ApiServicesService {
|
|
|
4647
4695
|
params: queryParams
|
|
4648
4696
|
}).pipe(map(({ data }) => data));
|
|
4649
4697
|
}
|
|
4650
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4651
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4698
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiServicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4699
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiServicesService, providedIn: 'root' });
|
|
4652
4700
|
}
|
|
4653
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiServicesService, decorators: [{
|
|
4654
4702
|
type: Injectable,
|
|
4655
4703
|
args: [{
|
|
4656
4704
|
providedIn: 'root'
|
|
@@ -4762,47 +4810,69 @@ class ApiShipmentsService {
|
|
|
4762
4810
|
.pipe(map(({ data }) => data));
|
|
4763
4811
|
}
|
|
4764
4812
|
/**
|
|
4765
|
-
* Retrieves a paginated list of
|
|
4766
|
-
*
|
|
4767
|
-
* @
|
|
4813
|
+
* Retrieves a paginated list of document configurations.
|
|
4814
|
+
*
|
|
4815
|
+
* @param {QueryParams} params - Query parameters used for filtering, sorting, and pagination.
|
|
4816
|
+
* @returns {Observable<DocumentConfigurationsOut>} An observable containing the list of document configurations and pagination metadata.
|
|
4768
4817
|
*/
|
|
4769
|
-
|
|
4770
|
-
return this.http.get(`${this.url}/
|
|
4818
|
+
getDocumentConfigurations(params) {
|
|
4819
|
+
return this.http.get(`${this.url}/document-configurations`, {
|
|
4771
4820
|
params
|
|
4772
4821
|
}).pipe(map(({ data }) => data));
|
|
4773
4822
|
}
|
|
4774
4823
|
/**
|
|
4775
|
-
* Retrieves
|
|
4824
|
+
* Retrieves a document configuration by its identifier.
|
|
4776
4825
|
*
|
|
4777
|
-
* @param {number} id - The identifier of the
|
|
4778
|
-
* @
|
|
4826
|
+
* @param {number} id - The unique identifier of the document configuration.
|
|
4827
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the document configuration details.
|
|
4779
4828
|
*/
|
|
4780
|
-
|
|
4781
|
-
return this.http.get(`${this.url}/
|
|
4829
|
+
getDocumentConfiguration(id) {
|
|
4830
|
+
return this.http.get(`${this.url}/document-configurations/${id}`).pipe(map(({ data }) => data));
|
|
4782
4831
|
}
|
|
4783
4832
|
/**
|
|
4784
|
-
* Creates a new
|
|
4785
|
-
*
|
|
4786
|
-
* @
|
|
4833
|
+
* Creates a new document configuration.
|
|
4834
|
+
*
|
|
4835
|
+
* @param {DocumentConfigurationIn} body - The document configuration data to create.
|
|
4836
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the newly created document configuration.
|
|
4787
4837
|
*/
|
|
4788
|
-
|
|
4789
|
-
return this.http.post(`${this.url}/
|
|
4838
|
+
postDocumentConfiguration(body) {
|
|
4839
|
+
return this.http.post(`${this.url}/document-configurations`, body)
|
|
4790
4840
|
.pipe(map(({ data }) => data));
|
|
4791
4841
|
}
|
|
4792
4842
|
/**
|
|
4793
|
-
* Updates an existing
|
|
4794
|
-
*
|
|
4795
|
-
* @param {
|
|
4796
|
-
* @
|
|
4843
|
+
* Updates an existing document configuration.
|
|
4844
|
+
*
|
|
4845
|
+
* @param {number} id - The unique identifier of the document configuration to update.
|
|
4846
|
+
* @param {DocumentConfigurationIn} body - The updated document configuration data.
|
|
4847
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the updated document configuration.
|
|
4797
4848
|
*/
|
|
4798
|
-
|
|
4799
|
-
return this.http.put(`${this.url}/
|
|
4849
|
+
putDocumentConfiguration(id, body) {
|
|
4850
|
+
return this.http.put(`${this.url}/document-configurations/${id}`, body)
|
|
4800
4851
|
.pipe(map(({ data }) => data));
|
|
4801
4852
|
}
|
|
4802
|
-
|
|
4803
|
-
|
|
4853
|
+
/**
|
|
4854
|
+
* Generates a preview for a document configuration.
|
|
4855
|
+
*
|
|
4856
|
+
* @param {DocumentConfigurationsPreviewIn} body - The data used to generate the document preview.
|
|
4857
|
+
* @returns {Observable<DocumentConfigurationsPreviewOut>} An observable containing the generated document preview.
|
|
4858
|
+
*/
|
|
4859
|
+
postDocumentConfigurationPreview(body) {
|
|
4860
|
+
return this.http.post(`${this.url}/document-configurations/preview`, body)
|
|
4861
|
+
.pipe(map(({ data }) => data));
|
|
4862
|
+
}
|
|
4863
|
+
/**
|
|
4864
|
+
* Retrieves the shipment documents associated with a document configuration
|
|
4865
|
+
* @param {number} id - The unique identifier of the document configuration
|
|
4866
|
+
* @returns {Observable<ShipmentDocumentsOut>} observable containing the shipment documents
|
|
4867
|
+
* */
|
|
4868
|
+
getDocuments(id) {
|
|
4869
|
+
return this.http.get(`${this.url}/shipments/${id}/documents`)
|
|
4870
|
+
.pipe(map(({ data }) => data));
|
|
4871
|
+
}
|
|
4872
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4873
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
|
|
4804
4874
|
}
|
|
4805
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, decorators: [{
|
|
4806
4876
|
type: Injectable,
|
|
4807
4877
|
args: [{
|
|
4808
4878
|
providedIn: 'root'
|
|
@@ -4921,10 +4991,10 @@ class ApiSuppliesService {
|
|
|
4921
4991
|
return this.http.get(`${this.url}/supply-locations/export/excel`, { params })
|
|
4922
4992
|
.pipe(map(({ data }) => data));
|
|
4923
4993
|
}
|
|
4924
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4925
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4994
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSuppliesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4995
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSuppliesService, providedIn: 'root' });
|
|
4926
4996
|
}
|
|
4927
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSuppliesService, decorators: [{
|
|
4928
4998
|
type: Injectable,
|
|
4929
4999
|
args: [{
|
|
4930
5000
|
providedIn: 'root'
|
|
@@ -5057,10 +5127,172 @@ class ApiSurveysService {
|
|
|
5057
5127
|
return this.http.post(`${this.url}/customer-surveys/${uuid}/finish`, body)
|
|
5058
5128
|
.pipe(map(({ data }) => data));
|
|
5059
5129
|
}
|
|
5060
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5061
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
5130
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSurveysService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5131
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSurveysService, providedIn: 'root' });
|
|
5132
|
+
}
|
|
5133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSurveysService, decorators: [{
|
|
5134
|
+
type: Injectable,
|
|
5135
|
+
args: [{
|
|
5136
|
+
providedIn: 'root'
|
|
5137
|
+
}]
|
|
5138
|
+
}] });
|
|
5139
|
+
|
|
5140
|
+
const base64PdfToUrl = (base64) => {
|
|
5141
|
+
const data = new Uint8Array(atob(base64)
|
|
5142
|
+
.split('')
|
|
5143
|
+
.map(char => char.charCodeAt(0)));
|
|
5144
|
+
const blob = new Blob([data], { type: 'application/pdf' });
|
|
5145
|
+
return window.URL.createObjectURL(blob);
|
|
5146
|
+
};
|
|
5147
|
+
const downloadBase64Pdf = (base64) => window.open(base64PdfToUrl(base64));
|
|
5148
|
+
|
|
5149
|
+
var PrintMode;
|
|
5150
|
+
(function (PrintMode) {
|
|
5151
|
+
PrintMode["PRINT"] = "PRINT";
|
|
5152
|
+
PrintMode["DISPLAY"] = "DISPLAY";
|
|
5153
|
+
PrintMode["BOTH"] = "BOTH";
|
|
5154
|
+
})(PrintMode || (PrintMode = {}));
|
|
5155
|
+
var PrintableFormat;
|
|
5156
|
+
(function (PrintableFormat) {
|
|
5157
|
+
PrintableFormat["PDF"] = "pdf";
|
|
5158
|
+
PrintableFormat["ZPL2"] = "zpl2";
|
|
5159
|
+
})(PrintableFormat || (PrintableFormat = {}));
|
|
5160
|
+
var PrintersType;
|
|
5161
|
+
(function (PrintersType) {
|
|
5162
|
+
PrintersType["LABEL"] = "label";
|
|
5163
|
+
PrintersType["RECEIPT"] = "receipt";
|
|
5164
|
+
PrintersType["OTHERS"] = "others";
|
|
5165
|
+
})(PrintersType || (PrintersType = {}));
|
|
5166
|
+
|
|
5167
|
+
class PrintersService {
|
|
5168
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
5169
|
+
http = inject(HttpClient);
|
|
5170
|
+
availablePrinters$ = new BehaviorSubject([]);
|
|
5171
|
+
printMode = PrintMode.DISPLAY;
|
|
5172
|
+
printers = [];
|
|
5173
|
+
/**
|
|
5174
|
+
* Retrieves the print URL from the environments configuration or defaults to 'http://localhost:9100'
|
|
5175
|
+
* if not specified.
|
|
5176
|
+
*
|
|
5177
|
+
* @return {string} The URL to be used for printing.
|
|
5178
|
+
*/
|
|
5179
|
+
get url() {
|
|
5180
|
+
return this.environments.printUrl ?? 'http://localhost:9100';
|
|
5181
|
+
}
|
|
5182
|
+
/**
|
|
5183
|
+
* Prints or displays a document based on the current print mode.
|
|
5184
|
+
* It can handle printing to a physical printer, displaying in the browser,
|
|
5185
|
+
* or both simultaneously.
|
|
5186
|
+
*
|
|
5187
|
+
* @param {Printable} document - The document to be printed or displayed.
|
|
5188
|
+
* @return {Promise<void>} A promise that resolves when the printing or displaying process is complete, or rejects if an error occurs.
|
|
5189
|
+
*/
|
|
5190
|
+
print(document) {
|
|
5191
|
+
return new Promise((resolve, reject) => {
|
|
5192
|
+
switch (this.printMode) {
|
|
5193
|
+
case PrintMode.PRINT:
|
|
5194
|
+
this.sendToPrinter(document).then(() => resolve()).catch(reject);
|
|
5195
|
+
break;
|
|
5196
|
+
case PrintMode.DISPLAY:
|
|
5197
|
+
this.sendToBrowser(document).then(resolve).catch(reject);
|
|
5198
|
+
break;
|
|
5199
|
+
case PrintMode.BOTH:
|
|
5200
|
+
merge([
|
|
5201
|
+
this.sendToBrowser(document),
|
|
5202
|
+
this.sendToPrinter(document)
|
|
5203
|
+
]).subscribe({
|
|
5204
|
+
next: () => resolve(),
|
|
5205
|
+
error: reject,
|
|
5206
|
+
});
|
|
5207
|
+
break;
|
|
5208
|
+
}
|
|
5209
|
+
});
|
|
5210
|
+
}
|
|
5211
|
+
/**
|
|
5212
|
+
* Configures and initializes the print settings based on the provided parameters.
|
|
5213
|
+
*
|
|
5214
|
+
* @param {Object} config - The configuration object to set up the print mode and manage printers.
|
|
5215
|
+
* @param {string} config.country - The country code used to determine printer configurations.
|
|
5216
|
+
* @param {PrintMode} config.printMode - The mode of printing, defining whether to use print, digital, or both.
|
|
5217
|
+
* @return {void} This method does not return any value.
|
|
5218
|
+
*/
|
|
5219
|
+
setUp({ country, printMode }) {
|
|
5220
|
+
this.printMode = printMode;
|
|
5221
|
+
if (this.printMode === PrintMode.BOTH || this.printMode === PrintMode.PRINT) {
|
|
5222
|
+
this.checkPrinters(country);
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
/**
|
|
5226
|
+
* Resets the printers list and updates the availablePrinters$ observable.
|
|
5227
|
+
* The method clears the current list of printers, emits the updated empty list
|
|
5228
|
+
* through the availablePrinters$ observable, and finalizes the observable stream.
|
|
5229
|
+
*
|
|
5230
|
+
* @return {void} No return value.
|
|
5231
|
+
*/
|
|
5232
|
+
setDown() {
|
|
5233
|
+
this.printers = [];
|
|
5234
|
+
this.availablePrinters$.next(this.printers);
|
|
5235
|
+
this.availablePrinters$.complete();
|
|
5236
|
+
}
|
|
5237
|
+
sendToPrinter({ type, content, format }) {
|
|
5238
|
+
const printer = this.printers.find(({ name }) => name === type);
|
|
5239
|
+
if (!printer) {
|
|
5240
|
+
throw new Error(`Printer ${type} not found.`);
|
|
5241
|
+
}
|
|
5242
|
+
return firstValueFrom(this.http.post(`${this.url}/print`, {
|
|
5243
|
+
base64: content,
|
|
5244
|
+
deviceName: printer.name,
|
|
5245
|
+
format,
|
|
5246
|
+
}).pipe(map(({ data }) => data)));
|
|
5247
|
+
}
|
|
5248
|
+
sendToBrowser({ format, content }) {
|
|
5249
|
+
return new Promise((resolve, reject) => {
|
|
5250
|
+
try {
|
|
5251
|
+
if (format === PrintableFormat.ZPL2) {
|
|
5252
|
+
return;
|
|
5253
|
+
}
|
|
5254
|
+
downloadBase64Pdf(content);
|
|
5255
|
+
resolve();
|
|
5256
|
+
}
|
|
5257
|
+
catch (e) {
|
|
5258
|
+
reject(e);
|
|
5259
|
+
}
|
|
5260
|
+
});
|
|
5261
|
+
}
|
|
5262
|
+
checkPrinters(country) {
|
|
5263
|
+
if (country.label_printer_name) {
|
|
5264
|
+
this.printers.push({
|
|
5265
|
+
name: PrintersType.LABEL,
|
|
5266
|
+
configured: false,
|
|
5267
|
+
});
|
|
5268
|
+
}
|
|
5269
|
+
if (country.receipt_printer_name) {
|
|
5270
|
+
this.printers.push({
|
|
5271
|
+
name: PrintersType.RECEIPT,
|
|
5272
|
+
configured: false,
|
|
5273
|
+
});
|
|
5274
|
+
}
|
|
5275
|
+
if (country.others_printer_name) {
|
|
5276
|
+
this.printers.push({
|
|
5277
|
+
name: PrintersType.OTHERS,
|
|
5278
|
+
configured: false,
|
|
5279
|
+
});
|
|
5280
|
+
}
|
|
5281
|
+
this.http.get(`${this.url}/available`)
|
|
5282
|
+
.subscribe({
|
|
5283
|
+
next: ({ printer }) => {
|
|
5284
|
+
this.printers = this.printers.map((item) => {
|
|
5285
|
+
const available = printer.some(({ name }) => name === item.name);
|
|
5286
|
+
return available ? { ...item, configured: true } : item;
|
|
5287
|
+
});
|
|
5288
|
+
this.availablePrinters$.next(this.printers);
|
|
5289
|
+
}
|
|
5290
|
+
});
|
|
5291
|
+
}
|
|
5292
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: PrintersService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5293
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: PrintersService, providedIn: 'root' });
|
|
5062
5294
|
}
|
|
5063
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: PrintersService, decorators: [{
|
|
5064
5296
|
type: Injectable,
|
|
5065
5297
|
args: [{
|
|
5066
5298
|
providedIn: 'root'
|
|
@@ -5258,10 +5490,10 @@ class WebSocketsService {
|
|
|
5258
5490
|
const waitTime = 3 * 1000;
|
|
5259
5491
|
return new Promise((resolve) => setTimeout(resolve, waitTime));
|
|
5260
5492
|
}
|
|
5261
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5262
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
5493
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: WebSocketsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5494
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: WebSocketsService, providedIn: 'root' });
|
|
5263
5495
|
}
|
|
5264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5496
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: WebSocketsService, decorators: [{
|
|
5265
5497
|
type: Injectable,
|
|
5266
5498
|
args: [{
|
|
5267
5499
|
providedIn: 'root',
|
|
@@ -5347,10 +5579,10 @@ class CryptoService {
|
|
|
5347
5579
|
}
|
|
5348
5580
|
return bytes.buffer;
|
|
5349
5581
|
}
|
|
5350
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5351
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
5582
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CryptoService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5583
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CryptoService, providedIn: 'root' });
|
|
5352
5584
|
}
|
|
5353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5585
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CryptoService, decorators: [{
|
|
5354
5586
|
type: Injectable,
|
|
5355
5587
|
args: [{
|
|
5356
5588
|
providedIn: 'root'
|
|
@@ -5454,15 +5686,6 @@ function httpCachingInterceptor(req, next) {
|
|
|
5454
5686
|
return sharedRequest;
|
|
5455
5687
|
}
|
|
5456
5688
|
|
|
5457
|
-
const base64PdfToUrl = (base64) => {
|
|
5458
|
-
const data = new Uint8Array(atob(base64)
|
|
5459
|
-
.split('')
|
|
5460
|
-
.map(char => char.charCodeAt(0)));
|
|
5461
|
-
const blob = new Blob([data], { type: 'application/pdf' });
|
|
5462
|
-
return window.URL.createObjectURL(blob);
|
|
5463
|
-
};
|
|
5464
|
-
const downloadBase64Pdf = (base64) => window.open(base64PdfToUrl(base64));
|
|
5465
|
-
|
|
5466
5689
|
/**
|
|
5467
5690
|
* Convert an object of key-value pairs into a URL query string.
|
|
5468
5691
|
*
|
|
@@ -5536,5 +5759,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
5536
5759
|
* Generated bundle index. Do not edit.
|
|
5537
5760
|
*/
|
|
5538
5761
|
|
|
5539
|
-
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, ShipmentIncomeTypeCode, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
5762
|
+
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 };
|
|
5540
5763
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|