starta.apiclient 1.37.1021 → 1.37.1022

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.
@@ -11,6 +11,11 @@ var Chat = /** @class */ (function () {
11
11
  return this._requestRunner.performRequest({
12
12
  url: "accounts/".concat(login, "/chatMessages"),
13
13
  method: 'GET',
14
+ config: {
15
+ rewriteBaseUrl: function (url) {
16
+ return url.replace('/api', '/comm/api');
17
+ },
18
+ },
14
19
  });
15
20
  };
16
21
  Chat.prototype.addMessage = function (login, _a) {
@@ -23,6 +28,11 @@ var Chat = /** @class */ (function () {
23
28
  text: text
24
29
  },
25
30
  },
31
+ config: {
32
+ rewriteBaseUrl: function (url) {
33
+ return url.replace('/api', '/comm/api');
34
+ },
35
+ },
26
36
  });
27
37
  };
28
38
  return Chat;
@@ -74,9 +74,7 @@ var StartaApiClient = /** @class */ (function () {
74
74
  });
75
75
  Object.defineProperty(StartaApiClient.prototype, "chat", {
76
76
  get: function () {
77
- var chat = new chat_1.default(this._requestRunner);
78
- chat.setRequestRunner(this._requestRunner.replaceBaseUrl(function (baseUrl) { return baseUrl.replace('/api', '/comm/api'); }));
79
- return chat;
77
+ return new chat_1.default(this._requestRunner);
80
78
  },
81
79
  enumerable: false,
82
80
  configurable: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.1021",
3
+ "version": "1.37.1022",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",