starta.apiclient 1.37.2019 → 1.37.2021
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.
|
@@ -68,6 +68,7 @@ export default class Organizations {
|
|
|
68
68
|
setBookingWidgetStyles(organizationLogin: any, bookingWidgetStyles: any): Promise<import("../../types").StartaResponse>;
|
|
69
69
|
getMembersSchedule(organizationLogin: any, date: any): Promise<import("../../types").StartaResponse>;
|
|
70
70
|
getSingleMemberSchedule(organizationLogin: any, member: any, from: any, to: any): Promise<import("../../types").StartaResponse>;
|
|
71
|
+
setLanguages(organizationLogin: string, languages: Array<string>): Promise<import("../../types").StartaResponse>;
|
|
71
72
|
updateRoles(organizationLogin: any, roles: any): Promise<import("../../types").StartaResponse>;
|
|
72
73
|
setLicense(organizationLogin: any, { period, returnUrl }: {
|
|
73
74
|
period: 'monthly' | 'yearly';
|
|
@@ -138,6 +138,13 @@ var Organizations = /** @class */ (function () {
|
|
|
138
138
|
method: 'GET',
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
|
+
Organizations.prototype.setLanguages = function (organizationLogin, languages) {
|
|
142
|
+
return this._requestRunner.performRequest({
|
|
143
|
+
url: "accounts/".concat(organizationLogin, "/languages"),
|
|
144
|
+
method: 'PUT',
|
|
145
|
+
body: { languages: languages },
|
|
146
|
+
});
|
|
147
|
+
};
|
|
141
148
|
Organizations.prototype.updateRoles = function (organizationLogin, roles) {
|
|
142
149
|
return this._requestRunner.performRequest({
|
|
143
150
|
url: "accounts/".concat(organizationLogin, "/roles"),
|
|
@@ -12,6 +12,6 @@ export default class Members {
|
|
|
12
12
|
}): Promise<import("../../types").StartaResponse>;
|
|
13
13
|
delete(organizationLogin: any, memberLogin: any): Promise<import("../../types").StartaResponse>;
|
|
14
14
|
updateRoles(organizationLogin: any, member: any, roles: any): Promise<import("../../types").StartaResponse>;
|
|
15
|
-
setLanguages(organizationLogin: string,
|
|
15
|
+
setLanguages(organizationLogin: string, memberLogin: string, languages: Array<string>): Promise<import("../../types").StartaResponse>;
|
|
16
16
|
setSchedule(organizationLogin: any, member: any, schedule?: Schedule): Promise<import("../../types").StartaResponse>;
|
|
17
17
|
}
|
|
@@ -33,9 +33,9 @@ var Members = /** @class */ (function () {
|
|
|
33
33
|
body: { roles: roles },
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
|
-
Members.prototype.setLanguages = function (organizationLogin,
|
|
36
|
+
Members.prototype.setLanguages = function (organizationLogin, memberLogin, languages) {
|
|
37
37
|
return this._requestRunner.performRequest({
|
|
38
|
-
url: "accounts/".concat(organizationLogin, "/members/").concat(
|
|
38
|
+
url: "accounts/".concat(organizationLogin, "/members/").concat(memberLogin, "/languages"),
|
|
39
39
|
method: 'PUT',
|
|
40
40
|
body: { languages: languages },
|
|
41
41
|
});
|
|
@@ -5,7 +5,7 @@ export default class PhoneConfirmations {
|
|
|
5
5
|
confirm(confirmPhoneToken: any): Promise<import("../types").StartaResponse>;
|
|
6
6
|
create({ phone, customVerification }: {
|
|
7
7
|
phone: string;
|
|
8
|
-
customVerification
|
|
8
|
+
customVerification?: {
|
|
9
9
|
type: 'provider';
|
|
10
10
|
providerType: 'turbosms';
|
|
11
11
|
turbosmsToken: string;
|