contentful-management 11.54.1 → 11.54.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.
@@ -1810,7 +1810,7 @@ const getMany = (http, params) => {
1810
1810
  var _params$query$pageUrl, _params$query, _params$query2;
1811
1811
  const url = (_params$query$pageUrl = (_params$query = params.query) === null || _params$query === void 0 ? void 0 : _params$query.pageUrl) !== null && _params$query$pageUrl !== void 0 ? _params$query$pageUrl : basePath(params.organizationId);
1812
1812
  return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, url, {
1813
- params: (_params$query2 = params.query) !== null && _params$query2 !== void 0 && _params$query2.pageUrl ? {} : params.query
1813
+ params: (_params$query2 = params.query) !== null && _params$query2 !== void 0 && _params$query2.pageUrl ? undefined : params.query
1814
1814
  });
1815
1815
  };
1816
1816
  const getTotal = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `${basePath(params.organizationId)}/total`);
@@ -1946,11 +1946,10 @@ const getTotal = (http, params) => _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `
1946
1946
  function cursorBasedCollection(path, params) {
1947
1947
  var _params$query, _params$query2;
1948
1948
  return (_params$query = params.query) !== null && _params$query !== void 0 && _params$query.pageUrl ? {
1949
- url: (_params$query2 = params.query) === null || _params$query2 === void 0 ? void 0 : _params$query2.pageUrl,
1950
- queryParams: {}
1949
+ url: (_params$query2 = params.query) === null || _params$query2 === void 0 ? void 0 : _params$query2.pageUrl
1951
1950
  } : {
1952
1951
  url: `${basePath(params.organizationId)}${path}`,
1953
- queryParams: params.query || {}
1952
+ queryParams: params.query
1954
1953
  };
1955
1954
  }
1956
1955
 
@@ -13279,8 +13278,6 @@ const wrapAccessTokenCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.
13279
13278
  __webpack_require__.r(__webpack_exports__);
13280
13279
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13281
13280
  /* harmony export */ AiActionOutputFormat: () => (/* binding */ AiActionOutputFormat),
13282
- /* harmony export */ InvocationResultType: () => (/* binding */ InvocationResultType),
13283
- /* harmony export */ InvocationStatus: () => (/* binding */ InvocationStatus),
13284
13281
  /* harmony export */ wrapAiActionInvocation: () => (/* binding */ wrapAiActionInvocation),
13285
13282
  /* harmony export */ wrapAiActionInvocationCollection: () => (/* binding */ wrapAiActionInvocationCollection)
13286
13283
  /* harmony export */ });
@@ -13290,18 +13287,6 @@ __webpack_require__.r(__webpack_exports__);
13290
13287
 
13291
13288
 
13292
13289
 
13293
- let InvocationStatus = /*#__PURE__*/function (InvocationStatus) {
13294
- InvocationStatus["Scheduled"] = "SCHEDULED";
13295
- InvocationStatus["InProgress"] = "IN_PROGRESS";
13296
- InvocationStatus["Failed"] = "FAILED";
13297
- InvocationStatus["Completed"] = "COMPLETED";
13298
- InvocationStatus["Cancelled"] = "CANCELLED";
13299
- return InvocationStatus;
13300
- }({});
13301
- let InvocationResultType = /*#__PURE__*/function (InvocationResultType) {
13302
- InvocationResultType["Text"] = "text";
13303
- return InvocationResultType;
13304
- }({});
13305
13290
  const AiActionOutputFormat = {
13306
13291
  RichText: 'RichText',
13307
13292
  Markdown: 'Markdown',
@@ -13345,9 +13330,6 @@ const wrapAiActionInvocationCollection = (0,_common_utils__WEBPACK_IMPORTED_MODU
13345
13330
  "use strict";
13346
13331
  __webpack_require__.r(__webpack_exports__);
13347
13332
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13348
- /* harmony export */ EntityTypeEntry: () => (/* binding */ EntityTypeEntry),
13349
- /* harmony export */ StatusFilter: () => (/* binding */ StatusFilter),
13350
- /* harmony export */ VariableType: () => (/* binding */ VariableType),
13351
13333
  /* harmony export */ wrapAiAction: () => (/* binding */ wrapAiAction),
13352
13334
  /* harmony export */ wrapAiActionCollection: () => (/* binding */ wrapAiActionCollection)
13353
13335
  /* harmony export */ });
@@ -13361,25 +13343,6 @@ __webpack_require__.r(__webpack_exports__);
13361
13343
 
13362
13344
 
13363
13345
 
13364
- let StatusFilter = /*#__PURE__*/function (StatusFilter) {
13365
- StatusFilter["ALL"] = "all";
13366
- StatusFilter["PUBLISHED"] = "published";
13367
- return StatusFilter;
13368
- }({});
13369
- let VariableType = /*#__PURE__*/function (VariableType) {
13370
- VariableType["RESOURCE_LINK"] = "ResourceLink";
13371
- VariableType["TEXT"] = "Text";
13372
- VariableType["STANDARD_INPUT"] = "StandardInput";
13373
- VariableType["LOCALE"] = "Locale";
13374
- VariableType["MEDIA_REFERENCE"] = "MediaReference";
13375
- VariableType["REFERENCE"] = "Reference";
13376
- VariableType["SMART_CONTEXT"] = "SmartContext";
13377
- return VariableType;
13378
- }({});
13379
- let EntityTypeEntry = /*#__PURE__*/function (EntityTypeEntry) {
13380
- EntityTypeEntry["ENTRY"] = "Entry";
13381
- return EntityTypeEntry;
13382
- }({});
13383
13346
  function createAiActionApi(makeRequest) {
13384
13347
  const getParams = data => ({
13385
13348
  spaceId: data.sys.space.sys.id,
@@ -19111,7 +19074,7 @@ function save(namespaces) {
19111
19074
  function load() {
19112
19075
  let r;
19113
19076
  try {
19114
- r = exports.storage.getItem('debug');
19077
+ r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
19115
19078
  } catch (error) {
19116
19079
  // Swallow
19117
19080
  // XXX (@Qix-) should we be logging these?
@@ -19342,7 +19305,7 @@ function setup(env) {
19342
19305
 
19343
19306
  const split = (typeof namespaces === 'string' ? namespaces : '')
19344
19307
  .trim()
19345
- .replace(' ', ',')
19308
+ .replace(/\s+/g, ',')
19346
19309
  .split(',')
19347
19310
  .filter(Boolean);
19348
19311
 
@@ -32621,7 +32584,7 @@ function createClient(params, opts = {}) {
32621
32584
  const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
32622
32585
  const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
32623
32586
  // @ts-expect-error
32624
- `${sdkMain}/${"11.54.1"}`, params.application, params.integration, params.feature);
32587
+ `${sdkMain}/${"11.54.3"}`, params.application, params.integration, params.feature);
32625
32588
  const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
32626
32589
  userAgent
32627
32590
  }));