@itentialopensource/adapter-ciena_mcp 0.3.2 → 0.4.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 (89) hide show
  1. package/AUTH.md +9 -10
  2. package/BROKER.md +3 -3
  3. package/CALLS.md +10042 -22
  4. package/CHANGELOG.md +16 -0
  5. package/CONTRIBUTING.md +1 -160
  6. package/ENHANCE.md +2 -2
  7. package/PROPERTIES.md +19 -19
  8. package/README.md +41 -32
  9. package/SUMMARY.md +2 -2
  10. package/SYSTEMINFO.md +12 -5
  11. package/TROUBLESHOOT.md +6 -6
  12. package/adapter.js +163 -334
  13. package/adapterBase.js +549 -879
  14. package/changelogs/CHANGELOG.md +24 -0
  15. package/entities/000Configmgmtapiv1bulkOperations/schema.json +1 -1
  16. package/entities/000Nsiapicontrollers/schema.json +1 -1
  17. package/entities/000Nsiapiequipment/schema.json +2 -2
  18. package/entities/000NsiapiequipmentGroups/schema.json +3 -3
  19. package/entities/000NsiapiequipmentHolders/schema.json +1 -1
  20. package/entities/000NsiapiequipmentStaticSpecs/schema.json +3 -3
  21. package/entities/000Nsiapifres/schema.json +5 -5
  22. package/entities/000NsiapinetworkConstructs/schema.json +2 -2
  23. package/entities/000Nsiapitpes/schema.json +4 -4
  24. package/entities/994Nsiapiv6equipment/schema.json +2 -2
  25. package/entities/994Nsiapiv6fres/schema.json +5 -5
  26. package/entities/994Nsiapiv6networkConstructs/schema.json +2 -2
  27. package/entities/994Nsiapiv6tpes/schema.json +4 -4
  28. package/entities/995Nsiapiv2controllers/schema.json +1 -1
  29. package/entities/995Nsiapiv5equipment/schema.json +2 -2
  30. package/entities/995Nsiapiv5fres/schema.json +5 -5
  31. package/entities/995Nsiapiv5networkConstructs/schema.json +2 -2
  32. package/entities/995Nsiapiv5tpes/schema.json +3 -3
  33. package/entities/996Nsiapiv1controllers/schema.json +1 -1
  34. package/entities/996Nsiapiv1equipmentStaticSpecs/schema.json +3 -3
  35. package/entities/996Nsiapiv4equipment/schema.json +4 -4
  36. package/entities/996Nsiapiv4fres/schema.json +16 -16
  37. package/entities/996Nsiapiv4networkConstructs/schema.json +2 -2
  38. package/entities/996Nsiapiv4tpes/schema.json +4 -4
  39. package/entities/997Nsiapiv3equipment/schema.json +2 -2
  40. package/entities/997Nsiapiv3equipmentGroups/schema.json +3 -3
  41. package/entities/997Nsiapiv3equipmentHolders/schema.json +1 -1
  42. package/entities/997Nsiapiv3fres/schema.json +4 -4
  43. package/entities/997Nsiapiv3networkConstructs/schema.json +2 -2
  44. package/entities/997Nsiapiv3tpes/schema.json +3 -3
  45. package/entities/998Nsiapiv20equipmentGroups/schema.json +3 -3
  46. package/entities/998Nsiapiv20equipmentHolders/schema.json +1 -1
  47. package/entities/998Nsiapiv20fres/schema.json +4 -4
  48. package/entities/Equipment/schema.json +18 -18
  49. package/entities/EquipmentGroups/schema.json +3 -3
  50. package/entities/Fres/schema.json +66 -66
  51. package/entities/NetworkConstructs/schema.json +22 -22
  52. package/entities/Oam/schema.json +1 -1
  53. package/entities/RetrievesCreatesUpdatesAndDeletesAudits/schema.json +3 -3
  54. package/entities/TapiConnectivity/schema.json +2 -2
  55. package/entities/Tpes/schema.json +6 -6
  56. package/metadata.json +60 -0
  57. package/package.json +23 -25
  58. package/pronghorn.json +986 -647
  59. package/propertiesSchema.json +433 -33
  60. package/refs?service=git-upload-pack +0 -0
  61. package/report/adapter-openapi.json +218608 -0
  62. package/report/adapter-openapi.yaml +159470 -0
  63. package/report/adapterInfo.json +8 -8
  64. package/report/updateReport1691507600369.json +120 -0
  65. package/report/updateReport1692202602603.json +120 -0
  66. package/report/updateReport1694461981982.json +120 -0
  67. package/report/updateReport1698420997295.json +120 -0
  68. package/sampleProperties.json +65 -4
  69. package/test/integration/adapterTestBasicGet.js +2 -4
  70. package/test/integration/adapterTestConnectivity.js +91 -42
  71. package/test/integration/adapterTestIntegration.js +131 -3
  72. package/test/unit/adapterBaseTestUnit.js +388 -313
  73. package/test/unit/adapterTestUnit.js +339 -113
  74. package/utils/adapterInfo.js +1 -1
  75. package/utils/addAuth.js +1 -1
  76. package/utils/artifactize.js +1 -1
  77. package/utils/checkMigrate.js +1 -1
  78. package/utils/entitiesToDB.js +2 -2
  79. package/utils/findPath.js +1 -1
  80. package/utils/methodDocumentor.js +273 -0
  81. package/utils/modify.js +13 -15
  82. package/utils/packModificationScript.js +1 -1
  83. package/utils/pre-commit.sh +2 -0
  84. package/utils/taskMover.js +309 -0
  85. package/utils/tbScript.js +89 -34
  86. package/utils/tbUtils.js +41 -21
  87. package/utils/testRunner.js +1 -1
  88. package/utils/troubleshootingAdapter.js +9 -6
  89. package/workflows/README.md +0 -3
