starta.apiclient 1.36.899 → 1.37.921
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.
|
@@ -10,25 +10,26 @@ export default class Accounts {
|
|
|
10
10
|
}): Promise<import("../types").StartaResponse>;
|
|
11
11
|
getMainData(login: string): Promise<import("../types").StartaResponse>;
|
|
12
12
|
serviceProviders(login: string): Promise<import("../types").StartaResponse>;
|
|
13
|
-
createViaSocialNetwork({ email, login, socialNetworksKey, authMethod, acceptedTermsAndConditions }: {
|
|
13
|
+
createViaSocialNetwork({ email, login, socialNetworksKey, authMethod, acceptedTermsAndConditions, refferalId }: {
|
|
14
14
|
email: any;
|
|
15
15
|
login: any;
|
|
16
16
|
socialNetworksKey: any;
|
|
17
|
-
authMethod
|
|
17
|
+
authMethod: 'cookie' | 'header';
|
|
18
18
|
acceptedTermsAndConditions: any;
|
|
19
|
+
refferalId?: any;
|
|
19
20
|
}): Promise<import("../types").StartaResponse>;
|
|
20
|
-
create({ email, login, password, passwordConfirm, firstName, lastName,
|
|
21
|
+
create({ email, login, password, passwordConfirm, firstName, lastName, phone, authMethod, recaptchaToken, acceptedTermsAndConditions, refferalId, }: {
|
|
21
22
|
email: any;
|
|
22
23
|
login: any;
|
|
23
24
|
password: any;
|
|
24
25
|
passwordConfirm: any;
|
|
25
|
-
firstName
|
|
26
|
-
lastName
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
authMethod?: string | undefined;
|
|
26
|
+
firstName?: any;
|
|
27
|
+
lastName?: any;
|
|
28
|
+
phone?: any;
|
|
29
|
+
authMethod: 'cookie' | 'header';
|
|
30
30
|
recaptchaToken: any;
|
|
31
31
|
acceptedTermsAndConditions: any;
|
|
32
|
+
refferalId?: any;
|
|
32
33
|
}): Promise<import("../types").StartaResponse>;
|
|
33
34
|
changePassword(login: string, { currentPassword, newPassword }: {
|
|
34
35
|
currentPassword: any;
|
package/lib/services/accounts.js
CHANGED
|
@@ -26,7 +26,7 @@ var Accounts = /** @class */ (function () {
|
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
Accounts.prototype.createViaSocialNetwork = function (_a) {
|
|
29
|
-
var email = _a.email, login = _a.login, socialNetworksKey = _a.socialNetworksKey, _b = _a.authMethod, authMethod = _b === void 0 ? 'cookie' : _b, acceptedTermsAndConditions = _a.acceptedTermsAndConditions;
|
|
29
|
+
var email = _a.email, login = _a.login, socialNetworksKey = _a.socialNetworksKey, _b = _a.authMethod, authMethod = _b === void 0 ? 'cookie' : _b, acceptedTermsAndConditions = _a.acceptedTermsAndConditions, refferalId = _a.refferalId;
|
|
30
30
|
return this._requestRunner.performRequest({
|
|
31
31
|
url: "accounts/sn",
|
|
32
32
|
method: 'POST',
|
|
@@ -36,11 +36,12 @@ var Accounts = /** @class */ (function () {
|
|
|
36
36
|
socialNetworksKey: socialNetworksKey,
|
|
37
37
|
authMethod: authMethod,
|
|
38
38
|
acceptedTermsAndConditions: acceptedTermsAndConditions,
|
|
39
|
+
refferalId: refferalId,
|
|
39
40
|
},
|
|
40
41
|
});
|
|
41
42
|
};
|
|
42
43
|
Accounts.prototype.create = function (_a) {
|
|
43
|
-
var email = _a.email, login = _a.login, password = _a.password, passwordConfirm = _a.passwordConfirm, firstName = _a.firstName, lastName = _a.lastName,
|
|
44
|
+
var email = _a.email, login = _a.login, password = _a.password, passwordConfirm = _a.passwordConfirm, firstName = _a.firstName, lastName = _a.lastName, phone = _a.phone, _b = _a.authMethod, authMethod = _b === void 0 ? 'cookie' : _b, recaptchaToken = _a.recaptchaToken, acceptedTermsAndConditions = _a.acceptedTermsAndConditions, refferalId = _a.refferalId;
|
|
44
45
|
return this._requestRunner.performRequest({
|
|
45
46
|
url: "accounts",
|
|
46
47
|
method: 'POST',
|
|
@@ -51,11 +52,11 @@ var Accounts = /** @class */ (function () {
|
|
|
51
52
|
passwordConfirm: passwordConfirm,
|
|
52
53
|
firstName: firstName,
|
|
53
54
|
lastName: lastName,
|
|
54
|
-
key: key,
|
|
55
55
|
phone: phone,
|
|
56
56
|
authMethod: authMethod,
|
|
57
57
|
recaptchaToken: recaptchaToken,
|
|
58
58
|
acceptedTermsAndConditions: acceptedTermsAndConditions,
|
|
59
|
+
refferalId: refferalId,
|
|
59
60
|
},
|
|
60
61
|
});
|
|
61
62
|
};
|
|
@@ -6,9 +6,8 @@ export default class Payments {
|
|
|
6
6
|
signature: any;
|
|
7
7
|
data: any;
|
|
8
8
|
}): Promise<import("../../types").StartaResponse>;
|
|
9
|
-
addManual(organizationLogin: any, { orderId,
|
|
9
|
+
addManual(organizationLogin: any, { orderId, date, amount, method }: {
|
|
10
10
|
orderId: any;
|
|
11
|
-
currency: any;
|
|
12
11
|
date: any;
|
|
13
12
|
amount: any;
|
|
14
13
|
method: any;
|
|
@@ -16,7 +16,7 @@ var Payments = /** @class */ (function () {
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
Payments.prototype.addManual = function (organizationLogin, _a) {
|
|
19
|
-
var orderId = _a.orderId,
|
|
19
|
+
var orderId = _a.orderId, date = _a.date, amount = _a.amount, method = _a.method;
|
|
20
20
|
return this._requestRunner.performRequest({
|
|
21
21
|
url: "accounts/".concat(organizationLogin, "/payments/manual"),
|
|
22
22
|
method: 'POST',
|
|
@@ -17,6 +17,7 @@ var Services = /** @class */ (function () {
|
|
|
17
17
|
executors: executors,
|
|
18
18
|
allowCancellationByCustomer: allowCancellationByCustomer,
|
|
19
19
|
disableCancellationByCustomerPriorHours: disableCancellationByCustomerPriorHours,
|
|
20
|
+
disableBookingByCustomerPriorHours: disableBookingByCustomerPriorHours,
|
|
20
21
|
},
|
|
21
22
|
});
|
|
22
23
|
};
|