@experteam-mx/ngx-services 20.1.5 → 20.1.7
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 +68 -12
- package/fesm2022/experteam-mx-ngx-services.mjs +252 -428
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/index.d.ts +113 -135
- package/package.json +6 -6
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, NgModule,
|
|
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: "20.3.
|
|
41
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
42
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
51
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NgxServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
52
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: NgxServicesModule });
|
|
53
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NgxServicesModule, providers: [provideHttpClient()] });
|
|
43
54
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", 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: "20.3.17", 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: "20.3.
|
|
76
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
82
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiBillingDOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
83
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiBillingDOService, providedIn: 'root' });
|
|
77
84
|
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", 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: "20.3.
|
|
133
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
132
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiBillingGtService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
133
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiBillingGtService, providedIn: 'root' });
|
|
134
134
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", 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: "20.3.
|
|
191
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
183
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiBillingMxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
184
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiBillingMxService, providedIn: 'root' });
|
|
192
185
|
}
|
|
193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", 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: "20.3.
|
|
292
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
277
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiBillingPaService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
278
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiBillingPaService, providedIn: 'root' });
|
|
293
279
|
}
|
|
294
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", 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: "20.3.
|
|
371
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
349
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiBillingSvService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
350
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiBillingSvService, providedIn: 'root' });
|
|
372
351
|
}
|
|
373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", 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,19 @@ class ApiCashOperationsService {
|
|
|
456
428
|
return this.http.get(`${this.url}/opening-transferences/${id}/receipt`)
|
|
457
429
|
.pipe(map(({ data }) => data));
|
|
458
430
|
}
|
|
459
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
460
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
431
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCashOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
432
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCashOperationsService, providedIn: 'root' });
|
|
461
433
|
}
|
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCashOperationsService, decorators: [{
|
|
463
435
|
type: Injectable,
|
|
464
436
|
args: [{
|
|
465
437
|
providedIn: 'root'
|
|
466
438
|
}]
|
|
467
|
-
}]
|
|
468
|
-
type: Inject,
|
|
469
|
-
args: ['env']
|
|
470
|
-
}] }, { type: i1.HttpClient }] });
|
|
439
|
+
}] });
|
|
471
440
|
|
|
472
441
|
class ApiCatalogsService {
|
|
473
|
-
environments;
|
|
474
|
-
http;
|
|
475
|
-
constructor(environments, http) {
|
|
476
|
-
this.environments = environments;
|
|
477
|
-
this.http = http;
|
|
478
|
-
}
|
|
442
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
443
|
+
http = inject(HttpClient);
|
|
479
444
|
/**
|
|
480
445
|
* Retrieves the URL for the reports API from the environment configurations.
|
|
481
446
|
*
|
|
@@ -1086,26 +1051,19 @@ class ApiCatalogsService {
|
|
|
1086
1051
|
return this.http.get(`${this.url}/package-locations`, { params })
|
|
1087
1052
|
.pipe(map(({ data }) => data));
|
|
1088
1053
|
}
|
|
1089
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1090
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1054
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCatalogsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1055
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
|
|
1091
1056
|
}
|
|
1092
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCatalogsService, decorators: [{
|
|
1093
1058
|
type: Injectable,
|
|
1094
1059
|
args: [{
|
|
1095
1060
|
providedIn: 'root'
|
|
1096
1061
|
}]
|
|
1097
|
-
}]
|
|
1098
|
-
type: Inject,
|
|
1099
|
-
args: ['env']
|
|
1100
|
-
}] }, { type: i1.HttpClient }] });
|
|
1062
|
+
}] });
|
|
1101
1063
|
|
|
1102
1064
|
class ApiCompaniesService {
|
|
1103
|
-
environments;
|
|
1104
|
-
http;
|
|
1105
|
-
constructor(environments, http) {
|
|
1106
|
-
this.environments = environments;
|
|
1107
|
-
this.http = http;
|
|
1108
|
-
}
|
|
1065
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
1066
|
+
http = inject(HttpClient);
|
|
1109
1067
|
/**
|
|
1110
1068
|
* Retrieves the URL for the companies API from the environment configurations.
|
|
1111
1069
|
*
|
|
@@ -2132,32 +2090,23 @@ class ApiCompaniesService {
|
|
|
2132
2090
|
}
|
|
2133
2091
|
}).pipe(map(({ data }) => data));
|
|
2134
2092
|
}
|
|
2135
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2136
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2093
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCompaniesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2094
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
|
|
2137
2095
|
}
|
|
2138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2096
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCompaniesService, decorators: [{
|
|
2139
2097
|
type: Injectable,
|
|
2140
2098
|
args: [{
|
|
2141
2099
|
providedIn: 'root'
|
|
2142
2100
|
}]
|
|
2143
|
-
}]
|
|
2144
|
-
type: Inject,
|
|
2145
|
-
args: ['env']
|
|
2146
|
-
}] }, { type: i1.HttpClient }] });
|
|
2101
|
+
}] });
|
|
2147
2102
|
|
|
2148
2103
|
class ApiCompositionService {
|
|
2149
|
-
environments;
|
|
2150
|
-
|
|
2151
|
-
http;
|
|
2152
|
-
constructor(environments, cookie, http) {
|
|
2153
|
-
this.environments = environments;
|
|
2154
|
-
this.cookie = cookie;
|
|
2155
|
-
this.http = http;
|
|
2156
|
-
}
|
|
2104
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2105
|
+
http = inject(HttpClient);
|
|
2157
2106
|
/**
|
|
2158
2107
|
* Retrieves the API security URL from the environment configuration.
|
|
2159
2108
|
*
|
|
2160
|
-
|
|
2109
|
+
* @returns {string} The API security URL.
|
|
2161
2110
|
*/
|
|
2162
2111
|
get url() {
|
|
2163
2112
|
return this.environments.apiCompositionUrl ?? '';
|
|
@@ -2166,7 +2115,7 @@ class ApiCompositionService {
|
|
|
2166
2115
|
* Retrieves shipment details based on the provided shipment ID.
|
|
2167
2116
|
*
|
|
2168
2117
|
* @param {number} id - The unique identifier of the shipment to retrieve.
|
|
2169
|
-
|
|
2118
|
+
* @returns {Observable<ShipmentOut>} An observable that emits the details of the shipment.
|
|
2170
2119
|
*/
|
|
2171
2120
|
getShipment(id) {
|
|
2172
2121
|
return this.http.get(`${this.url}/shipments/${id}`)
|
|
@@ -2176,32 +2125,25 @@ class ApiCompositionService {
|
|
|
2176
2125
|
* Fetches the country references data based on the provided query parameters.
|
|
2177
2126
|
*
|
|
2178
2127
|
* @param {QueryParams} params - The query parameters for the API request.
|
|
2179
|
-
|
|
2128
|
+
* @returns {Observable<CompositionCountryReferencesOut>} An observable emitting the country references.
|
|
2180
2129
|
*/
|
|
2181
2130
|
getCountryReferences(params) {
|
|
2182
2131
|
return this.http.get(`${this.url}/country-references`, { params })
|
|
2183
2132
|
.pipe(map(({ data }) => data));
|
|
2184
2133
|
}
|
|
2185
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2186
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCompositionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2135
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCompositionService, providedIn: 'root' });
|
|
2187
2136
|
}
|
|
2188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCompositionService, decorators: [{
|
|
2189
2138
|
type: Injectable,
|
|
2190
2139
|
args: [{
|
|
2191
2140
|
providedIn: 'root'
|
|
2192
2141
|
}]
|
|
2193
|
-
}]
|
|
2194
|
-
type: Inject,
|
|
2195
|
-
args: ['env']
|
|
2196
|
-
}] }, { type: i1$1.CookieService }, { type: i1.HttpClient }] });
|
|
2142
|
+
}] });
|
|
2197
2143
|
|
|
2198
2144
|
class ApiCustomsService {
|
|
2199
|
-
environments;
|
|
2200
|
-
http;
|
|
2201
|
-
constructor(environments, http) {
|
|
2202
|
-
this.environments = environments;
|
|
2203
|
-
this.http = http;
|
|
2204
|
-
}
|
|
2145
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2146
|
+
http = inject(HttpClient);
|
|
2205
2147
|
/**
|
|
2206
2148
|
* Retrieves the URL for the cash operations API from the environment configurations.
|
|
2207
2149
|
*
|
|
@@ -2335,26 +2277,19 @@ class ApiCustomsService {
|
|
|
2335
2277
|
params
|
|
2336
2278
|
}).pipe(map(({ data }) => data));
|
|
2337
2279
|
}
|
|
2338
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2339
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2280
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCustomsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2281
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCustomsService, providedIn: 'root' });
|
|
2340
2282
|
}
|
|
2341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiCustomsService, decorators: [{
|
|
2342
2284
|
type: Injectable,
|
|
2343
2285
|
args: [{
|
|
2344
2286
|
providedIn: 'root'
|
|
2345
2287
|
}]
|
|
2346
|
-
}]
|
|
2347
|
-
type: Inject,
|
|
2348
|
-
args: ['env']
|
|
2349
|
-
}] }, { type: i1.HttpClient }] });
|
|
2288
|
+
}] });
|
|
2350
2289
|
|
|
2351
2290
|
class ApiDiscountsService {
|
|
2352
|
-
environments;
|
|
2353
|
-
http;
|
|
2354
|
-
constructor(environments, http) {
|
|
2355
|
-
this.environments = environments;
|
|
2356
|
-
this.http = http;
|
|
2357
|
-
}
|
|
2291
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2292
|
+
http = inject(HttpClient);
|
|
2358
2293
|
/**
|
|
2359
2294
|
* Gets the API endpoint URL for discounts from the environments configuration.
|
|
2360
2295
|
*
|
|
@@ -2573,26 +2508,19 @@ class ApiDiscountsService {
|
|
|
2573
2508
|
return this.http.put(`${this.url}/customer-restrictions/V2/${id}`, body)
|
|
2574
2509
|
.pipe(map(({ data }) => data));
|
|
2575
2510
|
}
|
|
2576
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2577
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2511
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiDiscountsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2512
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiDiscountsService, providedIn: 'root' });
|
|
2578
2513
|
}
|
|
2579
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiDiscountsService, decorators: [{
|
|
2580
2515
|
type: Injectable,
|
|
2581
2516
|
args: [{
|
|
2582
2517
|
providedIn: 'root'
|
|
2583
2518
|
}]
|
|
2584
|
-
}]
|
|
2585
|
-
type: Inject,
|
|
2586
|
-
args: ['env']
|
|
2587
|
-
}] }, { type: i1.HttpClient }] });
|
|
2519
|
+
}] });
|
|
2588
2520
|
|
|
2589
2521
|
class ApiEToolsAutoBillingService {
|
|
2590
|
-
environments;
|
|
2591
|
-
http;
|
|
2592
|
-
constructor(environments, http) {
|
|
2593
|
-
this.environments = environments;
|
|
2594
|
-
this.http = http;
|
|
2595
|
-
}
|
|
2522
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2523
|
+
http = inject(HttpClient);
|
|
2596
2524
|
/**
|
|
2597
2525
|
* Retrieves the URL for the shipments API from the environment configurations.
|
|
2598
2526
|
*
|
|
@@ -2675,30 +2603,23 @@ class ApiEToolsAutoBillingService {
|
|
|
2675
2603
|
return this.http.post(`${this.url}/external-shipments/${id}/re-billing`, body)
|
|
2676
2604
|
.pipe(map(({ data }) => data));
|
|
2677
2605
|
}
|
|
2678
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2679
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2606
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiEToolsAutoBillingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2607
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiEToolsAutoBillingService, providedIn: 'root' });
|
|
2680
2608
|
}
|
|
2681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiEToolsAutoBillingService, decorators: [{
|
|
2682
2610
|
type: Injectable,
|
|
2683
2611
|
args: [{
|
|
2684
2612
|
providedIn: 'root'
|
|
2685
2613
|
}]
|
|
2686
|
-
}]
|
|
2687
|
-
type: Inject,
|
|
2688
|
-
args: ['env']
|
|
2689
|
-
}] }, { type: i1.HttpClient }] });
|
|
2614
|
+
}] });
|
|
2690
2615
|
|
|
2691
2616
|
class ApiEventsService {
|
|
2692
|
-
environments;
|
|
2693
|
-
http;
|
|
2694
|
-
constructor(environments, http) {
|
|
2695
|
-
this.environments = environments;
|
|
2696
|
-
this.http = http;
|
|
2697
|
-
}
|
|
2617
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2618
|
+
http = inject(HttpClient);
|
|
2698
2619
|
/**
|
|
2699
2620
|
* Gets the API endpoint URL for Events from the environments configuration.
|
|
2700
2621
|
*
|
|
2701
|
-
|
|
2622
|
+
* @returns {string} The URL for the Events API. Returns an empty string if not defined.
|
|
2702
2623
|
*/
|
|
2703
2624
|
get url() {
|
|
2704
2625
|
return this.environments.apiEventsUrl ?? '';
|
|
@@ -2707,7 +2628,7 @@ class ApiEventsService {
|
|
|
2707
2628
|
* Sends a request to start an event
|
|
2708
2629
|
*
|
|
2709
2630
|
* @param {OperationModuleStartIn} body - The event information to be submitted.
|
|
2710
|
-
|
|
2631
|
+
* @returns {Observable<OperationModuleOut>} An Observable emitting the server's response containing the created event details.
|
|
2711
2632
|
*/
|
|
2712
2633
|
postOperationModulesStart(body) {
|
|
2713
2634
|
return this.http.post(`${this.url}/operation-modules/start`, body)
|
|
@@ -2718,34 +2639,26 @@ class ApiEventsService {
|
|
|
2718
2639
|
*
|
|
2719
2640
|
* @param {number} id - The unique identifier of the item whose event is to be updated.
|
|
2720
2641
|
* @param {OperationModuleEndIn} body - The payload containing the updated event details.
|
|
2721
|
-
|
|
2642
|
+
* @returns {Observable<OperationModuleOut>} An observable emitting the updated event details.
|
|
2722
2643
|
*/
|
|
2723
2644
|
putOperationModulesEnd(id, body) {
|
|
2724
2645
|
return this.http.put(`${this.url}/operation-modules/${id}/end`, body)
|
|
2725
2646
|
.pipe(map(({ data }) => data));
|
|
2726
2647
|
}
|
|
2727
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2728
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2648
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiEventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2649
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiEventsService, providedIn: 'root' });
|
|
2729
2650
|
}
|
|
2730
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiEventsService, decorators: [{
|
|
2731
2652
|
type: Injectable,
|
|
2732
2653
|
args: [{
|
|
2733
2654
|
providedIn: 'root'
|
|
2734
2655
|
}]
|
|
2735
|
-
}]
|
|
2736
|
-
type: Inject,
|
|
2737
|
-
args: ['env']
|
|
2738
|
-
}] }, { type: i1.HttpClient }] });
|
|
2656
|
+
}] });
|
|
2739
2657
|
|
|
2740
2658
|
class ApiExternalOperationsService {
|
|
2741
|
-
http;
|
|
2742
|
-
environment;
|
|
2743
|
-
appKey;
|
|
2744
|
-
constructor(http, environment) {
|
|
2745
|
-
this.http = http;
|
|
2746
|
-
this.environment = environment;
|
|
2747
|
-
this.appKey = environment.apiExternalOperationsKey ?? '';
|
|
2748
|
-
}
|
|
2659
|
+
http = inject(HttpClient);
|
|
2660
|
+
environment = inject(ENVIRONMENT_TOKEN);
|
|
2661
|
+
appKey = this.environment.apiExternalOperationsKey ?? '';
|
|
2749
2662
|
/**
|
|
2750
2663
|
* Getter method to retrieve the API's external operations URL.
|
|
2751
2664
|
* Fetches the URL from the `apiExternalOperationsUrl` property of the environment object.
|
|
@@ -2807,26 +2720,19 @@ class ApiExternalOperationsService {
|
|
|
2807
2720
|
getAppKeyHeader() {
|
|
2808
2721
|
return { ...(this.appKey && { AppKey: this.appKey }) };
|
|
2809
2722
|
}
|
|
2810
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2811
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2723
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiExternalOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2724
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiExternalOperationsService, providedIn: 'root' });
|
|
2812
2725
|
}
|
|
2813
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiExternalOperationsService, decorators: [{
|
|
2814
2727
|
type: Injectable,
|
|
2815
2728
|
args: [{
|
|
2816
2729
|
providedIn: 'root'
|
|
2817
2730
|
}]
|
|
2818
|
-
}]
|
|
2819
|
-
type: Inject,
|
|
2820
|
-
args: ['env']
|
|
2821
|
-
}] }] });
|
|
2731
|
+
}] });
|
|
2822
2732
|
|
|
2823
2733
|
class ApiInventoriesService {
|
|
2824
|
-
environments;
|
|
2825
|
-
http;
|
|
2826
|
-
constructor(environments, http) {
|
|
2827
|
-
this.environments = environments;
|
|
2828
|
-
this.http = http;
|
|
2829
|
-
}
|
|
2734
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2735
|
+
http = inject(HttpClient);
|
|
2830
2736
|
/**
|
|
2831
2737
|
* Retrieves the URL for the Inventories API from the environment configurations.
|
|
2832
2738
|
*
|
|
@@ -3011,26 +2917,19 @@ class ApiInventoriesService {
|
|
|
3011
2917
|
return this.http.post(`${this.url}/packages/in-stock`, body)
|
|
3012
2918
|
.pipe(map(({ data }) => data));
|
|
3013
2919
|
}
|
|
3014
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3015
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2920
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2921
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
|
|
3016
2922
|
}
|
|
3017
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiInventoriesService, decorators: [{
|
|
3018
2924
|
type: Injectable,
|
|
3019
2925
|
args: [{
|
|
3020
2926
|
providedIn: 'root'
|
|
3021
2927
|
}]
|
|
3022
|
-
}]
|
|
3023
|
-
type: Inject,
|
|
3024
|
-
args: ['env']
|
|
3025
|
-
}] }, { type: i1.HttpClient }] });
|
|
2928
|
+
}] });
|
|
3026
2929
|
|
|
3027
2930
|
class ApiInvoicesService {
|
|
3028
|
-
environments;
|
|
3029
|
-
http;
|
|
3030
|
-
constructor(environments, http) {
|
|
3031
|
-
this.environments = environments;
|
|
3032
|
-
this.http = http;
|
|
3033
|
-
}
|
|
2931
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
2932
|
+
http = inject(HttpClient);
|
|
3034
2933
|
/**
|
|
3035
2934
|
* Retrieves the API URL for invoices from the environments configuration.
|
|
3036
2935
|
*
|
|
@@ -3469,26 +3368,19 @@ class ApiInvoicesService {
|
|
|
3469
3368
|
return this.http.get(`${this.url}/country-document-types`, { params })
|
|
3470
3369
|
.pipe(map(({ data }) => data));
|
|
3471
3370
|
}
|
|
3472
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3473
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3371
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiInvoicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3372
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
|
|
3474
3373
|
}
|
|
3475
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiInvoicesService, decorators: [{
|
|
3476
3375
|
type: Injectable,
|
|
3477
3376
|
args: [{
|
|
3478
3377
|
providedIn: 'root'
|
|
3479
3378
|
}]
|
|
3480
|
-
}]
|
|
3481
|
-
type: Inject,
|
|
3482
|
-
args: ['env']
|
|
3483
|
-
}] }, { type: i1.HttpClient }] });
|
|
3379
|
+
}] });
|
|
3484
3380
|
|
|
3485
3381
|
class ApiNotificationsService {
|
|
3486
|
-
environments;
|
|
3487
|
-
http;
|
|
3488
|
-
constructor(environments, http) {
|
|
3489
|
-
this.environments = environments;
|
|
3490
|
-
this.http = http;
|
|
3491
|
-
}
|
|
3382
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
3383
|
+
http = inject(HttpClient);
|
|
3492
3384
|
/**
|
|
3493
3385
|
* Retrieves the URL for the notifications API from the environment settings.
|
|
3494
3386
|
* If the URL is not defined, an empty string is returned.
|
|
@@ -3569,30 +3461,23 @@ class ApiNotificationsService {
|
|
|
3569
3461
|
return this.http.get(`${this.url}/notification-types`, { params })
|
|
3570
3462
|
.pipe(map(({ data }) => data));
|
|
3571
3463
|
}
|
|
3572
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3573
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3464
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiNotificationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3465
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiNotificationsService, providedIn: 'root' });
|
|
3574
3466
|
}
|
|
3575
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiNotificationsService, decorators: [{
|
|
3576
3468
|
type: Injectable,
|
|
3577
3469
|
args: [{
|
|
3578
3470
|
providedIn: 'root'
|
|
3579
3471
|
}]
|
|
3580
|
-
}]
|
|
3581
|
-
type: Inject,
|
|
3582
|
-
args: ['env']
|
|
3583
|
-
}] }, { type: i1.HttpClient }] });
|
|
3472
|
+
}] });
|
|
3584
3473
|
|
|
3585
3474
|
class ApiOpenItemsService {
|
|
3586
|
-
environments;
|
|
3587
|
-
http;
|
|
3588
|
-
constructor(environments, http) {
|
|
3589
|
-
this.environments = environments;
|
|
3590
|
-
this.http = http;
|
|
3591
|
-
}
|
|
3475
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
3476
|
+
http = inject(HttpClient);
|
|
3592
3477
|
/**
|
|
3593
3478
|
* Retrieves the API URL for open-items from the environments' configuration.
|
|
3594
3479
|
*
|
|
3595
|
-
|
|
3480
|
+
* @returns {string} The API URL for open-items.
|
|
3596
3481
|
*/
|
|
3597
3482
|
get url() {
|
|
3598
3483
|
return this.environments.apiOpenItemsUrl ?? '';
|
|
@@ -3601,7 +3486,7 @@ class ApiOpenItemsService {
|
|
|
3601
3486
|
* Retrieves a list of open-items based on the provided query parameters.
|
|
3602
3487
|
*
|
|
3603
3488
|
* @param {QueryParams} params - The parameters to use for querying open-items.
|
|
3604
|
-
|
|
3489
|
+
* @returns {Observable<OpenItemsOut>} An observable that emits the open-item data.
|
|
3605
3490
|
*/
|
|
3606
3491
|
getOpenItems(params) {
|
|
3607
3492
|
return this.http.get(`${this.url}/open-items`, { params })
|
|
@@ -3611,7 +3496,7 @@ class ApiOpenItemsService {
|
|
|
3611
3496
|
* Processes a payment for an open item.
|
|
3612
3497
|
*
|
|
3613
3498
|
* @param {PaymentOpenItemIn} body - The payment details for the open item.
|
|
3614
|
-
|
|
3499
|
+
* @returns {Observable<PaymentOut>} An observable that emits the result of the payment processing.
|
|
3615
3500
|
*/
|
|
3616
3501
|
postPayment(body) {
|
|
3617
3502
|
return this.http.post(`${this.url}/payment`, body)
|
|
@@ -3621,38 +3506,25 @@ class ApiOpenItemsService {
|
|
|
3621
3506
|
* Processes a payment for other invoice.
|
|
3622
3507
|
*
|
|
3623
3508
|
* @param {OtherInvoiceIn} body - The payment details for the other invoice.
|
|
3624
|
-
|
|
3509
|
+
* @returns {Observable<OtherInvoiceOut>} An observable that emits the result of the payment processing.
|
|
3625
3510
|
*/
|
|
3626
3511
|
postOtherInvoice(body) {
|
|
3627
3512
|
return this.http.post(`${this.url}/other-invoices`, body)
|
|
3628
3513
|
.pipe(map(({ data }) => data));
|
|
3629
3514
|
}
|
|
3630
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3631
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3515
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiOpenItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3516
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiOpenItemsService, providedIn: 'root' });
|
|
3632
3517
|
}
|
|
3633
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiOpenItemsService, decorators: [{
|
|
3634
3519
|
type: Injectable,
|
|
3635
3520
|
args: [{
|
|
3636
3521
|
providedIn: 'root'
|
|
3637
3522
|
}]
|
|
3638
|
-
}]
|
|
3639
|
-
type: Inject,
|
|
3640
|
-
args: ['env']
|
|
3641
|
-
}] }, { type: i1.HttpClient }] });
|
|
3523
|
+
}] });
|
|
3642
3524
|
|
|
3643
|
-
/**
|
|
3644
|
-
* Service to manage quote-related events.
|
|
3645
|
-
*
|
|
3646
|
-
* This service provides methods to retrieve, create, and get event types
|
|
3647
|
-
* related to quote processes.
|
|
3648
|
-
*/
|
|
3649
3525
|
class ApiQuoteService {
|
|
3650
|
-
environments;
|
|
3651
|
-
http;
|
|
3652
|
-
constructor(environments, http) {
|
|
3653
|
-
this.environments = environments;
|
|
3654
|
-
this.http = http;
|
|
3655
|
-
}
|
|
3526
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
3527
|
+
http = inject(HttpClient);
|
|
3656
3528
|
/**
|
|
3657
3529
|
* Base URL for the Quotes API.
|
|
3658
3530
|
*/
|
|
@@ -3710,26 +3582,19 @@ class ApiQuoteService {
|
|
|
3710
3582
|
return this.http.get(`${this.url}/quote-event-types`, { params })
|
|
3711
3583
|
.pipe(map(({ data }) => data));
|
|
3712
3584
|
}
|
|
3713
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3714
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3585
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiQuoteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3586
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiQuoteService, providedIn: 'root' });
|
|
3715
3587
|
}
|
|
3716
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiQuoteService, decorators: [{
|
|
3717
3589
|
type: Injectable,
|
|
3718
3590
|
args: [{
|
|
3719
3591
|
providedIn: 'root'
|
|
3720
3592
|
}]
|
|
3721
|
-
}]
|
|
3722
|
-
type: Inject,
|
|
3723
|
-
args: ['env']
|
|
3724
|
-
}] }, { type: i1.HttpClient }] });
|
|
3593
|
+
}] });
|
|
3725
3594
|
|
|
3726
3595
|
class ApiReportsService {
|
|
3727
|
-
environments;
|
|
3728
|
-
http;
|
|
3729
|
-
constructor(environments, http) {
|
|
3730
|
-
this.environments = environments;
|
|
3731
|
-
this.http = http;
|
|
3732
|
-
}
|
|
3596
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
3597
|
+
http = inject(HttpClient);
|
|
3733
3598
|
/**
|
|
3734
3599
|
* Retrieves the URL for the reports API from the environment configurations.
|
|
3735
3600
|
*
|
|
@@ -3878,28 +3743,20 @@ class ApiReportsService {
|
|
|
3878
3743
|
return this.http.get(`${this.url}/sales-book-report`, { params })
|
|
3879
3744
|
.pipe(map(({ data }) => data));
|
|
3880
3745
|
}
|
|
3881
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3882
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3746
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiReportsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3747
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
|
|
3883
3748
|
}
|
|
3884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3749
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiReportsService, decorators: [{
|
|
3885
3750
|
type: Injectable,
|
|
3886
3751
|
args: [{
|
|
3887
3752
|
providedIn: 'root'
|
|
3888
3753
|
}]
|
|
3889
|
-
}]
|
|
3890
|
-
type: Inject,
|
|
3891
|
-
args: ['env']
|
|
3892
|
-
}] }, { type: i1.HttpClient }] });
|
|
3754
|
+
}] });
|
|
3893
3755
|
|
|
3894
3756
|
class ApiSecurityService {
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
constructor(environments, cookie, http) {
|
|
3899
|
-
this.environments = environments;
|
|
3900
|
-
this.cookie = cookie;
|
|
3901
|
-
this.http = http;
|
|
3902
|
-
}
|
|
3757
|
+
cookie = inject(CookieService);
|
|
3758
|
+
http = inject(HttpClient);
|
|
3759
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
3903
3760
|
/**
|
|
3904
3761
|
* Retrieves the API security URL from the environments configuration.
|
|
3905
3762
|
*
|
|
@@ -4125,26 +3982,19 @@ class ApiSecurityService {
|
|
|
4125
3982
|
}
|
|
4126
3983
|
}).pipe(map(({ data }) => data));
|
|
4127
3984
|
}
|
|
4128
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4129
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3985
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiSecurityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3986
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiSecurityService, providedIn: 'root' });
|
|
4130
3987
|
}
|
|
4131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiSecurityService, decorators: [{
|
|
4132
3989
|
type: Injectable,
|
|
4133
3990
|
args: [{
|
|
4134
3991
|
providedIn: 'root'
|
|
4135
3992
|
}]
|
|
4136
|
-
}]
|
|
4137
|
-
type: Inject,
|
|
4138
|
-
args: ['env']
|
|
4139
|
-
}] }, { type: i1$1.CookieService }, { type: i1.HttpClient }] });
|
|
3993
|
+
}] });
|
|
4140
3994
|
|
|
4141
3995
|
class ApiServicesService {
|
|
4142
|
-
environments;
|
|
4143
|
-
http;
|
|
4144
|
-
constructor(environments, http) {
|
|
4145
|
-
this.environments = environments;
|
|
4146
|
-
this.http = http;
|
|
4147
|
-
}
|
|
3996
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
3997
|
+
http = inject(HttpClient);
|
|
4148
3998
|
/**
|
|
4149
3999
|
* Retrieves the URL for the services API from the environment settings.
|
|
4150
4000
|
* If the URL is not defined, an empty string is returned.
|
|
@@ -4244,26 +4094,19 @@ class ApiServicesService {
|
|
|
4244
4094
|
params: queryParams
|
|
4245
4095
|
}).pipe(map(({ data }) => data));
|
|
4246
4096
|
}
|
|
4247
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4248
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4097
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiServicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4098
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiServicesService, providedIn: 'root' });
|
|
4249
4099
|
}
|
|
4250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiServicesService, decorators: [{
|
|
4251
4101
|
type: Injectable,
|
|
4252
4102
|
args: [{
|
|
4253
4103
|
providedIn: 'root'
|
|
4254
4104
|
}]
|
|
4255
|
-
}]
|
|
4256
|
-
type: Inject,
|
|
4257
|
-
args: ['env']
|
|
4258
|
-
}] }, { type: i1.HttpClient }] });
|
|
4105
|
+
}] });
|
|
4259
4106
|
|
|
4260
4107
|
class ApiShipmentsService {
|
|
4261
|
-
environments;
|
|
4262
|
-
http;
|
|
4263
|
-
constructor(environments, http) {
|
|
4264
|
-
this.environments = environments;
|
|
4265
|
-
this.http = http;
|
|
4266
|
-
}
|
|
4108
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
4109
|
+
http = inject(HttpClient);
|
|
4267
4110
|
/**
|
|
4268
4111
|
* Retrieves the URL for the shipments API from the environment configurations.
|
|
4269
4112
|
*
|
|
@@ -4308,8 +4151,8 @@ class ApiShipmentsService {
|
|
|
4308
4151
|
* @return {Observable<ShipmentSignaturePageOut>} An observable containing base64 file generated
|
|
4309
4152
|
* @param id - the shipment id.
|
|
4310
4153
|
*/
|
|
4311
|
-
|
|
4312
|
-
return this.http.get(`${this.url}/shipments/
|
|
4154
|
+
getShipmentSignaturePage(id) {
|
|
4155
|
+
return this.http.get(`${this.url}/shipments/${id}/shipment-signature-page`).pipe(map(({ data }) => data));
|
|
4313
4156
|
}
|
|
4314
4157
|
/**
|
|
4315
4158
|
* Cancels a specific shipment by providing its ID and a reason for cancellation.
|
|
@@ -4403,26 +4246,19 @@ class ApiShipmentsService {
|
|
|
4403
4246
|
return this.http.put(`${this.url}/signature-page-settings/${id}`, body)
|
|
4404
4247
|
.pipe(map(({ data }) => data));
|
|
4405
4248
|
}
|
|
4406
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4407
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4249
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4250
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
|
|
4408
4251
|
}
|
|
4409
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiShipmentsService, decorators: [{
|
|
4410
4253
|
type: Injectable,
|
|
4411
4254
|
args: [{
|
|
4412
4255
|
providedIn: 'root'
|
|
4413
4256
|
}]
|
|
4414
|
-
}]
|
|
4415
|
-
type: Inject,
|
|
4416
|
-
args: ['env']
|
|
4417
|
-
}] }, { type: i1.HttpClient }] });
|
|
4257
|
+
}] });
|
|
4418
4258
|
|
|
4419
4259
|
class ApiSuppliesService {
|
|
4420
|
-
environments;
|
|
4421
|
-
http;
|
|
4422
|
-
constructor(environments, http) {
|
|
4423
|
-
this.environments = environments;
|
|
4424
|
-
this.http = http;
|
|
4425
|
-
}
|
|
4260
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
4261
|
+
http = inject(HttpClient);
|
|
4426
4262
|
/**
|
|
4427
4263
|
* Retrieves the URL for the API supplies endpoint.
|
|
4428
4264
|
*
|
|
@@ -4532,18 +4368,15 @@ class ApiSuppliesService {
|
|
|
4532
4368
|
return this.http.get(`${this.url}/supply-locations/export/excel`, { params })
|
|
4533
4369
|
.pipe(map(({ data }) => data));
|
|
4534
4370
|
}
|
|
4535
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4536
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4371
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiSuppliesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4372
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiSuppliesService, providedIn: 'root' });
|
|
4537
4373
|
}
|
|
4538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ApiSuppliesService, decorators: [{
|
|
4539
4375
|
type: Injectable,
|
|
4540
4376
|
args: [{
|
|
4541
4377
|
providedIn: 'root'
|
|
4542
4378
|
}]
|
|
4543
|
-
}]
|
|
4544
|
-
type: Inject,
|
|
4545
|
-
args: ['env']
|
|
4546
|
-
}] }, { type: i1.HttpClient }] });
|
|
4379
|
+
}] });
|
|
4547
4380
|
|
|
4548
4381
|
var ViewSectionOption;
|
|
4549
4382
|
(function (ViewSectionOption) {
|
|
@@ -4584,10 +4417,9 @@ var AlphaNumeric;
|
|
|
4584
4417
|
})(AlphaNumeric || (AlphaNumeric = {}));
|
|
4585
4418
|
|
|
4586
4419
|
class WebSocketsService {
|
|
4587
|
-
environments;
|
|
4588
4420
|
pusher;
|
|
4589
|
-
|
|
4590
|
-
|
|
4421
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
4422
|
+
constructor() {
|
|
4591
4423
|
this.pusher = null;
|
|
4592
4424
|
this.connect()
|
|
4593
4425
|
.then((pusher) => {
|
|
@@ -4681,24 +4513,19 @@ class WebSocketsService {
|
|
|
4681
4513
|
const waitTime = 3 * 1000;
|
|
4682
4514
|
return new Promise((resolve) => setTimeout(resolve, waitTime));
|
|
4683
4515
|
}
|
|
4684
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4685
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4516
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WebSocketsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4517
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WebSocketsService, providedIn: 'root' });
|
|
4686
4518
|
}
|
|
4687
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WebSocketsService, decorators: [{
|
|
4688
4520
|
type: Injectable,
|
|
4689
4521
|
args: [{
|
|
4690
4522
|
providedIn: 'root',
|
|
4691
4523
|
}]
|
|
4692
|
-
}], ctorParameters: () => [
|
|
4693
|
-
type: Inject,
|
|
4694
|
-
args: ['env']
|
|
4695
|
-
}] }] });
|
|
4524
|
+
}], ctorParameters: () => [] });
|
|
4696
4525
|
|
|
4526
|
+
const AES_KEY_USAGES = ['encrypt', 'decrypt'];
|
|
4697
4527
|
class CryptoService {
|
|
4698
|
-
environments;
|
|
4699
|
-
constructor(environments) {
|
|
4700
|
-
this.environments = environments;
|
|
4701
|
-
}
|
|
4528
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
4702
4529
|
async encryptAES(plaintext) {
|
|
4703
4530
|
const cryptoKey = await this.loadKey();
|
|
4704
4531
|
// Convert the plaintext in Uint8Array
|
|
@@ -4738,7 +4565,7 @@ class CryptoService {
|
|
|
4738
4565
|
// Decode the base64 key to Uint8Array
|
|
4739
4566
|
const rawKey = this.base64ToUint8Array(this.environments.secretKey);
|
|
4740
4567
|
// Import the key to API Crypto
|
|
4741
|
-
return await crypto.subtle.importKey('raw', rawKey, { name: 'AES-GCM' }, true,
|
|
4568
|
+
return await crypto.subtle.importKey('raw', rawKey, { name: 'AES-GCM' }, true, AES_KEY_USAGES);
|
|
4742
4569
|
}
|
|
4743
4570
|
uint8ArrayToBase64(data) {
|
|
4744
4571
|
let binary = '';
|
|
@@ -4775,18 +4602,15 @@ class CryptoService {
|
|
|
4775
4602
|
}
|
|
4776
4603
|
return bytes.buffer;
|
|
4777
4604
|
}
|
|
4778
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4779
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4605
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CryptoService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4606
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CryptoService, providedIn: 'root' });
|
|
4780
4607
|
}
|
|
4781
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4608
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CryptoService, decorators: [{
|
|
4782
4609
|
type: Injectable,
|
|
4783
4610
|
args: [{
|
|
4784
4611
|
providedIn: 'root'
|
|
4785
4612
|
}]
|
|
4786
|
-
}]
|
|
4787
|
-
type: Inject,
|
|
4788
|
-
args: ['env']
|
|
4789
|
-
}] }] });
|
|
4613
|
+
}] });
|
|
4790
4614
|
|
|
4791
4615
|
function isStaticAsset$1(url) {
|
|
4792
4616
|
return url.startsWith('assets/') || url.includes('/i18n/');
|
|
@@ -5007,5 +4831,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
5007
4831
|
* Generated bundle index. Do not edit.
|
|
5008
4832
|
*/
|
|
5009
4833
|
|
|
5010
|
-
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 };
|
|
4834
|
+
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, provideNgxServices, queryString, xmlHeaders };
|
|
5011
4835
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|