@@ -25,7 +25,7 @@
25
25
  "type": "AES",
26
26
  "key": ""
27
27
  },
28
- "external_name": "networkConstructExpectations.equipmentIntent.id"
28
+ "external_name": "networkConstructExpectations\\.equipmentIntent\\.id"
29
29
  },
30
30
  "networkConstructExpectationsServiceIntentId": {
31
31
  "type": "string",
@@ -36,7 +36,7 @@
36
36
  "type": "AES",
37
37
  "key": ""
38
38
  },
39
- "external_name": "networkConstructExpectations.serviceIntent.id"
39
+ "external_name": "networkConstructExpectations\\.serviceIntent\\.id"
40
40
  },
41
41
  "equippedSlotUtilizationTotalCapacity": {
42
42
  "type": "string",
@@ -47,7 +47,7 @@
47
47
  "type": "AES",
48
48
  "key": ""
49
49
  },
50
- "external_name": "equippedSlot.utilizationTotalCapacity"
50
+ "external_name": "equippedSlot\\.utilizationTotalCapacity"
51
51
  },
52
52
  "equippedSlotUtilizationUsedCapacity": {
53
53
  "type": "string",
@@ -58,7 +58,7 @@
58
58
  "type": "AES",
59
59
  "key": ""
60
60
  },
61
- "external_name": "equippedSlot.utilizationUsedCapacity"
61
+ "external_name": "equippedSlot\\.utilizationUsedCapacity"
62
62
  },
63
63
  "equippedSlotUtilizationPercent": {
64
64
  "type": "string",
@@ -69,7 +69,7 @@
69
69
  "type": "AES",
70
70
  "key": ""
71
71
  },
72
- "external_name": "equippedSlot.utilizationPercent"
72
+ "external_name": "equippedSlot\\.utilizationPercent"
73
73
  },
74
74
  "equippedSlotStartUtilizationPercent": {
75
75
  "type": "string",
@@ -80,7 +80,7 @@
80
80
  "type": "AES",
81
81
  "key": ""
82
82
  },
