contentful-management 11.35.0 → 11.36.0-beta.1
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 +13 -8
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +14 -10
- 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/access-token.js +5 -5
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/create-environment-api.js +5 -2
- package/dist/es-modules/entities/scheduled-action.js +2 -2
- package/dist/typings/adapters/REST/endpoints/access-token.d.ts +5 -5
- package/dist/typings/common-types.d.ts +16 -16
- package/dist/typings/create-contentful-api.d.ts +3 -3
- package/dist/typings/create-environment-api.d.ts +1 -1
- package/dist/typings/entities/access-token.d.ts +4 -4
- package/dist/typings/entities/organization.d.ts +4 -4
- package/dist/typings/entities/personal-access-token.d.ts +4 -4
- package/dist/typings/entities/release-action.d.ts +1 -0
- package/dist/typings/entities/scheduled-action.d.ts +1 -1
- package/dist/typings/export-types.d.ts +3 -3
- package/dist/typings/plain/common-types.d.ts +11 -11
- package/dist/typings/plain/entities/organization.d.ts +3 -3
- package/dist/typings/plain/entities/resource-provider.d.ts +14 -11
- package/dist/typings/plain/entities/resource.d.ts +9 -7
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35
35
|
* @param {AxiosInstance} http - An Axios HTTP client instance.
|
|
36
36
|
* @param {Object} params - Parameters for the request.
|
|
37
37
|
* @param {string} params.tokenId - The unique token ID of the access token to retrieve.
|
|
38
|
-
* @returns {Promise<
|
|
38
|
+
* @returns {Promise<AccessTokenProps>} A Promise that resolves with the retrieved access token information.
|
|
39
39
|
* @example ```javascript
|
|
40
40
|
* const contentful = require('contentful-management')
|
|
41
41
|
*
|
|
@@ -59,7 +59,7 @@ var get = function get(http, params) {
|
|
|
59
59
|
*
|
|
60
60
|
* @param {AxiosInstance} http - An Axios HTTP client instance.
|
|
61
61
|
* @param {QueryParams} params - Query parameters to filter and customize the request.
|
|
62
|
-
* @returns {Promise<CollectionProp<
|
|
62
|
+
* @returns {Promise<CollectionProp<AccessTokenProps>>} A Promise that resolves with a collection of access token properties.
|
|
63
63
|
* @example ```javascript
|
|
64
64
|
* const contentful = require('contentful-management')
|
|
65
65
|
*
|
|
@@ -87,7 +87,7 @@ var getMany = function getMany(http, params) {
|
|
|
87
87
|
* @param {Object} _params - Unused parameters (can be an empty object).
|
|
88
88
|
* @param {CreatePersonalAccessTokenProps} rawData - Data for creating the personal access token.
|
|
89
89
|
* @param {RawAxiosRequestHeaders} [headers] - Optional HTTP headers for the request.
|
|
90
|
-
* @returns {Promise<
|
|
90
|
+
* @returns {Promise<AccessTokenProps>} A Promise that resolves with the created personal access token.
|
|
91
91
|
* @example ```javascript
|
|
92
92
|
* const contentful = require('contentful-management')
|
|
93
93
|
*
|
|
@@ -114,7 +114,7 @@ var createPersonalAccessToken = function createPersonalAccessToken(http, _params
|
|
|
114
114
|
* @param {AxiosInstance} http - The Axios HTTP client instance.
|
|
115
115
|
* @param {Object} params - The parameters for revoking the access token.
|
|
116
116
|
* @param {string} params.tokenId - The unique identifier of the access token to revoke.
|
|
117
|
-
* @returns {Promise<
|
|
117
|
+
* @returns {Promise<AccessTokenProps>} A Promise that resolves with the updated access token information after revocation.
|
|
118
118
|
* @example ```javascript
|
|
119
119
|
* const contentful = require('contentful-management')
|
|
120
120
|
*
|
|
@@ -139,7 +139,7 @@ var revoke = function revoke(http, params) {
|
|
|
139
139
|
* @param {AxiosInstance} http - The Axios HTTP client instance.
|
|
140
140
|
* @param {GetOrganizationParams & QueryParams} params - Parameters for the request, including organization ID and query parameters.
|
|
141
141
|
* @param {string} params.organizationId - The unique identifier of the organization.
|
|
142
|
-
* @returns {Promise<CollectionProp<
|
|
142
|
+
* @returns {Promise<CollectionProp<AccessTokenProps>>} A promise that resolves to a collection of access tokens.
|
|
143
143
|
* @example ```javascript
|
|
144
144
|
* const contentful = require('contentful-management')
|
|
145
145
|
*
|
|
@@ -7843,13 +7843,17 @@ function createEnvironmentApi(makeRequest) {
|
|
|
7843
7843
|
* ```
|
|
7844
7844
|
*/
|
|
7845
7845
|
getLocales: function getLocales() {
|
|
7846
|
+
var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7846
7847
|
var raw = this.toPlainObject();
|
|
7847
7848
|
return makeRequest({
|
|
7848
7849
|
entityType: 'Locale',
|
|
7849
7850
|
action: 'getMany',
|
|
7850
7851
|
params: {
|
|
7851
7852
|
spaceId: raw.sys.space.sys.id,
|
|
7852
|
-
environmentId: raw.sys.id
|
|
7853
|
+
environmentId: raw.sys.id,
|
|
7854
|
+
query: (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({
|
|
7855
|
+
query: query
|
|
7856
|
+
}).params
|
|
7853
7857
|
}
|
|
7854
7858
|
}).then(function (data) {
|
|
7855
7859
|
return wrapLocaleCollection(makeRequest, data);
|
|
@@ -15660,6 +15664,7 @@ var wrapRoleCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapColle
|
|
|
15660
15664
|
"use strict";
|
|
15661
15665
|
__webpack_require__.r(__webpack_exports__);
|
|
15662
15666
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15667
|
+
/* harmony export */ ScheduledActionStatus: function() { return /* binding */ ScheduledActionStatus; },
|
|
15663
15668
|
/* harmony export */ "default": function() { return /* binding */ getInstanceMethods; },
|
|
15664
15669
|
/* harmony export */ wrapScheduledAction: function() { return /* binding */ wrapScheduledAction; },
|
|
15665
15670
|
/* harmony export */ wrapScheduledActionCollection: function() { return /* binding */ wrapScheduledActionCollection; }
|
|
@@ -15690,7 +15695,7 @@ var ScheduledActionStatus = /*#__PURE__*/function (ScheduledActionStatus) {
|
|
|
15690
15695
|
ScheduledActionStatus["failed"] = "failed";
|
|
15691
15696
|
ScheduledActionStatus["canceled"] = "canceled";
|
|
15692
15697
|
return ScheduledActionStatus;
|
|
15693
|
-
}(
|
|
15698
|
+
}({});
|
|
15694
15699
|
function getInstanceMethods(makeRequest) {
|
|
15695
15700
|
var getParams = function getParams(self) {
|
|
15696
15701
|
var _scheduledAction$envi;
|
|
@@ -27732,7 +27737,7 @@ function createClient(params) {
|
|
|
27732
27737
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27733
27738
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
27734
27739
|
var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)( // @ts-expect-error
|
|
27735
|
-
"".concat(sdkMain, "/").concat("11.
|
|
27740
|
+
"".concat(sdkMain, "/").concat("11.36.0-beta.1"), params.application, params.integration, params.feature);
|
|
27736
27741
|
var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
27737
27742
|
userAgent: userAgent
|
|
27738
27743
|
}));
|