@dialtribe/react-sdk 0.1.0-alpha.10 → 0.1.0-alpha.11

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/dist/index.mjs CHANGED
@@ -87,8 +87,9 @@ function getEndpoints(baseUrl = DIALTRIBE_API_BASE) {
87
87
  broadcast: (id) => `${baseUrl}/broadcasts/${id}`,
88
88
  contentPlay: `${baseUrl}/content/play`,
89
89
  presignedUrl: `${baseUrl}/media/presigned-url`,
90
- sessionStart: `${baseUrl}/session/start`,
91
- sessionPing: `${baseUrl}/session/ping`
90
+ audienceStart: `${baseUrl}/audiences/start`,
91
+ audiencePing: `${baseUrl}/audiences/ping`,
92
+ sessionPing: `${baseUrl}/sessions/ping`
92
93
  };
93
94
  }
94
95
  var ENDPOINTS = getEndpoints();
@@ -212,7 +213,7 @@ var DialTribeClient = class {
212
213
  * @returns audienceId and optional resumePosition
213
214
  */
214
215
  async startSession(params) {
215
- const response = await this.fetch(this.endpoints.sessionStart, {
216
+ const response = await this.fetch(this.endpoints.audienceStart, {
216
217
  method: "POST",
217
218
  body: JSON.stringify(params)
218
219
  });
@@ -231,7 +232,7 @@ var DialTribeClient = class {
231
232
  * - 3: UNMOUNT
232
233
  */
233
234
  async sendSessionPing(params) {
234
- const response = await this.fetch(this.endpoints.sessionPing, {
235
+ const response = await this.fetch(this.endpoints.audiencePing, {
235
236
  method: "POST",
236
237
  body: JSON.stringify(params)
237
238
  });