contentful-management 11.44.0 → 11.45.0

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.
Files changed (44) hide show
  1. package/dist/contentful-management.browser.js +493 -302
  2. package/dist/contentful-management.browser.js.map +1 -1
  3. package/dist/contentful-management.browser.min.js +1 -1
  4. package/dist/contentful-management.node.js +473 -297
  5. package/dist/contentful-management.node.js.map +1 -1
  6. package/dist/contentful-management.node.min.js +1 -1
  7. package/dist/es-modules/adapters/REST/endpoints/asset.js +2 -2
  8. package/dist/es-modules/adapters/REST/endpoints/comment.js +2 -2
  9. package/dist/es-modules/adapters/REST/endpoints/environment-template-installation.js +2 -2
  10. package/dist/es-modules/adapters/REST/endpoints/function-log.js +22 -0
  11. package/dist/es-modules/adapters/REST/endpoints/function.js +6 -2
  12. package/dist/es-modules/adapters/REST/endpoints/index.js +2 -0
  13. package/dist/es-modules/adapters/REST/endpoints/tag.js +2 -2
  14. package/dist/es-modules/adapters/REST/endpoints/task.js +2 -2
  15. package/dist/es-modules/adapters/REST/endpoints/utils.js +2 -2
  16. package/dist/es-modules/adapters/REST/endpoints/workflow-definition.js +2 -2
  17. package/dist/es-modules/adapters/REST/endpoints/workflow.js +2 -2
  18. package/dist/es-modules/common-types.js +4 -0
  19. package/dist/es-modules/contentful-management.js +1 -1
  20. package/dist/es-modules/create-contentful-api.js +2 -2
  21. package/dist/es-modules/create-environment-api.js +121 -2
  22. package/dist/es-modules/create-environment-template-api.js +2 -2
  23. package/dist/es-modules/create-organization-api.js +54 -0
  24. package/dist/es-modules/entities/function-log.js +21 -0
  25. package/dist/es-modules/entities/function.js +45 -8
  26. package/dist/es-modules/entities/index.js +2 -0
  27. package/dist/es-modules/entities/scheduled-action.js +2 -2
  28. package/dist/es-modules/methods/content-type.js +2 -2
  29. package/dist/es-modules/plain/entities/function-log.js +1 -0
  30. package/dist/es-modules/plain/plain-client.js +4 -0
  31. package/dist/typings/adapters/REST/endpoints/function-log.d.ts +3 -0
  32. package/dist/typings/adapters/REST/endpoints/index.d.ts +2 -0
  33. package/dist/typings/common-types.d.ts +50 -2
  34. package/dist/typings/create-environment-api.d.ts +78 -1
  35. package/dist/typings/create-organization-api.d.ts +29 -1
  36. package/dist/typings/entities/function-log.d.ts +46 -0
  37. package/dist/typings/entities/function.d.ts +2 -10
  38. package/dist/typings/entities/index.d.ts +2 -0
  39. package/dist/typings/plain/common-types.d.ts +2 -0
  40. package/dist/typings/plain/entities/function-log.d.ts +39 -0
  41. package/dist/typings/plain/entities/function.d.ts +5 -3
  42. package/package.json +1 -1
  43. package/dist/es-modules/create-function-api.js +0 -115
  44. package/dist/typings/create-function-api.d.ts +0 -78
@@ -1291,8 +1291,8 @@ __webpack_require__.r(__webpack_exports__);
1291
1291
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts");
1292
1292
  const _excluded = ["asset", "locale", "options"],
1293
1293
  _excluded2 = ["asset", "options"];
1294
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
1295
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
1294
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
1295
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
1296
1296
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1297
1297
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1298
1298
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -1563,8 +1563,8 @@ __webpack_require__.r(__webpack_exports__);
1563
1563
  /* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
1564
1564
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts");
1565
1565
  const _excluded = ["version"];
1566
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
1567
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
1566
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
1567
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
1568
1568
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1569
1569
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1570
1570
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -2206,8 +2206,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2206
2206
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2207
2207
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
2208
2208
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2209
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
2210
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
2209
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
2210
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
2211
2211
 
2212
2212
  const apiPath = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/');
2213
2213
  const getMany = (http, _ref, headers) => {
@@ -2488,6 +2488,44 @@ const del = (http, params) => {
2488
2488
 
2489
2489
  /***/ }),
2490
2490
 
2491
+ /***/ "./adapters/REST/endpoints/function-log.ts":
2492
+ /*!*************************************************!*\
2493
+ !*** ./adapters/REST/endpoints/function-log.ts ***!
2494
+ \*************************************************/
2495
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2496
+
2497
+ "use strict";
2498
+ __webpack_require__.r(__webpack_exports__);
2499
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2500
+ /* harmony export */ get: () => (/* binding */ get),
2501
+ /* harmony export */ getMany: () => (/* binding */ getMany)
2502
+ /* harmony export */ });
2503
+ /* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
2504
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2505
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2506
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2507
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
2508
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2509
+
2510
+ const FunctionLogAlphaHeaders = {
2511
+ 'x-contentful-enable-alpha-feature': 'function-logs'
2512
+ };
2513
+ const baseURL = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs`;
2514
+ const getURL = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs/${params.logId}`;
2515
+ const get = (http, params) => {
2516
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getURL(params), {
2517
+ headers: _objectSpread({}, FunctionLogAlphaHeaders)
2518
+ });
2519
+ };
2520
+ const getMany = (http, params) => {
2521
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, baseURL(params), {
2522
+ params: params.query,
2523
+ headers: _objectSpread({}, FunctionLogAlphaHeaders)
2524
+ });
2525
+ };
2526
+
2527
+ /***/ }),
2528
+
2491
2529
  /***/ "./adapters/REST/endpoints/function.ts":
