@elasticpath/js-sdk 33.7.0 → 33.7.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/dist/index.cjs.js CHANGED
@@ -530,7 +530,7 @@ if (!globalThis.fetch) {
530
530
  globalThis.Response = fetch$1.Response;
531
531
  }
532
532
 
533
- var version = "33.7.0";
533
+ var version = "33.7.1";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
@@ -3532,15 +3532,18 @@ var NodesEndpoint = /*#__PURE__*/function () {
3532
3532
  config.version = 'pcm';
3533
3533
  this.endpoint = 'nodes';
3534
3534
  }
3535
-
3536
- // TODO: API - currently not working! (can get from hierarchy relationships)
3537
3535
  _createClass(NodesEndpoint, [{
3538
3536
  key: "All",
3539
3537
  value: function All(_ref) {
3540
3538
  var hierarchyId = _ref.hierarchyId,
3541
3539
  _ref$token = _ref.token,
3542
3540
  token = _ref$token === void 0 ? null : _ref$token;
3543
- return this.request.send("hierarchies/".concat(hierarchyId, "/").concat(this.endpoint), 'GET', undefined, token);
3541
+ var limit = this.limit,
3542
+ offset = this.offset;
3543
+ return this.request.send(buildURL("hierarchies/".concat(hierarchyId, "/").concat(this.endpoint), {
3544
+ limit: limit,
3545
+ offset: offset
3546
+ }), 'GET', undefined, token);
3544
3547
  }
3545
3548
  }, {
3546
3549
  key: "Get",
@@ -5161,7 +5164,12 @@ var Nodes$1 = /*#__PURE__*/function (_CRUDExtend) {
5161
5164
  value: function All(_ref) {
5162
5165
  var _ref$token = _ref.token,
5163
5166
  token = _ref$token === void 0 ? null : _ref$token;
5164
- return this.request.send("catalogs/".concat(this.endpoint), 'GET', undefined, token);
5167
+ var limit = this.limit,
5168
+ offset = this.offset;
5169
+ return this.request.send(buildURL("catalogs/".concat(this.endpoint), {
5170
+ limit: limit,
5171
+ offset: offset
5172
+ }), 'GET', undefined, token);
5165
5173
  }
5166
5174
  }, {
5167
5175
  key: "Get",
@@ -5715,7 +5723,12 @@ var Hierarchies = /*#__PURE__*/function (_ShopperCatalogQuery3) {
5715
5723
  token = _ref5$token === void 0 ? null : _ref5$token,
5716
5724
  _ref5$additionalHeade = _ref5.additionalHeaders,
5717
5725
  additionalHeaders = _ref5$additionalHeade === void 0 ? null : _ref5$additionalHeade;
5718
- return this.request.send("catalog/".concat(this.endpoint), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5726
+ var limit = this.limit,
5727
+ offset = this.offset;
5728
+ return this.request.send(buildURL("catalog/".concat(this.endpoint), {
5729
+ limit: limit,
5730
+ offset: offset
5731
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5719
5732
  }
5720
5733
  }, {
5721
5734
  key: "Get",
@@ -5735,7 +5748,12 @@ var Hierarchies = /*#__PURE__*/function (_ShopperCatalogQuery3) {
5735
5748
  token = _ref7$token === void 0 ? null : _ref7$token,
5736
5749
  _ref7$additionalHeade = _ref7.additionalHeaders,
5737
5750
  additionalHeaders = _ref7$additionalHeade === void 0 ? null : _ref7$additionalHeade;
5738
- return this.request.send("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/children"), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5751
+ var limit = this.limit,
5752
+ offset = this.offset;
5753
+ return this.request.send(buildURL("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/children"), {
5754
+ limit: limit,
5755
+ offset: offset
5756
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5739
5757
  }
5740
5758
  }, {
5741
5759
  key: "GetHierarchyNodes",
@@ -5746,7 +5764,12 @@ var Hierarchies = /*#__PURE__*/function (_ShopperCatalogQuery3) {
5746
5764
  token = _ref8$token === void 0 ? null : _ref8$token,
5747
5765
  _ref8$additionalHeade = _ref8.additionalHeaders,
5748
5766
  additionalHeaders = _ref8$additionalHeade === void 0 ? null : _ref8$additionalHeade;
5749
- return this.request.send("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/nodes"), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5767
+ var limit = this.limit,
5768
+ offset = this.offset;
5769
+ return this.request.send(buildURL("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/nodes"), {
5770
+ limit: limit,
5771
+ offset: offset
5772
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5750
5773
  }
5751
5774
  }]);
5752
5775
  return Hierarchies;
package/dist/index.d.ts CHANGED
@@ -1163,7 +1163,6 @@ interface NodesEndpoint {
1163
1163
  token?: string
1164
1164
  }): Promise<Resource<Node>>
1165
1165
 
1166
- // TODO: API - currently not working! (can get from hierarchy relationships)
1167
1166
  All(options: {
1168
1167
  hierarchyId: string
1169
1168
  token?: string
package/dist/index.esm.js CHANGED
@@ -519,7 +519,7 @@ if (!globalThis.fetch) {
519
519
  globalThis.Response = Response;
520
520
  }
521
521
 
522
- var version = "33.7.0";
522
+ var version = "33.7.1";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
@@ -3521,15 +3521,18 @@ var NodesEndpoint = /*#__PURE__*/function () {
3521
3521
  config.version = 'pcm';
3522
3522
  this.endpoint = 'nodes';
3523
3523
  }
3524
-
3525
- // TODO: API - currently not working! (can get from hierarchy relationships)
3526
3524
  _createClass(NodesEndpoint, [{
3527
3525
  key: "All",
3528
3526
  value: function All(_ref) {
3529
3527
  var hierarchyId = _ref.hierarchyId,
3530
3528
  _ref$token = _ref.token,
3531
3529
  token = _ref$token === void 0 ? null : _ref$token;
3532
- return this.request.send("hierarchies/".concat(hierarchyId, "/").concat(this.endpoint), 'GET', undefined, token);
3530
+ var limit = this.limit,
3531
+ offset = this.offset;
3532
+ return this.request.send(buildURL("hierarchies/".concat(hierarchyId, "/").concat(this.endpoint), {
3533
+ limit: limit,
3534
+ offset: offset
3535
+ }), 'GET', undefined, token);
3533
3536
  }
3534
3537
  }, {
3535
3538
  key: "Get",
@@ -5150,7 +5153,12 @@ var Nodes$1 = /*#__PURE__*/function (_CRUDExtend) {
5150
5153
  value: function All(_ref) {
5151
5154
  var _ref$token = _ref.token,
5152
5155
  token = _ref$token === void 0 ? null : _ref$token;
5153
- return this.request.send("catalogs/".concat(this.endpoint), 'GET', undefined, token);
5156
+ var limit = this.limit,
5157
+ offset = this.offset;
5158
+ return this.request.send(buildURL("catalogs/".concat(this.endpoint), {
5159
+ limit: limit,
5160
+ offset: offset
5161
+ }), 'GET', undefined, token);
5154
5162
  }
5155
5163
  }, {
5156
5164
  key: "Get",
@@ -5704,7 +5712,12 @@ var Hierarchies = /*#__PURE__*/function (_ShopperCatalogQuery3) {
5704
5712
  token = _ref5$token === void 0 ? null : _ref5$token,
5705
5713
  _ref5$additionalHeade = _ref5.additionalHeaders,
5706
5714
  additionalHeaders = _ref5$additionalHeade === void 0 ? null : _ref5$additionalHeade;
5707
- return this.request.send("catalog/".concat(this.endpoint), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5715
+ var limit = this.limit,
5716
+ offset = this.offset;
5717
+ return this.request.send(buildURL("catalog/".concat(this.endpoint), {
5718
+ limit: limit,
5719
+ offset: offset
5720
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5708
5721
  }
5709
5722
  }, {
5710
5723
  key: "Get",
@@ -5724,7 +5737,12 @@ var Hierarchies = /*#__PURE__*/function (_ShopperCatalogQuery3) {
5724
5737
  token = _ref7$token === void 0 ? null : _ref7$token,
5725
5738
  _ref7$additionalHeade = _ref7.additionalHeaders,
5726
5739
  additionalHeaders = _ref7$additionalHeade === void 0 ? null : _ref7$additionalHeade;
5727
- return this.request.send("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/children"), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5740
+ var limit = this.limit,
5741
+ offset = this.offset;
5742
+ return this.request.send(buildURL("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/children"), {
5743
+ limit: limit,
5744
+ offset: offset
5745
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5728
5746
  }
5729
5747
  }, {
5730
5748
  key: "GetHierarchyNodes",
@@ -5735,7 +5753,12 @@ var Hierarchies = /*#__PURE__*/function (_ShopperCatalogQuery3) {
5735
5753
  token = _ref8$token === void 0 ? null : _ref8$token,
5736
5754
  _ref8$additionalHeade = _ref8.additionalHeaders,
5737
5755
  additionalHeaders = _ref8$additionalHeade === void 0 ? null : _ref8$additionalHeade;
5738
- return this.request.send("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/nodes"), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5756
+ var limit = this.limit,
5757
+ offset = this.offset;
5758
+ return this.request.send(buildURL("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/nodes"), {
5759
+ limit: limit,
5760
+ offset: offset
5761
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
5739
5762
  }
5740
5763
  }]);
5741
5764
  return Hierarchies;
package/dist/index.js CHANGED
@@ -1085,7 +1085,7 @@
1085
1085
  globalThis.Response = browserPonyfill.exports.Response;
1086
1086
  }
1087
1087
 
1088
- var version = "33.7.0";
1088
+ var version = "33.7.1";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
@@ -4693,15 +4693,18 @@
4693
4693
  config.version = 'pcm';
4694
4694
  this.endpoint = 'nodes';
4695
4695
  }
4696
-
4697
- // TODO: API - currently not working! (can get from hierarchy relationships)
4698
4696
  _createClass(NodesEndpoint, [{
4699
4697
  key: "All",
4700
4698
  value: function All(_ref) {
4701
4699
  var hierarchyId = _ref.hierarchyId,
4702
4700
  _ref$token = _ref.token,
4703
4701
  token = _ref$token === void 0 ? null : _ref$token;
4704
- return this.request.send("hierarchies/".concat(hierarchyId, "/").concat(this.endpoint), 'GET', undefined, token);
4702
+ var limit = this.limit,
4703
+ offset = this.offset;
4704
+ return this.request.send(buildURL("hierarchies/".concat(hierarchyId, "/").concat(this.endpoint), {
4705
+ limit: limit,
4706
+ offset: offset
4707
+ }), 'GET', undefined, token);
4705
4708
  }
4706
4709
  }, {
4707
4710
  key: "Get",
@@ -6322,7 +6325,12 @@
6322
6325
  value: function All(_ref) {
6323
6326
  var _ref$token = _ref.token,
6324
6327
  token = _ref$token === void 0 ? null : _ref$token;
6325
- return this.request.send("catalogs/".concat(this.endpoint), 'GET', undefined, token);
6328
+ var limit = this.limit,
6329
+ offset = this.offset;
6330
+ return this.request.send(buildURL("catalogs/".concat(this.endpoint), {
6331
+ limit: limit,
6332
+ offset: offset
6333
+ }), 'GET', undefined, token);
6326
6334
  }
6327
6335
  }, {
6328
6336
  key: "Get",
@@ -6876,7 +6884,12 @@
6876
6884
  token = _ref5$token === void 0 ? null : _ref5$token,
6877
6885
  _ref5$additionalHeade = _ref5.additionalHeaders,
6878
6886
  additionalHeaders = _ref5$additionalHeade === void 0 ? null : _ref5$additionalHeade;
6879
- return this.request.send("catalog/".concat(this.endpoint), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
6887
+ var limit = this.limit,
6888
+ offset = this.offset;
6889
+ return this.request.send(buildURL("catalog/".concat(this.endpoint), {
6890
+ limit: limit,
6891
+ offset: offset
6892
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
6880
6893
  }
6881
6894
  }, {
6882
6895
  key: "Get",
@@ -6896,7 +6909,12 @@
6896
6909
  token = _ref7$token === void 0 ? null : _ref7$token,
6897
6910
  _ref7$additionalHeade = _ref7.additionalHeaders,
6898
6911
  additionalHeaders = _ref7$additionalHeade === void 0 ? null : _ref7$additionalHeade;
6899
- return this.request.send("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/children"), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
6912
+ var limit = this.limit,
6913
+ offset = this.offset;
6914
+ return this.request.send(buildURL("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/children"), {
6915
+ limit: limit,
6916
+ offset: offset
6917
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
6900
6918
  }
6901
6919
  }, {
6902
6920
  key: "GetHierarchyNodes",
@@ -6907,7 +6925,12 @@
6907
6925
  token = _ref8$token === void 0 ? null : _ref8$token,
6908
6926
  _ref8$additionalHeade = _ref8.additionalHeaders,
6909
6927
  additionalHeaders = _ref8$additionalHeade === void 0 ? null : _ref8$additionalHeade;
6910
- return this.request.send("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/nodes"), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
6928
+ var limit = this.limit,
6929
+ offset = this.offset;
6930
+ return this.request.send(buildURL("catalog/".concat(this.endpoint, "/").concat(hierarchyId, "/nodes"), {
6931
+ limit: limit,
6932
+ offset: offset
6933
+ }), 'GET', undefined, token, undefined, false, undefined, additionalHeaders);
6911
6934
  }
6912
6935
  }]);
6913
6936
  return Hierarchies;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elasticpath/js-sdk",
3
3
  "description": "SDK for the Elastic Path eCommerce API",
4
- "version": "33.7.0",
4
+ "version": "33.7.1",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [