@skillswaveca/nova-shared-libraries 4.20.0 → 4.21.0

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.
@@ -1,31 +1,31 @@
1
1
  export const packageInfo = [
2
2
  {
3
3
  "name": "@skillswaveca/nova-utils",
4
- "version": "4.19.1",
4
+ "version": "4.20.0",
5
5
  "description": "A collection of random utils used in nova repos",
6
6
  "docsPath": "./nova-utils/index.html"
7
7
  },
8
8
  {
9
9
  "name": "@skillswaveca/nova-router",
10
- "version": "4.19.1",
10
+ "version": "4.20.0",
11
11
  "description": "An extended Koa router that enables better validation",
12
12
  "docsPath": "./nova-router/index.html"
13
13
  },
14
14
  {
15
15
  "name": "@skillswaveca/nova-model",
16
- "version": "4.19.1",
16
+ "version": "4.20.0",
17
17
  "description": "Nova model stuff",
18
18
  "docsPath": "./nova-model/index.html"
19
19
  },
20
20
  {
21
21
  "name": "@skillswaveca/nova-middleware",
22
- "version": "4.19.1",
22
+ "version": "4.20.0",
23
23
  "description": "A collection of middleware used by nova projects",
24
24
  "docsPath": "./nova-middleware/index.html"
25
25
  },
26
26
  {
27
27
  "name": "@skillswaveca/nova-drivers",
28
- "version": "4.19.1",
28
+ "version": "4.20.0",
29
29
  "description": "Some helper drivers for AWS services",
30
30
  "docsPath": "./drivers/index.html"
31
31
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "@skillswaveca/nova-shared-libraries",
4
4
  "description": "A monorepo of shared libraries for Nova projects.",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "4.20.0",
6
+ "version": "4.21.0",
7
7
  "main": "index.js",
8
8
  "license": "MIT",
9
9
  "keywords": [],
@@ -3,7 +3,7 @@
3
3
  "name": "@skillswaveca/nova-drivers",
4
4
  "description": "Some helper drivers for AWS services",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "4.20.0",
6
+ "version": "4.21.0",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "pre-release": "pnpm run create-index",
@@ -124,6 +124,27 @@ export class WaveDriver extends OAuthDriver {
124
124
  }
125
125
  }
126
126
 
127
+ /**
128
+ * Standardizes the SSO configuration for a tenant in the Wave platform.
129
+ *
130
+ * @param tenantId
131
+ * @param params
132
+ * @returns {Promise<void>}
133
+ */
134
+ async standardizeSSOConfig(tenantId, params) {
135
+ const url = `/api/v2/tenants/${tenantId}/standardize-sso`;
136
+ const response = await this.put(url, params);
137
+
138
+ const { success, body, error, statusCode } = response;
139
+ if (response.success) {
140
+ this.log.info({ response: { success, body, tenantId, params } }, 'Tenant SSO configuration standardized in wave');
141
+ return body;
142
+ } else {
143
+ this.log.error({ response: { success, error, statusCode } }, 'Failed to standardize tenant SSO configuration in wave');
144
+ throw new Error(`Failed to standardize tenant SSO configuration in Wave: ${error}, statusCode: ${statusCode}`);
145
+ }
146
+ }
147
+
127
148
  _deleteUser(guid) {
128
149
  const url = `/api/v2/users/${guid}`;
129
150
  this.log.debug({ guid, url }, 'Deleting user from Wave');
@@ -3,7 +3,7 @@
3
3
  "name": "@skillswaveca/nova-middleware",
4
4
  "description": "A collection of middleware used by nova projects",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "4.20.0",
6
+ "version": "4.21.0",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "pre-release": "pnpm run create-index",
@@ -3,7 +3,7 @@
3
3
  "name": "@skillswaveca/nova-model",
4
4
  "description": "Nova model stuff",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "4.20.0",
6
+ "version": "4.21.0",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "pre-release": "pnpm run create-index",
@@ -3,7 +3,7 @@
3
3
  "name": "@skillswaveca/nova-router",
4
4
  "description": "An extended Koa router that enables better validation",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "4.20.0",
6
+ "version": "4.21.0",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "pre-release": "pnpm run create-index",
@@ -3,7 +3,7 @@
3
3
  "name": "@skillswaveca/nova-utils",
4
4
  "description": "A collection of random utils used in nova repos",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "4.20.0",
6
+ "version": "4.21.0",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "pre-release": "pnpm run create-index",