2492
2530
  /*!*********************************************!*\
2493
2531
  !*** ./adapters/REST/endpoints/function.ts ***!
@@ -2513,10 +2551,14 @@ const get = (http, params) => {
2513
2551
  return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getFunctionUrl(params));
2514
2552
  };
2515
2553
  const getMany = (http, params) => {
2516
- return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getManyUrl(params));
2554
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getManyUrl(params), {
2555
+ params: params.query
2556
+ });
2517
2557
  };
2518
2558
  const getManyForEnvironment = (http, params) => {
2519
- return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getFunctionsEnvURL(params));
2559
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getFunctionsEnvURL(params), {
2560
+ params: params.query
2561
+ });
2520
2562
  };
2521
2563
 
2522
2564
  /***/ }),
@@ -2620,39 +2662,41 @@ __webpack_require__.r(__webpack_exports__);
2620
2662
  /* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./environment-template-installation */ "./adapters/REST/endpoints/environment-template-installation.ts");
2621
2663
  /* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./extension */ "./adapters/REST/endpoints/extension.ts");
2622
2664
  /* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./function */ "./adapters/REST/endpoints/function.ts");
2623
- /* harmony import */ var _http__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./http */ "./adapters/REST/endpoints/http.ts");
2624
- /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./locale */ "./adapters/REST/endpoints/locale.ts");
2625
- /* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./organization */ "./adapters/REST/endpoints/organization.ts");
2626
- /* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./organization-invitation */ "./adapters/REST/endpoints/organization-invitation.ts");
2627
- /* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./organization-membership */ "./adapters/REST/endpoints/organization-membership.ts");
2628
- /* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./personal-access-token */ "./adapters/REST/endpoints/personal-access-token.ts");
2629
- /* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts");
2630
- /* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts");
2631
- /* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts");
2632
- /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./resource */ "./adapters/REST/endpoints/resource.ts");
2633
- /* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./resource-provider */ "./adapters/REST/endpoints/resource-provider.ts");
2634
- /* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./resource-type */ "./adapters/REST/endpoints/resource-type.ts");
2635
- /* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts");
2636
- /* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts");
2637
- /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts");
2638
- /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts");
2639
- /* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts");
2640
- /* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts");
2641
- /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts");
2642
- /* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts");
2643
- /* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts");
2644
- /* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts");
2645
- /* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts");
2646
- /* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts");
2647
- /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts");
2648
- /* harmony import */ var _upload_credentials__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./upload-credentials */ "./adapters/REST/endpoints/upload-credentials.ts");
2649
- /* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts");
2650
- /* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts");
2651
- /* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts");
2652
- /* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts");
2653
- /* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts");
2654
- /* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts");
2655
- /* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts");
2665
+ /* harmony import */ var _function_log__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./function-log */ "./adapters/REST/endpoints/function-log.ts");
2666
+ /* harmony import */ var _http__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./http */ "./adapters/REST/endpoints/http.ts");
2667
+ /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./locale */ "./adapters/REST/endpoints/locale.ts");
2668
+ /* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./organization */ "./adapters/REST/endpoints/organization.ts");
2669
+ /* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./organization-invitation */ "./adapters/REST/endpoints/organization-invitation.ts");
2670
+ /* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./organization-membership */ "./adapters/REST/endpoints/organization-membership.ts");
2671
+ /* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./personal-access-token */ "./adapters/REST/endpoints/personal-access-token.ts");
2672
+ /* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts");
2673
+ /* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts");
2674
+ /* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts");
2675
+ /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./resource */ "./adapters/REST/endpoints/resource.ts");
2676
+ /* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./resource-provider */ "./adapters/REST/endpoints/resource-provider.ts");
2677
+ /* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./resource-type */ "./adapters/REST/endpoints/resource-type.ts");
2678
+ /* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts");
2679
+ /* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts");
2680
+ /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts");
2681
+ /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts");
2682
+ /* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts");
2683
+ /* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts");
2684
+ /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts");
2685
+ /* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts");
2686
+ /* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts");
2687
+ /* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts");
2688
+ /* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts");
2689
+ /* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts");
2690
+ /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts");
2691
+ /* harmony import */ var _upload_credentials__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./upload-credentials */ "./adapters/REST/endpoints/upload-credentials.ts");
2692
+ /* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts");
2693
+ /* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts");
2694
+ /* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts");
2695
+ /* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts");
2696
+ /* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts");
2697
+ /* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts");
2698
+ /* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts");
2699
+
2656
2700
 
2657
2701
 
2658
2702
 
@@ -2744,40 +2788,41 @@ __webpack_require__.r(__webpack_exports__);
2744
2788
  EnvironmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_26__,
2745
2789
  Extension: _extension__WEBPACK_IMPORTED_MODULE_27__,
2746
2790
  Function: _function__WEBPACK_IMPORTED_MODULE_28__,
2747
- Http: _http__WEBPACK_IMPORTED_MODULE_29__,
2748
- Locale: _locale__WEBPACK_IMPORTED_MODULE_30__,
2749
- Organization: _organization__WEBPACK_IMPORTED_MODULE_31__,
2750
- OrganizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_32__,
2751
- OrganizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_33__,
2752
- PersonalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_34__,
2791
+ FunctionLog: _function_log__WEBPACK_IMPORTED_MODULE_29__,
2792
+ Http: _http__WEBPACK_IMPORTED_MODULE_30__,
2793
+ Locale: _locale__WEBPACK_IMPORTED_MODULE_31__,
2794
+ Organization: _organization__WEBPACK_IMPORTED_MODULE_32__,
2795
+ OrganizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_33__,
2796
+ OrganizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_34__,
2797
+ PersonalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_35__,
2753
2798
  AccessToken: _access_token__WEBPACK_IMPORTED_MODULE_0__,
2754
- PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_35__,
2755
- Release: _release__WEBPACK_IMPORTED_MODULE_36__,
2756
- ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_37__,
2757
- Resource: _resource__WEBPACK_IMPORTED_MODULE_38__,
2758
- ResourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_39__,
2759
- ResourceType: _resource_type__WEBPACK_IMPORTED_MODULE_40__,
2760
- Role: _role__WEBPACK_IMPORTED_MODULE_41__,
2761
- ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_42__,
2762
- Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_43__,
2763
- Space: _space__WEBPACK_IMPORTED_MODULE_44__,
2764
- SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_45__,
2765
- SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_46__,
2766
- Tag: _tag__WEBPACK_IMPORTED_MODULE_47__,
2767
- Task: _task__WEBPACK_IMPORTED_MODULE_48__,
2768
- Team: _team__WEBPACK_IMPORTED_MODULE_49__,
2769
- TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_50__,
2770
- TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_51__,
2771
- UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_52__,
2772
- Upload: _upload__WEBPACK_IMPORTED_MODULE_53__,
2773
- UploadCredential: _upload_credentials__WEBPACK_IMPORTED_MODULE_54__,
2774
- Usage: _usage__WEBPACK_IMPORTED_MODULE_55__,
2775
- User: _user__WEBPACK_IMPORTED_MODULE_56__,
2776
- UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_57__,
2777
- Webhook: _webhook__WEBPACK_IMPORTED_MODULE_58__,
2778
- WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_60__,
2779
- Workflow: _workflow__WEBPACK_IMPORTED_MODULE_59__,
2780
- WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_61__
2799
+ PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_36__,
2800
+ Release: _release__WEBPACK_IMPORTED_MODULE_37__,
2801
+ ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_38__,
2802
+ Resource: _resource__WEBPACK_IMPORTED_MODULE_39__,
2803
+ ResourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_40__,
2804
+ ResourceType: _resource_type__WEBPACK_IMPORTED_MODULE_41__,
2805
+ Role: _role__WEBPACK_IMPORTED_MODULE_42__,
2806
+ ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_43__,
2807
+ Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_44__,
2808
+ Space: _space__WEBPACK_IMPORTED_MODULE_45__,
2809
+ SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_46__,
2810
+ SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_47__,
2811
+ Tag: _tag__WEBPACK_IMPORTED_MODULE_48__,
2812
+ Task: _task__WEBPACK_IMPORTED_MODULE_49__,
2813
+ Team: _team__WEBPACK_IMPORTED_MODULE_50__,
2814
+ TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_51__,
2815
+ TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_52__,
2816
+ UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_53__,
2817
+ Upload: _upload__WEBPACK_IMPORTED_MODULE_54__,
2818
+ UploadCredential: _upload_credentials__WEBPACK_IMPORTED_MODULE_55__,
2819
+ Usage: _usage__WEBPACK_IMPORTED_MODULE_56__,
2820
+ User: _user__WEBPACK_IMPORTED_MODULE_57__,
2821
+ UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_58__,
2822
+ Webhook: _webhook__WEBPACK_IMPORTED_MODULE_59__,
2823
+ WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_61__,
2824
+ Workflow: _workflow__WEBPACK_IMPORTED_MODULE_60__,
2825
+ WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_62__
2781
2826
  });
2782
2827
 
2783
2828
  /***/ }),
