contentful-management 11.63.0 → 11.63.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.
@@ -5457,7 +5457,6 @@ __webpack_require__.r(__webpack_exports__);
5457
5457
  /* harmony export */ isSuccessful: () => (/* binding */ isSuccessful),
5458
5458
  /* harmony export */ shouldRePoll: () => (/* binding */ shouldRePoll),
5459
5459
  /* harmony export */ waitFor: () => (/* binding */ waitFor),
5460
- /* harmony export */ withOptionalCursorApi: () => (/* binding */ withOptionalCursorApi),
5461
5460
  /* harmony export */ wrapCollection: () => (/* binding */ wrapCollection),
5462
5461
  /* harmony export */ wrapCursorPaginatedCollection: () => (/* binding */ wrapCursorPaginatedCollection)
5463
5462
  /* harmony export */ });
@@ -5477,18 +5476,6 @@ const wrapCollection = fn => (makeRequest, data, ...rest) => {
5477
5476
  // @ts-expect-error
5478
5477
  return collectionData;
5479
5478
  };
5480
-
5481
- /**
5482
- * @private
5483
- * Function for endpoints allowing `?cursor=true` wrapping the call
5484
- * to ensure the correct return type for cursor based pagination
5485
- * when `cursor: true`.
5486
- */
5487
- const withOptionalCursorApi = fn => {
5488
- return function (args) {
5489
- return fn.call(this, args);
5490
- };
5491
- };
5492
5479
  const wrapCursorPaginatedCollection = fn => (makeRequest, data, ...rest) => {
5493
5480
  const collectionData = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
5494
5481
  // @ts-expect-error
@@ -7537,7 +7524,6 @@ __webpack_require__.r(__webpack_exports__);
7537
7524
  /* harmony import */ var _entities_function__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./entities/function */ "./entities/function.ts");
7538
7525
  /* harmony import */ var _entities_function_log__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./entities/function-log */ "./entities/function-log.ts");
7539
7526
  /* harmony import */ var _entities_ai_action_invocation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./entities/ai-action-invocation */ "./entities/ai-action-invocation.ts");
7540
- /* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./common-utils */ "./common-utils.ts");
7541
7527
  const _excluded = ["installationId"];
7542
7528
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7543
7529
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -7558,7 +7544,6 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
7558
7544
 
7559
7545
 
7560
7546
 
7561
-
7562
7547
  /**
7563
7548
  * @private
7564
7549
  */
@@ -8009,7 +7994,7 @@ function createEnvironmentApi(makeRequest) {
8009
7994
  * .catch(console.error)
8010
7995
  * ```
8011
7996
  */
8012
- getContentTypes: (0,_common_utils__WEBPACK_IMPORTED_MODULE_11__.withOptionalCursorApi)(function (query = {}) {
7997
+ getContentTypes(query = {}) {
8013
7998
  const raw = this.toPlainObject();
8014
7999
  return makeRequest({
8015
8000
  entityType: 'ContentType',
@@ -8022,7 +8007,7 @@ function createEnvironmentApi(makeRequest) {
8022
8007
  }).params
8023
8008
  }
8024
8009
  }).then(data => wrapContentTypeCollection(makeRequest, data));
8025
- }),
8010
+ },
8026
8011
  /**
8027
8012
  * Creates a Content Type
8028
8013
  * @param data - Object representation of the Content Type to be created
@@ -8253,7 +8238,7 @@ function createEnvironmentApi(makeRequest) {
8253
8238
  * .catch(console.error)
8254
8239
  * ```
8255
8240
  */
8256
- getEntries: (0,_common_utils__WEBPACK_IMPORTED_MODULE_11__.withOptionalCursorApi)(function (query = {}) {
8241
+ getEntries(query = {}) {
8257
8242
  const raw = this.toPlainObject();
8258
8243
  return makeRequest({
8259
8244
  entityType: 'Entry',
@@ -8266,7 +8251,7 @@ function createEnvironmentApi(makeRequest) {
8266
8251
  }).params
8267
8252
  }
8268
8253
  }).then(data => wrapEntryCollection(makeRequest, data));
8269
- }),
8254
+ },
8270
8255
  /**
8271
8256
  * Gets a collection of published Entries
8272
8257
  * @param query - Object with search parameters. Check the <a href="https://www.contentful.com/developers/docs/javascript/tutorials/using-js-cda-sdk/#retrieving-entries-with-search-parameters">JS SDK tutorial</a> and the <a href="https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters">REST API reference</a> for more details.
@@ -8285,7 +8270,7 @@ function createEnvironmentApi(makeRequest) {
8285
8270
  * .catch(console.error)
8286
8271
  * ```
8287
8272
  */
