starta.apiclient 1.112.12284 → 1.112.12418
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.
|
@@ -80,7 +80,7 @@ export default class Organizations {
|
|
|
80
80
|
}): Promise<import("../../types").StartaResponse>;
|
|
81
81
|
setDescription(organizationLogin: any, description: any): Promise<import("../../types").StartaResponse>;
|
|
82
82
|
getBookingWidgetSettings(organizationLogin: any): Promise<import("../../types").StartaResponse>;
|
|
83
|
-
setBookingWidgetSettings(organizationLogin: any, { enabled, bookingInterval, theme, schedulingPreference, multibookingEnabled, confirmOrders, preventGaps, maxDaysInFutureForBooking, mfuDiscountEnabled, mfuDiscount, prepaymentSettings, }: {
|
|
83
|
+
setBookingWidgetSettings(organizationLogin: any, { enabled, bookingInterval, theme, schedulingPreference, multibookingEnabled, confirmOrders, preventGaps, maxDaysInFutureForBooking, mfuDiscountEnabled, mfuDiscount, prepaymentSettings, allowFastBookingViaSMS, }: {
|
|
84
84
|
enabled: boolean;
|
|
85
85
|
bookingInterval?: number;
|
|
86
86
|
theme?: 'dark' | 'light' | 'pink';
|
|
@@ -96,6 +96,7 @@ export default class Organizations {
|
|
|
96
96
|
prepaymentAmount?: number;
|
|
97
97
|
prepaymentType?: 'absolute' | 'relative';
|
|
98
98
|
};
|
|
99
|
+
allowFastBookingViaSMS?: boolean;
|
|
99
100
|
}): Promise<import("../../types").StartaResponse>;
|
|
100
101
|
setBookingWidgetStyles(organizationLogin: any, bookingWidgetStyles: any): Promise<import("../../types").StartaResponse>;
|
|
101
102
|
getMarketingEmail(organizationLogin: string): Promise<import("../../types").StartaResponse>;
|
|
@@ -145,7 +145,7 @@ class Organizations {
|
|
|
145
145
|
method: 'GET',
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
setBookingWidgetSettings(organizationLogin, { enabled, bookingInterval, theme, schedulingPreference, multibookingEnabled, confirmOrders, preventGaps, maxDaysInFutureForBooking, mfuDiscountEnabled, mfuDiscount, prepaymentSettings, }) {
|
|
148
|
+
setBookingWidgetSettings(organizationLogin, { enabled, bookingInterval, theme, schedulingPreference, multibookingEnabled, confirmOrders, preventGaps, maxDaysInFutureForBooking, mfuDiscountEnabled, mfuDiscount, prepaymentSettings, allowFastBookingViaSMS, }) {
|
|
149
149
|
return this._requestRunner.performRequest({
|
|
150
150
|
url: `accounts/${organizationLogin}/bookingWidget/settings`,
|
|
151
151
|
method: 'PATCH',
|
|
@@ -161,6 +161,7 @@ class Organizations {
|
|
|
161
161
|
mfuDiscountEnabled,
|
|
162
162
|
mfuDiscount,
|
|
163
163
|
prepaymentSettings,
|
|
164
|
+
allowFastBookingViaSMS,
|
|
164
165
|
},
|
|
165
166
|
});
|
|
166
167
|
}
|
package/lib/services/system.d.ts
CHANGED
|
@@ -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
|
}
|
package/lib/services/system.js
CHANGED
|
@@ -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;
|