@koredev/agentai-web-sdk 1.3.9-rc → 1.4.1-rc
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/dist/components/aaWindow/aaWindow.d.ts +10 -1
- package/dist/components/common/constants/default.config.d.ts +116 -0
- package/dist/components/common/constants/events.cnst.d.ts +18 -2
- package/dist/components/common/constants/projConsts.d.ts +21 -0
- package/dist/components/common/services/localstorage.service.d.ts +41 -22
- package/dist/components/common/services/rootService.d.ts +27 -15
- package/dist/components/common/services/web-socket-service.d.ts +12 -0
- package/dist/components/common/templatemanager/base/aaContainer/aaContainer.d.ts +2 -0
- package/dist/components/common/templatemanager/base/domManager.d.ts +1 -1
- package/dist/components/common/templatemanager/tabs/ErrorBoundary/ErrorBoundary.d.ts +21 -0
- package/dist/components/common/templatemanager/tabs/ErrorBoundary/ErrorHandler.d.ts +5 -0
- package/dist/components/common/templatemanager/tabs/atom/actionButtons.d.ts +1 -0
- package/dist/components/common/templatemanager/tabs/mybot/mybot.d.ts +3 -0
- package/dist/components/common/utils/scrollUtils.d.ts +7 -0
- package/dist/esm/agentai-web-sdk.min.js +1 -1
- package/dist/umd/agentai-web-sdk-umd.min.js +1 -1
- package/package.json +1 -1
|
@@ -7,9 +7,11 @@ declare class AAWindow extends EventEmitter {
|
|
|
7
7
|
private chatWindowInstance;
|
|
8
8
|
private templateRenderService;
|
|
9
9
|
private chunkFileUploadService;
|
|
10
|
+
private timeoutId;
|
|
10
11
|
chatEle: any;
|
|
11
12
|
config: any;
|
|
12
13
|
eventManager: any;
|
|
14
|
+
dskSettings: any;
|
|
13
15
|
constructor();
|
|
14
16
|
show(config: any): void;
|
|
15
17
|
sendUserMessage(_data: any): void;
|
|
@@ -18,10 +20,13 @@ declare class AAWindow extends EventEmitter {
|
|
|
18
20
|
addBackWardCompatibility(agentassistSettings: any): any;
|
|
19
21
|
hideSendAndCopy(): void;
|
|
20
22
|
getAASettings(botId: string): Promise<any>;
|
|
21
|
-
JWTSetup(options: any): Promise<any>;
|
|
23
|
+
JWTSetup(options: any, isJWE: boolean): Promise<any>;
|
|
22
24
|
render(chatWindowHtml: any): void;
|
|
23
25
|
clearContainer(): void;
|
|
24
26
|
renderLoader(): void;
|
|
27
|
+
removeLoader(): void;
|
|
28
|
+
renderIndividualLoader(container: any): void;
|
|
29
|
+
removeIndividualLoader(): void;
|
|
25
30
|
bindEvents(): void;
|
|
26
31
|
commonEmitEvents(config: any): void;
|
|
27
32
|
prepareAgentAssistRequestParams(data: any): any;
|
|
@@ -40,6 +45,10 @@ declare class AAWindow extends EventEmitter {
|
|
|
40
45
|
sendChecklistStepCloseEvent(checklistParams: any): void;
|
|
41
46
|
sendChecklistProceedToCloseEvent(checklistParams: any): void;
|
|
42
47
|
endOfConversation(): void;
|
|
48
|
+
responseResolutionCommentsFromParent(resolutionComments: any): void;
|
|
49
|
+
setSummaryPopup(summaryPopup: any): void;
|
|
50
|
+
internalTransfer(data: any): void;
|
|
51
|
+
disableWidget(isActive: boolean): void;
|
|
43
52
|
applyBranding(colors: any): void;
|
|
44
53
|
destroy(): void;
|
|
45
54
|
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export declare const DEFAULT_FEEDBACK_SETTINGS: {
|
|
2
|
+
dialogs: {
|
|
3
|
+
isEnabled: boolean;
|
|
4
|
+
acceptComment: boolean;
|
|
5
|
+
};
|
|
6
|
+
faqs: {
|
|
7
|
+
isEnabled: boolean;
|
|
8
|
+
acceptComment: boolean;
|
|
9
|
+
};
|
|
10
|
+
searchassist: {
|
|
11
|
+
isEnabled: boolean;
|
|
12
|
+
acceptComment: boolean;
|
|
13
|
+
};
|
|
14
|
+
summary: {
|
|
15
|
+
isEnabled: boolean;
|
|
16
|
+
acceptComment: boolean;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const DEFAULT_WIDGET_SETTINGS: {
|
|
20
|
+
isCustomisedLogoEnabled: {
|
|
21
|
+
isEnabled: boolean;
|
|
22
|
+
};
|
|
23
|
+
botEvents: {
|
|
24
|
+
fallback: {
|
|
25
|
+
isEnabled: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
isWidgetLandingEnabled: {
|
|
29
|
+
isEnabled: boolean;
|
|
30
|
+
tab: string;
|
|
31
|
+
};
|
|
32
|
+
agentAssistWidgetEnabled: boolean;
|
|
33
|
+
isProactiveEnabled: boolean;
|
|
34
|
+
isAutoScrollEnabled: boolean;
|
|
35
|
+
isAgentCoachingEnabled: boolean;
|
|
36
|
+
isAgentResponseEnabled: boolean;
|
|
37
|
+
isAgentPlaybookEnabled: boolean;
|
|
38
|
+
isAgentResponseCopyEnabled: boolean;
|
|
39
|
+
isSearchAssistEnabled: boolean;
|
|
40
|
+
summarization: {
|
|
41
|
+
isEnabled: boolean;
|
|
42
|
+
canSubmit: boolean;
|
|
43
|
+
model: {
|
|
44
|
+
type: string;
|
|
45
|
+
customTaskConfig: {
|
|
46
|
+
usecaseId: string;
|
|
47
|
+
refId: string;
|
|
48
|
+
dialogId: string;
|
|
49
|
+
taskRefId: string;
|
|
50
|
+
linkedBotId: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
transcripts: {
|
|
55
|
+
isEnabled: boolean;
|
|
56
|
+
};
|
|
57
|
+
searchAssistConfig: {
|
|
58
|
+
isXODependant: boolean;
|
|
59
|
+
alwaysShow: boolean;
|
|
60
|
+
showAutoSuggestions: boolean;
|
|
61
|
+
fallback: boolean;
|
|
62
|
+
integrations: {
|
|
63
|
+
type: string;
|
|
64
|
+
config: {
|
|
65
|
+
script: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
displayLines: number;
|
|
69
|
+
};
|
|
70
|
+
urlOpenBehaviour: {
|
|
71
|
+
defaultBehaviour: boolean;
|
|
72
|
+
sendPostEvent: boolean;
|
|
73
|
+
};
|
|
74
|
+
sentiment: {
|
|
75
|
+
isEnabled: boolean;
|
|
76
|
+
};
|
|
77
|
+
agentActions: {
|
|
78
|
+
sharingFormat: string;
|
|
79
|
+
};
|
|
80
|
+
showHelp: {
|
|
81
|
+
isEnabled: boolean;
|
|
82
|
+
documentation: {
|
|
83
|
+
isEnabled: boolean;
|
|
84
|
+
resource: string;
|
|
85
|
+
};
|
|
86
|
+
faq: {
|
|
87
|
+
isEnabled: boolean;
|
|
88
|
+
resource: string;
|
|
89
|
+
};
|
|
90
|
+
koreAcademy: {
|
|
91
|
+
isEnabled: boolean;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
languageSettings: {
|
|
95
|
+
language: string;
|
|
96
|
+
allowAgentSwitch: boolean;
|
|
97
|
+
};
|
|
98
|
+
feedback: {
|
|
99
|
+
dialogs: {
|
|
100
|
+
isEnabled: boolean;
|
|
101
|
+
acceptComment: boolean;
|
|
102
|
+
};
|
|
103
|
+
faqs: {
|
|
104
|
+
isEnabled: boolean;
|
|
105
|
+
acceptComment: boolean;
|
|
106
|
+
};
|
|
107
|
+
searchassist: {
|
|
108
|
+
isEnabled: boolean;
|
|
109
|
+
acceptComment: boolean;
|
|
110
|
+
};
|
|
111
|
+
summary: {
|
|
112
|
+
isEnabled: boolean;
|
|
113
|
+
acceptComment: boolean;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
@@ -106,7 +106,20 @@ export declare enum SDK_EVENTS {
|
|
|
106
106
|
'HELPFUL_FEEDBACK_TEMPLATE' = "HELPFUL_FEEDBACK_TEMPLATE",
|
|
107
107
|
'NEGATIVE_FEEDBACK_TEMPLATE' = "NEGATIVE_FEEDBACK_TEMPLATE",
|
|
108
108
|
'FEEDBACK_TOAST_TEMPLATE' = "FEEDBACK_TOAST_TEMPLATE",
|
|
109
|
-
"LIST_VIEW_TEMPLATE" = "LIST_VIEW_TEMPLATE"
|
|
109
|
+
"LIST_VIEW_TEMPLATE" = "LIST_VIEW_TEMPLATE",
|
|
110
|
+
"MYBOT_EMPTY_TEMPLATE" = "MYBOT_EMPTY_TEMPLATE",
|
|
111
|
+
'MYBOT_HEADER_LEFT_SECTION' = "MYBOT_HEADER_LEFT_SECTION",
|
|
112
|
+
'MYBOT_HEADER_RIGHT_SECTION' = "MYBOT_HEADER_RIGHT_SECTION",
|
|
113
|
+
"TRANSCRIPT_BULB" = "TRANSCRIPT_BULB",
|
|
114
|
+
"SCROLL_UP_BTN" = "SCROLL_UP_BTN",
|
|
115
|
+
"SCROLL_DOWN_BTN" = "SCROLL_DOWN_BTN",
|
|
116
|
+
"DIALOG_WRAPPER" = "DIALOG_WRAPPER",
|
|
117
|
+
"ATTACHMENT_VIEW" = "ATTACHMENT_VIEW",
|
|
118
|
+
"MAIN_CONTAINER" = "MAIN_CONTAINER",
|
|
119
|
+
"MAIN_LOADER" = "MAIN_LOADER",
|
|
120
|
+
"INDIVIDUAL_LOADER" = "INDIVIDUAL_LOADER",
|
|
121
|
+
"SENT_BUTTON_TEMPLATE" = "SENT_BUTTON_TEMPLATE",
|
|
122
|
+
"NETWORK_ERROR_TOASTR" = "NETWORK_ERROR_TOASTR"
|
|
110
123
|
}
|
|
111
124
|
export declare enum DATA_EVENTS {
|
|
112
125
|
'AGENT_COACHING_RESPONSES' = "AGENT_COACHING_RESPONSES",
|
|
@@ -136,7 +149,10 @@ export declare enum INTERNAL_EVENTS {
|
|
|
136
149
|
'INTERRUPT_RUNLATER_EVENT' = "INTERRUPT_RUNLATER_EVENT",
|
|
137
150
|
'TERMINATE_EVENT' = "TERMINATE_EVENT",
|
|
138
151
|
'TERMINATE_OVERRIDE_EVENT' = "TERMINATE_OVERRIDE_EVENT",
|
|
139
|
-
'TEMPLATE_CLICK' = "TEMPLATE_CLICK"
|
|
152
|
+
'TEMPLATE_CLICK' = "TEMPLATE_CLICK",
|
|
153
|
+
'SET_SUMMARY_POPUP' = "SET_SUMMARY_POPUP",
|
|
154
|
+
'INTERNAL_TRANSFER' = "INTERNAL_TRANSFER",
|
|
155
|
+
'DISABLE_WIDGET' = "DISABLE_WIDGET"
|
|
140
156
|
}
|
|
141
157
|
export declare enum EVENTS_TO_SDK {
|
|
142
158
|
UPDATE_ACTIVE_TAB = "updateActiveTab",
|
|
@@ -272,11 +272,30 @@ export declare const ClassMapConstanst: {
|
|
|
272
272
|
ENTITY_ATTACHMENT_IMAGE: string;
|
|
273
273
|
ENTITY_ATTACHMENT_BACK_BTN: string;
|
|
274
274
|
ENTITY_ATTACHMENT_CLOSE_BTN: string;
|
|
275
|
+
INTERRUPT_CURRENT_DIALOG: string;
|
|
276
|
+
MYBOT_INTERRUPT_WRAPPER: string;
|
|
277
|
+
MYBOT_INTERRUPT_DROPDOWN_WRAPPER: string;
|
|
278
|
+
MYBOT_INTERRUPT_TOGGLE_BTN: string;
|
|
279
|
+
MYBOT_INTERRUPT_DROPDOWN_CONTENT: string;
|
|
280
|
+
MYBOT_INTERRUPT_COUNT: string;
|
|
281
|
+
MYBOT_HEADER_SECTIONS: string;
|
|
282
|
+
MYBOT_SECTION: string;
|
|
283
|
+
MYBOT_EMPTY_SCREEN: string;
|
|
284
|
+
MYBOT_HEADER_DIALOG_WRAPPER: string;
|
|
285
|
+
MYBOT_HEADER_DIALOG_NAME: string;
|
|
286
|
+
MYBOT_HEADER_ENTITY_NAME: string;
|
|
287
|
+
MYBOT_LISTVIEW_BUTTON: string;
|
|
288
|
+
MYBOT_RESTART_BUTTON: string;
|
|
289
|
+
MYBOT_TERMINATE_BUTTON: string;
|
|
275
290
|
DISABLED: string;
|
|
276
291
|
ASSIST_SCROLL_WRAPPER: string;
|
|
277
292
|
ASSIST_UP_ARROW: string;
|
|
278
293
|
ASSIST_DOWN_ARROW: string;
|
|
279
294
|
ASSIST_BLOCK_CONTENT: string;
|
|
295
|
+
MYBOT_UP_ARROW: string;
|
|
296
|
+
MYBOT_DOWN_ARROW: string;
|
|
297
|
+
NETWORK_ERROR_TOASTR: string;
|
|
298
|
+
NETWORK_ERROR_CLOSE_BTN: string;
|
|
280
299
|
};
|
|
281
300
|
export declare const IdMapConstant: {
|
|
282
301
|
PROACTIVE_BTN: string;
|
|
@@ -300,4 +319,6 @@ export declare const IdMapConstant: {
|
|
|
300
319
|
CHECKLIST_STAGE_DRP_BTN: string;
|
|
301
320
|
CHECKLIST_STEP_TEMPLATE: string;
|
|
302
321
|
ASSIST_SUGGESTIONS: string;
|
|
322
|
+
LOADER_BLOCK_MAIN: string;
|
|
323
|
+
LOADER_BLOCK_INDIVIDUAL: string;
|
|
303
324
|
};
|
|
@@ -1,25 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { storageConst } from '../constants/projConsts';
|
|
2
|
+
type StorageData = {
|
|
3
|
+
[K in keyof typeof storageConst]: K extends 'ASSIST_INTERRUPT_DIALOG_LIST' | 'MYBOT_INTERRUPT_DIALOG_LIST' ? any[] : K extends 'PROACTIVE_MODE' | 'AUTOSCROLL' ? boolean : K extends 'ACTIVE_TAB' | 'LANGUAGE' ? string : K extends 'INTERNAL_TRANSFER' ? any : never;
|
|
4
|
+
};
|
|
5
|
+
interface WidgetSettings {
|
|
6
|
+
isProactiveEnabled?: boolean;
|
|
7
|
+
isAutoScrollEnabled?: boolean;
|
|
8
|
+
languageSettings?: {
|
|
9
|
+
language: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export default class LocalStorageService {
|
|
13
|
+
private readonly hostIns;
|
|
14
|
+
private readonly rootService;
|
|
4
15
|
constructor(hostIns: any);
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
private get conversationId();
|
|
17
|
+
private getStorageItem;
|
|
18
|
+
private setStorageItem;
|
|
19
|
+
getConvObjFromLS(): StorageData;
|
|
20
|
+
deleteLocalStorageState(convId: string): void;
|
|
21
|
+
initializeLocalStorageData(widgetSettings: WidgetSettings): boolean;
|
|
22
|
+
private shouldAddInternalTransfer;
|
|
23
|
+
private updateRootServiceState;
|
|
24
|
+
computeActiveTab(): boolean;
|
|
25
|
+
private updateStorageValue;
|
|
26
|
+
setInterruptDialogList: (dialogs: any[]) => void;
|
|
27
|
+
setMyBotInterruptDialogList: (dialogs: any[]) => void;
|
|
28
|
+
setProactiveMode: (mode: boolean) => void;
|
|
29
|
+
setActiveTab: (tab: string) => void;
|
|
30
|
+
setAutoScroll: (autoScroll: boolean) => void;
|
|
31
|
+
setLanguageInfo: (lang: string) => void;
|
|
32
|
+
setInternalTransferInfo: (data: any) => void;
|
|
16
33
|
setThemeLocal(theme?: any): void;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
34
|
+
private getStorageValue;
|
|
35
|
+
getInterruptDialogList: () => never[];
|
|
36
|
+
getMyBotInterruptDialogList: () => never[];
|
|
37
|
+
getProactiveMode: () => boolean;
|
|
38
|
+
getActiveTab: () => string;
|
|
39
|
+
getAutoScroll: () => boolean;
|
|
40
|
+
getLanguage: () => any;
|
|
41
|
+
getInternalTransferInfo: () => {};
|
|
42
|
+
getThemeLocal: () => string;
|
|
25
43
|
}
|
|
44
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare class rootService {
|
|
2
2
|
isAutomationOnGoing: boolean;
|
|
3
|
+
isMyBotAutomationOnGoing: boolean;
|
|
3
4
|
currentAutomationId: string;
|
|
5
|
+
currentMybotAutomationId: string;
|
|
4
6
|
grantResponseObj: any;
|
|
5
7
|
prefsAccessObj: any;
|
|
6
8
|
connectionDetails: any;
|
|
@@ -47,9 +49,10 @@ export declare class rootService {
|
|
|
47
49
|
mybotInterruptDialogList: any;
|
|
48
50
|
menuResponse: any;
|
|
49
51
|
aaHelpers: any;
|
|
52
|
+
disableWidgetFlag: boolean;
|
|
50
53
|
defaultFeedbackSettings: any;
|
|
51
54
|
defaultSuggestionObj: any;
|
|
52
|
-
|
|
55
|
+
tableList: string[];
|
|
53
56
|
constructor(hostInstance: any);
|
|
54
57
|
updateDefaultFeedbackData(): void;
|
|
55
58
|
formatSearchResponse(response: any, isSearch: boolean | undefined, suggestionIndex: number, suggestionFrom?: string): any;
|
|
@@ -66,9 +69,10 @@ export declare class rootService {
|
|
|
66
69
|
addSentOrCopiedTextForFiles(file: any, ele: any, sendText: any, hostInstance: any): void;
|
|
67
70
|
addSentOrCopiedTextForArticle(article: any, ele: any, sendText: any, hostInstance: any): void;
|
|
68
71
|
addSentOrCopiedTextForSnippets(snippet: any, ele: any, sendText: any, hostInstance: any): void;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
sendTextAddAndEmitEvent(type: string, suggestionObj: any, ele: any, sendText: string, hostInstance: any): void;
|
|
73
|
+
handleSendCopyButtonForFaq(actionType: any, ansObj: any, selectType: any, sourceMsgId: any, faqListHTMLEle: any, hostInstance: any): void;
|
|
74
|
+
handleSendCopyButtonForSnippet(actionType: any, snippetObj: any, selectType: any, snippetListHTMLEle: any, hostInstance: any): void;
|
|
75
|
+
handleSendCopyButtonArticleOrFile(actionType: any, articleObj: any, selectType: any, articleListHTMLEle: any, hostInstance: any): void;
|
|
72
76
|
handleActionTemplateClickEventsForFAQ(eachActionTemplate: any, faq: any, ansObj: any, faqListHTMLEle: any, hostInstance: any): void;
|
|
73
77
|
emitSendOrCopyEvent(copyEventData: any, hostInstance: any): void;
|
|
74
78
|
handleFaqExpandCloseBtnClickEvents(expandClostBtnTemplate: any, faqSuggestionBodyList: any, suggestionHeaderActionTemplate: any, faqListHTMLIndex: any, hostInstance: any): void;
|
|
@@ -90,6 +94,7 @@ export declare class rootService {
|
|
|
90
94
|
sourceMsgId: any;
|
|
91
95
|
dataSource: string;
|
|
92
96
|
positionId: any;
|
|
97
|
+
participant: any;
|
|
93
98
|
};
|
|
94
99
|
emitSearchRequestForAssistSuggestions(value: any, isSearch: any, faq: any, hostInstance: any): void;
|
|
95
100
|
emitSearchRequestForSearch(searchTextObj: any, isSearch: boolean, faq: any, hostInstance: any): void;
|
|
@@ -127,6 +132,7 @@ export declare class rootService {
|
|
|
127
132
|
prepareFeedbackDataForDialog(automation: any, feedbackData?: any): any;
|
|
128
133
|
makeOverrideEvent(hostInstance: any, flag: boolean): void;
|
|
129
134
|
getTypeOfResponse(data: any): string;
|
|
135
|
+
getMybotTypeOfResponse(data: any): string;
|
|
130
136
|
sendRunClickEvent(hostInstance: any, dialog: any, intent?: boolean): void;
|
|
131
137
|
prepareSendCopyEventForRun(hostInstance: any, dialog: any, intent?: boolean): void;
|
|
132
138
|
matchDialogIdfromMenuResponse(dialog: any): any;
|
|
@@ -134,6 +140,8 @@ export declare class rootService {
|
|
|
134
140
|
removeRunwithAgentInputs(menuHTML: any): void;
|
|
135
141
|
runDialogForAssistOrMybot(hostInstance: any, dialog: any, runInitent?: boolean): void;
|
|
136
142
|
updateLocalStorageForAssist(hostInstance: any, dialog: any, flag: boolean): void;
|
|
143
|
+
updateLocalStorageForMybot(hostInstance: any, dialog: any, flag: boolean): void;
|
|
144
|
+
updateMybotDialogTemplate(hostInstance: any, dialog: any, flag: boolean): void;
|
|
137
145
|
updateAssistDialogTemplate(hostInstance: any, dialog: any, flag: boolean): void;
|
|
138
146
|
prepareDialogObjForInitDialog(data: any): any;
|
|
139
147
|
prepareSuggestionResponse(data: any, responseId: string, suggestionIndex: number): {
|
|
@@ -142,7 +150,7 @@ export declare class rootService {
|
|
|
142
150
|
uuid: string;
|
|
143
151
|
searchResponse: any;
|
|
144
152
|
};
|
|
145
|
-
prepareAutomationReponse(res: any, responseId: string): {
|
|
153
|
+
prepareAutomationReponse(res: any, responseId: string, tab: string): {
|
|
146
154
|
data: any;
|
|
147
155
|
type: string;
|
|
148
156
|
uuid: string;
|
|
@@ -158,9 +166,10 @@ export declare class rootService {
|
|
|
158
166
|
prepareMsgNodeResponse(response: any, dataObj: any, hostInstance: any): any;
|
|
159
167
|
prepareSmallTalkResponse(data: any, responseId: string): any;
|
|
160
168
|
prepareWelcomeMsgResponse(data: any, responseId: string): any;
|
|
161
|
-
toggleInterruptPopup: (hostInstance: any, flag: boolean) => void;
|
|
169
|
+
toggleInterruptPopup: (hostInstance: any, flag: boolean, currentDialogName: string) => void;
|
|
162
170
|
toggleTerminatePopup: (hostInstance: any, flag: boolean) => void;
|
|
163
|
-
toggleInterruptDropdown(hostInstance: any): void;
|
|
171
|
+
toggleInterruptDropdown(tab: string, hostInstance: any): void;
|
|
172
|
+
toggleMybotInterruptDropdown(tab: string, hostInstance: any): void;
|
|
164
173
|
handleEmptyLine(answer: any, quotflag: boolean | undefined, type: string | undefined, hostInstace: any): string;
|
|
165
174
|
replaceLtGt(htmlString: any, quotflag: boolean): any;
|
|
166
175
|
handleWelcomeMsgResponse(welcomeMsgResponse: any, template: HTMLElement, hostInstance: any): void;
|
|
@@ -174,10 +183,11 @@ export declare class rootService {
|
|
|
174
183
|
};
|
|
175
184
|
handleActionTemplateClickEventsForNodes(eachActionTemplate: HTMLElement, automationNodeObj: any, template: HTMLElement, hostInstance: any): void;
|
|
176
185
|
addClickEventListenerForActionNodes(template: HTMLElement, eventSelector: string, callback: () => void, hostInstance: any): void;
|
|
177
|
-
handleSendOrCopyClickEvent(type: string, sendTextTemplate: HTMLElement | null, automationNodeObj: any, hostInstance: any): void;
|
|
186
|
+
handleSendOrCopyClickEvent(type: string, sendTextTemplate: HTMLElement | null, automationNodeObj: any, template: HTMLElement, hostInstance: any): void;
|
|
178
187
|
toggleSendTextTemplate(sendTextTemplate: HTMLElement | null, type: string): void;
|
|
179
188
|
removeWelcomeMessages(automationNodeObj: any, hostInstance: any): void;
|
|
180
|
-
handleSendCopyButtonForNodes(actionType: string, sendData: any, automation: any, hostInstance: any): void;
|
|
189
|
+
handleSendCopyButtonForNodes(actionType: string, sendData: any, automation: any, template: HTMLElement, hostInstance: any): void;
|
|
190
|
+
prepareSendText(sendData: any, templateRender: any, askCustNode: any): any;
|
|
181
191
|
createMessagePayload(actionType: string, sendData: any): {
|
|
182
192
|
method: string;
|
|
183
193
|
name: string;
|
|
@@ -195,24 +205,26 @@ export declare class rootService {
|
|
|
195
205
|
getSmallTalkTemplate(smallTalkObj: any, activeTab: string, hostInstance: any): HTMLElement | null;
|
|
196
206
|
addDialogTemplate(automationNodeObj: any, automation: any, activeTab: string, hostInstance: any): void;
|
|
197
207
|
getDialogWrapper(hostInstance: any, dialogId: string): any;
|
|
198
|
-
getAutomationStartTemplate(automation: any, hostInstance: any): ChildNode;
|
|
199
|
-
getAutomationEndTemplate(automation: any, hostInstance: any): ChildNode;
|
|
208
|
+
getAutomationStartTemplate(automation: any, hostInstance: any): "" | ChildNode;
|
|
209
|
+
getAutomationEndTemplate(automation: any, hostInstance: any): "" | ChildNode;
|
|
200
210
|
appendFeedbackWrapper(dialogWrapper: any, automation: any, hostInstance: any): void;
|
|
201
211
|
getAutomationNodeTemplate(automation: any, automationNodeObj: any, activeTab: string, hostInstance: any): any;
|
|
202
212
|
appendTemplate: (template: any, entityNode: any) => void;
|
|
213
|
+
appendTemplateToContainer(template: HTMLElement | null, entityNode: any): void;
|
|
203
214
|
handleErrorPrompts(automation: any, automationNodeObj: any, hostInstance: any): void;
|
|
204
215
|
appendAutomationEachNodeTemplate(dialogWrapper: any, template: any, automationNodeObj: any, dialogId: string): void;
|
|
205
|
-
handleEntityNodeClickEvents(askCustTemplate: any, automationNodeObj: any, hostInstance: any): void;
|
|
216
|
+
handleEntityNodeClickEvents(askCustTemplate: any, automationNodeObj: any, currentTab: string, hostInstance: any): void;
|
|
206
217
|
handleViewClick(e: any, inputEle: any, askCustTemplate: any, automationNodeObj: any, hostIns: any): void;
|
|
207
218
|
handleChooseFile(e: any, inputEle: any, askCustTemplate: any, automationNodeObj: any): void;
|
|
208
219
|
handleOverrideClick(e: any, errorTemplate: any, inputEle: any, overrideBtn: any, askCustTemplate: any, removeBtn: any, checkBtn: any, automationNodeObj: any, hostInstance: any): void;
|
|
209
220
|
handleRemoveClick(e: any, errorTemplate: any, inputEle: any, overrideBtn: any, removeBtn: any, checkBtn: any, askCustTemplate: any, automationNodeObj: any, hostInstance: any): void;
|
|
210
221
|
handleCheckClick(e: any, inputEle: any, automationNodeObj: any, askCustTemplate: any, hostInstance: any): void;
|
|
211
|
-
handleInputKeydown(e: any, inputEle: any, automationNodeObj: any, askCustTemplate: any, hostInstance: any): void;
|
|
222
|
+
handleInputKeydown(e: any, inputEle: any, automationNodeObj: any, askCustTemplate: any, currentTab: string, hostInstance: any): void;
|
|
212
223
|
handleInputChange(e: any, inputEle: any, checkBtn: any): void;
|
|
213
224
|
showAttachmentView(automationNodeObj: any, askCustTemplate: any, inputEle: any): void;
|
|
214
225
|
toggleAttachmentDiv(automationNodeObj: any, askCustTemplate: any, inputEle: any, flag: boolean): void;
|
|
215
226
|
assistInputValue(inputValue: any, automationNodeObj: any, hostInstance: any): void;
|
|
227
|
+
mybotInputValue(inputValue: any, automationNodeObj: any, hostInstance: any): void;
|
|
216
228
|
handleEntityInput(node: any, hostInstance: any, disabled?: boolean): void;
|
|
217
229
|
showAgentIcon(node: any, hostInstance: any): void;
|
|
218
230
|
showEntityNodeInputButtons(askCustTemplate: any): void;
|
|
@@ -225,8 +237,8 @@ export declare class rootService {
|
|
|
225
237
|
addorRemoveAttachemntFileError(automationNodeObj: any, hostInstance: any, hide?: boolean): void;
|
|
226
238
|
fileUploadCall(automationNodeObj: any, hostIns: any): void;
|
|
227
239
|
getuploadedFileURL(automationNodeObj: any, fileId: any, hostIns: any): void;
|
|
228
|
-
scrollToTop(element: any): void;
|
|
229
|
-
scrollToTillBottom(element: any): void;
|
|
240
|
+
scrollToTop(element: any, tab: string, hostInstance: any): void;
|
|
241
|
+
scrollToTillBottom(element: any, tab: string, hostInstance: any): void;
|
|
230
242
|
handleAssistScroll(): void;
|
|
231
243
|
scrollBottomTranscript(): void;
|
|
232
244
|
}
|
|
@@ -7,9 +7,21 @@ declare class websocketservice {
|
|
|
7
7
|
count: number;
|
|
8
8
|
constructor(hostIns: any);
|
|
9
9
|
socketConnection(configOptions: any): void;
|
|
10
|
+
emitTransferEvent(): void;
|
|
10
11
|
emitEvents(eventName: string, requestParams: any, keepOldTraceId?: boolean): void;
|
|
11
12
|
listenEvents(): void;
|
|
12
13
|
getTimeout(): number;
|
|
13
14
|
disconnect(): void;
|
|
15
|
+
handleInternalTransfer(data: any): void;
|
|
16
|
+
/**
|
|
17
|
+
* Emits a scroll event with activity details through the websocket
|
|
18
|
+
* @param eventType The type of scroll event that occurred
|
|
19
|
+
*/
|
|
20
|
+
sendScrollEvent(eventType: string, tab?: string): void;
|
|
21
|
+
/**
|
|
22
|
+
* Creates common request parameters used across socket events
|
|
23
|
+
* @returns Object containing standard request parameters
|
|
24
|
+
*/
|
|
25
|
+
private commonRequestParams;
|
|
14
26
|
}
|
|
15
27
|
export default websocketservice;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import './aaContainer.scss';
|
|
2
2
|
import { h } from 'preact';
|
|
3
|
+
export declare function NetworkErrorToast(props: any): h.JSX.Element;
|
|
3
4
|
export declare function FeedbackToast(props: any): h.JSX.Element;
|
|
4
5
|
export declare function AALoder(props: any): h.JSX.Element;
|
|
6
|
+
export declare function IndividualLoader(props: any): h.JSX.Element;
|
|
5
7
|
export declare function AAContainer(props: any): h.JSX.Element;
|
|
@@ -5,5 +5,5 @@ declare class DomManager {
|
|
|
5
5
|
constructor(component: any, host: any);
|
|
6
6
|
renderMessage(msgData: any): ChildNode;
|
|
7
7
|
}
|
|
8
|
-
export declare function getHTML(comp: any, msgData: any, hostInstance: any): ChildNode;
|
|
8
|
+
export declare function getHTML(comp: any, msgData: any, hostInstance: any): "" | ChildNode;
|
|
9
9
|
export default DomManager;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component, JSX } from 'preact';
|
|
2
|
+
interface ErrorInfo {
|
|
3
|
+
componentStack?: string;
|
|
4
|
+
}
|
|
5
|
+
interface ErrorBoundaryState {
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
error: Error | null;
|
|
8
|
+
errorInfo: ErrorInfo | null;
|
|
9
|
+
}
|
|
10
|
+
interface ErrorBoundaryProps {
|
|
11
|
+
children?: preact.ComponentChildren;
|
|
12
|
+
}
|
|
13
|
+
declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
14
|
+
constructor(props: ErrorBoundaryProps);
|
|
15
|
+
static getDerivedStateFromError(error: Error): {
|
|
16
|
+
hasError: boolean;
|
|
17
|
+
};
|
|
18
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
19
|
+
render(): JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
export default ErrorBoundary;
|
|
@@ -3,3 +3,4 @@ export declare function handleSendCopyButtonsForNodes(props: any): h.JSX.Element
|
|
|
3
3
|
export declare function handleSendCopyButtons(props: any): h.JSX.Element;
|
|
4
4
|
export declare function ActionButtonsSentText(props: any): h.JSX.Element;
|
|
5
5
|
export declare function HandleViewMoreLessButtons(props: any): h.JSX.Element;
|
|
6
|
+
export declare function NoTabsScreen(props: any): h.JSX.Element;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { h } from 'preact';
|
|
2
|
+
export declare function RenderEmptyMyBotScreen(props: any): h.JSX.Element;
|
|
3
|
+
export declare function RenderMybotHeaderLeftSections(props: any): h.JSX.Element;
|
|
4
|
+
export declare function RenderMybotHeaderRightSection(props: any): h.JSX.Element;
|
|
2
5
|
export declare function MyBot({ hostInstance }: any): h.JSX.Element;
|