@itentialopensource/adapter-meraki 0.7.2 → 0.8.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/AUTH.md +40 -0
- package/CALLS.md +100 -0
- package/CHANGELOG.md +24 -0
- package/ENHANCE.md +69 -0
- package/PROPERTIES.md +247 -0
- package/README.md +113 -470
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +46 -0
- package/adapter.js +911 -64
- package/adapterBase.js +294 -271
- package/entities/.generic/action.json +5 -5
- package/error.json +12 -0
- package/package.json +18 -13
- package/pronghorn.json +289 -104
- package/propertiesSchema.json +238 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/updateReport1642739939352.json +95 -0
- package/sampleProperties.json +4 -1
- package/test/integration/adapterTestBasicGet.js +1 -1
- package/test/integration/adapterTestIntegration.js +11 -2
- package/test/unit/adapterBaseTestUnit.js +27 -26
- package/test/unit/adapterTestUnit.js +632 -11
- package/utils/addAuth.js +94 -0
- package/utils/basicGet.js +1 -14
- package/utils/entitiesToDB.js +224 -0
- package/utils/modify.js +1 -1
- package/utils/packModificationScript.js +1 -1
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/removeHooks.js +20 -0
- package/utils/tbScript.js +14 -8
- package/utils/tbUtils.js +98 -19
- package/utils/troubleshootingAdapter.js +2 -26
@@ -4,7 +4,7 @@
|
|
4
4
|
"name": "getGenerics",
|
5
5
|
"protocol": "REST",
|
6
6
|
"method": "GET",
|
7
|
-
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}?{query}",
|
7
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
8
8
|
"requestSchema": "schema.json",
|
9
9
|
"responseSchema": "schema.json",
|
10
10
|
"timeout": 0,
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"name": "createGeneric",
|
26
26
|
"protocol": "REST",
|
27
27
|
"method": "POST",
|
28
|
-
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}?{query}",
|
28
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
29
29
|
"requestSchema": "schema.json",
|
30
30
|
"responseSchema": "schema.json",
|
31
31
|
"timeout": 0,
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"name": "updateGeneric",
|
47
47
|
"protocol": "REST",
|
48
48
|
"method": "PUT",
|
49
|
-
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}?{query}",
|
49
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
50
50
|
"requestSchema": "schema.json",
|
51
51
|
"responseSchema": "schema.json",
|
52
52
|
"timeout": 0,
|
@@ -67,7 +67,7 @@
|
|
67
67
|
"name": "patchGeneric",
|
68
68
|
"protocol": "REST",
|
69
69
|
"method": "PATCH",
|
70
|
-
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}?{query}",
|
70
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
71
71
|
"requestSchema": "schema.json",
|
72
72
|
"responseSchema": "schema.json",
|
73
73
|
"timeout": 0,
|
@@ -88,7 +88,7 @@
|
|
88
88
|
"name": "deleteGeneric",
|
89
89
|
"protocol": "REST",
|
90
90
|
"method": "DELETE",
|
91
|
-
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}?{query}",
|
91
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
92
92
|
"requestSchema": "schema.json",
|
93
93
|
"responseSchema": "schema.json",
|
94
94
|
"timeout": 0,
|
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",
|
@@ -168,6 +174,12 @@
|
|
168
174
|
"displayString": "Failure response received for $VARIABLE$",
|
169
175
|
"recommendation": "Check the reason for failure in the stack trace"
|
170
176
|
},
|
177
|
+
{
|
178
|
+
"key": "Suspended Adapter",
|
179
|
+
"icode": "AD.600",
|
180
|
+
"displayString": "Adapter is suspended",
|
181
|
+
"recommendation": "Check if external system is functional and unsuspend if appropriate"
|
182
|
+
},
|
171
183
|
{
|
172
184
|
"key": "Caught Exception",
|
173
185
|
"icode": "AD.900",
|
package/package.json
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "@itentialopensource/adapter-meraki",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.8.1",
|
4
4
|
"description": "This adapter integrates with system described as: merakiDashboardApi.",
|
5
5
|
"main": "adapter.js",
|
6
|
-
"wizardVersion": "2.
|
7
|
-
"engineVersion": "1.
|
6
|
+
"wizardVersion": "2.44.7",
|
7
|
+
"engineVersion": "1.59.55",
|
8
|
+
"adapterType": "http",
|
8
9
|
"scripts": {
|
9
10
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
10
|
-
"preinstall": "node utils/setup.js",
|
11
|
+
"preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
|
11
12
|
"lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
|
12
13
|
"lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
|
13
14
|
"test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
|
@@ -15,7 +16,7 @@
|
|
15
16
|
"test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
|
16
17
|
"test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
|
17
18
|
"test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
|
18
|
-
"adapter:install": "node utils/tbScript.js install",
|
19
|
+
"adapter:install": "npm i && node utils/tbScript.js install",
|
19
20
|
"adapter:checkMigrate": "node utils/checkMigrate.js",
|
20
21
|
"adapter:findPath": "node utils/findPath.js",
|
21
22
|
"adapter:migrate": "node utils/modify.js -m",
|
@@ -25,7 +26,7 @@
|
|
25
26
|
"healthcheck": "node utils/tbScript.js healthcheck",
|
26
27
|
"basicget": "node utils/tbScript.js basicget",
|
27
28
|
"connectivity": "node utils/tbScript.js connectivity",
|
28
|
-
"deploy": "npm publish --registry=
|
29
|
+
"deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
|
29
30
|
"build": "npm run deploy"
|
30
31
|
},
|
31
32
|
"keywords": [
|
@@ -51,13 +52,14 @@
|
|
51
52
|
"author": "Itential",
|
52
53
|
"homepage": "https://gitlab.com/itentialopensource/adapters/sd-wan/adapter-meraki#readme",
|
53
54
|
"dependencies": {
|
54
|
-
"@itentialopensource/adapter-utils": "^4.
|
55
|
+
"@itentialopensource/adapter-utils": "^4.44.11",
|
55
56
|
"ajv": "^6.12.0",
|
56
57
|
"axios": "^0.21.0",
|
57
58
|
"commander": "^2.20.0",
|
58
59
|
"fs-extra": "^8.1.0",
|
59
|
-
"mocha": "^
|
60
|
+
"mocha": "^9.0.1",
|
60
61
|
"mocha-param": "^2.0.1",
|
62
|
+
"mongodb": "^4.1.0",
|
61
63
|
"network-diagnostics": "^0.5.3",
|
62
64
|
"nyc": "^15.1.0",
|
63
65
|
"readline-sync": "^1.4.10",
|
@@ -65,13 +67,16 @@
|
|
65
67
|
"winston": "^3.3.3"
|
66
68
|
},
|
67
69
|
"devDependencies": {
|
68
|
-
"chai": "^4.
|
69
|
-
"eslint": "^7.
|
70
|
-
"eslint-config-airbnb-base": "^14.2.
|
71
|
-
"eslint-plugin-import": "^2.
|
72
|
-
"eslint-plugin-json": "^
|
70
|
+
"chai": "^4.3.4",
|
71
|
+
"eslint": "^7.29.0",
|
72
|
+
"eslint-config-airbnb-base": "^14.2.1",
|
73
|
+
"eslint-plugin-import": "^2.23.4",
|
74
|
+
"eslint-plugin-json": "^3.0.0",
|
73
75
|
"package-json-validator": "^0.6.3",
|
74
76
|
"testdouble": "^3.16.1"
|
75
77
|
},
|
78
|
+
"resolutions": {
|
79
|
+
"minimist": "^1.2.5"
|
80
|
+
},
|
76
81
|
"private": false
|
77
82
|
}
|