@experteam-mx/ngx-services 20.4.0 → 20.6.0-dev1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/experteam-mx-ngx-services.mjs +250 -191
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/index.d.ts +225 -92
- package/package.json +3 -3
|
@@ -48,11 +48,11 @@ class NgxServicesModule {
|
|
|
48
48
|
providers: [provideNgxServices(environment)]
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
52
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
53
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
51
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: NgxServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
52
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: NgxServicesModule });
|
|
53
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: NgxServicesModule, providers: [provideHttpClient()] });
|
|
54
54
|
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: NgxServicesModule, decorators: [{
|
|
56
56
|
type: NgModule,
|
|
57
57
|
args: [{
|
|
58
58
|
providers: [provideHttpClient()]
|
|
@@ -159,10 +159,10 @@ class ApiBillingCOService {
|
|
|
159
159
|
return this.http.get(`${this.url}/tributes`, { params })
|
|
160
160
|
.pipe(map(({ data }) => data));
|
|
161
161
|
}
|
|
162
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
163
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
162
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingCOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
163
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingCOService, providedIn: 'root' });
|
|
164
164
|
}
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingCOService, decorators: [{
|
|
166
166
|
type: Injectable,
|
|
167
167
|
args: [{
|
|
168
168
|
providedIn: 'root'
|
|
@@ -189,10 +189,10 @@ class ApiBillingDOService {
|
|
|
189
189
|
return this.http.get(`${this.url}/income-types`)
|
|
190
190
|
.pipe(map(({ data }) => data));
|
|
191
191
|
}
|
|
192
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
193
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
192
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingDOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
193
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingDOService, providedIn: 'root' });
|
|
194
194
|
}
|
|
195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingDOService, decorators: [{
|
|
196
196
|
type: Injectable,
|
|
197
197
|
args: [{
|
|
198
198
|
providedIn: 'root'
|
|
@@ -239,10 +239,10 @@ class ApiBillingGtService {
|
|
|
239
239
|
return this.http.post(`${this.url}/locations`, body)
|
|
240
240
|
.pipe(map(({ data }) => data));
|
|
241
241
|
}
|
|
242
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
243
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingGtService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
243
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingGtService, providedIn: 'root' });
|
|
244
244
|
}
|
|
245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingGtService, decorators: [{
|
|
246
246
|
type: Injectable,
|
|
247
247
|
args: [{
|
|
248
248
|
providedIn: 'root'
|
|
@@ -290,10 +290,10 @@ class ApiBillingMxService {
|
|
|
290
290
|
return this.http.get(`${this.url}/postal-codes`, { params })
|
|
291
291
|
.pipe(map(({ data }) => data));
|
|
292
292
|
}
|
|
293
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
294
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
293
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingMxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
294
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingMxService, providedIn: 'root' });
|
|
295
295
|
}
|
|
296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingMxService, decorators: [{
|
|
297
297
|
type: Injectable,
|
|
298
298
|
args: [{
|
|
299
299
|
providedIn: 'root'
|
|
@@ -384,10 +384,10 @@ class ApiBillingPaService {
|
|
|
384
384
|
return this.http.post(`${this.url}/locations`, body)
|
|
385
385
|
.pipe(map(({ data }) => data));
|
|
386
386
|
}
|
|
387
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
388
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
387
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingPaService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
388
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingPaService, providedIn: 'root' });
|
|
389
389
|
}
|
|
390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingPaService, decorators: [{
|
|
391
391
|
type: Injectable,
|
|
392
392
|
args: [{
|
|
393
393
|
providedIn: 'root'
|
|
@@ -456,10 +456,10 @@ class ApiBillingSvService {
|
|
|
456
456
|
return this.http.get(`${this.url}/municipalities`, { params })
|
|
457
457
|
.pipe(map(({ data }) => data));
|
|
458
458
|
}
|
|
459
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
460
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
459
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingSvService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
460
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingSvService, providedIn: 'root' });
|
|
461
461
|
}
|
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingSvService, decorators: [{
|
|
463
463
|
type: Injectable,
|
|
464
464
|
args: [{
|
|
465
465
|
providedIn: 'root'
|
|
@@ -647,10 +647,10 @@ class ApiCashOperationsService {
|
|
|
647
647
|
return this.http.patch(`${this.url}/deposits/${id}`, body)
|
|
648
648
|
.pipe(map(({ data }) => data));
|
|
649
649
|
}
|
|
650
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
651
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
650
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCashOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
651
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCashOperationsService, providedIn: 'root' });
|
|
652
652
|
}
|
|
653
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCashOperationsService, decorators: [{
|
|
654
654
|
type: Injectable,
|
|
655
655
|
args: [{
|
|
656
656
|
providedIn: 'root'
|
|
@@ -680,7 +680,7 @@ class ApiCatalogsService {
|
|
|
680
680
|
}).pipe(map(({ data }) => data));
|
|
681
681
|
}
|
|
682
682
|
/**
|
|
683
|
-
* Retrieves the list of
|
|
683
|
+
* Retrieves the list of identifications types
|
|
684
684
|
*
|
|
685
685
|
* @param {QueryParams} params - The query parameters used to fetch the identification types.
|
|
686
686
|
* @return {Observable<IdentificationTypesOut[]>} An observable that emits an array of identification type.
|
|
@@ -693,7 +693,7 @@ class ApiCatalogsService {
|
|
|
693
693
|
/**
|
|
694
694
|
* Retrieve a single identification type by its id.
|
|
695
695
|
*
|
|
696
|
-
* Sends an HTTP GET request to the
|
|
696
|
+
* Sends an HTTP GET request to the identification type endpoint and returns an Observable that emits
|
|
697
697
|
* the IdentificationTypeOut payload extracted from the API success envelope.
|
|
698
698
|
*
|
|
699
699
|
* @param id - The numeric identifier of the identification type to fetch.
|
|
@@ -849,6 +849,16 @@ class ApiCatalogsService {
|
|
|
849
849
|
return this.http.get(`${this.url}/zones`, { params })
|
|
850
850
|
.pipe(map(({ data }) => data));
|
|
851
851
|
}
|
|
852
|
+
/**
|
|
853
|
+
* Retrieves a zone by its ID.
|
|
854
|
+
*
|
|
855
|
+
* @param {number} id - The ID of the zone.
|
|
856
|
+
* @return {Observable<ZoneOut>} An observable containing the zone data.
|
|
857
|
+
*/
|
|
858
|
+
getZone(id) {
|
|
859
|
+
return this.http.get(`${this.url}/zones/${id}`)
|
|
860
|
+
.pipe(map(({ data }) => data));
|
|
861
|
+
}
|
|
852
862
|
/**
|
|
853
863
|
* Fetches the management areas based on the provided query parameters.
|
|
854
864
|
*
|
|
@@ -919,6 +929,16 @@ class ApiCatalogsService {
|
|
|
919
929
|
return this.http.get(`${this.url}/languages`, { params })
|
|
920
930
|
.pipe(map(({ data }) => data));
|
|
921
931
|
}
|
|
932
|
+
/**
|
|
933
|
+
* Retrieves a language by its ID.
|
|
934
|
+
*
|
|
935
|
+
* @param {number} id - The ID of the language.
|
|
936
|
+
* @return {Observable<LanguageOut>} An observable containing the language data.
|
|
937
|
+
*/
|
|
938
|
+
getLanguage(id) {
|
|
939
|
+
return this.http.get(`${this.url}/languages/${id}`)
|
|
940
|
+
.pipe(map(({ data }) => data));
|
|
941
|
+
}
|
|
922
942
|
/**
|
|
923
943
|
* Fetches the available units from the API based on the provided query parameters.
|
|
924
944
|
*
|
|
@@ -959,6 +979,17 @@ class ApiCatalogsService {
|
|
|
959
979
|
return this.http.get(`${this.url}/generic-folios`, { params })
|
|
960
980
|
.pipe(map(({ data }) => data));
|
|
961
981
|
}
|
|
982
|
+
/**
|
|
983
|
+
* Retrieves a generic folio by its country ID and code.
|
|
984
|
+
*
|
|
985
|
+
* @param {number} countryId - The ID of the country.
|
|
986
|
+
* @param {string} code - The code of the generic folio.
|
|
987
|
+
* @return {Observable<GenericFolioOut>} An observable containing the generic folio data.
|
|
988
|
+
*/
|
|
989
|
+
getGenericFolioByCountryAndCode(countryId, code) {
|
|
990
|
+
return this.http.get(`${this.url}/generic-folios/${countryId}/${code}`)
|
|
991
|
+
.pipe(map(({ data }) => data));
|
|
992
|
+
}
|
|
962
993
|
/**
|
|
963
994
|
* Sends a POST request to create or update a generic folio.
|
|
964
995
|
*
|
|
@@ -991,6 +1022,16 @@ class ApiCatalogsService {
|
|
|
991
1022
|
return this.http.put(`${this.url}/generic-folios/${id}`, body)
|
|
992
1023
|
.pipe(map(({ data }) => data));
|
|
993
1024
|
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Retrieves a product by its unique identifier.
|
|
1027
|
+
*
|
|
1028
|
+
* @param {number} id - The unique identifier of the product to retrieve.
|
|
1029
|
+
* @return {Observable<ProductOut>} An observable containing the product data.
|
|
1030
|
+
*/
|
|
1031
|
+
getProduct(id) {
|
|
1032
|
+
return this.http.get(`${this.url}/products/${id}`)
|
|
1033
|
+
.pipe(map(({ data }) => data));
|
|
1034
|
+
}
|
|
994
1035
|
/**
|
|
995
1036
|
* Sends a POST request to create a new product.
|
|
996
1037
|
*
|
|
@@ -1270,6 +1311,69 @@ class ApiCatalogsService {
|
|
|
1270
1311
|
return this.http.get(`${this.url}/package-locations`, { params })
|
|
1271
1312
|
.pipe(map(({ data }) => data));
|
|
1272
1313
|
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Retrieves trading transaction types based on the provided query parameters.
|
|
1316
|
+
* @param params - Query parameters to filter or configure the trading transaction types request
|
|
1317
|
+
* @returns An Observable that emits the trading transaction types data
|
|
1318
|
+
*/
|
|
1319
|
+
getTradingTransactionTypes(params) {
|
|
1320
|
+
return this.http.get(`${this.url}/trading-transaction-types`, { params })
|
|
1321
|
+
.pipe(map(({ data }) => data));
|
|
1322
|
+
}
|
|
1323
|
+
/**
|
|
1324
|
+
* Retrieves document types based on the provided query parameters.
|
|
1325
|
+
* @param params - Query parameters to filter or configure the document types request
|
|
1326
|
+
* @returns An Observable that emits the document types data
|
|
1327
|
+
*/
|
|
1328
|
+
getDocumentTypes(params) {
|
|
1329
|
+
return this.http.get(`${this.url}/document-types`, { params })
|
|
1330
|
+
.pipe(map(({ data }) => data));
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* Retrieves commodities based on the provided query parameters.
|
|
1334
|
+
* @param params - Query parameters to filter or configure the commodities request
|
|
1335
|
+
* @returns An Observable that emits the commodities data
|
|
1336
|
+
*/
|
|
1337
|
+
getCommodities(params) {
|
|
1338
|
+
return this.http.get(`${this.url}/commodities`, { params })
|
|
1339
|
+
.pipe(map(({ data }) => data));
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
* Retrieves quantity units based on the provided query parameters.
|
|
1343
|
+
* @param params - Query parameters to filter or configure the quantity units request
|
|
1344
|
+
* @returns An Observable that emits the quantity units data
|
|
1345
|
+
*/
|
|
1346
|
+
getQuantityUnits(params) {
|
|
1347
|
+
return this.http.get(`${this.url}/quantity-units`, { params })
|
|
1348
|
+
.pipe(map(({ data }) => data));
|
|
1349
|
+
}
|
|
1350
|
+
/**
|
|
1351
|
+
* Retrieves shipment descriptions based on the provided query parameters.
|
|
1352
|
+
* @param params - Query parameters to filter or configure the shipment descriptions request
|
|
1353
|
+
* @returns An Observable that emits the shipment descriptions data
|
|
1354
|
+
*/
|
|
1355
|
+
getShipmentDescriptions(params) {
|
|
1356
|
+
return this.http.get(`${this.url}/shipment-descriptions`, { params })
|
|
1357
|
+
.pipe(map(({ data }) => data));
|
|
1358
|
+
}
|
|
1359
|
+
/**
|
|
1360
|
+
* Retrieves price override approvers based on the provided query parameters.
|
|
1361
|
+
* @param params - Query parameters to filter or configure the price override approvers request
|
|
1362
|
+
* @returns An Observable that emits the price override approvers data
|
|
1363
|
+
*/
|
|
1364
|
+
getPriceOverrideApprovers(params) {
|
|
1365
|
+
return this.http.get(`${this.url}/price-override-approvers`, { params })
|
|
1366
|
+
.pipe(map(({ data }) => data));
|
|
1367
|
+
}
|
|
1368
|
+
/**
|
|
1369
|
+
* Retrieves price override reasons based on the provided query parameters.
|
|
1370
|
+
* @param params - Query parameters to filter or configure the price override reasons request
|
|
1371
|
+
* @returns An Observable that emits the price override reasons data
|
|
1372
|
+
*/
|
|
1373
|
+
getPriceOverrideReasons(params) {
|
|
1374
|
+
return this.http.get(`${this.url}/price-override-reasons`, { params })
|
|
1375
|
+
.pipe(map(({ data }) => data));
|
|
1376
|
+
}
|
|
1273
1377
|
/**
|
|
1274
1378
|
* Retrieves export reasons based on the provided query parameters.
|
|
1275
1379
|
* @param params - Query parameters to filter, sort, or paginate export reasons
|
|
@@ -1314,9 +1418,7 @@ class ApiCatalogsService {
|
|
|
1314
1418
|
* @returns An Observable that emits the operation result
|
|
1315
1419
|
*/
|
|
1316
1420
|
patchExportReason(id, isActive) {
|
|
1317
|
-
return this.http.patch(`${this.url}/export-reasons/${id}`, {
|
|
1318
|
-
isActive
|
|
1319
|
-
})
|
|
1421
|
+
return this.http.patch(`${this.url}/export-reasons/${id}`, { isActive })
|
|
1320
1422
|
.pipe(map(({ data }) => data));
|
|
1321
1423
|
}
|
|
1322
1424
|
/**
|
|
@@ -1328,10 +1430,10 @@ class ApiCatalogsService {
|
|
|
1328
1430
|
return this.http.get(`${this.url}/export-reason-types`, { params })
|
|
1329
1431
|
.pipe(map(({ data }) => data));
|
|
1330
1432
|
}
|
|
1331
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1332
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1433
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCatalogsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1434
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
|
|
1333
1435
|
}
|
|
1334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCatalogsService, decorators: [{
|
|
1335
1437
|
type: Injectable,
|
|
1336
1438
|
args: [{
|
|
1337
1439
|
providedIn: 'root'
|
|
@@ -2405,10 +2507,10 @@ class ApiCompaniesService {
|
|
|
2405
2507
|
}
|
|
2406
2508
|
}).pipe(map(({ data }) => data));
|
|
2407
2509
|
}
|
|
2408
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2409
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2510
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompaniesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2511
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
|
|
2410
2512
|
}
|
|
2411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2513
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompaniesService, decorators: [{
|
|
2412
2514
|
type: Injectable,
|
|
2413
2515
|
args: [{
|
|
2414
2516
|
providedIn: 'root'
|
|
@@ -2446,10 +2548,10 @@ class ApiCompositionService {
|
|
|
2446
2548
|
return this.http.get(`${this.url}/country-references`, { params })
|
|
2447
2549
|
.pipe(map(({ data }) => data));
|
|
2448
2550
|
}
|
|
2449
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2450
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2551
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompositionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2552
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompositionService, providedIn: 'root' });
|
|
2451
2553
|
}
|
|
2452
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompositionService, decorators: [{
|
|
2453
2555
|
type: Injectable,
|
|
2454
2556
|
args: [{
|
|
2455
2557
|
providedIn: 'root'
|
|
@@ -2592,10 +2694,10 @@ class ApiCustomsService {
|
|
|
2592
2694
|
params
|
|
2593
2695
|
}).pipe(map(({ data }) => data));
|
|
2594
2696
|
}
|
|
2595
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2596
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2697
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCustomsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2698
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCustomsService, providedIn: 'root' });
|
|
2597
2699
|
}
|
|
2598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2700
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCustomsService, decorators: [{
|
|
2599
2701
|
type: Injectable,
|
|
2600
2702
|
args: [{
|
|
2601
2703
|
providedIn: 'root'
|
|
@@ -2823,10 +2925,10 @@ class ApiDiscountsService {
|
|
|
2823
2925
|
return this.http.put(`${this.url}/customer-restrictions/V2/${id}`, body)
|
|
2824
2926
|
.pipe(map(({ data }) => data));
|
|
2825
2927
|
}
|
|
2826
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2827
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2928
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDiscountsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2929
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDiscountsService, providedIn: 'root' });
|
|
2828
2930
|
}
|
|
2829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDiscountsService, decorators: [{
|
|
2830
2932
|
type: Injectable,
|
|
2831
2933
|
args: [{
|
|
2832
2934
|
providedIn: 'root'
|
|
@@ -2918,10 +3020,10 @@ class ApiEToolsAutoBillingService {
|
|
|
2918
3020
|
return this.http.post(`${this.url}/external-shipments/${id}/re-billing`, body)
|
|
2919
3021
|
.pipe(map(({ data }) => data));
|
|
2920
3022
|
}
|
|
2921
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2922
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3023
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEToolsAutoBillingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3024
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEToolsAutoBillingService, providedIn: 'root' });
|
|
2923
3025
|
}
|
|
2924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3026
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEToolsAutoBillingService, decorators: [{
|
|
2925
3027
|
type: Injectable,
|
|
2926
3028
|
args: [{
|
|
2927
3029
|
providedIn: 'root'
|
|
@@ -2960,10 +3062,10 @@ class ApiEventsService {
|
|
|
2960
3062
|
return this.http.put(`${this.url}/operation-modules/${id}/end`, body)
|
|
2961
3063
|
.pipe(map(({ data }) => data));
|
|
2962
3064
|
}
|
|
2963
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2964
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3065
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3066
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEventsService, providedIn: 'root' });
|
|
2965
3067
|
}
|
|
2966
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEventsService, decorators: [{
|
|
2967
3069
|
type: Injectable,
|
|
2968
3070
|
args: [{
|
|
2969
3071
|
providedIn: 'root'
|
|
@@ -2973,7 +3075,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
2973
3075
|
class ApiExternalOperationsService {
|
|
2974
3076
|
http = inject(HttpClient);
|
|
2975
3077
|
environment = inject(ENVIRONMENT_TOKEN);
|
|
2976
|
-
appKey = this.environment.apiExternalOperationsKey ?? '';
|
|
2977
3078
|
/**
|
|
2978
3079
|
* Getter method to retrieve the API's external operations URL.
|
|
2979
3080
|
* Fetches the URL from the `apiExternalOperationsUrl` property of the environment object.
|
|
@@ -3001,9 +3102,8 @@ class ApiExternalOperationsService {
|
|
|
3001
3102
|
* @return {Observable<DeliveryConfirmationGenerateOut>} An observable that emits the generated delivery confirmation data.
|
|
3002
3103
|
*/
|
|
3003
3104
|
postDeliveryConfirmationGenerate(payload) {
|
|
3004
|
-
return this.http.post(`${this.url}/delivery-confirmation/generate`, payload
|
|
3005
|
-
|
|
3006
|
-
}).pipe(map$1(({ data }) => data));
|
|
3105
|
+
return this.http.post(`${this.url}/delivery-confirmation/generate`, payload)
|
|
3106
|
+
.pipe(map$1(({ data }) => data));
|
|
3007
3107
|
}
|
|
3008
3108
|
/**
|
|
3009
3109
|
* Confirms the completion of a delivery operation by making a PATCH request.
|
|
@@ -3015,7 +3115,6 @@ class ApiExternalOperationsService {
|
|
|
3015
3115
|
*/
|
|
3016
3116
|
patchDeliveryConfirmationComplete({ keyOTP, operationId, }) {
|
|
3017
3117
|
return this.http.patch(`${this.url}/delivery-confirmation/completed/${keyOTP}`, null, {
|
|
3018
|
-
headers: this.getAppKeyHeader(),
|
|
3019
3118
|
params: { operation_id: operationId }
|
|
3020
3119
|
}).pipe(map$1(({ data }) => data));
|
|
3021
3120
|
}
|
|
@@ -3028,17 +3127,13 @@ class ApiExternalOperationsService {
|
|
|
3028
3127
|
* @return {Observable<Object>} An observable that emits the server's response when the cancellation is processed.
|
|
3029
3128
|
*/
|
|
3030
3129
|
putDeliveryConfirmation({ otp, ...body }) {
|
|
3031
|
-
return this.http.put(`${this.url}/delivery-confirmation/confirmation/${otp}`, body
|
|
3032
|
-
|
|
3033
|
-
}).pipe(map$1(({ data }) => data));
|
|
3034
|
-
}
|
|
3035
|
-
getAppKeyHeader() {
|
|
3036
|
-
return { ...(this.appKey && { AppKey: this.appKey }) };
|
|
3130
|
+
return this.http.put(`${this.url}/delivery-confirmation/confirmation/${otp}`, body)
|
|
3131
|
+
.pipe(map$1(({ data }) => data));
|
|
3037
3132
|
}
|
|
3038
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3039
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3133
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3134
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, providedIn: 'root' });
|
|
3040
3135
|
}
|
|
3041
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, decorators: [{
|
|
3042
3137
|
type: Injectable,
|
|
3043
3138
|
args: [{
|
|
3044
3139
|
providedIn: 'root'
|
|
@@ -3305,10 +3400,10 @@ class ApiInventoriesService {
|
|
|
3305
3400
|
return this.http.get(`${this.url}/stock-update/packages/${id}`)
|
|
3306
3401
|
.pipe(map(({ data }) => data));
|
|
3307
3402
|
}
|
|
3308
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3309
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3403
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3404
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
|
|
3310
3405
|
}
|
|
3311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, decorators: [{
|
|
3312
3407
|
type: Injectable,
|
|
3313
3408
|
args: [{
|
|
3314
3409
|
providedIn: 'root'
|
|
@@ -3766,10 +3861,10 @@ class ApiInvoicesService {
|
|
|
3766
3861
|
return this.http.put(`${this.url}/operation/document/${id}/customer`, data)
|
|
3767
3862
|
.pipe(map(({ data }) => data));
|
|
3768
3863
|
}
|
|
3769
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3770
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3864
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInvoicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3865
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
|
|
3771
3866
|
}
|
|
3772
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInvoicesService, decorators: [{
|
|
3773
3868
|
type: Injectable,
|
|
3774
3869
|
args: [{
|
|
3775
3870
|
providedIn: 'root'
|
|
@@ -3859,10 +3954,10 @@ class ApiNotificationsService {
|
|
|
3859
3954
|
return this.http.get(`${this.url}/notification-types`, { params })
|
|
3860
3955
|
.pipe(map(({ data }) => data));
|
|
3861
3956
|
}
|
|
3862
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3863
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3957
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiNotificationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3958
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiNotificationsService, providedIn: 'root' });
|
|
3864
3959
|
}
|
|
3865
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiNotificationsService, decorators: [{
|
|
3866
3961
|
type: Injectable,
|
|
3867
3962
|
args: [{
|
|
3868
3963
|
providedIn: 'root'
|
|
@@ -3910,10 +4005,10 @@ class ApiOpenItemsService {
|
|
|
3910
4005
|
return this.http.post(`${this.url}/other-invoices`, body)
|
|
3911
4006
|
.pipe(map(({ data }) => data));
|
|
3912
4007
|
}
|
|
3913
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3914
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4008
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiOpenItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4009
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiOpenItemsService, providedIn: 'root' });
|
|
3915
4010
|
}
|
|
3916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4011
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiOpenItemsService, decorators: [{
|
|
3917
4012
|
type: Injectable,
|
|
3918
4013
|
args: [{
|
|
3919
4014
|
providedIn: 'root'
|
|
@@ -3980,10 +4075,10 @@ class ApiQuoteService {
|
|
|
3980
4075
|
return this.http.get(`${this.url}/quote-event-types`, { params })
|
|
3981
4076
|
.pipe(map(({ data }) => data));
|
|
3982
4077
|
}
|
|
3983
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3984
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4078
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiQuoteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4079
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiQuoteService, providedIn: 'root' });
|
|
3985
4080
|
}
|
|
3986
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4081
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiQuoteService, decorators: [{
|
|
3987
4082
|
type: Injectable,
|
|
3988
4083
|
args: [{
|
|
3989
4084
|
providedIn: 'root'
|
|
@@ -4201,10 +4296,10 @@ class ApiReportsService {
|
|
|
4201
4296
|
return this.http.get(`${this.url}/billing-details`, { params })
|
|
4202
4297
|
.pipe(map(({ data }) => data));
|
|
4203
4298
|
}
|
|
4204
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4205
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4299
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiReportsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4300
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
|
|
4206
4301
|
}
|
|
4207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiReportsService, decorators: [{
|
|
4208
4303
|
type: Injectable,
|
|
4209
4304
|
args: [{
|
|
4210
4305
|
providedIn: 'root'
|
|
@@ -4440,10 +4535,10 @@ class ApiSecurityService {
|
|
|
4440
4535
|
}
|
|
4441
4536
|
}).pipe(map(({ data }) => data));
|
|
4442
4537
|
}
|
|
4443
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4444
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4538
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSecurityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4539
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSecurityService, providedIn: 'root' });
|
|
4445
4540
|
}
|
|
4446
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4541
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSecurityService, decorators: [{
|
|
4447
4542
|
type: Injectable,
|
|
4448
4543
|
args: [{
|
|
4449
4544
|
providedIn: 'root'
|
|
@@ -4552,10 +4647,10 @@ class ApiServicesService {
|
|
|
4552
4647
|
params: queryParams
|
|
4553
4648
|
}).pipe(map(({ data }) => data));
|
|
4554
4649
|
}
|
|
4555
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4556
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4650
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiServicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4651
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiServicesService, providedIn: 'root' });
|
|
4557
4652
|
}
|
|
4558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiServicesService, decorators: [{
|
|
4559
4654
|
type: Injectable,
|
|
4560
4655
|
args: [{
|
|
4561
4656
|
providedIn: 'root'
|
|
@@ -4667,47 +4762,60 @@ class ApiShipmentsService {
|
|
|
4667
4762
|
.pipe(map(({ data }) => data));
|
|
4668
4763
|
}
|
|
4669
4764
|
/**
|
|
4670
|
-
* Retrieves a paginated list of
|
|
4671
|
-
*
|
|
4672
|
-
* @
|
|
4765
|
+
* Retrieves a paginated list of document configurations.
|
|
4766
|
+
*
|
|
4767
|
+
* @param {QueryParams} params - Query parameters used for filtering, sorting, and pagination.
|
|
4768
|
+
* @returns {Observable<DocumentConfigurationsOut>} An observable containing the list of document configurations and pagination metadata.
|
|
4673
4769
|
*/
|
|
4674
|
-
|
|
4675
|
-
return this.http.get(`${this.url}/
|
|
4770
|
+
getDocumentConfigurations(params) {
|
|
4771
|
+
return this.http.get(`${this.url}/document-configurations`, {
|
|
4676
4772
|
params
|
|
4677
4773
|
}).pipe(map(({ data }) => data));
|
|
4678
4774
|
}
|
|
4679
4775
|
/**
|
|
4680
|
-
* Retrieves
|
|
4776
|
+
* Retrieves a document configuration by its identifier.
|
|
4777
|
+
*
|
|
4778
|
+
* @param {number} id - The unique identifier of the document configuration.
|
|
4779
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the document configuration details.
|
|
4780
|
+
*/
|
|
4781
|
+
getDocumentConfiguration(id) {
|
|
4782
|
+
return this.http.get(`${this.url}/document-configurations/${id}`).pipe(map(({ data }) => data));
|
|
4783
|
+
}
|
|
4784
|
+
/**
|
|
4785
|
+
* Creates a new document configuration.
|
|
4681
4786
|
*
|
|
4682
|
-
* @param {
|
|
4683
|
-
* @
|
|
4787
|
+
* @param {DocumentConfigurationIn} body - The document configuration data to create.
|
|
4788
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the newly created document configuration.
|
|
4684
4789
|
*/
|
|
4685
|
-
|
|
4686
|
-
return this.http.
|
|
4790
|
+
postDocumentConfiguration(body) {
|
|
4791
|
+
return this.http.post(`${this.url}/document-configurations`, body)
|
|
4792
|
+
.pipe(map(({ data }) => data));
|
|
4687
4793
|
}
|
|
4688
4794
|
/**
|
|
4689
|
-
*
|
|
4690
|
-
*
|
|
4691
|
-
* @
|
|
4795
|
+
* Updates an existing document configuration.
|
|
4796
|
+
*
|
|
4797
|
+
* @param {number} id - The unique identifier of the document configuration to update.
|
|
4798
|
+
* @param {DocumentConfigurationIn} body - The updated document configuration data.
|
|
4799
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the updated document configuration.
|
|
4692
4800
|
*/
|
|
4693
|
-
|
|
4694
|
-
return this.http.
|
|
4801
|
+
putDocumentConfiguration(id, body) {
|
|
4802
|
+
return this.http.put(`${this.url}/document-configurations/${id}`, body)
|
|
4695
4803
|
.pipe(map(({ data }) => data));
|
|
4696
4804
|
}
|
|
4697
4805
|
/**
|
|
4698
|
-
*
|
|
4699
|
-
*
|
|
4700
|
-
* @param {
|
|
4701
|
-
* @returns {Observable<
|
|
4806
|
+
* Generates a preview for a document configuration.
|
|
4807
|
+
*
|
|
4808
|
+
* @param {DocumentConfigurationsPreviewIn} body - The data used to generate the document preview.
|
|
4809
|
+
* @returns {Observable<DocumentConfigurationsPreviewOut>} An observable containing the generated document preview.
|
|
4702
4810
|
*/
|
|
4703
|
-
|
|
4704
|
-
return this.http.
|
|
4811
|
+
postDocumentConfigurationPreview(body) {
|
|
4812
|
+
return this.http.post(`${this.url}/document-configurations/preview`, body)
|
|
4705
4813
|
.pipe(map(({ data }) => data));
|
|
4706
4814
|
}
|
|
4707
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4708
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4815
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4816
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
|
|
4709
4817
|
}
|
|
4710
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4818
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, decorators: [{
|
|
4711
4819
|
type: Injectable,
|
|
4712
4820
|
args: [{
|
|
4713
4821
|
providedIn: 'root'
|
|
@@ -4826,10 +4934,10 @@ class ApiSuppliesService {
|
|
|
4826
4934
|
return this.http.get(`${this.url}/supply-locations/export/excel`, { params })
|
|
4827
4935
|
.pipe(map(({ data }) => data));
|
|
4828
4936
|
}
|
|
4829
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4830
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
4937
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSuppliesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4938
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSuppliesService, providedIn: 'root' });
|
|
4831
4939
|
}
|
|
4832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSuppliesService, decorators: [{
|
|
4833
4941
|
type: Injectable,
|
|
4834
4942
|
args: [{
|
|
4835
4943
|
providedIn: 'root'
|
|
@@ -4839,7 +4947,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
4839
4947
|
class ApiSurveysService {
|
|
4840
4948
|
environments = inject(ENVIRONMENT_TOKEN);
|
|
4841
4949
|
http = inject(HttpClient);
|
|
4842
|
-
appKey = this.environments.apiSurveysKey ?? '';
|
|
4843
4950
|
/**
|
|
4844
4951
|
* Base URL for surveys API endpoints.
|
|
4845
4952
|
* @returns The configured surveys API URL or an empty string.
|
|
@@ -4847,9 +4954,6 @@ class ApiSurveysService {
|
|
|
4847
4954
|
get url() {
|
|
4848
4955
|
return this.environments.apiSurveysUrl ?? '';
|
|
4849
4956
|
}
|
|
4850
|
-
appKeyHeader() {
|
|
4851
|
-
return { ...(this.appKey && { AppKey: this.appKey }) };
|
|
4852
|
-
}
|
|
4853
4957
|
/**
|
|
4854
4958
|
* Retrieves surveys list based on query parameters.
|
|
4855
4959
|
* @param params Query parameters used to filter, paginate, or sort surveys.
|
|
@@ -4943,9 +5047,8 @@ class ApiSurveysService {
|
|
|
4943
5047
|
* @returns Observable stream with customer survey data.
|
|
4944
5048
|
*/
|
|
4945
5049
|
getCustomerSurvey(uuid) {
|
|
4946
|
-
return this.http.get(`${this.url}/customer-surveys/${uuid}
|
|
4947
|
-
|
|
4948
|
-
}).pipe(map(({ data }) => data));
|
|
5050
|
+
return this.http.get(`${this.url}/customer-surveys/${uuid}`)
|
|
5051
|
+
.pipe(map(({ data }) => data));
|
|
4949
5052
|
}
|
|
4950
5053
|
/**
|
|
4951
5054
|
* Updates an existing customer survey by UUID.
|
|
@@ -4954,9 +5057,8 @@ class ApiSurveysService {
|
|
|
4954
5057
|
* @returns Observable stream with updated customer survey data.
|
|
4955
5058
|
*/
|
|
4956
5059
|
putCustomerSurvey(uuid, body) {
|
|
4957
|
-
return this.http.put(`${this.url}/customer-surveys/${uuid}`, body
|
|
4958
|
-
|
|
4959
|
-
}).pipe(map(({ data }) => data));
|
|
5060
|
+
return this.http.put(`${this.url}/customer-surveys/${uuid}`, body)
|
|
5061
|
+
.pipe(map(({ data }) => data));
|
|
4960
5062
|
}
|
|
4961
5063
|
/**
|
|
4962
5064
|
* Marks a customer survey as finished by UUID.
|
|
@@ -4965,14 +5067,13 @@ class ApiSurveysService {
|
|
|
4965
5067
|
* @returns Observable stream with updated customer survey data.
|
|
4966
5068
|
*/
|
|
4967
5069
|
postCustomerSurveyFinish(uuid, body) {
|
|
4968
|
-
return this.http.post(`${this.url}/customer-surveys/${uuid}/finish`, body
|
|
4969
|
-
|
|
4970
|
-
}).pipe(map(({ data }) => data));
|
|
5070
|
+
return this.http.post(`${this.url}/customer-surveys/${uuid}/finish`, body)
|
|
5071
|
+
.pipe(map(({ data }) => data));
|
|
4971
5072
|
}
|
|
4972
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4973
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
5073
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSurveysService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5074
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSurveysService, providedIn: 'root' });
|
|
4974
5075
|
}
|
|
4975
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSurveysService, decorators: [{
|
|
4976
5077
|
type: Injectable,
|
|
4977
5078
|
args: [{
|
|
4978
5079
|
providedIn: 'root'
|
|
@@ -5008,6 +5109,14 @@ var ViewSectionOption;
|
|
|
5008
5109
|
ViewSectionOption["BILLING"] = "billing";
|
|
5009
5110
|
ViewSectionOption["CUSTOMER_RESTRICTION"] = "customerRestriction";
|
|
5010
5111
|
})(ViewSectionOption || (ViewSectionOption = {}));
|
|
5112
|
+
var ShipmentIncomeTypeCode;
|
|
5113
|
+
(function (ShipmentIncomeTypeCode) {
|
|
5114
|
+
ShipmentIncomeTypeCode["MANUAL"] = "EM";
|
|
5115
|
+
ShipmentIncomeTypeCode["MOBILE"] = "EE";
|
|
5116
|
+
ShipmentIncomeTypeCode["FOLIO"] = "EF";
|
|
5117
|
+
ShipmentIncomeTypeCode["EMPLOYEE"] = "EEM";
|
|
5118
|
+
ShipmentIncomeTypeCode["EMBASSY"] = "EMB";
|
|
5119
|
+
})(ShipmentIncomeTypeCode || (ShipmentIncomeTypeCode = {}));
|
|
5011
5120
|
|
|
5012
5121
|
var OperationModuleStatus;
|
|
5013
5122
|
(function (OperationModuleStatus) {
|
|
@@ -5162,10 +5271,10 @@ class WebSocketsService {
|
|
|
5162
5271
|
const waitTime = 3 * 1000;
|
|
5163
5272
|
return new Promise((resolve) => setTimeout(resolve, waitTime));
|
|
5164
5273
|
}
|
|
5165
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5166
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
5274
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: WebSocketsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5275
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: WebSocketsService, providedIn: 'root' });
|
|
5167
5276
|
}
|
|
5168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: WebSocketsService, decorators: [{
|
|
5169
5278
|
type: Injectable,
|
|
5170
5279
|
args: [{
|
|
5171
5280
|
providedIn: 'root',
|
|
@@ -5251,17 +5360,17 @@ class CryptoService {
|
|
|
5251
5360
|
}
|
|
5252
5361
|
return bytes.buffer;
|
|
5253
5362
|
}
|
|
5254
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5255
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
5363
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CryptoService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5364
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CryptoService, providedIn: 'root' });
|
|
5256
5365
|
}
|
|
5257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CryptoService, decorators: [{
|
|
5258
5367
|
type: Injectable,
|
|
5259
5368
|
args: [{
|
|
5260
5369
|
providedIn: 'root'
|
|
5261
5370
|
}]
|
|
5262
5371
|
}] });
|
|
5263
5372
|
|
|
5264
|
-
function isStaticAsset
|
|
5373
|
+
function isStaticAsset(url) {
|
|
5265
5374
|
return url.startsWith('assets/') || url.includes('/i18n/');
|
|
5266
5375
|
}
|
|
5267
5376
|
/**
|
|
@@ -5274,7 +5383,7 @@ function isStaticAsset$1(url) {
|
|
|
5274
5383
|
* @return {Observable<HttpEvent<unknown>>} An observable of the HTTP event resulting from the processed request.
|
|
5275
5384
|
*/
|
|
5276
5385
|
function apiHeadersInterceptor(req, next) {
|
|
5277
|
-
if (isStaticAsset
|
|
5386
|
+
if (isStaticAsset(req.url)) {
|
|
5278
5387
|
return next(req);
|
|
5279
5388
|
}
|
|
5280
5389
|
let headers = req.headers;
|
|
@@ -5291,56 +5400,6 @@ function apiHeadersInterceptor(req, next) {
|
|
|
5291
5400
|
return next(req);
|
|
5292
5401
|
}
|
|
5293
5402
|
|
|
5294
|
-
const isStaticAsset = (url) => url.startsWith('assets/') || url.includes('/i18n/');
|
|
5295
|
-
/**
|
|
5296
|
-
* HTTP interceptor that injects the external operations API key into outbound requests.
|
|
5297
|
-
*
|
|
5298
|
-
* The interceptor:
|
|
5299
|
-
* 1. Reads `apiExternalOperationsKey` from the injected `ENVIRONMENT_TOKEN`.
|
|
5300
|
-
* 2. Skips modification if the key is absent.
|
|
5301
|
-
* 3. Leaves the request unchanged if it already contains an `AppKey` header (caller override).
|
|
5302
|
-
* 4. Otherwise clones the request adding `AppKey: apiExternalOperationsKey`.
|
|
5303
|
-
*
|
|
5304
|
-
* This enables centralized, transparent authentication for services targeting external
|
|
5305
|
-
* operations endpoints while allowing explicit per-request overrides.
|
|
5306
|
-
*
|
|
5307
|
-
* Example:
|
|
5308
|
-
* ```ts
|
|
5309
|
-
* provideHttpClient(
|
|
5310
|
-
* withInterceptors([apiKeyInterceptor])
|
|
5311
|
-
* );
|
|
5312
|
-
* ```
|
|
5313
|
-
*
|
|
5314
|
-
* @param request The original immutable `HttpRequest` instance.
|
|
5315
|
-
* @param next The next handler in the interceptor chain, used to forward the (possibly cloned) request.
|
|
5316
|
-
* @returns An `Observable` stream of the HTTP events for the (potentially augmented) request.
|
|
5317
|
-
*
|
|
5318
|
-
* @remarks
|
|
5319
|
-
* - If you need to intentionally send a different key for a specific request, set the `AppKey`
|
|
5320
|
-
* header manually before this interceptor runs.
|
|
5321
|
-
* - If `apiExternalOperationsKey` is undefined (e.g., missing configuration), the request is passed through unchanged.
|
|
5322
|
-
* - Order matters: place this interceptor before others that rely on the presence of the `AppKey` header.
|
|
5323
|
-
*
|
|
5324
|
-
* @see HttpRequest
|
|
5325
|
-
* @see HttpHandlerFn
|
|
5326
|
-
*/
|
|
5327
|
-
function apiKeyInterceptor(request, next) {
|
|
5328
|
-
if (isStaticAsset(request.url)) {
|
|
5329
|
-
return next(request);
|
|
5330
|
-
}
|
|
5331
|
-
const { apiExternalOperationsKey } = inject(ENVIRONMENT_TOKEN);
|
|
5332
|
-
if (!apiExternalOperationsKey)
|
|
5333
|
-
return next(request);
|
|
5334
|
-
if (request.headers.has('AppKey'))
|
|
5335
|
-
return next(request);
|
|
5336
|
-
request = request.clone({
|
|
5337
|
-
setHeaders: {
|
|
5338
|
-
AppKey: apiExternalOperationsKey
|
|
5339
|
-
}
|
|
5340
|
-
});
|
|
5341
|
-
return next(request);
|
|
5342
|
-
}
|
|
5343
|
-
|
|
5344
5403
|
/**
|
|
5345
5404
|
* An HTTP interceptor to append an Authorization header with a Bearer token
|
|
5346
5405
|
* to outgoing HTTP requests if certain conditions are met.
|
|
@@ -5490,5 +5549,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
5490
5549
|
* Generated bundle index. Do not edit.
|
|
5491
5550
|
*/
|
|
5492
5551
|
|
|
5493
|
-
export { AlphaNumeric, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, DefaultValueType, DepositTypeCode, DocumentStatusCode, ENVIRONMENT_TOKEN, Event, Group, NgxServicesModule, OpeningStatusCode, OperationModuleStatus, PaymentTypeCode, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor,
|
|
5552
|
+
export { AlphaNumeric, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, DefaultValueType, DepositTypeCode, DocumentStatusCode, ENVIRONMENT_TOKEN, Event, Group, NgxServicesModule, OpeningStatusCode, OperationModuleStatus, PaymentTypeCode, ShipmentIncomeTypeCode, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
5494
5553
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|