@koredev/agentai-web-sdk 1.3.3-rc → 1.3.4-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.
@@ -29,6 +29,10 @@ declare class AAWindow extends EventEmitter {
29
29
  openSearchTab(footerTag: any, isActive: false): void;
30
30
  openMybotTab(footerTag: any, isActive: false): void;
31
31
  openPlaybookTab(footerTag: any, isActive: false): void;
32
+ sendChecklistOpenedEvent(checklistParams: any): void;
33
+ sendChecklistResumeEvent(checklistParams: any): void;
34
+ sendChecklistStepCloseEvent(checklistParams: any): void;
35
+ sendChecklistProceedToCloseEvent(checklistParams: any): void;
32
36
  endOfConversation(): void;
33
37
  applyBranding(colors: any): void;
34
38
  }
@@ -69,7 +69,22 @@ export declare enum SDK_EVENTS {
69
69
  'SUMMARY_TEMPLATE_ASSIST' = "SUMMARY_TEMPLATE_ASSIST",
70
70
  'ON_ERROR' = "ON_ERROR",
71
71
  'AGENT_SEND_MESSAGE' = "AGENT_SEND_MESSAGE",
72
- 'AGENT_COPY_MESSAGE' = "AGENT_COPY_MESSAGE"
72
+ 'AGENT_COPY_MESSAGE' = "AGENT_COPY_MESSAGE",
73
+ 'PLAYBOOK_HEADER_TEMPLATE' = "PLAYBOOK_HEADER_TEMPLATE",
74
+ 'PLAYBOOK_BODY_TEMPLATE' = "PLAYBOOK_BODY_TEMPLATE",
75
+ 'PLAYBOOK_EMPTY_TEMPLATE' = "PLAYBOOK_EMPTY_TEMPLATE",
76
+ 'PLAYBOOK_SEND_EVENT' = "PLAYBOOK_SEND_EVENT",
77
+ 'PLAYBOOK_COPY_EVENT' = "PLAYBOOK_COPY_EVENT",
78
+ 'PLAYBOOK_CONFIRMATION_YES' = "PLAYBOOK_CONFIRMATION_YES",
79
+ 'PLAYBOOK_CONFIRMATION_NO' = "PLAYBOOK_CONFIRMATION_NO",
80
+ 'PLAYBOOK_PRIMARYLIST_TEMPLATE' = "PLAYBOOK_PRIMARYLIST_TEMPLATE",
81
+ 'PLAYBOOK_DYNAMICLIST_TEMPLATE' = "PLAYBOOK_DYNAMICLIST_TEMPLATE",
82
+ 'PLAYBOOK_STAGE_DROPDOWN_TEMPLATE' = "PLAYBOOK_STAGE_DROPDOWN_TEMPLATE",
83
+ 'PLAYBOOK_TRIGGERED_LIST_TEMPLATE' = "PLAYBOOK_TRIGGERED_LIST_TEMPLATE",
84
+ 'PLAYBOOK_OPENED_EVENT' = "PLAYBOOK_OPENED_EVENT",
85
+ 'PLAYBOOK_RESUME_EVENT' = "PLAYBOOK_RESUME_EVENT",
86
+ 'PLAYBOOK_STEP_CLOSED_EVENT' = "PLAYBOOK_STEP_CLOSED_EVENT",
87
+ 'PLAYBOOK_PROCEED_TO_CLOSE_EVENT' = "PLAYBOOK_PROCEED_TO_CLOSE_EVENT"
73
88
  }
