contentful-management 11.61.1 → 11.62.0
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 +9 -6
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +11 -8
- 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/environment-template-installation.js +2 -2
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/create-environment-template-api.js +6 -3
- package/dist/typings/common-types.d.ts +1 -0
- package/dist/typings/create-environment-template-api.d.ts +3 -1
- package/dist/typings/plain/common-types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2207,9 +2207,9 @@ var getMany = function getMany(http, _ref, headers) {
|
|
|
2207
2207
|
environmentTemplateId = _ref.environmentTemplateId,
|
|
2208
2208
|
spaceId = _ref.spaceId,
|
|
2209
2209
|
environmentId = _ref.environmentId,
|
|
2210
|
-
|
|
2210
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
2211
2211
|
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {
|
|
2212
|
-
params: _objectSpread(_objectSpread(_objectSpread({},
|
|
2212
|
+
params: _objectSpread(_objectSpread(_objectSpread({}, otherProps), environmentId && {
|
|
2213
2213
|
'environment.sys.id': environmentId
|
|
2214
2214
|
}), spaceId && {
|
|
2215
2215
|
'space.sys.id': spaceId
|
|
@@ -10422,7 +10422,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10422
10422
|
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
|
|
10423
10423
|
/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts");
|
|
10424
10424
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10425
|
-
var _excluded = ["spaceId", "environmentId"];
|
|
10425
|
+
var _excluded = ["spaceId", "environmentId", "latestOnly"];
|
|
10426
10426
|
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; }
|
|
10427
10427
|
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; }
|
|
10428
10428
|
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; }
|
|
@@ -10575,6 +10575,7 @@ function createEnvironmentTemplateApi(makeRequest, organizationId) {
|
|
|
10575
10575
|
* Gets a collection of all installations for the environment template
|
|
10576
10576
|
* @param [installationParams.spaceId] - Space ID to filter installations by space and environment
|
|
10577
10577
|
* @param [installationParams.environmentId] - Environment ID to filter installations by space and environment
|
|
10578
|
+
* @param [installationParams.latestOnly] - Boolean flag to only return the latest installation per environment
|
|
10578
10579
|
* @return Promise for a collection of EnvironmentTemplateInstallations
|
|
10579
10580
|
* ```javascript
|
|
10580
10581
|
* const contentful = require('contentful-management')
|
|
@@ -10595,6 +10596,7 @@ function createEnvironmentTemplateApi(makeRequest, organizationId) {
|
|
|
10595
10596
|
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
10596
10597
|
var spaceId = _ref2.spaceId,
|
|
10597
10598
|
environmentId = _ref2.environmentId,
|
|
10599
|
+
latestOnly = _ref2.latestOnly,
|
|
10598
10600
|
query = _objectWithoutProperties(_ref2, _excluded);
|
|
10599
10601
|
var raw = this.toPlainObject();
|
|
10600
10602
|
return makeRequest({
|
|
@@ -10607,7 +10609,8 @@ function createEnvironmentTemplateApi(makeRequest, organizationId) {
|
|
|
10607
10609
|
query: query
|
|
10608
10610
|
}).params),
|
|
10609
10611
|
spaceId: spaceId,
|
|
10610
|
-
environmentId: environmentId
|
|
10612
|
+
environmentId: environmentId,
|
|
10613
|
+
latestOnly: latestOnly
|
|
10611
10614
|
}
|
|
10612
10615
|
}).then(function (data) {
|
|
10613
10616
|
return wrapEnvironmentTemplateInstallationCollection(makeRequest, data);
|
|
@@ -25990,7 +25993,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25990
25993
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
25991
25994
|
/* harmony export */ VERSION: function() { return /* binding */ VERSION; }
|
|
25992
25995
|
/* harmony export */ });
|
|
25993
|
-
const VERSION = "1.13.
|
|
25996
|
+
const VERSION = "1.13.1";
|
|
25994
25997
|
|
|
25995
25998
|
/***/ }),
|
|
25996
25999
|
|
|
@@ -29942,7 +29945,7 @@ function createClient(params) {
|
|
|
29942
29945
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
29943
29946
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
29944
29947
|
var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(// @ts-expect-error
|
|
29945
|
-
"".concat(sdkMain, "/").concat("11.
|
|
29948
|
+
"".concat(sdkMain, "/").concat("11.62.0"), params.application, params.integration, params.feature);
|
|
29946
29949
|
var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
29947
29950
|
userAgent: userAgent
|
|
29948
29951
|
}));
|