contentful-management 11.42.0 → 11.43.0-beta.2

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 (31) hide show
  1. package/dist/contentful-management.browser.js +564 -132
  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 +548 -132
  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/function-log.js +21 -0
  8. package/dist/es-modules/adapters/REST/endpoints/function.js +16 -0
  9. package/dist/es-modules/adapters/REST/endpoints/index.js +4 -0
  10. package/dist/es-modules/contentful-management.js +1 -1
  11. package/dist/es-modules/create-function-api.js +115 -0
  12. package/dist/es-modules/create-function-log-api.js +94 -0
  13. package/dist/es-modules/entities/function-log.js +24 -0
  14. package/dist/es-modules/entities/function.js +24 -1
  15. package/dist/es-modules/entities/index.js +4 -0
  16. package/dist/es-modules/plain/entities/function-log.js +1 -0
  17. package/dist/es-modules/plain/entities/function.js +1 -0
  18. package/dist/es-modules/plain/plain-client.js +7 -1
  19. package/dist/typings/adapters/REST/endpoints/function-log.d.ts +3 -0
  20. package/dist/typings/adapters/REST/endpoints/function.d.ts +4 -0
  21. package/dist/typings/adapters/REST/endpoints/index.d.ts +4 -0
  22. package/dist/typings/common-types.d.ts +45 -6
  23. package/dist/typings/create-function-api.d.ts +78 -0
  24. package/dist/typings/create-function-log-api.d.ts +63 -0
  25. package/dist/typings/entities/function-log.d.ts +50 -0
  26. package/dist/typings/entities/function.d.ts +23 -1
  27. package/dist/typings/entities/index.d.ts +4 -0
  28. package/dist/typings/plain/common-types.d.ts +5 -5
  29. package/dist/typings/plain/entities/function-log.d.ts +38 -0
  30. package/dist/typings/plain/entities/function.d.ts +49 -0
  31. package/package.json +1 -1
@@ -2490,6 +2490,76 @@ const del = (http, params) => {
2490
2490
 
2491
2491
  /***/ }),
2492
2492
 
2493
+ /***/ "./adapters/REST/endpoints/function-log.ts":
2494
+ /*!*************************************************!*\
2495
+ !*** ./adapters/REST/endpoints/function-log.ts ***!
2496
+ \*************************************************/
2497
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2498
+
2499
+ "use strict";
2500
+ __webpack_require__.r(__webpack_exports__);
2501
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2502
+ /* harmony export */ get: () => (/* binding */ get),
2503
+ /* harmony export */ getAll: () => (/* binding */ getAll)
2504
+ /* harmony export */ });
2505
+ /* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
2506
+ 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; }
2507
+ 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; }
2508
+ 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; }
2509
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
2510
+ 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); }
2511
+
2512
+ const FunctionLogAlphaHeaders = {
2513
+ 'x-contentful-enable-alpha-feature': 'function-logs'
2514
+ };
2515
+ const baseURL = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs`;
2516
+ const getURL = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs/${params.logId}`;
2517
+ const get = (http, params) => {
2518
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getURL(params), {
2519
+ headers: _objectSpread({}, FunctionLogAlphaHeaders)
2520
+ });
2521
+ };
2522
+ const getAll = (http, params) => {
2523
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, baseURL(params), {
2524
+ headers: _objectSpread({}, FunctionLogAlphaHeaders)
2525
+ });
2526
+ };
2527
+
2528
+ /***/ }),
2529
+
2530
+ /***/ "./adapters/REST/endpoints/function.ts":
2531
+ /*!*********************************************!*\
2532
+ !*** ./adapters/REST/endpoints/function.ts ***!
2533
+ \*********************************************/
2534
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2535
+
2536
+ "use strict";
2537
+ __webpack_require__.r(__webpack_exports__);
2538
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2539
+ /* harmony export */ get: () => (/* binding */ get),
2540
+ /* harmony export */ getMany: () => (/* binding */ getMany),
2541
+ /* harmony export */ getManyForEnvironment: () => (/* binding */ getManyForEnvironment)
2542
+ /* harmony export */ });
2543
+ /* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
2544
+
2545
+ // Base URL
2546
+ const getManyUrl = params => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/functions`;
2547
+ const getFunctionUrl = params => `${getManyUrl(params)}/${params.functionId}`;
2548
+ const getFunctionsEnvURL = params => {
2549
+ return `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions`;
2550
+ };
2551
+ const get = (http, params) => {
2552
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getFunctionUrl(params));
2553
+ };
2554
+ const getMany = (http, params) => {
2555
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getManyUrl(params));
2556
+ };
2557
+ const getManyForEnvironment = (http, params) => {
2558
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getFunctionsEnvURL(params));
2559
+ };
2560
+
2561
+ /***/ }),
2562
+
2493
2563
  /***/ "./adapters/REST/endpoints/http.ts":