8288
- getPublishedEntries: (0,_common_utils__WEBPACK_IMPORTED_MODULE_11__.withOptionalCursorApi)(function (query = {}) {
8273
+ getPublishedEntries(query = {}) {
8289
8274
  const raw = this.toPlainObject();
8290
8275
  return makeRequest({
8291
8276
  entityType: 'Entry',
@@ -8298,7 +8283,7 @@ function createEnvironmentApi(makeRequest) {
8298
8283
  }).params
8299
8284
  }
8300
8285
  }).then(data => wrapEntryCollection(makeRequest, data));
8301
- }),
8286
+ },
8302
8287
  /**
8303
8288
  * Creates a Entry
8304
8289
  * @param contentTypeId - The Content Type ID of the newly created Entry
@@ -8469,7 +8454,7 @@ function createEnvironmentApi(makeRequest) {
8469
8454
  * .catch(console.error)
8470
8455
  * ```
8471
8456
  */
8472
- getAssets: (0,_common_utils__WEBPACK_IMPORTED_MODULE_11__.withOptionalCursorApi)(function (query = {}) {
8457
+ getAssets(query = {}) {
8473
8458
  const raw = this.toPlainObject();
8474
8459
  return makeRequest({
8475
8460
  entityType: 'Asset',
@@ -8482,7 +8467,7 @@ function createEnvironmentApi(makeRequest) {
8482
8467
  }).params
8483
8468
  }
8484
8469
  }).then(data => wrapAssetCollection(makeRequest, data));
8485
- }),
8470
+ },
8486
8471
  /**
8487
8472
  * Gets a collection of published Assets
8488
8473
  * @param query - Object with search parameters. Check the <a href="https://www.contentful.com/developers/docs/javascript/tutorials/using-js-cda-sdk/#retrieving-entries-with-search-parameters">JS SDK tutorial</a> and the <a href="https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters">REST API reference</a> for more details.
@@ -8501,7 +8486,7 @@ function createEnvironmentApi(makeRequest) {
8501
8486
  * .catch(console.error)
8502
8487
  * ```
8503
8488
  */
8504
- getPublishedAssets: (0,_common_utils__WEBPACK_IMPORTED_MODULE_11__.withOptionalCursorApi)(function (query = {}) {
8489
+ getPublishedAssets(query = {}) {
8505
8490
  const raw = this.toPlainObject();
8506
8491
  return makeRequest({
8507
8492
  entityType: 'Asset',
@@ -8514,7 +8499,7 @@ function createEnvironmentApi(makeRequest) {
8514
8499
  }).params
8515
8500
  }
8516
8501
  }).then(data => wrapAssetCollection(makeRequest, data));
8517
- }),
8502
+ },
8518
8503
  /**
8519
8504
  * Creates a Asset. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.
8520
8505
  * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished.
@@ -33597,31 +33582,33 @@ var __webpack_exports__ = {};
33597
33582
  \**********************************/
33598
33583
  __webpack_require__.r(__webpack_exports__);
