@itentialopensource/adapter-oracle_assure1 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 (44) hide show
  1. package/.eslintrc.js +1 -0
  2. package/AUTH.md +4 -4
  3. package/BROKER.md +4 -4
  4. package/CALLS.md +9 -9
  5. package/ENHANCE.md +3 -3
  6. package/PROPERTIES.md +24 -9
  7. package/README.md +24 -23
  8. package/SUMMARY.md +2 -2
  9. package/SYSTEMINFO.md +1 -1
  10. package/TAB1.md +2 -2
  11. package/TAB2.md +9 -5
  12. package/TROUBLESHOOT.md +10 -1
  13. package/UTILITIES.md +473 -0
  14. package/adapter.js +5 -5
  15. package/adapterBase.js +52 -16
  16. package/package.json +25 -29
  17. package/pronghorn.json +22 -20
  18. package/propertiesSchema.json +196 -43
  19. package/report/adapterInfo.json +7 -7
  20. package/report/updateReport1748551254595.json +120 -0
  21. package/sampleProperties.json +4 -0
  22. package/test/integration/adapterTestBasicGet.js +88 -54
  23. package/test/integration/adapterTestConnectivity.js +15 -16
  24. package/test/integration/adapterTestIntegration.js +1 -38
  25. package/test/unit/adapterBaseTestUnit.js +641 -39
  26. package/test/unit/adapterTestUnit.js +23 -54
  27. package/utils/adapterInfo.js +114 -164
  28. package/utils/argParser.js +44 -0
  29. package/utils/checkMigrate.js +77 -38
  30. package/utils/entitiesToDB.js +53 -42
  31. package/utils/logger.js +26 -0
  32. package/utils/modify.js +56 -55
  33. package/utils/mongoDbConnection.js +79 -0
  34. package/utils/mongoUtils.js +162 -0
  35. package/utils/taskMover.js +31 -32
  36. package/utils/tbScript.js +36 -172
  37. package/utils/tbUtils.js +84 -226
  38. package/utils/troubleshootingAdapter.js +68 -84
  39. package/utils/updateAdapterConfig.js +158 -0
  40. package/utils/addAuth.js +0 -94
  41. package/utils/artifactize.js +0 -146
  42. package/utils/basicGet.js +0 -50
  43. package/utils/packModificationScript.js +0 -35
  44. package/utils/patches2bundledDeps.js +0 -90
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-oracle_assure1",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "This adapter integrates with system described as: Oracle Assure1",
5
5
  "main": "adapter.js",
6
6
  "systemName": "Oracle_assure1",
7
- "wizardVersion": "3.3.1",
8
- "engineVersion": "1.68.11",
7
+ "wizardVersion": "2.44.7",
8
+ "engineVersion": "1.69.14",
9
9
  "adapterType": "http",
10
10
  "scripts": {
11
- "artifactize": "npm i && node utils/packModificationScript.js",
12
11
  "preinstall": "node utils/setup.js",
13
12
  "deinstall": "node utils/removeHooks.js",
14
13
  "lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
@@ -17,7 +16,6 @@
17
16
  "test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
18
17
  "test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
19
18
  "test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
20
- "adapter:install": "npm i && node utils/tbScript.js install",
21
19
  "adapter:checkMigrate": "node utils/checkMigrate.js",
22
20
  "adapter:findPath": "node utils/findPath.js",
23
21
  "adapter:migrate": "node utils/modify.js -m",
@@ -32,10 +30,9 @@
32
30
  },
33
31
  "keywords": [
34
32
  "Itential",
35
- "IAP",
33
+ "Itential Platform",
36
34
  "Automation",
37
35
  "Integration",
38
- "App-Artifacts",
39
36
  "Adapter",
40
37
  "oracle_assure1",
41
38
  "Pre-Release"
@@ -52,30 +49,29 @@
52
49
  "author": "Itential",
53
50
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-oracle_assure1#readme",
54
51
  "dependencies": {
55
- "@itentialopensource/adapter-utils": "^5.10.1",
56
- "acorn": "^8.14.0",
57
- "ajv": "^8.17.1",
58
- "axios": "^1.7.9",
59
- "commander": "^11.0.0",
60
- "dns-lookup-promise": "^1.0.4",
61
- "fs-extra": "^11.2.0",
62
- "json-query": "^2.2.2",
63
- "mocha": "^10.8.2",
64
- "mocha-param": "^2.0.1",
65
- "mongodb": "^4.17.2",
66
- "ping": "^0.4.4",
67
- "prompts": "^2.4.2",
68
- "readline-sync": "^1.4.10",
69
- "semver": "^7.6.3",
70
- "winston": "^3.17.0"
52
+ "@itentialopensource/adapter-utils": "5.10.16",
53
+ "acorn": "8.14.1",
54
+ "ajv": "8.17.1",
55
+ "axios": "1.9.0",
56
+ "commander": "11.1.0",
57
+ "fs-extra": "11.3.0",
58
+ "json-query": "2.2.2",
59
+ "mocha": "10.8.2",
60
+ "mocha-param": "2.0.1",
61
+ "mongodb": "4.17.2",
62
+ "ping": "0.4.4",
63
+ "prompts": "2.4.2",
64
+ "readline-sync": "1.4.10",
65
+ "semver": "7.7.2",
66
+ "winston": "3.17.0"
71
67
  },
72
68
  "devDependencies": {
73
- "chai": "^4.3.7",
74
- "eslint": "^8.44.0",
75
- "eslint-config-airbnb-base": "^15.0.0",
76
- "eslint-plugin-import": "^2.27.5",
77
- "eslint-plugin-json": "^3.1.0",
78
- "testdouble": "^3.18.0"
69
+ "chai": "4.5.0",
70
+ "eslint": "8.57.0",
71
+ "eslint-config-airbnb-base": "15.0.0",
72
+ "eslint-plugin-import": "2.31.0",
73
+ "eslint-plugin-json": "3.1.0",
74
+ "testdouble": "3.18.0"
79
75
  },
80
76
  "private": false
81
77
  }
