contentful-management 10.8.0 → 10.10.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.
@@ -11939,14 +11939,14 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11939
11939
 
11940
11940
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11941
11941
 
11942
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11943
+
11942
11944
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11943
11945
 
11944
11946
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
11945
11947
 
11946
11948
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11947
11949
 
11948
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11949
-
11950
11950
 
11951
11951
 
11952
11952
 
@@ -11963,8 +11963,6 @@ var RestAdapter = /*#__PURE__*/function () {
11963
11963
  function RestAdapter(params) {
11964
11964
  _classCallCheck(this, RestAdapter);
11965
11965
 
11966
- _defineProperty(this, "params", void 0);
11967
-
11968
11966
  if (!params.accessToken) {
11969
11967
  throw new TypeError('Expected parameter accessToken');
11970
11968
  }
@@ -12610,7 +12608,7 @@ function createClient(params) {
12610
12608
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
12611
12609
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
12612
12610
  var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
12613
- "".concat(sdkMain, "/").concat("10.8.0"), params.application, params.integration, params.feature);
12611
+ "".concat(sdkMain, "/").concat("10.10.0"), params.application, params.integration, params.feature);
12614
12612
  var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
12615
12613
  // https://github.com/microsoft/TypeScript/issues/26591
12616
12614
  // @ts-expect-error
@@ -13824,13 +13822,17 @@ function createEntryApi(makeRequest) {
13824
13822
  * ```
13825
13823
  */
13826
13824
  getTasks: function getTasks() {
13825
+ var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
13826
+
13827
13827
  var _getParams14 = getParams(this),
13828
13828
  params = _getParams14.params;
13829
13829
 
13830
13830
  return makeRequest({
13831
13831
  entityType: 'Task',
13832
13832
  action: 'getMany',
13833
- params: params
13833
+ params: _objectSpread(_objectSpread({}, params), {}, {
13834
+ query: query
13835
+ })
13834
13836
  }).then(function (data) {
13835
13837
  return wrapTaskCollection(makeRequest, data);
13836
13838
  });
@@ -22339,6 +22341,7 @@ var WorkflowStepPermissionType;
22339
22341
 
22340
22342
  (function (WorkflowStepPermissionType) {
22341
22343
  WorkflowStepPermissionType["EntityPermission"] = "entity_permission";
22344
+ WorkflowStepPermissionType["WorkflowPermission"] = "workflow_permission";
22342
22345
  })(WorkflowStepPermissionType || (WorkflowStepPermissionType = {}));
22343
22346
 
22344
22347
  var WorkflowStepPermissionAction;
@@ -22480,8 +22483,6 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Objec
22480
22483
 
22481
22484
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22482
22485
 
22483
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
22484
-
22485
22486
  /* eslint-disable @typescript-eslint/no-explicit-any */
22486
22487
 
22487
22488
  var DEFAULT_MAX_RETRIES = 30;
@@ -22500,9 +22501,6 @@ var AsyncActionProcessingError = /*#__PURE__*/function (_Error) {
22500
22501
  _classCallCheck(this, AsyncActionProcessingError);
22501
22502
 
22502
22503
  _this = _super.call(this, message);
22503
-
22504
- _defineProperty(_assertThisInitialized(_this), "action", void 0);
22505
-
22506
22504
  _this.action = action;
22507
22505
  _this.name = _this.constructor.name;
22508
22506
  return _this;