@@ -3656,8 +3701,8 @@ __webpack_require__.r(__webpack_exports__);
3656
3701
  /* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
3657
3702
  /* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
3658
3703
  const _excluded = ["version"];
3659
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
3660
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3704
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
3705
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
3661
3706
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3662
3707
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3663
3708
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -3724,8 +3769,8 @@ __webpack_require__.r(__webpack_exports__);
3724
3769
  /* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
3725
3770
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts");
3726
3771
  const _excluded = ["version"];
3727
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
3728
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3772
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
3773
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
3729
3774
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3730
3775
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3731
3776
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -4180,8 +4225,8 @@ __webpack_require__.r(__webpack_exports__);
4180
4225
  /* harmony export */ normalizeSpaceId: () => (/* binding */ normalizeSpaceId)
4181
4226
  /* harmony export */ });
4182
4227
  const _excluded = ["spaceId"];
4183
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4184
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4228
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4229
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4185
4230
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4186
4231
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4187
4232
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -4352,8 +4397,8 @@ __webpack_require__.r(__webpack_exports__);
4352
4397
  /* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
4353
4398
  /* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
4354
4399
  const _excluded = ["version"];
4355
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4356
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4400
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4401
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4357
4402
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4358
4403
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4359
4404
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -4420,8 +4465,8 @@ __webpack_require__.r(__webpack_exports__);
4420
4465
  /* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
4421
4466
  const _excluded = ["version"],
4422
4467
  _excluded2 = ["version"];
4423
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4424
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4468
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4469
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4425
4470
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4426
4471
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4427
4472
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -4600,6 +4645,10 @@ __webpack_require__.r(__webpack_exports__);
4600
4645
 
4601
4646
  /* eslint-disable @typescript-eslint/no-explicit-any */
4602
4647
 
4648
+ // Base interface for shared fields
4649
+
4650
+ // Interfaces for each “exclusive” shape
4651
+
4603
4652
  /**
4604
4653
  * @private
4605
4654
  */
@@ -5469,8 +5518,8 @@ __webpack_require__.r(__webpack_exports__);
5469
5518
  /* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
5470
5519
  /* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts");
5471
5520
  const _excluded = ["url"];
5472
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
5473
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
5521
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
5522
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5474
5523
 
5475
5524
 
5476
5525
  /**
@@ -6630,14 +6679,18 @@ __webpack_require__.r(__webpack_exports__);
6630
6679
  /* harmony import */ var _entities_ui_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./entities/ui-config */ "./entities/ui-config.ts");
