@itentialopensource/adapter-meraki 0.7.0 → 0.8.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.
- package/.eslintignore +1 -0
- package/.eslintrc.js +12 -12
- package/CHANGELOG.md +32 -0
- package/README.md +270 -68
- package/adapter.js +2786 -24
- package/adapterBase.js +544 -17
- package/entities/.generic/action.json +109 -0
- package/entities/.generic/schema.json +23 -0
- package/entities/.system/action.json +1 -1
- package/entities/CameraQualityRetentionProfiles/action.json +3 -0
- package/entities/ConnectivityMonitoringDestinations/action.json +1 -0
- package/entities/DashboardBrandingPolicies/action.json +4 -0
- package/entities/Floorplans/action.json +3 -0
- package/entities/Licenses/action.json +5 -0
- package/entities/LinkAggregations/action.json +3 -0
- package/entities/MGConnectivityMonitoringDestinations/action.json +1 -0
- package/entities/MGDHCPSettings/action.json +1 -0
- package/entities/MGLANSettings/action.json +1 -0
- package/entities/MGPortforwardingRules/action.json +1 -0
- package/entities/MGSubnetPoolSettings/action.json +1 -0
- package/entities/MGUplinkSettings/action.json +1 -0
- package/entities/MXVLANPorts/action.json +1 -0
- package/entities/MXWarmSpareSettings/action.json +2 -0
- package/entities/NetFlowSettings/action.json +1 -0
- package/entities/Switch settings/action.json +9 -0
- package/entities/SwitchACLs/action.json +1 -0
- package/entities/SwitchPortsSchedules/action.json +3 -0
- package/entities/TrafficAnalysisSettings/action.json +1 -0
- package/entities/WirelessSettings/action.json +1 -0
- package/error.json +6 -0
- package/package.json +45 -23
- package/pronghorn.json +586 -16
- package/propertiesSchema.json +84 -11
- package/refs?service=git-upload-pack +0 -0
- package/report/meraki-newcalls-OpenApi3Json.json +5460 -0
- package/report/updateReport1594225126093.json +95 -0
- package/report/updateReport1615384306128.json +95 -0
- package/report/updateReport1642739939352.json +95 -0
- package/sampleProperties.json +20 -5
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +30 -11
- package/test/unit/adapterBaseTestUnit.js +944 -0
- package/test/unit/adapterTestUnit.js +638 -12
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +9 -14
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +224 -0
- package/utils/findPath.js +74 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +1 -1
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +1 -1
- package/utils/removeHooks.js +20 -0
- package/utils/tbScript.js +169 -0
- package/utils/tbUtils.js +451 -0
- package/utils/troubleshootingAdapter.js +190 -0
- package/gl-code-quality-report.json +0 -1
@@ -0,0 +1,109 @@
|
|
1
|
+
{
|
2
|
+
"actions": [
|
3
|
+
{
|
4
|
+
"name": "getGenerics",
|
5
|
+
"protocol": "REST",
|
6
|
+
"method": "GET",
|
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
|
+
"requestSchema": "schema.json",
|
9
|
+
"responseSchema": "schema.json",
|
10
|
+
"timeout": 0,
|
11
|
+
"sendEmpty": false,
|
12
|
+
"sendGetBody": false,
|
13
|
+
"requestDatatype": "JSON",
|
14
|
+
"responseDatatype": "JSON",
|
15
|
+
"headers": {},
|
16
|
+
"responseObjects": [
|
17
|
+
{
|
18
|
+
"type": "default",
|
19
|
+
"key": "",
|
20
|
+
"mockFile": ""
|
21
|
+
}
|
22
|
+
]
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"name": "createGeneric",
|
26
|
+
"protocol": "REST",
|
27
|
+
"method": "POST",
|
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
|
+
"requestSchema": "schema.json",
|
30
|
+
"responseSchema": "schema.json",
|
31
|
+
"timeout": 0,
|
32
|
+
"sendEmpty": false,
|
33
|
+
"sendGetBody": false,
|
34
|
+
"requestDatatype": "JSON",
|
35
|
+
"responseDatatype": "JSON",
|
36
|
+
"headers": {},
|
37
|
+
"responseObjects": [
|
38
|
+
{
|
39
|
+
"type": "default",
|
40
|
+
"key": "",
|
41
|
+
"mockFile": ""
|
42
|
+
}
|
43
|
+
]
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"name": "updateGeneric",
|
47
|
+
"protocol": "REST",
|
48
|
+
"method": "PUT",
|
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
|
+
"requestSchema": "schema.json",
|
51
|
+
"responseSchema": "schema.json",
|
52
|
+
"timeout": 0,
|
53
|
+
"sendEmpty": false,
|
54
|
+
"sendGetBody": false,
|
55
|
+
"requestDatatype": "JSON",
|
56
|
+
"responseDatatype": "JSON",
|
57
|
+
"headers": {},
|
58
|
+
"responseObjects": [
|
59
|
+
{
|
60
|
+
"type": "default",
|
61
|
+
"key": "",
|
62
|
+
"mockFile": ""
|
63
|
+
}
|
64
|
+
]
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"name": "patchGeneric",
|
68
|
+
"protocol": "REST",
|
69
|
+
"method": "PATCH",
|
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
|
+
"requestSchema": "schema.json",
|
72
|
+
"responseSchema": "schema.json",
|
73
|
+
"timeout": 0,
|
74
|
+
"sendEmpty": false,
|
75
|
+
"sendGetBody": false,
|
76
|
+
"requestDatatype": "JSON",
|
77
|
+
"responseDatatype": "JSON",
|
78
|
+
"headers": {},
|
79
|
+
"responseObjects": [
|
80
|
+
{
|
81
|
+
"type": "default",
|
82
|
+
"key": "",
|
83
|
+
"mockFile": ""
|
84
|
+
}
|
85
|
+
]
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"name": "deleteGeneric",
|
89
|
+
"protocol": "REST",
|
90
|
+
"method": "DELETE",
|
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
|
+
"requestSchema": "schema.json",
|
93
|
+
"responseSchema": "schema.json",
|
94
|
+
"timeout": 0,
|
95
|
+
"sendEmpty": false,
|
96
|
+
"sendGetBody": false,
|
97
|
+
"requestDatatype": "JSON",
|
98
|
+
"responseDatatype": "JSON",
|
99
|
+
"headers": {},
|
100
|
+
"responseObjects": [
|
101
|
+
{
|
102
|
+
"type": "default",
|
103
|
+
"key": "",
|
104
|
+
"mockFile": ""
|
105
|
+
}
|
106
|
+
]
|
107
|
+
}
|
108
|
+
]
|
109
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"$id": "generic_schema.json",
|
3
|
+
"type": "object",
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
5
|
+
"translate": false,
|
6
|
+
"dynamicfields": true,
|
7
|
+
"properties": {
|
8
|
+
"ph_request_type": {
|
9
|
+
"type": "string",
|
10
|
+
"description": "type of request (internal to adapter)",
|
11
|
+
"default": "getGeneric",
|
12
|
+
"enum": [
|
13
|
+
"getGenerics",
|
14
|
+
"createGeneric",
|
15
|
+
"updateGeneric",
|
16
|
+
"patchGeneric",
|
17
|
+
"deleteGeneric"
|
18
|
+
],
|
19
|
+
"external_name": "ph_request_type"
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"definitions": {}
|
23
|
+
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
"name": "getToken",
|
5
5
|
"protocol": "REST",
|
6
6
|
"method": "POST",
|
7
|
-
"entitypath": "{base_path}/{version}/login
|
7
|
+
"entitypath": "{base_path}/{version}/login",
|
8
8
|
"requestSchema": "schemaTokenReq.json",
|
9
9
|
"responseSchema": "schemaTokenResp.json",
|
10
10
|
"timeout": 0,
|
@@ -30,6 +30,7 @@
|
|
30
30
|
"responseSchema": "schema.json",
|
31
31
|
"timeout": 0,
|
32
32
|
"sendEmpty": false,
|
33
|
+
"sendGetBody": false,
|
33
34
|
"requestDatatype": "JSON",
|
34
35
|
"responseDatatype": "JSON",
|
35
36
|
"headers": {},
|
@@ -71,6 +72,7 @@
|
|
71
72
|
"responseSchema": "schema.json",
|
72
73
|
"timeout": 0,
|
73
74
|
"sendEmpty": false,
|
75
|
+
"sendGetBody": false,
|
74
76
|
"requestDatatype": "JSON",
|
75
77
|
"responseDatatype": "JSON",
|
76
78
|
"headers": {},
|
@@ -91,6 +93,7 @@
|
|
91
93
|
"responseSchema": "schema.json",
|
92
94
|
"timeout": 0,
|
93
95
|
"sendEmpty": false,
|
96
|
+
"sendGetBody": false,
|
94
97
|
"requestDatatype": "JSON",
|
95
98
|
"responseDatatype": "JSON",
|
96
99
|
"headers": {},
|
@@ -30,6 +30,7 @@
|
|
30
30
|
"responseSchema": "schema.json",
|
31
31
|
"timeout": 0,
|
32
32
|
"sendEmpty": false,
|
33
|
+
"sendGetBody": false,
|
33
34
|
"requestDatatype": "JSON",
|
34
35
|
"responseDatatype": "JSON",
|
35
36
|
"headers": {},
|
@@ -71,6 +72,7 @@
|
|
71
72
|
"responseSchema": "schema.json",
|
72
73
|
"timeout": 0,
|
73
74
|
"sendEmpty": false,
|
75
|
+
"sendGetBody": false,
|
74
76
|
"requestDatatype": "JSON",
|
75
77
|
"responseDatatype": "JSON",
|
76
78
|
"headers": {},
|
@@ -112,6 +114,7 @@
|
|
112
114
|
"responseSchema": "schema.json",
|
113
115
|
"timeout": 0,
|
114
116
|
"sendEmpty": false,
|
117
|
+
"sendGetBody": false,
|
115
118
|
"requestDatatype": "JSON",
|
116
119
|
"responseDatatype": "JSON",
|
117
120
|
"headers": {},
|
@@ -132,6 +135,7 @@
|
|
132
135
|
"responseSchema": "schema.json",
|
133
136
|
"timeout": 0,
|
134
137
|
"sendEmpty": false,
|
138
|
+
"sendGetBody": false,
|
135
139
|
"requestDatatype": "JSON",
|
136
140
|
"responseDatatype": "JSON",
|
137
141
|
"headers": {},
|
@@ -30,6 +30,7 @@
|
|
30
30
|
"responseSchema": "schema.json",
|
31
31
|
"timeout": 0,
|
32
32
|
"sendEmpty": false,
|
33
|
+
"sendGetBody": false,
|
33
34
|
"requestDatatype": "JSON",
|
34
35
|
"responseDatatype": "JSON",
|
35
36
|
"headers": {},
|
@@ -71,6 +72,7 @@
|
|
71
72
|
"responseSchema": "schema.json",
|
72
73
|
"timeout": 0,
|
73
74
|
"sendEmpty": false,
|
75
|
+
"sendGetBody": false,
|
74
76
|
"requestDatatype": "JSON",
|
75
77
|
"responseDatatype": "JSON",
|
76
78
|
"headers": {},
|
@@ -91,6 +93,7 @@
|
|
91
93
|
"responseSchema": "schema.json",
|
92
94
|
"timeout": 0,
|
93
95
|
"sendEmpty": false,
|
96
|
+
"sendGetBody": false,
|
94
97
|
"requestDatatype": "JSON",
|
95
98
|
"responseDatatype": "JSON",
|
96
99
|
"headers": {},
|
@@ -51,6 +51,7 @@
|
|
51
51
|
"responseSchema": "schema.json",
|
52
52
|
"timeout": 0,
|
53
53
|
"sendEmpty": false,
|
54
|
+
"sendGetBody": false,
|
54
55
|
"requestDatatype": "JSON",
|
55
56
|
"responseDatatype": "JSON",
|
56
57
|
"headers": {},
|
@@ -71,6 +72,7 @@
|
|
71
72
|
"responseSchema": "schema.json",
|
72
73
|
"timeout": 0,
|
73
74
|
"sendEmpty": false,
|
75
|
+
"sendGetBody": false,
|
74
76
|
"requestDatatype": "JSON",
|
75
77
|
"responseDatatype": "JSON",
|
76
78
|
"headers": {},
|
@@ -91,6 +93,7 @@
|
|
91
93
|
"responseSchema": "schema.json",
|
92
94
|
"timeout": 0,
|
93
95
|
"sendEmpty": false,
|
96
|
+
"sendGetBody": false,
|
94
97
|
"requestDatatype": "JSON",
|
95
98
|
"responseDatatype": "JSON",
|
96
99
|
"headers": {},
|
@@ -111,6 +114,7 @@
|
|
111
114
|
"responseSchema": "schema.json",
|
112
115
|
"timeout": 0,
|
113
116
|
"sendEmpty": false,
|
117
|
+
"sendGetBody": false,
|
114
118
|
"requestDatatype": "JSON",
|
115
119
|
"responseDatatype": "JSON",
|
116
120
|
"headers": {},
|
@@ -131,6 +135,7 @@
|
|
131
135
|
"responseSchema": "schema.json",
|
132
136
|
"timeout": 0,
|
133
137
|
"sendEmpty": false,
|
138
|
+
"sendGetBody": false,
|
134
139
|
"requestDatatype": "JSON",
|
135
140
|
"responseDatatype": "JSON",
|
136
141
|
"headers": {},
|
@@ -30,6 +30,7 @@
|
|
30
30
|
"responseSchema": "schema.json",
|
31
31
|
"timeout": 0,
|
32
32
|
"sendEmpty": false,
|
33
|
+
"sendGetBody": false,
|
33
34
|
"requestDatatype": "JSON",
|
34
35
|
"responseDatatype": "JSON",
|
35
36
|
"headers": {},
|
@@ -50,6 +51,7 @@
|
|
50
51
|
"responseSchema": "schema.json",
|
51
52
|
"timeout": 0,
|
52
53
|
"sendEmpty": false,
|
54
|
+
"sendGetBody": false,
|
53
55
|
"requestDatatype": "JSON",
|
54
56
|
"responseDatatype": "JSON",
|
55
57
|
"headers": {},
|
@@ -70,6 +72,7 @@
|
|
70
72
|
"responseSchema": "schema.json",
|
71
73
|
"timeout": 0,
|
72
74
|
"sendEmpty": false,
|
75
|
+
"sendGetBody": false,
|
73
76
|
"requestDatatype": "JSON",
|
74
77
|
"responseDatatype": "JSON",
|
75
78
|
"headers": {},
|
@@ -9,6 +9,7 @@
|
|
9
9
|
"responseSchema": "schema.json",
|
10
10
|
"timeout": 0,
|
11
11
|
"sendEmpty": false,
|
12
|
+
"sendGetBody": false,
|
12
13
|
"requestDatatype": "JSON",
|
13
14
|
"responseDatatype": "JSON",
|
14
15
|
"headers": {},
|
@@ -50,6 +51,7 @@
|
|
50
51
|
"responseSchema": "schema.json",
|
51
52
|
"timeout": 0,
|
52
53
|
"sendEmpty": false,
|
54
|
+
"sendGetBody": false,
|
53
55
|
"requestDatatype": "JSON",
|
54
56
|
"responseDatatype": "JSON",
|
55
57
|
"headers": {},
|
@@ -72,6 +72,7 @@
|
|
72
72
|
"responseSchema": "schema.json",
|
73
73
|
"timeout": 0,
|
74
74
|
"sendEmpty": false,
|
75
|
+
"sendGetBody": false,
|
75
76
|
"requestDatatype": "JSON",
|
76
77
|
"responseDatatype": "JSON",
|
77
78
|
"headers": {},
|
@@ -113,6 +114,7 @@
|
|
113
114
|
"responseSchema": "schema.json",
|
114
115
|
"timeout": 0,
|
115
116
|
"sendEmpty": false,
|
117
|
+
"sendGetBody": false,
|
116
118
|
"requestDatatype": "JSON",
|
117
119
|
"responseDatatype": "JSON",
|
118
120
|
"headers": {},
|
@@ -154,6 +156,7 @@
|
|
154
156
|
"responseSchema": "schema.json",
|
155
157
|
"timeout": 0,
|
156
158
|
"sendEmpty": false,
|
159
|
+
"sendGetBody": false,
|
157
160
|
"requestDatatype": "JSON",
|
158
161
|
"responseDatatype": "JSON",
|
159
162
|
"headers": {},
|
@@ -195,6 +198,7 @@
|
|
195
198
|
"responseSchema": "schema.json",
|
196
199
|
"timeout": 0,
|
197
200
|
"sendEmpty": false,
|
201
|
+
"sendGetBody": false,
|
198
202
|
"requestDatatype": "JSON",
|
199
203
|
"responseDatatype": "JSON",
|
200
204
|
"headers": {},
|
@@ -236,6 +240,7 @@
|
|
236
240
|
"responseSchema": "schema.json",
|
237
241
|
"timeout": 0,
|
238
242
|
"sendEmpty": false,
|
243
|
+
"sendGetBody": false,
|
239
244
|
"requestDatatype": "JSON",
|
240
245
|
"responseDatatype": "JSON",
|
241
246
|
"headers": {},
|
@@ -277,6 +282,7 @@
|
|
277
282
|
"responseSchema": "schema.json",
|
278
283
|
"timeout": 0,
|
279
284
|
"sendEmpty": false,
|
285
|
+
"sendGetBody": false,
|
280
286
|
"requestDatatype": "JSON",
|
281
287
|
"responseDatatype": "JSON",
|
282
288
|
"headers": {},
|
@@ -297,6 +303,7 @@
|
|
297
303
|
"responseSchema": "schema.json",
|
298
304
|
"timeout": 0,
|
299
305
|
"sendEmpty": false,
|
306
|
+
"sendGetBody": false,
|
300
307
|
"requestDatatype": "JSON",
|
301
308
|
"responseDatatype": "JSON",
|
302
309
|
"headers": {},
|
@@ -338,6 +345,7 @@
|
|
338
345
|
"responseSchema": "schema.json",
|
339
346
|
"timeout": 0,
|
340
347
|
"sendEmpty": false,
|
348
|
+
"sendGetBody": false,
|
341
349
|
"requestDatatype": "JSON",
|
342
350
|
"responseDatatype": "JSON",
|
343
351
|
"headers": {},
|
@@ -379,6 +387,7 @@
|
|
379
387
|
"responseSchema": "schema.json",
|
380
388
|
"timeout": 0,
|
381
389
|
"sendEmpty": false,
|
390
|
+
"sendGetBody": false,
|
382
391
|
"requestDatatype": "JSON",
|
383
392
|
"responseDatatype": "JSON",
|
384
393
|
"headers": {},
|
@@ -30,6 +30,7 @@
|
|
30
30
|
"responseSchema": "schema.json",
|
31
31
|
"timeout": 0,
|
32
32
|
"sendEmpty": false,
|
33
|
+
"sendGetBody": false,
|
33
34
|
"requestDatatype": "JSON",
|
34
35
|
"responseDatatype": "JSON",
|
35
36
|
"headers": {},
|
@@ -50,6 +51,7 @@
|
|
50
51
|
"responseSchema": "schema.json",
|
51
52
|
"timeout": 0,
|
52
53
|
"sendEmpty": false,
|
54
|
+
"sendGetBody": false,
|
53
55
|
"requestDatatype": "JSON",
|
54
56
|
"responseDatatype": "JSON",
|
55
57
|
"headers": {},
|
@@ -70,6 +72,7 @@
|
|
70
72
|
"responseSchema": "schema.json",
|
71
73
|
"timeout": 0,
|
72
74
|
"sendEmpty": false,
|
75
|
+
"sendGetBody": false,
|
73
76
|
"requestDatatype": "JSON",
|
74
77
|
"responseDatatype": "JSON",
|
75
78
|
"headers": {},
|
package/error.json
CHANGED
@@ -168,6 +168,12 @@
|
|
168
168
|
"displayString": "Failure response received for $VARIABLE$",
|
169
169
|
"recommendation": "Check the reason for failure in the stack trace"
|
170
170
|
},
|
171
|
+
{
|
172
|
+
"key": "Suspended Adapter",
|
173
|
+
"icode": "AD.600",
|
174
|
+
"displayString": "Adapter is suspended",
|
175
|
+
"recommendation": "Check if external system is functional and unsuspend if appropriate"
|
176
|
+
},
|
171
177
|
{
|
172
178
|
"key": "Caught Exception",
|
173
179
|
"icode": "AD.900",
|
package/package.json
CHANGED
@@ -1,19 +1,32 @@
|
|
1
1
|
{
|
2
2
|
"name": "@itentialopensource/adapter-meraki",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.8.0",
|
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
|
-
"lint": "eslint . --ext .json --ext .js",
|
11
|
+
"preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
|
12
|
+
"lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
|
13
|
+
"lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
|
14
|
+
"test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
|
12
15
|
"test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
|
13
16
|
"test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
|
14
17
|
"test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
|
15
|
-
"test": "npm run test:unit && npm run test:integration",
|
16
|
-
"
|
18
|
+
"test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
|
19
|
+
"adapter:install": "npm i && node utils/tbScript.js install",
|
20
|
+
"adapter:checkMigrate": "node utils/checkMigrate.js",
|
21
|
+
"adapter:findPath": "node utils/findPath.js",
|
22
|
+
"adapter:migrate": "node utils/modify.js -m",
|
23
|
+
"adapter:update": "node utils/modify.js -u",
|
24
|
+
"adapter:revert": "node utils/modify.js -r",
|
25
|
+
"troubleshoot": "node utils/tbScript.js",
|
26
|
+
"healthcheck": "node utils/tbScript.js healthcheck",
|
27
|
+
"basicget": "node utils/tbScript.js basicget",
|
28
|
+
"connectivity": "node utils/tbScript.js connectivity",
|
29
|
+
"deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
|
17
30
|
"build": "npm run deploy"
|
18
31
|
},
|
19
32
|
"keywords": [
|
@@ -29,7 +42,8 @@
|
|
29
42
|
],
|
30
43
|
"license": "Apache-2.0",
|
31
44
|
"engines": {
|
32
|
-
"node": ">= 0.
|
45
|
+
"node": ">= 8.0.0",
|
46
|
+
"npm": ">= 6.0.0"
|
33
47
|
},
|
34
48
|
"repository": {
|
35
49
|
"type": "git",
|
@@ -38,23 +52,31 @@
|
|
38
52
|
"author": "Itential",
|
39
53
|
"homepage": "https://gitlab.com/itentialopensource/adapters/sd-wan/adapter-meraki#readme",
|
40
54
|
"dependencies": {
|
41
|
-
"@itentialopensource/adapter-utils": "^4.
|
42
|
-
"ajv": "^6.
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
55
|
+
"@itentialopensource/adapter-utils": "^4.44.11",
|
56
|
+
"ajv": "^6.12.0",
|
57
|
+
"axios": "^0.21.0",
|
58
|
+
"commander": "^2.20.0",
|
59
|
+
"fs-extra": "^8.1.0",
|
60
|
+
"mocha": "^9.0.1",
|
61
|
+
"mocha-param": "^2.0.1",
|
62
|
+
"mongodb": "^4.1.0",
|
63
|
+
"network-diagnostics": "^0.5.3",
|
64
|
+
"nyc": "^15.1.0",
|
65
|
+
"readline-sync": "^1.4.10",
|
66
|
+
"semver": "^7.3.2",
|
67
|
+
"winston": "^3.3.3"
|
47
68
|
},
|
48
69
|
"devDependencies": {
|
49
|
-
"chai": "^4.
|
50
|
-
"eslint": "^
|
51
|
-
"eslint-config-airbnb-base": "^
|
52
|
-
"eslint-plugin-import": "^2.
|
53
|
-
"eslint-plugin-json": "^
|
54
|
-
"
|
55
|
-
"
|
56
|
-
|
57
|
-
|
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",
|
75
|
+
"package-json-validator": "^0.6.3",
|
76
|
+
"testdouble": "^3.16.1"
|
77
|
+
},
|
78
|
+
"resolutions": {
|
79
|
+
"minimist": "^1.2.5"
|
58
80
|
},
|
59
81
|
"private": false
|
60
82
|
}
|