@itentialopensource/adapter-zero_networks 0.1.2 → 0.2.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.
Files changed (60) hide show
  1. package/.eslintignore +0 -1
  2. package/.jshintrc +3 -0
  3. package/AUTH.md +14 -18
  4. package/BROKER.md +31 -19
  5. package/CALLS.md +1175 -23
  6. package/CHANGELOG.md +8 -0
  7. package/PROPERTIES.md +5 -0
  8. package/README.md +60 -63
  9. package/SYSTEMINFO.md +14 -6
  10. package/TAB1.md +8 -0
  11. package/TAB2.md +83 -6564
  12. package/adapter.js +16661 -39
  13. package/entities/Asset/action.json +872 -0
  14. package/entities/Asset/schema.json +43 -1
  15. package/entities/AssetOTIoT/action.json +851 -0
  16. package/entities/AssetOTIoT/schema.json +42 -1
  17. package/entities/Assets/action.json +83 -0
  18. package/entities/Assets/schema.json +5 -1
  19. package/entities/Download/action.json +88 -0
  20. package/entities/Download/schema.json +22 -0
  21. package/entities/Group/action.json +518 -0
  22. package/entities/Group/schema.json +26 -1
  23. package/entities/Groups/action.json +354 -0
  24. package/entities/Groups/schema.json +18 -1
  25. package/entities/GroupsCustom/action.json +20 -0
  26. package/entities/GroupsCustom/schema.json +2 -1
  27. package/entities/GroupsTag/action.json +45 -0
  28. package/entities/GroupsTag/schema.json +20 -0
  29. package/entities/MFAIdentity/action.json +295 -0
  30. package/entities/MFAIdentity/schema.json +32 -0
  31. package/entities/MFAInbound/action.json +21 -0
  32. package/entities/MFAInbound/schema.json +2 -1
  33. package/entities/MFAOutbound/action.json +21 -0
  34. package/entities/MFAOutbound/schema.json +2 -1
  35. package/entities/Rules/action.json +40 -0
  36. package/entities/Rules/schema.json +3 -1
  37. package/entities/RulesInbound/action.json +293 -0
  38. package/entities/RulesInbound/schema.json +32 -0
  39. package/entities/RulesOutboundAllow/action.json +21 -0
  40. package/entities/RulesOutboundAllow/schema.json +2 -1
  41. package/entities/SettingsInactiveAssets/action.json +45 -0
  42. package/entities/SettingsInactiveAssets/schema.json +20 -0
  43. package/entities/SettingsLicenses/action.json +25 -0
  44. package/entities/SettingsLicenses/schema.json +19 -0
  45. package/entities/User/action.json +291 -0
  46. package/entities/User/schema.json +15 -1
  47. package/entities/Users/action.json +21 -0
  48. package/entities/Users/schema.json +2 -1
  49. package/metadata.json +14 -3
  50. package/package.json +5 -7
  51. package/pronghorn.json +12801 -490
  52. package/propertiesSchema.json +133 -36
  53. package/refs?service=git-upload-pack +0 -0
  54. package/report/adapter-openapi.json +115977 -0
  55. package/report/adapterInfo.json +7 -7
  56. package/report/updateReport1715609939167.json +120 -0
  57. package/sampleProperties.json +43 -31
  58. package/test/integration/adapterTestIntegration.js +4700 -0
  59. package/test/unit/adapterTestUnit.js +8580 -3
  60. package/utils/artifactize.js +0 -0
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.1.0",
3
- "configLines": 57326,
2
+ "version": "0.1.2",
3
+ "configLines": 69733,
4
4
  "scriptLines": 1783,
5
- "codeLines": 79902,
6
- "testLines": 60482,
7
- "testCases": 3310,
8
- "totalCodeLines": 142167,
9
- "wfTasks": 926
5
+ "codeLines": 96524,
6
+ "testLines": 73759,
7
+ "testCases": 4055,
8
+ "totalCodeLines": 172066,
9
+ "wfTasks": 1112
10
10
  }
