@itentialopensource/adapter-nokia_netact 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 (73) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +32 -0
  5. package/BROKER.md +211 -0
  6. package/CALLS.md +447 -0
  7. package/CODE_OF_CONDUCT.md +43 -0
  8. package/CONTRIBUTING.md +13 -0
  9. package/ENHANCE.md +69 -0
  10. package/LICENSE +201 -0
  11. package/PROPERTIES.md +646 -0
  12. package/README.md +343 -0
  13. package/SUMMARY.md +9 -0
  14. package/SYSTEMINFO.md +18 -0
  15. package/TAB1.md +11 -0
  16. package/TAB2.md +303 -0
  17. package/TROUBLESHOOT.md +47 -0
  18. package/adapter.js +4743 -0
  19. package/adapterBase.js +1452 -0
  20. package/changelogs/CHANGELOG.md +0 -0
  21. package/entities/.generic/action.json +214 -0
  22. package/entities/.generic/schema.json +28 -0
  23. package/entities/.system/action.json +50 -0
  24. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  25. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  26. package/entities/.system/schema.json +19 -0
  27. package/entities/.system/schemaTokenReq.json +53 -0
  28. package/entities/.system/schemaTokenResp.json +53 -0
  29. package/entities/OpenCmOperationsPortBinding/action.json +64 -0
  30. package/entities/OpenCmOperationsPortBinding/schema.json +21 -0
  31. package/entities/OpenCmPersistencyPortBinding/action.json +244 -0
  32. package/entities/OpenCmPersistencyPortBinding/schema.json +30 -0
  33. package/entities/Operations/action.json +169 -0
  34. package/entities/Operations/schema.json +26 -0
  35. package/entities/Persistency/action.json +348 -0
  36. package/entities/Persistency/schema.json +35 -0
  37. package/error.json +190 -0
  38. package/metadata.json +78 -0
  39. package/package.json +81 -0
  40. package/pronghorn.json +2889 -0
  41. package/propertiesDecorators.json +14 -0
  42. package/propertiesSchema.json +1574 -0
  43. package/report/Nokia-NetAct-REST-SOAP-OpenAPI3.v1.json +3014 -0
  44. package/report/adapter-openapi.json +3014 -0
  45. package/report/adapter-openapi.yaml +2396 -0
  46. package/report/adapterInfo.json +10 -0
  47. package/report/auto-adapter-openapi.json +1420 -0
  48. package/report/creationReport.json +455 -0
  49. package/sampleProperties.json +257 -0
  50. package/test/integration/adapterTestBasicGet.js +83 -0
  51. package/test/integration/adapterTestConnectivity.js +118 -0
  52. package/test/integration/adapterTestIntegration.js +1509 -0
  53. package/test/unit/adapterBaseTestUnit.js +1024 -0
  54. package/test/unit/adapterTestUnit.js +2477 -0
  55. package/utils/adapterInfo.js +206 -0
  56. package/utils/addAuth.js +94 -0
  57. package/utils/artifactize.js +146 -0
  58. package/utils/basicGet.js +50 -0
  59. package/utils/checkMigrate.js +63 -0
  60. package/utils/entitiesToDB.js +179 -0
  61. package/utils/findPath.js +74 -0
  62. package/utils/methodDocumentor.js +273 -0
  63. package/utils/modify.js +152 -0
  64. package/utils/packModificationScript.js +35 -0
  65. package/utils/patches2bundledDeps.js +90 -0
  66. package/utils/pre-commit.sh +32 -0
  67. package/utils/removeHooks.js +20 -0
  68. package/utils/setup.js +33 -0
  69. package/utils/taskMover.js +309 -0
  70. package/utils/tbScript.js +239 -0
  71. package/utils/tbUtils.js +489 -0
  72. package/utils/testRunner.js +298 -0
  73. package/utils/troubleshootingAdapter.js +193 -0
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "@itentialopensource/adapter-nokia_netact",
3
+ "version": "0.1.1",
4
+ "description": "This adapter integrates with system described as: Nokia Netact.",
5
+ "main": "adapter.js",
6
+ "systemName": "Nokia_netact",
7
+ "wizardVersion": "3.3.1",
8
+ "engineVersion": "1.68.11",
9
+ "adapterType": "http",
10
+ "scripts": {
11
+ "artifactize": "npm i && node utils/packModificationScript.js",
12
+ "preinstall": "node utils/setup.js",
13
+ "deinstall": "node utils/removeHooks.js",
14
+ "lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
15
+ "lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
16
+ "test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
17
+ "test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
18
+ "test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
19
+ "test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
20
+ "adapter:install": "npm i && node utils/tbScript.js install",
21
+ "adapter:checkMigrate": "node utils/checkMigrate.js",
22
+ "adapter:findPath": "node utils/findPath.js",
23
+ "adapter:migrate": "node utils/modify.js -m",
24
+ "adapter:update": "node utils/modify.js -u",
25
+ "adapter:revert": "node utils/modify.js -r",
26
+ "troubleshoot": "node utils/tbScript.js troubleshoot",
27
+ "healthcheck": "node utils/tbScript.js healthcheck",
28
+ "basicget": "node utils/tbScript.js basicget",
29
+ "connectivity": "node utils/tbScript.js connectivity",
30
+ "deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
31
+ "build": "npm run deploy"
32
+ },
33
+ "keywords": [
34
+ "Itential",
35
+ "IAP",
36
+ "Automation",
37
+ "Integration",
38
+ "App-Artifacts",
39
+ "Adapter",
40
+ "nokia_netact",
41
+ "Pre-Release"
42
+ ],
43
+ "license": "Apache-2.0",
44
+ "engines": {
45
+ "node": ">= 14.0.0",
46
+ "npm": ">= 6.0.0"
47
+ },
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git@gitlab.com:itentialopensource/adapters/adapter-nokia_netact.git"
51
+ },
52
+ "author": "Itential",
53
+ "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-nokia_netact#readme",
54
+ "dependencies": {
55
+ "@itentialopensource/adapter-utils": "^5.10.1",
56
+ "acorn": "^8.14.0",
57
+ "ajv": "^8.17.1",
58
+ "axios": "^1.7.8",
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"
71
+ },
72
+ "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"
79
+ },
80
+ "private": false
81
+ }