6631
6680
  /* harmony import */ var _entities_user_ui_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./entities/user-ui-config */ "./entities/user-ui-config.ts");
6632
6681
  /* harmony import */ var _entities_environment_template_installation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./entities/environment-template-installation */ "./entities/environment-template-installation.ts");
6682
+ /* harmony import */ var _entities_function__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./entities/function */ "./entities/function.ts");
6683
+ /* harmony import */ var _entities_function_log__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./entities/function-log */ "./entities/function-log.ts");
6633
6684
  const _excluded = ["installationId"];
6634
6685
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6635
6686
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6636
6687
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6637
6688
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
6638
6689
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6639
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
6640
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
6690
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
6691
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
6692
+
6693
+
6641
6694
 
6642
6695
 
6643
6696
 
@@ -8290,6 +8343,123 @@ function createEnvironmentApi(makeRequest) {
8290
8343
  payload: data
8291
8344
  }).then(payload => wrapAppAccessToken(makeRequest, payload));
8292
8345
  },
8346
+ /**
8347
+ * Gets a collection of Functions for a given environment
8348
+ * @param appInstallationId
8349
+ * @param {import('../common-types').AcceptsQueryOptions} query - optional query parameter for filtering functions by action
8350
+ * @return Promise containing wrapped collection of Functions in an environment
8351
+ * @example ```javascript
8352
+ * const contentful = require('contentful-management')
8353
+ *
8354
+ * const client = contentful.createClient({
8355
+ * accessToken: '<content_management_api_key>'
8356
+ * })
8357
+ *
8358
+ * client
8359
+ * .getSpace('<space-id>')
8360
+ * .then((space) => space.getEnvironment('<environment-id>'))
8361
+ * .then((environment) => environment.getFunctionsForEnvironment('<app-installation-id>', { 'accepts[all]': '<action>' }))
8362
+ * .then((functions) => console.log(functions.items))
8363
+ * .catch(console.error)
8364
+ * ```
8365
+ */
8366
+ getFunctionsForEnvironment(appInstallationId, query) {
8367
+ const raw = this.toPlainObject();
8368
+ return makeRequest({
8369
+ entityType: 'Function',
8370
+ action: 'getManyForEnvironment',
8371
+ params: {
8372
+ spaceId: raw.sys.space.sys.id,
8373
+ environmentId: raw.sys.id,
8374
+ appInstallationId,
8375
+ query
8376
+ }
8377
+ }).then(data => (0,_entities_function__WEBPACK_IMPORTED_MODULE_8__.wrapFunctionCollection)(makeRequest, data));
8378
+ },
8379
+ /**
8380
+ * Gets a collection of FunctionLogs for a given app installation id and FunctionId
8381
+ * @param appInstallationId
8382
+ * @param functionId
8383
+ * @param {import('../common-types').CursorBasedParams} query - optional query parameter for pagination (limit, nextPage, prevPage)
8384
+ * @return Promise containing wrapped collection of FunctionLogs
8385
+ * * @example ```javascript
8386
+ * const contentful = require('contentful-management')
8387
+ *
8388
+ * const client = contentful.createClient({
8389
+ * accessToken: '<content_management_api_key>'
8390
+ * })
8391
+ *
8392
+ * client
8393
+ * .getSpace('<space-id>')
8394
+ * .then((space) => space.getEnvironment('<environment-id>'))
8395
+ * .then((environment) =>
8396
+ * environment.getFunctionLogs(
8397
+ * '<app-installation-id>',
8398
+ * '<function-id>',
8399
+ * { limit: 10 },
8400
+ * )
8401
+ * )
8402
+ * .then((functionLogs) => console.log(functionLog.items))
8403
+ * .catch(console.error)
8404
+ * ```
8405
+ */
8406
+ getFunctionLogs(appInstallationId, functionId, query) {
8407
+ const raw = this.toPlainObject();
8408
+ return makeRequest({
8409
+ entityType: 'FunctionLog',
8410
+ action: 'getMany',
8411
+ params: {
8412
+ spaceId: raw.sys.space.sys.id,
8413
+ environmentId: raw.sys.id,
8414
+ appInstallationId,
8415
+ functionId,
8416
+ query: query ? (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createRequestConfig)({
8417
+ query
8418
+ }).params : undefined
8419
+ }
8420
+ }).then(data => (0,_entities_function_log__WEBPACK_IMPORTED_MODULE_9__.wrapFunctionLogCollection)(makeRequest, data));
8421
+ },
8422
+ /**
8423
+ * Gets a FunctionLog by appInstallationId, functionId and logId
8424
+ * @param appInstallationId
8425
+ * @param functionId
8426
+ * @param logId
8427
+ * @return Promise containing a wrapped FunctionLog
8428
+ * @example ```javascript
8429
+ * const contentful = require('contentful-management')
8430
+ *
8431
+ * const client = contentful.createClient({
8432
+ * accessToken: '<content_management_api_key>'
8433
+ * })
8434
+ *
8435
+ * client
8436
+ * .getSpace(<space-id>)
8437
+ * .then((space) => space.getEnvironment('<environment-id>'))
8438
+ * .then((environment) =>
8439
+ * environment.getFunctionLog(
8440
+ * '<app-installation-id>',
8441
+ * '<function-id>',
8442
+ * '<log-id>'
8443
+ * )
8444
+ * )
8445
+ * .then((functionLog) => console.log(functionLog))
8446
+ * .catch(console.error)
8447
+ * ```
8448
+ */
8449
+ getFunctionLog(appInstallationId, functionId, logId) {
8450
+ const raw = this.toPlainObject();
8451
+ return makeRequest({
8452
+ entityType: 'FunctionLog',
8453
+ action: 'get',
8454
+ params: {
8455
+ spaceId: raw.sys.space.sys.id,
8456
+ environmentId: raw.sys.id,
8457
+ appInstallationId,
8458
+ functionId,
8459
+ logId
8460
+ }
8461
+ }).then(data => (0,_entities_function_log__WEBPACK_IMPORTED_MODULE_9__.wrapFunctionLog)(makeRequest, data));
8462
+ },
8293
8463
  /**
8294
8464
  * Gets all snapshots of an entry
8295
8465
  * @func getEntrySnapshots
@@ -8987,8 +9157,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
8987
9157
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
8988
9158
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
8989
9159
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8990
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
8991
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
9160
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9161
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
8992
9162
 
8993
9163
 
8994
9164
  function createEnvironmentTemplateApi(makeRequest, organizationId) {
@@ -9300,136 +9470,6 @@ function createEnvironmentTemplateApi(makeRequest, organizationId) {
9300
9470
 
9301
9471
  /***/ }),
