contentful 11.2.5 → 11.3.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.
@@ -3589,7 +3589,7 @@ var contentful = (function (exports) {
3589
3589
  return Promise.reject(reason);
3590
3590
  });
3591
3591
  }
3592
- var VERSION = "1.7.8";
3592
+ var VERSION = "1.7.9";
3593
3593
  var validators$1 = {};
3594
3594
 
3595
3595
  // eslint-disable-next-line func-names
@@ -9923,14 +9923,154 @@ var contentful = (function (exports) {
9923
9923
  removeUnresolved: withoutUnresolvableLinks !== null && withoutUnresolvableLinks !== void 0 ? withoutUnresolvableLinks : false
9924
9924
  });
9925
9925
  }
9926
+ function getConceptScheme(id) {
9927
+ var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9928
+ return internalGetConceptScheme(id, query);
9929
+ }
9930
+ function internalGetConceptScheme(_x25) {
9931
+ return _internalGetConceptScheme.apply(this, arguments);
9932
+ }
9933
+ function _internalGetConceptScheme() {
9934
+ _internalGetConceptScheme = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(id) {
9935
+ var query,
9936
+ _args24 = arguments;
9937
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
9938
+ while (1) switch (_context24.prev = _context24.next) {
9939
+ case 0:
9940
+ query = _args24.length > 1 && _args24[1] !== undefined ? _args24[1] : {};
9941
+ _context24.prev = 1;
9942
+ return _context24.abrupt("return", get({
9943
+ context: 'environment',
9944
+ path: "taxonomy/concept-schemes/".concat(id),
9945
+ config: createRequestConfig({
9946
+ query: normalizeSearchParameters(normalizeSelect(query))
9947
+ })
9948
+ }));
9949
+ case 5:
9950
+ _context24.prev = 5;
9951
+ _context24.t0 = _context24["catch"](1);
9952
+ errorHandler(_context24.t0);
9953
+ case 8:
9954
+ case "end":
9955
+ return _context24.stop();
9956
+ }
9957
+ }, _callee24, null, [[1, 5]]);
9958
+ }));
9959
+ return _internalGetConceptScheme.apply(this, arguments);
9960
+ }
9961
+ function getConceptSchemes() {
9962
+ var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
9963
+ return internalGetConceptSchemes(query);
9964
+ }
9965
+ function internalGetConceptSchemes() {
9966
+ return _internalGetConceptSchemes.apply(this, arguments);
9967
+ }
9968
+ function _internalGetConceptSchemes() {
9969
+ _internalGetConceptSchemes = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25() {
9970
+ var query,
9971
+ _args25 = arguments;
9972
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
9973
+ while (1) switch (_context25.prev = _context25.next) {
9974
+ case 0:
9975
+ query = _args25.length > 0 && _args25[0] !== undefined ? _args25[0] : {};
9976
+ _context25.prev = 1;
9977
+ return _context25.abrupt("return", get({
9978
+ context: 'environment',
9979
+ path: 'taxonomy/concept-schemes',
9980
+ config: createRequestConfig({
9981
+ query: normalizeSearchParameters(normalizeSelect(query))
9982
+ })
9983
+ }));
9984
+ case 5:
9985
+ _context25.prev = 5;
9986
+ _context25.t0 = _context25["catch"](1);
9987
+ errorHandler(_context25.t0);
9988
+ case 8:
9989
+ case "end":
9990
+ return _context25.stop();
9991
+ }
9992
+ }, _callee25, null, [[1, 5]]);
9993
+ }));
9994
+ return _internalGetConceptSchemes.apply(this, arguments);
9995
+ }
9996
+ function getConcept(id) {
9997
+ var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9998
+ return internalGetConcept(id, query);
9999
+ }
10000
+ function internalGetConcept(_x26) {
10001
+ return _internalGetConcept.apply(this, arguments);
10002
+ }
10003
+ function _internalGetConcept() {
10004
+ _internalGetConcept = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(id) {
10005
+ var query,
10006
+ _args26 = arguments;
10007
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
10008
+ while (1) switch (_context26.prev = _context26.next) {
10009
+ case 0:
10010
+ query = _args26.length > 1 && _args26[1] !== undefined ? _args26[1] : {};
10011
+ _context26.prev = 1;
10012
+ return _context26.abrupt("return", get({
10013
+ context: 'environment',
10014
+ path: "taxonomy/concepts/".concat(id),
10015
+ config: createRequestConfig({
10016
+ query: normalizeSearchParameters(normalizeSelect(query))
10017
+ })
10018
+ }));
10019
+ case 5:
10020
+ _context26.prev = 5;
10021
+ _context26.t0 = _context26["catch"](1);
10022
+ errorHandler(_context26.t0);
10023
+ case 8:
10024
+ case "end":
10025
+ return _context26.stop();
10026
+ }
10027
+ }, _callee26, null, [[1, 5]]);
10028
+ }));
10029
+ return _internalGetConcept.apply(this, arguments);
10030
+ }
10031
+ function getConcepts() {
10032
+ var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
10033
+ return internalGetConcepts(query);
10034
+ }
10035
+ function internalGetConcepts() {
10036
+ return _internalGetConcepts.apply(this, arguments);
10037
+ }
9926
10038
  /*
9927
10039
  * Switches BaseURL to use /environments path
9928
10040
  * */
