ngx-vector-components 6.15.1 → 6.16.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.
@@ -1,6 +1,7 @@
1
1
  import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
2
  import { MessageService } from 'primeng/api';
3
3
  import { Observable } from 'rxjs';
4
+ import { AppName } from '../models';
4
5
  import { AuthService, ErrorMessageService, LoadingService, StorageService } from '../services';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class HttpInterceptorProvider implements HttpInterceptor {
@@ -10,10 +11,11 @@ export declare class HttpInterceptorProvider implements HttpInterceptor {
10
11
  private authService;
11
12
  private messageService;
12
13
  private environment;
14
+ private appName;
13
15
  private activeRequests;
14
16
  private isRefreshing;
15
17
  private refreshTokenSubject;
16
- constructor(storageService: StorageService, errorMessageService: ErrorMessageService, loadingService: LoadingService, authService: AuthService, messageService: MessageService, environment: any);
18
+ constructor(storageService: StorageService, errorMessageService: ErrorMessageService, loadingService: LoadingService, authService: AuthService, messageService: MessageService, environment: any, appName?: AppName | null);
17
19
  intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
18
20
  private isRefreshTokenRequest;
19
21
  private getUrlWithoutParams;
@@ -21,11 +23,21 @@ export declare class HttpInterceptorProvider implements HttpInterceptor {
21
23
  private addModifierIdIfPresent;
22
24
  private addEncryptPasswordIfPresent;
23
25
  private addAccountUuidIfPresent;
26
+ /**
27
+ * Marca a origem da request pro backend: `x-client-platform: web` (+ `x-client` com o nome do
28
+ * frontend), pro backend distinguir web de app nativo (ver helper IsFromApp() no VectioCargo.Shared).
29
+ *
30
+ * So nas chamadas do nosso backend; ignora URL externa (header `external-url`) e assets — nao
31
+ * vaza o header p/ APIs de terceiros. Header e spoofavel: telemetria/roteamento/log, NAO
32
+ * controle de seguranca.
33
+ */
34
+ private addClientHeaders;
35
+ private getClientName;
24
36
  private addContentType;
25
37
  private fixUrl;
26
38
  private isAuthRequest;
27
39
  private isProfilesRequest;
28
40
  private handle401Error;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpInterceptorProvider, never>;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpInterceptorProvider, [null, null, null, null, null, null, { optional: true; }]>;
30
42
  static ɵprov: i0.ɵɵInjectableDeclaration<HttpInterceptorProvider>;
31
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-vector-components",
3
- "version": "6.15.1",
3
+ "version": "6.16.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^19.2.0",
6
6
  "@angular/cdk": "^19.2.0",