@arrowsphere/api-client 3.35.0 → 3.36.1-rc.fdi.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [3.36.1] - 2023-06-12
7
+
8
+ ### Changed
9
+
10
+ - Fix path for notification Endpoint
11
+
12
+ ## [3.36.0] - 2023-06-09
13
+
14
+ ### Changed
15
+
16
+ - Reset path after each url generation
6
17
 
7
18
  ## [3.35.0] - 2023-06-08
8
19
 
@@ -207,6 +207,8 @@ class AbstractRestfulClient extends AbstractHttpClient_1.AbstractHttpClient {
207
207
  if (Object.values(params).length) {
208
208
  url.search = querystring_1.default.stringify(params);
209
209
  }
210
+ // We need to set the value back to empty in case we have a new call with the same instance.
211
+ this.path = '';
210
212
  return url.toString();
211
213
  }
212
214
  /**
@@ -33,11 +33,11 @@ class NotificationsClient extends abstractRestfulClient_1.AbstractRestfulClient
33
33
  return await this.delete(parameters);
34
34
  }
35
35
  async getOne(notificationId, parameters = {}) {
36
- this.path = `${notificationId}`;
36
+ this.path = `/${notificationId}`;
37
37
  return new getResult_1.GetResult(notification_1.Notification, await this.get(parameters));
38
38
  }
39
39
  async deleteOne(notificationId, parameters = {}) {
40
- this.path = `${notificationId}`;
40
+ this.path = `/${notificationId}`;
41
41
  return await this.delete(parameters);
42
42
  }
43
43
  async readAll(payload = {}, parameters = {}) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.35.0",
7
+ "version": "3.36.1-rc.fdi.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",