@itentialopensource/adapter-paragon_dcs 0.1.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.
Files changed (67) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +0 -0
  9. package/AUTH.md +39 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +204 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +172 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +337 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TROUBLESHOOT.md +47 -0
  22. package/adapter.js +1255 -0
  23. package/adapterBase.js +1787 -0
  24. package/entities/.generic/action.json +214 -0
  25. package/entities/.generic/schema.json +28 -0
  26. package/entities/.system/action.json +50 -0
  27. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  28. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  29. package/entities/.system/schema.json +19 -0
  30. package/entities/.system/schemaTokenReq.json +53 -0
  31. package/entities/.system/schemaTokenResp.json +53 -0
  32. package/entities/ConnectivityService/action.json +104 -0
  33. package/entities/ConnectivityService/schema.json +23 -0
  34. package/error.json +190 -0
  35. package/package.json +88 -0
  36. package/pronghorn.json +1402 -0
  37. package/propertiesDecorators.json +14 -0
  38. package/propertiesSchema.json +1248 -0
  39. package/refs?service=git-upload-pack +0 -0
  40. package/report/adapterInfo.json +10 -0
  41. package/report/creationReport.json +235 -0
  42. package/report/paragon-dcs.json +947 -0
  43. package/sampleProperties.json +195 -0
  44. package/test/integration/adapterTestBasicGet.js +83 -0
  45. package/test/integration/adapterTestConnectivity.js +93 -0
  46. package/test/integration/adapterTestIntegration.js +627 -0
  47. package/test/unit/adapterBaseTestUnit.js +949 -0
  48. package/test/unit/adapterTestUnit.js +1456 -0
  49. package/utils/adapterInfo.js +206 -0
  50. package/utils/addAuth.js +94 -0
  51. package/utils/artifactize.js +146 -0
  52. package/utils/basicGet.js +50 -0
  53. package/utils/checkMigrate.js +63 -0
  54. package/utils/entitiesToDB.js +178 -0
  55. package/utils/findPath.js +74 -0
  56. package/utils/methodDocumentor.js +225 -0
  57. package/utils/modify.js +154 -0
  58. package/utils/packModificationScript.js +35 -0
  59. package/utils/patches2bundledDeps.js +90 -0
  60. package/utils/pre-commit.sh +32 -0
  61. package/utils/removeHooks.js +20 -0
  62. package/utils/setup.js +33 -0
  63. package/utils/tbScript.js +246 -0
  64. package/utils/tbUtils.js +490 -0
  65. package/utils/testRunner.js +298 -0
  66. package/utils/troubleshootingAdapter.js +195 -0
  67. package/workflows/README.md +3 -0
