contentful-management 11.55.0-canary.2 → 11.55.0-canary.3
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.
- package/dist/contentful-management.browser.js +15 -2
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +15 -2
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/release-entry.js +11 -0
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/plain/plain-client.js +2 -1
- package/dist/typings/adapters/REST/endpoints/release-entry.d.ts +1 -0
- package/dist/typings/common-types.d.ts +31 -0
- package/dist/typings/plain/common-types.d.ts +14 -10
- package/package.json +1 -1
|
@@ -3489,6 +3489,7 @@ const queryForRelease = (http, params) => {
|
|
|
3489
3489
|
"use strict";
|
|
3490
3490
|
__webpack_require__.r(__webpack_exports__);
|
|
3491
3491
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3492
|
+
/* harmony export */ createWithId: () => (/* binding */ createWithId),
|
|
3492
3493
|
/* harmony export */ get: () => (/* binding */ get),
|
|
3493
3494
|
/* harmony export */ getMany: () => (/* binding */ getMany),
|
|
3494
3495
|
/* harmony export */ patch: () => (/* binding */ patch),
|
|
@@ -3537,6 +3538,17 @@ const patch = (http, params, data, headers) => {
|
|
|
3537
3538
|
}, headers)
|
|
3538
3539
|
});
|
|
3539
3540
|
};
|
|
3541
|
+
const createWithId = (http, params, rawData, headers) => {
|
|
3542
|
+
params.query = _objectSpread(_objectSpread({}, params.query), {}, {
|
|
3543
|
+
'sys.schemaVersion': 'Release.V2'
|
|
3544
|
+
});
|
|
3545
|
+
const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData);
|
|
3546
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries/${params.entryId}`, data, {
|
|
3547
|
+
headers: _objectSpread({
|
|
3548
|
+
'X-Contentful-Content-Type': params.contentTypeId
|
|
3549
|
+
}, headers)
|
|
3550
|
+
});
|
|
3551
|
+
};
|
|
3540
3552
|
|
|
3541
3553
|
/***/ }),
|
|
3542
3554
|
|
|
@@ -18316,7 +18328,8 @@ const createPlainClient = (makeRequest, defaults) => {
|
|
|
18316
18328
|
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'get'),
|
|
18317
18329
|
getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'getMany'),
|
|
18318
18330
|
update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'update'),
|
|
18319
|
-
patch: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'patch')
|
|
18331
|
+
patch: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'patch'),
|
|
18332
|
+
createWithId: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ReleaseEntry', 'createWithId')
|
|
18320
18333
|
},
|
|
18321
18334
|
archive: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'archive'),
|
|
18322
18335
|
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Release', 'get'),
|
|
@@ -32784,7 +32797,7 @@ function createClient(params, opts = {}) {
|
|
|
32784
32797
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
32785
32798
|
const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
|
|
32786
32799
|
// @ts-expect-error
|
|
32787
|
-
`${sdkMain}/${"11.55.0-canary.
|
|
32800
|
+
`${sdkMain}/${"11.55.0-canary.3"}`, params.application, params.integration, params.feature);
|
|
32788
32801
|
const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
32789
32802
|
userAgent
|
|
32790
32803
|
}));
|