Feature: Rich Message Types (#610)

Co-authored-by: Pranav Raj S <pranavrajs@gmail.com>
Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
This commit is contained in:
Sojan Jose 2020-04-10 16:42:37 +05:30 committed by GitHub
parent 48f603798b
commit b0950d6880
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
58 changed files with 997 additions and 146 deletions

View file

@ -2,10 +2,11 @@ import authEndPoint from 'widget/api/endPoints';
import { API } from 'widget/helpers/axios';
export default {
update: ({ messageId, email }) => {
const urlData = authEndPoint.updateContact(messageId);
update: ({ messageId, email, values }) => {
const urlData = authEndPoint.updateMessage(messageId);
return API.patch(urlData.url, {
contact: { email },
message: { submitted_values: values },
});
},
};