starta.apiclient 1.37.921 → 1.37.922

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,15 +10,15 @@ 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, refferalId }: {
13
+ createViaSocialNetwork({ email, login, socialNetworksKey, authMethod, acceptedTermsAndConditions, referralId }: {
14
14
  email: any;
15
15
  login: any;
16
16
  socialNetworksKey: any;
17
17
  authMethod: 'cookie' | 'header';
18
18
  acceptedTermsAndConditions: any;
19
- refferalId?: any;
19
+ referralId?: any;
20
20
  }): Promise<import("../types").StartaResponse>;
21
- create({ email, login, password, passwordConfirm, firstName, lastName, phone, authMethod, recaptchaToken, acceptedTermsAndConditions, refferalId, }: {
21
+ create({ email, login, password, passwordConfirm, firstName, lastName, phone, authMethod, recaptchaToken, acceptedTermsAndConditions, referralId, }: {
22
22
  email: any;
23
23
  login: any;
24
24
  password: any;
@@ -29,7 +29,7 @@ export default class Accounts {
29
29
  authMethod: 'cookie' | 'header';
30
30
  recaptchaToken: any;
31
31
  acceptedTermsAndConditions: any;
32
- refferalId?: any;
32
+ referralId?: any;
33
33
  }): Promise<import("../types").StartaResponse>;
34
34
  changePassword(login: string, { currentPassword, newPassword }: {
35
35
  currentPassword: any;
@@ -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, refferalId = _a.refferalId;
29
+ var email = _a.email, login = _a.login, socialNetworksKey = _a.socialNetworksKey, _b = _a.authMethod, authMethod = _b === void 0 ? 'cookie' : _b, acceptedTermsAndConditions = _a.acceptedTermsAndConditions, referralId = _a.referralId;
30
30
  return this._requestRunner.performRequest({
31
31
  url: "accounts/sn",
32
32
  method: 'POST',
@@ -36,12 +36,12 @@ var Accounts = /** @class */ (function () {
36
36
  socialNetworksKey: socialNetworksKey,
37
37
  authMethod: authMethod,
38
38
  acceptedTermsAndConditions: acceptedTermsAndConditions,
39
- refferalId: refferalId,
39
+ referralId: referralId,
40
40
  },
41
41
  });
42
42
  };
43
43
  Accounts.prototype.create = function (_a) {
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
+ 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, referralId = _a.referralId;
45
45
  return this._requestRunner.performRequest({
46
46
  url: "accounts",
47
47
  method: 'POST',
@@ -56,7 +56,7 @@ var Accounts = /** @class */ (function () {
56
56
  authMethod: authMethod,
57
57
  recaptchaToken: recaptchaToken,
58
58
  acceptedTermsAndConditions: acceptedTermsAndConditions,
59
- refferalId: refferalId,
59
+ referralId: referralId,
60
60
  },
61
61
  });
62
62
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.921",
3
+ "version": "1.37.922",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",