contentful-management 7.44.2 → 7.45.3

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.
Files changed (56) hide show
  1. package/dist/contentful-management.browser.js +52 -68
  2. package/dist/contentful-management.browser.js.map +1 -1
  3. package/dist/contentful-management.browser.min.js +1 -1
  4. package/dist/contentful-management.legacy.js +52 -68
  5. package/dist/contentful-management.legacy.js.map +1 -1
  6. package/dist/contentful-management.legacy.min.js +1 -1
  7. package/dist/contentful-management.node.js +47 -63
  8. package/dist/contentful-management.node.js.map +1 -1
  9. package/dist/contentful-management.node.min.js +1 -1
  10. package/dist/es-modules/adapters/REST/endpoints/api-key.js +1 -1
  11. package/dist/es-modules/adapters/REST/endpoints/organization.js +2 -2
  12. package/dist/es-modules/adapters/REST/endpoints/space.js +4 -4
  13. package/dist/es-modules/adapters/REST/rest-adapter.js +1 -1
  14. package/dist/es-modules/common-utils.js +1 -1
  15. package/dist/es-modules/constants/editor-interface-defaults/sidebar-defaults.js +1 -8
  16. package/dist/es-modules/contentful-management.js +1 -1
  17. package/dist/es-modules/entities/locale.js +1 -1
  18. package/dist/es-modules/plain/as-iterator.js +12 -8
  19. package/dist/typings/create-entry-api.d.ts +3 -3
  20. package/dist/typings/create-environment-api.d.ts +4 -3
  21. package/dist/typings/entities/api-key.d.ts +1 -1578
  22. package/dist/typings/entities/app-bundle.d.ts +1 -1578
  23. package/dist/typings/entities/app-definition.d.ts +1 -1578
  24. package/dist/typings/entities/app-installation.d.ts +1 -1578
  25. package/dist/typings/entities/app-upload.d.ts +1 -1578
  26. package/dist/typings/entities/asset.d.ts +1 -1577
  27. package/dist/typings/entities/comment.d.ts +1 -1578
  28. package/dist/typings/entities/content-type.d.ts +1 -1578
  29. package/dist/typings/entities/editor-interface.d.ts +8 -1585
  30. package/dist/typings/entities/entry.d.ts +1 -1578
  31. package/dist/typings/entities/environment-alias.d.ts +1 -1578
  32. package/dist/typings/entities/environment.d.ts +1 -1578
  33. package/dist/typings/entities/extension.d.ts +1 -1578
  34. package/dist/typings/entities/locale.d.ts +1 -1578
  35. package/dist/typings/entities/organization-membership.d.ts +1 -1578
  36. package/dist/typings/entities/organization.d.ts +1 -1578
  37. package/dist/typings/entities/personal-access-token.d.ts +1 -1578
  38. package/dist/typings/entities/preview-api-key.d.ts +1 -1578
  39. package/dist/typings/entities/release-action.d.ts +1 -1578
  40. package/dist/typings/entities/role.d.ts +1 -1578
  41. package/dist/typings/entities/scheduled-action.d.ts +1 -1578
  42. package/dist/typings/entities/snapshot.d.ts +1 -1578
  43. package/dist/typings/entities/space-member.d.ts +1 -1578
  44. package/dist/typings/entities/space-membership.d.ts +1 -1578
  45. package/dist/typings/entities/space.d.ts +1 -1578
  46. package/dist/typings/entities/tag.d.ts +1 -1578
  47. package/dist/typings/entities/task.d.ts +1 -1578
  48. package/dist/typings/entities/team-membership.d.ts +1 -1578
  49. package/dist/typings/entities/team-space-membership.d.ts +1 -1578
  50. package/dist/typings/entities/team.d.ts +1 -1578
  51. package/dist/typings/entities/usage.d.ts +1 -1578
  52. package/dist/typings/entities/user.d.ts +1 -1578
  53. package/dist/typings/entities/webhook.d.ts +1 -1578
  54. package/dist/typings/export-types.d.ts +1 -1
  55. package/dist/typings/plain/wrappers/wrap.d.ts +4 -4
  56. package/package.json +14 -13
