whio-api-sdk 1.0.194-beta-staging → 1.0.195-beta-staging

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,4 +8,6 @@ export declare class OrganizationModule extends BaseClient {
8
8
  deleteOrganization(id: string): Promise<void>;
9
9
  addUserToOrganization(organizationId: string, userId: string): Promise<void>;
10
10
  removeUserFromOrganization(organizationId: string, userId: string): Promise<void>;
11
+ linkExternalIntegration(organizationId: string, integrationId: string): Promise<Organization>;
12
+ unlinkExternalIntegration(organizationId: string): Promise<Organization>;
11
13
  }
@@ -47,4 +47,14 @@ export class OrganizationModule extends BaseClient {
47
47
  yield this.request(`${urls.organizations}/${organizationId}/users/${userId}`, 'DELETE');
48
48
  });
49
49
  }
50
+ linkExternalIntegration(organizationId, integrationId) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ return this.request(`${urls.organizations}/${organizationId}/external-integration/${integrationId}`, 'POST');
53
+ });
54
+ }
55
+ unlinkExternalIntegration(organizationId) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ return this.request(`${urls.organizations}/${organizationId}/external-integration`, 'DELETE');
58
+ });
59
+ }
50
60
  }
@@ -53,6 +53,8 @@ export declare class ApiSDK extends BaseClient {
53
53
  deleteOrganization(...args: Parameters<OrganizationModule['deleteOrganization']>): Promise<void>;
54
54
  addUserToOrganization(...args: Parameters<OrganizationModule['addUserToOrganization']>): Promise<void>;
55
55
  removeUserFromOrganization(...args: Parameters<OrganizationModule['removeUserFromOrganization']>): Promise<void>;
56
+ linkExternalIntegration(...args: Parameters<OrganizationModule['linkExternalIntegration']>): Promise<import("./types").Organization>;
57
+ unlinkExternalIntegration(...args: Parameters<OrganizationModule['unlinkExternalIntegration']>): Promise<import("./types").Organization>;
56
58
  createTeam(...args: Parameters<TeamModule['createTeam']>): Promise<import("./types").Team>;
57
59
  updateTeam(...args: Parameters<TeamModule['updateTeam']>): Promise<import("./types").Team>;
58
60
  addUserToTeam(...args: Parameters<TeamModule['addUserToTeam']>): Promise<any>;
@@ -167,6 +167,16 @@ export class ApiSDK extends BaseClient {
167
167
  return this.organizations.removeUserFromOrganization(...args);
168
168
  });
169
169
  }
170
+ linkExternalIntegration(...args) {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ return this.organizations.linkExternalIntegration(...args);
173
+ });
174
+ }
175
+ unlinkExternalIntegration(...args) {
176
+ return __awaiter(this, void 0, void 0, function* () {
177
+ return this.organizations.unlinkExternalIntegration(...args);
178
+ });
179
+ }
170
180
  // Team methods
171
181
  createTeam(...args) {
172
182
  return __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whio-api-sdk",
3
- "version": "1.0.194-beta-staging",
3
+ "version": "1.0.195-beta-staging",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -32,4 +32,12 @@ export class OrganizationModule extends BaseClient {
32
32
  public async removeUserFromOrganization(organizationId: string, userId: string): Promise<void> {
33
33
  await this.request(`${urls.organizations}/${organizationId}/users/${userId}`, 'DELETE');
34
34
  }
35
+
36
+ public async linkExternalIntegration(organizationId: string, integrationId: string): Promise<Organization> {
37
+ return this.request<Organization>(`${urls.organizations}/${organizationId}/external-integration/${integrationId}`, 'POST');
38
+ }
39
+
40
+ public async unlinkExternalIntegration(organizationId: string): Promise<Organization> {
41
+ return this.request<Organization>(`${urls.organizations}/${organizationId}/external-integration`, 'DELETE');
42
+ }
35
43
  }
package/src/sdk/sdk.ts CHANGED
@@ -153,6 +153,14 @@ export class ApiSDK extends BaseClient {
153
153
  return this.organizations.removeUserFromOrganization(...args);
154
154
  }
155
155
 
156
+ public async linkExternalIntegration(...args: Parameters<OrganizationModule['linkExternalIntegration']>) {
157
+ return this.organizations.linkExternalIntegration(...args);
158
+ }
159
+
160
+ public async unlinkExternalIntegration(...args: Parameters<OrganizationModule['unlinkExternalIntegration']>) {
161
+ return this.organizations.unlinkExternalIntegration(...args);
162
+ }
163
+
156
164
  // Team methods
157
165
  public async createTeam(...args: Parameters<TeamModule['createTeam']>) {
158
166
  return this.teams.createTeam(...args);