@itentialopensource/adapter-paragon_pathfinder 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 (98) 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 +2982 -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 +40341 -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 +49 -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 +94 -0
  31. package/entities/.system/schemaTokenResp.json +65 -0
  32. package/entities/Authentication/action.json +45 -0
  33. package/entities/Authentication/schema.json +20 -0
  34. package/entities/Authorization/action.json +105 -0
  35. package/entities/Authorization/schema.json +23 -0
  36. package/entities/CommandService/action.json +44 -0
  37. package/entities/CommandService/schema.json +20 -0
  38. package/entities/ConfigOperationService/action.json +184 -0
  39. package/entities/ConfigOperationService/schema.json +27 -0
  40. package/entities/ConfigResourceService/action.json +964 -0
  41. package/entities/ConfigResourceService/schema.json +66 -0
  42. package/entities/ConfigTemplateService/action.json +345 -0
  43. package/entities/ConfigTemplateService/schema.json +266 -0
  44. package/entities/DeviceLCMService/action.json +44 -0
  45. package/entities/DeviceLCMService/schema.json +20 -0
  46. package/entities/DeviceOnboardingService/action.json +105 -0
  47. package/entities/DeviceOnboardingService/schema.json +23 -0
  48. package/entities/DevicemanagerService/action.json +1770 -0
  49. package/entities/DevicemanagerService/schema.json +402 -0
  50. package/entities/DevicemodelService/action.json +2114 -0
  51. package/entities/DevicemodelService/mockdatafiles/devicemodelServiceExportComponent-default.json +49 -0
  52. package/entities/DevicemodelService/mockdatafiles/devicemodelServiceExportDevice-default.json +29 -0
  53. package/entities/DevicemodelService/mockdatafiles/devicemodelServiceExportDeviceView-default.json +53 -0
  54. package/entities/DevicemodelService/mockdatafiles/devicemodelServiceExportInterface-default.json +21 -0
  55. package/entities/DevicemodelService/mockdatafiles/devicemodelServiceExportLicense-default.json +45 -0
  56. package/entities/DevicemodelService/mockdatafiles/devicemodelServiceExportLicenseFeature-default.json +41 -0
  57. package/entities/DevicemodelService/schema.json +419 -0
  58. package/entities/IamRPCService/action.json +872 -0
  59. package/entities/IamRPCService/schema.json +325 -0
  60. package/entities/IamService/action.json +2740 -0
  61. package/entities/IamService/mockdatafiles/iamServiceExportUserView-default.json +53 -0
  62. package/entities/IamService/schema.json +670 -0
  63. package/entities/InventoryService/action.json +164 -0
  64. package/entities/InventoryService/schema.json +26 -0
  65. package/error.json +190 -0
  66. package/package.json +87 -0
  67. package/pronghorn.json +100351 -0
  68. package/propertiesDecorators.json +14 -0
  69. package/propertiesSchema.json +1246 -0
  70. package/refs?service=git-upload-pack +0 -0
  71. package/report/adapterInfo.json +10 -0
  72. package/report/creationReport.json +2690 -0
  73. package/report/output.swagger.json +69945 -0
  74. package/sampleProperties.json +203 -0
  75. package/test/integration/adapterTestBasicGet.js +83 -0
  76. package/test/integration/adapterTestConnectivity.js +93 -0
  77. package/test/integration/adapterTestIntegration.js +35598 -0
  78. package/test/unit/adapterBaseTestUnit.js +949 -0
  79. package/test/unit/adapterTestUnit.js +14616 -0
  80. package/utils/adapterInfo.js +206 -0
  81. package/utils/addAuth.js +94 -0
  82. package/utils/artifactize.js +146 -0
  83. package/utils/basicGet.js +50 -0
  84. package/utils/checkMigrate.js +63 -0
  85. package/utils/entitiesToDB.js +178 -0
  86. package/utils/findPath.js +74 -0
  87. package/utils/methodDocumentor.js +225 -0
  88. package/utils/modify.js +154 -0
  89. package/utils/packModificationScript.js +35 -0
  90. package/utils/patches2bundledDeps.js +90 -0
  91. package/utils/pre-commit.sh +32 -0
  92. package/utils/removeHooks.js +20 -0
  93. package/utils/setup.js +33 -0
  94. package/utils/tbScript.js +246 -0
  95. package/utils/tbUtils.js +490 -0
  96. package/utils/testRunner.js +298 -0
  97. package/utils/troubleshootingAdapter.js +195 -0
  98. package/workflows/README.md +3 -0
