contentful-management 11.55.0-canary.6 → 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.
@@ -3502,6 +3502,7 @@ const queryForRelease = (http, params) => {
3502
3502
  "use strict";
3503
3503
  __webpack_require__.r(__webpack_exports__);
3504
3504
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3505
+ /* harmony export */ create: () => (/* binding */ create),
3505
3506
  /* harmony export */ createWithId: () => (/* binding */ createWithId),
3506
3507
  /* harmony export */ get: () => (/* binding */ get),
3507
3508
  /* harmony export */ getMany: () => (/* binding */ getMany),
@@ -3551,6 +3552,17 @@ const patch = (http, params, data, headers) => {
3551
3552
  }, headers)
3552
3553
  });
3553
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
+ };
3554
3566
  const createWithId = (http, params, rawData, headers) => {
3555
3567
  params.query = _objectSpread(_objectSpread({}, params.query), {}, {
3556
3568
  'sys.schemaVersion': 'Release.V2'
@@ -18342,6 +18354,7 @@ const createPlainClient = (makeRequest, defaults) => {
18342
18354
  getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'getMany'),
18343
18355
  update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'update'),
18344
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'),
18345
18358
  createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'createWithId')
18346
18359
  },
18347
18360
  archive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'archive'),
@@ -32810,7 +32823,7 @@ function createClient(params, opts = {}) {
32810
32823
  const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
32811
32824
  const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
32812
32825
  // @ts-expect-error
32813
- `${sdkMain}/${"11.55.0-canary.6"}`, params.application, params.integration, params.feature);
32826
+ `${sdkMain}/${"11.55.0-canary.7"}`, params.application, params.integration, params.feature);
32814
32827
  const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
32815
32828
  userAgent
32816
32829
  }));