83
- "external_name": "equippedSlot.startUtilizationPercent"
83
+ "external_name": "equippedSlot\\.startUtilizationPercent"
84
84
  },
85
85
  "equippedSlotEndUtilizationPercent": {
86
86
  "type": "string",
@@ -91,7 +91,7 @@
91
91
  "type": "AES",
92
92
  "key": ""
93
93
  },
94
- "external_name": "equippedSlot.endUtilizationPercent"
94
+ "external_name": "equippedSlot\\.endUtilizationPercent"
95
95
  },
96
96
  "equippedPluggableUtilizationTotalCapacity": {
97
97
  "type": "string",
@@ -102,7 +102,7 @@
102
102
  "type": "AES",
103
103
  "key": ""
104
104
  },
105
- "external_name": "equippedPluggable.utilizationTotalCapacity"
105
+ "external_name": "equippedPluggable\\.utilizationTotalCapacity"
106
106
  },
107
107
  "equippedPluggableUtilizationUsedCapacity": {
108
108
  "type": "string",
@@ -113,7 +113,7 @@
113
113
  "type": "AES",
114
114
  "key": ""
115
115
  },
116
- "external_name": "equippedPluggable.utilizationUsedCapacity"
116
+ "external_name": "equippedPluggable\\.utilizationUsedCapacity"
117
117
  },
118
118
  "equippedPluggableUtilizationPercent": {
119
119
  "type": "string",
@@ -124,7 +124,7 @@
124
124
  "type": "AES",
125
125
  "key": ""
126
126
  },
127
- "external_name": "equippedPluggable.utilizationPercent"
127
+ "external_name": "equippedPluggable\\.utilizationPercent"
128
128
  },
129
129
  "equippedPluggableStartUtilizationPercent": {
130
130
  "type": "string",
@@ -135,7 +135,7 @@
135
135
  "type": "AES",
136
136
  "key": ""
137
137
  },
138
- "external_name": "equippedPluggable.startUtilizationPercent"
138
+ "external_name": "equippedPluggable\\.startUtilizationPercent"
139
139
  },
140
140
  "equippedPluggableEndUtilizationPercent": {
141
141
  "type": "string",
@@ -146,7 +146,7 @@
146
146
  "type": "AES",
147
147
  "key": ""
148
148
  },
149
- "external_name": "equippedPluggable.endUtilizationPercent"
149
+ "external_name": "equippedPluggable\\.endUtilizationPercent"
150
150
  },
151
151
  "inUseByServiceSlotUtilizationTotalCapacity": {
152
152
  "type": "string",
@@ -157,7 +157,7 @@
157
157
  "type": "AES",
158
158
  "key": ""
159
159
  },
160
- "external_name": "inUseByServiceSlot.utilizationTotalCapacity"
160
+ "external_name": "inUseByServiceSlot\\.utilizationTotalCapacity"
161
161
  },
162
162
  "inUseByServiceSlotUtilizationUsedCapacity": {
163
163
  "type": "string",
@@ -168,7 +168,7 @@
168
168
  "type": "AES",
169
169
  "key": ""
170
170
  },
171
- "external_name": "inUseByServiceSlot.utilizationUsedCapacity"
171
+ "external_name": "inUseByServiceSlot\\.utilizationUsedCapacity"
172
172
  },
173
173
  "inUseByServiceSlotUtilizationPercent": {
174
174
  "type": "string",
@@ -179,7 +179,7 @@
179
179
  "type": "AES",
180
180
  "key": ""
181
181
  },
182
- "external_name": "inUseByServiceSlot.utilizationPercent"
182
+ "external_name": "inUseByServiceSlot\\.utilizationPercent"
183
183
  },
184
184
  "inUseByServiceSlotStartUtilizationPercent": {
185
185
  "type": "string",
@@ -190,7 +190,7 @@
190
190
  "type": "AES",
191
191
  "key": ""
192
192
  },