@@ -2514,10 +2514,10 @@ module.exports = {
2514
2514
  /*!******************************************!*\
2515
2515
  !*** ../node_modules/axios/package.json ***!
2516
2516
  \******************************************/
2517
- /*! exports provided: _args, _from, _id, _inBundle, _integrity, _location, _phantomChildren, _requested, _requiredBy, _resolved, _spec, _where, author, browser, bugs, bundlesize, dependencies, description, devDependencies, homepage, jsdelivr, keywords, license, main, name, repository, scripts, typings, unpkg, version, default */
2517
+ /*! exports provided: name, version, description, main, scripts, repository, keywords, author, license, bugs, homepage, devDependencies, browser, jsdelivr, unpkg, typings, dependencies, bundlesize, default */
2518
2518
  /***/ (function(module) {
2519
2519
 
2520
- module.exports = JSON.parse("{\"_args\":[[\"axios@0.21.4\",\"/home/circleci/project\"]],\"_from\":\"axios@0.21.4\",\"_id\":\"axios@0.21.4\",\"_inBundle\":false,\"_integrity\":\"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==\",\"_location\":\"/axios\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"version\",\"registry\":true,\"raw\":\"axios@0.21.4\",\"name\":\"axios\",\"escapedName\":\"axios\",\"rawSpec\":\"0.21.4\",\"saveSpec\":null,\"fetchSpec\":\"0.21.4\"},\"_requiredBy\":[\"/\",\"/bundlesize\",\"/contentful-management\"],\"_resolved\":\"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz\",\"_spec\":\"0.21.4\",\"_where\":\"/home/circleci/project\",\"author\":{\"name\":\"Matt Zabriskie\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}],\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"description\":\"Promise based HTTP client for the browser and node.js\",\"devDependencies\":{\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.3.0\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^23.0.0\",\"grunt-karma\":\"^4.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^4.0.2\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^6.3.2\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-firefox-launcher\":\"^2.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^4.3.6\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^8.2.1\",\"sinon\":\"^4.5.0\",\"terser-webpack-plugin\":\"^4.2.3\",\"typescript\":\"^4.0.5\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^4.44.2\",\"webpack-dev-server\":\"^3.11.0\"},\"homepage\":\"https://axios-http.com\",\"jsdelivr\":\"dist/axios.min.js\",\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"license\":\"MIT\",\"main\":\"index.js\",\"name\":\"axios\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/axios/axios.git\"},\"scripts\":{\"build\":\"NODE_ENV=production grunt build\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"examples\":\"node ./examples/server.js\",\"fix\":\"eslint --fix lib/**/*.js\",\"postversion\":\"git push && git push --tags\",\"preversion\":\"npm test\",\"start\":\"node ./sandbox/server.js\",\"test\":\"grunt test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\"},\"typings\":\"./index.d.ts\",\"unpkg\":\"dist/axios.min.js\",\"version\":\"0.21.4\"}");
2520
+ module.exports = JSON.parse("{\"name\":\"axios\",\"version\":\"0.21.4\",\"description\":\"Promise based HTTP client for the browser and node.js\",\"main\":\"index.js\",\"scripts\":{\"test\":\"grunt test\",\"start\":\"node ./sandbox/server.js\",\"build\":\"NODE_ENV=production grunt build\",\"preversion\":\"npm test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\",\"postversion\":\"git push && git push --tags\",\"examples\":\"node ./examples/server.js\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"fix\":\"eslint --fix lib/**/*.js\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/axios/axios.git\"},\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"author\":\"Matt Zabriskie\",\"license\":\"MIT\",\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"homepage\":\"https://axios-http.com\",\"devDependencies\":{\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.3.0\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^23.0.0\",\"grunt-karma\":\"^4.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^4.0.2\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^6.3.2\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-firefox-launcher\":\"^2.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^4.3.6\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^8.2.1\",\"sinon\":\"^4.5.0\",\"terser-webpack-plugin\":\"^4.2.3\",\"typescript\":\"^4.0.5\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^4.44.2\",\"webpack-dev-server\":\"^3.11.0\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"jsdelivr\":\"dist/axios.min.js\",\"unpkg\":\"dist/axios.min.js\",\"typings\":\"./index.d.ts\",\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}]}");
2521
2521
 
2522
2522
  /***/ }),
2523
2523
 
@@ -3015,15 +3015,16 @@ var rateLimitThrottle = (function (axiosInstance) {
3015
3015
  };
3016
3016
  });
3017
3017
 
3018
- var attempts = {};
3019
- var networkErrorAttempts = 0;
3020
-
3021
3018
  var delay = function delay(ms) {
3022
3019
  return new Promise(function (resolve) {
3023
3020
  setTimeout(resolve, ms);
3024
3021
  });
3025
3022
  };
3026
3023
 
