@experteam-mx/ngx-services 18.3.1 → 18.3.4

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.
Files changed (37) hide show
  1. package/esm2022/lib/apis/api-companies.service.mjs +3 -3
  2. package/esm2022/lib/apis/api-invoices.service.mjs +14 -4
  3. package/esm2022/lib/apis/api-open-items.service.mjs +62 -0
  4. package/esm2022/lib/apis/api-reports.service.mjs +40 -4
  5. package/esm2022/lib/apis/api-security.service.mjs +15 -4
  6. package/esm2022/lib/apis/api-shipments.service.mjs +14 -4
  7. package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
  8. package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +2 -0
  9. package/esm2022/lib/apis/models/api-open-items.types.mjs +2 -0
  10. package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
  11. package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
  12. package/esm2022/lib/apis/models/api-security.types.mjs +1 -1
  13. package/esm2022/lib/apis/models/api-shipments.types.mjs +1 -1
  14. package/esm2022/lib/cypher/crypto.service.mjs +3 -3
  15. package/esm2022/lib/interceptors/api-headers.interceptor.mjs +3 -3
  16. package/esm2022/lib/interceptors/api-token.interceptor.mjs +3 -3
  17. package/esm2022/lib/interceptors/http-caching.interceptor.mjs +3 -3
  18. package/esm2022/lib/ngx-services.models.mjs +1 -1
  19. package/esm2022/lib/ngx-services.module.mjs +4 -4
  20. package/esm2022/public-api.mjs +4 -1
  21. package/fesm2022/experteam-mx-ngx-services.mjs +157 -32
  22. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  23. package/lib/apis/api-invoices.service.d.ts +9 -2
  24. package/lib/apis/api-open-items.service.d.ts +41 -0
  25. package/lib/apis/api-reports.service.d.ts +17 -1
  26. package/lib/apis/api-security.service.d.ts +8 -1
  27. package/lib/apis/api-shipments.service.d.ts +9 -2
  28. package/lib/apis/models/api-invoices.types.d.ts +29 -0
  29. package/lib/apis/models/api-open-items.interfaces.d.ts +32 -0
  30. package/lib/apis/models/api-open-items.types.d.ts +58 -0
  31. package/lib/apis/models/api-reports.interfaces.d.ts +149 -0
  32. package/lib/apis/models/api-reports.types.d.ts +11 -1
  33. package/lib/apis/models/api-security.types.d.ts +4 -0
  34. package/lib/apis/models/api-shipments.types.d.ts +41 -0
  35. package/lib/ngx-services.models.d.ts +1 -0
  36. package/package.json +1 -1
  37. package/public-api.d.ts +3 -0
@@ -5,6 +5,7 @@ export * from './lib/ngx-services.module';
5
5
  // api services
6
6
  export * from './lib/apis/api-companies.service';
7
7
  export * from './lib/apis/api-invoices.service';
8
+ export * from './lib/apis/api-open-items.service';
8
9
  export * from './lib/apis/api-reports.service';
9
10
  export * from './lib/apis/api-security.service';
10
11
  export * from './lib/apis/api-shipments.service';
@@ -13,6 +14,8 @@ export * from './lib/apis/models/api-companies.interfaces';
13
14
  export * from './lib/apis/models/api-companies.types';
14
15
  export * from './lib/apis/models/api-invoices.interfaces';
15
16
  export * from './lib/apis/models/api-invoices.types';
17
+ export * from './lib/apis/models/api-open-items.interfaces';
18
+ export * from './lib/apis/models/api-open-items.types';
16
19
  export * from './lib/apis/models/api-reports.interfaces';
17
20
  export * from './lib/apis/models/api-security.interfaces';
18
21
  export * from './lib/apis/models/api-security.types';
@@ -26,4 +29,4 @@ export * from './lib/interceptors/api-token.interceptor';
26
29
  export * from './lib/interceptors/http-caching.interceptor';
27
30
  // helpers
