@itentialopensource/adapter-beyond_trust 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 (122) 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 +1004 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +13 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +346 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TAB1.md +5 -0
  22. package/TAB2.md +2226 -0
  23. package/TROUBLESHOOT.md +47 -0
  24. package/adapter.js +12401 -0
  25. package/adapterBase.js +1452 -0
  26. package/entities/.generic/action.json +214 -0
  27. package/entities/.generic/schema.json +28 -0
  28. package/entities/.system/action.json +50 -0
  29. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  30. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  31. package/entities/.system/schema.json +19 -0
  32. package/entities/.system/schemaTokenReq.json +53 -0
  33. package/entities/.system/schemaTokenResp.json +53 -0
  34. package/entities/GroupPolicy/action.json +495 -0
  35. package/entities/GroupPolicy/mockdatafiles/apiConfigGroupPolicyIndex-default.json +18 -0
  36. package/entities/GroupPolicy/mockdatafiles/apiConfigGroupPolicyJumpGroupIndex-default.json +12 -0
  37. package/entities/GroupPolicy/mockdatafiles/apiConfigGroupPolicyJumpointsIndex-default.json +8 -0
  38. package/entities/GroupPolicy/mockdatafiles/apiConfigGroupPolicyMemberIndex-default.json +26 -0
  39. package/entities/GroupPolicy/mockdatafiles/apiConfigGroupPolicyTeamIndex-default.json +10 -0
  40. package/entities/GroupPolicy/mockdatafiles/apiConfigGroupPolicyVaultAccountIndex-default.json +7 -0
  41. package/entities/GroupPolicy/schema.json +119 -0
  42. package/entities/JumpClient/action.json +147 -0
  43. package/entities/JumpClient/mockdatafiles/apiConfigJumpClientIndex-default.json +29 -0
  44. package/entities/JumpClient/schema.json +124 -0
  45. package/entities/JumpGroup/action.json +208 -0
  46. package/entities/JumpGroup/mockdatafiles/apiConfigJumpGroupIndex-default.json +30 -0
  47. package/entities/JumpGroup/mockdatafiles/apiConfigJumpGroupUserIndex-default.json +7 -0
  48. package/entities/JumpGroup/schema.json +72 -0
  49. package/entities/JumpItem/action.json +370 -0
  50. package/entities/JumpItem/mockdatafiles/apiConfigJumpItemRemoteRdpIndex-default.json +52 -0
  51. package/entities/JumpItem/mockdatafiles/apiConfigJumpItemShellJumpIndex-default.json +70 -0
  52. package/entities/JumpItem/mockdatafiles/apiConfigJumpItemWebJumpIndex-default.json +38 -0
  53. package/entities/JumpItem/schema.json +91 -0
  54. package/entities/JumpItemRole/action.json +46 -0
  55. package/entities/JumpItemRole/mockdatafiles/apiConfigJumpItemRoleIndex-default.json +34 -0
  56. package/entities/JumpItemRole/schema.json +42 -0
  57. package/entities/JumpPolicy/action.json +127 -0
  58. package/entities/JumpPolicy/mockdatafiles/apiConfigJumpPolicyIndex-default.json +86 -0
  59. package/entities/JumpPolicy/schema.json +57 -0
  60. package/entities/Jumpoint/action.json +230 -0
  61. package/entities/Jumpoint/mockdatafiles/apiConfigJumpointIndex-default.json +50 -0
  62. package/entities/Jumpoint/schema.json +95 -0
  63. package/entities/OpenapiYaml/action.json +25 -0
  64. package/entities/OpenapiYaml/schema.json +19 -0
  65. package/entities/SecurityProvider/action.json +25 -0
  66. package/entities/SecurityProvider/mockdatafiles/apiConfigSecurityProviderIndex-default.json +26 -0
  67. package/entities/SecurityProvider/schema.json +41 -0
  68. package/entities/SessionPolicy/action.json +25 -0
  69. package/entities/SessionPolicy/mockdatafiles/apiConfigSessionPolicyIndex-default.json +20 -0
  70. package/entities/SessionPolicy/schema.json +41 -0
  71. package/entities/Team/action.json +208 -0
  72. package/entities/Team/mockdatafiles/apiConfigTeamIndex-default.json +14 -0
  73. package/entities/Team/mockdatafiles/apiConfigTeamUserIndex-default.json +7 -0
  74. package/entities/Team/schema.json +72 -0
  75. package/entities/User/action.json +106 -0
  76. package/entities/User/mockdatafiles/apiConfigUserIndex-default.json +18 -0
  77. package/entities/User/schema.json +67 -0
  78. package/entities/Vault/action.json +676 -0
  79. package/entities/Vault/mockdatafiles/apiConfigVaultAccountGroupAccountIndex-default.json +18 -0
  80. package/entities/Vault/mockdatafiles/apiConfigVaultAccountGroupUserIndex-default.json +22 -0
  81. package/entities/Vault/mockdatafiles/apiConfigVaultAccountIndex-default.json +22 -0
  82. package/entities/Vault/mockdatafiles/apiConfigVaultAccountUserIndex-default.json +6 -0
  83. package/entities/Vault/schema.json +128 -0
  84. package/entities/Vendor/action.json +208 -0
  85. package/entities/Vendor/mockdatafiles/apiConfigVendorIndex-default.json +32 -0
  86. package/entities/Vendor/mockdatafiles/apiConfigVendorUserIndex-default.json +17 -0
  87. package/entities/Vendor/schema.json +61 -0
  88. package/error.json +190 -0
  89. package/metadata.json +50 -0
  90. package/package.json +83 -0
  91. package/pronghorn.json +9958 -0
  92. package/propertiesDecorators.json +14 -0
  93. package/propertiesSchema.json +1569 -0
  94. package/refs?service=git-upload-pack +0 -0
  95. package/report/adapterInfo.json +10 -0
  96. package/report/bt-pra-configuration.openapi.yaml-OpenApi3.json +13155 -0
  97. package/report/creationReport.json +970 -0
  98. package/sampleProperties.json +256 -0
  99. package/test/integration/adapterTestBasicGet.js +83 -0
  100. package/test/integration/adapterTestConnectivity.js +142 -0
  101. package/test/integration/adapterTestIntegration.js +4162 -0
  102. package/test/unit/adapterBaseTestUnit.js +1024 -0
  103. package/test/unit/adapterTestUnit.js +6145 -0
  104. package/utils/adapterInfo.js +206 -0
  105. package/utils/addAuth.js +94 -0
  106. package/utils/artifactize.js +146 -0
  107. package/utils/basicGet.js +50 -0
  108. package/utils/checkMigrate.js +63 -0
  109. package/utils/entitiesToDB.js +179 -0
  110. package/utils/findPath.js +74 -0
  111. package/utils/methodDocumentor.js +273 -0
  112. package/utils/modify.js +152 -0
  113. package/utils/packModificationScript.js +35 -0
  114. package/utils/patches2bundledDeps.js +90 -0
  115. package/utils/pre-commit.sh +32 -0
  116. package/utils/removeHooks.js +20 -0
  117. package/utils/setup.js +33 -0
  118. package/utils/taskMover.js +309 -0
  119. package/utils/tbScript.js +239 -0
  120. package/utils/tbUtils.js +489 -0
  121. package/utils/testRunner.js +298 -0
  122. package/utils/troubleshootingAdapter.js +193 -0
