@aakash58/chatbot 1.0.57 → 1.0.59

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
@@ -149,6 +149,18 @@ declare class AccountService {
149
149
  static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
150
150
  }
151
151
 
152
+ declare class CryptoHelperService {
153
+ private encoder;
154
+ private decoder;
155
+ private secretKey;
156
+ setSecretKey(key: string): void;
157
+ private getKey;
158
+ encrypt(value: string): Promise<string | null>;
159
+ decrypt(value: string): Promise<string | null>;
160
+ static ɵfac: i0.ɵɵFactoryDeclaration<CryptoHelperService, never>;
161
+ static ɵprov: i0.ɵɵInjectableDeclaration<CryptoHelperService>;
162
+ }
163
+
152
164
  declare global {
153
165
  interface Window {
154
166
  storageEventAdded?: boolean;
@@ -158,12 +170,13 @@ declare global {
158
170
  declare class AuthService {
159
171
  private router;
160
172
  private http;
173
+ private cryptoHelper;
161
174
  apiUrl: string;
162
175
  storageKey: string;
163
176
  secretKey: string;
164
177
  companyCode: string;
165
178
  jwtHelper: JwtHelperService;
166
- constructor(router: Router, http: HttpClient);
179
+ constructor(router: Router, http: HttpClient, cryptoHelper: CryptoHelperService);
167
180
  logout(): Observable<boolean>;
168
181
  setSession(session: AuthResult): void;
169
182
  setLocalStorage(key: string, value: any): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aakash58/chatbot",
3
- "version": "1.0.57",
3
+ "version": "1.0.59",
4
4
  "description": "Angular chatbot package",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.3.0",
@@ -1,8 +0,0 @@
1
- {
2
- "environment": "Dev",
3
- "apiBaseUrl": "http://localhost:4000/",
4
- "apiSegment": "api/",
5
- "apiKey": "api/v1/",
6
- "secretKey": "Nz3eQWWXAU",
7
- "storageKey": "doohbot_storage"
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "environment": "Prod",
3
- "apiBaseUrl": "http://localhost:5200/",
4
- "apiSegment": "api/v1/",
5
- "apiKey": "api/v1/",
6
- "secretKey": "Nz3eQWWXAU",
7
- "storageKey": "doohbot_storage"
8
- }