@product7/product7-js 0.3.6 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@product7/product7-js",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "JavaScript SDK for integrating Product7 feedback widgets into any website",
5
5
  "main": "dist/product7-js.js",
6
6
  "module": "src/index.js",
@@ -98,20 +98,20 @@ export class APIService extends BaseAPIService {
98
98
  return mockResponse;
99
99
  }
100
100
 
101
- const response = await this._makeRequest('/widget/messenger/identify', {
101
+ const response = await this._makeRequest('/widget/identify', {
102
102
  method: 'POST',
103
103
  headers: {
104
104
  'Content-Type': 'application/json',
105
105
  Authorization: `Bearer ${this.sessionToken}`,
106
106
  },
107
107
  body: JSON.stringify({
108
- user_id: metadata.user_id || null,
108
+ // user_id: metadata.user_id || null,
109
109
  email: metadata.email || '',
110
- name: metadata.name || '',
111
- phone: metadata.phone || '',
112
- company: metadata.company || '',
113
- avatar_url: metadata.avatar_url || '',
114
- metadata: metadata.custom_fields || {},
110
+ // name: metadata.name || '',
111
+ // phone: metadata.phone || '',
112
+ // company: metadata.company || '',
113
+ // avatar_url: metadata.avatar_url || '',
114
+ // metadata: metadata.custom_fields || {},
115
115
  }),
116
116
  });
117
117