@aakash58/chatbot 1.0.92 → 1.0.94

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,10 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, ElementRef, Renderer2, OnDestroy, SimpleChanges, RendererFactory2, OnInit, OnChanges, TrackByFunction, EventEmitter, AfterViewInit, AfterContentInit, QueryList, Provider } from '@angular/core';
2
+ import { InjectionToken, ElementRef, Renderer2, OnDestroy, SimpleChanges, RendererFactory2, OnInit, OnChanges, TrackByFunction, EventEmitter, AfterViewInit, AfterContentInit, QueryList, EnvironmentProviders } from '@angular/core';
3
3
  export { provideAppInitializer } from '@angular/core';
4
4
  import { OverlayContainer } from '@angular/cdk/overlay';
5
5
  import { MatDialogRef, MatDialog } from '@angular/material/dialog';
6
6
  import { Observable } from 'rxjs';
7
- import { HttpClient } from '@angular/common/http';
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';
8
10
  import { JwtHelperService } from '@auth0/angular-jwt';
9
11
  import { Router } from '@angular/router';
10
12
 
@@ -242,7 +244,6 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
242
244
  static ɵfac: i0.ɵɵFactoryDeclaration<Doohbot, never>;
243
245
  static ɵcmp: i0.ɵɵComponentDeclaration<Doohbot, "app-doohbot", never, { "config": { "alias": "config"; "required": false; }; "platformTenant": { "alias": "platformTenant"; "required": false; }; "subTenant": { "alias": "subTenant"; "required": false; }; "agent": { "alias": "agent"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "apiConfig": { "alias": "apiConfig"; "required": false; }; "userContext": { "alias": "userContext"; "required": false; }; "themeConfig": { "alias": "themeConfig"; "required": false; }; }, {}, never, never, true, never>;
244
246
  }
245
- declare function initializeApp(): Promise<any>;
246
247
 
247
248
  declare const appConst: {
248
249
  APP_LOGO: string;
@@ -479,7 +480,69 @@ declare class DropdownMenu implements AfterContentInit {
479
480
  static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenu, "app-dropdown-menu", never, {}, {}, ["menuItems"], ["[trigger]", "*"], true, never>;
480
481
  }
481
482
 
482
- declare const DOOHBOT_INITIALIZER: Provider;
483
+ declare function initializeDoohbotApp(): () => Promise<any>;
484
+ declare function provideDoohbot(): EnvironmentProviders;
485
+
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
+ }
483
546
 
484
547
  /**
485
548
  * Response from chat API
@@ -558,57 +621,6 @@ declare class ChatbotApiService {
558
621
  static ɵprov: i0.ɵɵInjectableDeclaration<ChatbotApiService>;
559
622
  }
560
623
 
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
-
612
624
  declare class HttpService {
613
625
  private http;
614
626
  apiUrl: string;
@@ -963,5 +975,5 @@ declare class ResizableDialogDirective implements OnInit, OnDestroy {
963
975
  static ɵdir: i0.ɵɵDirectiveDeclaration<ResizableDialogDirective, "[resizableDialog]", never, { "enableResize": { "alias": "enableResize"; "required": false; }; }, {}, never, never, true, never>;
964
976
  }
965
977
 
966
- export { AccountService, AuthService, ChatButtonComponent, ChatFacadeService, ChatHistoryService, ChatHistorySidebarComponent, ChatWindowComponent, ChatbotApiService, Chips, DOOHBOT_API_CONFIG, DOOHBOT_API_URL, DOOHBOT_INITIALIZER, DialogComponent, DialogService, Doohbot, DoohbotInput, DraggableDialogDirective, DropdownMenu, FullscreenDirective, LocalStorageService, MenuItem, MessageInputComponent, MessageListComponent, PopoutWindowDirective, PredefinedMessages, ResizableDialogDirective, SnackBar, StorageService, ThemeService, appConst, initializeApp, provideStorage };
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 };
967
979
  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.92",
3
+ "version": "1.0.94",
4
4
  "description": "",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.3.0",