starta.apiclient 1.37.931 → 1.37.945
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.
|
@@ -8,7 +8,7 @@ export default class Accounts {
|
|
|
8
8
|
}): Promise<import("../../types").StartaResponse>;
|
|
9
9
|
get(organizationLogin: any, customerId: any): Promise<import("../../types").StartaResponse>;
|
|
10
10
|
orders(organizationLogin: any, customerId: any): Promise<import("../../types").StartaResponse>;
|
|
11
|
-
add(organizationLogin: any, { login, type, email, phone, firstName, lastName, countryIso2, region, province, zip, city, addressLine1, addressLine2, dateOfBirth, comment, language, }: {
|
|
11
|
+
add(organizationLogin: any, { login, type, email, phone, firstName, lastName, countryIso2, region, province, zip, city, addressLine1, addressLine2, dateOfBirth, comment, language, discount, }: {
|
|
12
12
|
login: any;
|
|
13
13
|
type?: string | undefined;
|
|
14
14
|
email: any;
|
|
@@ -25,8 +25,9 @@ export default class Accounts {
|
|
|
25
25
|
dateOfBirth: any;
|
|
26
26
|
comment: any;
|
|
27
27
|
language: any;
|
|
28
|
+
discount: any;
|
|
28
29
|
}): Promise<import("../../types").StartaResponse>;
|
|
29
|
-
update(organizationLogin: any, customerId: any, { type, email, phone, firstName, lastName, countryIso2, region, province, zip, city, addressLine1, addressLine2, dateOfBirth, comment, language, }: {
|
|
30
|
+
update(organizationLogin: any, customerId: any, { type, email, phone, firstName, lastName, countryIso2, region, province, zip, city, addressLine1, addressLine2, dateOfBirth, comment, language, discount, }: {
|
|
30
31
|
type?: string | undefined;
|
|
31
32
|
email: any;
|
|
32
33
|
phone: any;
|
|
@@ -42,6 +43,7 @@ export default class Accounts {
|
|
|
42
43
|
dateOfBirth: any;
|
|
43
44
|
comment: any;
|
|
44
45
|
language: any;
|
|
46
|
+
discount: any;
|
|
45
47
|
}): Promise<import("../../types").StartaResponse>;
|
|
46
48
|
delete(organizationLogin: any, customerId: any): Promise<import("../../types").StartaResponse>;
|
|
47
49
|
}
|
|
@@ -28,7 +28,7 @@ var Accounts = /** @class */ (function () {
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
Accounts.prototype.add = function (organizationLogin, _a) {
|
|
31
|
-
var login = _a.login, _b = _a.type, type = _b === void 0 ? 'client' : _b, email = _a.email, phone = _a.phone, firstName = _a.firstName, lastName = _a.lastName, countryIso2 = _a.countryIso2, region = _a.region, province = _a.province, zip = _a.zip, city = _a.city, addressLine1 = _a.addressLine1, addressLine2 = _a.addressLine2, dateOfBirth = _a.dateOfBirth, comment = _a.comment, language = _a.language;
|
|
31
|
+
var login = _a.login, _b = _a.type, type = _b === void 0 ? 'client' : _b, email = _a.email, phone = _a.phone, firstName = _a.firstName, lastName = _a.lastName, countryIso2 = _a.countryIso2, region = _a.region, province = _a.province, zip = _a.zip, city = _a.city, addressLine1 = _a.addressLine1, addressLine2 = _a.addressLine2, dateOfBirth = _a.dateOfBirth, comment = _a.comment, language = _a.language, discount = _a.discount;
|
|
32
32
|
return this._requestRunner.performRequest({
|
|
33
33
|
url: "accounts/".concat(organizationLogin, "/customers"),
|
|
34
34
|
method: 'POST',
|
|
@@ -49,11 +49,12 @@ var Accounts = /** @class */ (function () {
|
|
|
49
49
|
dateOfBirth: dateOfBirth,
|
|
50
50
|
comment: comment,
|
|
51
51
|
language: language,
|
|
52
|
+
discount: discount,
|
|
52
53
|
},
|
|
53
54
|
});
|
|
54
55
|
};
|
|
55
56
|
Accounts.prototype.update = function (organizationLogin, customerId, _a) {
|
|
56
|
-
var _b = _a.type, type = _b === void 0 ? 'client' : _b, email = _a.email, phone = _a.phone, firstName = _a.firstName, lastName = _a.lastName, countryIso2 = _a.countryIso2, region = _a.region, province = _a.province, zip = _a.zip, city = _a.city, addressLine1 = _a.addressLine1, addressLine2 = _a.addressLine2, dateOfBirth = _a.dateOfBirth, comment = _a.comment, language = _a.language;
|
|
57
|
+
var _b = _a.type, type = _b === void 0 ? 'client' : _b, email = _a.email, phone = _a.phone, firstName = _a.firstName, lastName = _a.lastName, countryIso2 = _a.countryIso2, region = _a.region, province = _a.province, zip = _a.zip, city = _a.city, addressLine1 = _a.addressLine1, addressLine2 = _a.addressLine2, dateOfBirth = _a.dateOfBirth, comment = _a.comment, language = _a.language, discount = _a.discount;
|
|
57
58
|
return this._requestRunner.performRequest({
|
|
58
59
|
url: "accounts/".concat(organizationLogin, "/customers/").concat(customerId),
|
|
59
60
|
method: 'PUT',
|
|
@@ -73,6 +74,7 @@ var Accounts = /** @class */ (function () {
|
|
|
73
74
|
dateOfBirth: dateOfBirth,
|
|
74
75
|
comment: comment,
|
|
75
76
|
language: language,
|
|
77
|
+
discount: discount,
|
|
76
78
|
},
|
|
77
79
|
});
|
|
78
80
|
};
|
|
@@ -9,9 +9,10 @@ export default class Sessions {
|
|
|
9
9
|
authMethod?: string | undefined;
|
|
10
10
|
recaptchaToken: any;
|
|
11
11
|
}): Promise<import("../types").StartaResponse>;
|
|
12
|
-
createSocial({ token, sn }: {
|
|
12
|
+
createSocial({ token, sn, authMethod }: {
|
|
13
13
|
token: any;
|
|
14
|
-
sn:
|
|
14
|
+
sn: 'google' | 'facebook';
|
|
15
|
+
authMethod: 'cookie' | 'header';
|
|
15
16
|
}): Promise<import("../types").StartaResponse>;
|
|
16
17
|
delete(): Promise<import("../types").StartaResponse>;
|
|
17
18
|
}
|
package/lib/services/sessions.js
CHANGED
|
@@ -19,11 +19,11 @@ var Sessions = /** @class */ (function () {
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Sessions.prototype.createSocial = function (_a) {
|
|
22
|
-
var token = _a.token, sn = _a.sn;
|
|
22
|
+
var token = _a.token, sn = _a.sn, authMethod = _a.authMethod;
|
|
23
23
|
return this._requestRunner.performRequest({
|
|
24
24
|
url: "sessions/social",
|
|
25
25
|
method: 'POST',
|
|
26
|
-
body: { token: token, sn: sn },
|
|
26
|
+
body: { token: token, sn: sn, authMethod: authMethod },
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
29
|
Sessions.prototype.delete = function () {
|
package/lib/services/system.d.ts
CHANGED
package/lib/services/system.js
CHANGED
|
@@ -15,6 +15,17 @@ var EmailConfirmations = /** @class */ (function () {
|
|
|
15
15
|
},
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
|
+
EmailConfirmations.prototype.config = function () {
|
|
19
|
+
return this._requestRunner.performRequest({
|
|
20
|
+
url: "config",
|
|
21
|
+
method: 'GET',
|
|
22
|
+
config: {
|
|
23
|
+
rewriteBaseUrl: function (url) {
|
|
24
|
+
return url.replace('/api', '/');
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
};
|
|
18
29
|
return EmailConfirmations;
|
|
19
30
|
}());
|
|
20
31
|
exports.default = EmailConfirmations;
|