@product7/product7-js 0.5.8 → 0.5.9

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.5.8",
3
+ "version": "0.5.9",
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",
@@ -21,7 +21,7 @@ export class LiveChatService {
21
21
  };
22
22
  }
23
23
 
24
- return this.api._makeRequest('/widget/liveChat/settings', {
24
+ return this.api._makeRequest('/widget/livechat/settings', {
25
25
  method: 'GET',
26
26
  headers: { Authorization: `Bearer ${this.api.sessionToken}` },
27
27
  });
@@ -45,7 +45,7 @@ export class LiveChatService {
45
45
  };
46
46
  }
47
47
 
48
- return this.api._makeRequest('/widget/liveChat/agents/online', {
48
+ return this.api._makeRequest('/widget/livechat/agents/online', {
49
49
  method: 'GET',
50
50
  headers: { Authorization: `Bearer ${this.api.sessionToken}` },
51
51
  });
@@ -64,7 +64,7 @@ export class LiveChatService {
64
64
  }
65
65
 
66
66
  const endpoint = this.api._getEndpointWithParams(
67
- '/widget/liveChat/conversations',
67
+ '/widget/livechat/conversations',
68
68
  options
69
69
  );
70
70
  return this.api._makeRequest(endpoint, {
@@ -86,7 +86,7 @@ export class LiveChatService {
86
86
  }
87
87
 
88
88
  return this.api._makeRequest(
89
- `/widget/liveChat/conversations/${conversationId}`,
89
+ `/widget/livechat/conversations/${conversationId}`,
90
90
  {
91
91
  method: 'GET',
92
92
  headers: { Authorization: `Bearer ${this.api.sessionToken}` },
@@ -120,7 +120,7 @@ export class LiveChatService {
120
120
  return { status: true, data: newConv };
121
121
  }
122
122
 
123
- return this.api._makeRequest('/widget/liveChat/conversations', {
123
+ return this.api._makeRequest('/widget/livechat/conversations', {
124
124
  method: 'POST',
125
125
  headers: {
126
126
  'Content-Type': 'application/json',
@@ -154,7 +154,7 @@ export class LiveChatService {
154
154
  }
155
155
 
156
156
  return this.api._makeRequest(
157
- `/widget/liveChat/conversations/${conversationId}/messages`,
157
+ `/widget/livechat/conversations/${conversationId}/messages`,
158
158
  {
159
159
  method: 'POST',
160
160
  headers: {
@@ -183,7 +183,7 @@ export class LiveChatService {
183
183
  };
184
184
  }
185
185
 
186
- return this.api._makeRequest('/widget/liveChat/unread', {
186
+ return this.api._makeRequest('/widget/livechat/unread', {
187
187
  method: 'GET',
188
188
  headers: { Authorization: `Bearer ${this.api.sessionToken}` },
189
189
  });
@@ -197,7 +197,7 @@ export class LiveChatService {
197
197
  }
198
198
 
199
199
  return this.api._makeRequest(
200
- `/widget/liveChat/conversations/${conversationId}/read`,
200
+ `/widget/livechat/conversations/${conversationId}/read`,
201
201
  {
202
202
  method: 'POST',
203
203
  headers: { Authorization: `Bearer ${this.api.sessionToken}` },
@@ -219,7 +219,7 @@ export class LiveChatService {
219
219
 
220
220
  const params = { ...options };
221
221
  const endpoint = this.api._getEndpointWithParams(
222
- `/widget/liveChat/conversations/${conversationId}/messages`,
222
+ `/widget/livechat/conversations/${conversationId}/messages`,
223
223
  params
224
224
  );
225
225
  return this.api._makeRequest(endpoint, {
@@ -236,7 +236,7 @@ export class LiveChatService {
236
236
  return { status: true, url: `https://mock-cdn.example.com/${filename}` };
237
237
  }
238
238
 
239
- return this.api._makeRequest('/widget/liveChat/upload', {
239
+ return this.api._makeRequest('/widget/livechat/upload', {
240
240
  method: 'POST',
241
241
  headers: {
242
242
  'Content-Type': 'application/json',
@@ -258,7 +258,7 @@ export class LiveChatService {
258
258
  }
259
259
 
260
260
  return this.api._makeRequest(
261
- `/widget/liveChat/conversations/${conversationId}/rating`,
261
+ `/widget/livechat/conversations/${conversationId}/rating`,
262
262
  {
263
263
  method: 'POST',
264
264
  headers: {
@@ -278,7 +278,7 @@ export class LiveChatService {
278
278
  }
279
279
 
280
280
  return this.api._makeRequest(
281
- `/widget/liveChat/conversations/${conversationId}/typing`,
281
+ `/widget/livechat/conversations/${conversationId}/typing`,
282
282
  {
283
283
  method: 'POST',
284
284
  headers: {