starta.apiclient 1.112.12643 → 1.112.12683

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.
@@ -47,4 +47,8 @@ export default class Orders {
47
47
  isConfirmed: boolean;
48
48
  }): Promise<import("../../types").StartaResponse>;
49
49
  addPromocode(organizationLogin: string, orderId: string, promocode: string): Promise<import("../../types").StartaResponse>;
50
+ replyFeedback(organizationLogin: any, orderId: any, { text, fileIds }: {
51
+ text: string;
52
+ fileIds: Array<string>;
53
+ }): Promise<import("../../types").StartaResponse>;
50
54
  }
@@ -126,5 +126,12 @@ class Orders {
126
126
  },
127
127
  });
128
128
  }
129
+ replyFeedback(organizationLogin, orderId, { text, fileIds }) {
130
+ return this._requestRunner.performRequest({
131
+ url: `accounts/${organizationLogin}/orders/${orderId}/feedback/reply`,
132
+ method: 'PUT',
133
+ body: { text, fileIds },
134
+ });
135
+ }
129
136
  }
130
137
  exports.default = Orders;
@@ -30,11 +30,12 @@ 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, title, text, organizationLogin, organizationCountry, }: {
34
34
  featureId: string;
35
35
  ticketId: string;
36
36
  title: string;
37
37
  text: string;
38
38
  organizationLogin?: string;
39
+ organizationCountry?: string;
39
40
  }): Promise<import("../types").StartaResponse>;
40
41
  }
@@ -103,7 +103,7 @@ class EmailConfirmations {
103
103
  },
104
104
  });
105
105
  }
106
- sendNewFeatureNotificationToChats({ featureId, ticketId, title, text, organizationLogin, }) {
106
+ sendNewFeatureNotificationToChats({ featureId, ticketId, title, text, organizationLogin, organizationCountry, }) {
107
107
  return this._requestRunner.performRequest({
108
108
  url: `system/send-new-feature-notification-to-chats`,
109
109
  method: 'POST',
@@ -113,6 +113,7 @@ class EmailConfirmations {
113
113
  title,
114
114
  text,
115
115
  organizationLogin,
116
+ organizationCountry,
116
117
  },
117
118
  });
118
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.112.12643",
3
+ "version": "1.112.12683",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",