2494
2564
  /*!*****************************************!*\
2495
2565
  !*** ./adapters/REST/endpoints/http.ts ***!
@@ -2588,39 +2658,43 @@ __webpack_require__.r(__webpack_exports__);
2588
2658
  /* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./environment-template */ "./adapters/REST/endpoints/environment-template.ts");
2589
2659
  /* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./environment-template-installation */ "./adapters/REST/endpoints/environment-template-installation.ts");
2590
2660
  /* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./extension */ "./adapters/REST/endpoints/extension.ts");
2591
- /* harmony import */ var _http__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./http */ "./adapters/REST/endpoints/http.ts");
2592
- /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./locale */ "./adapters/REST/endpoints/locale.ts");
2593
- /* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./organization */ "./adapters/REST/endpoints/organization.ts");
2594
- /* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./organization-invitation */ "./adapters/REST/endpoints/organization-invitation.ts");
2595
- /* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./organization-membership */ "./adapters/REST/endpoints/organization-membership.ts");
2596
- /* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./personal-access-token */ "./adapters/REST/endpoints/personal-access-token.ts");
2597
- /* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts");
2598
- /* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts");
2599
- /* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts");
2600
- /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./resource */ "./adapters/REST/endpoints/resource.ts");
2601
- /* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./resource-provider */ "./adapters/REST/endpoints/resource-provider.ts");
2602
- /* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./resource-type */ "./adapters/REST/endpoints/resource-type.ts");
2603
- /* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts");
2604
- /* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts");
2605
- /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts");
2606
- /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts");
2607
- /* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts");
2608
- /* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts");
2609
- /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts");
2610
- /* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts");
2611
- /* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts");
2612
- /* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts");
2613
- /* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts");
2614
- /* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts");
2615
- /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts");
2616
- /* harmony import */ var _upload_credentials__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./upload-credentials */ "./adapters/REST/endpoints/upload-credentials.ts");
2617
- /* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts");
2618
- /* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts");
2619
- /* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts");
2620
- /* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts");
2621
- /* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts");
2622
- /* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts");
2623
- /* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts");
2661
+ /* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./function */ "./adapters/REST/endpoints/function.ts");
2662
+ /* harmony import */ var _function_log__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./function-log */ "./adapters/REST/endpoints/function-log.ts");
2663
+ /* harmony import */ var _http__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./http */ "./adapters/REST/endpoints/http.ts");
2664
+ /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./locale */ "./adapters/REST/endpoints/locale.ts");
2665
+ /* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./organization */ "./adapters/REST/endpoints/organization.ts");
2666
+ /* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./organization-invitation */ "./adapters/REST/endpoints/organization-invitation.ts");
2667
+ /* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./organization-membership */ "./adapters/REST/endpoints/organization-membership.ts");
2668
+ /* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./personal-access-token */ "./adapters/REST/endpoints/personal-access-token.ts");
2669
+ /* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts");
2670
+ /* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts");
2671
+ /* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts");
2672
+ /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./resource */ "./adapters/REST/endpoints/resource.ts");
2673
+ /* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./resource-provider */ "./adapters/REST/endpoints/resource-provider.ts");
2674
+ /* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./resource-type */ "./adapters/REST/endpoints/resource-type.ts");
2675
+ /* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts");
2676
+ /* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts");
2677
+ /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts");
2678
+ /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts");
2679
+ /* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts");
2680
+ /* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts");
2681
+ /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts");
2682
+ /* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts");
2683
+ /* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts");
2684
+ /* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts");
2685
+ /* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts");
2686
+ /* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts");
2687
+ /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts");
2688
+ /* harmony import */ var _upload_credentials__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./upload-credentials */ "./adapters/REST/endpoints/upload-credentials.ts");
2689
+ /* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts");
2690
+ /* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts");
2691
+ /* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts");
2692
+ /* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts");
2693
+ /* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts");
2694
+ /* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts");
2695
+ /* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts");
2696
+
2697
+
2624
2698
 
2625
2699
 
2626
2700
 
@@ -2710,40 +2784,42 @@ __webpack_require__.r(__webpack_exports__);
2710
2784
  EnvironmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_25__,
2711
2785
  EnvironmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_26__,
2712
2786
  Extension: _extension__WEBPACK_IMPORTED_MODULE_27__,
2713
- Http: _http__WEBPACK_IMPORTED_MODULE_28__,
2714
- Locale: _locale__WEBPACK_IMPORTED_MODULE_29__,
2715
- Organization: _organization__WEBPACK_IMPORTED_MODULE_30__,
2716
- OrganizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_31__,
2717
- OrganizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_32__,
2718
- PersonalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_33__,
2787
+ Function: _function__WEBPACK_IMPORTED_MODULE_28__,
2788
+ FunctionLog: _function_log__WEBPACK_IMPORTED_MODULE_29__,
2789
+ Http: _http__WEBPACK_IMPORTED_MODULE_30__,
2790
+ Locale: _locale__WEBPACK_IMPORTED_MODULE_31__,
2791
+ Organization: _organization__WEBPACK_IMPORTED_MODULE_32__,
2792
+ OrganizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_33__,
2793
+ OrganizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_34__,
2794
+ PersonalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_35__,
2719
2795
  AccessToken: _access_token__WEBPACK_IMPORTED_MODULE_0__,
2720
- PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_34__,
2721
- Release: _release__WEBPACK_IMPORTED_MODULE_35__,
2722
- ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_36__,
2723
- Resource: _resource__WEBPACK_IMPORTED_MODULE_37__,
2724
- ResourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_38__,
2725
- ResourceType: _resource_type__WEBPACK_IMPORTED_MODULE_39__,
2726
- Role: _role__WEBPACK_IMPORTED_MODULE_40__,
2727
- ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_41__,
2728
- Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_42__,
2729
- Space: _space__WEBPACK_IMPORTED_MODULE_43__,
2730
- SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_44__,
2731
- SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_45__,
2732
- Tag: _tag__WEBPACK_IMPORTED_MODULE_46__,
2733
- Task: _task__WEBPACK_IMPORTED_MODULE_47__,
2734
- Team: _team__WEBPACK_IMPORTED_MODULE_48__,
2735
- TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_49__,
2736
- TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_50__,
2737
- UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_51__,
2738
- Upload: _upload__WEBPACK_IMPORTED_MODULE_52__,
2739
- UploadCredential: _upload_credentials__WEBPACK_IMPORTED_MODULE_53__,
2740
- Usage: _usage__WEBPACK_IMPORTED_MODULE_54__,
2741
- User: _user__WEBPACK_IMPORTED_MODULE_55__,
2742
- UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_56__,
2743
- Webhook: _webhook__WEBPACK_IMPORTED_MODULE_57__,
2744
- WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_59__,
2745
- Workflow: _workflow__WEBPACK_IMPORTED_MODULE_58__,
2746
- WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_60__
2796
+ PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_36__,
2797
+ Release: _release__WEBPACK_IMPORTED_MODULE_37__,
2798
+ ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_38__,
2799
+ Resource: _resource__WEBPACK_IMPORTED_MODULE_39__,
2800
+ ResourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_40__,
2801
+ ResourceType: _resource_type__WEBPACK_IMPORTED_MODULE_41__,
2802
+ Role: _role__WEBPACK_IMPORTED_MODULE_42__,
2803
+ ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_43__,
2804
+ Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_44__,
2805
+ Space: _space__WEBPACK_IMPORTED_MODULE_45__,
2806
+ SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_46__,
2807
+ SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_47__,
2808
+ Tag: _tag__WEBPACK_IMPORTED_MODULE_48__,
2809
+ Task: _task__WEBPACK_IMPORTED_MODULE_49__,
2810
+ Team: _team__WEBPACK_IMPORTED_MODULE_50__,
2811
+ TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_51__,
2812
+ TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_52__,
2813
+ UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_53__,
2814
+ Upload: _upload__WEBPACK_IMPORTED_MODULE_54__,
2815
+ UploadCredential: _upload_credentials__WEBPACK_IMPORTED_MODULE_55__,
2816
+ Usage: _usage__WEBPACK_IMPORTED_MODULE_56__,
2817
+ User: _user__WEBPACK_IMPORTED_MODULE_57__,
2818
+ UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_58__,
2819
+ Webhook: _webhook__WEBPACK_IMPORTED_MODULE_59__,
2820
+ WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_61__,
2821
+ Workflow: _workflow__WEBPACK_IMPORTED_MODULE_60__,
2822
+ WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_62__
2747
2823
  });
2748
2824
 
2749
2825
  /***/ }),
