@aakash58/chatbot 1.0.92 → 1.0.93
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/fesm2022/aakash58-chatbot.mjs +3 -1
- package/fesm2022/aakash58-chatbot.mjs.map +1 -1
- package/index.d.ts +65 -53
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ 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
|
-
|
|
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
|
|
|
@@ -481,6 +483,67 @@ declare class DropdownMenu implements AfterContentInit {
|
|
|
481
483
|
|
|
482
484
|
declare const DOOHBOT_INITIALIZER: Provider;
|
|
483
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
|
+
}
|
|
546
|
+
|
|
484
547
|
/**
|
|
485
548
|
* Response from chat API
|
|
486
549
|
*/
|
|
@@ -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, DOOHBOT_INITIALIZER, DialogComponent, DialogService, Doohbot, DoohbotInput, DraggableDialogDirective, DropdownMenu, FullscreenDirective, LocalStorageService, MenuItem, MessageInputComponent, MessageListComponent, PopoutWindowDirective, PredefinedMessages, ResizableDialogDirective, SnackBar, StorageService, ThemeService, appConst, initializeApp, provideStorage };
|
|
967
979
|
export type { ChatContext, ChatSession, ChatSessionGroup, DialogData, DoohbotApiConfig, DoohbotThemeConfig, TenantConfig, ThemeMode, UserContext };
|