contentful-management 7.44.1 → 7.45.2
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 +34 -30
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.legacy.js +34 -30
- package/dist/contentful-management.legacy.js.map +1 -1
- package/dist/contentful-management.legacy.min.js +1 -1
- package/dist/contentful-management.node.js +29 -25
- 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/api-key.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/organization.js +2 -2
- package/dist/es-modules/adapters/REST/endpoints/space.js +4 -4
- package/dist/es-modules/adapters/REST/rest-adapter.js +1 -1
- package/dist/es-modules/common-utils.js +1 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/entities/locale.js +1 -1
- package/dist/es-modules/plain/as-iterator.js +12 -8
- package/dist/typings/common-types.d.ts +1 -0
- package/dist/typings/create-entry-api.d.ts +3 -3
- package/dist/typings/create-environment-api.d.ts +4 -3
- package/dist/typings/entities/api-key.d.ts +1 -1578
- package/dist/typings/entities/app-bundle.d.ts +1 -1578
- package/dist/typings/entities/app-definition.d.ts +1 -1578
- package/dist/typings/entities/app-installation.d.ts +1 -1578
- package/dist/typings/entities/app-upload.d.ts +1 -1578
- package/dist/typings/entities/asset.d.ts +1 -1577
- package/dist/typings/entities/comment.d.ts +1 -1578
- package/dist/typings/entities/content-type.d.ts +1 -1578
- package/dist/typings/entities/editor-interface.d.ts +8 -1585
- package/dist/typings/entities/entry.d.ts +1 -1578
- package/dist/typings/entities/environment-alias.d.ts +1 -1578
- package/dist/typings/entities/environment.d.ts +1 -1578
- package/dist/typings/entities/extension.d.ts +1 -1578
- package/dist/typings/entities/locale.d.ts +1 -1578
- package/dist/typings/entities/organization-membership.d.ts +1 -1578
- package/dist/typings/entities/organization.d.ts +1 -1578
- package/dist/typings/entities/personal-access-token.d.ts +1 -1578
- package/dist/typings/entities/preview-api-key.d.ts +1 -1578
- package/dist/typings/entities/release-action.d.ts +1 -1578
- package/dist/typings/entities/role.d.ts +1 -1578
- package/dist/typings/entities/scheduled-action.d.ts +1 -1578
- package/dist/typings/entities/snapshot.d.ts +1 -1578
- package/dist/typings/entities/space-member.d.ts +1 -1578
- package/dist/typings/entities/space-membership.d.ts +1 -1578
- package/dist/typings/entities/space.d.ts +1 -1578
- package/dist/typings/entities/tag.d.ts +1 -1578
- package/dist/typings/entities/task.d.ts +1 -1578
- package/dist/typings/entities/team-membership.d.ts +1 -1578
- package/dist/typings/entities/team-space-membership.d.ts +1 -1578
- package/dist/typings/entities/team.d.ts +1 -1578
- package/dist/typings/entities/usage.d.ts +1 -1578
- package/dist/typings/entities/user.d.ts +1 -1578
- package/dist/typings/entities/webhook.d.ts +1 -1578
- package/dist/typings/export-types.d.ts +1 -1
- package/dist/typings/plain/wrappers/wrap.d.ts +4 -4
- package/package.json +8 -8
|
@@ -2181,10 +2181,10 @@ module.exports = {
|
|
|
2181
2181
|
/*!******************************************!*\
|
|
2182
2182
|
!*** ../node_modules/axios/package.json ***!
|
|
2183
2183
|
\******************************************/
|
|
2184
|
-
/*! exports provided:
|
|
2184
|
+
/*! exports provided: name, version, description, main, scripts, repository, keywords, author, license, bugs, homepage, devDependencies, browser, jsdelivr, unpkg, typings, dependencies, bundlesize, default */
|
|
2185
2185
|
/***/ (function(module) {
|
|
2186
2186
|
|
|
2187
|
-
module.exports = JSON.parse("{\"
|
|
2187
|
+
module.exports = JSON.parse("{\"name\":\"axios\",\"version\":\"0.21.4\",\"description\":\"Promise based HTTP client for the browser and node.js\",\"main\":\"index.js\",\"scripts\":{\"test\":\"grunt test\",\"start\":\"node ./sandbox/server.js\",\"build\":\"NODE_ENV=production grunt build\",\"preversion\":\"npm test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\",\"postversion\":\"git push && git push --tags\",\"examples\":\"node ./examples/server.js\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"fix\":\"eslint --fix lib/**/*.js\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/axios/axios.git\"},\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"author\":\"Matt Zabriskie\",\"license\":\"MIT\",\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"homepage\":\"https://axios-http.com\",\"devDependencies\":{\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.3.0\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^23.0.0\",\"grunt-karma\":\"^4.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^4.0.2\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^6.3.2\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-firefox-launcher\":\"^2.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^4.3.6\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^8.2.1\",\"sinon\":\"^4.5.0\",\"terser-webpack-plugin\":\"^4.2.3\",\"typescript\":\"^4.0.5\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^4.44.2\",\"webpack-dev-server\":\"^3.11.0\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"jsdelivr\":\"dist/axios.min.js\",\"unpkg\":\"dist/axios.min.js\",\"typings\":\"./index.d.ts\",\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}]}");
|
|
2188
2188
|
|
|
2189
2189
|
/***/ }),
|
|
2190
2190
|
|
|
@@ -6191,9 +6191,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6191
6191
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createWithId", function() { return createWithId; });
|
|
6192
6192
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "update", function() { return update; });
|
|
6193
6193
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "del", function() { return del; });
|
|
6194
|
-
/* harmony import */ var
|
|
6195
|
-
/* harmony import */ var
|
|
6196
|
-
/* harmony import */ var
|
|
6194
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.js");
|
|
6195
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_0__);
|
|
6196
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
6197
6197
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
6198
6198
|
|
|
6199
6199
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -6203,27 +6203,27 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6203
6203
|
|
|
6204
6204
|
|
|
6205
6205
|
var get = function get(http, params) {
|
|
6206
|
-
return
|
|
6206
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["get"](http, "/spaces/".concat(params.spaceId, "/api_keys/").concat(params.apiKeyId));
|
|
6207
6207
|
};
|
|
6208
6208
|
var getMany = function getMany(http, params) {
|
|
6209
|
-
return
|
|
6209
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["get"](http, "/spaces/".concat(params.spaceId, "/api_keys"), {
|
|
6210
6210
|
params: params.query
|
|
6211
6211
|
});
|
|
6212
6212
|
};
|
|
6213
6213
|
var create = function create(http, params, data, headers) {
|
|
6214
|
-
return
|
|
6214
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["post"](http, "/spaces/".concat(params.spaceId, "/api_keys"), data, {
|
|
6215
6215
|
headers: headers
|
|
6216
6216
|
});
|
|
6217
6217
|
};
|
|
6218
6218
|
var createWithId = function createWithId(http, params, data, headers) {
|
|
6219
|
-
return
|
|
6219
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["put"](http, "/spaces/".concat(params.spaceId, "/api_keys/").concat(params.apiKeyId), data, {
|
|
6220
6220
|
headers: headers
|
|
6221
6221
|
});
|
|
6222
6222
|
};
|
|
6223
6223
|
var update = function update(http, params, rawData, headers) {
|
|
6224
6224
|
var _rawData$sys$version;
|
|
6225
6225
|
|
|
6226
|
-
var data =
|
|
6226
|
+
var data = fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(rawData);
|
|
6227
6227
|
|
|
6228
6228
|
if ('accessToken' in data) {
|
|
6229
6229
|
delete data.accessToken;
|
|
@@ -6238,14 +6238,14 @@ var update = function update(http, params, rawData, headers) {
|
|
|
6238
6238
|
}
|
|
6239
6239
|
|
|
6240
6240
|
delete data.sys;
|
|
6241
|
-
return
|
|
6241
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["put"](http, "/spaces/".concat(params.spaceId, "/api_keys/").concat(params.apiKeyId), data, {
|
|
6242
6242
|
headers: _objectSpread({
|
|
6243
6243
|
'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
|
|
6244
6244
|
}, headers)
|
|
6245
6245
|
});
|
|
6246
6246
|
};
|
|
6247
6247
|
var del = function del(http, params) {
|
|
6248
|
-
return
|
|
6248
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["del"](http, "/spaces/".concat(params.spaceId, "/api_keys/").concat(params.apiKeyId));
|
|
6249
6249
|
};
|
|
6250
6250
|
|
|
6251
6251
|
/***/ }),
|
|
@@ -7820,10 +7820,10 @@ var get = function get(http, params) {
|
|
|
7820
7820
|
});
|
|
7821
7821
|
|
|
7822
7822
|
if (!org) {
|
|
7823
|
-
var error = new Error("No organization was found with the ID ".concat(params.organizationId, " instead got ").concat(JSON.stringify(data))); // eslint-disable-next-line @typescript-eslint/ban-ts-
|
|
7823
|
+
var error = new Error("No organization was found with the ID ".concat(params.organizationId, " instead got ").concat(JSON.stringify(data))); // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
7824
7824
|
// @ts-ignore
|
|
7825
7825
|
|
|
7826
|
-
error.status = 404; // eslint-disable-next-line @typescript-eslint/ban-ts-
|
|
7826
|
+
error.status = 404; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
7827
7827
|
// @ts-ignore
|
|
7828
7828
|
|
|
7829
7829
|
error.statusText = 'Not Found';
|
|
@@ -8386,14 +8386,14 @@ var create = function create(http, params, payload, headers) {
|
|
|
8386
8386
|
}) : headers
|
|
8387
8387
|
});
|
|
8388
8388
|
};
|
|
8389
|
-
var update = function update(http, params,
|
|
8390
|
-
var
|
|
8389
|
+
var update = function update(http, params, rawData, headers) {
|
|
8390
|
+
var _rawData$sys$version;
|
|
8391
8391
|
|
|
8392
|
-
var data = fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(
|
|
8392
|
+
var data = fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(rawData);
|
|
8393
8393
|
delete data.sys;
|
|
8394
8394
|
return _raw__WEBPACK_IMPORTED_MODULE_1__["put"](http, "/spaces/".concat(params.spaceId), data, {
|
|
8395
8395
|
headers: _objectSpread({
|
|
8396
|
-
'X-Contentful-Version': (
|
|
8396
|
+
'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
|
|
8397
8397
|
}, headers)
|
|
8398
8398
|
});
|
|
8399
8399
|
};
|
|
@@ -9114,7 +9114,7 @@ var RestAdapter = /*#__PURE__*/function () {
|
|
|
9114
9114
|
entityType = _ref.entityType, actionInput = _ref.action, params = _ref.params, payload = _ref.payload, headers = _ref.headers, userAgent = _ref.userAgent;
|
|
9115
9115
|
// `delete` is a reserved keyword. Therefore, the methods are called `del`.
|
|
9116
9116
|
action = actionInput === 'delete' ? 'del' : actionInput;
|
|
9117
|
-
endpoint = // eslint-disable-next-line @typescript-eslint/ban-ts-
|
|
9117
|
+
endpoint = // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
9118
9118
|
// @ts-ignore
|
|
9119
9119
|
(_endpoints$entityType = _endpoints__WEBPACK_IMPORTED_MODULE_3__["default"][entityType]) === null || _endpoints$entityType === void 0 ? void 0 : _endpoints$entityType[action];
|
|
9120
9120
|
|
|
@@ -9174,7 +9174,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9174
9174
|
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js");
|
|
9175
9175
|
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.js");
|
|
9176
9176
|
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_1__);
|
|
9177
|
-
/* eslint-disable @typescript-eslint/ban-ts-
|
|
9177
|
+
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
9178
9178
|
|
|
9179
9179
|
|
|
9180
9180
|
|
|
@@ -9714,7 +9714,7 @@ function createClient(params) {
|
|
|
9714
9714
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9715
9715
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
9716
9716
|
var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
|
|
9717
|
-
"".concat(sdkMain, "/").concat("7.
|
|
9717
|
+
"".concat(sdkMain, "/").concat("7.45.2"), params.application, params.integration, params.feature);
|
|
9718
9718
|
var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
9719
9719
|
// https://github.com/microsoft/TypeScript/issues/26591
|
|
9720
9720
|
// @ts-expect-error
|
|
@@ -17112,7 +17112,7 @@ function createLocaleApi(makeRequest) {
|
|
|
17112
17112
|
|
|
17113
17113
|
|
|
17114
17114
|
function wrapLocale(makeRequest, data) {
|
|
17115
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-
|
|
17115
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
17116
17116
|
// @ts-ignore
|
|
17117
17117
|
delete data.internal_code;
|
|
17118
17118
|
var locale = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["toPlainObject"])(fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(data));
|
|
@@ -19154,7 +19154,7 @@ var asIterator = function asIterator(fn, params) {
|
|
|
19154
19154
|
var _this = this;
|
|
19155
19155
|
|
|
19156
19156
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
19157
|
-
var _yield$currentResult, total, items, skip, limit, value, endOfPage, endOfList;
|
|
19157
|
+
var _yield$currentResult, _yield$currentResult$, total, _yield$currentResult$2, items, _yield$currentResult$3, skip, _yield$currentResult$4, limit, value, endOfPage, endOfList;
|
|
19158
19158
|
|
|
19159
19159
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
19160
19160
|
while (1) {
|
|
@@ -19165,13 +19165,17 @@ var asIterator = function asIterator(fn, params) {
|
|
|
19165
19165
|
|
|
19166
19166
|
case 2:
|
|
19167
19167
|
_yield$currentResult = _context.sent;
|
|
19168
|
-
|
|
19169
|
-
|
|
19170
|
-
|
|
19171
|
-
|
|
19168
|
+
_yield$currentResult$ = _yield$currentResult.total;
|
|
19169
|
+
total = _yield$currentResult$ === void 0 ? 0 : _yield$currentResult$;
|
|
19170
|
+
_yield$currentResult$2 = _yield$currentResult.items;
|
|
19171
|
+
items = _yield$currentResult$2 === void 0 ? [] : _yield$currentResult$2;
|
|
19172
|
+
_yield$currentResult$3 = _yield$currentResult.skip;
|
|
19173
|
+
skip = _yield$currentResult$3 === void 0 ? 0 : _yield$currentResult$3;
|
|
19174
|
+
_yield$currentResult$4 = _yield$currentResult.limit;
|
|
19175
|
+
limit = _yield$currentResult$4 === void 0 ? 100 : _yield$currentResult$4;
|
|
19172
19176
|
|
|
19173
19177
|
if (!(total === _this.current)) {
|
|
19174
|
-
_context.next =
|
|
19178
|
+
_context.next = 13;
|
|
19175
19179
|
break;
|
|
19176
19180
|
}
|
|
19177
19181
|
|
|
@@ -19180,7 +19184,7 @@ var asIterator = function asIterator(fn, params) {
|
|
|
19180
19184
|
value: null
|
|
19181
19185
|
});
|
|
19182
19186
|
|
|
19183
|
-
case
|
|
19187
|
+
case 13:
|
|
19184
19188
|
value = items[_this.current++ - skip];
|
|
19185
19189
|
endOfPage = _this.current % limit === 0;
|
|
19186
19190
|
endOfList = _this.current === total;
|
|
@@ -19199,7 +19203,7 @@ var asIterator = function asIterator(fn, params) {
|
|
|
19199
19203
|
value: value
|
|
19200
19204
|
});
|
|
19201
19205
|
|
|
19202
|
-
case
|
|
19206
|
+
case 18:
|
|
19203
19207
|
case "end":
|
|
19204
19208
|
return _context.stop();
|
|
19205
19209
|
}
|