@@ -9269,6 +9345,246 @@ function createEnvironmentTemplateApi(makeRequest, organizationId) {
9269
9345
 
9270
9346
  /***/ }),
9271
9347
 
9348
+ /***/ "./create-function-api.ts":
9349
+ /*!********************************!*\
9350
+ !*** ./create-function-api.ts ***!
9351
+ \********************************/
9352
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9353
+
9354
+ "use strict";
9355
+ __webpack_require__.r(__webpack_exports__);
9356
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9357
+ /* harmony export */ "default": () => (/* binding */ createFunctionApi)
9358
+ /* harmony export */ });
9359
+ /* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entities */ "./entities/index.ts");
9360
+
9361
+
9362
+ /**
9363
+ * @private
9364
+ */
9365
+
9366
+ /**
9367
+ * @private
9368
+ */
9369
+ function createFunctionApi(makeRequest) {
9370
+ const {
9371
+ wrapFunction,
9372
+ wrapFunctionCollection
9373
+ } = _entities__WEBPACK_IMPORTED_MODULE_0__["default"].func;
9374
+ return {
9375
+ /**
9376
+ * Gets all Functions for an App Definition
9377
+ * @Param organizationId - Organization ID
9378
+ * @Param appDefinitionId - App Definition ID
9379
+ * @returns a collection of Functions
9380
+ * ```javascript
9381
+ * const contentful = require('contentful-management')
9382
+ *
9383
+ * const client = contentful.createClient({
9384
+ * accessToken: '<content_management_api_key>'
9385
+ * })
9386
+ *
9387
+ * client.function.getMany({
9388
+ * organizationId: <organizationId>,
9389
+ * appDefinitionId: <appDefinitionId>
9390
+ * })
9391
+ * .then((response) => console.log(response.items))
9392
+ * .catch(console.error)
9393
+ * ```
9394
+ */
9395
+ getManyFunctions() {
9396
+ const raw = this.toPlainObject();
9397
+ return makeRequest({
9398
+ entityType: 'Function',
9399
+ action: 'getMany',
9400
+ params: {
9401
+ appDefinitionId: raw.sys.appDefinition.sys.id,
9402
+ organizationId: raw.sys.organization.sys.id
9403
+ }
9404
+ }).then(data => wrapFunctionCollection(makeRequest, data));
9405
+ },
9406
+ /**
9407
+ * Gets a Function by ID
9408
+ * @Param organizationId - Organization ID
9409
+ * @Param appDefinitionId - App Definition ID
9410
+ * @Param functionId - Function ID
9411
+ * @returns a collection of Functions
9412
+ * ```javascript
9413
+ * const contentful = require('contentful-management')
9414
+ *
9415
+ * const client = contentful.createClient({
9416
+ * accessToken: '<content_management_api_key>'
9417
+ * })
9418
+ *
9419
+ * client.function.get({
9420
+ * organizationId: <organizationId>,
9421
+ * appDefinitionId: <appDefinitionId>,
9422
+ * functionId: <functionId>
9423
+ * })
9424
+ * .then((response) => console.log(response.items))
9425
+ * .catch(console.error)
9426
+ * ```
9427
+ */
9428
+ getFunction(functionId) {
9429
+ const raw = this.toPlainObject();
9430
+ return makeRequest({
9431
+ entityType: 'Function',
9432
+ action: 'get',
9433
+ params: {
9434
+ appDefinitionId: raw.sys.appDefinition.sys.id,
9435
+ organizationId: raw.sys.organization.sys.id,
9436
+ functionId
9437
+ }
9438
+ }).then(data => wrapFunction(makeRequest, data));
9439
+ },
9440
+ /**
9441
+ * Gets all Functions for an Environment
9442
+ * @Param organizationId - Organization ID
9443
+ * @Param appDefinitionId - App Definition ID
9444
+ * @Param functionId - Function ID
9445
+ * @returns a collection of Functions
9446
+ * ```javascript
9447
+ * const contentful = require('contentful-management')
9448
+ *
9449
+ * const client = contentful.createClient({
9450
+ * accessToken: '<content_management_api_key>'
9451
+ * })
9452
+ *
9453
+ * client.function.get({
9454
+ * environmentId: <environmentId>,
9455
+ * spaceId: <spaceId>,
9456
+ * appInstallationId: <appInstallationId>
9457
+ * })
9458
+ * .then((response) => console.log(response.items))
9459
+ * .catch(console.error)
9460
+ * ```
9461
+ */
9462
+ getManyFunctionsForEnvironment(spaceId, environmentId, appInstallationId) {
9463
+ return makeRequest({
9464
+ entityType: 'Function',
9465
+ action: 'getManyForEnvironment',
9466
+ params: {
9467
+ spaceId: spaceId,
9468
+ environmentId: environmentId,
9469
+ appInstallationId: appInstallationId
9470
+ }
9471
+ }).then(data => wrapFunctionCollection(makeRequest, data));
9472
+ }
9473
+ };
9474
+ }
9475
+
9476
+ /***/ }),
9477
+
9478
+ /***/ "./create-function-log-api.ts":
9479
+ /*!************************************!*\
9480
+ !*** ./create-function-log-api.ts ***!
9481
+ \************************************/
9482
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9483
+
9484
+ "use strict";
9485
+ __webpack_require__.r(__webpack_exports__);
9486
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9487
+ /* harmony export */ "default": () => (/* binding */ createFunctionLogApi)
9488
+ /* harmony export */ });
9489
+ /* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entities */ "./entities/index.ts");
9490
+ /* harmony import */ var _entities_function_log__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities/function-log */ "./entities/function-log.ts");
9491
+
9492
+
9493
+
9494
+ /**
9495
+ * @private
9496
+ */
9497
+
9498
+ /**
9499
+ * @private
9500
+ */
9501
+ function createFunctionLogApi(makeRequest) {
9502
+ const {
9503
+ wrapFunctionLog
9504
+ } = _entities__WEBPACK_IMPORTED_MODULE_0__["default"].functionLog;
9505
+ return {
9506
+ /**
9507
+ * Get a FunctionLog by it's log ID
9508
+ * @Param spaceId - Space ID
9509
+ * @Param environmentId - Environment ID
9510
+ * @Param appInstallationId - App Installation ID
9511
+ * @Param functionId - Function ID
9512
+ * @Param logId - Log ID
9513
+ * @returns a function log
9514
+ * ```javascript
9515
+ * const contentful = require('contentful-management')
9516
+ *
9517
+ * const client = contentful.createClient({
9518
+ * accessToken: '<content_management_api_key>'
9519
+ * })
9520
+ *
9521
+ * client.functionLog.get({
9522
+ * spaceId: '<space_id>',
9523
+ * environmentId: '<environment_id>',
9524
+ * appInstallationId: '<app_installation_id>',
9525
+ * functionId: '<function_id>',
9526
+ * logId: '<log_id>'
9527
+ * })
9528
+ * .then((response) => console.log(response.items))
9529
+ * .catch(console.error)
9530
+ * ```
9531
+ */
9532
+ get(logId) {
9533
+ const raw = this.toPlainObject();
9534
+ return makeRequest({
9535
+ entityType: 'FunctionLog',
9536
+ action: 'get',
9537
+ params: {
9538
+ spaceId: raw.sys.space.sys.id,
9539
+ environmentId: raw.sys.environment.sys.id,
9540
+ appInstallationId: raw.sys.appDefinition.sys.id,
9541
+ functionId: raw.sys.id,
9542
+ logId: logId
9543
+ }
9544
+ }).then(data => wrapFunctionLog(makeRequest, data));
9545
+ },
9546
+ /**
9547
+ * Get all FunctionLogs
9548
+ * @Param spaceId - Space ID
9549
+ * @Param environmentId - Environment ID
9550
+ * @Param appInstallationId - App Installation ID
9551
+ * @Param functionId - Function ID
9552
+ * @returns a collection of FunctionLogs
9553
+ * ```javascript
9554
+ * const contentful = require('contentful-management')
9555
+ *
9556
+ * const client = contentful.createClient({
9557
+ * accessToken: '<content_management_api_key>'
9558
+ * })
9559
+ *
9560
+ * client.functionLog.getAll({
9561
+ * spaceId: '<space_id>',
9562
+ * environmentId: '<environment_id>',
9563
+ * appInstallationId: '<app_installation_id>',
9564
+ * functionId: '<function_id>'
9565
+ * })
9566
+ * .then((response) => console.log(response.items))
9567
+ * .catch(console.error)
9568
+ * ```
9569
+ */
9570
+ getAll() {
9571
+ const raw = this.toPlainObject();
9572
+ return makeRequest({
9573
+ entityType: 'FunctionLog',
9574
+ action: 'getAll',
9575
+ params: {
9576
+ spaceId: raw.sys.space.sys.id,
9577
+ environmentId: raw.sys.environment.sys.id,
9578
+ appInstallationId: raw.sys.appDefinition.sys.id,
9579
+ functionId: raw.sys.id
9580
+ }
9581
+ }).then(data => (0,_entities_function_log__WEBPACK_IMPORTED_MODULE_1__.wrapFunctionLogCollection)(makeRequest, data));
9582
+ }
9583
+ };
9584
+ }
9585
+
9586
+ /***/ }),
9587
+
9272
9588
  /***/ "./create-organization-api.ts":