193
- "external_name": "inUseByServiceSlot.startUtilizationPercent"
193
+ "external_name": "inUseByServiceSlot\\.startUtilizationPercent"
194
194
  },
195
195
  "inUseByServiceSlotEndUtilizationPercent": {
196
196
  "type": "string",
@@ -201,7 +201,7 @@
201
201
  "type": "AES",
202
202
  "key": ""
203
203
  },
204
- "external_name": "inUseByServiceSlot.endUtilizationPercent"
204
+ "external_name": "inUseByServiceSlot\\.endUtilizationPercent"
205
205
  },
206
206
  "inUseByServicePluggableUtilizationTotalCapacity": {
207
207
  "type": "string",
@@ -212,7 +212,7 @@
212
212
  "type": "AES",
213
213
  "key": ""
214
214
  },
215
- "external_name": "inUseByServicePluggable.utilizationTotalCapacity"
215
+ "external_name": "inUseByServicePluggable\\.utilizationTotalCapacity"
216
216
  },
217
217
  "inUseByServicePluggableUtilizationUsedCapacity": {
218
218
  "type": "string",
@@ -223,7 +223,7 @@
223
223
  "type": "AES",
224
224
  "key": ""
225
225
  },
226
- "external_name": "inUseByServicePluggable.utilizationUsedCapacity"
226
+ "external_name": "inUseByServicePluggable\\.utilizationUsedCapacity"
227
227
  },
228
228
  "inUseByServicePluggableUtilizationPercent": {
229
229
  "type": "string",
@@ -234,7 +234,7 @@
234
234
  "type": "AES",
235
235
  "key": ""
236
236
  },
237
- "external_name": "inUseByServicePluggable.utilizationPercent"
237
+ "external_name": "inUseByServicePluggable\\.utilizationPercent"
238
238
  },
239
239
  "inUseByServicePluggableStartUtilizationPercent": {
240
240
  "type": "string",
@@ -245,7 +245,7 @@
245
245
  "type": "AES",
246
246
  "key": ""
247
247
  },
248
- "external_name": "inUseByServicePluggable.startUtilizationPercent"
248
+ "external_name": "inUseByServicePluggable\\.startUtilizationPercent"
249
249
  },
250
250
  "inUseByServicePluggableEndUtilizationPercent": {
251
251
  "type": "string",
@@ -256,7 +256,7 @@
256
256
  "type": "AES",
257
257
  "key": ""
258
258
  },
259
- "external_name": "inUseByServicePluggable.endUtilizationPercent"
259
+ "external_name": "inUseByServicePluggable\\.endUtilizationPercent"
260
260
  }
261
261
  },
262
262
  "definitions": {}
@@ -23,7 +23,7 @@
23
23
  "type": "AES",
24
24
  "key": ""
25
25
  },
26
- "external_name": "tapi.oam.Oam.body-param"
26
+ "external_name": "tapi\\.oam\\.Oam\\.body-param"
27
27
  }
28
28
  },
29
29
  "definitions": {}
@@ -32,7 +32,7 @@
32
32
  "type": "AES",
33
33
  "key": ""
34
34
  },
35
- "external_name": "auditProfile.names"
35
+ "external_name": "auditProfile\\.names"
36
36
  },
37
37
  "auditRunAuditStateState": {
38
38
  "type": "string",
@@ -43,7 +43,7 @@
43
43
  "type": "AES",
44
44
  "key": ""
45
45
  },
46
- "external_name": "auditRun.auditState.state"
46
+ "external_name": "auditRun\\.auditState\\.state"
47
47
  },
48
48
  "fixStateState": {
49
49
  "type": "string",
@@ -54,7 +54,7 @@
54
54
  "type": "AES",
55
55
  "key": ""
56
56
  },
57
- "external_name": "fixState.state"
57
+ "external_name": "fixState\\.state"
58
58
  }
