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
|
@@ -2439,9 +2439,9 @@ const getMany = (http, _ref, headers) => {
|
|
|
2439
2439
|
spaceId,
|
|
2440
2440
|
environmentId
|
|
2441
2441
|
} = _ref,
|
|
2442
|
-
|
|
2442
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
2443
2443
|
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {
|
|
2444
|
-
params: _objectSpread(_objectSpread(_objectSpread({},
|
|
2444
|
+
params: _objectSpread(_objectSpread(_objectSpread({}, otherProps), environmentId && {
|
|
2445
2445
|
'environment.sys.id': environmentId
|
|
2446
2446
|
}), spaceId && {
|
|
2447
2447
|
'space.sys.id': spaceId
|
|
@@ -10084,7 +10084,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10084
10084
|
/* harmony export */ });
|
|
10085
10085
|
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
|
|
10086
10086
|
/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts");
|
|
10087
|
-
const _excluded = ["spaceId", "environmentId"];
|
|
10087
|
+
const _excluded = ["spaceId", "environmentId", "latestOnly"];
|
|
10088
10088
|
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; }
|
|
10089
10089
|
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; }
|
|
10090
10090
|
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; }
|
|
@@ -10235,6 +10235,7 @@ function createEnvironmentTemplateApi(makeRequest, organizationId) {
|
|
|
10235
10235
|
* Gets a collection of all installations for the environment template
|
|
10236
10236
|
* @param [installationParams.spaceId] - Space ID to filter installations by space and environment
|
|
10237
10237
|
* @param [installationParams.environmentId] - Environment ID to filter installations by space and environment
|
|
10238
|
+
* @param [installationParams.latestOnly] - Boolean flag to only return the latest installation per environment
|
|
10238
10239
|
* @return Promise for a collection of EnvironmentTemplateInstallations
|
|
10239
10240
|
* ```javascript
|
|
10240
10241
|
* const contentful = require('contentful-management')
|
|
@@ -10254,7 +10255,8 @@ function createEnvironmentTemplateApi(makeRequest, organizationId) {
|
|
|
10254
10255
|
getInstallations: function getEnvironmentTemplateInstallations(_ref = {}) {
|
|
10255
10256
|
let {
|
|
10256
10257
|
spaceId,
|
|
10257
|
-
environmentId
|
|
10258
|
+
environmentId,
|
|
10259
|
+
latestOnly
|
|
10258
10260
|
} = _ref,
|
|
10259
10261
|
query = _objectWithoutProperties(_ref, _excluded);
|
|
10260
10262
|
const raw = this.toPlainObject();
|
|
@@ -10268,7 +10270,8 @@ function createEnvironmentTemplateApi(makeRequest, organizationId) {
|
|
|
10268
10270
|
query
|
|
10269
10271
|
}).params),
|
|
10270
10272
|
spaceId,
|
|
10271
|
-
environmentId
|
|
10273
|
+
environmentId,
|
|
10274
|
+
latestOnly
|
|
10272
10275
|
}
|
|
10273
10276
|
}).then(data => wrapEnvironmentTemplateInstallationCollection(makeRequest, data));
|
|
10274
10277
|
},
|
|
@@ -26973,7 +26976,7 @@ const http2Transport = {
|
|
|
26973
26976
|
|
|
26974
26977
|
if (responseType === 'stream') {
|
|
26975
26978
|
response.data = responseStream;
|
|
26976
|
-
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_16__["default"])(resolve,
|
|
26979
|
+
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_16__["default"])(resolve, reject, response);
|
|
26977
26980
|
} else {
|
|
26978
26981
|
const responseBuffer = [];
|
|
26979
26982
|
let totalResponseBytes = 0;
|
|
@@ -29064,7 +29067,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29064
29067
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29065
29068
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
29066
29069
|
/* harmony export */ });
|
|
29067
|
-
const VERSION = "1.13.
|
|
29070
|
+
const VERSION = "1.13.1";
|
|
29068
29071
|
|
|
29069
29072
|
/***/ }),
|
|
29070
29073
|
|
|
@@ -33622,7 +33625,7 @@ function createClient(params, opts = {}) {
|
|
|
33622
33625
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
33623
33626
|
const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
|
|
33624
33627
|
// @ts-expect-error
|
|
33625
|
-
`${sdkMain}/${"11.
|
|
33628
|
+
`${sdkMain}/${"11.62.0"}`, params.application, params.integration, params.feature);
|
|
33626
33629
|
const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
33627
33630
|
userAgent
|
|
33628
33631
|
}));
|