@itentialopensource/adapter-webex_teams 0.8.1 → 0.8.3

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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 0.8.3 [09-19-2024]
3
+
4
+ * add workshop and fix vulnerabilities
5
+
6
+ See merge request itentialopensource/adapters/adapter-webex_teams!14
7
+
8
+ ---
9
+
10
+ ## 0.8.2 [08-14-2024]
11
+
12
+ * Changes made at 2024.08.14_19:26PM
13
+
14
+ See merge request itentialopensource/adapters/adapter-webex_teams!13
15
+
16
+ ---
17
+
2
18
  ## 0.8.1 [08-07-2024]
3
19
 
4
20
  * Changes made at 2024.08.06_21:09PM
package/TAB2.md CHANGED
@@ -68,9 +68,9 @@ Sample Properties can be used to help you configure the adapter in the Itential
68
68
  "protocol": "https",
69
69
  "authentication": {
70
70
  "auth_method": "request_token",
71
- "username": "client_id",
72
- "password": "refresh_token",
73
- "token": "",
71
+ "username": "username",
72
+ "password": "password",
73
+ "token": "token",
74
74
  "token_timeout": 360000,
75
75
  "token_cache": "local",
76
76
  "invalid_token_error": 401,
package/metadata.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "adapter-webex_teams",
3
3
  "webName": "Adapter for Integration to Cisco Webex Teams",
4
+ "supportLevel": "community",
4
5
  "vendor": "Cisco Systems",
5
6
  "product": "Webex Teams",
7
+ "techAlliance": false,
6
8
  "osVersion": [],
7
9
  "apiVersions": [],
8
10
  "iapVersions": [
@@ -36,7 +38,7 @@
36
38
  "storeLink": "",
37
39
  "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-webex_teams",
38
40
  "repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-webex_teams",
39
- "docLink": "https://docs.itential.com/opensource/docs/webex-teams",
41
+ "docLink": "https://gitlab.com/itentialopensource/adapters/adapter-webex_teams/-/blob/master/README.md?ref_type=heads",
40
42
  "demoLinks": [],
41
43
  "trainingLinks": [
42
44
  {
@@ -56,7 +58,9 @@
56
58
  "link": "https://developer.webex.com/docs/",
57
59
  "public": true
58
60
  }
59
- ]
61
+ ],
62
+ "workshopLinks": [],
63
+ "workshopHomePage": "https://www.itential.com/get-started/"
60
64
  },
61
65
  "assets": [],
62
66
  "relatedItems": {
@@ -79,6 +83,5 @@
79
83
  ],
80
84
  "transformationProjects": [],
81
85
  "exampleProjects": []
82
- },
83
- "supportLevel": "community"
86
+ }
84
87
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-webex_teams",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "description": "This adapter integrates with system described as: sparkApi.",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
7
- "engineVersion": "1.67.20",
7
+ "engineVersion": "1.68.2",
8
8
  "adapterType": "http",