9302
9472
 
9303
- /***/ "./create-function-api.ts":
9304
- /*!********************************!*\
9305
- !*** ./create-function-api.ts ***!
9306
- \********************************/
9307
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9308
-
9309
- "use strict";
9310
- __webpack_require__.r(__webpack_exports__);
9311
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9312
- /* harmony export */ "default": () => (/* binding */ createFunctionApi)
9313
- /* harmony export */ });
9314
- /* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entities */ "./entities/index.ts");
9315
-
9316
-
9317
- /**
9318
- * @private
9319
- */
9320
-
9321
- /**
9322
- * @private
9323
- */
9324
- function createFunctionApi(makeRequest) {
9325
- const {
9326
- wrapFunction,
9327
- wrapFunctionCollection
9328
- } = _entities__WEBPACK_IMPORTED_MODULE_0__["default"].func;
9329
- return {
9330
- /**
9331
- * Gets all Functions for an App Definition
9332
- * @Param organizationId - Organization ID
9333
- * @Param appDefinitionId - App Definition ID
9334
- * @returns a collection of Functions
9335
- * ```javascript
9336
- * const contentful = require('contentful-management')
9337
- *
9338
- * const client = contentful.createClient({
9339
- * accessToken: '<content_management_api_key>'
9340
- * })
9341
- *
9342
- * client.function.getMany({
9343
- * organizationId: <organizationId>,
9344
- * appDefinitionId: <appDefinitionId>
9345
- * })
9346
- * .then((response) => console.log(response.items))
9347
- * .catch(console.error)
9348
- * ```
9349
- */
9350
- getManyFunctions() {
9351
- const raw = this.toPlainObject();
9352
- return makeRequest({
9353
- entityType: 'Function',
9354
- action: 'getMany',
9355
- params: {
9356
- appDefinitionId: raw.sys.appDefinition.sys.id,
9357
- organizationId: raw.sys.organization.sys.id
9358
- }
9359
- }).then(data => wrapFunctionCollection(makeRequest, data));
9360
- },
9361
- /**
9362
- * Gets a Function by ID
9363
- * @Param organizationId - Organization ID
9364
- * @Param appDefinitionId - App Definition ID
9365
- * @Param functionId - Function ID
9366
- * @returns a collection of Functions
9367
- * ```javascript
9368
- * const contentful = require('contentful-management')
9369
- *
9370
- * const client = contentful.createClient({
9371
- * accessToken: '<content_management_api_key>'
9372
- * })
9373
- *
9374
- * client.function.get({
9375
- * organizationId: <organizationId>,
9376
- * appDefinitionId: <appDefinitionId>,
9377
- * functionId: <functionId>
9378
- * })
9379
- * .then((response) => console.log(response.items))
9380
- * .catch(console.error)
9381
- * ```
9382
- */
9383
- getFunction(functionId) {
9384
- const raw = this.toPlainObject();
9385
- return makeRequest({
9386
- entityType: 'Function',
9387
- action: 'get',
9388
- params: {
9389
- appDefinitionId: raw.sys.appDefinition.sys.id,
9390
- organizationId: raw.sys.organization.sys.id,
9391
- functionId
9392
- }
9393
- }).then(data => wrapFunction(makeRequest, data));
9394
- },
9395
- /**
9396
- * Gets all Functions for an Environment
9397
- * @Param organizationId - Organization ID
9398
- * @Param appDefinitionId - App Definition ID
9399
- * @Param functionId - Function ID
9400
- * @returns a collection of Functions
9401
- * ```javascript
9402
- * const contentful = require('contentful-management')
9403
- *
9404
- * const client = contentful.createClient({
9405
- * accessToken: '<content_management_api_key>'
9406
- * })
9407
- *
9408
- * client.function.get({
9409
- * environmentId: <environmentId>,
9410
- * spaceId: <spaceId>,
9411
- * appInstallationId: <appInstallationId>
9412
- * })
9413
- * .then((response) => console.log(response.items))
9414
- * .catch(console.error)
9415
- * ```
9416
- */
9417
- getManyFunctionsForEnvironment(spaceId, environmentId, appInstallationId) {
9418
- return makeRequest({
9419
- entityType: 'Function',
9420
- action: 'getManyForEnvironment',
9421
- params: {
9422
- spaceId: spaceId,
9423
- environmentId: environmentId,
9424
- appInstallationId: appInstallationId
9425
- }
9426
- }).then(data => wrapFunctionCollection(makeRequest, data));
9427
- }
9428
- };
9429
- }
9430
-
9431
- /***/ }),
9432
-
9433
9473
  /***/ "./create-organization-api.ts":
