@itentialopensource/adapter-alkira 0.5.0 → 0.5.1

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,12 @@
1
1
 
2
+ ## 0.5.1 [02-20-2024]
3
+
4
+ * changes for broker calls
5
+
6
+ See merge request itentialopensource/adapters/cloud/adapter-alkira!9
7
+
8
+ ---
9
+
2
10
  ## 0.5.0 [12-14-2023]
3
11
 
4
12
  * More migration changes
package/metadata.json CHANGED
@@ -30,16 +30,32 @@
30
30
  "isDeprecated": false
31
31
  },
32
32
  "brokerSince": "0.2.0",
33
+ "authMethods": [
34
+ {
35
+ "type": "Cookie",
36
+ "primary": true
37
+ }
38
+ ],
33
39
  "documentation": {
34
40
  "storeLink": "",
35
41
  "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-alkira",
36
42
  "repoLink": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-alkira",
37
43
  "docLink": "https://docs.itential.com/opensource/docs/alkira",
38
44
  "demoLinks": [
39
- "https://www.itential.com/resource/demo/itential-alkira-simplify-automate-to-optimize-multi-cloud-networks/",
40
- "https://www.itential.com/blog/company/news-events/itential-alkira-integrate-to-simplify-automate-multi-cloud-networking/",
41
- "https://www.itential.com/search/?_sf_s=alkira"
45
+ {
46
+ "title": "Itential + Alkira: Simplify & Automate to Optimize Multi-Cloud Networks",
47
+ "link": "https://www.itential.com/resource/demo/itential-alkira-simplify-automate-to-optimize-multi-cloud-networks/"
48
+ },
49
+ {
50
+ "title": "Itential & Alkira Integrate to Simplify & Automate Multi-Cloud Networking",
51
+ "link": "https://www.itential.com/blog/company/news-events/itential-alkira-integrate-to-simplify-automate-multi-cloud-networking/"
52
+ },
53
+ {
54
+ "title": "Itential Web Site Search - Alkira",
55
+ "link": "https://www.itential.com/search/?_sf_s=alkira"
56
+ }
42
57
  ],
58
+ "trainingLinks": [],
43
59
  "faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
44
60
  "contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
45
61
  "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-alkira",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "This adapter integrates with system described as: alkiraApi.",
5
5
  "main": "adapter.js",
6
6
  "systemName": "Alkira",
@@ -44,7 +44,7 @@
44
44
  ],
45
45
  "license": "Apache-2.0",
46
46
  "engines": {
47
- "node": ">= 8.0.0",
47
+ "node": ">= 14.0.0",
48
48
  "npm": ">= 6.0.0"
49
49
  },