74
89
  export declare enum DATA_EVENTS {
75
90
  'AGENT_COACHING_RESPONSES' = "AGENT_COACHING_RESPONSES",
@@ -78,11 +93,21 @@ export declare enum DATA_EVENTS {
78
93
  'AGENT_AI_RESPONSE' = "AGENT_AI_RESPONSE",
79
94
  'AGENT_AI_AGENT_RESPONSE' = "AGENT_AI_AGENT_RESPONSE",
80
95
  'PRO_ACTIVE_CHANGE' = "PRO_ACTIVE_CHANGE",
81
- 'RESOLUTION_COMMENTS_RESPONSE' = "RESOLUTION_COMMENTS_RESPONSE"
96
+ 'RESOLUTION_COMMENTS_RESPONSE' = "RESOLUTION_COMMENTS_RESPONSE",
97
+ 'CHECKLIST_RESPONSE' = "CHECKLIST_RESPONSE",
98
+ 'CHECKLIST_STEP_RESPONSE' = "CHECKLIST_STEP_RESPONSE"
82
99
  }
83
100
  export declare enum INTERNAL_EVENTS {
84
101
  'USER_TRANSCRIPT_MSG' = "USER_TRANSCRIPT_MSG",
85
102
  'AGENT_TRANSCRIPT_MSG' = "AGENT_TRANSCRIPT_MSG",
86
103
  'END_OF_CONVERSATION' = "END_OF_CONVERSATION",
87
- 'CONVERSATION_SUMMARY_IN_ASSIST' = "CONVERSATION_SUMMARY_IN_ASSIST"
104
+ 'CONVERSATION_SUMMARY_IN_ASSIST' = "CONVERSATION_SUMMARY_IN_ASSIST",
105
+ 'GET_CHECKLISTS' = "GET_CHECKLISTS"
106
+ }
107
+ export declare enum EVENTS_TO_SDK {
108
+ UPDATE_ACTIVE_TAB = "updateActiveTab",
109
+ CHECKLIST_OPEN = "checklistOpened",
110
+ CHECLIST_RESUME = "checklistResume",
111
+ CHECKLIST_STEP_CLOSE = "checklistStepClosed",
112
+ CHECKLIST_PROCEED_TO_CLOSE = "checklistProceedToClosed"
88
113
  }
@@ -5,6 +5,7 @@ export declare const Tabs: {
5
5
  TRANSCRIPT: string;
6
6
  HISTORY: string;
7
7
  SETTINGS: string;
8
+ CHECKLIST: string;
8
9
  SMARTASSIST_SOURCE: string;
9
10
  };
10
11
  export declare const RenderResponseType: {
@@ -78,6 +79,7 @@ export declare const ProjConstants: {
78
79
  };
79
80
  export declare const coachingConst: any;
80
81
  export declare const serviceTabMap: any;
82
+ export declare const PlaybookColorMap: any;
81
83
  export declare const ClassMapConstanst: {
82
84
  HEADER: string;
83
85
  FOOTER: string;
@@ -128,6 +130,51 @@ export declare const ClassMapConstanst: {
128
130
  MORE_BUTTON: string;
129
131
  SUGGESTION_EXPANDED: string;
130
132
  TRANSCRIPT_BODY_WRAPPER: string;
133
+ TRIGGER_CHECKLIST_BULB_COUNT: string;
134
+ TRIGGER_CHECKLIST_BTN: string;
135
+ TRIGGER_CHECKLIST_NAME: string;
136
+ TRIGGER_CHECKLIST_STEPCOUNT: string;
137
+ TRIGGET_CHECKLIST_DROPDOWN: string;
138
+ TRIGGER_CHECKLIST_DROPDOWN_WRAPPER: string;
139
+ CHECKLIST_DROPDOWN_WRAPPER: string;
140
+ CHECKLIST_DROPDOWN: string;
141
+ PRIMARY_SCRIPTS: string;
142
+ DYNAMIC_SCRIPTS: string;
143
+ SELECTED_CHECKLIST: string;
144
+ SELECTED_CHECKLIST_ARROW: string;
145
+ STAGE_DRP_WRAPPER_MAIN: string;
146
+ STAGE_DRP_WRAPPER: string;
147
+ SELECTED_STAGE: string;
148
+ SELECTED_STAGE_ARROW: string;
149
+ STAGE_DROPDOWN: string;
150
+ STEP_COMPLETE_COUNT: string;
151
+ PROCEEDTOCLOSE_BTN: string;
152
+ PRIMARY_CHECKLIST_BTN: string;
153
+ PRIMARY_CHECKLIST_RESUME_BTN: string;
154
+ DYNAMIC_CHECKLIST_BTN: string;
155
+ DYNAMIC_CHECKLIST_RESUME_BTN: string;
156
+ CHECKLIST_HEADER: string;
157
+ CHECKLIST_HEADER_STEP: string;
158
+ CHECKLIST_HEADER_STEP_NAME: string;
159
+ CHECKLIST_EACH_STEP: string;
160
+ CHECKLIST_DISABLE_MSG: string;
161
+ CHECKLIST_STRIKE: string;
162
+ CHECKLIST_STEP_COMPLETE_BTN: string;
163
+ CHECKLIST_STEP_SEND_BLOCK: string;
164
+ CHECKLIST_STEP_ONGOING: string;
165
+ CHECKLIST_STEP_COPY_BTN: string;
166
+ CHECKLIST_STEP_SEND_BTN: string;
167
+ CHECKLIST_STEP_CONFIRMATION_BTN: string;
168
+ CHECKLIST_CLOSE_STEPS: string;
169
+ CHECKLIST_CLOSE_STAGE: string;
170
+ CHECKLIST_ITEM_CHECK: string;
171
+ CHECKLIST_EACH_ITEM: string;
172
+ CHECKLIST_EACH_RESUME: string;
173
+ CHECKLIST_CLOSE_STAGE_BTN: string;
174
+ CHECKLIST_EACH_STAGE_DRP_ITEM: string;
175
+ CHECKLIST_SELECTED_STAGE_CHECK: string;
176
+ CHECKLIST_EMPTY: string;
177
+ TRIGGER_CHECKLIST_COUNT_BTN: string;
131
178
  };
132
179
  export declare const IdMapConstant: {
133
180
  PROACTIVE_BTN: string;
@@ -142,4 +189,10 @@ export declare const IdMapConstant: {
142
189
  SEARCH_INPUT: string;
143
190
  SEARCH_SUGGESTION_BLOCK: string;
144
191
  SUMMARY_OVERLAY_BLOCK: string;
192
+ CHECKLIST_MAIN_TEMPLATE: string;
193
+ CHECKLIST_BODY_TEMPLATE: string;
194
+ TRIGGER_CHECKLIST_DRP: string;
195
+ CHECKLIST_DRP_LIST_BTN: string;
196
+ CHECKLIST_STAGE_DRP_BTN: string;
197
+ CHECKLIST_STEP_TEMPLATE: string;
145
198
  };
@@ -16,6 +16,12 @@ export declare class rootService {
16
16
  sentSearchResponse: boolean;
17
17
  searchedResultData: any;
18
18
  proactiveMode: boolean;
19
+ socketConnect: boolean;
20
+ selCLInx: any;
21
+ selStInx: any;
22
+ selSpInx: any;
23
+ isProceedToClose: boolean;
24
+ dynClObjs: any;
19
25
  constructor();
20
26
  formatWelcomeMessageResponse(data: any): any;
21
27
  formatSearchResponse(response: any, isSearch: boolean | undefined, suggestionIndex: number): any;
@@ -72,5 +78,21 @@ export declare class rootService {
72
78
  addOrHideFAQActionExpandCloseElements(faq: any, hideActionButtons: any, hideCopyButton: any, hideSendButton: any, suggestionHeaderTemplate: any, faqListHTML: any, index: any, hostInstance: any): void;
73
79
  handleSeeMoreButtonsForSearchAssist(suggestionElement: any, descClassName: any, moreContainer: any, hostInstance: any): void;
74
80
  handleSeeMoreButtonsForFaq(suggestionElement: any, descClassName: any, moreContainer: any, hostInstance: any, faqinx?: number): void;
81
+ prepareChecklistPayload(event: any, checkListData: any, checklistObj: any, step?: boolean): any;
82
+ sendAndCopyForPlaybook(eventName: string, payload: any, eachPlaybookStep: any, hostInstance: any): void;
83
+ sendCheckListCompleteEvent(prevCheckListsData: any, id: any, hostInstance: any): void;
84
+ checkAllStagesCompleted(prevCheckListsData: any, id: any, hostInstance: any): void;
85
+ updateStepTemplate(prevCheckListsData: any, hostInstance: any): void;
86
+ selectNextStep(prevCheckListsData: any, clIndex: number, stInx: number, hostInstance: any): boolean;
87
+ closeAllStepsInStage(prevCheckListsData: any, clIndex: number, stInx: number): void;
88
+ selectStepForRandom(stInx: number, step: any, stepInx: number, hostInstance: any): void;
89
+ selectStage(prevCheckListsData: any, clIndex: number, stInx: number, hostInstance: any): void;
90
+ scrollView(stepId: any, hostInstance: any): void;
91
+ showProceedToCloseBtn(hostInstance: any): void;
92
+ clickStep(prevCheckListsData: any, stInx: number, step: any, stepInx: number, hostInstance: any): void;
93
+ getNumberstepCompInStage(prevCheckListsData: any): number;
94
+ handleStageCheck(parentEle: any, stInx: number, stageList: any, hostInstance: any): void;
95
+ selectNextStage(prevCheckListsData: any, clIndex: number, stInx: number, hostInstance: any): void;
96
+ confirmationBtnForPlaybook(btn: any, eachPlaybookStep: any, hostInstance: any): void;
75
97
  }
76
98
  export default rootService;
@@ -0,0 +1,10 @@
1
+ import { h } from 'preact';
2
+ import './playbook.scss';
3
+ export declare function RenderEachStageItem(props: any): h.JSX.Element;
4
+ export declare function RenderEachPrimaryChecklistItem(props: any): h.JSX.Element;
5
+ export declare function RenderEachDynamicChecklistItem(props: any): h.JSX.Element;
6
+ export declare function RenderEachTriggeredChecklist(props: any): h.JSX.Element;
7
+ export declare function RenderEmptyPlaybookMsg(props: any): h.JSX.Element;
8
+ export declare function RenderPlaybookHeader(props: any): h.JSX.Element;
9
+ export declare function RenderChecklistBody(props: any): h.JSX.Element;
10
+ export declare function Playbook({ hostInstance }: any): h.JSX.Element;