@experteam-mx/ngx-services 18.9.21 → 20.0.0-beta
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 +80 -24
- package/fesm2022/experteam-mx-ngx-services.mjs +576 -433
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/index.d.ts +7667 -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 -616
- 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 -242
- 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-ops.service.mjs +0 -87
- package/esm2022/lib/apis/api-inventories.service.mjs +0 -208
- package/esm2022/lib/apis/api-invoices.service.mjs +0 -453
- 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-quote.service.mjs +0 -87
- package/esm2022/lib/apis/api-reports.service.mjs +0 -172
- 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 -116
- 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-ops.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-external-ops.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-quote.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-quote.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-key.interceptor.mjs +0 -48
- 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 -94
- 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 -451
- 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 -166
- 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-ops.service.d.ts +0 -54
- package/lib/apis/api-inventories.service.d.ts +0 -145
- package/lib/apis/api-invoices.service.d.ts +0 -317
- 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-quote.service.d.ts +0 -65
- package/lib/apis/api-reports.service.d.ts +0 -120
- 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 -77
- 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 -211
- package/lib/apis/models/api-catalog.types.d.ts +0 -213
- package/lib/apis/models/api-companies.interfaces.d.ts +0 -346
- package/lib/apis/models/api-companies.types.d.ts +0 -461
- 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-ops.interfaces.d.ts +0 -21
- package/lib/apis/models/api-external-ops.types.d.ts +0 -35
- 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 -62
- package/lib/apis/models/api-invoices.interfaces.d.ts +0 -277
- package/lib/apis/models/api-invoices.types.d.ts +0 -236
- 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-quote.interfaces.d.ts +0 -13
- package/lib/apis/models/api-quote.types.d.ts +0 -17
- package/lib/apis/models/api-reports.interfaces.d.ts +0 -353
- package/lib/apis/models/api-reports.types.d.ts +0 -59
- 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 -41
- package/lib/apis/models/api-shipments.types.d.ts +0 -121
- 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-key.interceptor.d.ts +0 -35
- 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 -63
- 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 -84
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken,
|
|
3
|
-
import
|
|
4
|
-
import { provideHttpClient, HttpHeaders, HttpResponse, HttpParams } from '@angular/common/http';
|
|
2
|
+
import { InjectionToken, makeEnvironmentProviders, NgModule, inject, Injectable } from '@angular/core';
|
|
3
|
+
import { provideHttpClient, HttpClient, HttpHeaders, HttpResponse, HttpParams } from '@angular/common/http';
|
|
5
4
|
import { map, mergeMap, forkJoin, tap, Observable, of } from 'rxjs';
|
|
6
|
-
import * as i1$1 from 'ngx-cookie-service';
|
|
7
|
-
import { CookieService } from 'ngx-cookie-service';
|
|
8
5
|
import { map as map$1, tap as tap$1 } from 'rxjs/operators';
|
|
6
|
+
import { CookieService } from 'ngx-cookie-service';
|
|
9
7
|
import Pusher from 'pusher-js';
|
|
10
8
|
|
|
11
9
|
/**
|
|
@@ -16,7 +14,22 @@ import Pusher from 'pusher-js';
|
|
|
16
14
|
* within the application. This token is typically associated with an
|
|
17
15
|
* `Environment` type that defines the structure of the configuration.
|
|
18
16
|
*/
|
|
19
|
-
const ENVIRONMENT_TOKEN = new InjectionToken('
|
|
17
|
+
const ENVIRONMENT_TOKEN = new InjectionToken('ENVIRONMENT_TOKEN');
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Provides ngx-services dependencies for standalone Angular applications.
|
|
21
|
+
*
|
|
22
|
+
* Register this provider in `ApplicationConfig.providers` so all services in
|
|
23
|
+
* this library can resolve the environment-based configuration.
|
|
24
|
+
*/
|
|
25
|
+
function provideNgxServices(environment) {
|
|
26
|
+
return makeEnvironmentProviders([
|
|
27
|
+
{
|
|
28
|
+
provide: ENVIRONMENT_TOKEN,
|
|
29
|
+
useValue: environment
|
|
30
|
+
}
|
|
31
|
+
]);
|
|
32
|
+
}
|
|
20
33
|
|
|
21
34
|
class NgxServicesModule {
|
|
22
35
|
/**
|
|
@@ -25,23 +38,21 @@ class NgxServicesModule {
|
|
|
25
38
|
* @param {Environment} environment - The environment configuration object.
|
|
26
39
|
*
|
|
27
40
|
* @return {ModuleWithProviders<NgxServicesModule>} The module with providers for the NgxServicesModule.
|
|
41
|
+
*
|
|
42
|
+
* @deprecated Use `provideNgxServices(environment)` in `ApplicationConfig.providers`
|
|
43
|
+
* for standalone applications. This API will be removed in `20.2.0`.
|
|
28
44
|
*/
|
|
29
45
|
static forRoot(environment) {
|
|
30
46
|
return {
|
|
31
47
|
ngModule: NgxServicesModule,
|
|
32
|
-
providers: [
|
|
33
|
-
{
|
|
34
|
-
provide: 'env',
|
|
35
|
-
useValue: environment
|
|
36
|
-
}
|
|
37
|
-
]
|
|
48
|
+
providers: [provideNgxServices(environment)]
|
|
38
49
|
};
|
|
39
50
|
}
|
|
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: "
|
|
51
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: NgxServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
52
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: NgxServicesModule });
|
|
53
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: NgxServicesModule, providers: [provideHttpClient()] });
|
|
43
54
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: NgxServicesModule, decorators: [{
|
|
45
56
|
type: NgModule,
|
|
46
57
|
args: [{
|
|
47
58
|
providers: [provideHttpClient()]
|
|
@@ -49,128 +60,110 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
49
60
|
}] });
|
|
50
61
|
|
|
51
62
|
class ApiBillingDOService {
|
|
52
|
-
environments;
|
|
53
|
-
http;
|
|
54
|
-
constructor(environments, http) {
|
|
55
|
-
this.environments = environments;
|
|
56
|
-
this.http = http;
|
|
57
|
-
}
|
|
63
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
64
|
+
http = inject(HttpClient);
|
|
58
65
|
/**
|
|
59
|
-
*
|
|
66
|
+
* Gets the base URL for Billing DO API endpoints.
|
|
60
67
|
*
|
|
61
|
-
* @
|
|
68
|
+
* @returns {string} Billing DO API base URL, or an empty string when it is not configured.
|
|
62
69
|
*/
|
|
63
70
|
get url() {
|
|
64
71
|
return this.environments.apiBillingDO ?? '';
|
|
65
72
|
}
|
|
66
73
|
/**
|
|
67
|
-
* Retrieves
|
|
74
|
+
* Retrieves the list of income types from Billing DO.
|
|
68
75
|
*
|
|
69
|
-
* @
|
|
76
|
+
* @returns {Observable<IncomeTypesOut>} Observable that emits the income types payload.
|
|
70
77
|
*/
|
|
71
78
|
getIncomeTypes() {
|
|
72
79
|
return this.http.get(`${this.url}/income-types`)
|
|
73
80
|
.pipe(map(({ data }) => data));
|
|
74
81
|
}
|
|
75
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
76
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
82
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingDOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
83
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingDOService, providedIn: 'root' });
|
|
77
84
|
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingDOService, decorators: [{
|
|
79
86
|
type: Injectable,
|
|
80
87
|
args: [{
|
|
81
88
|
providedIn: 'root'
|
|
82
89
|
}]
|
|
83
|
-
}]
|
|
84
|
-
type: Inject,
|
|
85
|
-
args: ['env']
|
|
86
|
-
}] }, { type: i1.HttpClient }] });
|
|
90
|
+
}] });
|
|
87
91
|
|
|
88
92
|
class ApiBillingGtService {
|
|
89
|
-
environments;
|
|
90
|
-
http;
|
|
91
|
-
constructor(environments, http) {
|
|
92
|
-
this.environments = environments;
|
|
93
|
-
this.http = http;
|
|
94
|
-
}
|
|
93
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
94
|
+
http = inject(HttpClient);
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Gets the base URL for Billing GT API endpoints.
|
|
97
97
|
*
|
|
98
|
-
* @
|
|
98
|
+
* @returns {string} Billing GT API base URL, or an empty string when it is not configured.
|
|
99
99
|
*/
|
|
100
100
|
get url() {
|
|
101
101
|
return this.environments.apiBillingGT ?? '';
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Retrieves the list of billing configurations by location.
|
|
105
105
|
*
|
|
106
|
-
* @
|
|
106
|
+
* @returns {Observable<BillingConfigsOut>} Observable that emits the billing configurations payload.
|
|
107
107
|
*/
|
|
108
108
|
getConfigs() {
|
|
109
109
|
return this.http.get(`${this.url}/location/configs`)
|
|
110
110
|
.pipe(map(({ data }) => data));
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
|
-
* Retrieves
|
|
113
|
+
* Retrieves billing configuration details for a location.
|
|
114
114
|
*
|
|
115
|
-
* @param {number} id -
|
|
116
|
-
* @
|
|
115
|
+
* @param {number} id - Location identifier to fetch.
|
|
116
|
+
* @returns {Observable<BillingConfigOut>} Observable that emits the location billing configuration payload.
|
|
117
117
|
*/
|
|
118
118
|
getConfig(id) {
|
|
119
119
|
return this.http.get(`${this.url}/locations/${id}`)
|
|
120
120
|
.pipe(map(({ data }) => data));
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* Creates a billing configuration for a location.
|
|
124
124
|
*
|
|
125
|
-
* @param {BillingConfigIn} body -
|
|
126
|
-
* @
|
|
125
|
+
* @param {BillingConfigIn} body - Billing configuration payload for the location.
|
|
126
|
+
* @returns {Observable<BillingConfigOut>} Observable that emits the created billing configuration payload.
|
|
127
127
|
*/
|
|
128
128
|
postConfigs(body) {
|
|
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.18", ngImport: i0, type: ApiBillingGtService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
133
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", 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.18", ngImport: i0, type: ApiBillingGtService, decorators: [{
|
|
136
136
|
type: Injectable,
|
|
137
137
|
args: [{
|
|
138
138
|
providedIn: 'root'
|
|
139
139
|
}]
|
|
140
|
-
}]
|
|
141
|
-
type: Inject,
|
|
142
|
-
args: ['env']
|
|
143
|
-
}] }, { type: i1.HttpClient }] });
|
|
140
|
+
}] });
|
|
144
141
|
|
|
145
142
|
class ApiBillingMxService {
|
|
146
|
-
environments;
|
|
147
|
-
http;
|
|
148
|
-
constructor(environments, http) {
|
|
149
|
-
this.environments = environments;
|
|
150
|
-
this.http = http;
|
|
151
|
-
}
|
|
143
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
144
|
+
http = inject(HttpClient);
|
|
152
145
|
/**
|
|
153
|
-
*
|
|
146
|
+
* Gets the base URL for Billing MX API endpoints.
|
|
154
147
|
*
|
|
155
|
-
* @
|
|
148
|
+
* @returns {string} Billing MX API base URL, or an empty string when it is not configured.
|
|
156
149
|
*/
|
|
157
150
|
get url() {
|
|
158
151
|
return this.environments.apiBillingMX ?? '';
|
|
159
152
|
}
|
|
160
153
|
/**
|
|
161
|
-
*
|
|
154
|
+
* Retrieves the list of fiscal regimens from Billing MX.
|
|
162
155
|
*
|
|
163
|
-
* @
|
|
156
|
+
* @returns {Observable<FiscalRegimensOut>} Observable that emits the fiscal regimens payload.
|
|
164
157
|
*/
|
|
165
158
|
getFiscalRegimens() {
|
|
166
159
|
return this.http.get(`${this.url}/fiscal-regimens`)
|
|
167
160
|
.pipe(map(({ data }) => data));
|
|
168
161
|
}
|
|
169
162
|
/**
|
|
170
|
-
*
|
|
163
|
+
* Retrieves the CFDI uses accepted for a fiscal regimen.
|
|
171
164
|
*
|
|
172
|
-
* @param {number} fiscalRegimen
|
|
173
|
-
* @
|
|
165
|
+
* @param {number} fiscalRegimen Fiscal regimen identifier used to filter accepted CFDI uses.
|
|
166
|
+
* @returns {Observable<FiscalRegimensAcceptedOut>} Observable that emits the accepted CFDI uses payload.
|
|
174
167
|
*/
|
|
175
168
|
getFiscalRegimensAccepted(fiscalRegimen) {
|
|
176
169
|
const params = { 'fiscal-regimen': fiscalRegimen };
|
|
@@ -178,48 +171,41 @@ class ApiBillingMxService {
|
|
|
178
171
|
.pipe(map(({ data }) => data));
|
|
179
172
|
}
|
|
180
173
|
/**
|
|
181
|
-
*
|
|
174
|
+
* Retrieves postal code information from Billing MX.
|
|
182
175
|
*
|
|
183
|
-
* @param {QueryParams} params
|
|
184
|
-
* @
|
|
176
|
+
* @param {QueryParams} params Query parameters used by the postal codes endpoint.
|
|
177
|
+
* @returns {Observable<PostalCodesOut>} Observable that emits the postal code data payload.
|
|
185
178
|
*/
|
|
186
179
|
getPostalCodes(params) {
|
|
187
180
|
return this.http.get(`${this.url}/postal-codes`, { params })
|
|
188
181
|
.pipe(map(({ data }) => data));
|
|
189
182
|
}
|
|
190
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
191
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
183
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingMxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
184
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingMxService, providedIn: 'root' });
|
|
192
185
|
}
|
|
193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingMxService, decorators: [{
|
|
194
187
|
type: Injectable,
|
|
195
188
|
args: [{
|
|
196
189
|
providedIn: 'root'
|
|
197
190
|
}]
|
|
198
|
-
}]
|
|
199
|
-
type: Inject,
|
|
200
|
-
args: ['env']
|
|
201
|
-
}] }, { type: i1.HttpClient }] });
|
|
191
|
+
}] });
|
|
202
192
|
|
|
203
193
|
class ApiBillingPaService {
|
|
204
|
-
environments;
|
|
205
|
-
http;
|
|
206
|
-
constructor(environments, http) {
|
|
207
|
-
this.environments = environments;
|
|
208
|
-
this.http = http;
|
|
209
|
-
}
|
|
194
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
195
|
+
http = inject(HttpClient);
|
|
210
196
|
/**
|
|
211
|
-
*
|
|
197
|
+
* Gets the base URL for Billing PA API endpoints.
|
|
212
198
|
*
|
|
213
|
-
* @
|
|
199
|
+
* @returns {string} Billing PA API base URL, or an empty string when it is not configured.
|
|
214
200
|
*/
|
|
215
201
|
get url() {
|
|
216
202
|
return this.environments.apiBillingPA ?? '';
|
|
217
203
|
}
|
|
218
204
|
/**
|
|
219
|
-
* Retrieves
|
|
205
|
+
* Retrieves the list of districts.
|
|
220
206
|
*
|
|
221
|
-
* @param {QueryParams} params
|
|
222
|
-
* @returns {Observable<DistrictsOut>}
|
|
207
|
+
* @param {QueryParams} params Query parameters used by the districts endpoint.
|
|
208
|
+
* @returns {Observable<DistrictsOut>} Observable that emits the districts payload.
|
|
223
209
|
*/
|
|
224
210
|
getDistricts(params) {
|
|
225
211
|
return this.http.get(`${this.url}/districts`, {
|
|
@@ -227,10 +213,10 @@ class ApiBillingPaService {
|
|
|
227
213
|
}).pipe(map(({ data }) => data));
|
|
228
214
|
}
|
|
229
215
|
/**
|
|
230
|
-
|
|
216
|
+
* Retrieves the list of parishes.
|
|
231
217
|
*
|
|
232
|
-
|
|
233
|
-
|
|
218
|
+
* @param {QueryParams} params Query parameters used by the parishes endpoint.
|
|
219
|
+
* @returns {Observable<ParishesOut>} Observable that emits the parishes payload.
|
|
234
220
|
*/
|
|
235
221
|
getParishes(params) {
|
|
236
222
|
return this.http.get(`${this.url}/parishes`, {
|
|
@@ -238,10 +224,10 @@ class ApiBillingPaService {
|
|
|
238
224
|
}).pipe(map(({ data }) => data));
|
|
239
225
|
}
|
|
240
226
|
/**
|
|
241
|
-
|
|
227
|
+
* Retrieves the list of provinces.
|
|
242
228
|
*
|
|
243
|
-
|
|
244
|
-
|
|
229
|
+
* @param {QueryParams} params Query parameters used by the provinces endpoint.
|
|
230
|
+
* @returns {Observable<ProvincesOut>} Observable that emits the provinces payload.
|
|
245
231
|
*/
|
|
246
232
|
getProvinces(params) {
|
|
247
233
|
return this.http.get(`${this.url}/provinces`, {
|
|
@@ -249,10 +235,10 @@ class ApiBillingPaService {
|
|
|
249
235
|
}).pipe(map(({ data }) => data));
|
|
250
236
|
}
|
|
251
237
|
/**
|
|
252
|
-
|
|
238
|
+
* Validates a customer using Billing PA.
|
|
253
239
|
*
|
|
254
|
-
|
|
255
|
-
|
|
240
|
+
* @param {QueryParams} params Query parameters used by the customer validation endpoint.
|
|
241
|
+
* @returns {Observable<BillingPaCustomerOut>} Observable that emits customer validation data.
|
|
256
242
|
*/
|
|
257
243
|
getValidateCustomer(params) {
|
|
258
244
|
return this.http.get(`${this.url}/validate-customer`, {
|
|
@@ -260,59 +246,52 @@ class ApiBillingPaService {
|
|
|
260
246
|
}).pipe(map(({ data }) => data));
|
|
261
247
|
}
|
|
262
248
|
/**
|
|
263
|
-
|
|
249
|
+
* Retrieves billing configurations by location.
|
|
264
250
|
*
|
|
265
|
-
|
|
251
|
+
* @returns {Observable<BillingConfigsOut>} Observable that emits billing configuration items.
|
|
266
252
|
*/
|
|
267
253
|
getConfigs() {
|
|
268
254
|
return this.http.get(`${this.url}/location/configs`)
|
|
269
255
|
.pipe(map(({ data }) => data));
|
|
270
256
|
}
|
|
271
257
|
/**
|
|
272
|
-
|
|
258
|
+
* Retrieves the billing configuration for a location.
|
|
273
259
|
*
|
|
274
|
-
|
|
275
|
-
|
|
260
|
+
* @param {number} id Location identifier.
|
|
261
|
+
* @returns {Observable<BillingConfigOut>} Observable that emits the location billing configuration payload.
|
|
276
262
|
*/
|
|
277
263
|
getConfig(id) {
|
|
278
264
|
return this.http.get(`${this.url}/locations/${id}`)
|
|
279
265
|
.pipe(map(({ data }) => data));
|
|
280
266
|
}
|
|
281
267
|
/**
|
|
282
|
-
|
|
268
|
+
* Creates a billing configuration for a location.
|
|
283
269
|
*
|
|
284
|
-
|
|
285
|
-
|
|
270
|
+
* @param {BillingConfigIn} body Billing configuration payload for the new location.
|
|
271
|
+
* @returns {Observable<BillingConfigOut>} Observable that emits the created billing configuration payload.
|
|
286
272
|
*/
|
|
287
273
|
postConfigs(body) {
|
|
288
274
|
return this.http.post(`${this.url}/locations`, body)
|
|
289
275
|
.pipe(map(({ data }) => data));
|
|
290
276
|
}
|
|
291
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
292
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
277
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingPaService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
278
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingPaService, providedIn: 'root' });
|
|
293
279
|
}
|
|
294
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingPaService, decorators: [{
|
|
295
281
|
type: Injectable,
|
|
296
282
|
args: [{
|
|
297
283
|
providedIn: 'root'
|
|
298
284
|
}]
|
|
299
|
-
}]
|
|
300
|
-
type: Inject,
|
|
301
|
-
args: ['env']
|
|
302
|
-
}] }, { type: i1.HttpClient }] });
|
|
285
|
+
}] });
|
|
303
286
|
|
|
304
287
|
class ApiBillingSvService {
|
|
305
|
-
environments;
|
|
306
|
-
http;
|
|
307
|
-
constructor(environments, http) {
|
|
308
|
-
this.environments = environments;
|
|
309
|
-
this.http = http;
|
|
310
|
-
}
|
|
288
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
289
|
+
http = inject(HttpClient);
|
|
311
290
|
/**
|
|
312
291
|
* Retrieves the URL for the billing API.
|
|
313
292
|
* If the URL is not defined in the environments configuration, returns an empty string.
|
|
314
293
|
*
|
|
315
|
-
|
|
294
|
+
* @returns {string} The billing API URL or an empty string if not set.
|
|
316
295
|
*/
|
|
317
296
|
get url() {
|
|
318
297
|
return this.environments.apiBillingSV ?? '';
|
|
@@ -321,7 +300,7 @@ class ApiBillingSvService {
|
|
|
321
300
|
* Fetches the list of economic activities based on the provided query parameters.
|
|
322
301
|
*
|
|
323
302
|
* @param {QueryParams} params - The query parameters used to filter the economic activities.
|
|
324
|
-
|
|
303
|
+
* @returns {Observable<EconomicActivitiesOut>} An observable that emits the list of economic activities.
|
|
325
304
|
*/
|
|
326
305
|
getEconomicActivities(params) {
|
|
327
306
|
return this.http.get(`${this.url}/economic-activities`, { params })
|
|
@@ -331,7 +310,7 @@ class ApiBillingSvService {
|
|
|
331
310
|
* Retrieves the list of person types based on given query parameters.
|
|
332
311
|
*
|
|
333
312
|
* @param {QueryParams} params - The query parameters used to filter the person types.
|
|
334
|
-
|
|
313
|
+
* @returns {Observable<PersonTypesOut>} An observable that emits a list of person types.
|
|
335
314
|
*/
|
|
336
315
|
getPersonTypes(params) {
|
|
337
316
|
return this.http.get(`${this.url}/person-types`, { params })
|
|
@@ -341,7 +320,7 @@ class ApiBillingSvService {
|
|
|
341
320
|
* Fetches the list of establishment types.
|
|
342
321
|
*
|
|
343
322
|
* @param {QueryParams} params The query parameters to be sent with the HTTP request.
|
|
344
|
-
|
|
323
|
+
* @returns {Observable<EstablishmentTypesOut>} An observable that emits the establishment types data.
|
|
345
324
|
*/
|
|
346
325
|
getEstablishmentTypes(params) {
|
|
347
326
|
return this.http.get(`${this.url}/establishment-types`, { params })
|
|
@@ -351,7 +330,7 @@ class ApiBillingSvService {
|
|
|
351
330
|
* Fetches the list of departments based on the provided query parameters.
|
|
352
331
|
*
|
|
353
332
|
* @param {QueryParams} params - The query parameters to filter or modify the departments fetch request.
|
|
354
|
-
|
|
333
|
+
* @returns {Observable<DepartmentsOut>} An observable emitting the list of departments.
|
|
355
334
|
*/
|
|
356
335
|
getDepartments(params) {
|
|
357
336
|
return this.http.get(`${this.url}/departments`, { params })
|
|
@@ -361,36 +340,29 @@ class ApiBillingSvService {
|
|
|
361
340
|
* Retrieves a list of municipalities based on the provided query parameters.
|
|
362
341
|
*
|
|
363
342
|
* @param {QueryParams} params - The query parameters used to filter the municipalities.
|
|
364
|
-
|
|
343
|
+
* @returns {Observable<MunicipalitiesOut>} An observable that emits the retrieved municipalities data.
|
|
365
344
|
*/
|
|
366
345
|
getMunicipalities(params) {
|
|
367
346
|
return this.http.get(`${this.url}/municipalities`, { params })
|
|
368
347
|
.pipe(map(({ data }) => data));
|
|
369
348
|
}
|
|
370
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
371
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
349
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingSvService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
350
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingSvService, providedIn: 'root' });
|
|
372
351
|
}
|
|
373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingSvService, decorators: [{
|
|
374
353
|
type: Injectable,
|
|
375
354
|
args: [{
|
|
376
355
|
providedIn: 'root'
|
|
377
356
|
}]
|
|
378
|
-
}]
|
|
379
|
-
type: Inject,
|
|
380
|
-
args: ['env']
|
|
381
|
-
}] }, { type: i1.HttpClient }] });
|
|
357
|
+
}] });
|
|
382
358
|
|
|
383
359
|
class ApiCashOperationsService {
|
|
384
|
-
environments;
|
|
385
|
-
http;
|
|
386
|
-
constructor(environments, http) {
|
|
387
|
-
this.environments = environments;
|
|
388
|
-
this.http = http;
|
|
389
|
-
}
|
|
360
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
361
|
+
http = inject(HttpClient);
|
|
390
362
|
/**
|
|
391
363
|
* Retrieves the URL for the cash operations API from the environment configurations.
|
|
392
364
|
*
|
|
393
|
-
|
|
365
|
+
* @returns {string} The URL of the cash operations API.
|
|
394
366
|
*/
|
|
395
367
|
get url() {
|
|
396
368
|
return this.environments.apiCashOperationsUrl ?? '';
|
|
@@ -456,26 +428,28 @@ class ApiCashOperationsService {
|
|
|
456
428
|
return this.http.get(`${this.url}/opening-transferences/${id}/receipt`)
|
|
457
429
|
.pipe(map(({ data }) => data));
|
|
458
430
|
}
|
|
459
|
-
|
|
460
|
-
|
|
431
|
+
/**
|
|
432
|
+
* Retrieves a deposit slip by its ID.
|
|
433
|
+
* @param id - The unique identifier of the deposit slip to retrieve
|
|
434
|
+
* @returns An Observable that emits the deposit slip data
|
|
435
|
+
*/
|
|
436
|
+
getDepositSlip(id) {
|
|
437
|
+
return this.http.get(`${this.url}/deposits/${id}/slip`)
|
|
438
|
+
.pipe(map(({ data }) => data));
|
|
439
|
+
}
|
|
440
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCashOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
441
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCashOperationsService, providedIn: 'root' });
|
|
461
442
|
}
|
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCashOperationsService, decorators: [{
|
|
463
444
|
type: Injectable,
|
|
464
445
|
args: [{
|
|
465
446
|
providedIn: 'root'
|
|
466
447
|
}]
|
|
467
|
-
}]
|
|
468
|
-
type: Inject,
|
|
469
|
-
args: ['env']
|
|
470
|
-
}] }, { type: i1.HttpClient }] });
|
|
448
|
+
}] });
|
|
471
449
|
|
|
472
450
|
class ApiCatalogsService {
|
|
473
|
-
environments;
|
|
474
|
-
http;
|
|
475
|
-
constructor(environments, http) {
|
|
476
|
-
this.environments = environments;
|
|
477
|
-
this.http = http;
|
|
478
|
-
}
|
|
451
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
452
|
+
http = inject(HttpClient);
|
|
479
453
|
/**
|
|
480
454
|
* Retrieves the URL for the reports API from the environment configurations.
|
|
481
455
|
*
|
|
@@ -531,7 +505,7 @@ class ApiCatalogsService {
|
|
|
531
505
|
* @param body - The identification type payload to create (IdentificationTypeIn).
|
|
532
506
|
* @returns Observable<IdentificationTypeOut> that emits the created identification type on success.
|
|
533
507
|
*/
|
|
534
|
-
|
|
508
|
+
postIdentificationType(body) {
|
|
535
509
|
return this.http.post(`${this.url}/identification-types`, body)
|
|
536
510
|
.pipe(map(({ data }) => data));
|
|
537
511
|
}
|
|
@@ -578,7 +552,7 @@ class ApiCatalogsService {
|
|
|
578
552
|
* @param body - The identification type number validation payload to validate (IdentificationTypeNumberValidationIn).
|
|
579
553
|
* @returns Observable<IdentificationTypeNumberValidationOut> that emits the validate status.
|
|
580
554
|
*/
|
|
581
|
-
|
|
555
|
+
postIdentificationTypeNumberValidation(body) {
|
|
582
556
|
return this.http.post(`${this.url}/identification-types/number-validation`, body)
|
|
583
557
|
.pipe(map(({ data }) => data));
|
|
584
558
|
}
|
|
@@ -716,6 +690,15 @@ class ApiCatalogsService {
|
|
|
716
690
|
return this.http.get(`${this.url}/currencies`, { params })
|
|
717
691
|
.pipe(map(({ data }) => data));
|
|
718
692
|
}
|
|
693
|
+
/**
|
|
694
|
+
* Retrieves currency information by ID.
|
|
695
|
+
* @param id - The unique identifier of the currency to retrieve.
|
|
696
|
+
* @returns An Observable that emits the currency data.
|
|
697
|
+
*/
|
|
698
|
+
getCurrency(id) {
|
|
699
|
+
return this.http.get(`${this.url}/currencies/${id}`)
|
|
700
|
+
.pipe(map(({ data }) => data));
|
|
701
|
+
}
|
|
719
702
|
/**
|
|
720
703
|
* Fetches the list of available languages based on the provided query parameters.
|
|
721
704
|
*
|
|
@@ -1068,26 +1051,28 @@ class ApiCatalogsService {
|
|
|
1068
1051
|
getBusinessPartyTraderTypes(params) {
|
|
1069
1052
|
return this.http.get(`${this.url}/business-party-trader-types`, { params }).pipe(map(({ data }) => data));
|
|
1070
1053
|
}
|
|
1071
|
-
|
|
1072
|
-
|
|
1054
|
+
/**
|
|
1055
|
+
* Retrieves package locations based on the provided query parameters.
|
|
1056
|
+
* @param params - Query parameters to filter or configure the package locations request
|
|
1057
|
+
* @returns An Observable that emits the package locations data
|
|
1058
|
+
*/
|
|
1059
|
+
getPackageLocations(params) {
|
|
1060
|
+
return this.http.get(`${this.url}/package-locations`, { params })
|
|
1061
|
+
.pipe(map(({ data }) => data));
|
|
1062
|
+
}
|
|
1063
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCatalogsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1064
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
|
|
1073
1065
|
}
|
|
1074
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1066
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCatalogsService, decorators: [{
|
|
1075
1067
|
type: Injectable,
|
|
1076
1068
|
args: [{
|
|
1077
1069
|
providedIn: 'root'
|
|
1078
1070
|
}]
|
|
1079
|
-
}]
|
|
1080
|
-
type: Inject,
|
|
1081
|
-
args: ['env']
|
|
1082
|
-
}] }, { type: i1.HttpClient }] });
|
|
1071
|
+
}] });
|
|
1083
1072
|
|
|
1084
1073
|
class ApiCompaniesService {
|
|
1085
|
-
environments;
|
|
1086
|
-
http;
|
|
1087
|
-
constructor(environments, http) {
|
|
1088
|
-
this.environments = environments;
|
|
1089
|
-
this.http = http;
|
|
1090
|
-
}
|
|
1074
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
1075
|
+
http = inject(HttpClient);
|
|
1091
1076
|
/**
|
|
1092
1077
|
* Retrieves the URL for the companies API from the environment configurations.
|
|
1093
1078
|
*
|
|
@@ -1270,6 +1255,25 @@ class ApiCompaniesService {
|
|
|
1270
1255
|
return this.http.put(`${this.url}/employees/${id}`, body)
|
|
1271
1256
|
.pipe(map(({ data }) => data));
|
|
1272
1257
|
}
|
|
1258
|
+
/**
|
|
1259
|
+
* Updates an employee with the specified ID using the provided partial data.
|
|
1260
|
+
* @param id - The unique identifier of the employee to update
|
|
1261
|
+
* @param body - Partial employee data containing the fields to update
|
|
1262
|
+
* @returns An Observable that emits the updated employee data
|
|
1263
|
+
*/
|
|
1264
|
+
patchEmployee(id, body) {
|
|
1265
|
+
return this.http.patch(`${this.url}/employees/${id}`, body)
|
|
1266
|
+
.pipe(map(({ data }) => data));
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Enable an employee with the specified ID.
|
|
1270
|
+
* @param id - The unique identifier of the employee to update
|
|
1271
|
+
* @returns An Observable that emits the enabled employee data
|
|
1272
|
+
*/
|
|
1273
|
+
patchEmployeeEnable(id) {
|
|
1274
|
+
return this.http.patch(`${this.url}/employees/${id}/enable`, {})
|
|
1275
|
+
.pipe(map(({ data }) => data));
|
|
1276
|
+
}
|
|
1273
1277
|
/**
|
|
1274
1278
|
* Deletes an employee based on the provided ID.
|
|
1275
1279
|
*
|
|
@@ -1895,6 +1899,24 @@ class ApiCompaniesService {
|
|
|
1895
1899
|
return this.http.post(`${this.url}/workflow-configs/batch`, body)
|
|
1896
1900
|
.pipe(map(({ data }) => data));
|
|
1897
1901
|
}
|
|
1902
|
+
/**
|
|
1903
|
+
* Retrieves a list of companies based on the provided query parameters.
|
|
1904
|
+
* @param params - The query parameters to filter and paginate the companies list
|
|
1905
|
+
* @returns An Observable that emits the companies data
|
|
1906
|
+
*/
|
|
1907
|
+
getCompanies(params) {
|
|
1908
|
+
return this.http.get(`${this.url}/companies`, { params })
|
|
1909
|
+
.pipe(map(({ data }) => data));
|
|
1910
|
+
}
|
|
1911
|
+
/**
|
|
1912
|
+
* Retrieves a company by its ID.
|
|
1913
|
+
* @param id - The unique identifier of the company to retrieve.
|
|
1914
|
+
* @returns An Observable that emits the company data.
|
|
1915
|
+
*/
|
|
1916
|
+
getCompany(id) {
|
|
1917
|
+
return this.http.get(`${this.url}/companies/${id}`)
|
|
1918
|
+
.pipe(map(({ data }) => data));
|
|
1919
|
+
}
|
|
1898
1920
|
/**
|
|
1899
1921
|
* Sends a POST request to create a new company and returns the created company's details.
|
|
1900
1922
|
*
|
|
@@ -2095,32 +2117,23 @@ class ApiCompaniesService {
|
|
|
2095
2117
|
}
|
|
2096
2118
|
}).pipe(map(({ data }) => data));
|
|
2097
2119
|
}
|
|
2098
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2099
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2120
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCompaniesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2121
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
|
|
2100
2122
|
}
|
|
2101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCompaniesService, decorators: [{
|
|
2102
2124
|
type: Injectable,
|
|
2103
2125
|
args: [{
|
|
2104
2126
|
providedIn: 'root'
|
|
2105
2127
|
}]
|
|
2106
|
-
}]
|
|
2107
|
-
type: Inject,
|
|
2108
|
-
args: ['env']
|
|
2109
|
-
}] }, { type: i1.HttpClient }] });
|
|
2128
|
+
}] });
|
|
2110
2129
|
|
|
2111
2130
|
class ApiCompositionService {
|
|
2112
|
-
environments;
|
|
2113
|
-
|
|
2114
|
-
http;
|
|
2115
|
-
constructor(environments, cookie, http) {
|
|
2116
|
-
this.environments = environments;
|
|
2117
|
-
this.cookie = cookie;
|
|
2118
|
-
this.http = http;
|
|
2119
|
-
}
|
|
2131
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2132
|
+
http = inject(HttpClient);
|
|
2120
2133
|
/**
|
|
2121
2134
|
* Retrieves the API security URL from the environment configuration.
|
|
2122
2135
|
*
|
|
2123
|
-
|
|
2136
|
+
* @returns {string} The API security URL.
|
|
2124
2137
|
*/
|
|
2125
2138
|
get url() {
|
|
2126
2139
|
return this.environments.apiCompositionUrl ?? '';
|
|
@@ -2129,7 +2142,7 @@ class ApiCompositionService {
|
|
|
2129
2142
|
* Retrieves shipment details based on the provided shipment ID.
|
|
2130
2143
|
*
|
|
2131
2144
|
* @param {number} id - The unique identifier of the shipment to retrieve.
|
|
2132
|
-
|
|
2145
|
+
* @returns {Observable<ShipmentOut>} An observable that emits the details of the shipment.
|
|
2133
2146
|
*/
|
|
2134
2147
|
getShipment(id) {
|
|
2135
2148
|
return this.http.get(`${this.url}/shipments/${id}`)
|
|
@@ -2139,32 +2152,25 @@ class ApiCompositionService {
|
|
|
2139
2152
|
* Fetches the country references data based on the provided query parameters.
|
|
2140
2153
|
*
|
|
2141
2154
|
* @param {QueryParams} params - The query parameters for the API request.
|
|
2142
|
-
|
|
2155
|
+
* @returns {Observable<CompositionCountryReferencesOut>} An observable emitting the country references.
|
|
2143
2156
|
*/
|
|
2144
2157
|
getCountryReferences(params) {
|
|
2145
2158
|
return this.http.get(`${this.url}/country-references`, { params })
|
|
2146
2159
|
.pipe(map(({ data }) => data));
|
|
2147
2160
|
}
|
|
2148
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2149
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2161
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCompositionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2162
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCompositionService, providedIn: 'root' });
|
|
2150
2163
|
}
|
|
2151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCompositionService, decorators: [{
|
|
2152
2165
|
type: Injectable,
|
|
2153
2166
|
args: [{
|
|
2154
2167
|
providedIn: 'root'
|
|
2155
2168
|
}]
|
|
2156
|
-
}]
|
|
2157
|
-
type: Inject,
|
|
2158
|
-
args: ['env']
|
|
2159
|
-
}] }, { type: i1$1.CookieService }, { type: i1.HttpClient }] });
|
|
2169
|
+
}] });
|
|
2160
2170
|
|
|
2161
2171
|
class ApiCustomsService {
|
|
2162
|
-
environments;
|
|
2163
|
-
http;
|
|
2164
|
-
constructor(environments, http) {
|
|
2165
|
-
this.environments = environments;
|
|
2166
|
-
this.http = http;
|
|
2167
|
-
}
|
|
2172
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2173
|
+
http = inject(HttpClient);
|
|
2168
2174
|
/**
|
|
2169
2175
|
* Retrieves the URL for the cash operations API from the environment configurations.
|
|
2170
2176
|
*
|
|
@@ -2298,26 +2304,19 @@ class ApiCustomsService {
|
|
|
2298
2304
|
params
|
|
2299
2305
|
}).pipe(map(({ data }) => data));
|
|
2300
2306
|
}
|
|
2301
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2302
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2307
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCustomsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2308
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCustomsService, providedIn: 'root' });
|
|
2303
2309
|
}
|
|
2304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiCustomsService, decorators: [{
|
|
2305
2311
|
type: Injectable,
|
|
2306
2312
|
args: [{
|
|
2307
2313
|
providedIn: 'root'
|
|
2308
2314
|
}]
|
|
2309
|
-
}]
|
|
2310
|
-
type: Inject,
|
|
2311
|
-
args: ['env']
|
|
2312
|
-
}] }, { type: i1.HttpClient }] });
|
|
2315
|
+
}] });
|
|
2313
2316
|
|
|
2314
2317
|
class ApiDiscountsService {
|
|
2315
|
-
environments;
|
|
2316
|
-
http;
|
|
2317
|
-
constructor(environments, http) {
|
|
2318
|
-
this.environments = environments;
|
|
2319
|
-
this.http = http;
|
|
2320
|
-
}
|
|
2318
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2319
|
+
http = inject(HttpClient);
|
|
2321
2320
|
/**
|
|
2322
2321
|
* Gets the API endpoint URL for discounts from the environments configuration.
|
|
2323
2322
|
*
|
|
@@ -2450,7 +2449,7 @@ class ApiDiscountsService {
|
|
|
2450
2449
|
* @return {Observable<LoyaltyRuleOut>} An observable that emits the updated loyalty rule details.
|
|
2451
2450
|
*/
|
|
2452
2451
|
postLoyaltyRule(body) {
|
|
2453
|
-
return this.http.
|
|
2452
|
+
return this.http.post(`${this.url}/loyalty-rules`, body)
|
|
2454
2453
|
.pipe(map(({ data }) => data));
|
|
2455
2454
|
}
|
|
2456
2455
|
/**
|
|
@@ -2536,26 +2535,19 @@ class ApiDiscountsService {
|
|
|
2536
2535
|
return this.http.put(`${this.url}/customer-restrictions/V2/${id}`, body)
|
|
2537
2536
|
.pipe(map(({ data }) => data));
|
|
2538
2537
|
}
|
|
2539
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2540
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2538
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiDiscountsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2539
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiDiscountsService, providedIn: 'root' });
|
|
2541
2540
|
}
|
|
2542
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2541
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiDiscountsService, decorators: [{
|
|
2543
2542
|
type: Injectable,
|
|
2544
2543
|
args: [{
|
|
2545
2544
|
providedIn: 'root'
|
|
2546
2545
|
}]
|
|
2547
|
-
}]
|
|
2548
|
-
type: Inject,
|
|
2549
|
-
args: ['env']
|
|
2550
|
-
}] }, { type: i1.HttpClient }] });
|
|
2546
|
+
}] });
|
|
2551
2547
|
|
|
2552
2548
|
class ApiEToolsAutoBillingService {
|
|
2553
|
-
environments;
|
|
2554
|
-
http;
|
|
2555
|
-
constructor(environments, http) {
|
|
2556
|
-
this.environments = environments;
|
|
2557
|
-
this.http = http;
|
|
2558
|
-
}
|
|
2549
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2550
|
+
http = inject(HttpClient);
|
|
2559
2551
|
/**
|
|
2560
2552
|
* Retrieves the URL for the shipments API from the environment configurations.
|
|
2561
2553
|
*
|
|
@@ -2607,30 +2599,54 @@ class ApiEToolsAutoBillingService {
|
|
|
2607
2599
|
params
|
|
2608
2600
|
}).pipe(map(({ data }) => data));
|
|
2609
2601
|
}
|
|
2610
|
-
|
|
2611
|
-
|
|
2602
|
+
/**
|
|
2603
|
+
* Cancels the billing of an external shipment.
|
|
2604
|
+
*
|
|
2605
|
+
* This method sends a POST request to the backend in order to cancel
|
|
2606
|
+
*
|
|
2607
|
+
* @param params Object containing the required cancellation data
|
|
2608
|
+
* @param params.id External shipment ID
|
|
2609
|
+
* @param params.documentId Billing document ID
|
|
2610
|
+
* @param params.cancellationReasonId Cancellation reason ID
|
|
2611
|
+
*
|
|
2612
|
+
* @returns Observable that emits an empty array when the operation is successful
|
|
2613
|
+
*/
|
|
2614
|
+
postExternalShipmentCancelBilling({ id, documentId, cancellationReasonId }) {
|
|
2615
|
+
return this.http.post(`${this.url}/external-shipments/${id}/cancel-billing`, {
|
|
2616
|
+
documentId,
|
|
2617
|
+
cancellationReasonId
|
|
2618
|
+
})
|
|
2619
|
+
.pipe(map(({ data }) => data));
|
|
2620
|
+
}
|
|
2621
|
+
/**
|
|
2622
|
+
* Re-bills an external shipment.
|
|
2623
|
+
*
|
|
2624
|
+
* This method sends a POST request to the backend to regenerate
|
|
2625
|
+
* @param id External shipment ID
|
|
2626
|
+
* @param body Data required to perform the re-billing
|
|
2627
|
+
* @returns Observable that emits an empty array when the operation is successful
|
|
2628
|
+
*/
|
|
2629
|
+
postExternalShipmentReBilling(id, body) {
|
|
2630
|
+
return this.http.post(`${this.url}/external-shipments/${id}/re-billing`, body)
|
|
2631
|
+
.pipe(map(({ data }) => data));
|
|
2632
|
+
}
|
|
2633
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiEToolsAutoBillingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2634
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiEToolsAutoBillingService, providedIn: 'root' });
|
|
2612
2635
|
}
|
|
2613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiEToolsAutoBillingService, decorators: [{
|
|
2614
2637
|
type: Injectable,
|
|
2615
2638
|
args: [{
|
|
2616
2639
|
providedIn: 'root'
|
|
2617
2640
|
}]
|
|
2618
|
-
}]
|
|
2619
|
-
type: Inject,
|
|
2620
|
-
args: ['env']
|
|
2621
|
-
}] }, { type: i1.HttpClient }] });
|
|
2641
|
+
}] });
|
|
2622
2642
|
|
|
2623
2643
|
class ApiEventsService {
|
|
2624
|
-
environments;
|
|
2625
|
-
http;
|
|
2626
|
-
constructor(environments, http) {
|
|
2627
|
-
this.environments = environments;
|
|
2628
|
-
this.http = http;
|
|
2629
|
-
}
|
|
2644
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2645
|
+
http = inject(HttpClient);
|
|
2630
2646
|
/**
|
|
2631
2647
|
* Gets the API endpoint URL for Events from the environments configuration.
|
|
2632
2648
|
*
|
|
2633
|
-
|
|
2649
|
+
* @returns {string} The URL for the Events API. Returns an empty string if not defined.
|
|
2634
2650
|
*/
|
|
2635
2651
|
get url() {
|
|
2636
2652
|
return this.environments.apiEventsUrl ?? '';
|
|
@@ -2639,7 +2655,7 @@ class ApiEventsService {
|
|
|
2639
2655
|
* Sends a request to start an event
|
|
2640
2656
|
*
|
|
2641
2657
|
* @param {OperationModuleStartIn} body - The event information to be submitted.
|
|
2642
|
-
|
|
2658
|
+
* @returns {Observable<OperationModuleOut>} An Observable emitting the server's response containing the created event details.
|
|
2643
2659
|
*/
|
|
2644
2660
|
postOperationModulesStart(body) {
|
|
2645
2661
|
return this.http.post(`${this.url}/operation-modules/start`, body)
|
|
@@ -2650,34 +2666,26 @@ class ApiEventsService {
|
|
|
2650
2666
|
*
|
|
2651
2667
|
* @param {number} id - The unique identifier of the item whose event is to be updated.
|
|
2652
2668
|
* @param {OperationModuleEndIn} body - The payload containing the updated event details.
|
|
2653
|
-
|
|
2669
|
+
* @returns {Observable<OperationModuleOut>} An observable emitting the updated event details.
|
|
2654
2670
|
*/
|
|
2655
2671
|
putOperationModulesEnd(id, body) {
|
|
2656
2672
|
return this.http.put(`${this.url}/operation-modules/${id}/end`, body)
|
|
2657
2673
|
.pipe(map(({ data }) => data));
|
|
2658
2674
|
}
|
|
2659
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2660
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2675
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiEventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2676
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiEventsService, providedIn: 'root' });
|
|
2661
2677
|
}
|
|
2662
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiEventsService, decorators: [{
|
|
2663
2679
|
type: Injectable,
|
|
2664
2680
|
args: [{
|
|
2665
2681
|
providedIn: 'root'
|
|
2666
2682
|
}]
|
|
2667
|
-
}]
|
|
2668
|
-
type: Inject,
|
|
2669
|
-
args: ['env']
|
|
2670
|
-
}] }, { type: i1.HttpClient }] });
|
|
2683
|
+
}] });
|
|
2671
2684
|
|
|
2672
2685
|
class ApiExternalOperationsService {
|
|
2673
|
-
http;
|
|
2674
|
-
environment;
|
|
2675
|
-
appKey;
|
|
2676
|
-
constructor(http, environment) {
|
|
2677
|
-
this.http = http;
|
|
2678
|
-
this.environment = environment;
|
|
2679
|
-
this.appKey = environment.apiExternalOperationsKey ?? '';
|
|
2680
|
-
}
|
|
2686
|
+
http = inject(HttpClient);
|
|
2687
|
+
environment = inject(ENVIRONMENT_TOKEN);
|
|
2688
|
+
appKey = this.environment.apiExternalOperationsKey ?? '';
|
|
2681
2689
|
/**
|
|
2682
2690
|
* Getter method to retrieve the API's external operations URL.
|
|
2683
2691
|
* Fetches the URL from the `apiExternalOperationsUrl` property of the environment object.
|
|
@@ -2739,26 +2747,19 @@ class ApiExternalOperationsService {
|
|
|
2739
2747
|
getAppKeyHeader() {
|
|
2740
2748
|
return { ...(this.appKey && { AppKey: this.appKey }) };
|
|
2741
2749
|
}
|
|
2742
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2743
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2750
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiExternalOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2751
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiExternalOperationsService, providedIn: 'root' });
|
|
2744
2752
|
}
|
|
2745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiExternalOperationsService, decorators: [{
|
|
2746
2754
|
type: Injectable,
|
|
2747
2755
|
args: [{
|
|
2748
2756
|
providedIn: 'root'
|
|
2749
2757
|
}]
|
|
2750
|
-
}]
|
|
2751
|
-
type: Inject,
|
|
2752
|
-
args: ['env']
|
|
2753
|
-
}] }] });
|
|
2758
|
+
}] });
|
|
2754
2759
|
|
|
2755
2760
|
class ApiInventoriesService {
|
|
2756
|
-
environments;
|
|
2757
|
-
http;
|
|
2758
|
-
constructor(environments, http) {
|
|
2759
|
-
this.environments = environments;
|
|
2760
|
-
this.http = http;
|
|
2761
|
-
}
|
|
2761
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2762
|
+
http = inject(HttpClient);
|
|
2762
2763
|
/**
|
|
2763
2764
|
* Retrieves the URL for the Inventories API from the environment configurations.
|
|
2764
2765
|
*
|
|
@@ -2943,26 +2944,39 @@ class ApiInventoriesService {
|
|
|
2943
2944
|
return this.http.post(`${this.url}/packages/in-stock`, body)
|
|
2944
2945
|
.pipe(map(({ data }) => data));
|
|
2945
2946
|
}
|
|
2946
|
-
|
|
2947
|
-
|
|
2947
|
+
/**
|
|
2948
|
+
* Fetches the missing package details based on query parameters.
|
|
2949
|
+
*
|
|
2950
|
+
* @param {QueryParams} params - The query parameters for filtering the missing package details.
|
|
2951
|
+
* @return {Observable<ReEntryOfMissingPackageOut>} An observable that emits the detail missing package data.
|
|
2952
|
+
*/
|
|
2953
|
+
getReEntryOfMissingPackages(params) {
|
|
2954
|
+
return this.http.get(`${this.url}/re-entry-of-missing-packages`, {
|
|
2955
|
+
params
|
|
2956
|
+
}).pipe(map(({ data }) => data));
|
|
2957
|
+
}
|
|
2958
|
+
/**
|
|
2959
|
+
* Re-entry missing packages
|
|
2960
|
+
*
|
|
2961
|
+
* @param {ReEntryOfMissingPackagesIn} body - The missing packages data to be re-entry.
|
|
2962
|
+
* @returns {Observable<ReEntryOfMissingPackagesOut>} An observable detail of the updated incident reason complement.
|
|
2963
|
+
*/
|
|
2964
|
+
putReEntryOfMissingPackages(body) {
|
|
2965
|
+
return this.http.put(`${this.url}/re-entry-of-missing-packages`, body).pipe(map(({ data }) => data));
|
|
2966
|
+
}
|
|
2967
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2968
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
|
|
2948
2969
|
}
|
|
2949
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiInventoriesService, decorators: [{
|
|
2950
2971
|
type: Injectable,
|
|
2951
2972
|
args: [{
|
|
2952
2973
|
providedIn: 'root'
|
|
2953
2974
|
}]
|
|
2954
|
-
}]
|
|
2955
|
-
type: Inject,
|
|
2956
|
-
args: ['env']
|
|
2957
|
-
}] }, { type: i1.HttpClient }] });
|
|
2975
|
+
}] });
|
|
2958
2976
|
|
|
2959
2977
|
class ApiInvoicesService {
|
|
2960
|
-
environments;
|
|
2961
|
-
http;
|
|
2962
|
-
constructor(environments, http) {
|
|
2963
|
-
this.environments = environments;
|
|
2964
|
-
this.http = http;
|
|
2965
|
-
}
|
|
2978
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2979
|
+
http = inject(HttpClient);
|
|
2966
2980
|
/**
|
|
2967
2981
|
* Retrieves the API URL for invoices from the environments configuration.
|
|
2968
2982
|
*
|
|
@@ -3355,6 +3369,15 @@ class ApiInvoicesService {
|
|
|
3355
3369
|
return this.http.get(`${this.url}/document-type-ranges`, { params })
|
|
3356
3370
|
.pipe(map(({ data }) => data));
|
|
3357
3371
|
}
|
|
3372
|
+
/**
|
|
3373
|
+
* Retrieves the currently active document type ranges.
|
|
3374
|
+
*
|
|
3375
|
+
* @returns {Observable<DocumentsTypesRangesCurrentStatusOut>} An observable that emits the currently active document type ranges data.
|
|
3376
|
+
*/
|
|
3377
|
+
getDocumentsTypesRangesCurrentStatus() {
|
|
3378
|
+
return this.http.get(`${this.url}/document-type-ranges/current-status`)
|
|
3379
|
+
.pipe(map(({ data }) => data));
|
|
3380
|
+
}
|
|
3358
3381
|
/**
|
|
3359
3382
|
* Creates a new document type range.
|
|
3360
3383
|
* @param body - The document type range data to create
|
|
@@ -3392,26 +3415,19 @@ class ApiInvoicesService {
|
|
|
3392
3415
|
return this.http.get(`${this.url}/country-document-types`, { params })
|
|
3393
3416
|
.pipe(map(({ data }) => data));
|
|
3394
3417
|
}
|
|
3395
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3396
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3418
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiInvoicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3419
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
|
|
3397
3420
|
}
|
|
3398
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiInvoicesService, decorators: [{
|
|
3399
3422
|
type: Injectable,
|
|
3400
3423
|
args: [{
|
|
3401
3424
|
providedIn: 'root'
|
|
3402
3425
|
}]
|
|
3403
|
-
}]
|
|
3404
|
-
type: Inject,
|
|
3405
|
-
args: ['env']
|
|
3406
|
-
}] }, { type: i1.HttpClient }] });
|
|
3426
|
+
}] });
|
|
3407
3427
|
|
|
3408
3428
|
class ApiNotificationsService {
|
|
3409
|
-
environments;
|
|
3410
|
-
http;
|
|
3411
|
-
constructor(environments, http) {
|
|
3412
|
-
this.environments = environments;
|
|
3413
|
-
this.http = http;
|
|
3414
|
-
}
|
|
3429
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
3430
|
+
http = inject(HttpClient);
|
|
3415
3431
|
/**
|
|
3416
3432
|
* Retrieves the URL for the notifications API from the environment settings.
|
|
3417
3433
|
* If the URL is not defined, an empty string is returned.
|
|
@@ -3492,30 +3508,23 @@ class ApiNotificationsService {
|
|
|
3492
3508
|
return this.http.get(`${this.url}/notification-types`, { params })
|
|
3493
3509
|
.pipe(map(({ data }) => data));
|
|
3494
3510
|
}
|
|
3495
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3496
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3511
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiNotificationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3512
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiNotificationsService, providedIn: 'root' });
|
|
3497
3513
|
}
|
|
3498
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiNotificationsService, decorators: [{
|
|
3499
3515
|
type: Injectable,
|
|
3500
3516
|
args: [{
|
|
3501
3517
|
providedIn: 'root'
|
|
3502
3518
|
}]
|
|
3503
|
-
}]
|
|
3504
|
-
type: Inject,
|
|
3505
|
-
args: ['env']
|
|
3506
|
-
}] }, { type: i1.HttpClient }] });
|
|
3519
|
+
}] });
|
|
3507
3520
|
|
|
3508
3521
|
class ApiOpenItemsService {
|
|
3509
|
-
environments;
|
|
3510
|
-
http;
|
|
3511
|
-
constructor(environments, http) {
|
|
3512
|
-
this.environments = environments;
|
|
3513
|
-
this.http = http;
|
|
3514
|
-
}
|
|
3522
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
3523
|
+
http = inject(HttpClient);
|
|
3515
3524
|
/**
|
|
3516
3525
|
* Retrieves the API URL for open-items from the environments' configuration.
|
|
3517
3526
|
*
|
|
3518
|
-
|
|
3527
|
+
* @returns {string} The API URL for open-items.
|
|
3519
3528
|
*/
|
|
3520
3529
|
get url() {
|
|
3521
3530
|
return this.environments.apiOpenItemsUrl ?? '';
|
|
@@ -3524,7 +3533,7 @@ class ApiOpenItemsService {
|
|
|
3524
3533
|
* Retrieves a list of open-items based on the provided query parameters.
|
|
3525
3534
|
*
|
|
3526
3535
|
* @param {QueryParams} params - The parameters to use for querying open-items.
|
|
3527
|
-
|
|
3536
|
+
* @returns {Observable<OpenItemsOut>} An observable that emits the open-item data.
|
|
3528
3537
|
*/
|
|
3529
3538
|
getOpenItems(params) {
|
|
3530
3539
|
return this.http.get(`${this.url}/open-items`, { params })
|
|
@@ -3534,7 +3543,7 @@ class ApiOpenItemsService {
|
|
|
3534
3543
|
* Processes a payment for an open item.
|
|
3535
3544
|
*
|
|
3536
3545
|
* @param {PaymentOpenItemIn} body - The payment details for the open item.
|
|
3537
|
-
|
|
3546
|
+
* @returns {Observable<PaymentOut>} An observable that emits the result of the payment processing.
|
|
3538
3547
|
*/
|
|
3539
3548
|
postPayment(body) {
|
|
3540
3549
|
return this.http.post(`${this.url}/payment`, body)
|
|
@@ -3544,38 +3553,25 @@ class ApiOpenItemsService {
|
|
|
3544
3553
|
* Processes a payment for other invoice.
|
|
3545
3554
|
*
|
|
3546
3555
|
* @param {OtherInvoiceIn} body - The payment details for the other invoice.
|
|
3547
|
-
|
|
3556
|
+
* @returns {Observable<OtherInvoiceOut>} An observable that emits the result of the payment processing.
|
|
3548
3557
|
*/
|
|
3549
3558
|
postOtherInvoice(body) {
|
|
3550
3559
|
return this.http.post(`${this.url}/other-invoices`, body)
|
|
3551
3560
|
.pipe(map(({ data }) => data));
|
|
3552
3561
|
}
|
|
3553
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3554
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3562
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiOpenItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3563
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiOpenItemsService, providedIn: 'root' });
|
|
3555
3564
|
}
|
|
3556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiOpenItemsService, decorators: [{
|
|
3557
3566
|
type: Injectable,
|
|
3558
3567
|
args: [{
|
|
3559
3568
|
providedIn: 'root'
|
|
3560
3569
|
}]
|
|
3561
|
-
}]
|
|
3562
|
-
type: Inject,
|
|
3563
|
-
args: ['env']
|
|
3564
|
-
}] }, { type: i1.HttpClient }] });
|
|
3570
|
+
}] });
|
|
3565
3571
|
|
|
3566
|
-
/**
|
|
3567
|
-
* Service to manage quote-related events.
|
|
3568
|
-
*
|
|
3569
|
-
* This service provides methods to retrieve, create, and get event types
|
|
3570
|
-
* related to quote processes.
|
|
3571
|
-
*/
|
|
3572
3572
|
class ApiQuoteService {
|
|
3573
|
-
environments;
|
|
3574
|
-
http;
|
|
3575
|
-
constructor(environments, http) {
|
|
3576
|
-
this.environments = environments;
|
|
3577
|
-
this.http = http;
|
|
3578
|
-
}
|
|
3573
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
3574
|
+
http = inject(HttpClient);
|
|
3579
3575
|
/**
|
|
3580
3576
|
* Base URL for the Quotes API.
|
|
3581
3577
|
*/
|
|
@@ -3633,26 +3629,19 @@ class ApiQuoteService {
|
|
|
3633
3629
|
return this.http.get(`${this.url}/quote-event-types`, { params })
|
|
3634
3630
|
.pipe(map(({ data }) => data));
|
|
3635
3631
|
}
|
|
3636
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3637
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3632
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiQuoteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3633
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiQuoteService, providedIn: 'root' });
|
|
3638
3634
|
}
|
|
3639
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiQuoteService, decorators: [{
|
|
3640
3636
|
type: Injectable,
|
|
3641
3637
|
args: [{
|
|
3642
3638
|
providedIn: 'root'
|
|
3643
3639
|
}]
|
|
3644
|
-
}]
|
|
3645
|
-
type: Inject,
|
|
3646
|
-
args: ['env']
|
|
3647
|
-
}] }, { type: i1.HttpClient }] });
|
|
3640
|
+
}] });
|
|
3648
3641
|
|
|
3649
3642
|
class ApiReportsService {
|
|
3650
|
-
environments;
|
|
3651
|
-
http;
|
|
3652
|
-
constructor(environments, http) {
|
|
3653
|
-
this.environments = environments;
|
|
3654
|
-
this.http = http;
|
|
3655
|
-
}
|
|
3643
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
3644
|
+
http = inject(HttpClient);
|
|
3656
3645
|
/**
|
|
3657
3646
|
* Retrieves the URL for the reports API from the environment configurations.
|
|
3658
3647
|
*
|
|
@@ -3801,28 +3790,20 @@ class ApiReportsService {
|
|
|
3801
3790
|
return this.http.get(`${this.url}/sales-book-report`, { params })
|
|
3802
3791
|
.pipe(map(({ data }) => data));
|
|
3803
3792
|
}
|
|
3804
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3805
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3793
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiReportsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3794
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
|
|
3806
3795
|
}
|
|
3807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiReportsService, decorators: [{
|
|
3808
3797
|
type: Injectable,
|
|
3809
3798
|
args: [{
|
|
3810
3799
|
providedIn: 'root'
|
|
3811
3800
|
}]
|
|
3812
|
-
}]
|
|
3813
|
-
type: Inject,
|
|
3814
|
-
args: ['env']
|
|
3815
|
-
}] }, { type: i1.HttpClient }] });
|
|
3801
|
+
}] });
|
|
3816
3802
|
|
|
3817
3803
|
class ApiSecurityService {
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
constructor(environments, cookie, http) {
|
|
3822
|
-
this.environments = environments;
|
|
3823
|
-
this.cookie = cookie;
|
|
3824
|
-
this.http = http;
|
|
3825
|
-
}
|
|
3804
|
+
cookie = inject(CookieService);
|
|
3805
|
+
http = inject(HttpClient);
|
|
3806
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
3826
3807
|
/**
|
|
3827
3808
|
* Retrieves the API security URL from the environments configuration.
|
|
3828
3809
|
*
|
|
@@ -3839,7 +3820,11 @@ class ApiSecurityService {
|
|
|
3839
3820
|
*/
|
|
3840
3821
|
postAuthLogin(body) {
|
|
3841
3822
|
return this.http.post(`${this.url}/auth/login`, body)
|
|
3842
|
-
.pipe(map(({ data }) => data), tap(({ access_token }) =>
|
|
3823
|
+
.pipe(map(({ data }) => data), tap(({ access_token }) => {
|
|
3824
|
+
if (this.environments.authCookie) {
|
|
3825
|
+
this.cookie.set(this.environments.authCookie, access_token, { path: '/' });
|
|
3826
|
+
}
|
|
3827
|
+
}));
|
|
3843
3828
|
}
|
|
3844
3829
|
/**
|
|
3845
3830
|
* Handles the user login process by sending user credentials to the authentication endpoint.
|
|
@@ -3860,7 +3845,11 @@ class ApiSecurityService {
|
|
|
3860
3845
|
*/
|
|
3861
3846
|
postAuthLogout() {
|
|
3862
3847
|
return this.http.post(`${this.url}/auth/logout`, null)
|
|
3863
|
-
.pipe(map(({ data }) => data), tap(() =>
|
|
3848
|
+
.pipe(map(({ data }) => data), tap(() => {
|
|
3849
|
+
if (this.environments.authCookie) {
|
|
3850
|
+
this.cookie.delete(this.environments.authCookie, '/');
|
|
3851
|
+
}
|
|
3852
|
+
}));
|
|
3864
3853
|
}
|
|
3865
3854
|
/**
|
|
3866
3855
|
* Creates a new session for a specified model.
|
|
@@ -4040,26 +4029,19 @@ class ApiSecurityService {
|
|
|
4040
4029
|
}
|
|
4041
4030
|
}).pipe(map(({ data }) => data));
|
|
4042
4031
|
}
|
|
4043
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4044
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4032
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiSecurityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4033
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiSecurityService, providedIn: 'root' });
|
|
4045
4034
|
}
|
|
4046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiSecurityService, decorators: [{
|
|
4047
4036
|
type: Injectable,
|
|
4048
4037
|
args: [{
|
|
4049
4038
|
providedIn: 'root'
|
|
4050
4039
|
}]
|
|
4051
|
-
}]
|
|
4052
|
-
type: Inject,
|
|
4053
|
-
args: ['env']
|
|
4054
|
-
}] }, { type: i1$1.CookieService }, { type: i1.HttpClient }] });
|
|
4040
|
+
}] });
|
|
4055
4041
|
|
|
4056
4042
|
class ApiServicesService {
|
|
4057
|
-
environments;
|
|
4058
|
-
http;
|
|
4059
|
-
constructor(environments, http) {
|
|
4060
|
-
this.environments = environments;
|
|
4061
|
-
this.http = http;
|
|
4062
|
-
}
|
|
4043
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
4044
|
+
http = inject(HttpClient);
|
|
4063
4045
|
/**
|
|
4064
4046
|
* Retrieves the URL for the services API from the environment settings.
|
|
4065
4047
|
* If the URL is not defined, an empty string is returned.
|
|
@@ -4139,26 +4121,39 @@ class ApiServicesService {
|
|
|
4139
4121
|
params: queryParams
|
|
4140
4122
|
}).pipe(map(({ data }) => data));
|
|
4141
4123
|
}
|
|
4142
|
-
|
|
4143
|
-
|
|
4124
|
+
/**
|
|
4125
|
+
* Fetches address suggestions based on the provided query parameters.
|
|
4126
|
+
* @param {AddressSuggestionIn} queryParams - The query parameters to filter and fetch address suggestions.
|
|
4127
|
+
* @return {Observable<AddressSuggestionsOut>} An observable that emits the address suggestions.
|
|
4128
|
+
*/
|
|
4129
|
+
getAddressSuggestions(queryParams) {
|
|
4130
|
+
return this.http.get(`${this.url}/address-details/suggestions`, {
|
|
4131
|
+
params: queryParams
|
|
4132
|
+
}).pipe(map(({ data }) => data));
|
|
4133
|
+
}
|
|
4134
|
+
/**
|
|
4135
|
+
* Fetches address place details based on the provided query parameters.
|
|
4136
|
+
* @param {AddressPlaceDetailIn} queryParams - The query parameters to filter and fetch address place details.
|
|
4137
|
+
* @return {Observable<AddressPlaceDetailsOut>} An observable that emits the address place details.
|
|
4138
|
+
*/
|
|
4139
|
+
getAddressPlaceDetails(queryParams) {
|
|
4140
|
+
return this.http.get(`${this.url}/address-details/place-details`, {
|
|
4141
|
+
params: queryParams
|
|
4142
|
+
}).pipe(map(({ data }) => data));
|
|
4143
|
+
}
|
|
4144
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiServicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4145
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiServicesService, providedIn: 'root' });
|
|
4144
4146
|
}
|
|
4145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiServicesService, decorators: [{
|
|
4146
4148
|
type: Injectable,
|
|
4147
4149
|
args: [{
|
|
4148
4150
|
providedIn: 'root'
|
|
4149
4151
|
}]
|
|
4150
|
-
}]
|
|
4151
|
-
type: Inject,
|
|
4152
|
-
args: ['env']
|
|
4153
|
-
}] }, { type: i1.HttpClient }] });
|
|
4152
|
+
}] });
|
|
4154
4153
|
|
|
4155
4154
|
class ApiShipmentsService {
|
|
4156
|
-
environments;
|
|
4157
|
-
http;
|
|
4158
|
-
constructor(environments, http) {
|
|
4159
|
-
this.environments = environments;
|
|
4160
|
-
this.http = http;
|
|
4161
|
-
}
|
|
4155
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
4156
|
+
http = inject(HttpClient);
|
|
4162
4157
|
/**
|
|
4163
4158
|
* Retrieves the URL for the shipments API from the environment configurations.
|
|
4164
4159
|
*
|
|
@@ -4197,6 +4192,15 @@ class ApiShipmentsService {
|
|
|
4197
4192
|
getEmployeeCustomer(id) {
|
|
4198
4193
|
return this.http.get(`${this.url}/shipments/employee-customer/${id}`).pipe(map(({ data }) => data));
|
|
4199
4194
|
}
|
|
4195
|
+
/**
|
|
4196
|
+
* Generate signature page PDF for one shipment
|
|
4197
|
+
*
|
|
4198
|
+
* @return {Observable<ShipmentSignaturePageOut>} An observable containing base64 file generated
|
|
4199
|
+
* @param id - the shipment id.
|
|
4200
|
+
*/
|
|
4201
|
+
postShipmentSignaturePage(id) {
|
|
4202
|
+
return this.http.post(`${this.url}/shipments/${id}/signature-page`, {}).pipe(map(({ data }) => data));
|
|
4203
|
+
}
|
|
4200
4204
|
/**
|
|
4201
4205
|
* Cancels a specific shipment by providing its ID and a reason for cancellation.
|
|
4202
4206
|
* Sends a PATCH request to update the shipment's cancellation status with the specified reason.
|
|
@@ -4251,26 +4255,57 @@ class ApiShipmentsService {
|
|
|
4251
4255
|
return this.http.put(`${this.url}/embassy-shipments/${id}`, body)
|
|
4252
4256
|
.pipe(map(({ data }) => data));
|
|
4253
4257
|
}
|
|
4254
|
-
|
|
4255
|
-
|
|
4258
|
+
/**
|
|
4259
|
+
* Retrieves a paginated list of signature page settings
|
|
4260
|
+
* @param {QueryParams} params - Query parameters for filtering and pagination
|
|
4261
|
+
* @returns {Observable<SignaturePageSettingsOut>} Observable containing the list of signature page settings and pagination metadata
|
|
4262
|
+
*/
|
|
4263
|
+
getSignaturePageSettings(params) {
|
|
4264
|
+
return this.http.get(`${this.url}/signature-page-settings`, {
|
|
4265
|
+
params
|
|
4266
|
+
}).pipe(map(({ data }) => data));
|
|
4267
|
+
}
|
|
4268
|
+
/**
|
|
4269
|
+
* Retrieves the details of a signature page setting based on its ID.
|
|
4270
|
+
*
|
|
4271
|
+
* @param {number} id - The identifier of the signature page setting to fetch.
|
|
4272
|
+
* @return {Observable<SignaturePageSettingOut>} An observable that emits the signature page setting data.
|
|
4273
|
+
*/
|
|
4274
|
+
getSignaturePageSetting(id) {
|
|
4275
|
+
return this.http.get(`${this.url}/signature-page-settings/${id}`).pipe(map(({ data }) => data));
|
|
4276
|
+
}
|
|
4277
|
+
/**
|
|
4278
|
+
* Creates a new signature page setting
|
|
4279
|
+
* @param {SignaturePageSettingIn} body - The signature page setting data to create
|
|
4280
|
+
* @returns {Observable<SignaturePageSettingOut>} Observable containing the created signature page setting with its assigned ID
|
|
4281
|
+
*/
|
|
4282
|
+
postSignaturePageSetting(body) {
|
|
4283
|
+
return this.http.post(`${this.url}/signature-page-settings`, body)
|
|
4284
|
+
.pipe(map(({ data }) => data));
|
|
4285
|
+
}
|
|
4286
|
+
/**
|
|
4287
|
+
* Updates an existing signature page setting
|
|
4288
|
+
* @param {number} id - The unique identifier of the signature page setting to update
|
|
4289
|
+
* @param {SignaturePageSettingIn} body - The updated signature page setting data
|
|
4290
|
+
* @returns {Observable<SignaturePageSettingOut>} Observable containing the updated signature page setting
|
|
4291
|
+
*/
|
|
4292
|
+
putSignaturePageSetting(id, body) {
|
|
4293
|
+
return this.http.put(`${this.url}/signature-page-settings/${id}`, body)
|
|
4294
|
+
.pipe(map(({ data }) => data));
|
|
4295
|
+
}
|
|
4296
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4297
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
|
|
4256
4298
|
}
|
|
4257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiShipmentsService, decorators: [{
|
|
4258
4300
|
type: Injectable,
|
|
4259
4301
|
args: [{
|
|
4260
4302
|
providedIn: 'root'
|
|
4261
4303
|
}]
|
|
4262
|
-
}]
|
|
4263
|
-
type: Inject,
|
|
4264
|
-
args: ['env']
|
|
4265
|
-
}] }, { type: i1.HttpClient }] });
|
|
4304
|
+
}] });
|
|
4266
4305
|
|
|
4267
4306
|
class ApiSuppliesService {
|
|
4268
|
-
environments;
|
|
4269
|
-
http;
|
|
4270
|
-
constructor(environments, http) {
|
|
4271
|
-
this.environments = environments;
|
|
4272
|
-
this.http = http;
|
|
4273
|
-
}
|
|
4307
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
4308
|
+
http = inject(HttpClient);
|
|
4274
4309
|
/**
|
|
4275
4310
|
* Retrieves the URL for the API supplies endpoint.
|
|
4276
4311
|
*
|
|
@@ -4380,18 +4415,122 @@ class ApiSuppliesService {
|
|
|
4380
4415
|
return this.http.get(`${this.url}/supply-locations/export/excel`, { params })
|
|
4381
4416
|
.pipe(map(({ data }) => data));
|
|
4382
4417
|
}
|
|
4383
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4384
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4418
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiSuppliesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4419
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiSuppliesService, providedIn: 'root' });
|
|
4385
4420
|
}
|
|
4386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiSuppliesService, decorators: [{
|
|
4387
4422
|
type: Injectable,
|
|
4388
4423
|
args: [{
|
|
4389
4424
|
providedIn: 'root'
|
|
4390
4425
|
}]
|
|
4391
|
-
}]
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4426
|
+
}] });
|
|
4427
|
+
|
|
4428
|
+
class ApiSurveysService {
|
|
4429
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
4430
|
+
http = inject(HttpClient);
|
|
4431
|
+
/**
|
|
4432
|
+
* Base URL for surveys API endpoints.
|
|
4433
|
+
* @returns The configured surveys API URL or an empty string.
|
|
4434
|
+
*/
|
|
4435
|
+
get url() {
|
|
4436
|
+
return this.environments.apiSurveysUrl ?? '';
|
|
4437
|
+
}
|
|
4438
|
+
/**
|
|
4439
|
+
* Retrieves surveys list based on query parameters.
|
|
4440
|
+
* @param params Query parameters used to filter, paginate, or sort surveys.
|
|
4441
|
+
* @returns Observable stream with surveys response data.
|
|
4442
|
+
*/
|
|
4443
|
+
getSurveys(params) {
|
|
4444
|
+
return this.http.get(`${this.url}/surveys`, { params })
|
|
4445
|
+
.pipe(map(({ data }) => data));
|
|
4446
|
+
}
|
|
4447
|
+
/**
|
|
4448
|
+
* Creates a new survey.
|
|
4449
|
+
* @param body Survey payload to create.
|
|
4450
|
+
* @returns Observable stream with created survey data.
|
|
4451
|
+
*/
|
|
4452
|
+
postSurvey(body) {
|
|
4453
|
+
return this.http.post(`${this.url}/surveys`, body)
|
|
4454
|
+
.pipe(map(({ data }) => data));
|
|
4455
|
+
}
|
|
4456
|
+
/**
|
|
4457
|
+
* Replaces an existing survey by id.
|
|
4458
|
+
* @param id Survey identifier.
|
|
4459
|
+
* @param body Survey payload used to replace the resource.
|
|
4460
|
+
* @returns Observable stream with updated survey data.
|
|
4461
|
+
*/
|
|
4462
|
+
putSurvey(id, body) {
|
|
4463
|
+
return this.http.put(`${this.url}/surveys/${id}`, body)
|
|
4464
|
+
.pipe(map(({ data }) => data));
|
|
4465
|
+
}
|
|
4466
|
+
/**
|
|
4467
|
+
* Partially updates an existing survey by id.
|
|
4468
|
+
* @param id Survey identifier.
|
|
4469
|
+
* @param body Partial survey payload with fields to update.
|
|
4470
|
+
* @returns Observable stream with updated survey data.
|
|
4471
|
+
*/
|
|
4472
|
+
patchSurvey(id, body) {
|
|
4473
|
+
return this.http.patch(`${this.url}/surveys/${id}`, body)
|
|
4474
|
+
.pipe(map(({ data }) => data));
|
|
4475
|
+
}
|
|
4476
|
+
/**
|
|
4477
|
+
* Retrieves the questions for a survey.
|
|
4478
|
+
* @param id Survey identifier.
|
|
4479
|
+
* @param params Query parameters used to filter, paginate, or sort questions.
|
|
4480
|
+
* @returns Observable stream with survey questions response data.
|
|
4481
|
+
*/
|
|
4482
|
+
getSurveyQuestions(id, params) {
|
|
4483
|
+
return this.http.get(`${this.url}/surveys/${id}/questions`, { params })
|
|
4484
|
+
.pipe(map(({ data }) => data));
|
|
4485
|
+
}
|
|
4486
|
+
/**
|
|
4487
|
+
* Creates a new question for a survey.
|
|
4488
|
+
* @param surveyId Parent survey identifier.
|
|
4489
|
+
* @param body Survey question payload to create.
|
|
4490
|
+
* @returns Observable stream with created survey question data.
|
|
4491
|
+
*/
|
|
4492
|
+
postSurveyQuestion(surveyId, body) {
|
|
4493
|
+
return this.http.post(`${this.url}/surveys/${surveyId}/questions`, body)
|
|
4494
|
+
.pipe(map(({ data }) => data));
|
|
4495
|
+
}
|
|
4496
|
+
/**
|
|
4497
|
+
* Replaces an existing survey question by id.
|
|
4498
|
+
* @param questionId Survey question identifier.
|
|
4499
|
+
* @param body Survey question payload used to replace the resource.
|
|
4500
|
+
* @returns Observable stream with updated survey question data.
|
|
4501
|
+
*/
|
|
4502
|
+
putSurveyQuestion(questionId, body) {
|
|
4503
|
+
return this.http.put(`${this.url}/questions/${questionId}`, body)
|
|
4504
|
+
.pipe(map(({ data }) => data));
|
|
4505
|
+
}
|
|
4506
|
+
/**
|
|
4507
|
+
* Partially updates an existing survey question by id.
|
|
4508
|
+
* @param questionId Survey question identifier.
|
|
4509
|
+
* @param body Partial survey question payload with fields to update.
|
|
4510
|
+
* @returns Observable stream with updated survey question data.
|
|
4511
|
+
*/
|
|
4512
|
+
patchSurveyQuestion(questionId, body) {
|
|
4513
|
+
return this.http.patch(`${this.url}/questions/${questionId}`, body)
|
|
4514
|
+
.pipe(map(({ data }) => data));
|
|
4515
|
+
}
|
|
4516
|
+
/**
|
|
4517
|
+
* Retrieves the available question types.
|
|
4518
|
+
* @param params Query parameters used to filter, paginate, or sort question types.
|
|
4519
|
+
* @returns Observable stream with question types response data.
|
|
4520
|
+
*/
|
|
4521
|
+
getQuestionTypes(params) {
|
|
4522
|
+
return this.http.get(`${this.url}/question-types`, { params })
|
|
4523
|
+
.pipe(map(({ data }) => data));
|
|
4524
|
+
}
|
|
4525
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiSurveysService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4526
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiSurveysService, providedIn: 'root' });
|
|
4527
|
+
}
|
|
4528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiSurveysService, decorators: [{
|
|
4529
|
+
type: Injectable,
|
|
4530
|
+
args: [{
|
|
4531
|
+
providedIn: 'root'
|
|
4532
|
+
}]
|
|
4533
|
+
}] });
|
|
4395
4534
|
|
|
4396
4535
|
var ViewSectionOption;
|
|
4397
4536
|
(function (ViewSectionOption) {
|
|
@@ -4432,10 +4571,9 @@ var AlphaNumeric;
|
|
|
4432
4571
|
})(AlphaNumeric || (AlphaNumeric = {}));
|
|
4433
4572
|
|
|
4434
4573
|
class WebSocketsService {
|
|
4435
|
-
environments;
|
|
4436
4574
|
pusher;
|
|
4437
|
-
|
|
4438
|
-
|
|
4575
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
4576
|
+
constructor() {
|
|
4439
4577
|
this.pusher = null;
|
|
4440
4578
|
this.connect()
|
|
4441
4579
|
.then((pusher) => {
|
|
@@ -4529,24 +4667,19 @@ class WebSocketsService {
|
|
|
4529
4667
|
const waitTime = 3 * 1000;
|
|
4530
4668
|
return new Promise((resolve) => setTimeout(resolve, waitTime));
|
|
4531
4669
|
}
|
|
4532
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4533
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4670
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: WebSocketsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4671
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: WebSocketsService, providedIn: 'root' });
|
|
4534
4672
|
}
|
|
4535
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: WebSocketsService, decorators: [{
|
|
4536
4674
|
type: Injectable,
|
|
4537
4675
|
args: [{
|
|
4538
4676
|
providedIn: 'root',
|
|
4539
4677
|
}]
|
|
4540
|
-
}], ctorParameters: () => [
|
|
4541
|
-
type: Inject,
|
|
4542
|
-
args: ['env']
|
|
4543
|
-
}] }] });
|
|
4678
|
+
}], ctorParameters: () => [] });
|
|
4544
4679
|
|
|
4680
|
+
const AES_KEY_USAGES = ['encrypt', 'decrypt'];
|
|
4545
4681
|
class CryptoService {
|
|
4546
|
-
environments;
|
|
4547
|
-
constructor(environments) {
|
|
4548
|
-
this.environments = environments;
|
|
4549
|
-
}
|
|
4682
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
4550
4683
|
async encryptAES(plaintext) {
|
|
4551
4684
|
const cryptoKey = await this.loadKey();
|
|
4552
4685
|
// Convert the plaintext in Uint8Array
|
|
@@ -4580,10 +4713,13 @@ class CryptoService {
|
|
|
4580
4713
|
return decoder.decode(decrypted);
|
|
4581
4714
|
}
|
|
4582
4715
|
async loadKey() {
|
|
4716
|
+
if (!this.environments.secretKey) {
|
|
4717
|
+
throw new Error('The secret key is not defined in the environment configuration.');
|
|
4718
|
+
}
|
|
4583
4719
|
// Decode the base64 key to Uint8Array
|
|
4584
4720
|
const rawKey = this.base64ToUint8Array(this.environments.secretKey);
|
|
4585
4721
|
// Import the key to API Crypto
|
|
4586
|
-
return await crypto.subtle.importKey('raw', rawKey, { name: 'AES-GCM' }, true,
|
|
4722
|
+
return await crypto.subtle.importKey('raw', rawKey, { name: 'AES-GCM' }, true, AES_KEY_USAGES);
|
|
4587
4723
|
}
|
|
4588
4724
|
uint8ArrayToBase64(data) {
|
|
4589
4725
|
let binary = '';
|
|
@@ -4620,19 +4756,19 @@ class CryptoService {
|
|
|
4620
4756
|
}
|
|
4621
4757
|
return bytes.buffer;
|
|
4622
4758
|
}
|
|
4623
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4624
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4759
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: CryptoService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4760
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: CryptoService, providedIn: 'root' });
|
|
4625
4761
|
}
|
|
4626
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: CryptoService, decorators: [{
|
|
4627
4763
|
type: Injectable,
|
|
4628
4764
|
args: [{
|
|
4629
4765
|
providedIn: 'root'
|
|
4630
4766
|
}]
|
|
4631
|
-
}]
|
|
4632
|
-
type: Inject,
|
|
4633
|
-
args: ['env']
|
|
4634
|
-
}] }] });
|
|
4767
|
+
}] });
|
|
4635
4768
|
|
|
4769
|
+
function isStaticAsset$1(url) {
|
|
4770
|
+
return url.startsWith('assets/') || url.includes('/i18n/');
|
|
4771
|
+
}
|
|
4636
4772
|
/**
|
|
4637
4773
|
* Intercepts an outgoing HTTP request and modifies its headers to include default values
|
|
4638
4774
|
* for Cache-Control, Expires, Pragma, Content-Type, Accept, and Accept-Language if they
|
|
@@ -4643,7 +4779,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4643
4779
|
* @return {Observable<HttpEvent<unknown>>} An observable of the HTTP event resulting from the processed request.
|
|
4644
4780
|
*/
|
|
4645
4781
|
function apiHeadersInterceptor(req, next) {
|
|
4646
|
-
|
|
4782
|
+
if (isStaticAsset$1(req.url)) {
|
|
4783
|
+
return next(req);
|
|
4784
|
+
}
|
|
4785
|
+
let headers = req.headers;
|
|
4647
4786
|
if (!headers.has('Content-Type') && !(req.body instanceof FormData)) {
|
|
4648
4787
|
headers = headers.set('Content-Type', 'application/json');
|
|
4649
4788
|
}
|
|
@@ -4657,6 +4796,7 @@ function apiHeadersInterceptor(req, next) {
|
|
|
4657
4796
|
return next(req);
|
|
4658
4797
|
}
|
|
4659
4798
|
|
|
4799
|
+
const isStaticAsset = (url) => url.startsWith('assets/') || url.includes('/i18n/');
|
|
4660
4800
|
/**
|
|
4661
4801
|
* HTTP interceptor that injects the external operations API key into outbound requests.
|
|
4662
4802
|
*
|
|
@@ -4690,6 +4830,9 @@ function apiHeadersInterceptor(req, next) {
|
|
|
4690
4830
|
* @see HttpHandlerFn
|
|
4691
4831
|
*/
|
|
4692
4832
|
function apiKeyInterceptor(request, next) {
|
|
4833
|
+
if (isStaticAsset(request.url)) {
|
|
4834
|
+
return next(request);
|
|
4835
|
+
}
|
|
4693
4836
|
const { apiExternalOperationsKey } = inject(ENVIRONMENT_TOKEN);
|
|
4694
4837
|
if (!apiExternalOperationsKey)
|
|
4695
4838
|
return next(request);
|
|
@@ -4714,7 +4857,7 @@ function apiKeyInterceptor(request, next) {
|
|
|
4714
4857
|
function apiTokenInterceptor(req, next) {
|
|
4715
4858
|
const { authCookie } = inject(ENVIRONMENT_TOKEN);
|
|
4716
4859
|
const cookie = inject(CookieService);
|
|
4717
|
-
if (req.headers.has('Authorization') || req.headers.has('AppKey')) {
|
|
4860
|
+
if (req.headers.has('Authorization') || req.headers.has('AppKey') || !authCookie) {
|
|
4718
4861
|
return next(req);
|
|
4719
4862
|
}
|
|
4720
4863
|
const token = cookie.get(authCookie);
|
|
@@ -4842,5 +4985,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
4842
4985
|
* Generated bundle index. Do not edit.
|
|
4843
4986
|
*/
|
|
4844
4987
|
|
|
4845
|
-
export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
4988
|
+
export { AlphaNumeric, 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, ENVIRONMENT_TOKEN, Event, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
4846
4989
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|