9434
9474
  /*!************************************!*\
9435
9475
  !*** ./create-organization-api.ts ***!
@@ -9513,6 +9553,10 @@ function createOrganizationApi(makeRequest) {
9513
9553
  wrapAppAction,
9514
9554
  wrapAppActionCollection
9515
9555
  } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appAction;
9556
+ const {
9557
+ wrapFunction,
9558
+ wrapFunctionCollection
9559
+ } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].func;
9516
9560
  const {
9517
9561
  wrapRoleCollection
9518
9562
  } = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].role;
@@ -10692,6 +10736,56 @@ function createOrganizationApi(makeRequest) {
10692
10736
  appDefinitionId
10693
10737
  }
10694
10738
  }).then(payload => wrapAppActionCollection(makeRequest, payload));
10739
+ },
10740
+ /**
10741
+ * Gets an app function
10742
+ * @param appDefinitionId
10743
+ * @param functionId
10744
+ * @returns Promise for a Function
10745
+ * @example ```javascript
10746
+ * const contentful = require('contentful-management')
10747
+ * const client = contentful.createClient({
10748
+ * accessToken: '<content_management_api_key>'
10749
+ * })
10750
+ * const org = await client.getOrganization('<org_id>')
10751
+ * const functions = await org.getFunction('<app_definition_id>', '<function_id>')
10752
+ */
10753
+ getFunction(appDefinitionId, functionId) {
10754
+ const raw = this.toPlainObject();
10755
+ return makeRequest({
10756
+ entityType: 'Function',
10757
+ action: 'get',
10758
+ params: {
10759
+ organizationId: raw.sys.id,
10760
+ appDefinitionId,
10761
+ functionId
10762
+ }
10763
+ }).then(payload => wrapFunction(makeRequest, payload));
10764
+ },
10765
+ /**
10766
+ * Gets a collection of app functions.
10767
+ * @param appDefinitionId
10768
+ * @param {import('../common-types').AcceptsQueryOptions} query - optional query parameter for filtering functions by action
10769
+ * @returns Promise for a Function
10770
+ * @example ```javascript
10771
+ * const contentful = require('contentful-management')
10772
+ * const client = contentful.createClient({
10773
+ * accessToken: '<content_management_api_key>'
10774
+ * })
10775
+ * const org = await client.getOrganization('<org_id>')
10776
+ * const functions = await org.getFunctions('<app_definition_id>', { 'accepts[all]': '<action>' })
10777
+ */
10778
+ getFunctions(appDefinitionId, query) {
10779
+ const raw = this.toPlainObject();
10780
+ return makeRequest({
10781
+ entityType: 'Function',
10782
+ action: 'getMany',
10783
+ params: {
10784
+ organizationId: raw.sys.id,
10785
+ appDefinitionId,
10786
+ query
10787
+ }
10788
+ }).then(payload => wrapFunctionCollection(makeRequest, payload));
10695
10789
  }
10696
10790
  };
10697
10791
  }
@@ -14163,6 +14257,45 @@ const wrapExtensionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wr
14163
14257
 
14164
14258
  /***/ }),
14165
14259
 
14260
+ /***/ "./entities/function-log.ts":
14261
+ /*!**********************************!*\
14262
+ !*** ./entities/function-log.ts ***!
14263
+ \**********************************/
14264
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
14265
+
14266
+ "use strict";
14267
+ __webpack_require__.r(__webpack_exports__);
14268
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
14269
+ /* harmony export */ wrapFunctionLog: () => (/* binding */ wrapFunctionLog),
14270
+ /* harmony export */ wrapFunctionLogCollection: () => (/* binding */ wrapFunctionLogCollection)
14271
+ /* harmony export */ });
14272
+ /* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
14273
+ /* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
14274
+ /* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
14275
+
14276
+
14277
+
14278
+ /**
14279
+ * @private
14280
+ * @param makeRequest - function to make requests via an adapter
14281
+ * @param data - raw contentful-Function data
14282
+ * @return Wrapped Function data
14283
+ */
14284
+ function wrapFunctionLog(makeRequest, data) {
14285
+ const functionLog = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
14286
+ return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(functionLog);
14287
+ }
14288
+
14289
+ /**
14290
+ * @private
14291
+ * @param makeRequest - function to make requests via an adapter
14292
+ * @param data - raw contentful-function data
14293
+ * @return Wrapped App Function collection data
14294
+ */
14295
+ const wrapFunctionLogCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapFunctionLog);
14296
+
14297
+ /***/ }),
14298
+
14166
14299
  /***/ "./entities/function.ts":
14167
14300
  /*!******************************!*\
14168
14301
  !*** ./entities/function.ts ***!
@@ -14179,11 +14312,51 @@ __webpack_require__.r(__webpack_exports__);
14179
14312
  /* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
14180
14313
  /* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
14181
14314
  /* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
14182
- /* harmony import */ var _create_function_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../create-function-api */ "./create-function-api.ts");
14183
14315
 
14184
14316
 
14185
14317
 
14186
14318
 
14319
+ /**
14320
+ * @private
14321
+ */
14322
+ function createFunctionApi(makeRequest) {
14323
+ return {
14324
+ getFunction: function getFunction() {
14325
+ const raw = this.toPlainObject();
14326
+ return makeRequest({
14327
+ entityType: 'Function',
14328
+ action: 'get',
14329
+ params: {
14330
+ organizationId: raw.sys.organization.sys.id,
14331
+ appDefinitionId: raw.sys.appDefinition.sys.id,
14332
+ functionId: raw.sys.id
14333
+ }
14334
+ }).then(data => wrapFunction(makeRequest, data));
14335
+ },
14336
+ getManyFunctions: function getManyFunctions() {
14337
+ const raw = this.toPlainObject();
14338
+ return makeRequest({
14339
+ entityType: 'Function',
14340
+ action: 'getMany',
14341
+ params: {
14342
+ appDefinitionId: raw.sys.appDefinition.sys.id,
14343
+ organizationId: raw.sys.organization.sys.id
14344
+ }
14345
+ }).then(data => wrapFunctionCollection(makeRequest, data));
14346
+ },
14347
+ getManyFunctionsForEnvironment(spaceId, environmentId, appInstallationId) {
14348
+ return makeRequest({
14349
+ entityType: 'Function',
14350
+ action: 'getManyForEnvironment',
14351
+ params: {
14352
+ spaceId: spaceId,
14353
+ environmentId: environmentId,
14354
+ appInstallationId: appInstallationId
14355
+ }
14356
+ }).then(data => wrapFunctionCollection(makeRequest, data));
14357
+ }
14358
+ };
14359
+ }
14187
14360
 
