@itentialopensource/adapter-paragon_pathfinder 1.2.3 → 1.2.5

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/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 1.2.5 [05-25-2023]
3
+
4
+ * Patch/add query params
5
+
6
+ See merge request itentialopensource/adapters/controller-orchestrator/adapter-paragon_pathfinder!9
7
+
8
+ ---
9
+
10
+ ## 1.2.4 [04-27-2023]
11
+
12
+ * Patch/add msa
13
+
14
+ See merge request itentialopensource/adapters/controller-orchestrator/adapter-paragon_pathfinder!7
15
+
16
+ ---
17
+
2
18
  ## 1.2.3 [04-27-2023]
3
19
 
4
20
  * Patch/add msa
package/adapter.js CHANGED
@@ -1909,6 +1909,7 @@ class ParagonPathfinder extends AdapterBaseCl {
1909
1909
  * @summary Search Nodes
1910
1910
  *
1911
1911
  * @param {number} topologyId - A unique identifier for the topology. In Paragon PathFinder version 2, the unique identifier is set to 1. \n \n
1912
+ * @param {Object} queryData - the parameters to be put on the url (optional).
1912
1913
  * @param {getCallback} callback - a callback function to return the result
1913
1914
  * @return {object} results - An object containing the response of the action
1914
1915
  *
@@ -1917,7 +1918,7 @@ class ParagonPathfinder extends AdapterBaseCl {
1917
1918
  * @task true
1918
1919
  */
1919
1920
  /* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
1920
- getTopologyV2TopologyIdNodesSearch(topologyId, callback) {
1921
+ getTopologyV2TopologyIdNodesSearch(topologyId, queryData, callback) {
1921
1922
  const meth = 'adapter-getTopologyV2TopologyIdNodesSearch';
1922
1923
  const origin = `${this.id}-${meth}`;
1923
1924
  log.trace(origin);
@@ -1936,7 +1937,7 @@ class ParagonPathfinder extends AdapterBaseCl {
1936
1937
  }
1937
1938
 
1938
1939
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
1939
- const queryParamsAvailable = {};
1940
+ const queryParamsAvailable = queryData;
1940
1941
  const queryParams = {};
1941
1942
  const pathVars = [topologyId];
1942
1943
  const bodyVars = {};
@@ -3439,6 +3440,7 @@ class ParagonPathfinder extends AdapterBaseCl {
3439
3440
  * @summary Search Links
3440
3441
  *
3441
3442
  * @param {number} topologyId - A unique identifier for the topology. In Paragon PathFinder version 2, the unique identifier is set to 1. \n \n
3443
+ * @param {Object} queryData - the parameters to be put on the url (optional).
3442
3444
  * @param {getCallback} callback - a callback function to return the result
3443
3445
  * @return {object} results - An object containing the response of the action
3444
3446
  *
@@ -3447,7 +3449,7 @@ class ParagonPathfinder extends AdapterBaseCl {
3447
3449
  * @task true
3448
3450
  */
3449
3451
  /* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
3450
- getTopologyV2TopologyIdLinksSearch(topologyId, callback) {
3452
+ getTopologyV2TopologyIdLinksSearch(topologyId, queryData, callback) {
3451
3453
  const meth = 'adapter-getTopologyV2TopologyIdLinksSearch';
3452
3454
  const origin = `${this.id}-${meth}`;
3453
3455
  log.trace(origin);
@@ -3466,7 +3468,7 @@ class ParagonPathfinder extends AdapterBaseCl {
3466
3468
  }
3467
3469
 
3468
3470
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
3469
- const queryParamsAvailable = {};
3471
+ const queryParamsAvailable = queryData;
3470
3472
  const queryParams = {};
3471
3473
  const pathVars = [topologyId];
3472
3474
  const bodyVars = {};
@@ -4748,6 +4750,7 @@ class ParagonPathfinder extends AdapterBaseCl {
4748
4750
  * @summary Search LSPs
4749
4751
  *
4750
4752
  * @param {number} topologyId - A unique identifier for the topology. In Paragon PathFinder version 2, the unique identifier is set to 1. \n \n
4753
+ * @param {Object} queryData - the parameters to be put on the url (optional).
4751
4754
  * @param {getCallback} callback - a callback function to return the result
4752
4755
  * @return {object} results - An object containing the response of the action
4753
4756
  *
@@ -4756,7 +4759,7 @@ class ParagonPathfinder extends AdapterBaseCl {
4756
4759
  * @task true
4757
4760
  */
4758
4761
  /* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
4759
- getTopologyV2TopologyIdTeLspsSearch(topologyId, callback) {
4762
+ getTopologyV2TopologyIdTeLspsSearch(topologyId, queryData, callback) {
4760
4763
  const meth = 'adapter-getTopologyV2TopologyIdTeLspsSearch';
4761
4764
  const origin = `${this.id}-${meth}`;
4762
4765
  log.trace(origin);
@@ -4775,7 +4778,7 @@ class ParagonPathfinder extends AdapterBaseCl {
4775
4778
  }
4776
4779
 
4777
4780
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
4778
- const queryParamsAvailable = {};
4781
+ const queryParamsAvailable = queryData;
4779
4782
  const queryParams = {};
4780
4783
  const pathVars = [topologyId];
4781
4784
  const bodyVars = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-paragon_pathfinder",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "description": "This adapter integrates with paragon pathfinder",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.15",
package/pronghorn.json CHANGED
@@ -1572,6 +1572,17 @@
1572
1572
  "title": "topologyId",
1573
1573
  "type": "number"
1574
1574
  }
1575
+ },
1576
+ {
1577
+ "name": "queryData",
1578
+ "type": "object",
1579
+ "info": "the query parameters to be put on the url (optional)",
1580
+ "description": "the query parameters to be put on the url (optional)",
1581
+ "schema": {
1582
+ "title": "queryData",
1583
+ "type": "object"
1584
+ },
1585
+ "required": false
1575
1586
  }
1576
1587
  ],
1577
1588
  "output": {
@@ -7760,6 +7771,17 @@
7760
7771
  "title": "topologyId",
7761
7772
  "type": "number"
7762
7773
  }
7774
+ },
7775
+ {
7776
+ "name": "queryData",
7777
+ "type": "object",
7778
+ "info": "the query parameters to be put on the url (optional)",
7779
+ "description": "the query parameters to be put on the url (optional)",
7780
+ "schema": {
7781
+ "title": "queryData",
7782
+ "type": "object"
7783
+ },
7784
+ "required": false
7763
7785
  }
7764
7786
  ],
7765
7787
  "output": {
@@ -18752,6 +18774,17 @@
18752
18774
  "title": "topologyId",
18753
18775
  "type": "number"
18754
18776
  }
18777
+ },
18778
+ {
18779
+ "name": "queryData",
18780
+ "type": "object",
18781
+ "info": "the query parameters to be put on the url (optional)",
18782
+ "description": "the query parameters to be put on the url (optional)",
18783
+ "schema": {
18784
+ "title": "queryData",
18785
+ "type": "object"
18786
+ },
18787
+ "required": false
18755
18788
  }
18756
18789
  ],
18757
18790
  "output": {
@@ -122,7 +122,8 @@
122
122
  "static_token",
123
123
  "jwt_token",
124
124
  "request_token",
125
- "no_authentication"
125
+ "no_authentication",
126
+ "multi_step_authentication"
126
127
  ]
127
128
  },
128
129
  "username": {
@@ -1243,4 +1244,4 @@
1243
1244
  }
1244
1245
  }
1245
1246
  }
1246
- }
1247
+ }
Binary file
@@ -676,7 +676,7 @@ describe('[integration] Paragon_pathfinder Adapter Test', () => {
676
676
  describe('#getTopologyV2TopologyIdNodesSearch - errors', () => {
677
677
  it('should work if integrated but since no mockdata should error when run standalone', (done) => {
678
678
  try {
679
- a.getTopologyV2TopologyIdNodesSearch(555, (data, error) => {
679
+ a.getTopologyV2TopologyIdNodesSearch(555, {}, (data, error) => {
680
680
  try {
681
681
  if (stub) {
682
682
  const displayE = 'Error 400 received on request';
@@ -1687,7 +1687,7 @@ describe('[integration] Paragon_pathfinder Adapter Test', () => {
1687
1687
  describe('#getTopologyV2TopologyIdLinksSearch - errors', () => {
1688
1688
  it('should work if integrated but since no mockdata should error when run standalone', (done) => {
1689
1689
  try {
1690
- a.getTopologyV2TopologyIdLinksSearch(555, (data, error) => {
1690
+ a.getTopologyV2TopologyIdLinksSearch(555, {}, (data, error) => {
1691
1691
  try {
1692
1692
  if (stub) {
1693
1693
  const displayE = 'Error 400 received on request';
@@ -2111,7 +2111,7 @@ describe('[integration] Paragon_pathfinder Adapter Test', () => {
2111
2111
  describe('#getTopologyV2TopologyIdTeLspsSearch - errors', () => {
2112
2112
  it('should work if integrated but since no mockdata should error when run standalone', (done) => {
2113
2113
  try {
2114
- a.getTopologyV2TopologyIdTeLspsSearch(555, (data, error) => {
2114
+ a.getTopologyV2TopologyIdTeLspsSearch(555, {}, (data, error) => {
2115
2115
  try {
2116
2116
  if (stub) {
2117
2117
  const displayE = 'Error 400 received on request';
@@ -1680,7 +1680,7 @@ describe('[unit] Paragon_pathfinder Adapter Test', () => {
1680
1680
  }).timeout(attemptTimeout);
1681
1681
  it('should error if - missing topologyId', (done) => {
1682
1682
  try {
1683
- a.getTopologyV2TopologyIdNodesSearch(null, (data, error) => {
1683
+ a.getTopologyV2TopologyIdNodesSearch(null, null, (data, error) => {
1684
1684
  try {
1685
1685
  const displayE = 'topologyId is required';
1686
1686
  runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodesSearch', displayE);
@@ -2338,7 +2338,7 @@ describe('[unit] Paragon_pathfinder Adapter Test', () => {
2338
2338
  }).timeout(attemptTimeout);
2339
2339
  it('should error if - missing topologyId', (done) => {
2340
2340
  try {
2341
- a.getTopologyV2TopologyIdLinksSearch(null, (data, error) => {
2341
+ a.getTopologyV2TopologyIdLinksSearch(null, null, (data, error) => {
2342
2342
  try {
2343
2343
  const displayE = 'topologyId is required';
2344
2344
  runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksSearch', displayE);
@@ -2977,7 +2977,7 @@ describe('[unit] Paragon_pathfinder Adapter Test', () => {
2977
2977
  }).timeout(attemptTimeout);
2978
2978
  it('should error if - missing topologyId', (done) => {
2979
2979
  try {
2980
- a.getTopologyV2TopologyIdTeLspsSearch(null, (data, error) => {
2980
+ a.getTopologyV2TopologyIdTeLspsSearch(null, null, (data, error) => {
2981
2981
  try {
2982
2982
  const displayE = 'topologyId is required';
2983
2983
  runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdTeLspsSearch', displayE);