feat: add agent bots to assignment dropdown

This commit is contained in:
Sojan Jose
2026-06-26 01:12:54 -07:00
parent e86222034e
commit 4edf626af2
10 changed files with 92 additions and 13 deletions
@@ -90,11 +90,16 @@ describe('#ConversationAPI', () => {
});
it('#assignAgent', () => {
conversationAPI.assignAgent({ conversationId: 12, agentId: 34 });
conversationAPI.assignAgent({
conversationId: 12,
agentId: 34,
assigneeType: 'AgentBot',
});
expect(axiosMock.post).toHaveBeenCalledWith(
`/api/v1/conversations/12/assignments`,
{
assignee_id: 34,
assignee_type: 'AgentBot',
}
);
});