diff --git a/packages/marketplace-models/package.json b/packages/marketplace-models/package.json index c703f9e2..ca2721c7 100644 --- a/packages/marketplace-models/package.json +++ b/packages/marketplace-models/package.json @@ -1,6 +1,6 @@ { "name": "@freshworks-jaya/marketplace-models", - "version": "0.1.25", + "version": "0.1.26", "description": "Provides type definitions for models in marketplace product events", "repository": "git@github.com:freshdesk/jaya-lib.git", "main": "lib/index.js", diff --git a/packages/marketplace-models/src/types/PayloadData.ts b/packages/marketplace-models/src/types/PayloadData.ts index a14dcf4f..63c942c2 100644 --- a/packages/marketplace-models/src/types/PayloadData.ts +++ b/packages/marketplace-models/src/types/PayloadData.ts @@ -146,6 +146,7 @@ export interface ReplyPart { } export interface Actor { + actor_source?: string; avatar: { url: string; }; diff --git a/packages/rule-engine/package.json b/packages/rule-engine/package.json index 6f51ee7d..6af34455 100644 --- a/packages/rule-engine/package.json +++ b/packages/rule-engine/package.json @@ -1,6 +1,6 @@ { "name": "@freshworks-jaya/rule-engine", - "version": "0.17.25-beta-02", + "version": "0.17.25-beta-03", "description": "Provides methods to process rules in product events in marketplace app", "repository": "git@github.com:freshdesk/jaya-lib.git", "main": "lib/index.js", @@ -46,7 +46,7 @@ "dependencies": { "@freshworks-jaya/freshchat-api": "0.7.33-beta-09", "@freshworks-jaya/kairos-api": "^0.1.5", - "@freshworks-jaya/marketplace-models": "0.1.25", + "@freshworks-jaya/marketplace-models": "0.1.26", "@freshworks-jaya/utilities": "^1.0.0", "@google-cloud/logging": "^9.3.1", "axios": "^0.21.4", diff --git a/packages/rule-engine/src/recommended/trigger-actions/update-conversation-property.ts b/packages/rule-engine/src/recommended/trigger-actions/update-conversation-property.ts index 963137e6..04f82385 100644 --- a/packages/rule-engine/src/recommended/trigger-actions/update-conversation-property.ts +++ b/packages/rule-engine/src/recommended/trigger-actions/update-conversation-property.ts @@ -7,6 +7,8 @@ export default (productEvent: Event, productEventData: ProductEventData, trigger return ( productEvent === Event.ConversationUpdate && + productEventData.actor?.actor_source != null && + productEventData.actor?.actor_source != 'API' && !!productEventData.changes.model_changes && (!!productEventData.changes.model_changes.assigned_agent_id || !!productEventData.changes.model_changes.assigned_group_id ||