@signalhousellc/sdk 1.0.16 → 1.0.17

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": "@signalhousellc/sdk",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Signal House SDK for use with the Signal House platform",
5
5
  "type": "module",
6
6
  "main": "src/SignalHouseSDK.js",
@@ -21,7 +21,7 @@ export class Notifications {
21
21
  async getNotifications({ id, groupId, page, limit, status, eventTypes, options = {} }) {
22
22
  this.client._require({ "id or groupId": id ?? groupId });
23
23
  const queryString = this.client._getQueryString({ id, groupId, page, limit, status, eventTypes });
24
- return this.client(`/notifications${queryString}`, { method: "GET", ...options });
24
+ return this.client(`/notification${queryString}`, { method: "GET", ...options });
25
25
  }
26
26
 
27
27
  /**
@@ -36,7 +36,7 @@ export class Notifications {
36
36
  */
37
37
  async updateNotificationStatus({ ids, status, options = {} }) {
38
38
  this.client._require({ ids, status });
39
- return this.client(`/notifications/status`, { method: "PUT", body: { ids, status }, ...options });
39
+ return this.client(`/notification/status`, { method: "PUT", body: { ids, status }, ...options });
40
40
  }
41
41
 
42
42
  /**
@@ -51,6 +51,6 @@ export class Notifications {
51
51
  async deleteNotification({ id, options = {} }) {
52
52
  this.client._require({ id });
53
53
  const safeId = encodeURIComponent(id);
54
- return this.client(`/notifications/${safeId}`, { method: "DELETE", ...options });
54
+ return this.client(`/notification/${safeId}`, { method: "DELETE", ...options });
55
55
  }
56
56
  }