starta.apiclient 1.112.12457 → 1.112.12459

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.
@@ -3,7 +3,7 @@ export default class Chats {
3
3
  private _requestRunner;
4
4
  constructor(requestRunner: StartaRequestRunner);
5
5
  index(login: any, withSystemChats?: boolean): Promise<import("../types").StartaResponse>;
6
- getNumberOfUnreadMessages(login: any): Promise<import("../types").StartaResponse>;
6
+ getNumberOfUnreadMessages(login: any, withSystemChats?: boolean): Promise<import("../types").StartaResponse>;
7
7
  getThreads(login: any, loginWith: any): Promise<import("../types").StartaResponse>;
8
8
  setThreadTitle(login: any, loginWith: any, threadId: any, title: any): Promise<import("../types").StartaResponse>;
9
9
  removeThread(login: any, loginWith: any, threadId: any): Promise<import("../types").StartaResponse>;
@@ -16,9 +16,11 @@ class Chats {
16
16
  },
17
17
  });
18
18
  }
19
- getNumberOfUnreadMessages(login) {
19
+ getNumberOfUnreadMessages(login, withSystemChats = false) {
20
20
  return this._requestRunner.performRequest({
21
- url: `accounts/${login}/chats/number-of-unread-messages`,
21
+ url: `accounts/${login}/chats/number-of-unread-messages${(0, _helpers_1.buildQuery)({
22
+ withSystemChats,
23
+ })}`,
22
24
  method: 'GET',
23
25
  config: {
24
26
  rewriteBaseUrl: (url) => {
@@ -30,10 +30,9 @@ export default class EmailConfirmations {
30
30
  notifyAboutBirthdayOfCustomers(): Promise<import("../types").StartaResponse>;
31
31
  assignTrialCouponsForOrganizations(): Promise<import("../types").StartaResponse>;
32
32
  sendDailyReportEmails(organizationLogin?: string, daysShift?: number): Promise<import("../types").StartaResponse>;
33
- sendNewFeatureNotificationToChats({ featureId, ticketId, title, text, organizationLogin, }: {
33
+ sendNewFeatureNotificationToChats({ featureId, ticketId, text, organizationLogin, }: {
34
34
  featureId: string;
35
35
  ticketId: string;
36
- title: string;
37
36
  text: string;
38
37
  organizationLogin?: string;
39
38
  }): Promise<import("../types").StartaResponse>;
@@ -103,14 +103,13 @@ class EmailConfirmations {
103
103
  },
104
104
  });
105
105
  }
106
- sendNewFeatureNotificationToChats({ featureId, ticketId, title, text, organizationLogin, }) {
106
+ sendNewFeatureNotificationToChats({ featureId, ticketId, text, organizationLogin, }) {
107
107
  return this._requestRunner.performRequest({
108
108
  url: `system/send-new-feature-notification-to-chats`,
109
109
  method: 'POST',
110
110
  body: {
111
111
  featureId,
112
112
  ticketId,
113
- title,
114
113
  text,
115
114
  organizationLogin,
116
115
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.112.12457",
3
+ "version": "1.112.12459",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",