contentful-management 11.55.0-canary.6 → 11.55.0-canary.8

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.
@@ -2215,6 +2215,9 @@ const unarchive = (http, params) => {
2215
2215
  return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
2216
2216
  };
2217
2217
  const create = (http, params, rawData) => {
2218
+ if (params.releaseId) {
2219
+ return _release_entry__WEBPACK_IMPORTED_MODULE_2__.create(http, params, rawData, {});
2220
+ }
2218
2221
  const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData);
2219
2222
  return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, data, {
2220
2223
  headers: {
@@ -3502,6 +3505,7 @@ const queryForRelease = (http, params) => {
3502
3505
  "use strict";
3503
3506
  __webpack_require__.r(__webpack_exports__);
3504
3507
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3508
+ /* harmony export */ create: () => (/* binding */ create),
3505
3509
  /* harmony export */ createWithId: () => (/* binding */ createWithId),
3506
3510
  /* harmony export */ get: () => (/* binding */ get),
3507
3511
  /* harmony export */ getMany: () => (/* binding */ getMany),
@@ -3551,6 +3555,17 @@ const patch = (http, params, data, headers) => {
3551
3555
  }, headers)
3552
3556
  });
3553
3557
  };
3558
+ const create = (http, params, rawData, headers) => {
3559
+ params.query = _objectSpread(_objectSpread({}, params.query), {}, {
3560
+ 'sys.schemaVersion': 'Release.V2'
3561
+ });
3562
+ const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData);
3563
+ return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, data, {
3564
+ headers: _objectSpread({
3565
+ 'X-Contentful-Content-Type': params.contentTypeId
3566
+ }, headers)
3567
+ });
3568
+ };
3554
3569
  const createWithId = (http, params, rawData, headers) => {
3555
3570
  params.query = _objectSpread(_objectSpread({}, params.query), {}, {
3556
3571
  'sys.schemaVersion': 'Release.V2'
@@ -18342,6 +18357,7 @@ const createPlainClient = (makeRequest, defaults) => {
18342
18357
  getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'getMany'),
18343
18358
  update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'update'),
18344
18359
  patch: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'patch'),
18360
+ create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'create'),
18345
18361
  createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'createWithId')
18346
18362
  },
18347
18363
  archive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'archive'),
@@ -32810,7 +32826,7 @@ function createClient(params, opts = {}) {
32810
32826
  const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
32811
32827
  const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
32812
32828
  // @ts-expect-error
32813
- `${sdkMain}/${"11.55.0-canary.6"}`, params.application, params.integration, params.feature);
32829
+ `${sdkMain}/${"11.55.0-canary.8"}`, params.application, params.integration, params.feature);
32814
32830
  const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
32815
32831
  userAgent
32816
32832
  }));