starta.apiclient 1.112.12392 → 1.112.12447

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.
@@ -37,6 +37,10 @@ export default class Orders {
37
37
  get(organizationOrCustomerLogin: string, orderId: any): Promise<import("../../types").StartaResponse>;
38
38
  add(organizationLogin: string, { products, usedMaterials, customerId, scheduleId, status, repeatSettings, organizationComment, loyaltyCardId, loyaltyProgramId, }: OrderData): Promise<import("../../types").StartaResponse>;
39
39
  update(organizationLogin: string, orderId: string, { products, usedMaterials, scheduleId, status, repeatSettings, organizationComment, customerId, loyaltyCardId, loyaltyProgramId, }: OrderData): Promise<import("../../types").StartaResponse>;
40
+ setPhotos(organizationLogin: string, orderId: string, photos: Array<{
41
+ imageId: string;
42
+ type: 'before' | 'after';
43
+ }>): Promise<import("../../types").StartaResponse>;
40
44
  cancel(organizationLogin: string, orderId: string, noShow?: boolean): Promise<import("../../types").StartaResponse>;
41
45
  delete(organizationLogin: string, orderId: string): Promise<import("../../types").StartaResponse>;
42
46
  setConfirmation(organizationOrCustomerLogin: string, orderId: string, { isConfirmed }: {
@@ -83,6 +83,15 @@ class Orders {
83
83
  },
84
84
  });
85
85
  }
86
+ setPhotos(organizationLogin, orderId, photos) {
87
+ return this._requestRunner.performRequest({
88
+ url: `accounts/${organizationLogin}/orders/${orderId}/photos`,
89
+ method: 'PUT',
90
+ body: {
91
+ photos,
92
+ },
93
+ });
94
+ }
86
95
  cancel(organizationLogin, orderId, noShow) {
87
96
  return this._requestRunner.performRequest({
88
97
  url: `accounts/${organizationLogin}/orders/${orderId}/status`,
@@ -30,4 +30,10 @@ 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, text, organizationLogin, }: {
34
+ featureId: string;
35
+ ticketId: string;
36
+ text: string;
37
+ organizationLogin?: string;
38
+ }): Promise<import("../types").StartaResponse>;
33
39
  }
@@ -103,5 +103,17 @@ class EmailConfirmations {
103
103
  },
104
104
  });
105
105
  }
106
+ sendNewFeatureNotificationToChats({ featureId, ticketId, text, organizationLogin, }) {
107
+ return this._requestRunner.performRequest({
108
+ url: `system/send-new-feature-notification-to-chats`,
109
+ method: 'POST',
110
+ body: {
111
+ featureId,
112
+ ticketId,
113
+ text,
114
+ organizationLogin,
115
+ },
116
+ });
117
+ }
106
118
  }
107
119
  exports.default = EmailConfirmations;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.112.12392",
3
+ "version": "1.112.12447",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",