@itentialopensource/adapter-generic 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.
- package/.eslintignore +5 -0
- package/.eslintrc.js +18 -0
- package/.gitlab/.gitkeep +0 -0
- package/.gitlab/issue_templates/.gitkeep +0 -0
- package/.gitlab/issue_templates/Default.md +17 -0
- package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
- package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
- package/.jshintrc +3 -0
- package/BROKER.md +199 -0
- package/CALLS.md +207 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +13 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +641 -0
- package/README.md +346 -0
- package/SUMMARY.md +9 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +797 -0
- package/adapterBase.js +1452 -0
- package/changelogs/CHANGELOG.md +0 -0
- package/compliance-report.json +9 -0
- package/compliance-report.txt +5 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/error.json +190 -0
- package/metadata.json +47 -0
- package/package.json +82 -0
- package/pronghorn.json +1029 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1661 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1691507318175.json +120 -0
- package/report/updateReport1692202361946.json +120 -0
- package/report/updateReport1694459763364.json +120 -0
- package/report/updateReport1698420283787.json +120 -0
- package/sampleProperties.json +256 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +142 -0
- package/test/integration/adapterTestIntegration.js +475 -0
- package/test/unit/adapterBaseTestUnit.js +1024 -0
- package/test/unit/adapterTestUnit.js +1508 -0
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +179 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +273 -0
- package/utils/modify.js +152 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +32 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +239 -0
- package/utils/tbUtils.js +489 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +193 -0
package/metadata.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "adapter-generic",
|
|
3
|
+
"webName": "Generic adapter for integration with any system with a REST API",
|
|
4
|
+
"vendor": "Itential",
|
|
5
|
+
"product": "Generic",
|
|
6
|
+
"osVersion": [],
|
|
7
|
+
"apiVersions": [],
|
|
8
|
+
"iapVersions": [
|
|
9
|
+
"2021.1.x",
|
|
10
|
+
"2021.2.x",
|
|
11
|
+
"2022.1.x",
|
|
12
|
+
"2023.1.x"
|
|
13
|
+
],
|
|
14
|
+
"method": "REST",
|
|
15
|
+
"type": "Adapter",
|
|
16
|
+
"domains": [],
|
|
17
|
+
"tags": [],
|
|
18
|
+
"useCases": [],
|
|
19
|
+
"deprecated": {
|
|
20
|
+
"isDeprecated": false
|
|
21
|
+
},
|
|
22
|
+
"brokerSince": "",
|
|
23
|
+
"documentation": {
|
|
24
|
+
"storeLink": "",
|
|
25
|
+
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-generic",
|
|
26
|
+
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-generic",
|
|
27
|
+
"docLink": "",
|
|
28
|
+
"demoLinks": [],
|
|
29
|
+
"trainingLinks": [],
|
|
30
|
+
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
31
|
+
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
32
|
+
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
33
|
+
"webLink": "",
|
|
34
|
+
"vendorLink": "",
|
|
35
|
+
"productLink": "",
|
|
36
|
+
"apiLinks": []
|
|
37
|
+
},
|
|
38
|
+
"assets": [],
|
|
39
|
+
"relatedItems": {
|
|
40
|
+
"adapters": [],
|
|
41
|
+
"integrations": [],
|
|
42
|
+
"ecosystemApplications": [],
|
|
43
|
+
"workflowProjects": [],
|
|
44
|
+
"transformationProjects": [],
|
|
45
|
+
"exampleProjects": []
|
|
46
|
+
}
|
|
47
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@itentialopensource/adapter-generic",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "This adapter integrates with any rest based system.",
|
|
5
|
+
"main": "adapter.js",
|
|
6
|
+
"wizardVersion": "2.44.7",
|
|
7
|
+
"engineVersion": "1.67.14",
|
|
8
|
+
"adapterType": "http",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
11
|
+
"preinstall": "node utils/setup.js",
|
|
12
|
+
"deinstall": "node utils/removeHooks.js",
|
|
13
|
+
"lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
|
|
14
|
+
"lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
|
|
15
|
+
"test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
|
|
16
|
+
"test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
|
|
17
|
+
"test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
|
|
18
|
+
"test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
|
|
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
|
+
"ums",
|
|
41
|
+
"Pre-Release"
|
|
42
|
+
],
|
|
43
|
+
"license": "Apache-2.0",
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">= 8.0.0",
|
|
46
|
+
"npm": ">= 6.0.0"
|
|
47
|
+
},
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "git@gitlab.com:itentialopensource/adapters/adapter-generic.git"
|
|
51
|
+
},
|
|
52
|
+
"author": "Itential",
|
|
53
|
+
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-generic#readme",
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@itentialopensource/adapter-utils": "^5.3.2",
|
|
56
|
+
"acorn": "^8.10.0",
|
|
57
|
+
"ajv": "^8.12.0",
|
|
58
|
+
"axios": "^1.4.0",
|
|
59
|
+
"commander": "^11.0.0",
|
|
60
|
+
"dns-lookup-promise": "^1.0.4",
|
|
61
|
+
"fs-extra": "^11.1.1",
|
|
62
|
+
"json-query": "^2.2.2",
|
|
63
|
+
"mocha": "^10.2.0",
|
|
64
|
+
"mocha-param": "^2.0.1",
|
|
65
|
+
"mongodb": "^4.16.0",
|
|
66
|
+
"nyc": "^15.1.0",
|
|
67
|
+
"ping": "^0.4.4",
|
|
68
|
+
"prompts": "^2.4.2",
|
|
69
|
+
"readline-sync": "^1.4.10",
|
|
70
|
+
"semver": "^7.5.3",
|
|
71
|
+
"winston": "^3.9.0"
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"chai": "^4.3.7",
|
|
75
|
+
"eslint": "^8.44.0",
|
|
76
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
77
|
+
"eslint-plugin-import": "^2.27.5",
|
|
78
|
+
"eslint-plugin-json": "^3.1.0",
|
|
79
|
+
"testdouble": "^3.18.0"
|
|
80
|
+
},
|
|
81
|
+
"private": false
|
|
82
|
+
}
|