@koredev/agentai-web-sdk 1.3.7-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.
@@ -6,6 +6,7 @@ declare class AAWindow extends EventEmitter {
6
6
  private localStorageService;
7
7
  private chatWindowInstance;
8
8
  private templateRenderService;
9
+ private chunkFileUploadService;
9
10
  chatEle: any;
10
11
  config: any;
11
12
  eventManager: any;
@@ -14,6 +15,7 @@ declare class AAWindow extends EventEmitter {
14
15
  sendUserMessage(_data: any): void;
15
16
  sendAgentMessage(_data: any): void;
16
17
  initShow(config: any): void;
18
+ addBackWardCompatibility(agentassistSettings: any): any;
17
19
  hideSendAndCopy(): void;
18
20
  getAASettings(botId: string): Promise<any>;
19
21
  JWTSetup(options: any): Promise<any>;
@@ -121,7 +121,8 @@ export declare enum DATA_EVENTS {
121
121
  'AGENT_AI_MENU_RESPONSE' = "AGENT_AI_MENU_RESPONSE",
122
122
  'END_OF_TASK_RESPONSE' = "END_OF_TASK_RESPONSE",
123
123
  'AGENT_ASSIST_USER_MESSAGE' = "AGENT_ASSIST_USER_MESSAGE",
124
- 'AGENT_FEEDBACK_RESPONSE' = "AGENT_FEEDBACK_RESPONSE"
124
+ 'AGENT_FEEDBACK_RESPONSE' = "AGENT_FEEDBACK_RESPONSE",
125
+ 'CALL_CONVERSATION_SUGGESTIONS' = "CALL_CONVERSATION_SUGGESTIONS"
125
126
  }
126
127
  export declare enum INTERNAL_EVENTS {
127
128
  'USER_TRANSCRIPT_MSG' = "USER_TRANSCRIPT_MSG",
@@ -84,6 +84,8 @@ export declare const ProjConstants: {
84
84
  SUGGESTION_MAXHEIGHT: number;
85
85
  DISCARD_ALL: string;
86
86
  INTERRUPT: string;
87
+ INCOMING: string;
88
+ OUTGOING: string;
87
89
  };
88
90
  export declare const coachingConst: any;
89
91
  export declare const serviceTabMap: any;
@@ -256,6 +258,25 @@ export declare const ClassMapConstanst: {
256
258
  ENTITY_HEADER: string;
257
259
  ENTITY_ERROR_OVERRIDE_TEXT: string;
258
260
  ENTITY_ERROR_MESSAGE: string;
261
+ ENTITY_ATTACHMENT_DIV: string;
262
+ ENTITY_CHOOSE_FILE: string;
263
+ ENTITY_DISPLAY_NAME: string;
264
+ INPUT_ATTACHMENT: string;
265
+ ENTITY_OVERRIDE_MSG: string;
266
+ ENTITY_ATTACHMENT_LARGE_FILE_MSG: string;
267
+ ENTITY_ATTACHMENT_VIEW: string;
268
+ TRANSCRIPT_BULB_COUNT: string;
269
+ TRANSCRIPT_BULB: string;
270
+ TRANSCRIPT_BUBBLE: string;
271
+ ENTITY_ATTACHMENT_VIEW_MODAL: string;
272
+ ENTITY_ATTACHMENT_IMAGE: string;
273
+ ENTITY_ATTACHMENT_BACK_BTN: string;
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;
259
280
  };
260
281
  export declare const IdMapConstant: {
261
282
  PROACTIVE_BTN: string;
@@ -278,4 +299,5 @@ export declare const IdMapConstant: {
278
299
  CHECKLIST_DRP_LIST_BTN: string;
279
300
  CHECKLIST_STAGE_DRP_BTN: string;
280
301
  CHECKLIST_STEP_TEMPLATE: string;
302
+ ASSIST_SUGGESTIONS: string;
281
303
  };
@@ -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
+ };
@@ -0,0 +1,18 @@
1
+ export declare class chunkFileUploadService {
2
+ private hostIns;
3
+ blobs: any;
4
+ totalChunks: any;
5
+ currChunk: any;
6
+ constructor(hostIns: any);
7
+ getFileToken(): Promise<unknown>;
8
+ uploadChunkFile(token: string, file: any): Promise<unknown>;
9
+ startChunkUpload(token: string, file: any, callback: any): Promise<void>;
10
+ serviceInvoke(endpoint: string, method: string, data: any, params: any, headers?: {}): Promise<any>;
11
+ }
12
+ export declare class MultipartData {
13
+ boundary: string;
14
+ private _fields;
15
+ constructor();
16
+ append(key: string, value: any): void;
17
+ toString(): string;
18
+ }
@@ -4,7 +4,7 @@ export declare class rootService {
4
4
  grantResponseObj: any;
5
5
  prefsAccessObj: any;
6
6
  connectionDetails: any;
7
- settingsData: any;
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
- proactiveModeStatus: boolean;
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
- constructor();
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, sampleSuggestions: any, automation: any, hostInstance: any): void;
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;
@@ -196,11 +203,15 @@ export declare class rootService {
196
203
  handleErrorPrompts(automation: any, automationNodeObj: any, hostInstance: any): void;
197
204
  appendAutomationEachNodeTemplate(dialogWrapper: any, template: any, automationNodeObj: any, dialogId: string): void;
198
205
  handleEntityNodeClickEvents(askCustTemplate: any, automationNodeObj: any, hostInstance: any): void;
199
- handleOverrideClick(e: any, errorTemplate: any, inputEle: any, removeBtn: any, checkBtn: any, automationNodeObj: any, hostInstance: any): void;
200
- handleRemoveClick(e: any, errorTemplate: any, inputEle: any, overrideBtn: any, removeBtn: any, checkBtn: any): void;
201
- handleCheckClick(e: any, inputEle: any, automationNodeObj: any, hostInstance: any, askCustTemplate: any): void;
202
- handleInputKeydown(e: any, inputEle: any, automationNodeObj: any, hostInstance: any, askCustTemplate: any): void;
206
+ handleViewClick(e: any, inputEle: any, askCustTemplate: any, automationNodeObj: any, hostIns: any): void;
207
+ handleChooseFile(e: any, inputEle: any, askCustTemplate: any, automationNodeObj: any): void;
208
+ handleOverrideClick(e: any, errorTemplate: any, inputEle: any, overrideBtn: any, askCustTemplate: any, removeBtn: any, checkBtn: any, automationNodeObj: any, hostInstance: any): void;
209
+ handleRemoveClick(e: any, errorTemplate: any, inputEle: any, overrideBtn: any, removeBtn: any, checkBtn: any, askCustTemplate: any, automationNodeObj: any, hostInstance: any): void;
210
+ 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;
203
212
  handleInputChange(e: any, inputEle: any, checkBtn: any): void;
213
+ showAttachmentView(automationNodeObj: any, askCustTemplate: any, inputEle: any): void;
214
+ toggleAttachmentDiv(automationNodeObj: any, askCustTemplate: any, inputEle: any, flag: boolean): void;
204
215
  assistInputValue(inputValue: any, automationNodeObj: any, hostInstance: any): void;
205
216
  handleEntityInput(node: any, hostInstance: any, disabled?: boolean): void;
206
217
  showAgentIcon(node: any, hostInstance: any): void;
@@ -211,5 +222,12 @@ export declare class rootService {
211
222
  getTemplateHtml(isTemplateRender: boolean, result: any, hostInstance: any): any;
212
223
  handleTemplateClickEvents(value: any, activeTab: string, positionId: string, hostInstance: any): void;
213
224
  closeListView(hostInstance: any): void;
225
+ addorRemoveAttachemntFileError(automationNodeObj: any, hostInstance: any, hide?: boolean): void;
226
+ fileUploadCall(automationNodeObj: any, hostIns: any): void;
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;
214
232
  }
215
233
  export default rootService;
@@ -3,6 +3,4 @@ export declare class templateRenderClassService {
3
3
  constructor(hostIns: any);
4
4
  prepareTemplateBody(elem: any, parsedPayload: any): any;
5
5
  getResponseUsingTemplate(res: any, history?: boolean): any;
6
- getResponseUsingTemplateForHistory(res: any): any;
7
- getMessageResponseForUserMessages(data: any, botId: string): any;
8
6
  }
@@ -3,3 +3,4 @@ export declare function addInterruptDropdownItem(props: any): h.JSX.Element;
3
3
  export declare function RenderTerminatePopup(props: any): h.JSX.Element;
4
4
  export declare function RenderInterruptionPopup(props: any): h.JSX.Element;
5
5
  export declare function RenderListView(props: any): h.JSX.Element;
6
+ export declare function RenderAttachmentImageView(props: any): h.JSX.Element;
@@ -6,3 +6,6 @@ export declare function DialogEnd(props: any): h.JSX.Element;
6
6
  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
+ 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;
@@ -1,3 +1,3 @@
1
1
  import { h } from 'preact';
2
- export declare function HelpfulFeedbackSection(): h.JSX.Element;
2
+ export declare function HelpfulFeedbackSection(props: any): h.JSX.Element;
3
3
  export declare function NegativeFeedbackSection(props: any): h.JSX.Element;
@@ -3,5 +3,6 @@ import './transcript.scss';
3
3
  interface TranscriptProps {
4
4
  hostInstance: any;
5
5
  }
6
+ export declare function BulbCount(props: any): h.JSX.Element;
6
7
  export declare function Transcript({ hostInstance }: TranscriptProps): h.JSX.Element;
7
8
  export {};