@itentialopensource/adapter-viavi_xpertrak 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 +6 -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 +0 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +170 -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/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +7887 -0
- package/adapterBase.js +1452 -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/entities/AssetManagementCMTS/action.json +127 -0
- package/entities/AssetManagementCMTS/mockdatafiles/getAllCmtsLiteUsingGET1-default.json +152 -0
- package/entities/AssetManagementCMTS/mockdatafiles/getAllCmtsUsingGET1-default.json +68 -0
- package/entities/AssetManagementCMTS/schema.json +24 -0
- package/entities/AssetManagementCMTSUSPort/action.json +65 -0
- package/entities/AssetManagementCMTSUSPort/schema.json +21 -0
- package/entities/AssetManagementHCU/action.json +66 -0
- package/entities/AssetManagementHCU/schema.json +21 -0
- package/entities/AssetManagementHCUHSM/action.json +46 -0
- package/entities/AssetManagementHCUHSM/schema.json +20 -0
- package/entities/AssetManagementHCURPM/action.json +46 -0
- package/entities/AssetManagementHCURPM/schema.json +20 -0
- package/entities/AssetManagementHCURPMPort/action.json +46 -0
- package/entities/AssetManagementHCURPMPort/schema.json +20 -0
- package/entities/AssetManagementNode/action.json +45 -0
- package/entities/AssetManagementNode/mockdatafiles/getNodesUsingGET2-default.json +37 -0
- package/entities/AssetManagementNode/schema.json +20 -0
- package/entities/AssetManagementNoiseTrak/action.json +25 -0
- package/entities/AssetManagementNoiseTrak/schema.json +19 -0
- package/entities/AssetManagementOTU/action.json +46 -0
- package/entities/AssetManagementOTU/mockdatafiles/getAllOtusUsingGET1-default.json +59 -0
- package/entities/AssetManagementOTU/schema.json +20 -0
- package/entities/AssetManagementOTUPort/action.json +25 -0
- package/entities/AssetManagementOTUPort/mockdatafiles/getAllPortsUsingGET1-default.json +18 -0
- package/entities/AssetManagementOTUPort/schema.json +19 -0
- package/entities/AssetManagementRCI/action.json +46 -0
- package/entities/AssetManagementRCI/mockdatafiles/getAllRcisUsingGET1-default.json +41960 -0
- package/entities/AssetManagementRCI/schema.json +20 -0
- package/entities/Authentication/action.json +45 -0
- package/entities/Authentication/schema.json +20 -0
- package/entities/CableModem/action.json +171 -0
- package/entities/CableModem/mockdatafiles/getModemDescriptionUsingGET1-default.json +38 -0
- package/entities/CableModem/mockdatafiles/getModemExclusionDescriptionsUsingGET1-default.json +7 -0
- package/entities/CableModem/mockdatafiles/getModemWatchByNodeUsingGET1-default.json +15 -0
- package/entities/CableModem/mockdatafiles/getModemWatchUsingGET1-default.json +54 -0
- package/entities/CableModem/schema.json +48 -0
- package/entities/CollectionScheduleDetails/action.json +67 -0
- package/entities/CollectionScheduleDetails/schema.json +21 -0
- package/entities/Container/action.json +25 -0
- package/entities/Container/mockdatafiles/getNodeContainersUsingGET1-default.json +10 -0
- package/entities/Container/schema.json +19 -0
- package/entities/DeviceSettings/action.json +44 -0
- package/entities/DeviceSettings/schema.json +20 -0
- package/entities/EventsAndAlarmsAlarms/action.json +127 -0
- package/entities/EventsAndAlarmsAlarms/schema.json +24 -0
- package/entities/EventsAndAlarmsEvents/action.json +25 -0
- package/entities/EventsAndAlarmsEvents/mockdatafiles/getEventsUsingGET2-default.json +38 -0
- package/entities/EventsAndAlarmsEvents/schema.json +19 -0
- package/entities/GraphQL/action.json +24 -0
- package/entities/GraphQL/schema.json +19 -0
- package/entities/MACTrakDetail/action.json +25 -0
- package/entities/MACTrakDetail/mockdatafiles/getMactrakDetailsUsingGET1-default.json +27 -0
- package/entities/MACTrakDetail/schema.json +19 -0
- package/entities/MACTrakPerformance/action.json +67 -0
- package/entities/MACTrakPerformance/mockdatafiles/getChannelPerformanceUsingGET2-default.json +271 -0
- package/entities/MACTrakPerformance/schema.json +21 -0
- package/entities/MACTrakRanking/action.json +25 -0
- package/entities/MACTrakRanking/mockdatafiles/getLatestRankingsUsingGET2-default.json +58 -0
- package/entities/MACTrakRanking/schema.json +19 -0
- package/entities/ModemAnalysisLiveAndHistory/action.json +66 -0
- package/entities/ModemAnalysisLiveAndHistory/schema.json +21 -0
- package/entities/NoiseTrakImport/action.json +65 -0
- package/entities/NoiseTrakImport/schema.json +21 -0
- package/entities/PreeqApiService/action.json +25 -0
- package/entities/PreeqApiService/schema.json +19 -0
- package/entities/QoE/action.json +46 -0
- package/entities/QoE/schema.json +20 -0
- package/entities/QoENodeSummary/action.json +25 -0
- package/entities/QoENodeSummary/mockdatafiles/getSpectrumDetailsUsingGET3-default.json +40 -0
- package/entities/QoENodeSummary/schema.json +19 -0
- package/entities/QoERanking/action.json +25 -0
- package/entities/QoERanking/mockdatafiles/getQoeNodeRankingsUsingGET1-default.json +25 -0
- package/entities/QoERanking/schema.json +19 -0
- package/entities/RCISweep/action.json +65 -0
- package/entities/RCISweep/mockdatafiles/rCISweepPlanAPI1-default.json +30 -0
- package/entities/RCISweep/schema.json +21 -0
- package/entities/RPMPortBroadcast/action.json +65 -0
- package/entities/RPMPortBroadcast/schema.json +21 -0
- package/entities/Ranking/action.json +25 -0
- package/entities/Ranking/schema.json +19 -0
- package/entities/RankingSummary/action.json +25 -0
- package/entities/RankingSummary/schema.json +19 -0
- package/entities/SearchNetworkElementsAndProperties/action.json +88 -0
- package/entities/SearchNetworkElementsAndProperties/mockdatafiles/searchAlarmableModemsUsingGET1-default.json +26 -0
- package/entities/SearchNetworkElementsAndProperties/mockdatafiles/searchElementsUsingGET1-default.json +8 -0
- package/entities/SearchNetworkElementsAndProperties/mockdatafiles/searchModemWatchModemsUsingGET1-default.json +20 -0
- package/entities/SearchNetworkElementsAndProperties/schema.json +22 -0
- package/entities/Site/action.json +25 -0
- package/entities/Site/mockdatafiles/getAllUsingGET6-default.json +8 -0
- package/entities/Site/schema.json +19 -0
- package/entities/SpectrumAll/action.json +25 -0
- package/entities/SpectrumAll/schema.json +19 -0
- package/entities/SpectrumDetail/action.json +25 -0
- package/entities/SpectrumDetail/mockdatafiles/getSpectrumDetailsUsingGET5-default.json +37 -0
- package/entities/SpectrumDetail/schema.json +19 -0
- package/entities/SpectrumRanking/action.json +25 -0
- package/entities/SpectrumRanking/mockdatafiles/getLatestRankingsUsingGET3-default.json +61 -0
- package/entities/SpectrumRanking/schema.json +19 -0
- package/entities/TopologyImport/action.json +85 -0
- package/entities/TopologyImport/schema.json +22 -0
- package/entities/UserActionLogging/action.json +46 -0
- package/entities/UserActionLogging/schema.json +20 -0
- package/entities/UserActionSummary/action.json +25 -0
- package/entities/UserActionSummary/schema.json +19 -0
- package/error.json +190 -0
- package/metadata.json +45 -0
- package/package.json +86 -0
- package/pronghorn.json +7886 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1569 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/creationReport.json +1120 -0
- package/report/xpertrak_API.json-OpenApi3Json.json +11962 -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 +2777 -0
- package/test/unit/adapterBaseTestUnit.js +1024 -0
- package/test/unit/adapterTestUnit.js +3369 -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,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "adapter-viavi_xpertrak",
|
|
3
|
+
"webName": "Viavi_xpertrak",
|
|
4
|
+
"vendor": "viavi",
|
|
5
|
+
"product": "xpertrak",
|
|
6
|
+
"osVersions": [],
|
|
7
|
+
"apiVersions": [
|
|
8
|
+
"1.0"
|
|
9
|
+
],
|
|
10
|
+
"iapVersions": [],
|
|
11
|
+
"method": "REST",
|
|
12
|
+
"type": "Adapter",
|
|
13
|
+
"domains": [],
|
|
14
|
+
"tags": [],
|
|
15
|
+
"useCases": [],
|
|
16
|
+
"deprecated": {
|
|
17
|
+
"isDeprecated": false
|
|
18
|
+
},
|
|
19
|
+
"brokerSince": "",
|
|
20
|
+
"documentation": {
|
|
21
|
+
"storeLink": "",
|
|
22
|
+
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-viavi_xpertrak",
|
|
23
|
+
"repoLink": "https://gitlab.com/@itentialopensource/adapters/adapter-viavi_xpertrak",
|
|
24
|
+
"docLink": "https://docs.itential.com/opensource/docs/viavi_xpertrak",
|
|
25
|
+
"demoLinks": [
|
|
26
|
+
"https://docs.itential.com/opensource/docs/viavi_xpertrak/examples"
|
|
27
|
+
],
|
|
28
|
+
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
29
|
+
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
30
|
+
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
31
|
+
"webLink": "https://www.itential.com/adapters/viavi-xpertrak",
|
|
32
|
+
"vendorLink": "",
|
|
33
|
+
"productLink": "",
|
|
34
|
+
"apiLinks": []
|
|
35
|
+
},
|
|
36
|
+
"assets": [],
|
|
37
|
+
"relatedItems": {
|
|
38
|
+
"adapters": [],
|
|
39
|
+
"integrations": [],
|
|
40
|
+
"ecosystemApplications": [],
|
|
41
|
+
"workflowProjects": [],
|
|
42
|
+
"transformationProjects": [],
|
|
43
|
+
"exampleProjects": []
|
|
44
|
+
}
|
|
45
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@itentialopensource/adapter-viavi_xpertrak",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "This adapter integrates with system described as: viaviXpertrakApi.",
|
|
5
|
+
"main": "adapter.js",
|
|
6
|
+
"systemName": "Viavi_xpertrak",
|
|
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
|
+
"Viavi",
|
|
42
|
+
"Xpertrak",
|
|
43
|
+
"Pre-Release",
|
|
44
|
+
"Telemetry",
|
|
45
|
+
"Analytics"
|
|
46
|
+
],
|
|
47
|
+
"license": "Apache-2.0",
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">= 8.0.0",
|
|
50
|
+
"npm": ">= 6.0.0"
|
|
51
|
+
},
|
|
52
|
+
"repository": {
|
|
53
|
+
"type": "git",
|
|
54
|
+
"url": "git@gitlab.com:itentialopensource/adapters/telemetry-analytics/adapter-viavi_xpertrak.git"
|
|
55
|
+
},
|
|
56
|
+
"author": "Itential",
|
|
57
|
+
"homepage": "https://gitlab.com/itentialopensource/adapters/telemetry-analytics/adapter-viavi_xpertrak#readme",
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@itentialopensource/adapter-utils": "^5.3.0",
|
|
60
|
+
"acorn": "^8.10.0",
|
|
61
|
+
"ajv": "^8.12.0",
|
|
62
|
+
"axios": "^1.4.0",
|
|
63
|
+
"commander": "^11.0.0",
|
|
64
|
+
"dns-lookup-promise": "^1.0.4",
|
|
65
|
+
"fs-extra": "^11.1.1",
|
|
66
|
+
"json-query": "^2.2.2",
|
|
67
|
+
"mocha": "^10.2.0",
|
|
68
|
+
"mocha-param": "^2.0.1",
|
|
69
|
+
"mongodb": "^4.16.0",
|
|
70
|
+
"nyc": "^15.1.0",
|
|
71
|
+
"ping": "^0.4.4",
|
|
72
|
+
"prompts": "^2.4.2",
|
|
73
|
+
"readline-sync": "^1.4.10",
|
|
74
|
+
"semver": "^7.5.3",
|
|
75
|
+
"winston": "^3.9.0"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"chai": "^4.3.7",
|
|
79
|
+
"eslint": "^8.44.0",
|
|
80
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
81
|
+
"eslint-plugin-import": "^2.27.5",
|
|
82
|
+
"eslint-plugin-json": "^3.1.0",
|
|
83
|
+
"testdouble": "^3.18.0"
|
|
84
|
+
},
|
|
85
|
+
"private": false
|
|
86
|
+
}
|