28
31
  export * from './lib/helpers/http';
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2V4cGVydGVhbS1teC9uZ3gtc2VydmljZXMvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxjQUFjLDJCQUEyQixDQUFB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= i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: NgxServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
29
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: NgxServicesModule });
30
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: NgxServicesModule, providers: [provideHttpClient()] });
28
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NgxServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
29
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: NgxServicesModule });
30
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NgxServicesModule, providers: [provideHttpClient()] });
31
31
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: NgxServicesModule, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NgxServicesModule, decorators: [{
33
33
  type: NgModule,
34
34
  args: [{
35
35
  providers: [provideHttpClient()]
@@ -351,10 +351,10 @@ class ApiCompaniesService {
351
351
  params: httpParams(params),
352
352
  }).pipe(map(({ data }) => data));
353
353
  }
354
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiCompaniesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
355
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
354
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCompaniesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
355
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
356
356
  }
357
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiCompaniesService, decorators: [{
357
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCompaniesService, decorators: [{
358
358
  type: Injectable,
359
359
  args: [{
360
360
  providedIn: 'root'
@@ -379,6 +379,16 @@ class ApiInvoicesService {
379
379
  get url() {
380
380
  return this.environments.apiInvoicesUrl;
381
381
  }
382
+ /**
383
+ * Sends an operation document to the server and processes the response.
384
+ *
385
+ * @param {OperationDocumentIn} body - The input data for the operation document.
386
+ * @return {Observable<OperationDocumentOut>} An observable containing the processed operation document output.
387
+ */
388
+ operationDocument(body) {
389
+ return this.http.post(`${this.url}/operation/document`, body)
390
+ .pipe(map(({ data }) => data));
391
+ }
382
392
  /**
383
393
  * Fetches and returns the collection receipt data for a given collection ID.
384
394
  *
@@ -421,10 +431,68 @@ class ApiInvoicesService {
421
431
  return this.http.post(`${this.url}/operation/cancel-billing/${invoiceId}`, body)
422
432
  .pipe(map(({ data }) => data));
423
433
  }
424
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiInvoicesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
425
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
434
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiInvoicesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
435
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
436
+ }
437
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiInvoicesService, decorators: [{
438
+ type: Injectable,
439
+ args: [{
440
+ providedIn: 'root'
441
+ }]
442
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
443
+ type: Inject,
444
+ args: ['env']
445
+ }] }, { type: i1.HttpClient }] });
446
+
447
+ class ApiOpenItemsService {
448
+ environments;
449
+ http;
450
+ constructor(environments, http) {
451
+ this.environments = environments;
452
+ this.http = http;
453
+ }
454
+ /**
455
+ * Retrieves the API URL for open-items from the environments' configuration.
456
+ *
457
+ * @return {string} The API URL for open-items.
458
+ */
459
+ get url() {
460
+ return this.environments.apiOpenItemsUrl;
461
+ }
462
+ /**
463
+ * Retrieves a list of open-items based on the provided query parameters.
464
+ *
465
+ * @param {QueryParams} params - The parameters to use for querying open-items.
466
+ * @return {Observable<OpenItemsOut>} An observable that emits the open-item's data.
467
+ */
468
+ getOpenItems(params) {
469
+ return this.http.get(`${this.url}/open-items`, { params })
470
+ .pipe(map(({ data }) => data));
471
+ }
472
+ /**
473
+ * Processes a payment for an open item.
474
+ *
475
+ * @param {PaymentOpenItemIn} body - The payment details for the open item.
476
+ * @return {Observable<PaymentOpenItemOut>} An observable that emits the result of the payment processing.
477
+ */
478
+ paymentOpenItem(body) {
479
+ return this.http.post(`${this.url}/payment`, body)
480
+ .pipe(map(({ data }) => data));
481
+ }
482
+ /**
483
+ * Processes a payment for other invoice.
484
+ *
485
+ * @param {PaymentOtherInvoiceIn} body - The payment details for the other invoice.
486
+ * @return {Observable<PaymentOtherInvoiceOut>} An observable that emits the result of the payment processing.
487
+ */
488
+ paymentOtherInvoice(body) {
489
+ return this.http.post(`${this.url}/other-invoices`, body)
490
+ .pipe(map(({ data }) => data));
491
+ }
492
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiOpenItemsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
493
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiOpenItemsService, providedIn: 'root' });
426
494
  }
427
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiInvoicesService, decorators: [{
495
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiOpenItemsService, decorators: [{
428
496
  type: Injectable,
429
497
  args: [{
430
498
  providedIn: 'root'
@@ -460,10 +528,46 @@ class ApiReportsService {
460
528
  params
461
529
  }).pipe(map(({ data }) => data));
462
530
  }
463
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiReportsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
464
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
531
+ /**
532
+ * Fetches the list of shipments with pending payments.
533
+ *
534
+ * @param {ExistPendingPaymentsIn} params - The parameters to filter pending payment shipments.
535
+ * @return {Observable<ShipmentsReportOut>} An observable emitting the shipments report data.
536
+ */
537
+ shipmentsPendingPayments(params) {
538
+ return this.http.get(`${this.url}/shipments-report`, {
539
+ params: {
540
+ ...params,
541
+ limit: 1,
542
+ offset: 0,
543
+ to_landing: true,
544
+ shipment_status_code: 'PMPEN',
545
+ },
546
+ }).pipe(map(({ data }) => data));
547
+ }
548
+ /**
549
+ * Fetches shipment reports that are pending invoices based on the specified parameters.
550
+ * This method retrieves a filtered list of shipments with pending invoice statuses.
551
+ *
552
+ * @param {ExistPendingInvoicesIn} params - The parameters to filter the pending invoices, including
553
+ * shipment status codes, and pagination options.
554
+ * @return {Observable<ShipmentsReportOut>} An observable that emits the shipment report data based on the filter criteria.
555
+ */
556
+ shipmentsPendingInvoices(params) {
557
+ return this.http.get(`${this.url}/shipments-report`, {
558
+ params: {
559
+ ...params,
560
+ limit: 1,
561
+ offset: 0,
562
+ to_landing: true,
563
+ 'shipment_status_code[in]': 'IPMPE,IMPEN,IPPEN',
564
+ },
565
+ }).pipe(map(({ data }) => data));
566
+ }
567
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiReportsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
568
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
465
569
  }
466
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiReportsService, decorators: [{
570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiReportsService, decorators: [{
467
571
  type: Injectable,
468
572
  args: [{
469
573
  providedIn: 'root'
@@ -586,6 +690,17 @@ class ApiSecurityService {
586
690
  language_id: languageId
587
691
  }).pipe(map(({ data }) => data));
588
692
  }
693
+ /**
694
+ * Retrieves a list of roles with their permissions.
695
+ *
696
+ * @param {QueryParams} params - The query parameters to filter the roles.
697
+ * @returns {Observable<RolePermissionsIn[]>} An observable that emits an array of role permissions.
698
+ */
699
+ getRoles(params) {
700
+ return this.http.get(`${this.url}/roles`, {
701
+ params
702
+ }).pipe(map(({ data }) => data));
703
+ }
589
704
  /**
590
705
  * Retrieves the role types from the API.
591
706
  *
@@ -649,10 +764,10 @@ class ApiSecurityService {
649
764
  return this.http.delete(`${this.url}/roles/${id}`)
650
765
  .pipe(map(({ data }) => data));
651
766
  }
652
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiSecurityService, deps: [{ token: 'env' }, { token: i1$1.CookieService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
653
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiSecurityService, providedIn: 'root' });
767
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiSecurityService, deps: [{ token: 'env' }, { token: i1$1.CookieService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
768
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiSecurityService, providedIn: 'root' });
654
769
  }
655
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiSecurityService, decorators: [{
770
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiSecurityService, decorators: [{
656
771
  type: Injectable,
657
772
  args: [{
658
773
  providedIn: 'root'
@@ -688,10 +803,20 @@ class ApiShipmentsService {
688
803
  return this.http.post(`${this.url}/accounts`, body)
689
804
  .pipe(map(({ data }) => data));
690
805
  }
691
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiShipmentsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
692
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
806
+ /**
807
+ * Sends a POST request to the shipments manifest endpoint with the provided body.
808
+ *
809
+ * @param body - The request payload of type `ManifestMultipleIn`.
810
+ * @returns An observable that emits the response data of type `ManifestMultipleOut`.
811
+ */
812
+ manifestMultiple(body) {
813
+ return this.http.post(`${this.url}/shipments/manifest`, body)
814
+ .pipe(map(({ data }) => data));
815
+ }
816
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiShipmentsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
817
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
693
818
  }
694
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiShipmentsService, decorators: [{
819
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiShipmentsService, decorators: [{
695
820
  type: Injectable,
696
821
  args: [{
697
822
  providedIn: 'root'
@@ -779,10 +904,10 @@ class CryptoService {
779
904
  }
780
905
  return bytes.buffer;
781
906
  }
782
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CryptoService, deps: [{ token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
783
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CryptoService, providedIn: 'root' });
907
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CryptoService, deps: [{ token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
908
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CryptoService, providedIn: 'root' });
784
909
  }
785
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CryptoService, decorators: [{
910
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CryptoService, decorators: [{
786
911
  type: Injectable,
787
912
  args: [{
788
913
  providedIn: 'root'
@@ -820,10 +945,10 @@ class ApiHeadersInterceptor {
820
945
  request = request.clone({ headers });
821
946
  return next.handle(request);
822
947
  }
823
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiHeadersInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
824
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiHeadersInterceptor });
948
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiHeadersInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
949
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiHeadersInterceptor });
825
950
  }
826
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiHeadersInterceptor, decorators: [{
951
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiHeadersInterceptor, decorators: [{
827
952
  type: Injectable
828
953
  }] });
829
954
 
@@ -856,10 +981,10 @@ class ApiTokenInterceptor {
856
981
  });
857
982
  return next.handle(request);
858
983
  }
859
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiTokenInterceptor, deps: [{ token: 'env' }, { token: i1$1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
860
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiTokenInterceptor });
984
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiTokenInterceptor, deps: [{ token: 'env' }, { token: i1$1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
985
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiTokenInterceptor });
861
986
  }
862
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiTokenInterceptor, decorators: [{
987
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiTokenInterceptor, decorators: [{
863
988
  type: Injectable
864
989
  }], ctorParameters: () => [{ type: undefined, decorators: [{
865
990
  type: Inject,
@@ -901,10 +1026,10 @@ class HttpCachingInterceptor {
901
1026
  this.cache.set(req.urlWithParams, { res, ttl });
902
1027
  }));
903
1028
  }
904
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: HttpCachingInterceptor, deps: [{ token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
905
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: HttpCachingInterceptor });
1029
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: HttpCachingInterceptor, deps: [{ token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
1030
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: HttpCachingInterceptor });
906
1031
  }
907
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: HttpCachingInterceptor, decorators: [{
1032
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: HttpCachingInterceptor, decorators: [{
908
1033
  type: Injectable
909
1034
  }], ctorParameters: () => [{ type: undefined, decorators: [{
910
1035
  type: Inject,
@@ -919,5 +1044,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
919
1044
  * Generated bundle index. Do not edit.
920
1045
  */
921
1046
 
922
- export { ApiCompaniesService, ApiHeadersInterceptor, ApiInvoicesService, ApiReportsService, ApiSecurityService, ApiShipmentsService, ApiTokenInterceptor, CryptoService, HttpCachingInterceptor, NgxServicesModule, httpParams, pdfHeaders, queryString, xmlHeaders };
1047
+ export { ApiCompaniesService, ApiHeadersInterceptor, ApiInvoicesService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiShipmentsService, ApiTokenInterceptor, CryptoService, HttpCachingInterceptor, NgxServicesModule, httpParams, pdfHeaders, queryString, xmlHeaders };
923
1048
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map