33599
33584
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
33600
- /* harmony export */ RestAdapter: () => (/* reexport safe */ _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_8__.RestAdapter),
33601
- /* harmony export */ ScheduledActionReferenceFilters: () => (/* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_10__.ScheduledActionReferenceFilters),
33602
- /* harmony export */ WorkflowStepPermissionAction: () => (/* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_10__.WorkflowStepPermissionAction),
33603
- /* harmony export */ WorkflowStepPermissionEffect: () => (/* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_10__.WorkflowStepPermissionEffect),
33604
- /* harmony export */ WorkflowStepPermissionType: () => (/* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_10__.WorkflowStepPermissionType),
33605
- /* harmony export */ asIterator: () => (/* reexport safe */ _plain_as_iterator__WEBPACK_IMPORTED_MODULE_5__.asIterator),
33585
+ /* harmony export */ RestAdapter: () => (/* reexport safe */ _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_9__.RestAdapter),
33586
+ /* harmony export */ ScheduledActionReferenceFilters: () => (/* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_11__.ScheduledActionReferenceFilters),
33587
+ /* harmony export */ ScheduledActionStatus: () => (/* reexport safe */ _entities_scheduled_action__WEBPACK_IMPORTED_MODULE_5__.ScheduledActionStatus),
33588
+ /* harmony export */ WorkflowStepPermissionAction: () => (/* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_11__.WorkflowStepPermissionAction),
33589
+ /* harmony export */ WorkflowStepPermissionEffect: () => (/* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_11__.WorkflowStepPermissionEffect),
33590
+ /* harmony export */ WorkflowStepPermissionType: () => (/* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_11__.WorkflowStepPermissionType),
33591
+ /* harmony export */ asIterator: () => (/* reexport safe */ _plain_as_iterator__WEBPACK_IMPORTED_MODULE_6__.asIterator),
33606
33592
  /* harmony export */ createClient: () => (/* binding */ createClient),
33607
33593
  /* harmony export */ editorInterfaceDefaults: () => (/* reexport module object */ _constants_editor_interface_defaults__WEBPACK_IMPORTED_MODULE_4__),
33608
- /* harmony export */ fetchAll: () => (/* reexport safe */ _plain_pagination_helper__WEBPACK_IMPORTED_MODULE_6__.fetchAll),
33609
- /* harmony export */ isDraft: () => (/* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_7__.isDraft),
33610
- /* harmony export */ isPublished: () => (/* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_7__.isPublished),
33611
- /* harmony export */ isUpdated: () => (/* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_7__.isUpdated),
33612
- /* harmony export */ makeRequest: () => (/* reexport safe */ _adapters_REST_make_request__WEBPACK_IMPORTED_MODULE_9__.makeRequest)
33594
+ /* harmony export */ fetchAll: () => (/* reexport safe */ _plain_pagination_helper__WEBPACK_IMPORTED_MODULE_7__.fetchAll),
33595
+ /* harmony export */ isDraft: () => (/* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_8__.isDraft),
33596
+ /* harmony export */ isPublished: () => (/* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_8__.isPublished),
33597
+ /* harmony export */ isUpdated: () => (/* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_8__.isUpdated),
33598
+ /* harmony export */ makeRequest: () => (/* reexport safe */ _adapters_REST_make_request__WEBPACK_IMPORTED_MODULE_10__.makeRequest)
33613
33599
  /* harmony export */ });
33614
33600
  /* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
33615
33601
  /* harmony import */ var _create_adapter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-adapter */ "./create-adapter.ts");
33616
33602
  /* harmony import */ var _create_contentful_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./create-contentful-api */ "./create-contentful-api.ts");
33617
33603
  /* harmony import */ var _plain_plain_client__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./plain/plain-client */ "./plain/plain-client.ts");
33618
33604
  /* harmony import */ var _constants_editor_interface_defaults__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constants/editor-interface-defaults */ "./constants/editor-interface-defaults/index.ts");
33619
- /* harmony import */ var _plain_as_iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./plain/as-iterator */ "./plain/as-iterator.ts");
33620
- /* harmony import */ var _plain_pagination_helper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./plain/pagination-helper */ "./plain/pagination-helper.ts");
33621
- /* harmony import */ var _plain_checks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./plain/checks */ "./plain/checks.ts");
33622
- /* harmony import */ var _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./adapters/REST/rest-adapter */ "./adapters/REST/rest-adapter.ts");
33623
- /* harmony import */ var _adapters_REST_make_request__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./adapters/REST/make-request */ "./adapters/REST/make-request.ts");
33624
- /* harmony import */ var _export_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./export-types */ "./export-types.ts");
33605
+ /* harmony import */ var _entities_scheduled_action__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./entities/scheduled-action */ "./entities/scheduled-action.ts");
33606
+ /* harmony import */ var _plain_as_iterator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./plain/as-iterator */ "./plain/as-iterator.ts");
33607
+ /* harmony import */ var _plain_pagination_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./plain/pagination-helper */ "./plain/pagination-helper.ts");
33608
+ /* harmony import */ var _plain_checks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./plain/checks */ "./plain/checks.ts");
33609
+ /* harmony import */ var _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./adapters/REST/rest-adapter */ "./adapters/REST/rest-adapter.ts");
33610
+ /* harmony import */ var _adapters_REST_make_request__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./adapters/REST/make-request */ "./adapters/REST/make-request.ts");
33611
+ /* harmony import */ var _export_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./export-types */ "./export-types.ts");
33625
33612
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
33626
33613
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33627
33614
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -33647,6 +33634,8 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
33647
33634
 
33648
33635
 
33649
33636
 
33637
+
33638
+
33650
33639
  /**
33651
33640
  * @deprecated
33652
33641
  */
@@ -33671,7 +33660,7 @@ function createClient(params, opts = {}) {
33671
33660
  const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
33672
33661
  const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
33673
33662
  // @ts-expect-error
33674
- `${sdkMain}/${"11.63.0"}`, params.application, params.integration, params.feature);
33663
+ `${sdkMain}/${"11.63.1"}`, params.application, params.integration, params.feature);
33675
33664
  const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
33676
33665
  userAgent
33677
33666
  }));