contentful-management 11.47.3 → 11.48.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.
@@ -4862,6 +4862,13 @@ __webpack_require__.r(__webpack_exports__);
4862
4862
 
4863
4863
  // Interfaces for each “exclusive” shape
4864
4864
 
4865
+ // Helper type for creating property paths with comparison operators
4866
+ // For example "sys.createdAt[gte]", P = sys.createdAt, O = gte
4867
+
4868
+ // Helper types to ensure only one start operator can be used and only one end operator can be used
4869
+
4870
+ // Type for valid date range combinations - only start, only end, or both
4871
+
4865
4872
  /**
4866
4873
  * @private
4867
4874
  */
@@ -8855,7 +8862,17 @@ function createEnvironmentApi(makeRequest) {
8855
8862
  * environment.getFunctionLogs(
8856
8863
  * '<app-installation-id>',
8857
8864
  * '<function-id>',
8858
- * { limit: 10 },
8865
+ * {
8866
+ * query: {
8867
+ * // optional limit
8868
+ * limit: 10,
8869
+ * // optional interval query
8870
+ * 'sys.createdAt[gte]': start,
8871
+ * 'sys.createdAt[lt]': end,
8872
+ * // optional cursor based pagination parameters
8873
+ * pagePrev: '<page_prev>',
8874
+ * },
8875
+ * },
8859
8876
  * )
8860
8877
  * )
8861
8878
  * .then((functionLogs) => console.log(functionLog.items))
@@ -23580,6 +23597,15 @@ class Axios {
23580
23597
  }
23581
23598
  }
23582
23599
 
23600
+ // Set config.allowAbsoluteUrls
23601
+ if (config.allowAbsoluteUrls !== undefined) {
23602
+ // do nothing
23603
+ } else if (this.defaults.allowAbsoluteUrls !== undefined) {
23604
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
23605
+ } else {
23606
+ config.allowAbsoluteUrls = true;
23607
+ }
23608
+
23583
23609
  _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(config, {
23584
23610
  baseUrl: validators.spelling('baseURL'),
23585
23611
  withXsrfToken: validators.spelling('withXSRFToken')
@@ -23675,7 +23701,7 @@ class Axios {
23675
23701
 
23676
23702
  getUri(config) {
23677
23703
  config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this.defaults, config);
23678
- const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__["default"])(config.baseURL, config.url);
23704
+ const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__["default"])(config.baseURL, config.url, config.allowAbsoluteUrls);
23679
23705
  return (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__["default"])(fullPath, config.params, config.paramsSerializer);
23680
23706
  }
23681
23707
  }
@@ -24262,8 +24288,9 @@ __webpack_require__.r(__webpack_exports__);
24262
24288
  *
24263
24289
  * @returns {string} The combined full path
24264
24290
  */
24265
- function buildFullPath(baseURL, requestedURL) {
24266
- if (baseURL && !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__["default"])(requestedURL)) {
24291
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
24292
+ let isRelativeUrl = !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__["default"])(requestedURL);
24293
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
24267
24294
  return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__["default"])(baseURL, requestedURL);
24268
24295
  }
24269
24296
  return requestedURL;
@@ -24796,7 +24823,7 @@ __webpack_require__.r(__webpack_exports__);
24796
24823
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24797
24824
  /* harmony export */ VERSION: function() { return /* binding */ VERSION; }
24798
24825
  /* harmony export */ });
24799
- const VERSION = "1.7.9";
24826
+ const VERSION = "1.8.4";
24800
24827
 
24801
24828
  /***/ }),
24802
24829
 
@@ -25605,7 +25632,7 @@ __webpack_require__.r(__webpack_exports__);
25605
25632
 
25606
25633
  newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(headers);
25607
25634
 
25608
- newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__["default"])(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
25635
+ newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__["default"])(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
25609
25636
 
25610
25637
  // HTTP basic authentication
25611
25638
  if (auth) {
@@ -27076,26 +27103,6 @@ const toFiniteNumber = (value, defaultValue) => {
27076
27103
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
27077
27104
  }
27078
27105
 
27079
- const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
27080
-
27081
- const DIGIT = '0123456789';
27082
-
27083
- const ALPHABET = {
27084
- DIGIT,
27085
- ALPHA,
27086
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
27087
- }
27088
-
27089
- const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
27090
- let str = '';
27091
- const {length} = alphabet;
27092
- while (size--) {
27093
- str += alphabet[Math.random() * length|0]
27094
- }
27095
-
27096
- return str;
27097
- }
27098
-
27099
27106
  /**
27100
27107
  * If the thing is a FormData object, return true, otherwise return false.
27101
27108
  *
@@ -27223,8 +27230,6 @@ const asap = typeof queueMicrotask !== 'undefined' ?
27223
27230
  findKey,
27224
27231
  global: _global,
27225
27232
  isContextDefined,
27226
- ALPHABET,
27227
- generateString,
27228
27233
  isSpecCompliantForm,
27229
27234
  toJSONObject,
27230
27235
  isAsyncFn,
@@ -28687,7 +28692,7 @@ function createClient(params) {
28687
28692
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
28688
28693
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
28689
28694
  var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(// @ts-expect-error
28690
- "".concat(sdkMain, "/").concat("11.47.3"), params.application, params.integration, params.feature);
28695
+ "".concat(sdkMain, "/").concat("11.48.1"), params.application, params.integration, params.feature);
28691
28696
  var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
28692
28697
  userAgent: userAgent
28693
28698
  }));