14188
14361
  /**
14189
14362
  * @private
@@ -14192,16 +14365,12 @@ __webpack_require__.r(__webpack_exports__);
14192
14365
  * @return Wrapped Function data
14193
14366
  */
14194
14367
  function wrapFunction(makeRequest, data) {
14195
- const appAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
14196
- const appActionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(appAction, (0,_create_function_api__WEBPACK_IMPORTED_MODULE_4__["default"])(makeRequest));
14197
- return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(appActionWithMethods);
14368
+ const func = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
14369
+ const funcWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(func, createFunctionApi(makeRequest));
14370
+ return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(funcWithMethods);
14198
14371
  }
14199
-
14200
14372
  /**
14201
14373
  * @private
14202
- * @param makeRequest - real) function to make requests via an adapter
14203
- * @param data - raw contentful-function data
14204
- * @return Wrapped App Function collection data
14205
14374
  */
14206
14375
  const wrapFunctionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapFunction);
14207
14376
 
@@ -14244,38 +14413,40 @@ __webpack_require__.r(__webpack_exports__);
14244
14413
  /* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./environment-template-installation */ "./entities/environment-template-installation.ts");
14245
14414
  /* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./extension */ "./entities/extension.ts");
14246
14415
  /* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./function */ "./entities/function.ts");
14247
- /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./locale */ "./entities/locale.ts");
14248
- /* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts");
14249
- /* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts");
14250
- /* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts");
14251
- /* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts");
14252
- /* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./access-token */ "./entities/access-token.ts");
14253
- /* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts");
14254
- /* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./release */ "./entities/release.ts");
14255
- /* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts");
14256
- /* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./role */ "./entities/role.ts");
14257
- /* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts");
14258
- /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts");
14259
- /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./space */ "./entities/space.ts");
14260
- /* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts");
14261
- /* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts");
14262
- /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts");
14263
- /* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./task */ "./entities/task.ts");
14264
- /* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./team */ "./entities/team.ts");
14265
- /* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts");
14266
- /* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts");
14267
- /* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts");
14268
- /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts");
14269
- /* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts");
14270
- /* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./user */ "./entities/user.ts");
14271
- /* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts");
14272
- /* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts");
14273
- /* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts");
14274
- /* harmony import */ var _concept__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./concept */ "./entities/concept.ts");
14275
- /* harmony import */ var _concept_scheme__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./concept-scheme */ "./entities/concept-scheme.ts");
14276
- /* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./resource-provider */ "./entities/resource-provider.ts");
14277
- /* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./resource-type */ "./entities/resource-type.ts");
14278
- /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./resource */ "./entities/resource.ts");
14416
+ /* harmony import */ var _function_log__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./function-log */ "./entities/function-log.ts");
14417
+ /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./locale */ "./entities/locale.ts");
14418
+ /* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts");
14419
+ /* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts");
14420
+ /* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts");
14421
+ /* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts");
14422
+ /* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./access-token */ "./entities/access-token.ts");
14423
+ /* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts");
14424
+ /* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./release */ "./entities/release.ts");
14425
+ /* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts");
14426
+ /* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./role */ "./entities/role.ts");
14427
+ /* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts");
14428
+ /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts");
14429
+ /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./space */ "./entities/space.ts");
14430
+ /* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts");
14431
+ /* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts");
14432
+ /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts");
14433
+ /* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./task */ "./entities/task.ts");
14434
+ /* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./team */ "./entities/team.ts");
14435
+ /* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts");
14436
+ /* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts");
14437
+ /* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts");
14438
+ /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts");
14439
+ /* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts");
14440
+ /* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./user */ "./entities/user.ts");
14441
+ /* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts");
14442
+ /* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts");
14443
+ /* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts");
14444
+ /* harmony import */ var _concept__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./concept */ "./entities/concept.ts");
14445
+ /* harmony import */ var _concept_scheme__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./concept-scheme */ "./entities/concept-scheme.ts");
14446
+ /* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./resource-provider */ "./entities/resource-provider.ts");
14447
+ /* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./resource-type */ "./entities/resource-type.ts");
14448
+ /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./resource */ "./entities/resource.ts");
14449
+
14279
14450
 
14280
14451
 
14281
14452
 
@@ -14335,7 +14506,7 @@ __webpack_require__.r(__webpack_exports__);
14335
14506
 
14336
14507
 
14337
14508
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
14338
- accessToken: _access_token__WEBPACK_IMPORTED_MODULE_31__,
14509
+ accessToken: _access_token__WEBPACK_IMPORTED_MODULE_32__,
14339
14510
  appAction: _app_action__WEBPACK_IMPORTED_MODULE_1__,
14340
14511
  appActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_2__,
14341
14512
  appBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_3__,
@@ -14353,8 +14524,8 @@ __webpack_require__.r(__webpack_exports__);
14353
14524
  assetKey: _asset_key__WEBPACK_IMPORTED_MODULE_14__,
14354
14525
  bulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_15__,
14355
14526
  comment: _comment__WEBPACK_IMPORTED_MODULE_16__,
14356
- concept: _concept__WEBPACK_IMPORTED_MODULE_53__,
14357
- conceptScheme: _concept_scheme__WEBPACK_IMPORTED_MODULE_54__,
14527
+ concept: _concept__WEBPACK_IMPORTED_MODULE_54__,
14528
+ conceptScheme: _concept_scheme__WEBPACK_IMPORTED_MODULE_55__,
14358
14529
  contentType: _content_type__WEBPACK_IMPORTED_MODULE_17__,