50
50
  "repository": {
@@ -54,10 +54,10 @@
54
54
  "author": "Itential",
55
55
  "homepage": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-alkira#readme",
56
56
  "dependencies": {
57
- "@itentialopensource/adapter-utils": "^5.3.0",
57
+ "@itentialopensource/adapter-utils": "^5.3.8",
58
58
  "acorn": "^8.10.0",
59
59
  "ajv": "^8.12.0",
60
- "axios": "^1.4.0",
60
+ "axios": "^1.6.7",
61
61
  "commander": "^11.0.0",
62
62
  "dns-lookup-promise": "^1.0.4",
63
63
  "fs-extra": "^11.1.1",
@@ -945,6 +945,11 @@
945
945
  "devicebroker": {
946
946
  "type": "object",
947
947
  "properties": {
948
+ "enabled": {
949
+ "type": "boolean",
950
+ "description": "Whether or not the device broker calls have been mapped",
951
+ "default": false
952
+ },
948
953
  "getDevice": {
949
954
  "type": "array",
950
955
  "description": "Broker call(s) to getDevice",
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.4.0",
3
- "configLines": 46956,
2
+ "version": "0.5.0",
3
+ "configLines": 46961,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 40401,
6
6
  "testLines": 33109,
@@ -120,6 +120,7 @@
120
120
  }
121
121
  },
122
122
  "devicebroker": {
123
+ "enabled": true,
123
124
  "getDevice": [
124
125
  {
125
126
  "path": "/tenantnetworks/{tenantNetworkId}/connectors",
@@ -129,15 +130,15 @@
129
130
  "headers": {},
130
131
  "handleFailure": "ignore",
131
132
  "requestFields": {
132
- "tenantNetworkId": "networkId"
133
+ "tenantNetworkId": "{networkId}"
133
134
  },
134
135
  "responseDatakey": "",
135
136
  "responseFields": {
136
- "name": "name",
137
- "ostype": "type",
137
+ "name": "{name}",
138
+ "ostype": "{type}",
138
139
  "ostypePrefix": "connector-",
139
- "ipaddress": "id",
140
- "port": "tenantNetworkId"
140
+ "ipaddress": "{id}",
141
+ "port": "{tenantNetworkId}"
141
142
  }
142
143
  }
143
144
  ],
@@ -160,13 +161,13 @@
160
161
  },
161
162
  "responseDatakey": "",
162
163
  "responseFields": {
163
- "name": "name",
164
- "ostype": "type",
164
+ "name": "{name}",
165
+ "ostype": "{type}",
165
166
  "ostypePrefix": "connector-",
166
- "ipaddress": "id",
167
- "port": "tenantNetworkId",
168
- "networkId": "tenantNetworkId",
169
- "connectorId": "id"
167
+ "ipaddress": "{id}",
168
+ "port": "{tenantNetworkId}",
169
+ "networkId": "{tenantNetworkId}",
170
+ "connectorId": "{id}"
170
171
  }
171
172
  }
172
173
  ],
@@ -179,12 +180,12 @@
179
180
  "headers": {},
180
181
  "handleFailure": "ignore",
181
182
  "requestFields": {
182
- "tenantNetworkId": "networkId",
183
- "connectorId": "connectorId"
183
+ "tenantNetworkId": "{networkId}",
184
+ "connectorId": "{connectorId}"
184
185
  },
185
186
  "responseDatakey": "",
186
187
  "responseFields": {
187
- "status": "connectivityStatus",
188
+ "status": "{connectivityStatus}",
188
189
  "statusValue": "100"
189
190
  }
190
191
  }
@@ -198,8 +199,8 @@
198
199
  "headers": {},
199
200
  "handleFailure": "ignore",
200
201
  "requestFields": {
201
- "tenantNetworkId": "networkId",
202
- "connectorId": "connectorId"
202
+ "tenantNetworkId": "{networkId}",
203
+ "connectorId": "{connectorId}"
203
204
  },
204
205
  "responseDatakey": "",
205
206
  "responseFields": {}
@@ -250,10 +251,13 @@
250
251
  },
251
252
  "responseDatakey": "",
252
253
  "responseFields": {
253
- "name": "name",
254
- "type": "type",
255
- "id": "id",
256
- "tenantNetworkId": "tenantNetworkId"
254
+ "name": "{name}",
255
+ "ostype": "{type}",
256
+ "ostypePrefix": "connector-",
257
+ "ipaddress": "{id}",
258
+ "port": "{tenantNetworkId}",
259
+ "networkId": "{tenantNetworkId}",
260
+ "connectorId": "{id}"
257
261
  }
258
262
  }
259
263
  ],
@@ -316,7 +316,7 @@ describe('[unit] Alkira Adapter Test', () => {
316
316
  assert.notEqual(null, packageDotJson.dependencies);
317
317
  assert.notEqual('', packageDotJson.dependencies);
318
318
  assert.equal('^8.12.0', packageDotJson.dependencies.ajv);
319
- assert.equal('^1.4.0', packageDotJson.dependencies.axios);
319
+ assert.equal('^1.6.7', packageDotJson.dependencies.axios);
320
320
  assert.equal('^11.0.0', packageDotJson.dependencies.commander);
321
321
  assert.equal('^11.1.1', packageDotJson.dependencies['fs-extra']);
322
322
  assert.equal('^10.2.0', packageDotJson.dependencies.mocha);