@koredev/agentai-web-sdk 1.3.9-rc → 1.4.0-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 +24 -13
- 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/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,9 @@ 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
|
-
defaultwidgetSettings: any;
|
|
53
55
|
constructor(hostInstance: any);
|
|
54
56
|
updateDefaultFeedbackData(): void;
|
|
55
57
|
formatSearchResponse(response: any, isSearch: boolean | undefined, suggestionIndex: number, suggestionFrom?: string): any;
|
|
@@ -66,9 +68,10 @@ export declare class rootService {
|
|
|
66
68
|
addSentOrCopiedTextForFiles(file: any, ele: any, sendText: any, hostInstance: any): void;
|
|
67
69
|
addSentOrCopiedTextForArticle(article: any, ele: any, sendText: any, hostInstance: any): void;
|
|
68
70
|
addSentOrCopiedTextForSnippets(snippet: any, ele: any, sendText: any, hostInstance: any): void;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
sendTextAddAndEmitEvent(type: string, suggestionObj: any, ele: any, sendText: string, hostInstance: any): void;
|
|
72
|
+
handleSendCopyButtonForFaq(actionType: any, ansObj: any, selectType: any, sourceMsgId: any, faqListHTMLEle: any, hostInstance: any): void;
|
|
73
|
+
handleSendCopyButtonForSnippet(actionType: any, snippetObj: any, selectType: any, snippetListHTMLEle: any, hostInstance: any): void;
|
|
74
|
+
handleSendCopyButtonArticleOrFile(actionType: any, articleObj: any, selectType: any, articleListHTMLEle: any, hostInstance: any): void;
|
|
72
75
|
handleActionTemplateClickEventsForFAQ(eachActionTemplate: any, faq: any, ansObj: any, faqListHTMLEle: any, hostInstance: any): void;
|
|
73
76
|
emitSendOrCopyEvent(copyEventData: any, hostInstance: any): void;
|
|
74
77
|
handleFaqExpandCloseBtnClickEvents(expandClostBtnTemplate: any, faqSuggestionBodyList: any, suggestionHeaderActionTemplate: any, faqListHTMLIndex: any, hostInstance: any): void;
|
|
@@ -90,6 +93,7 @@ export declare class rootService {
|
|
|
90
93
|
sourceMsgId: any;
|
|
91
94
|
dataSource: string;
|
|
92
95
|
positionId: any;
|
|
96
|
+
participant: any;
|
|
93
97
|
};
|
|
94
98
|
emitSearchRequestForAssistSuggestions(value: any, isSearch: any, faq: any, hostInstance: any): void;
|
|
95
99
|
emitSearchRequestForSearch(searchTextObj: any, isSearch: boolean, faq: any, hostInstance: any): void;
|
|
@@ -127,6 +131,7 @@ export declare class rootService {
|
|
|
127
131
|
prepareFeedbackDataForDialog(automation: any, feedbackData?: any): any;
|
|
128
132
|
makeOverrideEvent(hostInstance: any, flag: boolean): void;
|
|
129
133
|
getTypeOfResponse(data: any): string;
|
|
134
|
+
getMybotTypeOfResponse(data: any): string;
|
|
130
135
|
sendRunClickEvent(hostInstance: any, dialog: any, intent?: boolean): void;
|
|
131
136
|
prepareSendCopyEventForRun(hostInstance: any, dialog: any, intent?: boolean): void;
|
|
132
137
|
matchDialogIdfromMenuResponse(dialog: any): any;
|
|
@@ -134,6 +139,8 @@ export declare class rootService {
|
|
|
134
139
|
removeRunwithAgentInputs(menuHTML: any): void;
|
|
135
140
|
runDialogForAssistOrMybot(hostInstance: any, dialog: any, runInitent?: boolean): void;
|
|
136
141
|
updateLocalStorageForAssist(hostInstance: any, dialog: any, flag: boolean): void;
|
|
142
|
+
updateLocalStorageForMybot(hostInstance: any, dialog: any, flag: boolean): void;
|
|
143
|
+
updateMybotDialogTemplate(hostInstance: any, dialog: any, flag: boolean): void;
|
|
137
144
|
updateAssistDialogTemplate(hostInstance: any, dialog: any, flag: boolean): void;
|
|
138
145
|
prepareDialogObjForInitDialog(data: any): any;
|
|
139
146
|
prepareSuggestionResponse(data: any, responseId: string, suggestionIndex: number): {
|
|
@@ -142,7 +149,7 @@ export declare class rootService {
|
|
|
142
149
|
uuid: string;
|
|
143
150
|
searchResponse: any;
|
|
144
151
|
};
|
|
145
|
-
prepareAutomationReponse(res: any, responseId: string): {
|
|
152
|
+
prepareAutomationReponse(res: any, responseId: string, tab: string): {
|
|
146
153
|
data: any;
|
|
147
154
|
type: string;
|
|
148
155
|
uuid: string;
|
|
@@ -158,9 +165,10 @@ export declare class rootService {
|
|
|
158
165
|
prepareMsgNodeResponse(response: any, dataObj: any, hostInstance: any): any;
|
|
159
166
|
prepareSmallTalkResponse(data: any, responseId: string): any;
|
|
160
167
|
prepareWelcomeMsgResponse(data: any, responseId: string): any;
|
|
161
|
-
toggleInterruptPopup: (hostInstance: any, flag: boolean) => void;
|
|
168
|
+
toggleInterruptPopup: (hostInstance: any, flag: boolean, currentDialogName: string) => void;
|
|
162
169
|
toggleTerminatePopup: (hostInstance: any, flag: boolean) => void;
|
|
163
|
-
toggleInterruptDropdown(hostInstance: any): void;
|
|
170
|
+
toggleInterruptDropdown(tab: string, hostInstance: any): void;
|
|
171
|
+
toggleMybotInterruptDropdown(tab: string, hostInstance: any): void;
|
|
164
172
|
handleEmptyLine(answer: any, quotflag: boolean | undefined, type: string | undefined, hostInstace: any): string;
|
|
165
173
|
replaceLtGt(htmlString: any, quotflag: boolean): any;
|
|
166
174
|
handleWelcomeMsgResponse(welcomeMsgResponse: any, template: HTMLElement, hostInstance: any): void;
|
|
@@ -174,10 +182,11 @@ export declare class rootService {
|
|
|
174
182
|
};
|
|
175
183
|
handleActionTemplateClickEventsForNodes(eachActionTemplate: HTMLElement, automationNodeObj: any, template: HTMLElement, hostInstance: any): void;
|
|
176
184
|
addClickEventListenerForActionNodes(template: HTMLElement, eventSelector: string, callback: () => void, hostInstance: any): void;
|
|
177
|
-
handleSendOrCopyClickEvent(type: string, sendTextTemplate: HTMLElement | null, automationNodeObj: any, hostInstance: any): void;
|
|
185
|
+
handleSendOrCopyClickEvent(type: string, sendTextTemplate: HTMLElement | null, automationNodeObj: any, template: HTMLElement, hostInstance: any): void;
|
|
178
186
|
toggleSendTextTemplate(sendTextTemplate: HTMLElement | null, type: string): void;
|
|
179
187
|
removeWelcomeMessages(automationNodeObj: any, hostInstance: any): void;
|
|
180
|
-
handleSendCopyButtonForNodes(actionType: string, sendData: any, automation: any, hostInstance: any): void;
|
|
188
|
+
handleSendCopyButtonForNodes(actionType: string, sendData: any, automation: any, template: HTMLElement, hostInstance: any): void;
|
|
189
|
+
prepareSendText(sendData: any, templateRender: any, askCustNode: any): any;
|
|
181
190
|
createMessagePayload(actionType: string, sendData: any): {
|
|
182
191
|
method: string;
|
|
183
192
|
name: string;
|
|
@@ -200,19 +209,21 @@ export declare class rootService {
|
|
|
200
209
|
appendFeedbackWrapper(dialogWrapper: any, automation: any, hostInstance: any): void;
|
|
201
210
|
getAutomationNodeTemplate(automation: any, automationNodeObj: any, activeTab: string, hostInstance: any): any;
|
|
202
211
|
appendTemplate: (template: any, entityNode: any) => void;
|
|
212
|
+
appendTemplateToContainer(template: HTMLElement | null, entityNode: any): void;
|
|
203
213
|
handleErrorPrompts(automation: any, automationNodeObj: any, hostInstance: any): void;
|
|
204
214
|
appendAutomationEachNodeTemplate(dialogWrapper: any, template: any, automationNodeObj: any, dialogId: string): void;
|
|
205
|
-
handleEntityNodeClickEvents(askCustTemplate: any, automationNodeObj: any, hostInstance: any): void;
|
|
215
|
+
handleEntityNodeClickEvents(askCustTemplate: any, automationNodeObj: any, currentTab: string, hostInstance: any): void;
|
|
206
216
|
handleViewClick(e: any, inputEle: any, askCustTemplate: any, automationNodeObj: any, hostIns: any): void;
|
|
207
217
|
handleChooseFile(e: any, inputEle: any, askCustTemplate: any, automationNodeObj: any): void;
|
|
208
218
|
handleOverrideClick(e: any, errorTemplate: any, inputEle: any, overrideBtn: any, askCustTemplate: any, removeBtn: any, checkBtn: any, automationNodeObj: any, hostInstance: any): void;
|
|
209
219
|
handleRemoveClick(e: any, errorTemplate: any, inputEle: any, overrideBtn: any, removeBtn: any, checkBtn: any, askCustTemplate: any, automationNodeObj: any, hostInstance: any): void;
|
|
210
220
|
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;
|
|
221
|
+
handleInputKeydown(e: any, inputEle: any, automationNodeObj: any, askCustTemplate: any, currentTab: string, hostInstance: any): void;
|
|
212
222
|
handleInputChange(e: any, inputEle: any, checkBtn: any): void;
|
|
213
223
|
showAttachmentView(automationNodeObj: any, askCustTemplate: any, inputEle: any): void;
|
|
214
224
|
toggleAttachmentDiv(automationNodeObj: any, askCustTemplate: any, inputEle: any, flag: boolean): void;
|
|
215
225
|
assistInputValue(inputValue: any, automationNodeObj: any, hostInstance: any): void;
|
|
226
|
+
mybotInputValue(inputValue: any, automationNodeObj: any, hostInstance: any): void;
|
|
216
227
|
handleEntityInput(node: any, hostInstance: any, disabled?: boolean): void;
|
|
217
228
|
showAgentIcon(node: any, hostInstance: any): void;
|
|
218
229
|
showEntityNodeInputButtons(askCustTemplate: any): void;
|
|
@@ -225,8 +236,8 @@ export declare class rootService {
|
|
|
225
236
|
addorRemoveAttachemntFileError(automationNodeObj: any, hostInstance: any, hide?: boolean): void;
|
|
226
237
|
fileUploadCall(automationNodeObj: any, hostIns: any): void;
|
|
227
238
|
getuploadedFileURL(automationNodeObj: any, fileId: any, hostIns: any): void;
|
|
228
|
-
scrollToTop(element: any): void;
|
|
229
|
-
scrollToTillBottom(element: any): void;
|
|
239
|
+
scrollToTop(element: any, tab: string, hostInstance: any): void;
|
|
240
|
+
scrollToTillBottom(element: any, tab: string, hostInstance: any): void;
|
|
230
241
|
handleAssistScroll(): void;
|
|
231
242
|
scrollBottomTranscript(): void;
|
|
232
243
|
}
|
|
@@ -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;
|
|
@@ -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;
|