@experteam-mx/ngx-services 18.9.13 → 20.0.0-beta.2
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/README.md +24 -24
- package/fesm2022/experteam-mx-ngx-services.mjs +206 -147
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/index.d.ts +6771 -3
- package/package.json +6 -8
- package/esm2022/experteam-mx-ngx-services.mjs +0 -5
- package/esm2022/lib/apis/api-billing-do.service.mjs +0 -41
- package/esm2022/lib/apis/api-billing-gt.service.mjs +0 -61
- package/esm2022/lib/apis/api-billing-mx.service.mjs +0 -62
- package/esm2022/lib/apis/api-billing-pa.service.mjs +0 -105
- package/esm2022/lib/apis/api-billing-sv.service.mjs +0 -83
- package/esm2022/lib/apis/api-cash-operations.service.mjs +0 -93
- package/esm2022/lib/apis/api-catalogs.service.mjs +0 -593
- package/esm2022/lib/apis/api-companies.service.mjs +0 -1031
- package/esm2022/lib/apis/api-composition.service.mjs +0 -55
- package/esm2022/lib/apis/api-customs.service.mjs +0 -157
- package/esm2022/lib/apis/api-discounts.service.mjs +0 -243
- package/esm2022/lib/apis/api-e-tools-auto-billing.service.mjs +0 -75
- package/esm2022/lib/apis/api-events.service.mjs +0 -53
- package/esm2022/lib/apis/api-external-pickups.service.mjs +0 -74
- package/esm2022/lib/apis/api-inventories.service.mjs +0 -194
- package/esm2022/lib/apis/api-invoices.service.mjs +0 -398
- package/esm2022/lib/apis/api-notifications.service.mjs +0 -104
- package/esm2022/lib/apis/api-open-items.service.mjs +0 -62
- package/esm2022/lib/apis/api-reports.service.mjs +0 -128
- package/esm2022/lib/apis/api-security.service.mjs +0 -245
- package/esm2022/lib/apis/api-services.service.mjs +0 -103
- package/esm2022/lib/apis/api-shipments.service.mjs +0 -87
- package/esm2022/lib/apis/api-supplies.service.mjs +0 -133
- package/esm2022/lib/apis/models/api-billing-do.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-do.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-mx.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-mx.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-pa.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-pa.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-sv.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-sv.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing.models.mjs +0 -2
- package/esm2022/lib/apis/models/api-cash-operations.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-cash-operations.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-catalog.enum.mjs +0 -9
- package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-catalog.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-companies.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-companies.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-composition.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-composition.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-customs.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-customs.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-discounts.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-discounts.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-e-tools-auto-billing.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-e-tools-auto-billing.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-events.enum.mjs +0 -7
- package/esm2022/lib/apis/models/api-events.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-events.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-external-pickups.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-inventories.enum.mjs +0 -22
- package/esm2022/lib/apis/models/api-inventories.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-inventories.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-invoices.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-notifications.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-notifications.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-open-items.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-reports.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-reports.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-security.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-security.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-services.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-services.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-shipments.enums.mjs +0 -8
- package/esm2022/lib/apis/models/api-shipments.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-shipments.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-supplies.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-supplies.types.mjs +0 -2
- package/esm2022/lib/apis/models/api.models.mjs +0 -2
- package/esm2022/lib/cypher/crypto.service.mjs +0 -93
- package/esm2022/lib/helpers/files.mjs +0 -9
- package/esm2022/lib/helpers/http.mjs +0 -66
- package/esm2022/lib/interceptors/api-headers.interceptor.mjs +0 -24
- package/esm2022/lib/interceptors/api-token.interceptor.mjs +0 -28
- package/esm2022/lib/interceptors/http-caching.interceptor.mjs +0 -37
- package/esm2022/lib/ngx-services.models.mjs +0 -11
- package/esm2022/lib/ngx-services.module.mjs +0 -33
- package/esm2022/lib/websockets/web-sockets.service.mjs +0 -115
- package/esm2022/public-api.mjs +0 -89
- package/lib/apis/api-billing-do.service.d.ts +0 -24
- package/lib/apis/api-billing-gt.service.d.ts +0 -38
- package/lib/apis/api-billing-mx.service.d.ts +0 -39
- package/lib/apis/api-billing-pa.service.d.ts +0 -68
- package/lib/apis/api-billing-sv.service.d.ts +0 -55
- package/lib/apis/api-cash-operations.service.d.ts +0 -62
- package/lib/apis/api-catalogs.service.d.ts +0 -433
- package/lib/apis/api-companies.service.d.ts +0 -714
- package/lib/apis/api-composition.service.d.ts +0 -35
- package/lib/apis/api-customs.service.d.ts +0 -110
- package/lib/apis/api-discounts.service.d.ts +0 -167
- package/lib/apis/api-e-tools-auto-billing.service.d.ts +0 -49
- package/lib/apis/api-events.service.d.ts +0 -33
- package/lib/apis/api-external-pickups.service.d.ts +0 -46
- package/lib/apis/api-inventories.service.d.ts +0 -134
- package/lib/apis/api-invoices.service.d.ts +0 -280
- package/lib/apis/api-notifications.service.d.ts +0 -70
- package/lib/apis/api-open-items.service.d.ts +0 -41
- package/lib/apis/api-reports.service.d.ts +0 -82
- package/lib/apis/api-security.service.d.ts +0 -162
- package/lib/apis/api-services.service.d.ts +0 -67
- package/lib/apis/api-shipments.service.d.ts +0 -58
- package/lib/apis/api-supplies.service.d.ts +0 -93
- package/lib/apis/models/api-billing-do.interfaces.d.ts +0 -6
- package/lib/apis/models/api-billing-do.types.d.ts +0 -5
- package/lib/apis/models/api-billing-mx.interfaces.d.ts +0 -21
- package/lib/apis/models/api-billing-mx.types.d.ts +0 -13
- package/lib/apis/models/api-billing-pa.interfaces.d.ts +0 -26
- package/lib/apis/models/api-billing-pa.types.d.ts +0 -16
- package/lib/apis/models/api-billing-sv.interfaces.d.ts +0 -22
- package/lib/apis/models/api-billing-sv.types.d.ts +0 -21
- package/lib/apis/models/api-billing.models.d.ts +0 -27
- package/lib/apis/models/api-cash-operations.interfaces.d.ts +0 -40
- package/lib/apis/models/api-cash-operations.types.d.ts +0 -30
- package/lib/apis/models/api-catalog.enum.d.ts +0 -7
- package/lib/apis/models/api-catalog.interfaces.d.ts +0 -204
- package/lib/apis/models/api-catalog.types.d.ts +0 -203
- package/lib/apis/models/api-companies.interfaces.d.ts +0 -341
- package/lib/apis/models/api-companies.types.d.ts +0 -457
- package/lib/apis/models/api-composition.interfaces.d.ts +0 -272
- package/lib/apis/models/api-composition.types.d.ts +0 -9
- package/lib/apis/models/api-customs.interfaces.d.ts +0 -125
- package/lib/apis/models/api-customs.types.d.ts +0 -90
- package/lib/apis/models/api-discounts.interfaces.d.ts +0 -78
- package/lib/apis/models/api-discounts.types.d.ts +0 -89
- package/lib/apis/models/api-e-tools-auto-billing.interfaces.d.ts +0 -45
- package/lib/apis/models/api-e-tools-auto-billing.types.d.ts +0 -30
- package/lib/apis/models/api-events.enum.d.ts +0 -5
- package/lib/apis/models/api-events.interfaces.d.ts +0 -21
- package/lib/apis/models/api-events.types.d.ts +0 -14
- package/lib/apis/models/api-external-pickups.types.d.ts +0 -31
- package/lib/apis/models/api-inventories.enum.d.ts +0 -18
- package/lib/apis/models/api-inventories.interfaces.d.ts +0 -40
- package/lib/apis/models/api-inventories.types.d.ts +0 -56
- package/lib/apis/models/api-invoices.interfaces.d.ts +0 -267
- package/lib/apis/models/api-invoices.types.d.ts +0 -195
- package/lib/apis/models/api-notifications.interfaces.d.ts +0 -36
- package/lib/apis/models/api-notifications.types.d.ts +0 -34
- package/lib/apis/models/api-open-items.interfaces.d.ts +0 -32
- package/lib/apis/models/api-open-items.types.d.ts +0 -58
- package/lib/apis/models/api-reports.interfaces.d.ts +0 -233
- package/lib/apis/models/api-reports.types.d.ts +0 -50
- package/lib/apis/models/api-security.interfaces.d.ts +0 -68
- package/lib/apis/models/api-security.types.d.ts +0 -72
- package/lib/apis/models/api-services.interfaces.d.ts +0 -49
- package/lib/apis/models/api-services.types.d.ts +0 -67
- package/lib/apis/models/api-shipments.enums.d.ts +0 -6
- package/lib/apis/models/api-shipments.interfaces.d.ts +0 -12
- package/lib/apis/models/api-shipments.types.d.ts +0 -93
- package/lib/apis/models/api-supplies.interfaces.d.ts +0 -40
- package/lib/apis/models/api-supplies.types.d.ts +0 -50
- package/lib/apis/models/api.models.d.ts +0 -36
- package/lib/cypher/crypto.service.d.ts +0 -15
- package/lib/helpers/files.d.ts +0 -2
- package/lib/helpers/http.d.ts +0 -38
- package/lib/interceptors/api-headers.interceptor.d.ts +0 -12
- package/lib/interceptors/api-token.interceptor.d.ts +0 -11
- package/lib/interceptors/http-caching.interceptor.d.ts +0 -12
- package/lib/ngx-services.models.d.ts +0 -62
- package/lib/ngx-services.module.d.ts +0 -16
- package/lib/websockets/web-sockets.service.d.ts +0 -49
- package/public-api.d.ts +0 -79
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, NgModule,
|
|
2
|
+
import { InjectionToken, NgModule, Inject, Injectable, inject } from '@angular/core';
|
|
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';
|
|
@@ -37,11 +37,11 @@ class NgxServicesModule {
|
|
|
37
37
|
]
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
41
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
42
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: NgxServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
41
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.12", ngImport: i0, type: NgxServicesModule });
|
|
42
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: NgxServicesModule, providers: [provideHttpClient()] });
|
|
43
43
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: NgxServicesModule, decorators: [{
|
|
45
45
|
type: NgModule,
|
|
46
46
|
args: [{
|
|
47
47
|
providers: [provideHttpClient()]
|
|
@@ -72,10 +72,10 @@ class ApiBillingDOService {
|
|
|
72
72
|
return this.http.get(`${this.url}/income-types`)
|
|
73
73
|
.pipe(map(({ data }) => data));
|
|
74
74
|
}
|
|
75
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
76
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
75
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingDOService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
76
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingDOService, providedIn: 'root' });
|
|
77
77
|
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingDOService, decorators: [{
|
|
79
79
|
type: Injectable,
|
|
80
80
|
args: [{
|
|
81
81
|
providedIn: 'root'
|
|
@@ -129,10 +129,10 @@ class ApiBillingGtService {
|
|
|
129
129
|
return this.http.post(`${this.url}/locations`, body)
|
|
130
130
|
.pipe(map(({ data }) => data));
|
|
131
131
|
}
|
|
132
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
133
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
132
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingGtService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
133
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingGtService, providedIn: 'root' });
|
|
134
134
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingGtService, decorators: [{
|
|
136
136
|
type: Injectable,
|
|
137
137
|
args: [{
|
|
138
138
|
providedIn: 'root'
|
|
@@ -187,10 +187,10 @@ class ApiBillingMxService {
|
|
|
187
187
|
return this.http.get(`${this.url}/postal-codes`, { params })
|
|
188
188
|
.pipe(map(({ data }) => data));
|
|
189
189
|
}
|
|
190
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
191
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
190
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingMxService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
191
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingMxService, providedIn: 'root' });
|
|
192
192
|
}
|
|
193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingMxService, decorators: [{
|
|
194
194
|
type: Injectable,
|
|
195
195
|
args: [{
|
|
196
196
|
providedIn: 'root'
|
|
@@ -288,10 +288,10 @@ class ApiBillingPaService {
|
|
|
288
288
|
return this.http.post(`${this.url}/locations`, body)
|
|
289
289
|
.pipe(map(({ data }) => data));
|
|
290
290
|
}
|
|
291
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
292
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
291
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingPaService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
292
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingPaService, providedIn: 'root' });
|
|
293
293
|
}
|
|
294
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingPaService, decorators: [{
|
|
295
295
|
type: Injectable,
|
|
296
296
|
args: [{
|
|
297
297
|
providedIn: 'root'
|
|
@@ -367,10 +367,10 @@ class ApiBillingSvService {
|
|
|
367
367
|
return this.http.get(`${this.url}/municipalities`, { params })
|
|
368
368
|
.pipe(map(({ data }) => data));
|
|
369
369
|
}
|
|
370
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
371
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
370
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingSvService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
371
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingSvService, providedIn: 'root' });
|
|
372
372
|
}
|
|
373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiBillingSvService, decorators: [{
|
|
374
374
|
type: Injectable,
|
|
375
375
|
args: [{
|
|
376
376
|
providedIn: 'root'
|
|
@@ -456,10 +456,10 @@ class ApiCashOperationsService {
|
|
|
456
456
|
return this.http.get(`${this.url}/opening-transferences/${id}/receipt`)
|
|
457
457
|
.pipe(map(({ data }) => data));
|
|
458
458
|
}
|
|
459
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
460
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
459
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCashOperationsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
460
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCashOperationsService, providedIn: 'root' });
|
|
461
461
|
}
|
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCashOperationsService, decorators: [{
|
|
463
463
|
type: Injectable,
|
|
464
464
|
args: [{
|
|
465
465
|
providedIn: 'root'
|
|
@@ -1045,10 +1045,10 @@ class ApiCatalogsService {
|
|
|
1045
1045
|
return this.http.delete(`${this.url}/holidays/${id}`)
|
|
1046
1046
|
.pipe(map(({ data }) => data));
|
|
1047
1047
|
}
|
|
1048
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1049
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1048
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCatalogsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1049
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
|
|
1050
1050
|
}
|
|
1051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCatalogsService, decorators: [{
|
|
1052
1052
|
type: Injectable,
|
|
1053
1053
|
args: [{
|
|
1054
1054
|
providedIn: 'root'
|
|
@@ -1502,7 +1502,7 @@ class ApiCompaniesService {
|
|
|
1502
1502
|
* @return {Observable<AccountsOut>} An observable emitting the account data.
|
|
1503
1503
|
*/
|
|
1504
1504
|
getAccounts(params) {
|
|
1505
|
-
return this.http.get(`${this.url}/accounts
|
|
1505
|
+
return this.http.get(`${this.url}/accounts`, { params })
|
|
1506
1506
|
.pipe(map(({ data }) => data));
|
|
1507
1507
|
}
|
|
1508
1508
|
/**
|
|
@@ -2072,10 +2072,10 @@ class ApiCompaniesService {
|
|
|
2072
2072
|
}
|
|
2073
2073
|
}).pipe(map(({ data }) => data));
|
|
2074
2074
|
}
|
|
2075
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2076
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2075
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCompaniesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2076
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
|
|
2077
2077
|
}
|
|
2078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCompaniesService, decorators: [{
|
|
2079
2079
|
type: Injectable,
|
|
2080
2080
|
args: [{
|
|
2081
2081
|
providedIn: 'root'
|
|
@@ -2122,10 +2122,10 @@ class ApiCompositionService {
|
|
|
2122
2122
|
return this.http.get(`${this.url}/country-references`, { params })
|
|
2123
2123
|
.pipe(map(({ data }) => data));
|
|
2124
2124
|
}
|
|
2125
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2126
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2125
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCompositionService, deps: [{ token: 'env' }, { token: i1$1.CookieService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2126
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCompositionService, providedIn: 'root' });
|
|
2127
2127
|
}
|
|
2128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCompositionService, decorators: [{
|
|
2129
2129
|
type: Injectable,
|
|
2130
2130
|
args: [{
|
|
2131
2131
|
providedIn: 'root'
|
|
@@ -2275,10 +2275,10 @@ class ApiCustomsService {
|
|
|
2275
2275
|
params
|
|
2276
2276
|
}).pipe(map(({ data }) => data));
|
|
2277
2277
|
}
|
|
2278
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2279
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2278
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCustomsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2279
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCustomsService, providedIn: 'root' });
|
|
2280
2280
|
}
|
|
2281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiCustomsService, decorators: [{
|
|
2282
2282
|
type: Injectable,
|
|
2283
2283
|
args: [{
|
|
2284
2284
|
providedIn: 'root'
|
|
@@ -2514,59 +2514,10 @@ class ApiDiscountsService {
|
|
|
2514
2514
|
return this.http.put(`${this.url}/customer-restrictions/V2/${id}`, body)
|
|
2515
2515
|
.pipe(map(({ data }) => data));
|
|
2516
2516
|
}
|
|
2517
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2518
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2517
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiDiscountsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2518
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiDiscountsService, providedIn: 'root' });
|
|
2519
2519
|
}
|
|
2520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2521
|
-
type: Injectable,
|
|
2522
|
-
args: [{
|
|
2523
|
-
providedIn: 'root'
|
|
2524
|
-
}]
|
|
2525
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2526
|
-
type: Inject,
|
|
2527
|
-
args: ['env']
|
|
2528
|
-
}] }, { type: i1.HttpClient }] });
|
|
2529
|
-
|
|
2530
|
-
class ApiEventsService {
|
|
2531
|
-
environments;
|
|
2532
|
-
http;
|
|
2533
|
-
constructor(environments, http) {
|
|
2534
|
-
this.environments = environments;
|
|
2535
|
-
this.http = http;
|
|
2536
|
-
}
|
|
2537
|
-
/**
|
|
2538
|
-
* Gets the API endpoint URL for Events from the environments configuration.
|
|
2539
|
-
*
|
|
2540
|
-
* @return {string} The URL for the Events API. Returns an empty string if not defined.
|
|
2541
|
-
*/
|
|
2542
|
-
get url() {
|
|
2543
|
-
return this.environments.apiEventsUrl ?? '';
|
|
2544
|
-
}
|
|
2545
|
-
/**
|
|
2546
|
-
* Sends a request to start an event
|
|
2547
|
-
*
|
|
2548
|
-
* @param {OperationModuleStartIn} body - The event information to be submitted.
|
|
2549
|
-
* @return {Observable<OperationModuleOut>} An Observable emitting the server's response containing the created event details.
|
|
2550
|
-
*/
|
|
2551
|
-
postOperationModulesStart(body) {
|
|
2552
|
-
return this.http.post(`${this.url}/operation-modules/start`, body)
|
|
2553
|
-
.pipe(map(({ data }) => data));
|
|
2554
|
-
}
|
|
2555
|
-
/**
|
|
2556
|
-
* Updates the discount information for a specific item.
|
|
2557
|
-
*
|
|
2558
|
-
* @param {number} id - The unique identifier of the item whose event is to be updated.
|
|
2559
|
-
* @param {OperationModuleEndIn} body - The payload containing the updated event details.
|
|
2560
|
-
* @return {Observable<OperationModuleOut>} An observable emitting the updated event details.
|
|
2561
|
-
*/
|
|
2562
|
-
putOperationModulesEnd(id, body) {
|
|
2563
|
-
return this.http.put(`${this.url}/operation-modules/${id}/end`, body)
|
|
2564
|
-
.pipe(map(({ data }) => data));
|
|
2565
|
-
}
|
|
2566
|
-
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 });
|
|
2567
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiEventsService, providedIn: 'root' });
|
|
2568
|
-
}
|
|
2569
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiEventsService, decorators: [{
|
|
2520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiDiscountsService, decorators: [{
|
|
2570
2521
|
type: Injectable,
|
|
2571
2522
|
args: [{
|
|
2572
2523
|
providedIn: 'root'
|
|
@@ -2634,10 +2585,59 @@ class ApiEToolsAutoBillingService {
|
|
|
2634
2585
|
params
|
|
2635
2586
|
}).pipe(map(({ data }) => data));
|
|
2636
2587
|
}
|
|
2637
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2638
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2588
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiEToolsAutoBillingService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2589
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiEToolsAutoBillingService, providedIn: 'root' });
|
|
2590
|
+
}
|
|
2591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiEToolsAutoBillingService, decorators: [{
|
|
2592
|
+
type: Injectable,
|
|
2593
|
+
args: [{
|
|
2594
|
+
providedIn: 'root'
|
|
2595
|
+
}]
|
|
2596
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2597
|
+
type: Inject,
|
|
2598
|
+
args: ['env']
|
|
2599
|
+
}] }, { type: i1.HttpClient }] });
|
|
2600
|
+
|
|
2601
|
+
class ApiEventsService {
|
|
2602
|
+
environments;
|
|
2603
|
+
http;
|
|
2604
|
+
constructor(environments, http) {
|
|
2605
|
+
this.environments = environments;
|
|
2606
|
+
this.http = http;
|
|
2607
|
+
}
|
|
2608
|
+
/**
|
|
2609
|
+
* Gets the API endpoint URL for Events from the environments configuration.
|
|
2610
|
+
*
|
|
2611
|
+
* @return {string} The URL for the Events API. Returns an empty string if not defined.
|
|
2612
|
+
*/
|
|
2613
|
+
get url() {
|
|
2614
|
+
return this.environments.apiEventsUrl ?? '';
|
|
2615
|
+
}
|
|
2616
|
+
/**
|
|
2617
|
+
* Sends a request to start an event
|
|
2618
|
+
*
|
|
2619
|
+
* @param {OperationModuleStartIn} body - The event information to be submitted.
|
|
2620
|
+
* @return {Observable<OperationModuleOut>} An Observable emitting the server's response containing the created event details.
|
|
2621
|
+
*/
|
|
2622
|
+
postOperationModulesStart(body) {
|
|
2623
|
+
return this.http.post(`${this.url}/operation-modules/start`, body)
|
|
2624
|
+
.pipe(map(({ data }) => data));
|
|
2625
|
+
}
|
|
2626
|
+
/**
|
|
2627
|
+
* Updates the discount information for a specific item.
|
|
2628
|
+
*
|
|
2629
|
+
* @param {number} id - The unique identifier of the item whose event is to be updated.
|
|
2630
|
+
* @param {OperationModuleEndIn} body - The payload containing the updated event details.
|
|
2631
|
+
* @return {Observable<OperationModuleOut>} An observable emitting the updated event details.
|
|
2632
|
+
*/
|
|
2633
|
+
putOperationModulesEnd(id, body) {
|
|
2634
|
+
return this.http.put(`${this.url}/operation-modules/${id}/end`, body)
|
|
2635
|
+
.pipe(map(({ data }) => data));
|
|
2636
|
+
}
|
|
2637
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiEventsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2638
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiEventsService, providedIn: 'root' });
|
|
2639
2639
|
}
|
|
2640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2640
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiEventsService, decorators: [{
|
|
2641
2641
|
type: Injectable,
|
|
2642
2642
|
args: [{
|
|
2643
2643
|
providedIn: 'root'
|
|
@@ -2647,12 +2647,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
2647
2647
|
args: ['env']
|
|
2648
2648
|
}] }, { type: i1.HttpClient }] });
|
|
2649
2649
|
|
|
2650
|
-
class
|
|
2651
|
-
|
|
2650
|
+
class ApiExternalOperationsService {
|
|
2651
|
+
http;
|
|
2652
2652
|
environment;
|
|
2653
2653
|
appKey;
|
|
2654
|
-
constructor(
|
|
2655
|
-
this.
|
|
2654
|
+
constructor(http, environment) {
|
|
2655
|
+
this.http = http;
|
|
2656
2656
|
this.environment = environment;
|
|
2657
2657
|
this.appKey = environment.apiExternalOperationsKey ?? '';
|
|
2658
2658
|
}
|
|
@@ -2666,6 +2666,16 @@ class ApiExternalPickupsService {
|
|
|
2666
2666
|
get url() {
|
|
2667
2667
|
return this.environment.apiExternalOperationsUrl ?? '';
|
|
2668
2668
|
}
|
|
2669
|
+
/**
|
|
2670
|
+
* Retrieves delivery confirmation details based on the provided OTP code.
|
|
2671
|
+
*
|
|
2672
|
+
* @param {string} otpCode - The OTP code used to search for delivery confirmation.
|
|
2673
|
+
* @return {Observable<DeliveryConfirmationData>} An observable containing the delivery confirmation data.
|
|
2674
|
+
*/
|
|
2675
|
+
getDeliveryConfirmation(otpCode) {
|
|
2676
|
+
return this.http.get(`${this.url}/delivery-confirmation/search/${otpCode}`)
|
|
2677
|
+
.pipe(map$1(({ data }) => data));
|
|
2678
|
+
}
|
|
2669
2679
|
/**
|
|
2670
2680
|
* Generates a delivery confirmation by sending the provided payload to the API.
|
|
2671
2681
|
*
|
|
@@ -2673,8 +2683,8 @@ class ApiExternalPickupsService {
|
|
|
2673
2683
|
* @return {Observable<DeliveryConfirmationGenerateOut>} An observable that emits the generated delivery confirmation data.
|
|
2674
2684
|
*/
|
|
2675
2685
|
postDeliveryConfirmationGenerate(payload) {
|
|
2676
|
-
return this.
|
|
2677
|
-
headers:
|
|
2686
|
+
return this.http.post(`${this.url}/delivery-confirmation/generate`, payload, {
|
|
2687
|
+
headers: this.getAppKeyHeader(),
|
|
2678
2688
|
}).pipe(map$1(({ data }) => data));
|
|
2679
2689
|
}
|
|
2680
2690
|
/**
|
|
@@ -2686,8 +2696,8 @@ class ApiExternalPickupsService {
|
|
|
2686
2696
|
* @return {Observable<Object>} - An observable containing the response data from the API.
|
|
2687
2697
|
*/
|
|
2688
2698
|
patchDeliveryConfirmationComplete({ keyOTP, operationId, }) {
|
|
2689
|
-
return this.
|
|
2690
|
-
headers:
|
|
2699
|
+
return this.http.patch(`${this.url}/delivery-confirmation/completed/${keyOTP}`, null, {
|
|
2700
|
+
headers: this.getAppKeyHeader(),
|
|
2691
2701
|
params: { operation_id: operationId }
|
|
2692
2702
|
}).pipe(map$1(({ data }) => data));
|
|
2693
2703
|
}
|
|
@@ -2700,14 +2710,17 @@ class ApiExternalPickupsService {
|
|
|
2700
2710
|
* @return {Observable<Object>} An observable that emits the server's response when the cancellation is processed.
|
|
2701
2711
|
*/
|
|
2702
2712
|
putDeliveryConfirmation({ otp, ...body }) {
|
|
2703
|
-
return this.
|
|
2704
|
-
headers:
|
|
2713
|
+
return this.http.put(`${this.url}/delivery-confirmation/confirmation/${otp}`, body, {
|
|
2714
|
+
headers: this.getAppKeyHeader(),
|
|
2705
2715
|
}).pipe(map$1(({ data }) => data));
|
|
2706
2716
|
}
|
|
2707
|
-
|
|
2708
|
-
|
|
2717
|
+
getAppKeyHeader() {
|
|
2718
|
+
return { ...(this.appKey && { AppKey: this.appKey }) };
|
|
2719
|
+
}
|
|
2720
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiExternalOperationsService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2721
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiExternalOperationsService, providedIn: 'root' });
|
|
2709
2722
|
}
|
|
2710
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiExternalOperationsService, decorators: [{
|
|
2711
2724
|
type: Injectable,
|
|
2712
2725
|
args: [{
|
|
2713
2726
|
providedIn: 'root'
|
|
@@ -2894,10 +2907,10 @@ class ApiInventoriesService {
|
|
|
2894
2907
|
return this.http.delete(`${this.url}/incident-reason-complements/${id}`)
|
|
2895
2908
|
.pipe(map(({ data }) => data));
|
|
2896
2909
|
}
|
|
2897
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2898
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2910
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiInventoriesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2911
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
|
|
2899
2912
|
}
|
|
2900
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiInventoriesService, decorators: [{
|
|
2901
2914
|
type: Injectable,
|
|
2902
2915
|
args: [{
|
|
2903
2916
|
providedIn: 'root'
|
|
@@ -3288,10 +3301,10 @@ class ApiInvoicesService {
|
|
|
3288
3301
|
return this.http.get(`${this.url}/operation/print/xml/${documentId}`)
|
|
3289
3302
|
.pipe(map(({ data }) => data));
|
|
3290
3303
|
}
|
|
3291
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3292
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3304
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiInvoicesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3305
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
|
|
3293
3306
|
}
|
|
3294
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiInvoicesService, decorators: [{
|
|
3295
3308
|
type: Injectable,
|
|
3296
3309
|
args: [{
|
|
3297
3310
|
providedIn: 'root'
|
|
@@ -3388,10 +3401,10 @@ class ApiNotificationsService {
|
|
|
3388
3401
|
return this.http.get(`${this.url}/notifications-type`, { params })
|
|
3389
3402
|
.pipe(map(({ data }) => data));
|
|
3390
3403
|
}
|
|
3391
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3392
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3404
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiNotificationsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3405
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiNotificationsService, providedIn: 'root' });
|
|
3393
3406
|
}
|
|
3394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiNotificationsService, decorators: [{
|
|
3395
3408
|
type: Injectable,
|
|
3396
3409
|
args: [{
|
|
3397
3410
|
providedIn: 'root'
|
|
@@ -3446,10 +3459,10 @@ class ApiOpenItemsService {
|
|
|
3446
3459
|
return this.http.post(`${this.url}/other-invoices`, body)
|
|
3447
3460
|
.pipe(map(({ data }) => data));
|
|
3448
3461
|
}
|
|
3449
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3450
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3462
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiOpenItemsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3463
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiOpenItemsService, providedIn: 'root' });
|
|
3451
3464
|
}
|
|
3452
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiOpenItemsService, decorators: [{
|
|
3453
3466
|
type: Injectable,
|
|
3454
3467
|
args: [{
|
|
3455
3468
|
providedIn: 'root'
|
|
@@ -3570,10 +3583,10 @@ class ApiReportsService {
|
|
|
3570
3583
|
return this.http.get(`${this.url}/invoices`, { params })
|
|
3571
3584
|
.pipe(map(({ data }) => data));
|
|
3572
3585
|
}
|
|
3573
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3574
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3586
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiReportsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3587
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
|
|
3575
3588
|
}
|
|
3576
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiReportsService, decorators: [{
|
|
3577
3590
|
type: Injectable,
|
|
3578
3591
|
args: [{
|
|
3579
3592
|
providedIn: 'root'
|
|
@@ -3809,10 +3822,10 @@ class ApiSecurityService {
|
|
|
3809
3822
|
}
|
|
3810
3823
|
}).pipe(map(({ data }) => data));
|
|
3811
3824
|
}
|
|
3812
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3813
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3825
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiSecurityService, deps: [{ token: 'env' }, { token: i1$1.CookieService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3826
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiSecurityService, providedIn: 'root' });
|
|
3814
3827
|
}
|
|
3815
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiSecurityService, decorators: [{
|
|
3816
3829
|
type: Injectable,
|
|
3817
3830
|
args: [{
|
|
3818
3831
|
providedIn: 'root'
|
|
@@ -3908,10 +3921,10 @@ class ApiServicesService {
|
|
|
3908
3921
|
params: queryParams
|
|
3909
3922
|
}).pipe(map(({ data }) => data));
|
|
3910
3923
|
}
|
|
3911
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3912
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3924
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiServicesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3925
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiServicesService, providedIn: 'root' });
|
|
3913
3926
|
}
|
|
3914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3927
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiServicesService, decorators: [{
|
|
3915
3928
|
type: Injectable,
|
|
3916
3929
|
args: [{
|
|
3917
3930
|
providedIn: 'root'
|
|
@@ -3991,10 +4004,10 @@ class ApiShipmentsService {
|
|
|
3991
4004
|
params
|
|
3992
4005
|
}).pipe(map(({ data }) => data));
|
|
3993
4006
|
}
|
|
3994
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3995
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4007
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiShipmentsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4008
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
|
|
3996
4009
|
}
|
|
3997
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4010
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiShipmentsService, decorators: [{
|
|
3998
4011
|
type: Injectable,
|
|
3999
4012
|
args: [{
|
|
4000
4013
|
providedIn: 'root'
|
|
@@ -4120,10 +4133,10 @@ class ApiSuppliesService {
|
|
|
4120
4133
|
return this.http.get(`${this.url}/supply-locations/export/excel`, { params })
|
|
4121
4134
|
.pipe(map(({ data }) => data));
|
|
4122
4135
|
}
|
|
4123
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4124
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4136
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiSuppliesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4137
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiSuppliesService, providedIn: 'root' });
|
|
4125
4138
|
}
|
|
4126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApiSuppliesService, decorators: [{
|
|
4127
4140
|
type: Injectable,
|
|
4128
4141
|
args: [{
|
|
4129
4142
|
providedIn: 'root'
|
|
@@ -4269,10 +4282,10 @@ class WebSocketsService {
|
|
|
4269
4282
|
const waitTime = 3 * 1000;
|
|
4270
4283
|
return new Promise((resolve) => setTimeout(resolve, waitTime));
|
|
4271
4284
|
}
|
|
4272
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4273
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4285
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: WebSocketsService, deps: [{ token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4286
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: WebSocketsService, providedIn: 'root' });
|
|
4274
4287
|
}
|
|
4275
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4288
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: WebSocketsService, decorators: [{
|
|
4276
4289
|
type: Injectable,
|
|
4277
4290
|
args: [{
|
|
4278
4291
|
providedIn: 'root',
|
|
@@ -4360,10 +4373,10 @@ class CryptoService {
|
|
|
4360
4373
|
}
|
|
4361
4374
|
return bytes.buffer;
|
|
4362
4375
|
}
|
|
4363
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4364
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4376
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CryptoService, deps: [{ token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4377
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CryptoService, providedIn: 'root' });
|
|
4365
4378
|
}
|
|
4366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4379
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CryptoService, decorators: [{
|
|
4367
4380
|
type: Injectable,
|
|
4368
4381
|
args: [{
|
|
4369
4382
|
providedIn: 'root'
|
|
@@ -4397,6 +4410,52 @@ function apiHeadersInterceptor(req, next) {
|
|
|
4397
4410
|
return next(req);
|
|
4398
4411
|
}
|
|
4399
4412
|
|
|
4413
|
+
/**
|
|
4414
|
+
* HTTP interceptor that injects the external operations API key into outbound requests.
|
|
4415
|
+
*
|
|
4416
|
+
* The interceptor:
|
|
4417
|
+
* 1. Reads `apiExternalOperationsKey` from the injected `ENVIRONMENT_TOKEN`.
|
|
4418
|
+
* 2. Skips modification if the key is absent.
|
|
4419
|
+
* 3. Leaves the request unchanged if it already contains an `AppKey` header (caller override).
|
|
4420
|
+
* 4. Otherwise clones the request adding `AppKey: apiExternalOperationsKey`.
|
|
4421
|
+
*
|
|
4422
|
+
* This enables centralized, transparent authentication for services targeting external
|
|
4423
|
+
* operations endpoints while allowing explicit per-request overrides.
|
|
4424
|
+
*
|
|
4425
|
+
* Example:
|
|
4426
|
+
* ```ts
|
|
4427
|
+
* provideHttpClient(
|
|
4428
|
+
* withInterceptors([apiKeyInterceptor])
|
|
4429
|
+
* );
|
|
4430
|
+
* ```
|
|
4431
|
+
*
|
|
4432
|
+
* @param request The original immutable `HttpRequest` instance.
|
|
4433
|
+
* @param next The next handler in the interceptor chain, used to forward the (possibly cloned) request.
|
|
4434
|
+
* @returns An `Observable` stream of the HTTP events for the (potentially augmented) request.
|
|
4435
|
+
*
|
|
4436
|
+
* @remarks
|
|
4437
|
+
* - If you need to intentionally send a different key for a specific request, set the `AppKey`
|
|
4438
|
+
* header manually before this interceptor runs.
|
|
4439
|
+
* - If `apiExternalOperationsKey` is undefined (e.g., missing configuration), the request is passed through unchanged.
|
|
4440
|
+
* - Order matters: place this interceptor before others that rely on the presence of the `AppKey` header.
|
|
4441
|
+
*
|
|
4442
|
+
* @see HttpRequest
|
|
4443
|
+
* @see HttpHandlerFn
|
|
4444
|
+
*/
|
|
4445
|
+
function apiKeyInterceptor(request, next) {
|
|
4446
|
+
const { apiExternalOperationsKey } = inject(ENVIRONMENT_TOKEN);
|
|
4447
|
+
if (!apiExternalOperationsKey)
|
|
4448
|
+
return next(request);
|
|
4449
|
+
if (request.headers.has('AppKey'))
|
|
4450
|
+
return next(request);
|
|
4451
|
+
request = request.clone({
|
|
4452
|
+
setHeaders: {
|
|
4453
|
+
AppKey: apiExternalOperationsKey
|
|
4454
|
+
}
|
|
4455
|
+
});
|
|
4456
|
+
return next(request);
|
|
4457
|
+
}
|
|
4458
|
+
|
|
4400
4459
|
/**
|
|
4401
4460
|
* An HTTP interceptor to append an Authorization header with a Bearer token
|
|
4402
4461
|
* to outgoing HTTP requests if certain conditions are met.
|
|
@@ -4454,6 +4513,15 @@ function httpCachingInterceptor(req, next) {
|
|
|
4454
4513
|
}));
|
|
4455
4514
|
}
|
|
4456
4515
|
|
|
4516
|
+
const base64PdfToUrl = (base64) => {
|
|
4517
|
+
const data = new Uint8Array(atob(base64)
|
|
4518
|
+
.split('')
|
|
4519
|
+
.map(char => char.charCodeAt(0)));
|
|
4520
|
+
const blob = new Blob([data], { type: 'application/pdf' });
|
|
4521
|
+
return window.URL.createObjectURL(blob);
|
|
4522
|
+
};
|
|
4523
|
+
const downloadBase64Pdf = (base64) => window.open(base64PdfToUrl(base64));
|
|
4524
|
+
|
|
4457
4525
|
/**
|
|
4458
4526
|
* Convert an object of key-value pairs into a URL query string.
|
|
4459
4527
|
*
|
|
@@ -4519,15 +4587,6 @@ const xmlHeaders = (format = 'object') => {
|
|
|
4519
4587
|
: new HttpHeaders(headers);
|
|
4520
4588
|
};
|
|
4521
4589
|
|
|
4522
|
-
const base64PdfToUrl = (base64) => {
|
|
4523
|
-
const data = new Uint8Array(atob(base64)
|
|
4524
|
-
.split('')
|
|
4525
|
-
.map(char => char.charCodeAt(0)));
|
|
4526
|
-
const blob = new Blob([data], { type: 'application/pdf' });
|
|
4527
|
-
return window.URL.createObjectURL(blob);
|
|
4528
|
-
};
|
|
4529
|
-
const downloadBase64Pdf = (base64) => window.open(base64PdfToUrl(base64));
|
|
4530
|
-
|
|
4531
4590
|
/*
|
|
4532
4591
|
* Public API Surface of ngx-services
|
|
4533
4592
|
*/
|
|
@@ -4536,5 +4595,5 @@ const downloadBase64Pdf = (base64) => window.open(base64PdfToUrl(base64));
|
|
|
4536
4595
|
* Generated bundle index. Do not edit.
|
|
4537
4596
|
*/
|
|
4538
4597
|
|
|
4539
|
-
export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService,
|
|
4598
|
+
export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
4540
4599
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|