@aakash58/chatbot 1.0.55 → 1.0.57
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 +27 -4
- package/fesm2022/aakash58-chatbot.mjs.map +1 -1
- package/index.d.ts +14 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -35,6 +35,11 @@ declare class ThemeService {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
declare class DoohbotInput {
|
|
38
|
+
username: string;
|
|
39
|
+
password: string;
|
|
40
|
+
authToken?: string;
|
|
41
|
+
DOOHBOT_API_URL?: string;
|
|
42
|
+
skipAuthentication?: boolean;
|
|
38
43
|
userAvatarUrl: string;
|
|
39
44
|
readonly appTitle = "DoohBot";
|
|
40
45
|
readonly appSubtitle = "Welcome to DoohBot";
|
|
@@ -177,6 +182,13 @@ declare class AuthService {
|
|
|
177
182
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
178
183
|
}
|
|
179
184
|
|
|
185
|
+
interface UserContext {
|
|
186
|
+
userId: string;
|
|
187
|
+
userName: string;
|
|
188
|
+
userEmail: string;
|
|
189
|
+
metadata?: Record<string, any>;
|
|
190
|
+
}
|
|
191
|
+
|
|
180
192
|
declare class Doohbot extends DoohbotInput implements OnDestroy {
|
|
181
193
|
private elementRef;
|
|
182
194
|
private renderer;
|
|
@@ -191,6 +203,7 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
|
|
|
191
203
|
enableResize: boolean;
|
|
192
204
|
primaryColor: string | undefined;
|
|
193
205
|
apiConfig?: DoohbotApiConfig;
|
|
206
|
+
userContext?: UserContext;
|
|
194
207
|
isFullScreen: boolean;
|
|
195
208
|
isChatOpen: i0.WritableSignal<boolean>;
|
|
196
209
|
isBotTyping: i0.WritableSignal<boolean>;
|
|
@@ -235,7 +248,7 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
|
|
|
235
248
|
} | null;
|
|
236
249
|
toggleFullScreen(): void;
|
|
237
250
|
static ɵfac: i0.ɵɵFactoryDeclaration<Doohbot, never>;
|
|
238
|
-
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; }; "primaryColor": { "alias": "primaryColor"; "required": false; }; "apiConfig": { "alias": "apiConfig"; "required": false; }; }, {}, never, never, true, never>;
|
|
251
|
+
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; }; "primaryColor": { "alias": "primaryColor"; "required": false; }; "apiConfig": { "alias": "apiConfig"; "required": false; }; "userContext": { "alias": "userContext"; "required": false; }; }, {}, never, never, true, never>;
|
|
239
252
|
}
|
|
240
253
|
|
|
241
254
|
export { Doohbot };
|
package/package.json
CHANGED