impact-chatbot 2.3.15 → 2.3.17

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.
@@ -4,6 +4,7 @@ export declare const getSmartBotVisibilityData: () => any;
4
4
  export declare const refreshAndUpdateUserManualApi: (body: any) => Promise<any>;
5
5
  export declare const fetchScreensForModule: (flowType: any) => Promise<any>;
6
6
  export declare const likeDislikeComment: (payload: any) => Promise<any>;
7
+ export declare const likeDislikeCommentForAgent: (payload: any, baseUrl: any) => Promise<any>;
7
8
  export declare const fetchIntentApiResponse: (input?: string) => Promise<any>;
8
9
  export declare const fetchAgentsInfo: (baseUrl: any) => Promise<any>;
9
10
  export declare const initiateAgent: (payload: any, baseUrl: any) => Promise<any>;
@@ -10,6 +10,13 @@ export declare const pxToRem: (pxValue: number) => string;
10
10
  * Replace special characters in a string
11
11
  */
12
12
  export declare const replaceSpecialCharacter: (str: any) => any;
13
+ /**
14
+ * @function
15
+ * @description Function is used to return string by replacing the special characters with respective key mapped to SPECIAL_CHARACTER_MAPPING
16
+ * @param {String} str
17
+ * @returns {String} key of mapped special character used in the string
18
+ */
19
+ export declare const replaceSpecialCharToCharCode: (str: any) => any;
13
20
  /**
14
21
  * Fetch base URL from tenant config
15
22
  * This is a stub - the actual implementation should be passed as a prop
package/dist/utlis.d.ts CHANGED
@@ -26,7 +26,7 @@ export declare const parseResponse: (data: any, type: string, agentId?: string,
26
26
  * @param {object} templateData
27
27
  * @returns
28
28
  */
29
- export declare const handleMessageLike: (question: any, liked: any, setLoadingState: any, displaySnackMessages: any, templateData: any, activeConversationId: any, answer: any, chatDataInfoRef: any, chatIndex: any, setChatDataState: any) => Promise<boolean>;
29
+ export declare const handleMessageLike: (question: any, liked: any, setLoadingState: any, displaySnackMessages: any, templateData: any, activeConversationId: any, answer: any, chatDataInfoRef: any, chatIndex: any, setChatDataState: any, baseUrl: any, sessionId: any) => Promise<boolean>;
30
30
  export declare const ensureConversationExists: (mode: any, conversationId: any, chatDataRef: any) => void;
31
31
  export declare const removeAfterLastDash: (str: any) => any;
32
32
  export declare const transformValues: (data: any) => any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impact-chatbot",
3
- "version": "2.3.15",
3
+ "version": "2.3.17",
4
4
  "description": "Standalone chatbot library - 1:1 copy of smartBot converted to TypeScript",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",