package/metadata.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "adapter-beyond_trust",
3
+ "webName": "Adapter for Integration to Beyond Trust",
4
+ "vendor": "Beyond Trust",
5
+ "product": "Beyond Trust",
6
+ "osVersions": [],
7
+ "apiVersions": [
8
+ "1.3"
9
+ ],
10
+ "iapVersions": [
11
+ "2021.1.x",
12
+ "2021.2.x",
13
+ "2022.1.x",
14
+ "2023.1.x"
15
+ ],
16
+ "method": "REST",
17
+ "type": "Adapter",
18
+ "domains": [
19
+ "Security (SASE)"
20
+ ],
21
+ "tags": [],
22
+ "useCases": [],
23
+ "deprecated": {
24
+ "isDeprecated": false
25
+ },
26
+ "brokerSince": "",
27
+ "documentation": {
28
+ "storeLink": "",
29
+ "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-beyond_trust",
30
+ "repoLink": "https://gitlab.com/@itentialopensource/adapters/security/adapter-beyond_trust",
31
+ "docLink": "",
32
+ "demoLinks": [],
33
+ "faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
34
+ "contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
35
+ "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
36
+ "webLink": "",
37
+ "vendorLink": "",
38
+ "productLink": "",
39
+ "apiLinks": []
40
+ },
41
+ "assets": [],
42
+ "relatedItems": {
43
+ "adapters": [],
44
+ "integrations": [],
45
+ "ecosystemApplications": [],
46
+ "workflowProjects": [],
47
+ "transformationProjects": [],
48
+ "exampleProjects": []
49
+ }
50
+ }
package/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "@itentialopensource/adapter-beyond_trust",
3
+ "version": "0.1.1",
4
+ "description": "This adapter integrates with system described as: beyondtrustPrivilegedRemoteAccessConfigurationApis.",
5
+ "main": "adapter.js",
6
+ "systemName": "Beyond_trust",
7
+ "wizardVersion": "3.0.3",
8
+ "engineVersion": "1.67.12",
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:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
20
+ "test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
21
+ "adapter:install": "npm i && node utils/tbScript.js install",
22
+ "adapter:checkMigrate": "node utils/checkMigrate.js",
23
+ "adapter:findPath": "node utils/findPath.js",
24
+ "adapter:migrate": "node utils/modify.js -m",
25
+ "adapter:update": "node utils/modify.js -u",
26
+ "adapter:revert": "node utils/modify.js -r",
27
+ "troubleshoot": "node utils/tbScript.js troubleshoot",
28
+ "healthcheck": "node utils/tbScript.js healthcheck",
29
+ "basicget": "node utils/tbScript.js basicget",
30
+ "connectivity": "node utils/tbScript.js connectivity",
31
+ "deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
32
+ "build": "npm run deploy"
33
+ },
34
+ "keywords": [
35
+ "Itential",
36
+ "IAP",
37
+ "Automation",
38
+ "Integration",
39
+ "App-Artifacts",
40
+ "Adapter",
41
+ "beyond_trust",
42
+ "Pre-Release"
43
+ ],
44
+ "license": "Apache-2.0",
45
+ "engines": {
46
+ "node": ">= 8.0.0",
47
+ "npm": ">= 6.0.0"
48
+ },
49
+ "repository": {
50
+ "type": "git",
51
+ "url": "git@gitlab.com:itentialopensource/adapters/adapter-beyond_trust.git"
52
+ },
53
+ "author": "Itential",
54
+ "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-beyond_trust#readme",
55
+ "dependencies": {
56
+ "@itentialopensource/adapter-utils": "^5.3.0",
57
+ "acorn": "^8.10.0",
58
+ "ajv": "^8.12.0",
59
+ "axios": "^1.4.0",
60
+ "commander": "^11.0.0",
61
+ "dns-lookup-promise": "^1.0.4",
62
+ "fs-extra": "^11.1.1",
63
+ "json-query": "^2.2.2",
64
+ "mocha": "^10.2.0",
65
+ "mocha-param": "^2.0.1",
66
+ "mongodb": "^4.16.0",
67
+ "nyc": "^15.1.0",
68
+ "ping": "^0.4.4",
69
+ "prompts": "^2.4.2",
70
+ "readline-sync": "^1.4.10",
71
+ "semver": "^7.5.3",
72
+ "winston": "^3.9.0"
73
+ },
74
+ "devDependencies": {
75
+ "chai": "^4.3.7",
76
+ "eslint": "^8.44.0",
77
+ "eslint-config-airbnb-base": "^15.0.0",
78
+ "eslint-plugin-import": "^2.27.5",
79
+ "eslint-plugin-json": "^3.1.0",
80
+ "testdouble": "^3.18.0"
81
+ },
82
+ "private": false
83
+ }