9273
9589
  /*!************************************!*\
9274
9590
  !*** ./create-organization-api.ts ***!
@@ -13998,6 +14314,94 @@ const wrapExtensionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wr
13998
14314
 
13999
14315
  /***/ }),
14000
14316
 
14317
+ /***/ "./entities/function-log.ts":
14318
+ /*!**********************************!*\
14319
+ !*** ./entities/function-log.ts ***!
14320
+ \**********************************/
14321
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
14322
+
14323
+ "use strict";
14324
+ __webpack_require__.r(__webpack_exports__);
14325
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
14326
+ /* harmony export */ wrapFunctionLog: () => (/* binding */ wrapFunctionLog),
14327
+ /* harmony export */ wrapFunctionLogCollection: () => (/* binding */ wrapFunctionLogCollection)
14328
+ /* harmony export */ });
14329
+ /* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
14330
+ /* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
14331
+ /* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
14332
+ /* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
14333
+ /* harmony import */ var _create_function_log_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../create-function-log-api */ "./create-function-log-api.ts");
14334
+
14335
+
14336
+
14337
+
14338
+
14339
+ /**
14340
+ * @private
14341
+ * @param makeRequest - function to make requests via an adapter
14342
+ * @param data - raw contentful-Function data
14343
+ * @return Wrapped Function data
14344
+ */
14345
+ function wrapFunctionLog(makeRequest, data) {
14346
+ const appAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
14347
+ const appActionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(appAction, (0,_create_function_log_api__WEBPACK_IMPORTED_MODULE_4__["default"])(makeRequest));
14348
+ return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(appActionWithMethods);
14349
+ }
14350
+
14351
+ /**
14352
+ * @private
14353
+ * @param makeRequest - function to make requests via an adapter
14354
+ * @param data - raw contentful-function data
14355
+ * @return Wrapped App Function collection data
14356
+ */
14357
+ const wrapFunctionLogCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapFunctionLog);
14358
+
14359
+ /***/ }),
14360
+
14361
+ /***/ "./entities/function.ts":
14362
+ /*!******************************!*\
14363
+ !*** ./entities/function.ts ***!
14364
+ \******************************/
14365
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
14366
+
14367
+ "use strict";
14368
+ __webpack_require__.r(__webpack_exports__);
14369
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
14370
+ /* harmony export */ wrapFunction: () => (/* binding */ wrapFunction),
14371
+ /* harmony export */ wrapFunctionCollection: () => (/* binding */ wrapFunctionCollection)
14372
+ /* harmony export */ });
14373
+ /* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
14374
+ /* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
14375
+ /* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
14376
+ /* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
14377
+ /* harmony import */ var _create_function_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../create-function-api */ "./create-function-api.ts");
14378
+
14379
+
14380
+
14381
+
14382
+
14383
+ /**
14384
+ * @private
14385
+ * @param makeRequest - (real) function to make requests via an adapter
14386
+ * @param data - raw contentful-Function data
14387
+ * @return Wrapped Function data
14388
+ */
14389
+ function wrapFunction(makeRequest, data) {
14390
+ const appAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
14391
+ const appActionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(appAction, (0,_create_function_api__WEBPACK_IMPORTED_MODULE_4__["default"])(makeRequest));
14392
+ return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(appActionWithMethods);
14393
+ }
14394
+
14395
+ /**
14396
+ * @private
14397
+ * @param makeRequest - real) function to make requests via an adapter
14398
+ * @param data - raw contentful-function data
14399
+ * @return Wrapped App Function collection data
14400
+ */
14401
+ const wrapFunctionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapFunction);
14402
+
14403
+ /***/ }),
14404
+
14001
14405
  /***/ "./entities/index.ts":