14359
14530
  editorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_18__,
14360
14531
  entry: _entry__WEBPACK_IMPORTED_MODULE_19__,
@@ -14364,35 +14535,36 @@ __webpack_require__.r(__webpack_exports__);
14364
14535
  environmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__,
14365
14536
  extension: _extension__WEBPACK_IMPORTED_MODULE_24__,
14366
14537
  func: _function__WEBPACK_IMPORTED_MODULE_25__,
14367
- locale: _locale__WEBPACK_IMPORTED_MODULE_26__,
14368
- organization: _organization__WEBPACK_IMPORTED_MODULE_27__,
14369
- organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_28__,
14370
- organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_29__,
14371
- personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_30__,
14372
- previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_32__,
14373
- release: _release__WEBPACK_IMPORTED_MODULE_33__,
14374
- releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_34__,
14375
- resourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_55__,
14376
- resourceType: _resource_type__WEBPACK_IMPORTED_MODULE_56__,
14377
- resource: _resource__WEBPACK_IMPORTED_MODULE_57__,
14378
- role: _role__WEBPACK_IMPORTED_MODULE_35__,
14379
- scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_36__,
14380
- snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_37__,
14381
- space: _space__WEBPACK_IMPORTED_MODULE_38__,
14382
- spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_39__,
14383
- spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_40__,
14384
- tag: _tag__WEBPACK_IMPORTED_MODULE_41__,
14385
- task: _task__WEBPACK_IMPORTED_MODULE_42__,
14386
- team: _team__WEBPACK_IMPORTED_MODULE_43__,
14387
- teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_44__,
14388
- teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_45__,
14389
- uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_46__,
14390
- upload: _upload__WEBPACK_IMPORTED_MODULE_47__,
14391
- usage: _usage__WEBPACK_IMPORTED_MODULE_48__,
14392
- user: _user__WEBPACK_IMPORTED_MODULE_49__,
14393
- userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_50__,
14394
- webhook: _webhook__WEBPACK_IMPORTED_MODULE_51__,
14395
- workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_52__
14538
+ functionLog: _function_log__WEBPACK_IMPORTED_MODULE_26__,
14539
+ locale: _locale__WEBPACK_IMPORTED_MODULE_27__,
14540
+ organization: _organization__WEBPACK_IMPORTED_MODULE_28__,
14541
+ organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_29__,
14542
+ organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_30__,
14543
+ personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_31__,
14544
+ previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_33__,
14545
+ release: _release__WEBPACK_IMPORTED_MODULE_34__,
14546
+ releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_35__,
14547
+ resourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_56__,
14548
+ resourceType: _resource_type__WEBPACK_IMPORTED_MODULE_57__,
14549
+ resource: _resource__WEBPACK_IMPORTED_MODULE_58__,
14550
+ role: _role__WEBPACK_IMPORTED_MODULE_36__,
14551
+ scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_37__,
14552
+ snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_38__,
14553
+ space: _space__WEBPACK_IMPORTED_MODULE_39__,
14554
+ spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_40__,
14555
+ spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_41__,
14556
+ tag: _tag__WEBPACK_IMPORTED_MODULE_42__,
14557
+ task: _task__WEBPACK_IMPORTED_MODULE_43__,
14558
+ team: _team__WEBPACK_IMPORTED_MODULE_44__,
14559
+ teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_45__,
14560
+ teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_46__,
14561
+ uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_47__,
14562
+ upload: _upload__WEBPACK_IMPORTED_MODULE_48__,
14563
+ usage: _usage__WEBPACK_IMPORTED_MODULE_49__,
14564
+ user: _user__WEBPACK_IMPORTED_MODULE_50__,
14565
+ userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_51__,
14566
+ webhook: _webhook__WEBPACK_IMPORTED_MODULE_52__,
14567
+ workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_53__
14396
14568
  });
14397
14569
 
14398
14570
  /***/ }),
@@ -15301,8 +15473,8 @@ __webpack_require__.r(__webpack_exports__);
15301
15473
  /* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
15302
15474
  /* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
15303
15475
  const _excluded = ["sys"];
15304
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15305
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
15476
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15477
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
15306
15478
 
15307
15479
 
15308
15480
 
@@ -16532,8 +16704,8 @@ __webpack_require__.r(__webpack_exports__);
16532
16704
  /* harmony export */ omitAndDeleteField: () => (/* binding */ omitAndDeleteField)
16533
16705
  /* harmony export */ });
16534
16706
  const _excluded = ["fieldId"];
16535
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
16536
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
16707
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
16708
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
16537
16709
  /**
16538
16710
  * @private
16539
16711
  * @param id - unique ID of the field
@@ -16949,6 +17121,10 @@ const createPlainClient = (makeRequest, defaults) => {
16949
17121
  getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'getMany'),
16950
17122
  getManyForEnvironment: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'getManyForEnvironment')
16951
17123
  },
17124
+ functionLog: {
17125
+ get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'FunctionLog', 'get'),
17126
+ getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'FunctionLog', 'getMany')
17127
+ },
16952
17128
  editorInterface: {
16953
17129
  get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EditorInterface', 'get'),
16954
17130
  getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EditorInterface', 'getMany'),
@@ -31403,7 +31579,7 @@ function createClient(params, opts = {}) {
31403
31579
  const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
31404
31580
  const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
31405
31581
  // @ts-expect-error
31406
- `${sdkMain}/${"11.44.0"}`, params.application, params.integration, params.feature);
31582
+ `${sdkMain}/${"11.45.0"}`, params.application, params.integration, params.feature);
31407
31583
  const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
31408
31584
  userAgent
31409
31585
  }));