contentful-management 11.55.0-canary.5 → 11.55.0-canary.7

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.
@@ -2160,6 +2160,9 @@ const patch = (http, params, data, headers) => {
2160
2160
  };
2161
2161
  const update = (http, params, rawData, headers) => {
2162
2162
  var _rawData$sys$version;
2163
+ if (params.releaseId) {
2164
+ return _release_entry__WEBPACK_IMPORTED_MODULE_2__.update(http, params, rawData, headers !== null && headers !== void 0 ? headers : {});
2165
+ }
2163
2166
  const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData);
2164
2167
  delete data.sys;
2165
2168
  return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, data, {
@@ -3499,6 +3502,7 @@ const queryForRelease = (http, params) => {
3499
3502
  "use strict";
3500
3503
  __webpack_require__.r(__webpack_exports__);
3501
3504
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3505
+ /* harmony export */ create: () => (/* binding */ create),
3502
3506
  /* harmony export */ createWithId: () => (/* binding */ createWithId),
3503
3507
  /* harmony export */ get: () => (/* binding */ get),
3504
3508
  /* harmony export */ getMany: () => (/* binding */ getMany),
@@ -3548,6 +3552,17 @@ const patch = (http, params, data, headers) => {
3548
3552
  }, headers)
3549
3553
  });
3550
3554
  };
3555
+ const create = (http, params, rawData, headers) => {
3556
+ params.query = _objectSpread(_objectSpread({}, params.query), {}, {
3557
+ 'sys.schemaVersion': 'Release.V2'
3558
+ });
3559
+ const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData);
3560
+ return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, data, {
3561
+ headers: _objectSpread({
3562
+ 'X-Contentful-Content-Type': params.contentTypeId
3563
+ }, headers)
3564
+ });
3565
+ };
3551
3566
  const createWithId = (http, params, rawData, headers) => {
3552
3567
  params.query = _objectSpread(_objectSpread({}, params.query), {}, {
3553
3568
  'sys.schemaVersion': 'Release.V2'
@@ -18339,6 +18354,7 @@ const createPlainClient = (makeRequest, defaults) => {
18339
18354
  getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'getMany'),
18340
18355
  update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'update'),
18341
18356
  patch: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'patch'),
18357
+ create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'create'),
18342
18358
  createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'createWithId')
18343
18359
  },
18344
18360
  archive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'archive'),
@@ -32807,7 +32823,7 @@ function createClient(params, opts = {}) {
32807
32823
  const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
32808
32824
  const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
32809
32825
  // @ts-expect-error
32810
- `${sdkMain}/${"11.55.0-canary.5"}`, params.application, params.integration, params.feature);
32826
+ `${sdkMain}/${"11.55.0-canary.7"}`, params.application, params.integration, params.feature);
32811
32827
  const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
32812
32828
  userAgent
32813
32829
  }));