@itentialopensource/adapter-meraki 0.8.0 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -104,6 +104,111 @@
104
104
  "mockFile": ""
105
105
  }
106
106
  ]
107
+ },
108
+ {
109
+ "name": "getGenericsNoBase",
110
+ "protocol": "REST",
111
+ "method": "GET",
112
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
113
+ "requestSchema": "schema.json",
114
+ "responseSchema": "schema.json",
115
+ "timeout": 0,
116
+ "sendEmpty": false,
117
+ "sendGetBody": false,
118
+ "requestDatatype": "JSON",
119
+ "responseDatatype": "JSON",
120
+ "headers": {},
121
+ "responseObjects": [
122
+ {
123
+ "type": "default",
124
+ "key": "",
125
+ "mockFile": ""
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "name": "createGenericNoBase",
131
+ "protocol": "REST",
132
+ "method": "POST",
133
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
134
+ "requestSchema": "schema.json",
135
+ "responseSchema": "schema.json",
136
+ "timeout": 0,
137
+ "sendEmpty": false,
138
+ "sendGetBody": false,
139
+ "requestDatatype": "JSON",
140
+ "responseDatatype": "JSON",
141
+ "headers": {},
142
+ "responseObjects": [
143
+ {
144
+ "type": "default",
145
+ "key": "",
146
+ "mockFile": ""
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "name": "updateGenericNoBase",
152
+ "protocol": "REST",
153
+ "method": "PUT",
154
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
155
+ "requestSchema": "schema.json",
156
+ "responseSchema": "schema.json",
157
+ "timeout": 0,
158
+ "sendEmpty": false,
159
+ "sendGetBody": false,
160
+ "requestDatatype": "JSON",
161
+ "responseDatatype": "JSON",
162
+ "headers": {},
163
+ "responseObjects": [
164
+ {
165
+ "type": "default",
166
+ "key": "",
167
+ "mockFile": ""
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "name": "patchGenericNoBase",
173
+ "protocol": "REST",
174
+ "method": "PATCH",
175
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
176
+ "requestSchema": "schema.json",
177
+ "responseSchema": "schema.json",
178
+ "timeout": 0,
179
+ "sendEmpty": false,
180
+ "sendGetBody": false,
181
+ "requestDatatype": "JSON",
182
+ "responseDatatype": "JSON",
183
+ "headers": {},
184
+ "responseObjects": [
185
+ {
186
+ "type": "default",
187
+ "key": "",
188
+ "mockFile": ""
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "name": "deleteGenericNoBase",
194
+ "protocol": "REST",
195
+ "method": "DELETE",
196
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
197
+ "requestSchema": "schema.json",
198
+ "responseSchema": "schema.json",
199
+ "timeout": 0,
200
+ "sendEmpty": false,
201
+ "sendGetBody": false,
202
+ "requestDatatype": "JSON",
203
+ "responseDatatype": "JSON",
204
+ "headers": {},
205
+ "responseObjects": [
206
+ {
207
+ "type": "default",
208
+ "key": "",
209
+ "mockFile": ""
210
+ }
211
+ ]
107
212
  }
108
213
  ]
109
214
  }
@@ -14,7 +14,12 @@
14
14
  "createGeneric",
15
15
  "updateGeneric",
16
16
  "patchGeneric",
17
- "deleteGeneric"
17
+ "deleteGeneric",
18
+ "getGenericsNoBase",
19
+ "createGenericNoBase",
20
+ "updateGenericNoBase",
21
+ "patchGenericNoBase",
22
+ "deleteGenericNoBase"
18
23
  ],
19
24
  "external_name": "ph_request_type"
20
25
  }
package/error.json CHANGED
@@ -96,6 +96,12 @@
96
96
  "displayString": "Invalid properties: $VARIABLE$",
97
97
  "recommendation": "Verify the properties for the adapter"
98
98
  },
99
+ {
100
+ "key": "Missing Properties",
101
+ "icode": "AD.306",
102
+ "displayString": "Property $VARIABLE$ is required",
103
+ "recommendation": "Please provide the required property"
104
+ },
99
105
  {
100
106
  "key": "Query Not Translated",
101
107
  "icode": "AD.310",
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-meraki",
3
- "version": "0.8.0",
3
+ "version": "0.8.3",
4
4
  "description": "This adapter integrates with system described as: merakiDashboardApi.",
5
5
  "main": "adapter.js",
6
+ "systemName": "Meraki",
6
7
  "wizardVersion": "2.44.7",
7
- "engineVersion": "1.59.55",
8
+ "engineVersion": "1.61.3",
8
9
  "adapterType": "http",
9
10
  "scripts": {
10
11
  "artifactize": "npm i && node utils/packModificationScript.js",
@@ -52,7 +53,7 @@
52
53
  "author": "Itential",
53
54
  "homepage": "https://gitlab.com/itentialopensource/adapters/sd-wan/adapter-meraki#readme",
54
55
  "dependencies": {
55
- "@itentialopensource/adapter-utils": "^4.44.11",
56
+ "@itentialopensource/adapter-utils": "^4.45.4",
56
57
  "ajv": "^6.12.0",
57
58
  "axios": "^0.21.0",
58
59
  "commander": "^2.20.0",
package/pronghorn.json CHANGED
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "methods": [
11
11
  {
12
- "name": "updateAdapterConfiguration",
12
+ "name": "iapUpdateAdapterConfiguration",
13
13
  "summary": "Updates the adapter configuration",
14
14
  "description": "Updates the adapter configuration file with the provided changes",
15
15
  "input": [
@@ -78,27 +78,25 @@
78
78
  ],
79
79
  "route": {
80
80
  "verb": "POST",
81
- "path": "/updateAdapterConfiguration"
81
+ "path": "/iapUpdateAdapterConfiguration"
82
82
  },
83
83
  "task": true
84
84
  },
85
85
  {
86
- "name": "findPath",
86
+ "name": "iapFindAdapterPath",
87
87
  "summary": "Provides the ability to see if a particular API path is supported by the adapter",
88
88
  "description": "Provides the ability to see if a particular API path is supported by the adapter",
89
- "input": [
90
- {
91
- "name": "apiPath",
92
- "type": "string",
93
- "info": "The API Path you want to check - make sure to not include base path and version",
94
- "description": "The API Path you want to check - make sure to not include base path and version",
95
- "schema": {
96
- "title": "apiPath",
97
- "type": "string"
98
- },
99
- "required": true
100
- }
101
- ],
89
+ "input": [{
90
+ "name": "apiPath",
91
+ "type": "string",
92
+ "info": "The API Path you want to check - make sure to not include base path and version",
93
+ "description": "The API Path you want to check - make sure to not include base path and version",
94
+ "schema": {
95
+ "title": "apiPath",
96
+ "type": "string"
97
+ },
98
+ "required": true
99
+ }],
102
100
  "output": {
103
101
  "name": "result",
104
102
  "type": "object",
@@ -113,36 +111,30 @@
113
111
  ],
114
112
  "route": {
115
113
  "verb": "POST",
116
- "path": "/findPath"
114
+ "path": "/iapFindAdapterPath"
117
115
  },
118
116
  "task": true
119
117
  },
120
118
  {
121
- "name": "troubleshoot",
122
- "summary": "Runs troubleshoot script for adapter",
123
- "description": "Runs troubleshoot script for adapter",
124
- "input": [
125
- {
126
- "name": "props",
127
- "type": "object",
128
- "info": "Object containing configuration, healthcheck and auth properties {'connProps':{'host': 'api.service.com', 'base_path': '/', 'protocol': 'http', 'port': 443, 'version': 'v1'},'healthCheckEndpoint': '/healthcheck', 'auth': {'auth_method': 'no authentication', 'username': 'username', 'password': 'password'}}",
129
- "required": true,
130
- "schema": {
131
- "title": "props",
132
- "type": "object"
133
- }
119
+ "name": "iapSuspendAdapter",
120
+ "summary": "Suspends the adapter",
121
+ "description": "Suspends the adapter",
122
+ "input": [{
123
+ "name": "mode",
124
+ "type": "enum",
125
+ "enumerals": ["pause", "error"],
126
+ "info": "How incoming requests are handled. Defaults to 'pause'",
127
+ "description": "How incoming requests are handled. Defaults to 'pause'",
128
+ "schema": {
129
+ "title": "mode",
130
+ "type": "string"
134
131
  },
135
- {
136
- "name": "persistFlag",
137
- "type": "boolean",
138
- "info": "Whether the input properties should be saved",
139
- "required": true
140
- }
141
- ],
132
+ "required": false
133
+ }],
142
134
  "output": {
143
135
  "name": "result",
144
136
  "type": "object",
145
- "description": "A JSON Object containing the test results",
137
+ "description": "A JSON Object containing the adapter suspended status",
146
138
  "schema": {
147
139
  "title": "result",
148
140
  "type": "object"
@@ -153,38 +145,42 @@
153
145
  ],
154
146
  "route": {
155
147
  "verb": "POST",
156
- "path": "/troubleshoot"
148
+ "path": "/iapSuspendAdapter"
157
149
  },
158
150
  "task": true
159
151
  },
160
152
  {
161
- "name": "runHealthcheck",
162
- "summary": "Runs healthcheck script for adapter",
163
- "description": "Runs healthcheck script for adapter",
153
+ "name": "iapUnsuspendAdapter",
154
+ "summary": "Unsuspends the adapter",
155
+ "description": "Unsuspends the adapter",
164
156
  "input": [],
165
157
  "output": {
166
158
  "name": "result",
167
- "type": "boolean",
168
- "description": "Whether healthcheck passed or failed"
159
+ "type": "object",
160
+ "description": "A JSON Object containing the adapter suspended status",
161
+ "schema": {
162
+ "title": "result",
163
+ "type": "object"
164
+ }
169
165
  },
170
166
  "roles": [
171
167
  "admin"
172
168
  ],
173
169
  "route": {
174
170
  "verb": "POST",
175
- "path": "/runHealthcheck"
171
+ "path": "/iapUnsuspendAdapter"
176
172
  },
177
173
  "task": true
178
174
  },
179
175
  {
180
- "name": "runConnectivity",
181
- "summary": "Runs connectivity check script for adapter",
182
- "description": "Runs connectivity check script for adapter",
176
+ "name": "iapGetAdapterQueue",
177
+ "summary": "Return the requests that are waiting in the queue if throttling is enabled",
178
+ "description": "Return the requests that are waiting in the queue if throttling is enabled",
183
179
  "input": [],
184
180
  "output": {
185
181
  "name": "result",
186
182
  "type": "object",
187
- "description": "A JSON Object containing the test results",
183
+ "description": "A JSON Object containing the adapter queue",
188
184
  "schema": {
189
185
  "title": "result",
190
186
  "type": "object"
@@ -195,15 +191,32 @@
195
191
  ],
196
192
  "route": {
197
193
  "verb": "POST",
198
- "path": "/runConnectivity"
194
+ "path": "/iapGetAdapterQueue"
199
195
  },
200
196
  "task": true
201
197
  },
202
198
  {
203
- "name": "runBasicGet",
204
- "summary": "Runs basicGet script for adapter",
205
- "description": "Runs basicGet script for adapter",
206
- "input": [],
199
+ "name": "iapTroubleshootAdapter",
200
+ "summary": "Runs troubleshoot script for adapter",
201
+ "description": "Runs troubleshoot script for adapter",
202
+ "input": [
203
+ {
204
+ "name": "props",
205
+ "type": "object",
206
+ "info": "Object containing configuration, healthcheck and auth properties {'connProps':{'host': 'api.service.com', 'base_path': '/', 'protocol': 'http', 'port': 443, 'version': 'v1'},'healthCheckEndpoint': '/healthcheck', 'auth': {'auth_method': 'no authentication', 'username': 'username', 'password': 'password'}}",
207
+ "required": true,
208
+ "schema": {
209
+ "title": "props",
210
+ "type": "object"
211
+ }
212
+ },
213
+ {
214
+ "name": "persistFlag",
215
+ "type": "boolean",
216
+ "info": "Whether the input properties should be saved",
217
+ "required": true
218
+ }
219
+ ],
207
220
  "output": {
208
221
  "name": "result",
209
222
  "type": "object",
@@ -218,35 +231,38 @@
218
231
  ],
219
232
  "route": {
220
233
  "verb": "POST",
221
- "path": "/runBasicGet"
234
+ "path": "/iapTroubleshootAdapter"
222
235
  },
223
236
  "task": true
224
237
  },
225
238
  {
226
- "name": "suspend",
227
- "summary": "Suspends the adapter",
228
- "description": "Suspends the adapter",
229
- "input": [
230
- {
231
- "name": "mode",
232
- "type": "enum",
233
- "enumerals": [
234
- "pause",
235
- "error"
236
- ],
237
- "info": "How incoming requests are handled. Defaults to 'pause'",
238
- "description": "How incoming requests are handled. Defaults to 'pause'",
239
- "schema": {
240
- "title": "mode",
241
- "type": "string"
242
- },
243
- "required": false
244
- }
239
+ "name": "iapRunAdapterHealthcheck",
240
+ "summary": "Runs healthcheck script for adapter",
241
+ "description": "Runs healthcheck script for adapter",
242
+ "input": [],
243
+ "output": {
244
+ "name": "result",
245
+ "type": "boolean",
246
+ "description": "Whether healthcheck passed or failed"
247
+ },
248
+ "roles": [
249
+ "admin"
245
250
  ],
251
+ "route": {
252
+ "verb": "POST",
253
+ "path": "/iapRunAdapterHealthcheck"
254
+ },
255
+ "task": true
256
+ },
257
+ {
258
+ "name": "iapRunAdapterConnectivity",
259
+ "summary": "Runs connectivity check script for adapter",
260
+ "description": "Runs connectivity check script for adapter",
261
+ "input": [],
246
262
  "output": {
247
263
  "name": "result",
248
264
  "type": "object",
249
- "description": "A JSON Object containing the adapter suspended status",
265
+ "description": "A JSON Object containing the test results",
250
266
  "schema": {
251
267
  "title": "result",
252
268
  "type": "object"
@@ -257,19 +273,19 @@
257
273
  ],
258
274
  "route": {
259
275
  "verb": "POST",
260
- "path": "/suspend"
276
+ "path": "/iapRunAdapterConnectivity"
261
277
  },
262
278
  "task": true
263
279
  },
264
280
  {
265
- "name": "unsuspend",
266
- "summary": "Unsuspends the adapter",
267
- "description": "Unsuspends the adapter",
281
+ "name": "iapRunAdapterBasicGet",
282
+ "summary": "Runs basicGet script for adapter",
283
+ "description": "Runs basicGet script for adapter",
268
284
  "input": [],
269
285
  "output": {
270
286
  "name": "result",
271
287
  "type": "object",
272
- "description": "A JSON Object containing the adapter suspended status",
288
+ "description": "A JSON Object containing the test results",
273
289
  "schema": {
274
290
  "title": "result",
275
291
  "type": "object"
@@ -280,21 +296,21 @@
280
296
  ],
281
297
  "route": {
282
298
  "verb": "POST",
283
- "path": "/unsuspend"
299
+ "path": "/iapRunAdapterBasicGet"
284
300
  },
285
301
  "task": true
286
302
  },
287
303
  {
288
- "name": "getQueue",
289
- "summary": "Return the requests that are waiting in the queue if throttling is enabled",
290
- "description": "Return the requests that are waiting in the queue if throttling is enabled",
304
+ "name": "iapMoveAdapterEntitiesToDB",
305
+ "summary": "Moves entities from an adapter into the IAP database",
306
+ "description": "Moves entities from an adapter into the IAP database",
291
307
  "input": [],
292
308
  "output": {
293
- "name": "result",
309
+ "name": "res",
294
310
  "type": "object",
295
- "description": "A JSON Object containing the adapter queue",
311
+ "description": "A JSON Object containing status, code and the response from the mongo transaction",
296
312
  "schema": {
297
- "title": "result",
313
+ "title": "res",
298
314
  "type": "object"
299
315
  }
300
316
  },
@@ -303,7 +319,7 @@
303
319
  ],
304
320
  "route": {
305
321
  "verb": "POST",
306
- "path": "/getQueue"
322
+ "path": "/iapMoveAdapterEntitiesToDB"
307
323
  },
308
324
  "task": true
309
325
  },
@@ -387,16 +403,72 @@
387
403
  "task": true
388
404
  },
389
405
  {
390
- "name": "moveEntitiesToDB",
391
- "summary": "Moves entities from an adapter into the IAP database",
392
- "description": "Moves entities from an adapter into the IAP database",
393
- "input": [],
406
+ "name": "genericAdapterRequestNoBasePath",
407
+ "summary": "Makes the requested generic call with no base path or version",
408
+ "description": "Makes the requested generic call with no base path or version",
409
+ "input": [
410
+ {
411
+ "name": "uriPath",
412
+ "type": "string",
413
+ "info": "the path of the api call - do not include the host, port, base path or version",
414
+ "description": "the path of the api call",
415
+ "schema": {
416
+ "title": "uriPath",
417
+ "type": "string"
418
+ },
419
+ "required": true
420
+ },
421
+ {
422
+ "name": "restMethod",
423
+ "type": "string",
424
+ "info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
425
+ "description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
426
+ "schema": {
427
+ "title": "restMethod",
428
+ "type": "string"
429
+ },
430
+ "required": true
431
+ },
432
+ {
433
+ "name": "queryData",
434
+ "type": "object",
435
+ "info": "the query parameters to be put on the url (optional)",
436
+ "description": "the query parameters to be put on the url (optional)",
437
+ "schema": {
438
+ "title": "queryData",
439
+ "type": "object"
440
+ },
441
+ "required": false
442
+ },
443
+ {
444
+ "name": "requestBody",
445
+ "type": "object",
446
+ "info": "the payload to be sent with the request (optional)",
447
+ "description": "the payload to be sent with the request (optional)",
448
+ "schema": {
449
+ "title": "requestBody",
450
+ "type": "object"
451
+ },
452
+ "required": false
453
+ },
454
+ {
455
+ "name": "addlHeaders",
456
+ "type": "object",
457
+ "info": "additional headers to be put on the call (optional)",
458
+ "description": "additional headers to be put on the call (optional)",
459
+ "schema": {
460
+ "title": "addlHeaders",
461
+ "type": "object"
462
+ },
463
+ "required": false
464
+ }
465
+ ],
394
466
  "output": {
395
- "name": "res",
467
+ "name": "result",
396
468
  "type": "object",
397
- "description": "A JSON Object containing status, code and the response from the mongo transaction",
469
+ "description": "A JSON Object containing status, code and the result",
398
470
  "schema": {
399
- "title": "res",
471
+ "title": "result",
400
472
  "type": "object"
401
473
  }
402
474
  },
@@ -405,7 +477,7 @@
405
477
  ],
406
478
  "route": {
407
479
  "verb": "POST",
408
- "path": "/moveEntitiesToDB"
480
+ "path": "/genericAdapterRequestNoBasePath"
409
481
  },
410
482
  "task": true
411
483
  },
@@ -556,7 +628,7 @@
556
628
  "task": false
557
629
  },
558
630
  {
559
- "name": "getCount",
631
+ "name": "iapGetDeviceCount",
560
632
  "summary": "Gets a device count from the system",
561
633
  "description": "Gets a device count from the system",
562
634
  "input": [],
@@ -574,7 +646,7 @@
574
646
  ],
575
647
  "route": {
576
648
  "verb": "POST",
577
- "path": "/getCount"
649
+ "path": "/iapGetDeviceCount"
578
650
  },
579
651
  "task": false
580
652
  },
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "type": "encryption",
4
+ "pointer": "/authentication/password"
5
+ },
6
+ {
7
+ "type": "encryption",
8
+ "pointer": "/authentication/token"
9
+ },
10
+ {
11
+ "type": "encryption",
12
+ "pointer": "/mongo/password"
13
+ }
14
+ ]