@koredev/agentai-web-sdk 1.3.8-rc → 1.3.9-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 +1 -0
- package/dist/components/common/constants/projConsts.d.ts +5 -0
- package/dist/components/common/constants/settingsConsts.d.ts +148 -0
- package/dist/components/common/services/rootService.d.ts +20 -9
- package/dist/components/common/templatemanager/tabs/automation/automation.d.ts +2 -0
- package/dist/components/common/templatemanager/tabs/feedback/feedback.d.ts +1 -1
- package/dist/esm/agentai-web-sdk.min.js +1 -1
- package/dist/umd/agentai-web-sdk-umd.min.js +1 -1
- package/dist/umd/agentai-web-sdk-umd.min.js.map +1 -1
- package/dist/umd/hot/hot-update.js +146 -2308
- package/dist/umd/hot/hot-update.js.map +1 -1
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ declare class AAWindow extends EventEmitter {
|
|
|
15
15
|
sendUserMessage(_data: any): void;
|
|
16
16
|
sendAgentMessage(_data: any): void;
|
|
17
17
|
initShow(config: any): void;
|
|
18
|
+
addBackWardCompatibility(agentassistSettings: any): any;
|
|
18
19
|
hideSendAndCopy(): void;
|
|
19
20
|
getAASettings(botId: string): Promise<any>;
|
|
20
21
|
JWTSetup(options: any): Promise<any>;
|
|
@@ -272,6 +272,11 @@ 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
|
+
DISABLED: string;
|
|
276
|
+
ASSIST_SCROLL_WRAPPER: string;
|
|
277
|
+
ASSIST_UP_ARROW: string;
|
|
278
|
+
ASSIST_DOWN_ARROW: string;
|
|
279
|
+
ASSIST_BLOCK_CONTENT: string;
|
|
275
280
|
};
|
|
276
281
|
export declare const IdMapConstant: {
|
|
277
282
|
PROACTIVE_BTN: string;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
export declare const FeebackConst: {
|
|
2
|
+
LIKE: string;
|
|
3
|
+
DISLIKE: string;
|
|
4
|
+
DISLIKE_LIST: string[];
|
|
5
|
+
DIALOGS: string;
|
|
6
|
+
FAQS: string;
|
|
7
|
+
ANSWERS: string;
|
|
8
|
+
SUMMARY: string;
|
|
9
|
+
DEFAULT_FEEDBACK_LANGUAGE_LIST: string[];
|
|
10
|
+
DEFAULT_SUGGESTION: {
|
|
11
|
+
dialogs: {
|
|
12
|
+
en: string[];
|
|
13
|
+
ar: string[];
|
|
14
|
+
de: string[];
|
|
15
|
+
es: string[];
|
|
16
|
+
fr: string[];
|
|
17
|
+
it: string[];
|
|
18
|
+
ja: string[];
|
|
19
|
+
ko: string[];
|
|
20
|
+
zh_cn: string[];
|
|
21
|
+
hi: string[];
|
|
22
|
+
te: string[];
|
|
23
|
+
ta: string[];
|
|
24
|
+
mr: string[];
|
|
25
|
+
as: string[];
|
|
26
|
+
bn: string[];
|
|
27
|
+
gu: string[];
|
|
28
|
+
kn: string[];
|
|
29
|
+
ml: string[];
|
|
30
|
+
ne: string[];
|
|
31
|
+
or: string[];
|
|
32
|
+
pa: string[];
|
|
33
|
+
nl: string[];
|
|
34
|
+
HE: string[];
|
|
35
|
+
ZH_TW: string[];
|
|
36
|
+
PT: string[];
|
|
37
|
+
ID: string[];
|
|
38
|
+
RU: string[];
|
|
39
|
+
TR: string[];
|
|
40
|
+
VI: string[];
|
|
41
|
+
PL: string[];
|
|
42
|
+
FA: string[];
|
|
43
|
+
UR: string[];
|
|
44
|
+
};
|
|
45
|
+
searchassist: {
|
|
46
|
+
en: string[];
|
|
47
|
+
ar: string[];
|
|
48
|
+
de: string[];
|
|
49
|
+
es: string[];
|
|
50
|
+
fr: string[];
|
|
51
|
+
it: string[];
|
|
52
|
+
ja: string[];
|
|
53
|
+
ko: string[];
|
|
54
|
+
zh_cn: string[];
|
|
55
|
+
hi: string[];
|
|
56
|
+
te: string[];
|
|
57
|
+
ta: string[];
|
|
58
|
+
mr: string[];
|
|
59
|
+
as: string[];
|
|
60
|
+
bn: string[];
|
|
61
|
+
gu: string[];
|
|
62
|
+
kn: string[];
|
|
63
|
+
ml: string[];
|
|
64
|
+
ne: string[];
|
|
65
|
+
or: string[];
|
|
66
|
+
pa: string[];
|
|
67
|
+
nl: string[];
|
|
68
|
+
he: string[];
|
|
69
|
+
zh_tw: string[];
|
|
70
|
+
pt: string[];
|
|
71
|
+
id: string[];
|
|
72
|
+
ru: string[];
|
|
73
|
+
tr: string[];
|
|
74
|
+
vi: string[];
|
|
75
|
+
pl: string[];
|
|
76
|
+
fa: string[];
|
|
77
|
+
ur: string[];
|
|
78
|
+
};
|
|
79
|
+
faqs: {
|
|
80
|
+
en: string[];
|
|
81
|
+
ar: string[];
|
|
82
|
+
de: string[];
|
|
83
|
+
es: string[];
|
|
84
|
+
fr: string[];
|
|
85
|
+
it: string[];
|
|
86
|
+
ja: string[];
|
|
87
|
+
ko: string[];
|
|
88
|
+
zh_cn: string[];
|
|
89
|
+
hi: string[];
|
|
90
|
+
te: string[];
|
|
91
|
+
ta: string[];
|
|
92
|
+
mr: string[];
|
|
93
|
+
as: string[];
|
|
94
|
+
bn: string[];
|
|
95
|
+
gu: string[];
|
|
96
|
+
kn: string[];
|
|
97
|
+
ml: string[];
|
|
98
|
+
ne: string[];
|
|
99
|
+
or: string[];
|
|
100
|
+
pa: string[];
|
|
101
|
+
nl: string[];
|
|
102
|
+
he: string[];
|
|
103
|
+
zh_tw: string[];
|
|
104
|
+
pt: string[];
|
|
105
|
+
id: string[];
|
|
106
|
+
ru: string[];
|
|
107
|
+
tr: string[];
|
|
108
|
+
vi: string[];
|
|
109
|
+
pl: string[];
|
|
110
|
+
fa: string[];
|
|
111
|
+
ur: string[];
|
|
112
|
+
};
|
|
113
|
+
summary: {
|
|
114
|
+
en: string[];
|
|
115
|
+
ar: string[];
|
|
116
|
+
de: string[];
|
|
117
|
+
es: string[];
|
|
118
|
+
fr: string[];
|
|
119
|
+
it: string[];
|
|
120
|
+
ja: string[];
|
|
121
|
+
ko: string[];
|
|
122
|
+
zh_cn: string[];
|
|
123
|
+
hi: string[];
|
|
124
|
+
te: string[];
|
|
125
|
+
ta: string[];
|
|
126
|
+
mr: string[];
|
|
127
|
+
as: string[];
|
|
128
|
+
bn: string[];
|
|
129
|
+
gu: string[];
|
|
130
|
+
kn: string[];
|
|
131
|
+
ml: string[];
|
|
132
|
+
ne: string[];
|
|
133
|
+
or: string[];
|
|
134
|
+
pa: string[];
|
|
135
|
+
nl: string[];
|
|
136
|
+
he: string[];
|
|
137
|
+
zh_tw: string[];
|
|
138
|
+
pt: string[];
|
|
139
|
+
id: string[];
|
|
140
|
+
ru: string[];
|
|
141
|
+
tr: string[];
|
|
142
|
+
vi: string[];
|
|
143
|
+
pl: string[];
|
|
144
|
+
fa: string[];
|
|
145
|
+
ur: string[];
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
@@ -4,7 +4,7 @@ export declare class rootService {
|
|
|
4
4
|
grantResponseObj: any;
|
|
5
5
|
prefsAccessObj: any;
|
|
6
6
|
connectionDetails: any;
|
|
7
|
-
|
|
7
|
+
aaSettings: any;
|
|
8
8
|
numOfLines: any;
|
|
9
9
|
maxHeight: any;
|
|
10
10
|
scrollHeight: any;
|
|
@@ -12,10 +12,9 @@ export declare class rootService {
|
|
|
12
12
|
idConstants: any;
|
|
13
13
|
faqambiguityResponse: boolean;
|
|
14
14
|
activeTab: string;
|
|
15
|
-
activeTabType: string;
|
|
16
15
|
internalTransfer: boolean;
|
|
17
16
|
internalTransferData: any;
|
|
18
|
-
|
|
17
|
+
proactiveMode: boolean;
|
|
19
18
|
OverRideMode: boolean;
|
|
20
19
|
manualAssistOverrideMode: boolean;
|
|
21
20
|
autoScrollStatus: boolean;
|
|
@@ -23,7 +22,6 @@ export declare class rootService {
|
|
|
23
22
|
assistTabSessionId: any;
|
|
24
23
|
sentSearchResponse: boolean;
|
|
25
24
|
searchedResultData: any;
|
|
26
|
-
proactiveMode: boolean;
|
|
27
25
|
socketConnect: boolean;
|
|
28
26
|
selCLInx: any;
|
|
29
27
|
selStInx: any;
|
|
@@ -48,7 +46,12 @@ export declare class rootService {
|
|
|
48
46
|
interruptDialogList: any;
|
|
49
47
|
mybotInterruptDialogList: any;
|
|
50
48
|
menuResponse: any;
|
|
51
|
-
|
|
49
|
+
aaHelpers: any;
|
|
50
|
+
defaultFeedbackSettings: any;
|
|
51
|
+
defaultSuggestionObj: any;
|
|
52
|
+
defaultwidgetSettings: any;
|
|
53
|
+
constructor(hostInstance: any);
|
|
54
|
+
updateDefaultFeedbackData(): void;
|
|
52
55
|
formatSearchResponse(response: any, isSearch: boolean | undefined, suggestionIndex: number, suggestionFrom?: string): any;
|
|
53
56
|
formatSnippetResponse(snippetsArray: any, response: any, suggestionIndex: number): any;
|
|
54
57
|
updateSearchResponse(assistResponseArray: any, response: any, ambiguityTokenExt: any): any;
|
|
@@ -119,6 +122,7 @@ export declare class rootService {
|
|
|
119
122
|
selectNextStage(prevCheckListsData: any, clIndex: number, stInx: number, hostInstance: any): void;
|
|
120
123
|
confirmationBtnForPlaybook(btn: any, eachPlaybookStep: any, hostInstance: any): void;
|
|
121
124
|
hideDropdownTemplate(cls: any): void;
|
|
125
|
+
prepareFeedbackForSummary(positionId: string): any;
|
|
122
126
|
prepareFeedbackForSuggestions(suggestionType: any, suggestion: any, feedbackData?: any): any;
|
|
123
127
|
prepareFeedbackDataForDialog(automation: any, feedbackData?: any): any;
|
|
124
128
|
makeOverrideEvent(hostInstance: any, flag: boolean): void;
|
|
@@ -127,6 +131,7 @@ export declare class rootService {
|
|
|
127
131
|
prepareSendCopyEventForRun(hostInstance: any, dialog: any, intent?: boolean): void;
|
|
128
132
|
matchDialogIdfromMenuResponse(dialog: any): any;
|
|
129
133
|
handleDialogClickEvents(menuHTML: any, dialogs: any, hostInstance: any): void;
|
|
134
|
+
removeRunwithAgentInputs(menuHTML: any): void;
|
|
130
135
|
runDialogForAssistOrMybot(hostInstance: any, dialog: any, runInitent?: boolean): void;
|
|
131
136
|
updateLocalStorageForAssist(hostInstance: any, dialog: any, flag: boolean): void;
|
|
132
137
|
updateAssistDialogTemplate(hostInstance: any, dialog: any, flag: boolean): void;
|
|
@@ -156,6 +161,8 @@ export declare class rootService {
|
|
|
156
161
|
toggleInterruptPopup: (hostInstance: any, flag: boolean) => void;
|
|
157
162
|
toggleTerminatePopup: (hostInstance: any, flag: boolean) => void;
|
|
158
163
|
toggleInterruptDropdown(hostInstance: any): void;
|
|
164
|
+
handleEmptyLine(answer: any, quotflag: boolean | undefined, type: string | undefined, hostInstace: any): string;
|
|
165
|
+
replaceLtGt(htmlString: any, quotflag: boolean): any;
|
|
159
166
|
handleWelcomeMsgResponse(welcomeMsgResponse: any, template: HTMLElement, hostInstance: any): void;
|
|
160
167
|
handleNodeResponse(automationNodeObj: any, template: HTMLElement, hostInstance: any): void;
|
|
161
168
|
insertActionTemplate(nodeObj: any, index: number | null, template: HTMLElement, hostInstance: any): void;
|
|
@@ -180,10 +187,10 @@ export declare class rootService {
|
|
|
180
187
|
messageNodeSendorCopyEvent(eventName: string, payload: any, automation: any, hostInstance: any): void;
|
|
181
188
|
buildBackendPayload(eventName: string, payload: any, automation: any): any;
|
|
182
189
|
getSessionId(): string;
|
|
183
|
-
renderFeedbackForEachSuggestion(suggestionListTemplate: any, suggestionList: any, hostInstance: any): void;
|
|
184
|
-
handleFeedbackType(automation: any, dialogWrapper: any, hostInstance: any): void;
|
|
185
|
-
handleFeebackClickEvents(helpSection: any, negativeFeedbackSection: any, feedbackWrapper: any,
|
|
186
|
-
prepareAndMakeFeedbackRequest(feedbackData: any, negativeFeedbackSection: HTMLElement, commentBox: HTMLInputElement, helpSection: HTMLElement, type: string, hostInstance: any): void;
|
|
190
|
+
renderFeedbackForEachSuggestion(suggestionListTemplate: any, suggestionList: any, feedbackType: string, hostInstance: any): void;
|
|
191
|
+
handleFeedbackType(automation: any, dialogWrapper: any, feedbackType: string, hostInstance: any): void;
|
|
192
|
+
handleFeebackClickEvents(helpSection: any, negativeFeedbackSection: any, feedbackWrapper: any, dislikeList: any, showComments: boolean, automation: any, hostInstance: any): void;
|
|
193
|
+
prepareAndMakeFeedbackRequest(feedbackData: any, negativeFeedbackSection: HTMLElement, commentBox: HTMLInputElement, helpSection: HTMLElement, type: string, dislikeList: any, showComments: boolean, hostInstance: any): void;
|
|
187
194
|
addSmallTalkTemplate(smallTalkObj: any, activeTab: string, hostInstance: any): void;
|
|
188
195
|
getSmallTalkTemplate(smallTalkObj: any, activeTab: string, hostInstance: any): HTMLElement | null;
|
|
189
196
|
addDialogTemplate(automationNodeObj: any, automation: any, activeTab: string, hostInstance: any): void;
|
|
@@ -218,5 +225,9 @@ export declare class rootService {
|
|
|
218
225
|
addorRemoveAttachemntFileError(automationNodeObj: any, hostInstance: any, hide?: boolean): void;
|
|
219
226
|
fileUploadCall(automationNodeObj: any, hostIns: any): void;
|
|
220
227
|
getuploadedFileURL(automationNodeObj: any, fileId: any, hostIns: any): void;
|
|
228
|
+
scrollToTop(element: any): void;
|
|
229
|
+
scrollToTillBottom(element: any): void;
|
|
230
|
+
handleAssistScroll(): void;
|
|
231
|
+
scrollBottomTranscript(): void;
|
|
221
232
|
}
|
|
222
233
|
export default rootService;
|
|
@@ -7,3 +7,5 @@ export declare function AskCustomer(props: any): h.JSX.Element;
|
|
|
7
7
|
export declare function TellCustomer(props: any): h.JSX.Element;
|
|
8
8
|
export declare function WelcomeMessage(props: any): h.JSX.Element;
|
|
9
9
|
export declare function AttachmentAskCustomer(props: any): h.JSX.Element;
|
|
10
|
+
export declare function ScrollUpArrowButtons(props: any): h.JSX.Element;
|
|
11
|
+
export declare function ScrollDownArrowButtons(props: any): h.JSX.Element;
|