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.
@@ -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<AccessTokenProp>} A Promise that resolves with the retrieved access token information.
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<AccessTokenProp>>} A Promise that resolves with a collection of access token properties.
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<AccessTokenProp>} A Promise that resolves with the created personal access token.
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<AccessTokenProp>} A Promise that resolves with the updated access token information after revocation.
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<AccessTokenProp>>} A promise that resolves to a collection of access tokens.
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
- }(ScheduledActionStatus || {});
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.35.0"), params.application, params.integration, params.feature);
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
  }));