Feature: Send chat transcript via email (#1152)

Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
Sojan Jose 2020-08-17 11:25:13 +05:30 committed by GitHub
parent 4b70e4e3d6
commit 22880df429
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 559 additions and 59 deletions

View file

@ -53,6 +53,10 @@ class ConversationApi extends ApiClient {
},
});
}
sendEmailTranscript({ conversationId, email }) {
return axios.post(`${this.url}/${conversationId}/transcript`, { email });
}
}
export default new ConversationApi();

View file

@ -15,5 +15,6 @@ describe('#ConversationAPI', () => {
expect(conversationAPI).toHaveProperty('toggleTyping');
expect(conversationAPI).toHaveProperty('mute');
expect(conversationAPI).toHaveProperty('meta');
expect(conversationAPI).toHaveProperty('sendEmailTranscript');
});
});