Binary file
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "configLines": 2841,
4
+ "scriptLines": 1795,
5
+ "codeLines": 3044,
6
+ "testLines": 3213,
7
+ "testCases": 133,
8
+ "totalCodeLines": 8052,
9
+ "wfTasks": 22
10
+ }
@@ -0,0 +1,235 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "Standard adapter errors available for use",
7
+ "value": 31
8
+ },
9
+ {
10
+ "owner": "packageJson",
11
+ "description": "Number of production dependencies",
12
+ "value": 16
13
+ },
14
+ {
15
+ "owner": "packageJson",
16
+ "description": "Number of development dependencies",
17
+ "value": 7
18
+ },
19
+ {
20
+ "owner": "packageJson",
21
+ "description": "Number of npm scripts",
22
+ "value": 22
23
+ },
24
+ {
25
+ "owner": "packageJson",
26
+ "description": "Runtime Library dependency",
27
+ "value": "^4.48.0"
28
+ },
29
+ {
30
+ "owner": "propertiesSchemaJson",
31
+ "description": "Adapter properties defined in the propertiesSchema file",
32
+ "value": 70
33
+ },
34
+ {
35
+ "owner": "adapterJS",
36
+ "description": "Lines of code generated in adapter.js",
37
+ "value": 1256
38
+ },
39
+ {
40
+ "owner": "adapterJS",
41
+ "description": "Number of Functions added to adapter.js",
42
+ "value": 5
43
+ },
44
+ {
45
+ "owner": "pronghornJson",
46
+ "description": "Number of Methods added to pronghorn.json",
47
+ "value": 5
48
+ },
49
+ {
50
+ "owner": "markdown",
51
+ "description": "Number of lines in the README.md",
52
+ "value": 338
53
+ },
54
+ {
55
+ "owner": "markdown",
56
+ "description": "Number of lines in the SUMMARY.md",
57
+ "value": 9
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the PROPERTIES.md",
62
+ "value": 642
63
+ },
64
+ {
65
+ "owner": "markdown",
66
+ "description": "Number of lines in the TROUBLESHOOT.md",
67
+ "value": 48
68
+ },
69
+ {
70
+ "owner": "markdown",
71
+ "description": "Number of lines in the ENHANCE.md",
72
+ "value": 70
73
+ },
74
+ {
75
+ "owner": "markdown",
76
+ "description": "Number of lines in the BROKER.md",
77
+ "value": 200
78
+ },
79
+ {
80
+ "owner": "markdown",
81
+ "description": "Number of lines in the CALLS.md",
82
+ "value": 171
83
+ },
84
+ {
85
+ "owner": "markdown",
86
+ "description": "Number of lines in the AUTH.md",
87
+ "value": 40
88
+ },
89
+ {
90
+ "owner": "markdown",
91
+ "description": "Number of lines in the SYSTEMINFO.md",
92
+ "value": 11
93
+ },
94
+ {
95
+ "owner": "unitTestJS",
96
+ "description": "Number of lines of code in unit tests",
97
+ "value": 1457
98
+ },
99
+ {
100
+ "owner": "unitTestJS",
101
+ "description": "Number of unit tests",
102
+ "value": 65
103
+ },
104
+ {
105
+ "owner": "integrationTestJS",
106
+ "description": "Number of lines of code in integration tests",
107
+ "value": 628
108
+ },
109
+ {
110
+ "owner": "integrationTestJS",
111
+ "description": "Number of integration tests",
112
+ "value": 10
113
+ },
114
+ {
115
+ "owner": "actionJson",
116
+ "description": "Number of actions for ConnectivityService entity",
117
+ "value": 5
118
+ },
119
+ {
120
+ "owner": "actionJson",
121
+ "description": "Total number of actions",
122
+ "value": 5
123
+ },
124
+ {
125
+ "owner": "actionJson",
126
+ "description": "Total number of entities",
127
+ "value": 1
128
+ },
129
+ {
130
+ "owner": "schemaJson",
131
+ "description": "Number of schemas for ConnectivityService entity",
132
+ "value": 1
133
+ },
134
+ {
135
+ "owner": "schemaJson",
136
+ "description": "Total number of schemas",
137
+ "value": 1
138
+ },
139
+ {
140
+ "owner": "mockdata",
141
+ "description": "Number of mock data files for ConnectivityService entity",
142
+ "value": 0
143
+ },
144
+ {
145
+ "owner": "mockdata",
146
+ "description": "Total number of mock data files",
147
+ "value": 0
148
+ },
149
+ {
150
+ "owner": "actionJson",
151
+ "description": "Number of actions for .system entity",
152
+ "value": 2
153
+ },
154
+ {
155
+ "owner": "schemaJson",
156
+ "description": "Number of schemas for .system entity",
157
+ "value": 3
158
+ },
159
+ {
160
+ "owner": "mockdata",
161
+ "description": "Number of mock data files for .system entity",
162
+ "value": 2
163
+ },
164
+ {
165
+ "owner": "System",
166
+ "description": "System entity files",
167
+ "value": 6
168
+ },
169
+ {
170
+ "owner": "usecases",
171
+ "description": "Number of workflows",
172
+ "value": 0
173
+ },
174
+ {
175
+ "owner": "staticFile",
176
+ "description": "Number of lines of code in adapterBase.js",
177
+ "value": 1788
178
+ },
179
+ {
180
+ "owner": "staticFile",
181
+ "description": "Number of static files added",
182
+ "value": 38
183
+ },
184
+ {
185
+ "owner": "Overall",
186
+ "description": "Total lines of Code",
187
+ "value": 5129
188
+ },
189
+ {
190
+ "owner": "Overall",
191
+ "description": "Total Tests",
192
+ "value": 75
193
+ },
194
+ {
195
+ "owner": "Overall",
196
+ "description": "Total Files",
197
+ "value": 54
198
+ }
199
+ ],
200
+ "warnings": [],
201
+ "apiParsingReport": {
202
+ "no_mockdata": [
203
+ {
204
+ "fnName": "connectivityServiceDisconnectDevice",
205
+ "method": "post",
206
+ "path": "/dcs/v1/disconnect-device"
207
+ },
208
+ {
209
+ "fnName": "connectivityServiceOp",
210
+ "method": "post",
211
+ "path": "/dcs/v1/execute-op"
212
+ },
213
+ {
214
+ "fnName": "connectivityServiceConnectDevice",
215
+ "method": "post",
216
+ "path": "/dcs/v1/connect-device"
217
+ },
218
+ {
219
+ "fnName": "connectivityServiceGet",
220
+ "method": "post",
221
+ "path": "/dcs/v1/execute-get"
222
+ },
223
+ {
224
+ "fnName": "connectivityServiceSet",
225
+ "method": "post",
226
+ "path": "/dcs/v1/execute-set"
227
+ }
228
+ ],
229
+ "errors": [],
230
+ "warnings": [],
231
+ "callsTotal": 5,
232
+ "callsConverted": 5,
233
+ "no_mockdata_num": 5
234
+ }
235
+ }