@itentialopensource/adapter-paragon_pathfinder 1.2.5 → 1.2.7

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/CALLS.md CHANGED
@@ -247,7 +247,7 @@ Specific adapter calls are built based on the API of the Paragon_pathfinder. The
247
247
  <td style="padding:15px">Yes</td>
248
248
  </tr>
249
249
  <tr>
250
- <td style="padding:15px">getTopologyV2TopologyIdNodesSearch(topologyId, callback)</td>
250
+ <td style="padding:15px">getTopologyV2TopologyIdNodesSearch(topologyId, queryData, callback)</td>
251
251
  <td style="padding:15px">Searches the list of nodes for specific URI parameters. For example, search?name=62.0.0.101 must return one node.</td>
252
252
  <td style="padding:15px">{base_path}/{version}/topology/v2/{pathv1}/nodes/search?{query}</td>
253
253
  <td style="padding:15px">Yes</td>
@@ -361,7 +361,7 @@ Specific adapter calls are built based on the API of the Paragon_pathfinder. The
361
361
  <td style="padding:15px">Yes</td>
362
362
  </tr>
363
363
  <tr>
364
- <td style="padding:15px">getTopologyV2TopologyIdLinksSearch(topologyId, callback)</td>
364
+ <td style="padding:15px">getTopologyV2TopologyIdLinksSearch(topologyId, queryData, callback)</td>
365
365
  <td style="padding:15px">Searches the link list based on URI parameters. For example, search?name=62.101.105 must return one Link.</td>
366
366
  <td style="padding:15px">{base_path}/{version}/topology/v2/{pathv1}/links/search?{query}</td>
367
367
  <td style="padding:15px">Yes</td>
@@ -458,7 +458,7 @@ Specific adapter calls are built based on the API of the Paragon_pathfinder. The
458
458
  <td style="padding:15px">Yes</td>
459
459
  </tr>
460
460
  <tr>
461
- <td style="padding:15px">getTopologyV2TopologyIdTeLspsSearch(topologyId, callback)</td>
461
+ <td style="padding:15px">getTopologyV2TopologyIdTeLspsSearch(topologyId, queryData, callback)</td>
462
462
  <td style="padding:15px">Performs a search in the LSP list based on the URI parameters. For example, "search?name=62.101.105" returns one link.</td>
463
463
  <td style="padding:15px">{base_path}/{version}/topology/v2/{pathv1}/te-lsps/search?{query}</td>
464
464
  <td style="padding:15px">Yes</td>
package/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 1.2.7 [07-05-2023]
3
+
4
+ * Fix body objects for all calls
5
+
6
+ See merge request itentialopensource/adapters/controller-orchestrator/adapter-paragon_pathfinder!11
7
+
8
+ ---
9
+
10
+ ## 1.2.6 [05-31-2023]
11
+
12
+ * Patch/add query params
13
+
14
+ See merge request itentialopensource/adapters/controller-orchestrator/adapter-paragon_pathfinder!9
15
+
16
+ ---
17
+
2
18
  ## 1.2.5 [05-25-2023]
3
19
 
4
20
  * Patch/add query params
