vc-error-handlers 1.0.1 → 9.0.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/package.json CHANGED
@@ -1,26 +1,27 @@
1
1
  {
2
2
  "name": "vc-error-handlers",
3
- "version": "1.0.1",
3
+ "version": "9.0.0",
4
4
  "peerDependencies": {
5
- "@angular/common": " 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x",
6
- "@angular/core": "13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x"
5
+ "@angular/common": " 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x || 21.x || 22.x || 23.x || 24.x ",
6
+ "@angular/core": "13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x || 21.x || 22.x || 23.x || 24.x"
7
7
  },
8
8
  "publishConfig": {
9
9
  "access": "public",
10
10
  "registry": "https://registry.npmjs.org/"
11
11
  },
12
12
  "module": "fesm2022/vc-error-handlers.mjs",
13
- "typings": "index.d.ts",
13
+ "typings": "types/vc-error-handlers.d.ts",
14
14
  "exports": {
15
15
  "./package.json": {
16
16
  "default": "./package.json"
17
17
  },
18
18
  ".": {
19
- "types": "./index.d.ts",
19
+ "types": "./types/vc-error-handlers.d.ts",
20
20
  "default": "./fesm2022/vc-error-handlers.mjs"
21
21
  }
22
22
  },
23
23
  "sideEffects": false,
24
+ "type": "module",
24
25
  "dependencies": {
25
26
  "tslib": "^2.3.0"
26
27
  }
@@ -0,0 +1,543 @@
1
+ import * as i0 from "@angular/core";
2
+ import { AfterViewInit, ApplicationRef, ChangeDetectorRef, ComponentRef, ElementRef, EnvironmentInjector, EventEmitter, InjectionToken, Injector, ModuleWithProviders, OnDestroy, OnInit, Renderer2, TemplateRef, Type, ViewContainerRef } from "@angular/core";
3
+ import { HttpClient, HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpParams, HttpRequest, HttpResponse } from "@angular/common/http";
4
+ import { ActivatedRoute, Router } from "@angular/router";
5
+ import { Observable, Subject, Subscription } from "rxjs";
6
+ import { AuthorizerService } from "@vcomply/authorizer";
7
+ import { BrowserOptions } from "@sentry/browser";
8
+ import * as i3 from "@angular/common";
9
+ export declare class VcErrorHandlersService {
10
+ constructor();
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<VcErrorHandlersService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
13
+ }
14
+ declare class SnackBarService {
15
+ snackbarSubject: Subject<any>;
16
+ snackbarState: import("rxjs").Observable<any>;
17
+ constructor();
18
+ show(message: string, type?: 'success' | 'warning' | 'info' | 'alert' | 'error'): void;
19
+ hide(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
22
+ }
23
+ declare class UtilsService {
24
+ private isJsonSubset;
25
+ extractQueryParams(params: HttpParams): {
26
+ [key: string]: any;
27
+ };
28
+ isStringEqual(apiMethod: string, requestMethod: string): boolean;
29
+ isSubstringInString(apiPath: string, requestPath: string): boolean;
30
+ isSubsetOfObject(apiQuery: any, requestQuery: any): boolean;
31
+ isSubsetOfArray(apiBody: any, requestBody: any): boolean;
32
+ isValueInArray(apiPageCodes: string[], pageCode: string): boolean;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
34
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
35
+ }
36
+ export declare class GlobalErrorService {
37
+ private snackBarService;
38
+ private utilService;
39
+ private router;
40
+ globalError$: Subject<any>;
41
+ localError$: Subject<any>;
42
+ private pageLevelApiConfig;
43
+ private componentLevelApiConfig;
44
+ private excludeApiConfig;
45
+ constructor(snackBarService: SnackBarService, utilService: UtilsService, router: Router);
46
+ handleSoftErrors(event: HttpResponse<any> | HttpErrorResponse): void;
47
+ handleError(error: HttpErrorResponse, request: HttpRequest<any>): void;
48
+ isServerError(error: HttpErrorResponse): boolean;
49
+ isExcludeErrorHandling(request: HttpRequest<any>): boolean;
50
+ private isUnauthenticated;
51
+ private isUnauthorizedAccess;
52
+ private isNetworkUnavailable;
53
+ private handleServerError;
54
+ private publishGlobalError;
55
+ private publishLocalError;
56
+ private isPageLevelError;
57
+ private isComponentLevelError;
58
+ private getPageCode;
59
+ private isApiConfigMatching;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<GlobalErrorService, never>;
61
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
62
+ }
63
+ export declare class RouterService {
64
+ baseUrl: string;
65
+ constructor();
66
+ private setBaseUrl;
67
+ redirectToLogin(): void;
68
+ redirectToHome(module_name: string): void;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouterService, never>;
70
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
71
+ }
72
+ declare class Configurations {
73
+ sentryConfig: any;
74
+ envConfig: any;
75
+ isErrorInterceptorEnabled?: boolean;
76
+ constructor();
77
+ }
78
+ declare class FeatureFlagService {
79
+ private http;
80
+ private authorizer;
81
+ environment: any;
82
+ flagFetchError: boolean;
83
+ featuresMap: any;
84
+ AWSFlags: any;
85
+ flagSubscription: Subscription;
86
+ constructor(http: HttpClient, authorizer: AuthorizerService, config?: Configurations);
87
+ fetchFlags(): import("rxjs").Observable<Object>;
88
+ loadConfig(): Promise<unknown>;
89
+ buildFeatureFlags(orgId: any): void;
90
+ isFeatureEnabled(featureFlag: string): any;
91
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeatureFlagService, [null, null, {
92
+ optional: true;
93
+ }]>;
94
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
95
+ }
96
+ export declare class VcErrorHandlersComponent implements OnInit, OnDestroy {
97
+ private errorService;
98
+ private snackBarService;
99
+ private featureFlagService;
100
+ private errorConfig;
101
+ unauthorized: boolean;
102
+ sessionExpired: boolean;
103
+ chunkUnavailable: boolean;
104
+ serverError: boolean;
105
+ isOnline: boolean;
106
+ disableSnackBar: boolean;
107
+ feature: FeatureFlagService;
108
+ constructor(errorService: GlobalErrorService, snackBarService: SnackBarService, featureFlagService: FeatureFlagService);
109
+ ngOnInit(): void;
110
+ ngOnDestroy(): void;
111
+ private subscribeGlobalError;
112
+ private handleError;
113
+ private subscribeNetworkDetection;
114
+ private onNetworkOnline;
115
+ private onNetworkOffline;
116
+ private handleNetworkError;
117
+ private showOfflineSnackBar;
118
+ private hideSnackBar;
119
+ static ɵfac: i0.ɵɵFactoryDeclaration<VcErrorHandlersComponent, never>;
120
+ static ɵcmp: i0.ɵɵComponentDeclaration<VcErrorHandlersComponent, "lib-vc-error-handlers", never, {
121
+ "disableSnackBar": {
122
+ "alias": "disableSnackBar";
123
+ "required": false;
124
+ };
125
+ "feature": {
126
+ "alias": "feature";
127
+ "required": false;
128
+ };
129
+ }, {}, never, never, false, never>;
130
+ }
131
+ export declare class PageNotFoundComponent {
132
+ private route;
133
+ private routerService;
134
+ errorConfig: {
135
+ imageUrl: string;
136
+ title: string;
137
+ description: string;
138
+ details: string;
139
+ buttonText: string;
140
+ };
141
+ VcomplyLogo: string;
142
+ altImageText: {
143
+ ERROR_IMAGE: string;
144
+ VCOMPLY_LOGO: string;
145
+ };
146
+ currentYear: number;
147
+ organisationName: string;
148
+ defaultURL: string;
149
+ constructor(route: ActivatedRoute, routerService: RouterService);
150
+ redirectToDashboard(): void;
151
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageNotFoundComponent, never>;
152
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageNotFoundComponent, "lib-vc-error-page-not-found", never, {}, {}, never, never, false, never>;
153
+ }
154
+ export declare class UnauthorizedComponent {
155
+ private route;
156
+ private routerService;
157
+ constructor(route: ActivatedRoute, routerService: RouterService);
158
+ currentYear: number;
159
+ errorConfig: {
160
+ imageUrl: string;
161
+ title: string;
162
+ description: string;
163
+ details: string;
164
+ email: string;
165
+ support: string;
166
+ buttonText: string;
167
+ mail: string;
168
+ };
169
+ VcomplyLogo: string;
170
+ altImageText: {
171
+ ERROR_IMAGE: string;
172
+ VCOMPLY_LOGO: string;
173
+ };
174
+ organisationName: string;
175
+ defaultURL: string;
176
+ redirectToDashboard(): void;
177
+ static ɵfac: i0.ɵɵFactoryDeclaration<UnauthorizedComponent, never>;
178
+ static ɵcmp: i0.ɵɵComponentDeclaration<UnauthorizedComponent, "lib-vc-error-unauthorized", never, {}, {}, never, never, false, never>;
179
+ }
180
+ declare class InsertionDirective {
181
+ viewContainerRef: ViewContainerRef;
182
+ constructor(viewContainerRef: ViewContainerRef);
183
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsertionDirective, never>;
184
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsertionDirective, "[appInsertion]", never, {}, {}, never, never, false, never>;
185
+ }
186
+ declare class DialogRef {
187
+ private readonly afterDialogClosed;
188
+ afterClosed: Observable<any>;
189
+ constructor();
190
+ close(result?: any): void;
191
+ }
192
+ declare class DialogConfig<D = any> {
193
+ data?: D;
194
+ position?: any;
195
+ background?: any;
196
+ pointer?: any;
197
+ }
198
+ declare class DialogComponent implements AfterViewInit, OnDestroy, OnInit {
199
+ private cd;
200
+ private dialogRef;
201
+ config: DialogConfig;
202
+ private router;
203
+ componentRef: ComponentRef<any>;
204
+ position: any;
205
+ background: any;
206
+ pointer: any;
207
+ insertionPoint: InsertionDirective;
208
+ animation: boolean;
209
+ private readonly onDialogClose;
210
+ onClose: import("rxjs").Observable<any>;
211
+ childComponentType: Type<any>;
212
+ constructor(cd: ChangeDetectorRef, dialogRef: DialogRef, config: DialogConfig, router: Router);
213
+ ngOnInit(): void;
214
+ routeAction(): void;
215
+ ngAfterViewInit(): void;
216
+ onOverlayClicked(evt: MouseEvent): void;
217
+ onDialogClicked(evt: MouseEvent): void;
218
+ loadChildComponent(componentType: Type<any>): void;
219
+ ngOnDestroy(): void;
220
+ close(data?: any): void;
221
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
222
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "app-dialog", never, {}, {}, never, never, false, never>;
223
+ }
224
+ declare class DialogService {
225
+ private appRef;
226
+ private injector;
227
+ private environmentInjector;
228
+ dialogComponentRef: ComponentRef<DialogComponent>;
229
+ constructor(appRef: ApplicationRef, injector: Injector, environmentInjector: EnvironmentInjector);
230
+ open(componentType: Type<any>, config: DialogConfig): DialogRef;
231
+ private appendDialogComponentToBody;
232
+ private removeDialogComponentFromBody;
233
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
234
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
235
+ }
236
+ export declare class ChunkUnavailableComponent implements OnInit {
237
+ private dialogService;
238
+ errorConfig: {
239
+ heading: string;
240
+ description: string;
241
+ buttonText: string;
242
+ };
243
+ errorType: {
244
+ CHUNK_NOT_FOUND: string;
245
+ SESSION_EXPIRED: string;
246
+ };
247
+ constructor(dialogService: DialogService);
248
+ ngOnInit(): void;
249
+ private openSessionExpiredModal;
250
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChunkUnavailableComponent, never>;
251
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChunkUnavailableComponent, "lib-vc-error-chunk-unavailable", never, {}, {}, never, never, false, never>;
252
+ }
253
+ export declare class ServerErrorComponent {
254
+ errorConfig: {
255
+ imageUrl: string;
256
+ title: string;
257
+ description: string;
258
+ details: string;
259
+ buttonText: string;
260
+ snackBarMessage: string;
261
+ };
262
+ VcomplyLogo: string;
263
+ altImageText: {
264
+ ERROR_IMAGE: string;
265
+ VCOMPLY_LOGO: string;
266
+ };
267
+ refreshPage(): void;
268
+ static ɵfac: i0.ɵɵFactoryDeclaration<ServerErrorComponent, never>;
269
+ static ɵcmp: i0.ɵɵComponentDeclaration<ServerErrorComponent, "lib-vc-error-server-error", never, {}, {}, never, never, false, never>;
270
+ }
271
+ export declare class SessionExpiredComponent implements OnInit {
272
+ private dialogService;
273
+ errorConfig: {
274
+ heading: string;
275
+ description: string;
276
+ buttonText: string;
277
+ };
278
+ errorTypes: {
279
+ CHUNK_NOT_FOUND: string;
280
+ SESSION_EXPIRED: string;
281
+ };
282
+ constructor(dialogService: DialogService);
283
+ ngOnInit(): void;
284
+ private openSessionExpiredModal;
285
+ static ɵfac: i0.ɵɵFactoryDeclaration<SessionExpiredComponent, never>;
286
+ static ɵcmp: i0.ɵɵComponentDeclaration<SessionExpiredComponent, "lib-vc-error-session-expired", never, {}, {}, never, never, false, never>;
287
+ }
288
+ declare const VCOMPLY_LOGO_URL: string;
289
+ declare const API_TIMEOUT_TIME: number;
290
+ declare const ORGANISATION_NAME = "VCOMPLY TECHNOLOGIES, INC.";
291
+ declare const ERROR_FEATURE_FLAG = "ff_error_handling";
292
+ declare const ERROR_CONFIG: {
293
+ PAGE_NOT_FOUND: {
294
+ imageUrl: string;
295
+ title: string;
296
+ description: string;
297
+ details: string;
298
+ buttonText: string;
299
+ };
300
+ UNAUTHORIZED: {
301
+ imageUrl: string;
302
+ title: string;
303
+ description: string;
304
+ details: string;
305
+ email: string;
306
+ support: string;
307
+ buttonText: string;
308
+ mail: string;
309
+ };
310
+ SESSION_EXPIRED: {
311
+ heading: string;
312
+ description: string;
313
+ buttonText: string;
314
+ };
315
+ CHUNK_UNAVAILABLE: {
316
+ heading: string;
317
+ description: string;
318
+ buttonText: string;
319
+ };
320
+ SERVER_ERROR: {
321
+ imageUrl: string;
322
+ title: string;
323
+ description: string;
324
+ details: string;
325
+ buttonText: string;
326
+ snackBarMessage: string;
327
+ };
328
+ COMPONENT_LEVEL_SERVER_ERROR: {
329
+ imageUrl: string;
330
+ title: string;
331
+ description: string;
332
+ details: string;
333
+ buttonText: string;
334
+ };
335
+ NETWORK_UNAVAILABLE: {
336
+ offlineMessage: string;
337
+ };
338
+ };
339
+ declare const REDIRECTION_URL: {
340
+ COMPLIANCE_DASHBOARD: string;
341
+ RISK_DASHBOARD: string;
342
+ POLICY_DASHBOARD: string;
343
+ ISSUE_DASHBOARD: string;
344
+ CASEOPS_DASHBOARD: string;
345
+ DEFAULT: string;
346
+ };
347
+ declare const MODULE_NAMES: {
348
+ RISK: string;
349
+ POLICY: string;
350
+ ISSUE: string;
351
+ CASEOPS: string;
352
+ };
353
+ declare const MODAL_ERROR_TYPES: {
354
+ CHUNK_NOT_FOUND: string;
355
+ SESSION_EXPIRED: string;
356
+ };
357
+ declare const ALT_IMAGE_TEXT: {
358
+ ERROR_IMAGE: string;
359
+ VCOMPLY_LOGO: string;
360
+ };
361
+ interface DialogData {
362
+ heading: string;
363
+ description: string;
364
+ buttonText: string;
365
+ }
366
+ interface RequestDetails {
367
+ method: string;
368
+ path: string;
369
+ query: {
370
+ [key: string]: any;
371
+ };
372
+ body: any;
373
+ pageCode?: string;
374
+ }
375
+ declare enum ErrorStatusCode {
376
+ URLNotFound = 404,
377
+ UnauthorizedAccess = 403,
378
+ Unauthenticated = 401,
379
+ InternalServerError = 500,
380
+ ServiceUnavailable = 503,
381
+ BadGateway = 502,
382
+ RequestTimeout = 504,
383
+ NetworkUnavailable = 0,
384
+ JSChunkUnavailable = 600
385
+ }
386
+ type ModalErrorType = keyof typeof MODAL_ERROR_TYPES;
387
+ export declare class ErrorModalComponent {
388
+ private authService;
389
+ private dialogConfig;
390
+ private routerService;
391
+ errorTypes: {
392
+ CHUNK_NOT_FOUND: string;
393
+ SESSION_EXPIRED: string;
394
+ };
395
+ errorType: ModalErrorType | undefined;
396
+ data: DialogData;
397
+ constructor(authService: AuthorizerService, dialogConfig: DialogConfig, routerService: RouterService);
398
+ private setDataConfig;
399
+ onContinueAction(): void;
400
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorModalComponent, never>;
401
+ static ɵcmp: i0.ɵɵComponentDeclaration<ErrorModalComponent, "lib-vc-error-modal", never, {
402
+ "errorType": {
403
+ "alias": "errorType";
404
+ "required": false;
405
+ };
406
+ }, {}, never, never, false, never>;
407
+ }
408
+ export declare class ComponentLevelServerErrorComponent {
409
+ errorConfig: {
410
+ imageUrl: string;
411
+ title: string;
412
+ description: string;
413
+ details: string;
414
+ buttonText: string;
415
+ };
416
+ altImageText: {
417
+ ERROR_IMAGE: string;
418
+ VCOMPLY_LOGO: string;
419
+ };
420
+ onClick: EventEmitter<boolean>;
421
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComponentLevelServerErrorComponent, never>;
422
+ static ɵcmp: i0.ɵɵComponentDeclaration<ComponentLevelServerErrorComponent, "lib-vc-error-component-server-error", never, {}, {
423
+ "onClick": "onClick";
424
+ }, never, never, false, never>;
425
+ }
426
+ declare class DialogModule {
427
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
428
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, [typeof DialogComponent, typeof InsertionDirective], [typeof i3.CommonModule], [typeof DialogComponent]>;
429
+ static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
430
+ }
431
+ declare class FeatureFlagDirective implements OnInit {
432
+ private tpl;
433
+ private vcr;
434
+ private featureFlagService;
435
+ featureFlag: string;
436
+ constructor(tpl: TemplateRef<any>, vcr: ViewContainerRef, featureFlagService: FeatureFlagService);
437
+ ngOnInit(): void;
438
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeatureFlagDirective, never>;
439
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FeatureFlagDirective, "[featureFlag]", never, {
440
+ "featureFlag": {
441
+ "alias": "featureFlag";
442
+ "required": false;
443
+ };
444
+ }, {}, never, never, false, never>;
445
+ }
446
+ declare class FeatureFlagModule {
447
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeatureFlagModule, never>;
448
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FeatureFlagModule, [typeof FeatureFlagDirective], [typeof i3.CommonModule], [typeof FeatureFlagDirective]>;
449
+ static ɵinj: i0.ɵɵInjectorDeclaration<FeatureFlagModule>;
450
+ }
451
+ declare class SnackBarComponent implements OnInit, OnDestroy {
452
+ private snackbarService;
453
+ show: boolean;
454
+ message: string;
455
+ icon: string;
456
+ type: string;
457
+ icons: any;
458
+ snackbarSubscription: Subscription;
459
+ constructor(snackbarService: SnackBarService);
460
+ ngOnInit(): void;
461
+ setAutoClose(): void;
462
+ close(): void;
463
+ ngOnDestroy(): void;
464
+ static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarComponent, never>;
465
+ static ɵcmp: i0.ɵɵComponentDeclaration<SnackBarComponent, "app-snack-bar", never, {}, {}, never, never, false, never>;
466
+ }
467
+ declare class SnackBarModule {
468
+ static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarModule, never>;
469
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SnackBarModule, [typeof SnackBarComponent], [typeof i3.CommonModule], [typeof SnackBarComponent]>;
470
+ static ɵinj: i0.ɵɵInjectorDeclaration<SnackBarModule>;
471
+ }
472
+ declare class ToolTipDirective implements OnInit {
473
+ private el;
474
+ private renderer;
475
+ tooltipTitle: string;
476
+ placement: string;
477
+ type: any;
478
+ tooltipMandatory: boolean;
479
+ showTooltip: boolean;
480
+ animate: boolean;
481
+ tooltip: HTMLElement;
482
+ offset: number;
483
+ constructor(el: ElementRef, renderer: Renderer2);
484
+ ngOnInit(): void;
485
+ onMouseEnter(): void;
486
+ onMouseOver(): void;
487
+ onMouseLeave(): void;
488
+ onMouseOut(): void;
489
+ onClick(): void;
490
+ show(): void;
491
+ hide(): void;
492
+ create(): void;
493
+ setPosition(): void;
494
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolTipDirective, never>;
495
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ToolTipDirective, "[arTooltip]", never, {
496
+ "tooltipTitle": {
497
+ "alias": "arTooltip";
498
+ "required": false;
499
+ };
500
+ "placement": {
501
+ "alias": "placement";
502
+ "required": false;
503
+ };
504
+ "type": {
505
+ "alias": "type";
506
+ "required": false;
507
+ };
508
+ "tooltipMandatory": {
509
+ "alias": "tooltipMandatory";
510
+ "required": false;
511
+ };
512
+ "showTooltip": {
513
+ "alias": "showTooltip";
514
+ "required": false;
515
+ };
516
+ "animate": {
517
+ "alias": "animate";
518
+ "required": false;
519
+ };
520
+ }, {}, never, never, false, never>;
521
+ }
522
+ declare class TooltipModule {
523
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
524
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof ToolTipDirective], [typeof i3.CommonModule], [typeof ToolTipDirective]>;
525
+ static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
526
+ }
527
+ export declare const FOR_ROOT_SENTRY_OPTIONS_TOKEN: InjectionToken<BrowserOptions>;
528
+ export declare class VcErrorHandlersModule {
529
+ private loadConfig;
530
+ constructor(loadConfig: FeatureFlagService);
531
+ static forRoot(environmentConfig: Configurations): ModuleWithProviders<VcErrorHandlersModule>;
532
+ static ɵfac: i0.ɵɵFactoryDeclaration<VcErrorHandlersModule, never>;
533
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VcErrorHandlersModule, [typeof VcErrorHandlersComponent, typeof PageNotFoundComponent, typeof UnauthorizedComponent, typeof SessionExpiredComponent, typeof ChunkUnavailableComponent, typeof ServerErrorComponent, typeof ErrorModalComponent, typeof ComponentLevelServerErrorComponent], [typeof i3.CommonModule, typeof DialogModule, typeof FeatureFlagModule, typeof i3.NgOptimizedImage, typeof SnackBarModule, typeof TooltipModule], [typeof VcErrorHandlersComponent, typeof PageNotFoundComponent, typeof UnauthorizedComponent, typeof SessionExpiredComponent, typeof ChunkUnavailableComponent, typeof ServerErrorComponent, typeof ErrorModalComponent, typeof ComponentLevelServerErrorComponent]>;
534
+ static ɵinj: i0.ɵɵInjectorDeclaration<VcErrorHandlersModule>;
535
+ }
536
+ export declare class HttpReqInterceptor implements HttpInterceptor {
537
+ private errorService;
538
+ constructor(errorService: GlobalErrorService);
539
+ intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
540
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpReqInterceptor, never>;
541
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
542
+ }
543
+ export {};