59
59
  },
60
60
  "definitions": {}
@@ -61,7 +61,7 @@
61
61
  "type": "AES",
62
62
  "key": ""
63
63
  },
64
- "external_name": "tapi.connectivity.connectivitycontext.ConnectivityService.body-param"
64
+ "external_name": "tapi\\.connectivity\\.connectivitycontext\\.ConnectivityService.body-param"
65
65
  },
66
66
  "tapiCommonNameAndValueBodyParam": {
67
67
  "type": "object",
@@ -72,7 +72,7 @@
72
72
  "type": "AES",
73
73
  "key": ""
74
74
  },
75
- "external_name": "tapi.common.NameAndValue.body-param"
75
+ "external_name": "tapi\\.common\\.NameAndValue\\.body-param"
76
76
  },
77
77
  "topologyUuid": {
78
78
  "type": "string",
@@ -24,7 +24,7 @@
24
24
  "type": "AES",
25
25
  "key": ""
26
26
  },
27
- "external_name": "networkConstruct.id"
27
+ "external_name": "networkConstruct\\.id"
28
28
  },
29
29
  "bookingDataLockout": {
30
30
  "type": "string",
@@ -35,7 +35,7 @@
35
35
  "type": "AES",
36
36
  "key": ""
37
37
  },
38
- "external_name": "bookingData.lockout"
38
+ "external_name": "bookingData\\.lockout"
39
39
  },
40
40
  "tpeExpectationsEquipmentIntentId": {
41
41
  "type": "string",
@@ -46,7 +46,7 @@
46
46
  "type": "AES",
47
47
  "key": ""
48
48
  },
49
- "external_name": "tpeExpectations.equipmentIntent.id"
49
+ "external_name": "tpeExpectations\\.equipmentIntent\\.id"
50
50
  },
51
51
  "tpeExpectationsServiceIntentId": {
52
52
  "type": "string",
@@ -57,7 +57,7 @@
57
57
  "type": "AES",
58
58
  "key": ""
59
59
  },
60
- "external_name": "tpeExpectations.serviceIntent.id"
60
+ "external_name": "tpeExpectations\\.serviceIntent\\.id"
61
61
  },
62
62
  "tpeExpectationsIntentId": {
63
63
  "type": "string",
@@ -68,7 +68,7 @@
68
68
  "type": "AES",
69
69
  "key": ""
70
70
  },
71
- "external_name": "tpeExpectations.intent.id"
71
+ "external_name": "tpeExpectations\\.intent\\.id"
72
72
  },
73
73
  "tpeExpectationsIntentType": {
74
74
  "type": "string",
@@ -79,7 +79,7 @@
79
79
  "type": "AES",
80
80
  "key": ""
81
81
  },
82
- "external_name": "tpeExpectations.intent.type"
82
+ "external_name": "tpeExpectations\\.intent\\.type"
83
83
  }
84
84
  },
85
85
  "definitions": {}
