contentful-management 11.57.1 → 11.57.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.
@@ -13637,74 +13637,38 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
13637
13637
 
13638
13638
 
13639
13639
 
13640
-
13641
- // Raw App Action call response (new endpoint). Not yet wired to runtime behavior.
13642
-
13643
13640
  /**
13644
13641
  * @private
13645
13642
  */
13646
13643
  function createAppActionCallApi(makeRequest, retryOptions) {
13647
13644
  return {
13648
- createWithResponse: function () {
13649
- const payload = {
13650
- parameters: {
13651
- recipient: 'Alice <alice@my-company.com>',
13652
- message_body: 'Hello from Bob!'
13653
- }
13654
- };
13645
+ createWithResponse: function (params, payload) {
13655
13646
  return makeRequest({
13656
13647
  entityType: 'AppActionCall',
13657
13648
  action: 'createWithResponse',
13658
- params: _objectSpread({
13659
- spaceId: 'space-id',
13660
- environmentId: 'environment-id',
13661
- appDefinitionId: 'app-definiton-id',
13662
- appActionId: 'app-action-id'
13663
- }, retryOptions),
13649
+ params: _objectSpread(_objectSpread({}, params), retryOptions),
13664
13650
  payload: payload
13665
13651
  }).then(data => wrapAppActionCallResponse(makeRequest, data));
13666
13652
  },
13667
- getCallDetails: function getCallDetails() {
13653
+ getCallDetails: function getCallDetails(params) {
13668
13654
  return makeRequest({
13669
13655
  entityType: 'AppActionCall',
13670
13656
  action: 'getCallDetails',
13671
- params: {
13672
- spaceId: 'space-id',
13673
- environmentId: 'environment-id',
13674
- callId: 'call-id',
13675
- appActionId: 'app-action-id'
13676
- }
13657
+ params
13677
13658
  }).then(data => wrapAppActionCallResponse(makeRequest, data));
13678
13659
  },
13679
- get: function get() {
13660
+ get: function get(params) {
13680
13661
  return makeRequest({
13681
13662
  entityType: 'AppActionCall',
13682
13663
  action: 'get',
13683
- params: {
13684
- spaceId: 'space-id',
13685
- environmentId: 'environment-id',
13686
- appDefinitionId: 'app-definiton-id',
13687
- appActionId: 'app-action-id',
13688
- callId: 'call-id'
13689
- }
13664
+ params
13690
13665
  }).then(data => wrapAppActionCall(makeRequest, data));
13691
13666
  },
13692
- createWithResult: function () {
13693
- const payload = {
13694
- parameters: {
13695
- recipient: 'Alice <alice@my-company.com>',
13696
- message_body: 'Hello from Bob!'
13697
- }
13698
- };
13667
+ createWithResult: function (params, payload) {
13699
13668
  return makeRequest({
13700
13669
  entityType: 'AppActionCall',
13701
13670
  action: 'createWithResult',
13702
- params: _objectSpread({
13703
- spaceId: 'space-id',
13704
- environmentId: 'environment-id',
13705
- appDefinitionId: 'app-definiton-id',
13706
- appActionId: 'app-action-id'
13707
- }, retryOptions),
13671
+ params: _objectSpread(_objectSpread({}, params), retryOptions),
13708
13672
  payload: payload
13709
13673
  }).then(data => wrapAppActionCall(makeRequest, data));
13710
13674
  }
@@ -25499,9 +25463,9 @@ const DEFAULT_CHUNK_SIZE = 64 * 1024;
25499
25463
 
25500
25464
  const {isFunction} = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"];
25501
25465
 
25502
- const globalFetchAPI = (({fetch, Request, Response}) => ({
25503
- fetch, Request, Response
25504
- }))(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].global);
25466
+ const globalFetchAPI = (({Request, Response}) => ({
25467
+ Request, Response
25468
+ }))(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].global);
25505
25469
 
25506
25470
  const {
25507
25471
  ReadableStream, TextEncoder
@@ -25517,8 +25481,12 @@ const test = (fn, ...args) => {
25517
25481
  }
25518
25482
 
25519
25483
  const factory = (env) => {
25520
- const {fetch, Request, Response} = Object.assign({}, globalFetchAPI, env);
25521
- const isFetchSupported = isFunction(fetch);
25484
+ env = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge.call({
25485
+ skipUndefined: true
25486
+ }, globalFetchAPI, env);
25487
+
25488
+ const {fetch: envFetch, Request, Response} = env;
25489
+ const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
25522
25490
  const isRequestSupported = isFunction(Request);
25523
25491
  const isResponseSupported = isFunction(Response);
25524
25492
 
@@ -25621,6 +25589,8 @@ const factory = (env) => {
25621
25589
  fetchOptions
25622
25590
  } = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(config);
25623
25591
 
25592
+ let _fetch = envFetch || fetch;
25593
+
25624
25594
  responseType = responseType ? (responseType + '').toLowerCase() : 'text';
25625
25595
 
25626
25596
  let composedSignal = (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__["default"])([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
@@ -25680,7 +25650,7 @@ const factory = (env) => {
25680
25650
 
25681
25651
  request = isRequestSupported && new Request(url, resolvedOptions);
25682
25652
 
25683
- let response = await (isRequestSupported ? fetch(request, fetchOptions) : fetch(url, resolvedOptions));
25653
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
25684
25654
 
25685
25655
  const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
25686
25656
 
@@ -25743,12 +25713,8 @@ const factory = (env) => {
25743
25713
  const seedCache = new Map();
25744
25714
 
25745
25715
  const getFetch = (config) => {
25746
- let env = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge.call({
25747
- skipUndefined: true
25748
- }, globalFetchAPI, config ? config.env : null);
25749
-
25716
+ let env = config ? config.env : {};
25750
25717
  const {fetch, Request, Response} = env;
25751
-
25752
25718
  const seeds = [
25753
25719
  Request, Response, fetch
25754
25720
  ];
@@ -27280,8 +27246,6 @@ class Axios {
27280
27246
 
27281
27247
  let newConfig = config;
27282
27248
 
27283
- i = 0;
27284
-
27285
27249
  while (i < len) {
27286
27250
  const onFulfilled = requestInterceptorChain[i++];
27287
27251
  const onRejected = requestInterceptorChain[i++];
@@ -28467,7 +28431,7 @@ __webpack_require__.r(__webpack_exports__);
28467
28431
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
28468
28432
  /* harmony export */ VERSION: () => (/* binding */ VERSION)
28469
28433
  /* harmony export */ });
28470
- const VERSION = "1.12.0";
28434
+ const VERSION = "1.12.2";
28471
28435
 
28472
28436
  /***/ }),
28473
28437
 
@@ -31108,10 +31072,8 @@ function merge(/* obj1, obj2, obj3, ... */) {
31108
31072
  result[targetKey] = merge({}, val);
31109
31073
  } else if (isArray(val)) {
31110
31074
  result[targetKey] = val.slice();
31111
- } else {
31112
- if (!skipUndefined || !isUndefined(val)) {
31113
- result[targetKey] = val;
31114
- }
31075
+ } else if (!skipUndefined || !isUndefined(val)) {
31076
+ result[targetKey] = val;
31115
31077
  }
31116
31078
  }
31117
31079
 
@@ -33003,7 +32965,7 @@ function createClient(params, opts = {}) {
33003
32965
  const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
33004
32966
  const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
33005
32967
  // @ts-expect-error
33006
- `${sdkMain}/${"11.57.1"}`, params.application, params.integration, params.feature);
32968
+ `${sdkMain}/${"11.57.3"}`, params.application, params.integration, params.feature);
33007
32969
  const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
33008
32970
  userAgent
33009
32971
  }));