@@ -0,0 +1,105 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "authorizationAuthorizeIAMToken",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/iam/authorize-iam-token?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "authorizationGetJWTKeys",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/iam/jwt/keys?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "authorizationGetScope",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/{version}/iam/get-scope?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "authorizationGenerateAccessToken",
66
+ "protocol": "REST",
67
+ "method": "POST",
68
+ "entitypath": "{base_path}/{version}/iam/generate-access-token?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "name": "authorizationAuthorizeServiceToken",
86
+ "protocol": "REST",
87
+ "method": "POST",
88
+ "entitypath": "{base_path}/{version}/iam/authorize-service-token?{query}",
89
+ "requestSchema": "schema.json",
90
+ "responseSchema": "schema.json",
91
+ "timeout": 0,
92
+ "sendEmpty": false,
93
+ "requestDatatype": "JSON",
94
+ "responseDatatype": "JSON",
95
+ "headers": {},
96
+ "responseObjects": [
97
+ {
98
+ "type": "default",
99
+ "key": "",
100
+ "mockFile": ""
101
+ }
102
+ ]
103
+ }
104
+ ]
105
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$id": "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": "authorizationAuthorizeIAMToken",
12
+ "enum": [
13
+ "authorizationAuthorizeIAMToken",
14
+ "authorizationGetJWTKeys",
15
+ "authorizationGetScope",
16
+ "authorizationGenerateAccessToken",
17
+ "authorizationAuthorizeServiceToken"
18
+ ],
19
+ "external_name": "ph_request_type"
20
+ }
21
+ },
22
+ "definitions": {}
23
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "commandServiceRebootDevices",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/devicemanager/reboot-devices?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "commandServiceGetNeighbors",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/devicemanager/get-neighbors?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$id": "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": "commandServiceRebootDevices",
12
+ "enum": [
13
+ "commandServiceRebootDevices",
14
+ "commandServiceGetNeighbors"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,184 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "configOperationServiceDeployConfigResource",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/devicemanager/deploy-config-resource?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "configOperationServiceDeployConfigResourceAsync",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/devicemanager/deploy-config-resource-async?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "configOperationServicePublishConfigResource",
45
+ "protocol": "REST",
46
+ "method": "POST",
47
+ "entitypath": "{base_path}/{version}/devicemanager/publish-config-resource?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "requestDatatype": "JSON",
53
+ "responseDatatype": "JSON",
54
+ "headers": {},
55
+ "responseObjects": [
56
+ {
57
+ "type": "default",
58
+ "key": "",
59
+ "mockFile": ""
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "name": "configOperationServiceSyncConfig",
65
+ "protocol": "REST",
66
+ "method": "POST",
67
+ "entitypath": "{base_path}/{version}/devicemanager/sync-config?{query}",
68
+ "requestSchema": "schema.json",
69
+ "responseSchema": "schema.json",
70
+ "timeout": 0,
71
+ "sendEmpty": false,
72
+ "requestDatatype": "JSON",
73
+ "responseDatatype": "JSON",
74
+ "headers": {},
75
+ "responseObjects": [
76
+ {
77
+ "type": "default",
78
+ "key": "",
79
+ "mockFile": ""
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "name": "configOperationServiceGetEffectiveState",
85
+ "protocol": "REST",
86
+ "method": "POST",
87
+ "entitypath": "{base_path}/{version}/devicemanager/get-effective-state?{query}",
88
+ "requestSchema": "schema.json",
89
+ "responseSchema": "schema.json",
90
+ "timeout": 0,
91
+ "sendEmpty": false,
92
+ "requestDatatype": "JSON",
93
+ "responseDatatype": "JSON",
94
+ "headers": {},
95
+ "responseObjects": [
96
+ {
97
+ "type": "default",
98
+ "key": "",
99
+ "mockFile": ""
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "name": "configOperationServicePreviewConfig",
105
+ "protocol": "REST",
106
+ "method": "POST",
107
+ "entitypath": "{base_path}/{version}/devicemanager/preview-config?{query}",
108
+ "requestSchema": "schema.json",
109
+ "responseSchema": "schema.json",
110
+ "timeout": 0,
111
+ "sendEmpty": false,
112
+ "requestDatatype": "JSON",
113
+ "responseDatatype": "JSON",
114
+ "headers": {},
115
+ "responseObjects": [
116
+ {
117
+ "type": "default",
118
+ "key": "",
119
+ "mockFile": ""
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "name": "configOperationServiceRestoreArchivedConfigVersionAsync",
125
+ "protocol": "REST",
126
+ "method": "POST",
127
+ "entitypath": "{base_path}/{version}/devicemanager/restore-archived-config-version-async?{query}",
128
+ "requestSchema": "schema.json",
129
+ "responseSchema": "schema.json",
130
+ "timeout": 0,
131
+ "sendEmpty": false,
132
+ "requestDatatype": "JSON",
133
+ "responseDatatype": "JSON",
134
+ "headers": {},
135
+ "responseObjects": [
136
+ {
137
+ "type": "default",
138
+ "key": "",
139
+ "mockFile": ""
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "name": "configOperationServiceValidateConfig",
145
+ "protocol": "REST",
146
+ "method": "POST",
147
+ "entitypath": "{base_path}/{version}/devicemanager/validate-config?{query}",
148
+ "requestSchema": "schema.json",
149
+ "responseSchema": "schema.json",
150
+ "timeout": 0,
151
+ "sendEmpty": false,
152
+ "requestDatatype": "JSON",
153
+ "responseDatatype": "JSON",
154
+ "headers": {},
155
+ "responseObjects": [
156
+ {
157
+ "type": "default",
158
+ "key": "",
159
+ "mockFile": ""
160
+ }
161
+ ]
162
+ },
163
+ {
164
+ "name": "configOperationServiceRestoreArchivedConfigVersion",
165
+ "protocol": "REST",
166
+ "method": "POST",
167
+ "entitypath": "{base_path}/{version}/devicemanager/restore-archived-config-version?{query}",
168
+ "requestSchema": "schema.json",
169
+ "responseSchema": "schema.json",
170
+ "timeout": 0,
171
+ "sendEmpty": false,
172
+ "requestDatatype": "JSON",
173
+ "responseDatatype": "JSON",
174
+ "headers": {},
175
+ "responseObjects": [
176
+ {
177
+ "type": "default",
178
+ "key": "",
179
+ "mockFile": ""
180
+ }
181
+ ]
182
+ }
183
+ ]
184
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$id": "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": "configOperationServiceDeployConfigResource",
12
+ "enum": [
13
+ "configOperationServiceDeployConfigResource",
14
+ "configOperationServiceDeployConfigResourceAsync",
15
+ "configOperationServicePublishConfigResource",
16
+ "configOperationServiceSyncConfig",
17
+ "configOperationServiceGetEffectiveState",
18
+ "configOperationServicePreviewConfig",
19
+ "configOperationServiceRestoreArchivedConfigVersionAsync",
20
+ "configOperationServiceValidateConfig",
21
+ "configOperationServiceRestoreArchivedConfigVersion"
22
+ ],
23
+ "external_name": "ph_request_type"
24
+ }
25
+ },
26
+ "definitions": {}
27
+ }