10041
+ function _internalGetConcepts() {
10042
+ _internalGetConcepts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {
10043
+ var query,
10044
+ _args27 = arguments;
10045
+ return _regeneratorRuntime.wrap(function _callee27$(_context27) {
10046
+ while (1) switch (_context27.prev = _context27.next) {
10047
+ case 0:
10048
+ query = _args27.length > 0 && _args27[0] !== undefined ? _args27[0] : {};
10049
+ _context27.prev = 1;
10050
+ return _context27.abrupt("return", get({
10051
+ context: 'environment',
10052
+ path: 'taxonomy/concepts',
10053
+ config: createRequestConfig({
10054
+ query: normalizeSearchParameters(normalizeSelect(query))
10055
+ })
10056
+ }));
10057
+ case 5:
10058
+ _context27.prev = 5;
10059
+ _context27.t0 = _context27["catch"](1);
10060
+ errorHandler(_context27.t0);
10061
+ case 8:
10062
+ case "end":
10063
+ return _context27.stop();
10064
+ }
10065
+ }, _callee27, null, [[1, 5]]);
10066
+ }));
10067
+ return _internalGetConcepts.apply(this, arguments);
10068
+ }
9929
10069
  function switchToEnvironment(http) {
9930
10070
  http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
9931
10071
  }
9932
10072
  return {
9933
- version: "11.2.5",
10073
+ version: "11.3.0",
9934
10074
  getSpace: getSpace,
9935
10075
  getContentType: getContentType,
9936
10076
  getContentTypes: getContentTypes,
@@ -9943,6 +10083,10 @@ var contentful = (function (exports) {
9943
10083
  sync: sync,
9944
10084
  getEntry: getEntry,
9945
10085
  getEntries: getEntries,
10086
+ getConceptScheme: getConceptScheme,
10087
+ getConceptSchemes: getConceptSchemes,
10088
+ getConcept: getConcept,
10089
+ getConcepts: getConcepts,
9946
10090
  createAssetKey: createAssetKey
9947
10091
  };
9948
10092
  }
@@ -10053,7 +10197,7 @@ var contentful = (function (exports) {
10053
10197
  environment: 'master'
10054
10198
  };
10055
10199
  var config = Object.assign(Object.assign({}, defaultConfig), params);
10056
- var userAgentHeader = getUserAgentHeader("contentful.js/".concat("11.2.5"), config.application, config.integration);
10200
+ var userAgentHeader = getUserAgentHeader("contentful.js/".concat("11.3.0"), config.application, config.integration);
10057
10201
  config.headers = Object.assign(Object.assign({}, config.headers), {
10058
10202
  'Content-Type': 'application/vnd.contentful.delivery.v1+json',
10059
10203
  'X-Contentful-User-Agent': userAgentHeader