starta.apiclient 1.37.2013 → 1.37.2019

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.
@@ -16,4 +16,10 @@ export default class Integrations {
16
16
  merchantAccount: any;
17
17
  merchantSecretKey: any;
18
18
  }): Promise<import("../../types").StartaResponse>;
19
+ setTurboSMS(organizationLogin: string, { enabled, authToken, sender, verified }: {
20
+ enabled: boolean;
21
+ authToken: string;
22
+ sender: string;
23
+ verified: boolean;
24
+ }): Promise<import("../../types").StartaResponse>;
19
25
  }
@@ -28,6 +28,14 @@ var Integrations = /** @class */ (function () {
28
28
  body: { enabled: enabled, merchantAccount: merchantAccount, merchantSecretKey: merchantSecretKey },
29
29
  });
30
30
  };
31
+ Integrations.prototype.setTurboSMS = function (organizationLogin, _a) {
32
+ var enabled = _a.enabled, authToken = _a.authToken, sender = _a.sender, verified = _a.verified;
33
+ return this._requestRunner.performRequest({
34
+ url: "accounts/".concat(organizationLogin, "/integrations/turbosms"),
35
+ method: 'PUT',
36
+ body: { enabled: enabled, authToken: authToken, verified: verified, sender: sender },
37
+ });
38
+ };
31
39
  return Integrations;
32
40
  }());
33
41
  exports.default = Integrations;
@@ -12,5 +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, member: string, languages: Array<string>): Promise<import("../../types").StartaResponse>;
15
16
  setSchedule(organizationLogin: any, member: any, schedule?: Schedule): Promise<import("../../types").StartaResponse>;
16
17
  }
@@ -33,6 +33,13 @@ var Members = /** @class */ (function () {
33
33
  body: { roles: roles },
34
34
  });
35
35
  };
36
+ Members.prototype.setLanguages = function (organizationLogin, member, languages) {
37
+ return this._requestRunner.performRequest({
38
+ url: "accounts/".concat(organizationLogin, "/members/").concat(member, "/languages"),
39
+ method: 'PUT',
40
+ body: { languages: languages },
41
+ });
42
+ };
36
43
  Members.prototype.setSchedule = function (organizationLogin, member, schedule) {
37
44
  return this._requestRunner.performRequest({
38
45
  url: "accounts/".concat(organizationLogin, "/members/").concat(member, "/schedule"),
@@ -3,7 +3,13 @@ export default class PhoneConfirmations {
3
3
  private _requestRunner;
4
4
  constructor(requestRunner: StartaRequestRunner);
5
5
  confirm(confirmPhoneToken: any): Promise<import("../types").StartaResponse>;
6
- create({ phone }: {
6
+ create({ phone, customVerification }: {
7
7
  phone: string;
8
+ customVerification: {
9
+ type: 'provider';
10
+ providerType: 'turbosms';
11
+ turbosmsToken: string;
12
+ turbosmsSender: string;
13
+ };
8
14
  }): Promise<import("../types").StartaResponse>;
9
15
  }
@@ -12,12 +12,13 @@ var PhoneConfirmations = /** @class */ (function () {
12
12
  });
13
13
  };
14
14
  PhoneConfirmations.prototype.create = function (_a) {
15
- var phone = _a.phone;
15
+ var phone = _a.phone, customVerification = _a.customVerification;
16
16
  return this._requestRunner.performRequest({
17
17
  url: "phoneConfirmations",
18
18
  method: 'POST',
19
19
  body: {
20
- phone: phone
20
+ phone: phone,
21
+ customVerification: customVerification
21
22
  },
22
23
  });
23
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.2013",
3
+ "version": "1.37.2019",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",