@aakash58/chatbot 1.0.94 → 1.0.96

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
 
@@ -194,6 +191,7 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
194
191
  private chatFacade;
195
192
  private uiState;
196
193
  private themeService;
194
+ private configService;
197
195
  isChatOpen: i0.WritableSignal<boolean>;
198
196
  isHistorySidebarOpen: i0.WritableSignal<boolean>;
199
197
  unreadCount: i0.Signal<number>;
@@ -483,67 +481,6 @@ declare class DropdownMenu implements AfterContentInit {
483
481
  declare function initializeDoohbotApp(): () => Promise<any>;
484
482
  declare function provideDoohbot(): EnvironmentProviders;
485
483
 
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
484
  /**
548
485
  * Response from chat API
549
486
  */
@@ -621,6 +558,57 @@ declare class ChatbotApiService {
621
558
  static ɵprov: i0.ɵɵInjectableDeclaration<ChatbotApiService>;
622
559
  }
623
560
 
561
+ declare class AuthResult {
562
+ access_token: string;
563
+ refresh_token: string;
564
+ }
565
+
566
+ declare class CryptoHelperService {
567
+ private encoder;
568
+ private decoder;
569
+ private secretKey;
570
+ setSecretKey(key: string): void;
571
+ private getKey;
572
+ encrypt(value: string): Promise<string | null>;
573
+ decrypt(value: string): Promise<string | null>;
574
+ static ɵfac: i0.ɵɵFactoryDeclaration<CryptoHelperService, never>;
575
+ static ɵprov: i0.ɵɵInjectableDeclaration<CryptoHelperService>;
576
+ }
577
+
578
+ declare global {
579
+ interface Window {
580
+ storageEventAdded?: boolean;
581
+ tabCLoseEventAdded?: boolean;
582
+ }
583
+ }
584
+ declare class AuthService {
585
+ private router;
586
+ private http;
587
+ private cryptoHelper;
588
+ apiUrl: string;
589
+ storageKey: string;
590
+ secretKey: string;
591
+ companyCode: string;
592
+ jwtHelper: JwtHelperService;
593
+ constructor(router: Router, http: HttpClient, cryptoHelper: CryptoHelperService);
594
+ logout(): Observable<boolean>;
595
+ setSession(session: AuthResult): void;
596
+ setLocalStorage(key: string, value: any): void;
597
+ getLocalStorage(key: string): any;
598
+ isAuthenticated(): boolean;
599
+ isTokenExpired(): boolean;
600
+ encrypt(value: string): any;
601
+ decrypt(value: string): string | null;
602
+ clearAuth(): void;
603
+ clearSession(): void;
604
+ clearTabInfo(): void;
605
+ clearStorage(): void;
606
+ clearCache(): void;
607
+ getUserId(): any;
608
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
609
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
610
+ }
611
+
624
612
  declare class HttpService {
625
613
  private http;
626
614
  apiUrl: string;
@@ -975,5 +963,5 @@ declare class ResizableDialogDirective implements OnInit, OnDestroy {
975
963
  static ɵdir: i0.ɵɵDirectiveDeclaration<ResizableDialogDirective, "[resizableDialog]", never, { "enableResize": { "alias": "enableResize"; "required": false; }; }, {}, never, never, true, never>;
976
964
  }
977
965
 
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 };
966
+ 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
967
  export type { ChatContext, ChatSession, ChatSessionGroup, DialogData, DoohbotApiConfig, DoohbotThemeConfig, TenantConfig, ThemeMode, UserContext };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aakash58/chatbot",
3
- "version": "1.0.94",
4
- "description": "",
3
+ "version": "1.0.96",
4
+ "description": "api configuration",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.3.0",
7
7
  "@angular/core": "^20.3.0"