14002
14406
  /*!***************************!*\
14003
14407
  !*** ./entities/index.ts ***!
@@ -14034,38 +14438,42 @@ __webpack_require__.r(__webpack_exports__);
14034
14438
  /* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./environment-template */ "./entities/environment-template.ts");
14035
14439
  /* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./environment-template-installation */ "./entities/environment-template-installation.ts");
14036
14440
  /* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./extension */ "./entities/extension.ts");
14037
- /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./locale */ "./entities/locale.ts");
14038
- /* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts");
14039
- /* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts");
14040
- /* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts");
14041
- /* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts");
14042
- /* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./access-token */ "./entities/access-token.ts");
14043
- /* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts");
14044
- /* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./release */ "./entities/release.ts");
14045
- /* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts");
14046
- /* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./role */ "./entities/role.ts");
14047
- /* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts");
14048
- /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts");
14049
- /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./space */ "./entities/space.ts");
14050
- /* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts");
14051
- /* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts");
14052
- /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts");
14053
- /* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./task */ "./entities/task.ts");
14054
- /* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./team */ "./entities/team.ts");
14055
- /* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts");
14056
- /* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts");
14057
- /* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts");
14058
- /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts");
14059
- /* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts");
14060
- /* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./user */ "./entities/user.ts");
14061
- /* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts");
14062
- /* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts");
14063
- /* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts");
14064
- /* harmony import */ var _concept__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./concept */ "./entities/concept.ts");
14065
- /* harmony import */ var _concept_scheme__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./concept-scheme */ "./entities/concept-scheme.ts");
14066
- /* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./resource-provider */ "./entities/resource-provider.ts");
14067
- /* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./resource-type */ "./entities/resource-type.ts");
14068
- /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./resource */ "./entities/resource.ts");
14441
+ /* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./function */ "./entities/function.ts");
14442
+ /* harmony import */ var _function_log__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./function-log */ "./entities/function-log.ts");
14443
+ /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./locale */ "./entities/locale.ts");
14444
+ /* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts");
14445
+ /* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts");
14446
+ /* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts");
14447
+ /* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts");
14448
+ /* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./access-token */ "./entities/access-token.ts");
14449
+ /* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts");
14450
+ /* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./release */ "./entities/release.ts");
14451
+ /* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts");
14452
+ /* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./role */ "./entities/role.ts");
14453
+ /* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts");
14454
+ /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts");
14455
+ /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./space */ "./entities/space.ts");
14456
+ /* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts");
14457
+ /* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts");
14458
+ /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts");
14459
+ /* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./task */ "./entities/task.ts");
14460
+ /* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./team */ "./entities/team.ts");
14461
+ /* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts");
14462
+ /* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts");
14463
+ /* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts");
14464
+ /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts");
14465
+ /* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts");
14466
+ /* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./user */ "./entities/user.ts");
14467
+ /* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts");
14468
+ /* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts");
14469
+ /* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts");
14470
+ /* harmony import */ var _concept__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./concept */ "./entities/concept.ts");
14471
+ /* harmony import */ var _concept_scheme__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./concept-scheme */ "./entities/concept-scheme.ts");
14472
+ /* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./resource-provider */ "./entities/resource-provider.ts");
14473
+ /* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./resource-type */ "./entities/resource-type.ts");
14474
+ /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./resource */ "./entities/resource.ts");
14475
+
14476
+
14069
14477
 