package/adapter.js CHANGED
@@ -1857,7 +1857,7 @@ class ParagonPathfinder extends AdapterBaseCl {
1857
1857
  const queryParamsAvailable = {};
1858
1858
  const queryParams = {};
1859
1859
  const pathVars = [topologyId];
1860
- const bodyVars = { body };
1860
+ const bodyVars = body;
1861
1861
 
1862
1862
  // loop in template. long callback arg name to avoid identifier conflicts
1863
1863
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -2530,7 +2530,7 @@ class ParagonPathfinder extends AdapterBaseCl {
2530
2530
  const queryParamsAvailable = {};
2531
2531
  const queryParams = {};
2532
2532
  const pathVars = [topologyId, nodeIndex];
2533
- const bodyVars = { body };
2533
+ const bodyVars = body;
2534
2534
 
2535
2535
  // loop in template. long callback arg name to avoid identifier conflicts
2536
2536
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -3224,7 +3224,7 @@ class ParagonPathfinder extends AdapterBaseCl {
3224
3224
  const queryParamsAvailable = {};
3225
3225
  const queryParams = {};
3226
3226
  const pathVars = [topologyId];
3227
- const bodyVars = { body };
3227
+ const bodyVars = body;
3228
3228
 
3229
3229
  // loop in template. long callback arg name to avoid identifier conflicts
3230
3230
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -3648,7 +3648,7 @@ class ParagonPathfinder extends AdapterBaseCl {
3648
3648
  const queryParamsAvailable = {};
3649
3649
  const queryParams = {};
3650
3650
  const pathVars = [topologyId, linkIndex];
3651
- const bodyVars = { body };
3651
+ const bodyVars = body;
3652
3652
 
3653
3653
  // loop in template. long callback arg name to avoid identifier conflicts
3654
3654
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -4090,7 +4090,7 @@ class ParagonPathfinder extends AdapterBaseCl {
4090
4090
  const queryParamsAvailable = {};
4091
4091
  const queryParams = {};
4092
4092
  const pathVars = [topologyId, linkIndex];
4093
- const bodyVars = { body };
4093
+ const bodyVars = body;
4094
4094
 
4095
4095
  // loop in template. long callback arg name to avoid identifier conflicts
4096
4096
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -4356,7 +4356,7 @@ class ParagonPathfinder extends AdapterBaseCl {
4356
4356
  const queryParamsAvailable = {};
4357
4357
  const queryParams = {};
4358
4358
  const pathVars = [topologyId, linkIndex];
4359
- const bodyVars = { body };
4359
+ const bodyVars = body;
4360
4360
 
4361
4361
  // loop in template. long callback arg name to avoid identifier conflicts
4362
4362
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -4698,7 +4698,7 @@ class ParagonPathfinder extends AdapterBaseCl {
4698
4698
  const queryParamsAvailable = {};
4699
4699
  const queryParams = {};
4700
4700
  const pathVars = [topologyId];
4701
- const bodyVars = { body };
4701
+ const bodyVars = body;
4702
4702
 
4703
4703
  // loop in template. long callback arg name to avoid identifier conflicts
4704
4704
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -5371,7 +5371,7 @@ class ParagonPathfinder extends AdapterBaseCl {
5371
5371
  const queryParamsAvailable = {};
5372
5372
  const queryParams = {};
5373
5373
  const pathVars = [topologyId, lspIndex];
5374
- const bodyVars = { body };
5374
+ const bodyVars = body;
5375
5375
 
5376
5376
  // loop in template. long callback arg name to avoid identifier conflicts
5377
5377
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -5801,7 +5801,7 @@ class ParagonPathfinder extends AdapterBaseCl {
5801
5801
  const queryParamsAvailable = {};
5802
5802
  const queryParams = {};
5803
5803
  const pathVars = [topologyId];
5804
- const bodyVars = { body };
5804
+ const bodyVars = body;
5805
5805
 
5806
5806
  // loop in template. long callback arg name to avoid identifier conflicts
5807
5807
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -6060,7 +6060,7 @@ class ParagonPathfinder extends AdapterBaseCl {
6060
6060
  const queryParamsAvailable = {};
6061
6061
  const queryParams = {};
6062
6062
  const pathVars = [topologyId, demandIndex];
6063
- const bodyVars = { body };
6063
+ const bodyVars = body;
6064
6064
 
6065
6065
  // loop in template. long callback arg name to avoid identifier conflicts
6066
6066
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -6733,7 +6733,7 @@ class ParagonPathfinder extends AdapterBaseCl {
6733
6733
  const queryParamsAvailable = {};
6734
6734
  const queryParams = {};
6735
6735
  const pathVars = [topologyId];
6736
- const bodyVars = { body };
6736
+ const bodyVars = body;
6737
6737
 
6738
6738
  // loop in template. long callback arg name to avoid identifier conflicts
6739
6739
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -7074,7 +7074,7 @@ class ParagonPathfinder extends AdapterBaseCl {
7074
7074
  const queryParamsAvailable = {};
7075
7075
  const queryParams = {};
7076
7076
  const pathVars = [topologyId, p2mpGroupIndex];
7077
- const bodyVars = { body };
7077
+ const bodyVars = body;
7078
7078
 
7079
7079
  // loop in template. long callback arg name to avoid identifier conflicts
7080
7080
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -7340,7 +7340,7 @@ class ParagonPathfinder extends AdapterBaseCl {
7340
7340
  const queryParamsAvailable = {};
7341
7341
  const queryParams = {};
7342
7342
  const pathVars = [topologyId, p2mpGroupIndex];
7343
- const bodyVars = { body };
7343
+ const bodyVars = body;
7344
7344
 
7345
7345
  // loop in template. long callback arg name to avoid identifier conflicts
7346
7346
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -7951,7 +7951,7 @@ class ParagonPathfinder extends AdapterBaseCl {
7951
7951
  const queryParamsAvailable = {};
7952
7952
  const queryParams = {};
7953
7953
  const pathVars = [topologyId];
7954
- const bodyVars = { body };
7954
+ const bodyVars = body;
7955
7955
 
7956
7956
  // loop in template. long callback arg name to avoid identifier conflicts
7957
7957
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -8210,7 +8210,7 @@ class ParagonPathfinder extends AdapterBaseCl {
8210
8210
  const queryParamsAvailable = {};
8211
8211
  const queryParams = {};
8212
8212
  const pathVars = [topologyId, maintenanceIndex];
8213
- const bodyVars = { body };
8213
+ const bodyVars = body;
8214
8214
 
8215
8215
  // loop in template. long callback arg name to avoid identifier conflicts
8216
8216
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -8463,7 +8463,7 @@ class ParagonPathfinder extends AdapterBaseCl {
8463
8463
  const queryParamsAvailable = {};
8464
8464
  const queryParams = {};
8465
8465
  const pathVars = [topologyId];
8466
- const bodyVars = { body };
8466
+ const bodyVars = body;
8467
8467
 
8468
8468
  // loop in template. long callback arg name to avoid identifier conflicts
8469
8469
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -8722,7 +8722,7 @@ class ParagonPathfinder extends AdapterBaseCl {
8722
8722
  const queryParamsAvailable = {};
8723
8723
  const queryParams = {};
8724
8724
  const pathVars = [topologyId, facilityIndex];
8725
- const bodyVars = { body };
8725
+ const bodyVars = body;
8726
8726
 
8727
8727
  // loop in template. long callback arg name to avoid identifier conflicts
8728
8728
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -8975,7 +8975,7 @@ class ParagonPathfinder extends AdapterBaseCl {
8975
8975
  const queryParamsAvailable = {};
8976
8976
  const queryParams = {};
8977
8977
  const pathVars = [topologyId];
8978
- const bodyVars = { body };
8978
+ const bodyVars = body;
8979
8979
 
8980
8980
  // loop in template. long callback arg name to avoid identifier conflicts
8981
8981
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -9234,7 +9234,7 @@ class ParagonPathfinder extends AdapterBaseCl {
9234
9234
  const queryParamsAvailable = {};
9235
9235
  const queryParams = {};
9236
9236
  const pathVars = [topologyId, containerIndex];
9237
- const bodyVars = { body };
9237
+ const bodyVars = body;
9238
9238
 
9239
9239
  // loop in template. long callback arg name to avoid identifier conflicts
9240
9240
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -9494,7 +9494,7 @@ class ParagonPathfinder extends AdapterBaseCl {
9494
9494
  const queryParamsAvailable = {};
9495
9495
  const queryParams = {};
9496
9496
  const pathVars = [topologyId];
9497
- const bodyVars = { body };
9497
+ const bodyVars = body;
9498
9498
 
9499
9499
  // loop in template. long callback arg name to avoid identifier conflicts
9500
9500
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -9995,7 +9995,7 @@ class ParagonPathfinder extends AdapterBaseCl {
9995
9995
  const queryParamsAvailable = {};
9996
9996
  const queryParams = {};
9997
9997
  const pathVars = [topologyId];
9998
- const bodyVars = { body };
9998
+ const bodyVars = body;
9999
9999
 
10000
10000
  // loop in template. long callback arg name to avoid identifier conflicts
10001
10001
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -10072,7 +10072,7 @@ class ParagonPathfinder extends AdapterBaseCl {
10072
10072
  const queryParamsAvailable = {};
10073
10073
  const queryParams = {};
10074
10074
  const pathVars = [];
10075
- const bodyVars = { body };
10075
+ const bodyVars = body;
10076
10076
 
10077
10077
  // loop in template. long callback arg name to avoid identifier conflicts
10078
10078
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -10225,7 +10225,7 @@ class ParagonPathfinder extends AdapterBaseCl {
10225
10225
  const queryParamsAvailable = {};
10226
10226
  const queryParams = {};
10227
10227
  const pathVars = [];
10228
- const bodyVars = { body };
10228
+ const bodyVars = body;
10229
10229
 
10230
10230
  // loop in template. long callback arg name to avoid identifier conflicts
10231
10231
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -10548,7 +10548,7 @@ class ParagonPathfinder extends AdapterBaseCl {
10548
10548
  const queryParamsAvailable = {};
10549
10549
  const queryParams = {};
10550
10550
  const pathVars = [];
10551
- const bodyVars = { body };
10551
+ const bodyVars = body;
10552
10552
 
10553
10553
  // loop in template. long callback arg name to avoid identifier conflicts
10554
10554
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -10935,7 +10935,7 @@ class ParagonPathfinder extends AdapterBaseCl {
10935
10935
  const queryParamsAvailable = {};
10936
10936
  const queryParams = {};
10937
10937
  const pathVars = [];
10938
- const bodyVars = { body };
10938
+ const bodyVars = body;
10939
10939
 
10940
10940
  // loop in template. long callback arg name to avoid identifier conflicts
10941
10941
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -11012,7 +11012,7 @@ class ParagonPathfinder extends AdapterBaseCl {
11012
11012
  const queryParamsAvailable = {};
11013
11013
  const queryParams = {};
11014
11014
  const pathVars = [];
11015
- const bodyVars = { body };
11015
+ const bodyVars = body;
11016
11016
 
11017
11017
  // loop in template. long callback arg name to avoid identifier conflicts
11018
11018
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -11089,7 +11089,7 @@ class ParagonPathfinder extends AdapterBaseCl {
11089
11089
  const queryParamsAvailable = {};
11090
11090
  const queryParams = {};
11091
11091
  const pathVars = [];
11092
- const bodyVars = { body };
11092
+ const bodyVars = body;
11093
11093
 
11094
11094
  // loop in template. long callback arg name to avoid identifier conflicts
11095
11095
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -11407,7 +11407,7 @@ class ParagonPathfinder extends AdapterBaseCl {
11407
11407
  const queryParamsAvailable = {};
11408
11408
  const queryParams = {};
11409
11409
  const pathVars = [];
11410
- const bodyVars = { body };
11410
+ const bodyVars = body;
11411
11411
 
11412
11412
  // loop in template. long callback arg name to avoid identifier conflicts
11413
11413
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -11484,7 +11484,7 @@ class ParagonPathfinder extends AdapterBaseCl {
11484
11484
  const queryParamsAvailable = {};
11485
11485
  const queryParams = {};
11486
11486
  const pathVars = [];
11487
- const bodyVars = { body };
11487
+ const bodyVars = body;
11488
11488
 
11489
11489
  // loop in template. long callback arg name to avoid identifier conflicts
11490
11490
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -11713,7 +11713,7 @@ class ParagonPathfinder extends AdapterBaseCl {
11713
11713
  const queryParamsAvailable = {};
11714
11714
  const queryParams = {};
11715
11715
  const pathVars = [];
11716
- const bodyVars = { body };
11716
+ const bodyVars = body;
11717
11717
 
11718
11718
  // loop in template. long callback arg name to avoid identifier conflicts
11719
11719
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -11878,7 +11878,7 @@ class ParagonPathfinder extends AdapterBaseCl {
11878
11878
  const queryParamsAvailable = {};
11879
11879
  const queryParams = {};
11880
11880
  const pathVars = [transportControllerIndex];
11881
- const bodyVars = { body };
11881
+ const bodyVars = body;
11882
11882
 
11883
11883
  // loop in template. long callback arg name to avoid identifier conflicts
11884
11884
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -12902,7 +12902,7 @@ class ParagonPathfinder extends AdapterBaseCl {
12902
12902
  const queryParamsAvailable = {};
12903
12903
  const queryParams = {};
12904
12904
  const pathVars = [];
12905
- const bodyVars = { body };
12905
+ const bodyVars = body;
12906
12906
 
12907
12907
  // loop in template. long callback arg name to avoid identifier conflicts
12908
12908
  Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
@@ -29,7 +29,7 @@
29
29
  "name": "MFA_Step_1",
30
30
  "protocol": "REST",
31
31
  "method": "POST",
32
- "entitypath": "{base_path}/{version}/iam/authenticate",
32
+ "entitypath": "/iam/authenticate",
33
33
  "requestSchema": "schemaTokenReq_MFA_Step_1.json",
34
34
  "responseSchema": "schemaTokenResp_MFA_Step_1.json",
35
35
  "timeout": 0,
@@ -49,7 +49,7 @@
49
49
  "name": "MFA_Step_2",
50
50
  "protocol": "REST",
51
51
  "method": "POST",
52
- "entitypath": "{base_path}/{version}/iam/authenticate",
52
+ "entitypath": "/iam/authenticate",
53
53
  "requestSchema": "schemaTokenReq_MFA_Step_2.json",
54
54
  "responseSchema": "schemaTokenResp_MFA_Step_2.json",
55
55
  "timeout": 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-paragon_pathfinder",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "This adapter integrates with paragon pathfinder",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.15",
@@ -63,7 +63,7 @@
63
63
  "json-query": "^2.2.2",
64
64
  "mocha": "^9.0.1",
65
65
  "mocha-param": "^2.0.1",
66
- "mongodb": "^4.1.0",
66
+ "mongodb": "^5.6.0",
67
67
  "network-diagnostics": "^0.5.3",
68
68
  "nyc": "^15.1.0",
69
69
  "prompts": "^2.4.2",
Binary file
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "1.2.0",
3
- "configLines": 30382,
2
+ "version": "1.2.6",
3
+ "configLines": 30415,
4
4
  "scriptLines": 1795,
5
- "codeLines": 14895,
6
- "testLines": 14443,
5
+ "codeLines": 14898,
6
+ "testLines": 14445,
7
7
  "testCases": 584,
8
- "totalCodeLines": 31133,
8
+ "totalCodeLines": 31138,
9
9
  "wfTasks": 164
10
10
  }