9
9
  "scripts": {
10
10
  "artifactize": "npm i && node utils/packModificationScript.js",
@@ -53,22 +53,22 @@
53
53
  "author": "Itential",
54
54
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-webex_teams#readme",
55
55
  "dependencies": {
56
- "@itentialopensource/adapter-utils": "^5.6.0",
56
+ "@itentialopensource/adapter-utils": "^5.8.0",
57
57
  "acorn": "^8.12.1",
58
58
  "ajv": "^8.17.1",
59
- "axios": "^1.7.2",
59
+ "axios": "^1.7.4",
60
60
  "commander": "^11.0.0",
61
61
  "dns-lookup-promise": "^1.0.4",
62
62
  "fs-extra": "^11.2.0",
63
63
  "json-query": "^2.2.2",
64
- "mocha": "^10.7.0",
64
+ "mocha": "^10.7.3",
65
65
  "mocha-param": "^2.0.1",
66
66
  "mongodb": "^4.16.0",
67
67
  "ping": "^0.4.4",
68
68
  "prompts": "^2.4.2",
69
69
  "readline-sync": "^1.4.10",
70
70
  "semver": "^7.6.3",
71
- "winston": "^3.13.1"
71
+ "winston": "^3.14.2"
72
72
  },
73
73
  "devDependencies": {
74
74
  "chai": "^4.3.7",
@@ -951,7 +951,6 @@
951
951
  "default": false
952
952
  },
953
953
  "getDevice": {
954
-
955
954
  "type": "array",
956
955
  "description": "Broker call(s) to getDevice",
957
956
  "items": {
Binary file
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.7.5",
3
- "configLines": 4457,
2
+ "version": "0.8.2",
3
+ "configLines": 4456,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 5223,
6
- "testLines": 5720,
7
- "testCases": 270,
8
- "totalCodeLines": 12726,
6
+ "testLines": 5704,
7
+ "testCases": 269,
8
+ "totalCodeLines": 12710,
9
9
  "wfTasks": 67
10
10
  }
@@ -15,9 +15,9 @@
15
15
  "protocol": "https",
16
16
  "authentication": {
17
17
  "auth_method": "request_token",
18
- "username": "client_id",
19
- "password": "refresh_token",
20
- "token": "",
18
+ "username": "username",
19
+ "password": "password",
20
+ "token": "token",
21
21
  "token_timeout": 360000,
22
22
  "token_cache": "local",
23
23
  "invalid_token_error": 401,
@@ -4,7 +4,6 @@
4
4
  /* eslint no-unused-vars: warn */
5
5
 
6
6
  const assert = require('assert');
7
- const http = require('http');
8
7
  const https = require('https');
9
8
  const mocha = require('mocha');
10
9
  const ping = require('ping');
@@ -53,29 +52,6 @@ describe('[integration] Adapter Test', () => {
53
52
  });
54
53
  });
55
54
 
56
- it('Support HTTP on port 80', (done) => {
57
- const requestOptions = {
58
- host,
59
- port: 80,
60
- method: 'HEAD'
61
- };
62
-
63
- const req = http.request(requestOptions, (res) => {
64
- try {
65
- assert.ok(res.statusCode >= 200 && res.statusCode < 400);
66
- done();
67
- } catch (error) {
68
- done(error);
69
- }
70
- });
71
-
72
- req.on('error', (err) => {
73
- done(err);
74
- });
75
-
76
- req.end();
77
- });
78
-
79
55
  it('Support HTTPS on port 443', (done) => {
80
56
  const requestOptions = {
81
57
  host,
@@ -36,13 +36,17 @@ const samProps = require(`${adaptdir}/sampleProperties.json`).properties;
36
36
  // these variables can be changed to run in integrated mode so easier to set them here
37
37
  // always check these in with bogus data!!!
38
38
  samProps.stub = true;
39
- samProps.host = 'replace.hostorip.here';
40
- samProps.authentication.username = 'username';
41
- samProps.authentication.password = 'password';
42
- samProps.protocol = 'http';
43
- samProps.port = 80;
44
- samProps.ssl.enabled = false;
45
- samProps.ssl.accept_invalid_cert = false;
39
+
40
+ // uncomment if connecting
41
+ // samProps.host = 'replace.hostorip.here';
42
+ // samProps.authentication.username = 'username';
43
+ // samProps.authentication.password = 'password';
44
+ // samProps.authentication.token = 'password';
45
+ // samProps.protocol = 'http';
46
+ // samProps.port = 80;
47
+ // samProps.ssl.enabled = false;
48
+ // samProps.ssl.accept_invalid_cert = false;
49
+
46
50
  if (samProps.request.attempt_timeout < 30000) {
47
51
  samProps.request.attempt_timeout = 30000;
48
52
  }
@@ -36,13 +36,17 @@ const samProps = require(`${adaptdir}/sampleProperties.json`).properties;
36
36
  // these variables can be changed to run in integrated mode so easier to set them here
37
37
  // always check these in with bogus data!!!
38
38
  samProps.stub = true;
39
- samProps.host = 'replace.hostorip.here';
40
- samProps.authentication.username = 'username';
41
- samProps.authentication.password = 'password';
42
- samProps.protocol = 'http';
43
- samProps.port = 80;
44
- samProps.ssl.enabled = false;
45
- samProps.ssl.accept_invalid_cert = false;
39
+
40
+ // uncomment if connecting
41
+ // samProps.host = 'replace.hostorip.here';
42
+ // samProps.authentication.username = 'username';
43
+ // samProps.authentication.password = 'password';
44
+ // samProps.authentication.token = 'password';
45
+ // samProps.protocol = 'http';
46
+ // samProps.port = 80;
47
+ // samProps.ssl.enabled = false;
48
+ // samProps.ssl.accept_invalid_cert = false;
49
+
46
50
  samProps.request.attempt_timeout = 1200000;
47
51
  const attemptTimeout = samProps.request.attempt_timeout;
48
52
  const { stub } = samProps;
@@ -315,15 +319,15 @@ describe('[unit] WebexTeams Adapter Test', () => {
315
319
  assert.notEqual(null, packageDotJson.dependencies);
316
320
  assert.notEqual('', packageDotJson.dependencies);
317
321
  assert.equal('^8.17.1', packageDotJson.dependencies.ajv);
318
- assert.equal('^1.7.2', packageDotJson.dependencies.axios);
322
+ assert.equal('^1.7.4', packageDotJson.dependencies.axios);
319
323
  assert.equal('^11.0.0', packageDotJson.dependencies.commander);
320
324
  assert.equal('^11.2.0', packageDotJson.dependencies['fs-extra']);
321
- assert.equal('^10.7.0', packageDotJson.dependencies.mocha);
325
+ assert.equal('^10.7.3', packageDotJson.dependencies.mocha);
322
326
  assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
323
327
  assert.equal('^0.4.4', packageDotJson.dependencies.ping);
324
328
  assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
325
329
  assert.equal('^7.6.3', packageDotJson.dependencies.semver);
326
- assert.equal('^3.13.1', packageDotJson.dependencies.winston);
330
+ assert.equal('^3.14.2', packageDotJson.dependencies.winston);
327
331
  done();
328
332
  } catch (error) {
329
333
  log.error(`Test Failure: ${error}`);
@@ -1,9 +0,0 @@
1
- {
2
- "ComplianceEntries": [
3
- {
4
- "name": "Compliance Summary",
5
- "numInvalidProjects": 0,
6
- "numValidProjects": 0
7
- }
8
- ]
9
- }
@@ -1,5 +0,0 @@
1
- ---------------------------------------------------------------------------------------------
2
- **** Project Compliance Summary ****
3
- 0 project(s) are not valid
4
- 0 project(s) are valid
5
- ---------------------------------------------------------------------------------------------