14070
14478
 
14071
14479
 
@@ -14124,7 +14532,7 @@ __webpack_require__.r(__webpack_exports__);
14124
14532
 
14125
14533
 
14126
14534
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
14127
- accessToken: _access_token__WEBPACK_IMPORTED_MODULE_30__,
14535
+ accessToken: _access_token__WEBPACK_IMPORTED_MODULE_32__,
14128
14536
  appAction: _app_action__WEBPACK_IMPORTED_MODULE_1__,
14129
14537
  appActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_2__,
14130
14538
  appBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_3__,
@@ -14142,8 +14550,8 @@ __webpack_require__.r(__webpack_exports__);
14142
14550
  assetKey: _asset_key__WEBPACK_IMPORTED_MODULE_14__,
14143
14551
  bulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_15__,
14144
14552
  comment: _comment__WEBPACK_IMPORTED_MODULE_16__,
14145
- concept: _concept__WEBPACK_IMPORTED_MODULE_52__,
14146
- conceptScheme: _concept_scheme__WEBPACK_IMPORTED_MODULE_53__,
14553
+ concept: _concept__WEBPACK_IMPORTED_MODULE_54__,
14554
+ conceptScheme: _concept_scheme__WEBPACK_IMPORTED_MODULE_55__,
14147
14555
  contentType: _content_type__WEBPACK_IMPORTED_MODULE_17__,
