contentful 11.7.19 → 11.8.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.
@@ -10480,9 +10480,6 @@ var contentful = (function (exports) {
10480
10480
  function internalGetConcepts() {
10481
10481
  return _internalGetConcepts.apply(this, arguments);
10482
10482
  }
10483
- /*
10484
- * Switches BaseURL to use /environments path
10485
- * */
10486
10483
  function _internalGetConcepts() {
10487
10484
  _internalGetConcepts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {
10488
10485
  var query,
@@ -10511,11 +10508,84 @@ var contentful = (function (exports) {
10511
10508
  }));
10512
10509
  return _internalGetConcepts.apply(this, arguments);
10513
10510
  }
10511
+ function getConceptAncestors(id) {
10512
+ var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10513
+ return internalGetConceptAncestors(id, query);
10514
+ }
10515
+ function internalGetConceptAncestors(_x27) {
10516
+ return _internalGetConceptAncestors.apply(this, arguments);
10517
+ }
10518
+ function _internalGetConceptAncestors() {
10519
+ _internalGetConceptAncestors = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(id) {
10520
+ var query,
10521
+ _args28 = arguments;
10522
+ return _regeneratorRuntime.wrap(function _callee28$(_context28) {
10523
+ while (1) switch (_context28.prev = _context28.next) {
10524
+ case 0:
10525
+ query = _args28.length > 1 && _args28[1] !== undefined ? _args28[1] : {};
10526
+ _context28.prev = 1;
10527
+ return _context28.abrupt("return", get({
10528
+ context: 'environment',
10529
+ path: "taxonomy/concepts/".concat(id, "/ancestors"),
10530
+ config: createRequestConfig({
10531
+ query: normalizeSearchParameters(normalizeSelect(query))
10532
+ })
10533
+ }));
10534
+ case 5:
10535
+ _context28.prev = 5;
10536
+ _context28.t0 = _context28["catch"](1);
10537
+ errorHandler(_context28.t0);
10538
+ case 8:
10539
+ case "end":
10540
+ return _context28.stop();
10541
+ }
10542
+ }, _callee28, null, [[1, 5]]);
10543
+ }));
10544
+ return _internalGetConceptAncestors.apply(this, arguments);
10545
+ }
10546
+ function getConceptDescendants(id) {
10547
+ var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10548
+ return internalGetConceptDescendants(id, query);
10549
+ }
10550
+ function internalGetConceptDescendants(_x28) {
10551
+ return _internalGetConceptDescendants.apply(this, arguments);
10552
+ }
10553
+ /*
10554
+ * Switches BaseURL to use /environments path
10555
+ * */
10556
+ function _internalGetConceptDescendants() {
10557
+ _internalGetConceptDescendants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(id) {
10558
+ var query,
10559
+ _args29 = arguments;
10560
+ return _regeneratorRuntime.wrap(function _callee29$(_context29) {
10561
+ while (1) switch (_context29.prev = _context29.next) {
10562
+ case 0:
10563
+ query = _args29.length > 1 && _args29[1] !== undefined ? _args29[1] : {};
10564
+ _context29.prev = 1;
10565
+ return _context29.abrupt("return", get({
10566
+ context: 'environment',
10567
+ path: "taxonomy/concepts/".concat(id, "/descendants"),
10568
+ config: createRequestConfig({
10569
+ query: normalizeSearchParameters(normalizeSelect(query))
10570
+ })
10571
+ }));
10572
+ case 5:
10573
+ _context29.prev = 5;
10574
+ _context29.t0 = _context29["catch"](1);
10575
+ errorHandler(_context29.t0);
10576
+ case 8:
10577
+ case "end":
10578
+ return _context29.stop();
10579
+ }
10580
+ }, _callee29, null, [[1, 5]]);
10581
+ }));
10582
+ return _internalGetConceptDescendants.apply(this, arguments);
10583
+ }
10514
10584
  function switchToEnvironment(http) {
10515
10585
  http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
10516
10586
  }
10517
10587
  return {
10518
- version: "11.7.19",
10588
+ version: "11.8.0",
10519
10589
  getSpace: getSpace,
10520
10590
  getContentType: getContentType,
10521
10591
  getContentTypes: getContentTypes,
@@ -10532,6 +10602,8 @@ var contentful = (function (exports) {
10532
10602
  getConceptSchemes: getConceptSchemes,
10533
10603
  getConcept: getConcept,
10534
10604
  getConcepts: getConcepts,
10605
+ getConceptAncestors: getConceptAncestors,
10606
+ getConceptDescendants: getConceptDescendants,
10535
10607
  createAssetKey: createAssetKey
10536
10608
  };
10537
10609
  }
@@ -10642,7 +10714,7 @@ var contentful = (function (exports) {
10642
10714
  environment: 'master'
10643
10715
  };
10644
10716
  var config = Object.assign(Object.assign({}, defaultConfig), params);
10645
- var userAgentHeader = getUserAgentHeader("contentful.js/".concat("11.7.19"), config.application, config.integration);
10717
+ var userAgentHeader = getUserAgentHeader("contentful.js/".concat("11.8.0"), config.application, config.integration);
10646
10718
  config.headers = Object.assign(Object.assign({}, config.headers), {
10647
10719
  'Content-Type': 'application/vnd.contentful.delivery.v1+json',
10648
10720
  'X-Contentful-User-Agent': userAgentHeader