starta.apiclient 1.37.1502 → 1.37.1508

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.
@@ -29,10 +29,6 @@ export default class Organizations {
29
29
  get(organizationLogin: any): Promise<import("../../types").StartaResponse>;
30
30
  getPermissionGroups(organizationLogin: any): Promise<import("../../types").StartaResponse>;
31
31
  changeBanner(login: any, file: any): Promise<import("../../types").StartaResponse>;
32
- addMember(organizationLogin: any, { code }: {
33
- code: any;
34
- }): Promise<import("../../types").StartaResponse>;
35
- deleteMember(organizationLogin: any, memberLogin: any): Promise<import("../../types").StartaResponse>;
36
32
  setCategories(organizationLogin: any, { categories }: {
37
33
  categories: string[];
38
34
  }): Promise<import("../../types").StartaResponse>;
@@ -57,20 +57,6 @@ var Organizations = /** @class */ (function () {
57
57
  body: { file: file },
58
58
  });
59
59
  };
60
- Organizations.prototype.addMember = function (organizationLogin, _a) {
61
- var code = _a.code;
62
- return this._requestRunner.performRequest({
63
- url: "accounts/".concat(organizationLogin, "/members"),
64
- method: 'POST',
65
- body: { code: code },
66
- });
67
- };
68
- Organizations.prototype.deleteMember = function (organizationLogin, memberLogin) {
69
- return this._requestRunner.performRequest({
70
- url: "accounts/".concat(organizationLogin, "/members/").concat(memberLogin),
71
- method: 'DELETE',
72
- });
73
- };
74
60
  Organizations.prototype.setCategories = function (organizationLogin, _a) {
75
61
  var _b = _a.categories, categories = _b === void 0 ? [] : _b;
76
62
  return this._requestRunner.performRequest({
@@ -6,6 +6,11 @@ export default class Members {
6
6
  name: string;
7
7
  roles: Array<string>;
8
8
  }): Promise<import("../../types").StartaResponse>;
9
+ add(organizationLogin: any, { code, isDeclined }: {
10
+ code: string;
11
+ isDeclined?: boolean;
12
+ }): Promise<import("../../types").StartaResponse>;
13
+ delete(organizationLogin: any, memberLogin: any): Promise<import("../../types").StartaResponse>;
9
14
  updateRoles(organizationLogin: any, member: any, roles: any): Promise<import("../../types").StartaResponse>;
10
15
  setSchedule(organizationLogin: any, member: any, schedule?: Schedule): Promise<import("../../types").StartaResponse>;
11
16
  }
@@ -12,6 +12,20 @@ var Members = /** @class */ (function () {
12
12
  body: { name: name, roles: roles },
13
13
  });
14
14
  };
15
+ Members.prototype.add = function (organizationLogin, _a) {
16
+ var code = _a.code, isDeclined = _a.isDeclined;
17
+ return this._requestRunner.performRequest({
18
+ url: "accounts/".concat(organizationLogin, "/members"),
19
+ method: 'POST',
20
+ body: { code: code, isDeclined: isDeclined },
21
+ });
22
+ };
23
+ Members.prototype.delete = function (organizationLogin, memberLogin) {
24
+ return this._requestRunner.performRequest({
25
+ url: "accounts/".concat(organizationLogin, "/members/").concat(memberLogin),
26
+ method: 'DELETE',
27
+ });
28
+ };
15
29
  Members.prototype.updateRoles = function (organizationLogin, member, roles) {
16
30
  return this._requestRunner.performRequest({
17
31
  url: "accounts/".concat(organizationLogin, "/members/").concat(member, "/roles"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.1502",
3
+ "version": "1.37.1508",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",