14148
14556
  editorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_18__,
14149
14557
  entry: _entry__WEBPACK_IMPORTED_MODULE_19__,
@@ -14152,35 +14560,37 @@ __webpack_require__.r(__webpack_exports__);
14152
14560
  environmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_22__,
14153
14561
  environmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__,
14154
14562
  extension: _extension__WEBPACK_IMPORTED_MODULE_24__,
14155
- locale: _locale__WEBPACK_IMPORTED_MODULE_25__,
14156
- organization: _organization__WEBPACK_IMPORTED_MODULE_26__,
14157
- organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_27__,
14158
- organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_28__,
14159
- personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_29__,
14160
- previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_31__,
14161
- release: _release__WEBPACK_IMPORTED_MODULE_32__,
14162
- releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_33__,
14163
- resourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_54__,
14164
- resourceType: _resource_type__WEBPACK_IMPORTED_MODULE_55__,
14165
- resource: _resource__WEBPACK_IMPORTED_MODULE_56__,
14166
- role: _role__WEBPACK_IMPORTED_MODULE_34__,
14167
- scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_35__,
14168
- snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_36__,
14169
- space: _space__WEBPACK_IMPORTED_MODULE_37__,
14170
- spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_38__,
14171
- spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_39__,
14172
- tag: _tag__WEBPACK_IMPORTED_MODULE_40__,
14173
- task: _task__WEBPACK_IMPORTED_MODULE_41__,
14174
- team: _team__WEBPACK_IMPORTED_MODULE_42__,
14175
- teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_43__,
14176
- teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_44__,
14177
- uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_45__,
14178
- upload: _upload__WEBPACK_IMPORTED_MODULE_46__,
14179
- usage: _usage__WEBPACK_IMPORTED_MODULE_47__,
14180
- user: _user__WEBPACK_IMPORTED_MODULE_48__,
14181
- userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_49__,
14182
- webhook: _webhook__WEBPACK_IMPORTED_MODULE_50__,
14183
- workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_51__
14563
+ func: _function__WEBPACK_IMPORTED_MODULE_25__,
14564
+ functionLog: _function_log__WEBPACK_IMPORTED_MODULE_26__,
14565
+ locale: _locale__WEBPACK_IMPORTED_MODULE_27__,
14566
+ organization: _organization__WEBPACK_IMPORTED_MODULE_28__,
14567
+ organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_29__,
14568
+ organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_30__,
14569
+ personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_31__,
14570
+ previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_33__,
14571
+ release: _release__WEBPACK_IMPORTED_MODULE_34__,
14572
+ releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_35__,
14573
+ resourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_56__,
14574
+ resourceType: _resource_type__WEBPACK_IMPORTED_MODULE_57__,
14575
+ resource: _resource__WEBPACK_IMPORTED_MODULE_58__,
14576
+ role: _role__WEBPACK_IMPORTED_MODULE_36__,
14577
+ scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_37__,
14578
+ snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_38__,
14579
+ space: _space__WEBPACK_IMPORTED_MODULE_39__,
14580
+ spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_40__,
14581
+ spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_41__,
14582
+ tag: _tag__WEBPACK_IMPORTED_MODULE_42__,
14583
+ task: _task__WEBPACK_IMPORTED_MODULE_43__,
14584
+ team: _team__WEBPACK_IMPORTED_MODULE_44__,
14585
+ teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_45__,
14586
+ teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_46__,
14587
+ uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_47__,
14588
+ upload: _upload__WEBPACK_IMPORTED_MODULE_48__,
14589
+ usage: _usage__WEBPACK_IMPORTED_MODULE_49__,
14590
+ user: _user__WEBPACK_IMPORTED_MODULE_50__,
14591
+ userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_51__,
14592
+ webhook: _webhook__WEBPACK_IMPORTED_MODULE_52__,
14593
+ workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_53__
14184
14594
  });
14185
14595
 
14186
14596
  /***/ }),
@@ -16728,7 +17138,13 @@ const createPlainClient = (makeRequest, defaults) => {
16728
17138
  updatePut: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ConceptScheme', 'updatePut')
16729
17139
  },
16730
17140
  function: {
16731
- getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'getMany')
17141
+ get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'get'),
17142
+ getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'getMany'),
17143
+ getManyForEnvironment: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'getManyForEnvironment')
17144
+ },
17145
+ functionLog: {
17146
+ get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'FunctionLog', 'get'),
17147
+ getAll: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'FunctionLog', 'getAll')
16732
17148
  },
16733
17149
  editorInterface: {
16734
17150
  get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EditorInterface', 'get'),
@@ -30754,7 +31170,7 @@ function createClient(params, opts = {}) {
30754
31170
  const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
30755
31171
  const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
30756
31172
  // @ts-expect-error
30757
- `${sdkMain}/${"11.42.0"}`, params.application, params.integration, params.feature);
31173
+ `${sdkMain}/${"11.43.0-beta.2"}`, params.application, params.integration, params.feature);
30758
31174
  const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
30759
31175
  userAgent
30760
31176
  }));