package/pronghorn.json CHANGED
@@ -226,16 +226,6 @@
226
226
  "title": "props",
227
227
  "type": "object"
228
228
  }
229
- },
230
- {
231
- "name": "persistFlag",
232
- "type": "boolean",
233
- "info": "Whether the input properties should be saved",
234
- "required": true,
235
- "schema": {
236
- "title": "persistFlag",
237
- "type": "boolean"
238
- }
239
229
  }
240
230
  ],
241
231
  "output": {
@@ -306,7 +296,19 @@
306
296
  "name": "iapRunAdapterBasicGet",
307
297
  "summary": "Runs basicGet script for adapter",
308
298
  "description": "Runs basicGet script for adapter",
309
- "input": [],
299
+ "input": [
300
+ {
301
+ "name": "maxCalls",
302
+ "required": false,
303
+ "type": "number",
304
+ "info": "How many GET endpoints to test (defaults to 5)",
305
+ "schema": {
306
+ "title": "maxCalls",
307
+ "type": "number",
308
+ "default": 5
309
+ }
310
+ }
311
+ ],
310
312
  "output": {
311
313
  "name": "result",
312
314
  "type": "object",
@@ -327,8 +329,8 @@
327
329
  },
328
330
  {
329
331
  "name": "iapMoveAdapterEntitiesToDB",
330
- "summary": "Moves entities from an adapter into the IAP database",
331
- "description": "Moves entities from an adapter into the IAP database",
332
+ "summary": "Moves entities from an adapter into the Itential Platform database",
333
+ "description": "Moves entities from an adapter into the Itential Platform database",
332
334
  "input": [],
333
335
  "output": {
334
336
  "name": "res",
@@ -1007,7 +1009,7 @@
1007
1009
  {
1008
1010
  "name": "iapMetadata",
1009
1011
  "type": "object",
1010
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1012
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1011
1013
  "required": false,
1012
1014
  "schema": {
1013
1015
  "title": "iapMetadata",
@@ -1061,7 +1063,7 @@
1061
1063
  {
1062
1064
  "name": "iapMetadata",
1063
1065
  "type": "object",
1064
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1066
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1065
1067
  "required": false,
1066
1068
  "schema": {
1067
1069
  "title": "iapMetadata",
@@ -1105,7 +1107,7 @@
1105
1107
  {
1106
1108
  "name": "iapMetadata",
1107
1109
  "type": "object",
1108
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1110
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1109
1111
  "required": false,
1110
1112
  "schema": {
1111
1113
  "title": "iapMetadata",
@@ -1179,7 +1181,7 @@
1179
1181
  {
1180
1182
  "name": "iapMetadata",
1181
1183
  "type": "object",
1182
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1184
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1183
1185
  "required": false,
1184
1186
  "schema": {
1185
1187
  "title": "iapMetadata",
@@ -1223,7 +1225,7 @@
1223
1225
  {
1224
1226
  "name": "iapMetadata",
1225
1227
  "type": "object",
1226
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1228
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1227
1229
  "required": false,
1228
1230
  "schema": {
1229
1231
  "title": "iapMetadata",
@@ -1307,7 +1309,7 @@
1307
1309
  {
1308
1310
  "name": "iapMetadata",
1309
1311
  "type": "object",
1310
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1312
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1311
1313
  "required": false,
1312
1314
  "schema": {
1313
1315
  "title": "iapMetadata",
@@ -1411,7 +1413,7 @@
1411
1413
  {
1412
1414
  "name": "iapMetadata",
1413
1415
  "type": "object",
1414
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1416
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
1415
1417
  "required": false,
1416
1418
  "schema": {
1417
1419
  "title": "iapMetadata",