diff --git a/packages/freshchat-api/package.json b/packages/freshchat-api/package.json index f9ad0a3..307915f 100644 --- a/packages/freshchat-api/package.json +++ b/packages/freshchat-api/package.json @@ -1,6 +1,6 @@ { "name": "@freshworks-jaya/freshchat-api", - "version": "0.7.35-beta-05", + "version": "0.7.36", "description": "Provides simple interface for accessing Freshchat's public APIs", "repository": "git@github.com:freshdesk/jaya-lib.git", "main": "lib/index.js", diff --git a/packages/freshchat-api/src/index.ts b/packages/freshchat-api/src/index.ts index 822a08c..836e73a 100644 --- a/packages/freshchat-api/src/index.ts +++ b/packages/freshchat-api/src/index.ts @@ -460,19 +460,10 @@ export default class Freshchat { assigned_agent_id: string, ): AxiosPromise { const conversationPropsUpdateApiUrl = `${this.apiUrl}/conversations/${conversationId}`; - let requiredProperties; - if (assigned_agent_id !== '' && status === ConversationStatus.Assigned) { - requiredProperties = JSON.stringify({ - assigned_agent_id, + let requiredProperties = JSON.stringify({ properties, status, }); - } else { - requiredProperties = JSON.stringify({ - properties, - status, - }); - } return axios.put(conversationPropsUpdateApiUrl, requiredProperties, { headers: this.headers }); } diff --git a/packages/rule-engine/package.json b/packages/rule-engine/package.json index 569ec0c..2c24cab 100644 --- a/packages/rule-engine/package.json +++ b/packages/rule-engine/package.json @@ -1,6 +1,6 @@ { "name": "@freshworks-jaya/rule-engine", - "version": "0.18.2", + "version": "0.18.3", "description": "Provides methods to process rules in product events in marketplace app", "repository": "git@github.com:freshdesk/jaya-lib.git", "main": "lib/index.js", @@ -44,7 +44,7 @@ "typescript": "^4.3.2" }, "dependencies": { - "@freshworks-jaya/freshchat-api": "0.7.35-beta-05", + "@freshworks-jaya/freshchat-api": "0.7.36", "@freshworks-jaya/kairos-api": "^0.1.5", "@freshworks-jaya/marketplace-models": "0.1.36", "@freshworks-jaya/utilities": "^1.0.0",