3024
+ var defaultWait = function defaultWait(attempts) {
3025
+ return Math.pow(Math.SQRT2, attempts);
3026
+ };
3027
+
3027
3028
  function rateLimit(instance) {
3028
3029
  var maxRetry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
3029
3030
  var _instance$defaults = instance.defaults,
@@ -3049,40 +3050,24 @@ function rateLimit(instance) {
3049
3050
 
3050
3051
  if (!config || !instance.defaults.retryOnError) {
3051
3052
  return Promise.reject(error);
3053
+ } // Retried already for max attempts
3054
+
3055
+
3056
+ var doneAttempts = config.attempts || 1;
3057
+
3058
+ if (doneAttempts > maxRetry) {
3059
+ error.attempts = config.attempts;
3060
+ return Promise.reject(error);
3052
3061
  }
3053
3062
 
3054
3063
  var retryErrorType = null;
3055
- var wait = 0; // Errors without response did not receive anything from the server
3064
+ var wait = defaultWait(doneAttempts); // Errors without response did not receive anything from the server
3056
3065
 
3057
3066
  if (!response) {
3058
3067
  retryErrorType = 'Connection';
3059
- networkErrorAttempts++;
3060
-
3061
- if (networkErrorAttempts > maxRetry) {
3062
- error.attempts = networkErrorAttempts;
3063
- return Promise.reject(error);
3064
- }
3065
-
3066
- wait = Math.pow(Math.SQRT2, networkErrorAttempts);
3067
- response = {};
3068
- } else {
3069
- networkErrorAttempts = 0;
3070
- }
3071
-
3072
- if (response.status >= 500 && response.status < 600) {
3068
+ } else if (response.status >= 500 && response.status < 600) {
3073
3069
  // 5** errors are server related
3074
3070
  retryErrorType = "Server ".concat(response.status);
3075
- var headers = response.headers || {};
3076
- var requestId = headers['x-contentful-request-id'] || null;
3077
- attempts[requestId] = attempts[requestId] || 0;
3078
- attempts[requestId]++; // we reject if there are too many errors with the same request id or request id is not defined
3079
-
3080
- if (attempts[requestId] > maxRetry || !requestId) {
3081
- error.attempts = attempts[requestId];
3082
- return Promise.reject(error);
3083
- }
3084
-
3085
- wait = Math.pow(Math.SQRT2, attempts[requestId]);
3086
3071
  } else if (response.status === 429) {
3087
3072
  // 429 errors are exceeded rate limit exceptions
3088
3073
  retryErrorType = 'Rate limit'; // all headers are lowercased by axios https://github.com/mzabriskie/axios/issues/413
@@ -3095,7 +3080,9 @@ function rateLimit(instance) {
3095
3080
  if (retryErrorType) {
3096
3081
  // convert to ms and add jitter
3097
3082
  wait = Math.floor(wait * 1000 + Math.random() * 200 + 500);
3098
- instance.defaults.logHandler('warning', "".concat(retryErrorType, " error occurred. Waiting for ").concat(wait, " ms before retrying..."));
3083
+ instance.defaults.logHandler('warning', "".concat(retryErrorType, " error occurred. Waiting for ").concat(wait, " ms before retrying...")); // increase attempts counter
3084
+
3085
+ config.attempts = doneAttempts + 1;
3099
3086
  /* Somehow between the interceptor and retrying the request the httpAgent/httpsAgent gets transformed from an Agent-like object
3100
3087
  to a regular object, causing failures on retries after rate limits. Removing these properties here fixes the error, but retry
3101
3088
  requests still use the original http/httpsAgent property */
@@ -7856,8 +7843,8 @@ __webpack_require__.r(__webpack_exports__);
7856
7843
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createWithId", function() { return createWithId; });
7857
7844
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "update", function() { return update; });
7858
7845
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "del", function() { return del; });
7859
- /* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
7860
- /* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.esm.js");
7846
+ /* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.esm.js");
7847
+ /* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
7861
7848
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
7862
7849
 
7863
7850
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
@@ -7867,27 +7854,27 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
7867
7854
 
7868
7855
 
7869
7856
  const get = (http, params) => {
7870
- return _raw__WEBPACK_IMPORTED_MODULE_0__["get"](http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
7857
+ return _raw__WEBPACK_IMPORTED_MODULE_1__["get"](http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
7871
7858
  };
7872
7859
  const getMany = (http, params) => {
7873
- return _raw__WEBPACK_IMPORTED_MODULE_0__["get"](http, `/spaces/${params.spaceId}/api_keys`, {
7860
+ return _raw__WEBPACK_IMPORTED_MODULE_1__["get"](http, `/spaces/${params.spaceId}/api_keys`, {
7874
7861
  params: params.query
7875
7862
  });
7876
7863
  };
7877
7864
  const create = (http, params, data, headers) => {
7878
- return _raw__WEBPACK_IMPORTED_MODULE_0__["post"](http, `/spaces/${params.spaceId}/api_keys`, data, {
7865
+ return _raw__WEBPACK_IMPORTED_MODULE_1__["post"](http, `/spaces/${params.spaceId}/api_keys`, data, {
7879
7866
  headers
7880
7867
  });
7881
7868
  };
7882
7869
  const createWithId = (http, params, data, headers) => {
7883
- return _raw__WEBPACK_IMPORTED_MODULE_0__["put"](http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`, data, {
7870
+ return _raw__WEBPACK_IMPORTED_MODULE_1__["put"](http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`, data, {
7884
7871
  headers
7885
7872
  });
7886
7873
  };
7887
7874
  const update = (http, params, rawData, headers) => {
7888
7875
  var _rawData$sys$version;
7889
7876
 
7890
- const data = Object(fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData);
7877
+ const data = Object(fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData);
7891
7878
 
7892
7879
  if ('accessToken' in data) {
7893
7880
  delete data.accessToken;
@@ -7902,14 +7889,14 @@ const update = (http, params, rawData, headers) => {
7902
7889
  }
7903
7890
 
7904
7891
  delete data.sys;
7905
- return _raw__WEBPACK_IMPORTED_MODULE_0__["put"](http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`, data, {
7892
+ return _raw__WEBPACK_IMPORTED_MODULE_1__["put"](http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`, data, {
7906
7893
  headers: _objectSpread({
7907
7894
  'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
7908
7895
  }, headers)
7909
7896
  });
7910
7897
  };
7911
7898
  const del = (http, params) => {
7912
- return _raw__WEBPACK_IMPORTED_MODULE_0__["del"](http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
7899
+ return _raw__WEBPACK_IMPORTED_MODULE_1__["del"](http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
7913
7900
  };
7914
7901
 
7915
7902
  /***/ }),
@@ -9376,10 +9363,10 @@ const get = (http, params) => {
9376
9363
  const org = data.items.find(org => org.sys.id === params.organizationId);
9377
9364
 
9378
9365
  if (!org) {
9379
- const error = new Error(`No organization was found with the ID ${params.organizationId} instead got ${JSON.stringify(data)}`); // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
9366
+ const error = new Error(`No organization was found with the ID ${params.organizationId} instead got ${JSON.stringify(data)}`); // eslint-disable-next-line @typescript-eslint/ban-ts-comment
9380
9367
  // @ts-ignore
9381
9368
 
9382
- error.status = 404; // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
9369
+ error.status = 404; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
9383
9370
  // @ts-ignore
9384
9371
 
9385
9372
  error.statusText = 'Not Found';
@@ -9907,14 +9894,14 @@ const create = (http, params, payload, headers) => {
9907
9894
  }) : headers
9908
9895
  });
