@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.
@@ -1530,20 +1530,20 @@
1530
1530
  return mockResponse;
1531
1531
  }
1532
1532
 
1533
- const response = await this._makeRequest('/widget/messenger/identify', {
1533
+ const response = await this._makeRequest('/widget/identify', {
1534
1534
  method: 'POST',
1535
1535
  headers: {
1536
1536
  'Content-Type': 'application/json',
1537
1537
  Authorization: `Bearer ${this.sessionToken}`,
1538
1538
  },
1539
1539
  body: JSON.stringify({
1540
- user_id: metadata.user_id || null,
1540
+ // user_id: metadata.user_id || null,
1541
1541
  email: metadata.email || '',
1542
- name: metadata.name || '',
1543
- phone: metadata.phone || '',
1544
- company: metadata.company || '',
1545
- avatar_url: metadata.avatar_url || '',
1546
- metadata: metadata.custom_fields || {},
1542
+ // name: metadata.name || '',
1543
+ // phone: metadata.phone || '',
1544
+ // company: metadata.company || '',
1545
+ // avatar_url: metadata.avatar_url || '',
1546
+ // metadata: metadata.custom_fields || {},
1547
1547
  }),
1548
1548
  });
1549
1549