@experteam-mx/ngx-services 20.4.0 → 20.6.0-dev2.1

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.
@@ -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.21", ngImport: i0, type: NgxServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
52
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.21", ngImport: i0, type: NgxServicesModule });
53
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: NgxServicesModule, providers: [provideHttpClient()] });
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.21", ngImport: i0, type: NgxServicesModule, decorators: [{
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.21", ngImport: i0, type: ApiBillingCOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
163
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiBillingCOService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiBillingCOService, decorators: [{
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.21", ngImport: i0, type: ApiBillingDOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
193
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiBillingDOService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiBillingDOService, decorators: [{
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.21", ngImport: i0, type: ApiBillingGtService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
243
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiBillingGtService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiBillingGtService, decorators: [{
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.21", ngImport: i0, type: ApiBillingMxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
294
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiBillingMxService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiBillingMxService, decorators: [{
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.21", ngImport: i0, type: ApiBillingPaService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
388
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiBillingPaService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiBillingPaService, decorators: [{
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.21", ngImport: i0, type: ApiBillingSvService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
460
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiBillingSvService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiBillingSvService, decorators: [{
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.21", ngImport: i0, type: ApiCashOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
651
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiCashOperationsService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiCashOperationsService, decorators: [{
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 identificatios types
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 indentification type endpoint and returns an Observable that emits
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.21", ngImport: i0, type: ApiCatalogsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1332
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiCatalogsService, decorators: [{
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.21", ngImport: i0, type: ApiCompaniesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2409
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiCompaniesService, decorators: [{
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.21", ngImport: i0, type: ApiCompositionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2450
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiCompositionService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiCompositionService, decorators: [{
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.21", ngImport: i0, type: ApiCustomsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2596
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiCustomsService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiCustomsService, decorators: [{
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.21", ngImport: i0, type: ApiDiscountsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2827
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiDiscountsService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiDiscountsService, decorators: [{
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.21", ngImport: i0, type: ApiEToolsAutoBillingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2922
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiEToolsAutoBillingService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiEToolsAutoBillingService, decorators: [{
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.21", ngImport: i0, type: ApiEventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2964
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiEventsService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiEventsService, decorators: [{
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
- headers: this.getAppKeyHeader(),
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
- headers: this.getAppKeyHeader(),
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.21", ngImport: i0, type: ApiExternalOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3039
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiExternalOperationsService, providedIn: 'root' });
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.21", ngImport: i0, type: ApiExternalOperationsService, decorators: [{
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,60 @@ 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.21", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3309
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
3403
+ /**
3404
+ * Retrieves a list of courier routes based on query parameters.
3405
+ *
3406
+ * @param {QueryParams} params - Query parameters for filtering the courier routes.
3407
+ * @returns {Observable<CourierRoutesOut>} An observable that emits the list of courier routes.
3408
+ */
3409
+ getCourierRoutes(params) {
3410
+ return this.http.get(`${this.url}/courier-routes`, {
3411
+ params
3412
+ }).pipe(map(({ data }) => data));
3413
+ }
3414
+ /**
3415
+ * Fetches the courier route details based on the provided courier route ID.
3416
+ *
3417
+ * @param {number} id - The courier route id
3418
+ * @return {Observable<CourierRouteOut>} An observable that emits the courier route data.
3419
+ */
3420
+ getCourierRoute(id) {
3421
+ return this.http.get(`${this.url}/courier-routes/${id}`)
3422
+ .pipe(map(({ data }) => data));
3423
+ }
3424
+ /**
3425
+ * Creates a new courier route.
3426
+ *
3427
+ * @param {CourierRouteIn} body - The data for the new courier route.
3428
+ * @returns {Observable<CourierRouteOut>} An observable the created courier route detail.
3429
+ */
3430
+ postCourierRoute(body) {
3431
+ return this.http.post(`${this.url}/courier-routes`, body).pipe(map(({ data }) => data));
3432
+ }
3433
+ /**
3434
+ * Update an existing courier route.
3435
+ *
3436
+ * @param {number} id - The identifier of the courier route record to update.
3437
+ * @param {CourierRouteIn} body - The courier route data to be updated.
3438
+ * @returns {Observable<CourierRouteOut>} An observable detail of the updated courier route.
3439
+ */
3440
+ putCourierRoute(id, body) {
3441
+ return this.http.put(`${this.url}/courier-routes/${id}`, body).pipe(map(({ data }) => data));
3442
+ }
3443
+ /**
3444
+ * Delete an existing courier route.
3445
+ *
3446
+ * @param {number} id - The unique identifier of the courier route to be deleted.
3447
+ * @returns {Observable<CourierRouteOut>} An observable that emits the result of the delete courier route.
3448
+ */
3449
+ deleteCourierRoute(id) {
3450
+ return this.http.delete(`${this.url}/courier-routes/${id}`)
3451
+ .pipe(map(({ data }) => data));
3452
+ }
3453
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3454
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
3310
3455
  }
3311
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiInventoriesService, decorators: [{
3456
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, decorators: [{
3312
3457
  type: Injectable,
3313
3458
  args: [{
3314
3459
  providedIn: 'root'
@@ -3766,10 +3911,10 @@ class ApiInvoicesService {
3766
3911
  return this.http.put(`${this.url}/operation/document/${id}/customer`, data)
3767
3912
  .pipe(map(({ data }) => data));
3768
3913
  }
3769
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiInvoicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3770
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
3914
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInvoicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3915
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
3771
3916
  }
3772
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiInvoicesService, decorators: [{
3917
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInvoicesService, decorators: [{
3773
3918
  type: Injectable,
3774
3919
  args: [{
3775
3920
  providedIn: 'root'
@@ -3859,10 +4004,10 @@ class ApiNotificationsService {
3859
4004
  return this.http.get(`${this.url}/notification-types`, { params })
3860
4005
  .pipe(map(({ data }) => data));
3861
4006
  }
3862
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiNotificationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3863
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiNotificationsService, providedIn: 'root' });
4007
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiNotificationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4008
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiNotificationsService, providedIn: 'root' });
3864
4009
  }
3865
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiNotificationsService, decorators: [{
4010
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiNotificationsService, decorators: [{
3866
4011
  type: Injectable,
3867
4012
  args: [{
3868
4013
  providedIn: 'root'
@@ -3910,10 +4055,10 @@ class ApiOpenItemsService {
3910
4055
  return this.http.post(`${this.url}/other-invoices`, body)
3911
4056
  .pipe(map(({ data }) => data));
3912
4057
  }
3913
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiOpenItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3914
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiOpenItemsService, providedIn: 'root' });
4058
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiOpenItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4059
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiOpenItemsService, providedIn: 'root' });
3915
4060
  }
3916
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiOpenItemsService, decorators: [{
4061
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiOpenItemsService, decorators: [{
3917
4062
  type: Injectable,
3918
4063
  args: [{
3919
4064
  providedIn: 'root'
@@ -3980,10 +4125,10 @@ class ApiQuoteService {
3980
4125
  return this.http.get(`${this.url}/quote-event-types`, { params })
3981
4126
  .pipe(map(({ data }) => data));
3982
4127
  }
3983
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiQuoteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3984
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiQuoteService, providedIn: 'root' });
4128
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiQuoteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4129
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiQuoteService, providedIn: 'root' });
3985
4130
  }
3986
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiQuoteService, decorators: [{
4131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiQuoteService, decorators: [{
3987
4132
  type: Injectable,
3988
4133
  args: [{
3989
4134
  providedIn: 'root'
@@ -4201,10 +4346,10 @@ class ApiReportsService {
4201
4346
  return this.http.get(`${this.url}/billing-details`, { params })
4202
4347
  .pipe(map(({ data }) => data));
4203
4348
  }
4204
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiReportsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4205
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
4349
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiReportsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4350
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
4206
4351
  }
4207
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiReportsService, decorators: [{
4352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiReportsService, decorators: [{
4208
4353
  type: Injectable,
4209
4354
  args: [{
4210
4355
  providedIn: 'root'
@@ -4440,10 +4585,10 @@ class ApiSecurityService {
4440
4585
  }
4441
4586
  }).pipe(map(({ data }) => data));
4442
4587
  }
4443
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiSecurityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4444
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiSecurityService, providedIn: 'root' });
4588
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSecurityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4589
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSecurityService, providedIn: 'root' });
4445
4590
  }
4446
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiSecurityService, decorators: [{
4591
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSecurityService, decorators: [{
4447
4592
  type: Injectable,
4448
4593
  args: [{
4449
4594
  providedIn: 'root'
@@ -4552,10 +4697,10 @@ class ApiServicesService {
4552
4697
  params: queryParams
4553
4698
  }).pipe(map(({ data }) => data));
4554
4699
  }
4555
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiServicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4556
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiServicesService, providedIn: 'root' });
4700
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiServicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4701
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiServicesService, providedIn: 'root' });
4557
4702
  }
4558
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiServicesService, decorators: [{
4703
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiServicesService, decorators: [{
4559
4704
  type: Injectable,
4560
4705
  args: [{
4561
4706
  providedIn: 'root'
@@ -4704,10 +4849,10 @@ class ApiShipmentsService {
4704
4849
  return this.http.put(`${this.url}/signature-page-settings/${id}`, body)
4705
4850
  .pipe(map(({ data }) => data));
4706
4851
  }
4707
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4708
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
4852
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4853
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
4709
4854
  }
4710
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiShipmentsService, decorators: [{
4855
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, decorators: [{
4711
4856
  type: Injectable,
4712
4857
  args: [{
4713
4858
  providedIn: 'root'
@@ -4826,10 +4971,10 @@ class ApiSuppliesService {
4826
4971
  return this.http.get(`${this.url}/supply-locations/export/excel`, { params })
4827
4972
  .pipe(map(({ data }) => data));
4828
4973
  }
4829
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiSuppliesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4830
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiSuppliesService, providedIn: 'root' });
4974
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSuppliesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4975
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSuppliesService, providedIn: 'root' });
4831
4976
  }
4832
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiSuppliesService, decorators: [{
4977
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSuppliesService, decorators: [{
4833
4978
  type: Injectable,
4834
4979
  args: [{
4835
4980
  providedIn: 'root'
@@ -4839,7 +4984,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
4839
4984
  class ApiSurveysService {
4840
4985
  environments = inject(ENVIRONMENT_TOKEN);
4841
4986
  http = inject(HttpClient);
4842
- appKey = this.environments.apiSurveysKey ?? '';
4843
4987
  /**
4844
4988
  * Base URL for surveys API endpoints.
4845
4989
  * @returns The configured surveys API URL or an empty string.
@@ -4847,9 +4991,6 @@ class ApiSurveysService {
4847
4991
  get url() {
4848
4992
  return this.environments.apiSurveysUrl ?? '';
4849
4993
  }
4850
- appKeyHeader() {
4851
- return { ...(this.appKey && { AppKey: this.appKey }) };
4852
- }
4853
4994
  /**
4854
4995
  * Retrieves surveys list based on query parameters.
4855
4996
  * @param params Query parameters used to filter, paginate, or sort surveys.
@@ -4943,9 +5084,8 @@ class ApiSurveysService {
4943
5084
  * @returns Observable stream with customer survey data.
4944
5085
  */
4945
5086
  getCustomerSurvey(uuid) {
4946
- return this.http.get(`${this.url}/customer-surveys/${uuid}`, {
4947
- headers: this.appKeyHeader(),
4948
- }).pipe(map(({ data }) => data));
5087
+ return this.http.get(`${this.url}/customer-surveys/${uuid}`)
5088
+ .pipe(map(({ data }) => data));
4949
5089
  }
4950
5090
  /**
4951
5091
  * Updates an existing customer survey by UUID.
@@ -4954,9 +5094,8 @@ class ApiSurveysService {
4954
5094
  * @returns Observable stream with updated customer survey data.
4955
5095
  */
4956
5096
  putCustomerSurvey(uuid, body) {
4957
- return this.http.put(`${this.url}/customer-surveys/${uuid}`, body, {
4958
- headers: this.appKeyHeader(),
4959
- }).pipe(map(({ data }) => data));
5097
+ return this.http.put(`${this.url}/customer-surveys/${uuid}`, body)
5098
+ .pipe(map(({ data }) => data));
4960
5099
  }
4961
5100
  /**
4962
5101
  * Marks a customer survey as finished by UUID.
@@ -4965,14 +5104,13 @@ class ApiSurveysService {
4965
5104
  * @returns Observable stream with updated customer survey data.
4966
5105
  */
4967
5106
  postCustomerSurveyFinish(uuid, body) {
4968
- return this.http.post(`${this.url}/customer-surveys/${uuid}/finish`, body, {
4969
- headers: this.appKeyHeader(),
4970
- }).pipe(map(({ data }) => data));
5107
+ return this.http.post(`${this.url}/customer-surveys/${uuid}/finish`, body)
5108
+ .pipe(map(({ data }) => data));
4971
5109
  }
4972
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiSurveysService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4973
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiSurveysService, providedIn: 'root' });
5110
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSurveysService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5111
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSurveysService, providedIn: 'root' });
4974
5112
  }
4975
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiSurveysService, decorators: [{
5113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSurveysService, decorators: [{
4976
5114
  type: Injectable,
4977
5115
  args: [{
4978
5116
  providedIn: 'root'
@@ -5008,6 +5146,14 @@ var ViewSectionOption;
5008
5146
  ViewSectionOption["BILLING"] = "billing";
5009
5147
  ViewSectionOption["CUSTOMER_RESTRICTION"] = "customerRestriction";
5010
5148
  })(ViewSectionOption || (ViewSectionOption = {}));
5149
+ var ShipmentIncomeTypeCode;
5150
+ (function (ShipmentIncomeTypeCode) {
5151
+ ShipmentIncomeTypeCode["MANUAL"] = "EM";
5152
+ ShipmentIncomeTypeCode["MOBILE"] = "EE";
5153
+ ShipmentIncomeTypeCode["FOLIO"] = "EF";
5154
+ ShipmentIncomeTypeCode["EMPLOYEE"] = "EEM";
5155
+ ShipmentIncomeTypeCode["EMBASSY"] = "EMB";
5156
+ })(ShipmentIncomeTypeCode || (ShipmentIncomeTypeCode = {}));
5011
5157
 
5012
5158
  var OperationModuleStatus;
5013
5159
  (function (OperationModuleStatus) {
@@ -5162,10 +5308,10 @@ class WebSocketsService {
5162
5308
  const waitTime = 3 * 1000;
5163
5309
  return new Promise((resolve) => setTimeout(resolve, waitTime));
5164
5310
  }
5165
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: WebSocketsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5166
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: WebSocketsService, providedIn: 'root' });
5311
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: WebSocketsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5312
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: WebSocketsService, providedIn: 'root' });
5167
5313
  }
5168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: WebSocketsService, decorators: [{
5314
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: WebSocketsService, decorators: [{
5169
5315
  type: Injectable,
5170
5316
  args: [{
5171
5317
  providedIn: 'root',
@@ -5251,17 +5397,17 @@ class CryptoService {
5251
5397
  }
5252
5398
  return bytes.buffer;
5253
5399
  }
5254
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: CryptoService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5255
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: CryptoService, providedIn: 'root' });
5400
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CryptoService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5401
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CryptoService, providedIn: 'root' });
5256
5402
  }
5257
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: CryptoService, decorators: [{
5403
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CryptoService, decorators: [{
5258
5404
  type: Injectable,
5259
5405
  args: [{
5260
5406
  providedIn: 'root'
5261
5407
  }]
5262
5408
  }] });
5263
5409
 
5264
- function isStaticAsset$1(url) {
5410
+ function isStaticAsset(url) {
5265
5411
  return url.startsWith('assets/') || url.includes('/i18n/');
5266
5412
  }
5267
5413
  /**
@@ -5274,7 +5420,7 @@ function isStaticAsset$1(url) {
5274
5420
  * @return {Observable<HttpEvent<unknown>>} An observable of the HTTP event resulting from the processed request.
5275
5421
  */
5276
5422
  function apiHeadersInterceptor(req, next) {
5277
- if (isStaticAsset$1(req.url)) {
5423
+ if (isStaticAsset(req.url)) {
5278
5424
  return next(req);
5279
5425
  }
5280
5426
  let headers = req.headers;
@@ -5291,56 +5437,6 @@ function apiHeadersInterceptor(req, next) {
5291
5437
  return next(req);
5292
5438
  }
5293
5439
 
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
5440
  /**
5345
5441
  * An HTTP interceptor to append an Authorization header with a Bearer token
5346
5442
  * to outgoing HTTP requests if certain conditions are met.
@@ -5490,5 +5586,5 @@ const xmlHeaders = (format = 'object') => {
5490
5586
  * Generated bundle index. Do not edit.
5491
5587
  */
5492
5588
 
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, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
5589
+ 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
5590
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map