9909
9896
  };
9910
- const update = (http, params, payload, headers) => {
9911
- var _payload$sys$version;
9897
+ const update = (http, params, rawData, headers) => {
9898
+ var _rawData$sys$version;
9912
9899
 
9913
- const data = Object(fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(payload);
9900
+ const data = Object(fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData);
9914
9901
  delete data.sys;
9915
9902
  return _raw__WEBPACK_IMPORTED_MODULE_1__["put"](http, `/spaces/${params.spaceId}`, data, {
9916
9903
  headers: _objectSpread({
9917
- 'X-Contentful-Version': (_payload$sys$version = payload.sys.version) !== null && _payload$sys$version !== void 0 ? _payload$sys$version : 0
9904
+ 'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
9918
9905
  }, headers)
9919
9906
  });
9920
9907
  };
@@ -10549,7 +10536,7 @@ class RestAdapter {
10549
10536
 
10550
10537
  // `delete` is a reserved keyword. Therefore, the methods are called `del`.
10551
10538
  const action = actionInput === 'delete' ? 'del' : actionInput;
10552
- const endpoint = // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
10539
+ const endpoint = // eslint-disable-next-line @typescript-eslint/ban-ts-comment
10553
10540
  // @ts-ignore
10554
10541
  (_endpoints$entityType = _endpoints__WEBPACK_IMPORTED_MODULE_3__["default"][entityType]) === null || _endpoints$entityType === void 0 ? void 0 : _endpoints$entityType[action];
10555
10542
 
@@ -10585,7 +10572,7 @@ __webpack_require__.r(__webpack_exports__);
10585
10572
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapCollection", function() { return wrapCollection; });
10586
10573
  /* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js");
10587
10574
  /* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.esm.js");
10588
- /* eslint-disable @typescript-eslint/ban-ts-ignore */
10575
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
10589
10576
 
10590
10577
 
10591
10578
 
@@ -10971,7 +10958,6 @@ const SidebarWidgetTypes = {
10971
10958
  VERSIONS: 'versions-widget',
10972
10959
  INFO_PANEL: 'info-panel',
10973
10960
  JOBS: 'jobs-widget',
10974
- TASKS: 'content-workflows-tasks-widget',
10975
10961
  COMMENTS_PANEL: 'comments-panel'
10976
10962
  };
10977
10963
  const Publication = {
@@ -10986,12 +10972,6 @@ const Releases = {
10986
10972
  name: 'Release',
10987
10973
  description: 'Built-in - View release, add to it, etc.'
10988
10974
  };
10989
- const Tasks = {
10990
- widgetId: SidebarWidgetTypes.TASKS,
10991
- widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__["WidgetNamespace"].SIDEBAR_BUILTIN,
10992
- name: 'Tasks',
10993
- description: 'Built-in - Assign tasks to be completed before publishing. Currently only supported for master environment.'
10994
- };
10995
10975
  const ContentPreview = {
10996
10976
  widgetId: SidebarWidgetTypes.CONTENT_PREVIEW,
10997
10977
  widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__["WidgetNamespace"].SIDEBAR_BUILTIN,
@@ -11022,7 +11002,7 @@ const Users = {
11022
11002
  name: 'Users',
11023
11003
  description: 'Built-in - Displays users on the same entry.'
11024
11004
  };
11025
- const SidebarEntryConfiguration = [Publication, Releases, Tasks, ContentPreview, Links, Translation, Versions, Users];
11005
+ const SidebarEntryConfiguration = [Publication, Releases, ContentPreview, Links, Translation, Versions, Users];
11026
11006
  const SidebarAssetConfiguration = [Publication, Releases, Links, Translation, Users];
11027
11007
 
11028
11008
  /***/ }),
@@ -11112,7 +11092,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
11112
11092
  function createClient(params, opts = {}) {
11113
11093
  const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
11114
11094
  const userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
11115
- `${sdkMain}/${"7.44.2"}`, params.application, params.integration, params.feature);
11095
+ `${sdkMain}/${"7.45.3"}`, params.application, params.integration, params.feature);
11116
11096
  const adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
11117
11097
  // https://github.com/microsoft/TypeScript/issues/26591
11118
11098
  // @ts-expect-error
@@ -18090,7 +18070,7 @@ function createLocaleApi(makeRequest) {
18090
18070
 
18091
18071
 
18092
18072
  function wrapLocale(makeRequest, data) {
18093
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
18073
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
18094
18074
  // @ts-ignore
18095
18075
  delete data.internal_code;
18096
18076
  const locale = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["toPlainObject"])(Object(fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data));
@@ -19845,10 +19825,14 @@ const asIterator = (fn, params) => {
19845
19825
 
19846
19826
  return _asyncToGenerator(function* () {
19847
19827
  const _yield$currentResult = yield currentResult,
19848
- total = _yield$currentResult.total,
19849
- items = _yield$currentResult.items,
19850
- skip = _yield$currentResult.skip,
19851
- limit = _yield$currentResult.limit;
19828
+ _yield$currentResult$ = _yield$currentResult.total,
19829
+ total = _yield$currentResult$ === void 0 ? 0 : _yield$currentResult$,
19830
+ _yield$currentResult$2 = _yield$currentResult.items,
19831
+ items = _yield$currentResult$2 === void 0 ? [] : _yield$currentResult$2,
19832
+ _yield$currentResult$3 = _yield$currentResult.skip,
19833
+ skip = _yield$currentResult$3 === void 0 ? 0 : _yield$currentResult$3,
19834
+ _yield$currentResult$4 = _yield$currentResult.limit,
19835
+ limit = _yield$currentResult$4 === void 0 ? 100 : _yield$currentResult$4;
19852
19836
 
19853
19837
  if (total === _this.current) {
19854
19838
  return {