contentful-management 7.44.2 → 7.45.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 +52 -68
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.legacy.js +52 -68
- package/dist/contentful-management.legacy.js.map +1 -1
- package/dist/contentful-management.legacy.min.js +1 -1
- package/dist/contentful-management.node.js +47 -63
- 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/constants/editor-interface-defaults/sidebar-defaults.js +1 -8
- 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/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 +14 -13
|
@@ -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
|
|
|
@@ -2683,15 +2683,16 @@ var rateLimitThrottle = (function (axiosInstance) {
|
|
|
2683
2683
|
};
|
|
2684
2684
|
});
|
|
2685
2685
|
|
|
2686
|
-
var attempts = {};
|
|
2687
|
-
var networkErrorAttempts = 0;
|
|
2688
|
-
|
|
2689
2686
|
var delay = function delay(ms) {
|
|
2690
2687
|
return new Promise(function (resolve) {
|
|
2691
2688
|
setTimeout(resolve, ms);
|
|
2692
2689
|
});
|
|
2693
2690
|
};
|
|
2694
2691
|
|
|
2692
|
+
var defaultWait = function defaultWait(attempts) {
|
|
2693
|
+
return Math.pow(Math.SQRT2, attempts);
|
|
2694
|
+
};
|
|
2695
|
+
|
|
2695
2696
|
function rateLimit(instance) {
|
|
2696
2697
|
var maxRetry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
|
|
2697
2698
|
var _instance$defaults = instance.defaults,
|
|
@@ -2717,40 +2718,24 @@ function rateLimit(instance) {
|
|
|
2717
2718
|
|
|
2718
2719
|
if (!config || !instance.defaults.retryOnError) {
|
|
2719
2720
|
return Promise.reject(error);
|
|
2721
|
+
} // Retried already for max attempts
|
|
2722
|
+
|
|
2723
|
+
|
|
2724
|
+
var doneAttempts = config.attempts || 1;
|
|
2725
|
+
|
|
2726
|
+
if (doneAttempts > maxRetry) {
|
|
2727
|
+
error.attempts = config.attempts;
|
|
2728
|
+
return Promise.reject(error);
|
|
2720
2729
|
}
|
|
2721
2730
|
|
|
2722
2731
|
var retryErrorType = null;
|
|
2723
|
-
var wait =
|
|
2732
|
+
var wait = defaultWait(doneAttempts); // Errors without response did not receive anything from the server
|
|
2724
2733
|
|
|
2725
2734
|
if (!response) {
|
|
2726
2735
|
retryErrorType = 'Connection';
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
if (networkErrorAttempts > maxRetry) {
|
|
2730
|
-
error.attempts = networkErrorAttempts;
|
|
2731
|
-
return Promise.reject(error);
|
|
2732
|
-
}
|
|
2733
|
-
|
|
2734
|
-
wait = Math.pow(Math.SQRT2, networkErrorAttempts);
|
|
2735
|
-
response = {};
|
|
2736
|
-
} else {
|
|
2737
|
-
networkErrorAttempts = 0;
|
|
2738
|
-
}
|
|
2739
|
-
|
|
2740
|
-
if (response.status >= 500 && response.status < 600) {
|
|
2736
|
+
} else if (response.status >= 500 && response.status < 600) {
|
|
2741
2737
|
// 5** errors are server related
|
|
2742
2738
|
retryErrorType = "Server ".concat(response.status);
|
|
2743
|
-
var headers = response.headers || {};
|
|
2744
|
-
var requestId = headers['x-contentful-request-id'] || null;
|
|
2745
|
-
attempts[requestId] = attempts[requestId] || 0;
|
|
2746
|
-
attempts[requestId]++; // we reject if there are too many errors with the same request id or request id is not defined
|
|
2747
|
-
|
|
2748
|
-
if (attempts[requestId] > maxRetry || !requestId) {
|
|
2749
|
-
error.attempts = attempts[requestId];
|
|
2750
|
-
return Promise.reject(error);
|
|
2751
|
-
}
|
|
2752
|
-
|
|
2753
|
-
wait = Math.pow(Math.SQRT2, attempts[requestId]);
|
|
2754
2739
|
} else if (response.status === 429) {
|
|
2755
2740
|
// 429 errors are exceeded rate limit exceptions
|
|
2756
2741
|
retryErrorType = 'Rate limit'; // all headers are lowercased by axios https://github.com/mzabriskie/axios/issues/413
|
|
@@ -2763,7 +2748,9 @@ function rateLimit(instance) {
|
|
|
2763
2748
|
if (retryErrorType) {
|
|
2764
2749
|
// convert to ms and add jitter
|
|
2765
2750
|
wait = Math.floor(wait * 1000 + Math.random() * 200 + 500);
|
|
2766
|
-
instance.defaults.logHandler('warning', "".concat(retryErrorType, " error occurred. Waiting for ").concat(wait, " ms before retrying..."));
|
|
2751
|
+
instance.defaults.logHandler('warning', "".concat(retryErrorType, " error occurred. Waiting for ").concat(wait, " ms before retrying...")); // increase attempts counter
|
|
2752
|
+
|
|
2753
|
+
config.attempts = doneAttempts + 1;
|
|
2767
2754
|
/* Somehow between the interceptor and retrying the request the httpAgent/httpsAgent gets transformed from an Agent-like object
|
|
2768
2755
|
to a regular object, causing failures on retries after rate limits. Removing these properties here fixes the error, but retry
|
|
2769
2756
|
requests still use the original http/httpsAgent property */
|
|
@@ -8962,9 +8949,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8962
8949
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createWithId", function() { return createWithId; });
|
|
8963
8950
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "update", function() { return update; });
|
|
8964
8951
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "del", function() { return del; });
|
|
8965
|
-
/* harmony import */ var
|
|
8966
|
-
/* harmony import */ var
|
|
8967
|
-
/* harmony import */ var
|
|
8952
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.js");
|
|
8953
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_0__);
|
|
8954
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
8968
8955
|
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; }
|
|
8969
8956
|
|
|
8970
8957
|
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; }
|
|
@@ -8974,27 +8961,27 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8974
8961
|
|
|
8975
8962
|
|
|
8976
8963
|
var get = function get(http, params) {
|
|
8977
|
-
return
|
|
8964
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["get"](http, "/spaces/".concat(params.spaceId, "/api_keys/").concat(params.apiKeyId));
|
|
8978
8965
|
};
|
|
8979
8966
|
var getMany = function getMany(http, params) {
|
|
8980
|
-
return
|
|
8967
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["get"](http, "/spaces/".concat(params.spaceId, "/api_keys"), {
|
|
8981
8968
|
params: params.query
|
|
8982
8969
|
});
|
|
8983
8970
|
};
|
|
8984
8971
|
var create = function create(http, params, data, headers) {
|
|
8985
|
-
return
|
|
8972
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["post"](http, "/spaces/".concat(params.spaceId, "/api_keys"), data, {
|
|
8986
8973
|
headers: headers
|
|
8987
8974
|
});
|
|
8988
8975
|
};
|
|
8989
8976
|
var createWithId = function createWithId(http, params, data, headers) {
|
|
8990
|
-
return
|
|
8977
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["put"](http, "/spaces/".concat(params.spaceId, "/api_keys/").concat(params.apiKeyId), data, {
|
|
8991
8978
|
headers: headers
|
|
8992
8979
|
});
|
|
8993
8980
|
};
|
|
8994
8981
|
var update = function update(http, params, rawData, headers) {
|
|
8995
8982
|
var _rawData$sys$version;
|
|
8996
8983
|
|
|
8997
|
-
var data =
|
|
8984
|
+
var data = fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(rawData);
|
|
8998
8985
|
|
|
8999
8986
|
if ('accessToken' in data) {
|
|
9000
8987
|
delete data.accessToken;
|
|
@@ -9009,14 +8996,14 @@ var update = function update(http, params, rawData, headers) {
|
|
|
9009
8996
|
}
|
|
9010
8997
|
|
|
9011
8998
|
delete data.sys;
|
|
9012
|
-
return
|
|
8999
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["put"](http, "/spaces/".concat(params.spaceId, "/api_keys/").concat(params.apiKeyId), data, {
|
|
9013
9000
|
headers: _objectSpread({
|
|
9014
9001
|
'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
|
|
9015
9002
|
}, headers)
|
|
9016
9003
|
});
|
|
9017
9004
|
};
|
|
9018
9005
|
var del = function del(http, params) {
|
|
9019
|
-
return
|
|
9006
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["del"](http, "/spaces/".concat(params.spaceId, "/api_keys/").concat(params.apiKeyId));
|
|
9020
9007
|
};
|
|
9021
9008
|
|
|
9022
9009
|
/***/ }),
|
|
@@ -10591,10 +10578,10 @@ var get = function get(http, params) {
|
|
|
10591
10578
|
});
|
|
10592
10579
|
|
|
10593
10580
|
if (!org) {
|
|
10594
|
-
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-
|
|
10581
|
+
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
|
|
10595
10582
|
// @ts-ignore
|
|
10596
10583
|
|
|
10597
|
-
error.status = 404; // eslint-disable-next-line @typescript-eslint/ban-ts-
|
|
10584
|
+
error.status = 404; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
10598
10585
|
// @ts-ignore
|
|
10599
10586
|
|
|
10600
10587
|
error.statusText = 'Not Found';
|
|
@@ -11157,14 +11144,14 @@ var create = function create(http, params, payload, headers) {
|
|
|
11157
11144
|
}) : headers
|
|
11158
11145
|
});
|
|
11159
11146
|
};
|
|
11160
|
-
var update = function update(http, params,
|
|
11161
|
-
var
|
|
11147
|
+
var update = function update(http, params, rawData, headers) {
|
|
11148
|
+
var _rawData$sys$version;
|
|
11162
11149
|
|
|
11163
|
-
var data = fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(
|
|
11150
|
+
var data = fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(rawData);
|
|
11164
11151
|
delete data.sys;
|
|
11165
11152
|
return _raw__WEBPACK_IMPORTED_MODULE_1__["put"](http, "/spaces/".concat(params.spaceId), data, {
|
|
11166
11153
|
headers: _objectSpread({
|
|
11167
|
-
'X-Contentful-Version': (
|
|
11154
|
+
'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
|
|
11168
11155
|
}, headers)
|
|
11169
11156
|
});
|
|
11170
11157
|
};
|
|
@@ -11885,7 +11872,7 @@ var RestAdapter = /*#__PURE__*/function () {
|
|
|
11885
11872
|
entityType = _ref.entityType, actionInput = _ref.action, params = _ref.params, payload = _ref.payload, headers = _ref.headers, userAgent = _ref.userAgent;
|
|
11886
11873
|
// `delete` is a reserved keyword. Therefore, the methods are called `del`.
|
|
11887
11874
|
action = actionInput === 'delete' ? 'del' : actionInput;
|
|
11888
|
-
endpoint = // eslint-disable-next-line @typescript-eslint/ban-ts-
|
|
11875
|
+
endpoint = // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
11889
11876
|
// @ts-ignore
|
|
11890
11877
|
(_endpoints$entityType = _endpoints__WEBPACK_IMPORTED_MODULE_3__["default"][entityType]) === null || _endpoints$entityType === void 0 ? void 0 : _endpoints$entityType[action];
|
|
11891
11878
|
|
|
@@ -11945,7 +11932,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11945
11932
|
/* 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");
|
|
11946
11933
|
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.js");
|
|
11947
11934
|
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_1__);
|
|
11948
|
-
/* eslint-disable @typescript-eslint/ban-ts-
|
|
11935
|
+
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
11949
11936
|
|
|
11950
11937
|
|
|
11951
11938
|
|
|
@@ -12341,7 +12328,6 @@ var SidebarWidgetTypes = {
|
|
|
12341
12328
|
VERSIONS: 'versions-widget',
|
|
12342
12329
|
INFO_PANEL: 'info-panel',
|
|
12343
12330
|
JOBS: 'jobs-widget',
|
|
12344
|
-
TASKS: 'content-workflows-tasks-widget',
|
|
12345
12331
|
COMMENTS_PANEL: 'comments-panel'
|
|
12346
12332
|
};
|
|
12347
12333
|
var Publication = {
|
|
@@ -12356,12 +12342,6 @@ var Releases = {
|
|
|
12356
12342
|
name: 'Release',
|
|
12357
12343
|
description: 'Built-in - View release, add to it, etc.'
|
|
12358
12344
|
};
|
|
12359
|
-
var Tasks = {
|
|
12360
|
-
widgetId: SidebarWidgetTypes.TASKS,
|
|
12361
|
-
widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__["WidgetNamespace"].SIDEBAR_BUILTIN,
|
|
12362
|
-
name: 'Tasks',
|
|
12363
|
-
description: 'Built-in - Assign tasks to be completed before publishing. Currently only supported for master environment.'
|
|
12364
|
-
};
|
|
12365
12345
|
var ContentPreview = {
|
|
12366
12346
|
widgetId: SidebarWidgetTypes.CONTENT_PREVIEW,
|
|
12367
12347
|
widgetNamespace: _types__WEBPACK_IMPORTED_MODULE_0__["WidgetNamespace"].SIDEBAR_BUILTIN,
|
|
@@ -12392,7 +12372,7 @@ var Users = {
|
|
|
12392
12372
|
name: 'Users',
|
|
12393
12373
|
description: 'Built-in - Displays users on the same entry.'
|
|
12394
12374
|
};
|
|
12395
|
-
var SidebarEntryConfiguration = [Publication, Releases,
|
|
12375
|
+
var SidebarEntryConfiguration = [Publication, Releases, ContentPreview, Links, Translation, Versions, Users];
|
|
12396
12376
|
var SidebarAssetConfiguration = [Publication, Releases, Links, Translation, Users];
|
|
12397
12377
|
|
|
12398
12378
|
/***/ }),
|
|
@@ -12485,7 +12465,7 @@ function createClient(params) {
|
|
|
12485
12465
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
12486
12466
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
12487
12467
|
var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
|
|
12488
|
-
"".concat(sdkMain, "/").concat("7.
|
|
12468
|
+
"".concat(sdkMain, "/").concat("7.45.3"), params.application, params.integration, params.feature);
|
|
12489
12469
|
var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
12490
12470
|
// https://github.com/microsoft/TypeScript/issues/26591
|
|
12491
12471
|
// @ts-expect-error
|
|
@@ -19883,7 +19863,7 @@ function createLocaleApi(makeRequest) {
|
|
|
19883
19863
|
|
|
19884
19864
|
|
|
19885
19865
|
function wrapLocale(makeRequest, data) {
|
|
19886
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-
|
|
19866
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
19887
19867
|
// @ts-ignore
|
|
19888
19868
|
delete data.internal_code;
|
|
19889
19869
|
var locale = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["toPlainObject"])(fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(data));
|
|
@@ -21925,7 +21905,7 @@ var asIterator = function asIterator(fn, params) {
|
|
|
21925
21905
|
var _this = this;
|
|
21926
21906
|
|
|
21927
21907
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
21928
|
-
var _yield$currentResult, total, items, skip, limit, value, endOfPage, endOfList;
|
|
21908
|
+
var _yield$currentResult, _yield$currentResult$, total, _yield$currentResult$2, items, _yield$currentResult$3, skip, _yield$currentResult$4, limit, value, endOfPage, endOfList;
|
|
21929
21909
|
|
|
21930
21910
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
21931
21911
|
while (1) {
|
|
@@ -21936,13 +21916,17 @@ var asIterator = function asIterator(fn, params) {
|
|
|
21936
21916
|
|
|
21937
21917
|
case 2:
|
|
21938
21918
|
_yield$currentResult = _context.sent;
|
|
21939
|
-
|
|
21940
|
-
|
|
21941
|
-
|
|
21942
|
-
|
|
21919
|
+
_yield$currentResult$ = _yield$currentResult.total;
|
|
21920
|
+
total = _yield$currentResult$ === void 0 ? 0 : _yield$currentResult$;
|
|
21921
|
+
_yield$currentResult$2 = _yield$currentResult.items;
|
|
21922
|
+
items = _yield$currentResult$2 === void 0 ? [] : _yield$currentResult$2;
|
|
21923
|
+
_yield$currentResult$3 = _yield$currentResult.skip;
|
|
21924
|
+
skip = _yield$currentResult$3 === void 0 ? 0 : _yield$currentResult$3;
|
|
21925
|
+
_yield$currentResult$4 = _yield$currentResult.limit;
|
|
21926
|
+
limit = _yield$currentResult$4 === void 0 ? 100 : _yield$currentResult$4;
|
|
21943
21927
|
|
|
21944
21928
|
if (!(total === _this.current)) {
|
|
21945
|
-
_context.next =
|
|
21929
|
+
_context.next = 13;
|
|
21946
21930
|
break;
|
|
21947
21931
|
}
|
|
21948
21932
|
|
|
@@ -21951,7 +21935,7 @@ var asIterator = function asIterator(fn, params) {
|
|
|
21951
21935
|
value: null
|
|
21952
21936
|
});
|
|
21953
21937
|
|
|
21954
|
-
case
|
|
21938
|
+
case 13:
|
|
21955
21939
|
value = items[_this.current++ - skip];
|
|
21956
21940
|
endOfPage = _this.current % limit === 0;
|
|
21957
21941
|
endOfList = _this.current === total;
|
|
@@ -21970,7 +21954,7 @@ var asIterator = function asIterator(fn, params) {
|
|
|
21970
21954
|
value: value
|
|
21971
21955
|
});
|
|
21972
21956
|
|
|
21973
|
-
case
|
|
21957
|
+
case 18:
|
|
21974
21958
|
case "end":
|
|
21975
21959
|
return _context.stop();
|
|
21976
21960
|
}
|