@@ -0,0 +1,120 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "New adapter errors available for use",
7
+ "value": 0
8
+ },
9
+ {
10
+ "owner": "errorJson",
11
+ "description": "Adapter errors no longer available for use",
12
+ "value": 0
13
+ },
14
+ {
15
+ "owner": "errorJson",
16
+ "description": "Adapter errors that have been updated (e.g. recommendation changes)",
17
+ "value": 31
18
+ },
19
+ {
20
+ "owner": "packageJson",
21
+ "description": "Number of production dependencies",
22
+ "value": 16
23
+ },
24
+ {
25
+ "owner": "packageJson",
26
+ "description": "Number of development dependencies",
27
+ "value": 6
28
+ },
29
+ {
30
+ "owner": "packageJson",
31
+ "description": "Number of npm scripts",
32
+ "value": 21
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "^5.3.10"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 78
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 344
48
+ },
49
+ {
50
+ "owner": "markdown",
51
+ "description": "Number of lines in the SUMMARY.md",
52
+ "value": 9
53
+ },
54
+ {
55
+ "owner": "markdown",
56
+ "description": "Number of lines in the PROPERTIES.md",
57
+ "value": 647
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 48
63
+ },
64
+ {
65
+ "owner": "markdown",
66
+ "description": "Number of lines in the ENHANCE.md",
67
+ "value": 70
68
+ },
69
+ {
70
+ "owner": "markdown",
71
+ "description": "Number of lines in the BROKER.md",
72
+ "value": 70
73
+ },
74
+ {
75
+ "owner": "unitTestJS",
76
+ "description": "Number of lines of code in unit tests",
77
+ "value": 35456
78
+ },
79
+ {
80
+ "owner": "unitTestJS",
81
+ "description": "Number of unit tests",
82
+ "value": 2330
83
+ },
84
+ {
85
+ "owner": "integrationTestJS",
86
+ "description": "Number of lines of code in integration tests",
87
+ "value": 23779
88
+ },
89
+ {
90
+ "owner": "integrationTestJS",
91
+ "description": "Number of integration tests",
92
+ "value": 910
93
+ },
94
+ {
95
+ "owner": "staticFile",
96
+ "description": "Number of lines of code in adapterBase.js",
97
+ "value": 1453
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 36
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 60688
108
+ },
109
+ {
110
+ "owner": "Overall",
111
+ "description": "Total Tests",
112
+ "value": 3240
113
+ },
114
+ {
115
+ "owner": "Overall",
116
+ "description": "Total Files",
117
+ "value": 6
118
+ }
119
+ ]
120
+ }
@@ -14,7 +14,7 @@
14
14
  "stub": true,
15
15
  "protocol": "https",
16
16
  "authentication": {
17
- "auth_method": "request_token",
17
+ "auth_method": "static_token",
18
18
  "username": "username",
19
19
  "password": "password",
20
20
  "token": "token",
@@ -116,30 +116,32 @@
116
116
  }
117
117
  },