package/metadata.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "adapter-ciena_mcp",
3
+ "webName": "Adapter for Integration to Ciena Manage, Control and Plan",
4
+ "vendor": "Ciena",
5
+ "product": "Manage, Control and Plan (MPC)",
6
+ "osVersion": [],
7
+ "apiVersions": [
8
+ "5.3.0"
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
+ "Data Center"
20
+ ],
21
+ "tags": [
22
+ "Network Orchestration",
23
+ "Network Provisioning",
24
+ "Optical Networking"
25
+ ],
26
+ "useCases": [
27
+ "Provision, update, manage or remove Overlay Networks",
28
+ "Automate the configuration of items to provision, update, manage or remove Services",
29
+ "Provisioning and Management of Optical Service"
30
+ ],
31
+ "deprecated": {
32
+ "isDeprecated": false
33
+ },
34
+ "brokerSince": "",
35
+ "documentation": {
36
+ "storeLink": "",
37
+ "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-ciena_mcp",
38
+ "repoLink": "https://gitlab.com/itentialopensource/adapters/controller-orchestrator/adapter-ciena_mcp",
39
+ "docLink": "https://docs.itential.com/opensource/docs/ciena-manage-control-and-plan",
40
+ "demoLinks": [],
41
+ "faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
42
+ "contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
43
+ "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
44
+ "webLink": "https://www.itential.com/adapters/ciena-mcp/",
45
+ "vendorLink": "https://www.ciena.com/",
46
+ "productLink": "https://www.ciena.com/products/manage-control-plan",
47
+ "apiLinks": [
48
+ "https://software.ciena.com/releasenotes/MCP-DOCS_5.2-217/build/site/mcp-docs/release-notes.html"
49
+ ]
50
+ },
51
+ "assets": [],
52
+ "relatedItems": {
53
+ "adapters": [],
54
+ "integrations": [],
55
+ "ecosystemApplications": [],
56
+ "workflowProjects": [],
57
+ "transformationProjects": [],
58
+ "exampleProjects": []
59
+ }
60
+ }
package/package.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-ciena_mcp",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "This adapter integrates with system described as: Ciena Mcp",
5
5
  "main": "adapter.js",
6
- "systemName": "Ciena Manage, Control and Plan",
7
6
  "wizardVersion": "2.44.7",
8
- "engineVersion": "1.61.6",
7
+ "engineVersion": "1.67.10",
9
8
  "adapterType": "http",
10
9
  "scripts": {
11
10
  "artifactize": "npm i && node utils/packModificationScript.js",
12
- "preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
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",
15
14
  "lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
@@ -24,7 +23,7 @@
24
23
  "adapter:migrate": "node utils/modify.js -m",
25
24
  "adapter:update": "node utils/modify.js -u",
26
25
  "adapter:revert": "node utils/modify.js -r",
27
- "troubleshoot": "node utils/tbScript.js",
26
+ "troubleshoot": "node utils/tbScript.js troubleshoot",
28
27
  "healthcheck": "node utils/tbScript.js healthcheck",
29
28
  "basicget": "node utils/tbScript.js basicget",
30
29
  "connectivity": "node utils/tbScript.js connectivity",
@@ -57,32 +56,31 @@
57
56
  "author": "Itential",
58
57
  "homepage": "https://gitlab.com/itentialopensource/adapters/controller-orchestrator/adapter-ciena_mcp#readme",
59
58
  "dependencies": {
60
- "@itentialopensource/adapter-utils": "^4.45.6",
61
- "ajv": "^6.12.0",
62
- "axios": "^0.21.0",
63
- "commander": "^2.20.0",
64
- "fs-extra": "^8.1.0",
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",
65
66
  "json-query": "^2.2.2",
66
- "mocha": "^9.0.1",
67
+ "mocha": "^10.2.0",
67
68
  "mocha-param": "^2.0.1",
68
- "mongodb": "^4.1.0",
69
- "network-diagnostics": "^0.5.3",
69
+ "mongodb": "^4.16.0",
70
70
  "nyc": "^15.1.0",
71
+ "ping": "^0.4.4",
72
+ "prompts": "^2.4.2",
71
73
  "readline-sync": "^1.4.10",
72
- "semver": "^7.3.2",
73
- "winston": "^3.3.3"
74
+ "semver": "^7.5.3",
75
+ "winston": "^3.9.0"
74
76
  },
75
77
  "devDependencies": {
76
- "chai": "^4.3.4",
77
- "eslint": "^7.29.0",
78
- "eslint-config-airbnb-base": "^14.2.1",
79
- "eslint-plugin-import": "^2.23.4",
80
- "eslint-plugin-json": "^3.0.0",
81
- "package-json-validator": "^0.6.3",
82
- "testdouble": "^3.16.1"
83
- },
84
- "resolutions": {
85
- "minimist": "^1.2.5"
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"
86
84
  },
87
85
  "private": false
88
86
  }