@aakash58/chatbot 1.0.94 → 1.0.95

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/index.d.ts CHANGED
@@ -1,12 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, ElementRef, Renderer2, OnDestroy, SimpleChanges, RendererFactory2, OnInit, OnChanges, TrackByFunction, EventEmitter, AfterViewInit, AfterContentInit, QueryList, EnvironmentProviders } from '@angular/core';
3
- export { provideAppInitializer } from '@angular/core';
4
3
  import { OverlayContainer } from '@angular/cdk/overlay';
5
4
  import { MatDialogRef, MatDialog } from '@angular/material/dialog';
6
5
  import { Observable } from 'rxjs';
7
- export { bootstrapApplication } from '@angular/platform-browser';
8
- import { HttpClient, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
9
- export { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
6
+ import { HttpClient } from '@angular/common/http';
10
7
  import { JwtHelperService } from '@auth0/angular-jwt';
11
8
  import { Router } from '@angular/router';
12
9
 
@@ -483,67 +480,6 @@ declare class DropdownMenu implements AfterContentInit {
483
480
  declare function initializeDoohbotApp(): () => Promise<any>;
484
481
  declare function provideDoohbot(): EnvironmentProviders;
485
482
 
486
- declare class AuthResult {
487
- access_token: string;
488
- refresh_token: string;
489
- }
490
-
491
- declare class CryptoHelperService {
492
- private encoder;
493
- private decoder;
494
- private secretKey;
495
- setSecretKey(key: string): void;
496
- private getKey;
497
- encrypt(value: string): Promise<string | null>;
498
- decrypt(value: string): Promise<string | null>;
499
- static ɵfac: i0.ɵɵFactoryDeclaration<CryptoHelperService, never>;
500
- static ɵprov: i0.ɵɵInjectableDeclaration<CryptoHelperService>;
501
- }
502
-
503
- declare global {
504
- interface Window {
505
- storageEventAdded?: boolean;
506
- tabCLoseEventAdded?: boolean;
507
- }
508
- }
509
- declare class AuthService {
510
- private router;
511
- private http;
512
- private cryptoHelper;
513
- apiUrl: string;
514
- storageKey: string;
515
- secretKey: string;
516
- companyCode: string;
517
- jwtHelper: JwtHelperService;
518
- constructor(router: Router, http: HttpClient, cryptoHelper: CryptoHelperService);
519
- logout(): Observable<boolean>;
520
- setSession(session: AuthResult): void;
521
- setLocalStorage(key: string, value: any): void;
522
- getLocalStorage(key: string): any;
523
- isAuthenticated(): boolean;
524
- isTokenExpired(): boolean;
525
- encrypt(value: string): any;
526
- decrypt(value: string): string | null;
527
- clearAuth(): void;
528
- clearSession(): void;
529
- clearTabInfo(): void;
530
- clearStorage(): void;
531
- clearCache(): void;
532
- getUserId(): any;
533
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
534
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
535
- }
536
-
537
- declare class AuthInterceptor implements HttpInterceptor {
538
- private auth;
539
- constructor(auth: AuthService);
540
- intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
541
- sendRequest(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
542
- getRequestWithHeaders(req: HttpRequest<any>): any;
543
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthInterceptor, never>;
544
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthInterceptor>;
545
- }
546
-
547
483
  /**
548
484
  * Response from chat API
549
485
  */
@@ -621,6 +557,57 @@ declare class ChatbotApiService {
621
557
  static ɵprov: i0.ɵɵInjectableDeclaration<ChatbotApiService>;
622
558
  }
623
559
 
560
+ declare class AuthResult {
561
+ access_token: string;
562
+ refresh_token: string;
563
+ }
564
+
565
+ declare class CryptoHelperService {
566
+ private encoder;
567
+ private decoder;
568
+ private secretKey;
569
+ setSecretKey(key: string): void;
570
+ private getKey;
571
+ encrypt(value: string): Promise<string | null>;
572
+ decrypt(value: string): Promise<string | null>;
573
+ static ɵfac: i0.ɵɵFactoryDeclaration<CryptoHelperService, never>;
574
+ static ɵprov: i0.ɵɵInjectableDeclaration<CryptoHelperService>;
575
+ }
576
+
577
+ declare global {
578
+ interface Window {
579
+ storageEventAdded?: boolean;
580
+ tabCLoseEventAdded?: boolean;
581
+ }
582
+ }
583
+ declare class AuthService {
584
+ private router;
585
+ private http;
586
+ private cryptoHelper;
587
+ apiUrl: string;
588
+ storageKey: string;
589
+ secretKey: string;
590
+ companyCode: string;
591
+ jwtHelper: JwtHelperService;
592
+ constructor(router: Router, http: HttpClient, cryptoHelper: CryptoHelperService);
593
+ logout(): Observable<boolean>;
594
+ setSession(session: AuthResult): void;
595
+ setLocalStorage(key: string, value: any): void;
596
+ getLocalStorage(key: string): any;
597
+ isAuthenticated(): boolean;
598
+ isTokenExpired(): boolean;
599
+ encrypt(value: string): any;
600
+ decrypt(value: string): string | null;
601
+ clearAuth(): void;
602
+ clearSession(): void;
603
+ clearTabInfo(): void;
604
+ clearStorage(): void;
605
+ clearCache(): void;
606
+ getUserId(): any;
607
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
608
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
609
+ }
610
+
624
611
  declare class HttpService {
625
612
  private http;
626
613
  apiUrl: string;
@@ -975,5 +962,5 @@ declare class ResizableDialogDirective implements OnInit, OnDestroy {
975
962
  static ɵdir: i0.ɵɵDirectiveDeclaration<ResizableDialogDirective, "[resizableDialog]", never, { "enableResize": { "alias": "enableResize"; "required": false; }; }, {}, never, never, true, never>;
976
963
  }
977
964
 
978
- export { AccountService, AuthInterceptor, AuthService, ChatButtonComponent, ChatFacadeService, ChatHistoryService, ChatHistorySidebarComponent, ChatWindowComponent, ChatbotApiService, Chips, DOOHBOT_API_CONFIG, DOOHBOT_API_URL, DialogComponent, DialogService, Doohbot, DoohbotInput, DraggableDialogDirective, DropdownMenu, FullscreenDirective, LocalStorageService, MenuItem, MessageInputComponent, MessageListComponent, PopoutWindowDirective, PredefinedMessages, ResizableDialogDirective, SnackBar, StorageService, ThemeService, appConst, initializeDoohbotApp, provideDoohbot, provideStorage };
965
+ export { AccountService, AuthService, ChatButtonComponent, ChatFacadeService, ChatHistoryService, ChatHistorySidebarComponent, ChatWindowComponent, ChatbotApiService, Chips, DOOHBOT_API_CONFIG, DOOHBOT_API_URL, DialogComponent, DialogService, Doohbot, DoohbotInput, DraggableDialogDirective, DropdownMenu, FullscreenDirective, LocalStorageService, MenuItem, MessageInputComponent, MessageListComponent, PopoutWindowDirective, PredefinedMessages, ResizableDialogDirective, SnackBar, StorageService, ThemeService, appConst, initializeDoohbotApp, provideDoohbot, provideStorage };
979
966
  export type { ChatContext, ChatSession, ChatSessionGroup, DialogData, DoohbotApiConfig, DoohbotThemeConfig, TenantConfig, ThemeMode, UserContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aakash58/chatbot",
3
- "version": "1.0.94",
3
+ "version": "1.0.95",
4
4
  "description": "",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.3.0",