118
118
  "devicebroker": {
119
+ "enabled": false,
119
120
  "getDevice": [
120
121
  {
121
- "path": "/get/devices/{id}",
122
+ "path": "/not/mapped",
122
123
  "method": "GET",
123
124
  "query": {},
124
125
  "body": {},
125
126
  "headers": {},
126
- "handleFailure": "fail",
127
+ "handleFailure": "ignore",
127
128
  "requestFields": {
128
- "id": "name"
129
+ "insample": "{port}"
129
130
  },
130
131
  "responseDatakey": "",
131
132
  "responseFields": {
132
- "name": "host",
133
- "ostype": "os",
134
- "ostypePrefix": "system-",
135
- "ipaddress": "attributes.ipaddr",
136
- "port": "443"
133
+ "name": "{this}{||}{that}",
134
+ "ostype": "{osfield}",
135
+ "ostypePrefix": "meraki-",
136
+ "port": "{port}",
137
+ "ipaddress": "{ip_addr}",
138
+ "serial": "{serial}"
137
139
  }
138
140
  }
139
141
  ],
140
142
  "getDevicesFiltered": [
141
143
  {
142
- "path": "/get/devices",
144
+ "path": "/not/mapped",
143
145
  "method": "GET",
144
146
  "pagination": {
145
147
  "offsetVar": "",
@@ -150,46 +152,48 @@
150
152
  "query": {},
151
153
  "body": {},
152
154
  "headers": {},
153
- "handleFailure": "fail",
155
+ "handleFailure": "ignore",
154
156
  "requestFields": {},
155
157
  "responseDatakey": "",
156
158
  "responseFields": {
157
- "name": "host",
158
- "ostype": "os",
159
- "ostypePrefix": "system-",
160
- "ipaddress": "attributes.ipaddr",
161
- "port": "443"
159
+ "name": "{this}{||}{that}",
160
+ "ostype": "{osfield}",
161
+ "ostypePrefix": "meraki-",
162
+ "port": "{port}",
163
+ "ipaddress": "{ip_addr}",
164
+ "serial": "{serial}",
165
+ "id": "{myid}"
162
166
  }
163
167
  }
164
168
  ],
165
169
  "isAlive": [
166
170
  {
167
- "path": "/get/devices/{id}/status",
171
+ "path": "/not/mapped/{devID}",
168
172
  "method": "GET",
169
173
  "query": {},
170
174
  "body": {},
171
175
  "headers": {},
172
- "handleFailure": "fail",
176
+ "handleFailure": "ignore",
173
177
  "requestFields": {
174
- "id": "name"
178
+ "devID": "{id}"
175
179
  },
176
180
  "responseDatakey": "",
177
181
  "responseFields": {
178
- "status": "status",
179
- "statusValue": "online"
182
+ "status": "return2xx",
183
+ "statusValue": "AD.200"
180
184
  }
181
185
  }
182
186
  ],
183
187
  "getConfig": [
184
188
  {
185
- "path": "/get/devices/{id}/configPart1",
189
+ "path": "/not/mapped/{devID}",
186
190
  "method": "GET",
187
191
  "query": {},
188
192
  "body": {},
189
193
  "headers": {},
190
- "handleFailure": "fail",
194
+ "handleFailure": "ignore",
191
195
  "requestFields": {
192
- "id": "name"
196
+ "devID": "{id}"
193
197
  },
194
198
  "responseDatakey": "",
195
199
  "responseFields": {}
@@ -197,12 +201,12 @@
197
201
  ],
198
202
  "getCount": [
199
203
  {
200
- "path": "/get/devices",
204
+ "path": "/not/mapped",
201
205
  "method": "GET",
202
206
  "query": {},
203
207
  "body": {},
204
208
  "headers": {},
205
- "handleFailure": "fail",
209
+ "handleFailure": "ignore",
206
210
  "requestFields": {},
207
211
  "responseDatakey": "",
208
212
  "responseFields": {}
@@ -213,15 +217,15 @@
213
217
  "enabled": false,
214
218
  "entities": [
215
219
  {
216
- "entityType": "",
217
- "frequency": 1440,
220
+ "entityType": "device",
221
+ "frequency": 3600,
218
222
  "flushOnFail": false,
219
- "limit": 1000,
223
+ "limit": 10000,
220
224
  "retryAttempts": 5,
221
225
  "sort": true,
222
226
  "populate": [
223
227
  {
224
- "path": "",
228
+ "path": "/not/mapped",
225
229
  "method": "GET",
226
230
  "pagination": {
227
231
  "offsetVar": "",
@@ -235,7 +239,15 @@
235
239
  "handleFailure": "ignore",
236
240
  "requestFields": {},
237
241
  "responseDatakey": "",
238
- "responseFields": {}
242
+ "responseFields": {
243
+ "name": "{this}{||}{that}",
244
+ "ostype": "{osfield}",
245
+ "ostypePrefix": "meraki-",
246
+ "port": "{port}",
247
+ "ipaddress": "{ip_addr}",
248
+ "serial": "{serial}",
249
+ "id": "{myid}"
250
+ }
239
251
  }
240
252
  ],
241
253
  "cachedTasks": [