contentful-management 11.41.0 → 11.43.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contentful-management.browser.js +410 -139
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +401 -139
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/asset.js +27 -4
- package/dist/es-modules/adapters/REST/endpoints/entry.js +27 -3
- package/dist/es-modules/adapters/REST/endpoints/function.js +16 -0
- package/dist/es-modules/adapters/REST/endpoints/index.js +2 -0
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/create-function-api.js +115 -0
- package/dist/es-modules/entities/function.js +24 -1
- package/dist/es-modules/entities/index.js +2 -0
- package/dist/es-modules/plain/entities/function.js +1 -0
- package/dist/es-modules/plain/plain-client.js +3 -1
- package/dist/typings/adapters/REST/endpoints/function.d.ts +4 -0
- package/dist/typings/adapters/REST/endpoints/index.d.ts +2 -0
- package/dist/typings/common-types.d.ts +27 -6
- package/dist/typings/create-function-api.d.ts +78 -0
- package/dist/typings/entities/function.d.ts +23 -1
- package/dist/typings/entities/index.d.ts +2 -0
- package/dist/typings/plain/common-types.d.ts +7 -5
- package/dist/typings/plain/entities/function.d.ts +49 -0
- package/package.json +1 -1
|
@@ -1336,15 +1336,38 @@ const del = (http, params) => {
|
|
|
1336
1336
|
return _raw__WEBPACK_IMPORTED_MODULE_3__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`);
|
|
1337
1337
|
};
|
|
1338
1338
|
const publish = (http, params, rawData) => {
|
|
1339
|
-
var _rawData$sys$version2;
|
|
1340
|
-
|
|
1339
|
+
var _params$locales, _rawData$sys$version2;
|
|
1340
|
+
const payload = (_params$locales = params.locales) !== null && _params$locales !== void 0 && _params$locales.length ? {
|
|
1341
|
+
add: {
|
|
1342
|
+
fields: {
|
|
1343
|
+
'*': params.locales
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
} : null;
|
|
1347
|
+
return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, payload, {
|
|
1341
1348
|
headers: {
|
|
1342
1349
|
'X-Contentful-Version': (_rawData$sys$version2 = rawData.sys.version) !== null && _rawData$sys$version2 !== void 0 ? _rawData$sys$version2 : 0
|
|
1343
1350
|
}
|
|
1344
1351
|
});
|
|
1345
1352
|
};
|
|
1346
|
-
const unpublish = (http, params) => {
|
|
1347
|
-
|
|
1353
|
+
const unpublish = (http, params, rawData) => {
|
|
1354
|
+
var _params$locales2;
|
|
1355
|
+
if ((_params$locales2 = params.locales) !== null && _params$locales2 !== void 0 && _params$locales2.length) {
|
|
1356
|
+
const payload = {
|
|
1357
|
+
remove: {
|
|
1358
|
+
fields: {
|
|
1359
|
+
'*': params.locales
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
};
|
|
1363
|
+
return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, payload, {
|
|
1364
|
+
headers: {
|
|
1365
|
+
'X-Contentful-Version': rawData === null || rawData === void 0 ? void 0 : rawData.sys.version
|
|
1366
|
+
}
|
|
1367
|
+
});
|
|
1368
|
+
} else {
|
|
1369
|
+
return _raw__WEBPACK_IMPORTED_MODULE_3__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`);
|
|
1370
|
+
}
|
|
1348
1371
|
};
|
|
1349
1372
|
const archive = (http, params) => {
|
|
1350
1373
|
return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
|
|
@@ -2031,14 +2054,38 @@ const del = (http, params) => {
|
|
|
2031
2054
|
return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`);
|
|
2032
2055
|
};
|
|
2033
2056
|
const publish = (http, params, rawData) => {
|
|
2034
|
-
|
|
2057
|
+
var _params$locales;
|
|
2058
|
+
const payload = (_params$locales = params.locales) !== null && _params$locales !== void 0 && _params$locales.length ? {
|
|
2059
|
+
add: {
|
|
2060
|
+
fields: {
|
|
2061
|
+
'*': params.locales
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
} : null;
|
|
2065
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
|
|
2035
2066
|
headers: {
|
|
2036
2067
|
'X-Contentful-Version': rawData.sys.version
|
|
2037
2068
|
}
|
|
2038
2069
|
});
|
|
2039
2070
|
};
|
|
2040
|
-
const unpublish = (http, params) => {
|
|
2041
|
-
|
|
2071
|
+
const unpublish = (http, params, rawData) => {
|
|
2072
|
+
var _params$locales2;
|
|
2073
|
+
if ((_params$locales2 = params.locales) !== null && _params$locales2 !== void 0 && _params$locales2.length) {
|
|
2074
|
+
const payload = {
|
|
2075
|
+
remove: {
|
|
2076
|
+
fields: {
|
|
2077
|
+
'*': params.locales
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
};
|
|
2081
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
|
|
2082
|
+
headers: {
|
|
2083
|
+
'X-Contentful-Version': rawData === null || rawData === void 0 ? void 0 : rawData.sys.version
|
|
2084
|
+
}
|
|
2085
|
+
});
|
|
2086
|
+
} else {
|
|
2087
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`);
|
|
2088
|
+
}
|
|
2042
2089
|
};
|
|
2043
2090
|
const archive = (http, params) => {
|
|
2044
2091
|
return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
|
|
@@ -2443,6 +2490,39 @@ const del = (http, params) => {
|
|
|
2443
2490
|
|
|
2444
2491
|
/***/ }),
|
|
2445
2492
|
|
|
2493
|
+
/***/ "./adapters/REST/endpoints/function.ts":
|
|
2494
|
+
/*!*********************************************!*\
|
|
2495
|
+
!*** ./adapters/REST/endpoints/function.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 */ getMany: () => (/* binding */ getMany),
|
|
2504
|
+
/* harmony export */ getManyForEnvironment: () => (/* binding */ getManyForEnvironment)
|
|
2505
|
+
/* harmony export */ });
|
|
2506
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
2507
|
+
|
|
2508
|
+
// Base URL
|
|
2509
|
+
const getManyUrl = params => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/functions`;
|
|
2510
|
+
const getFunctionUrl = params => `${getManyUrl(params)}/${params.functionId}`;
|
|
2511
|
+
const getFunctionsEnvURL = params => {
|
|
2512
|
+
return `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions`;
|
|
2513
|
+
};
|
|
2514
|
+
const get = (http, params) => {
|
|
2515
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getFunctionUrl(params));
|
|
2516
|
+
};
|
|
2517
|
+
const getMany = (http, params) => {
|
|
2518
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getManyUrl(params));
|
|
2519
|
+
};
|
|
2520
|
+
const getManyForEnvironment = (http, params) => {
|
|
2521
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getFunctionsEnvURL(params));
|
|
2522
|
+
};
|
|
2523
|
+
|
|
2524
|
+
/***/ }),
|
|
2525
|
+
|
|
2446
2526
|
/***/ "./adapters/REST/endpoints/http.ts":
|
|
2447
2527
|
/*!*****************************************!*\
|
|
2448
2528
|
!*** ./adapters/REST/endpoints/http.ts ***!
|
|
@@ -2541,39 +2621,41 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2541
2621
|
/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./environment-template */ "./adapters/REST/endpoints/environment-template.ts");
|
|
2542
2622
|
/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./environment-template-installation */ "./adapters/REST/endpoints/environment-template-installation.ts");
|
|
2543
2623
|
/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./extension */ "./adapters/REST/endpoints/extension.ts");
|
|
2544
|
-
/* harmony import */ var
|
|
2545
|
-
/* harmony import */ var
|
|
2546
|
-
/* harmony import */ var
|
|
2547
|
-
/* harmony import */ var
|
|
2548
|
-
/* harmony import */ var
|
|
2549
|
-
/* harmony import */ var
|
|
2550
|
-
/* harmony import */ var
|
|
2551
|
-
/* harmony import */ var
|
|
2552
|
-
/* harmony import */ var
|
|
2553
|
-
/* harmony import */ var
|
|
2554
|
-
/* harmony import */ var
|
|
2555
|
-
/* harmony import */ var
|
|
2556
|
-
/* harmony import */ var
|
|
2557
|
-
/* harmony import */ var
|
|
2558
|
-
/* harmony import */ var
|
|
2559
|
-
/* harmony import */ var
|
|
2560
|
-
/* harmony import */ var
|
|
2561
|
-
/* harmony import */ var
|
|
2562
|
-
/* harmony import */ var
|
|
2563
|
-
/* harmony import */ var
|
|
2564
|
-
/* harmony import */ var
|
|
2565
|
-
/* harmony import */ var
|
|
2566
|
-
/* harmony import */ var
|
|
2567
|
-
/* harmony import */ var
|
|
2568
|
-
/* harmony import */ var
|
|
2569
|
-
/* harmony import */ var
|
|
2570
|
-
/* harmony import */ var
|
|
2571
|
-
/* harmony import */ var
|
|
2572
|
-
/* harmony import */ var
|
|
2573
|
-
/* harmony import */ var
|
|
2574
|
-
/* harmony import */ var
|
|
2575
|
-
/* harmony import */ var
|
|
2576
|
-
/* harmony import */ var
|
|
2624
|
+
/* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./function */ "./adapters/REST/endpoints/function.ts");
|
|
2625
|
+
/* harmony import */ var _http__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./http */ "./adapters/REST/endpoints/http.ts");
|
|
2626
|
+
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./locale */ "./adapters/REST/endpoints/locale.ts");
|
|
2627
|
+
/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./organization */ "./adapters/REST/endpoints/organization.ts");
|
|
2628
|
+
/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./organization-invitation */ "./adapters/REST/endpoints/organization-invitation.ts");
|
|
2629
|
+
/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./organization-membership */ "./adapters/REST/endpoints/organization-membership.ts");
|
|
2630
|
+
/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./personal-access-token */ "./adapters/REST/endpoints/personal-access-token.ts");
|
|
2631
|
+
/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts");
|
|
2632
|
+
/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts");
|
|
2633
|
+
/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts");
|
|
2634
|
+
/* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./resource */ "./adapters/REST/endpoints/resource.ts");
|
|
2635
|
+
/* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./resource-provider */ "./adapters/REST/endpoints/resource-provider.ts");
|
|
2636
|
+
/* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./resource-type */ "./adapters/REST/endpoints/resource-type.ts");
|
|
2637
|
+
/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts");
|
|
2638
|
+
/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts");
|
|
2639
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts");
|
|
2640
|
+
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts");
|
|
2641
|
+
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts");
|
|
2642
|
+
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts");
|
|
2643
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts");
|
|
2644
|
+
/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts");
|
|
2645
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts");
|
|
2646
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts");
|
|
2647
|
+
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts");
|
|
2648
|
+
/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts");
|
|
2649
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts");
|
|
2650
|
+
/* harmony import */ var _upload_credentials__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./upload-credentials */ "./adapters/REST/endpoints/upload-credentials.ts");
|
|
2651
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts");
|
|
2652
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts");
|
|
2653
|
+
/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts");
|
|
2654
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts");
|
|
2655
|
+
/* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts");
|
|
2656
|
+
/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts");
|
|
2657
|
+
/* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts");
|
|
2658
|
+
|
|
2577
2659
|
|
|
2578
2660
|
|
|
2579
2661
|
|
|
@@ -2663,40 +2745,41 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2663
2745
|
EnvironmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_25__,
|
|
2664
2746
|
EnvironmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_26__,
|
|
2665
2747
|
Extension: _extension__WEBPACK_IMPORTED_MODULE_27__,
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2748
|
+
Function: _function__WEBPACK_IMPORTED_MODULE_28__,
|
|
2749
|
+
Http: _http__WEBPACK_IMPORTED_MODULE_29__,
|
|
2750
|
+
Locale: _locale__WEBPACK_IMPORTED_MODULE_30__,
|
|
2751
|
+
Organization: _organization__WEBPACK_IMPORTED_MODULE_31__,
|
|
2752
|
+
OrganizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_32__,
|
|
2753
|
+
OrganizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_33__,
|
|
2754
|
+
PersonalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_34__,
|
|
2672
2755
|
AccessToken: _access_token__WEBPACK_IMPORTED_MODULE_0__,
|
|
2673
|
-
PreviewApiKey:
|
|
2674
|
-
Release:
|
|
2675
|
-
ReleaseAction:
|
|
2676
|
-
Resource:
|
|
2677
|
-
ResourceProvider:
|
|
2678
|
-
ResourceType:
|
|
2679
|
-
Role:
|
|
2680
|
-
ScheduledAction:
|
|
2681
|
-
Snapshot:
|
|
2682
|
-
Space:
|
|
2683
|
-
SpaceMember:
|
|
2684
|
-
SpaceMembership:
|
|
2685
|
-
Tag:
|
|
2686
|
-
Task:
|
|
2687
|
-
Team:
|
|
2688
|
-
TeamMembership:
|
|
2689
|
-
TeamSpaceMembership:
|
|
2690
|
-
UIConfig:
|
|
2691
|
-
Upload:
|
|
2692
|
-
UploadCredential:
|
|
2693
|
-
Usage:
|
|
2694
|
-
User:
|
|
2695
|
-
UserUIConfig:
|
|
2696
|
-
Webhook:
|
|
2697
|
-
WorkflowDefinition:
|
|
2698
|
-
Workflow:
|
|
2699
|
-
WorkflowsChangelog:
|
|
2756
|
+
PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_35__,
|
|
2757
|
+
Release: _release__WEBPACK_IMPORTED_MODULE_36__,
|
|
2758
|
+
ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_37__,
|
|
2759
|
+
Resource: _resource__WEBPACK_IMPORTED_MODULE_38__,
|
|
2760
|
+
ResourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_39__,
|
|
2761
|
+
ResourceType: _resource_type__WEBPACK_IMPORTED_MODULE_40__,
|
|
2762
|
+
Role: _role__WEBPACK_IMPORTED_MODULE_41__,
|
|
2763
|
+
ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_42__,
|
|
2764
|
+
Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_43__,
|
|
2765
|
+
Space: _space__WEBPACK_IMPORTED_MODULE_44__,
|
|
2766
|
+
SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_45__,
|
|
2767
|
+
SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_46__,
|
|
2768
|
+
Tag: _tag__WEBPACK_IMPORTED_MODULE_47__,
|
|
2769
|
+
Task: _task__WEBPACK_IMPORTED_MODULE_48__,
|
|
2770
|
+
Team: _team__WEBPACK_IMPORTED_MODULE_49__,
|
|
2771
|
+
TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_50__,
|
|
2772
|
+
TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_51__,
|
|
2773
|
+
UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_52__,
|
|
2774
|
+
Upload: _upload__WEBPACK_IMPORTED_MODULE_53__,
|
|
2775
|
+
UploadCredential: _upload_credentials__WEBPACK_IMPORTED_MODULE_54__,
|
|
2776
|
+
Usage: _usage__WEBPACK_IMPORTED_MODULE_55__,
|
|
2777
|
+
User: _user__WEBPACK_IMPORTED_MODULE_56__,
|
|
2778
|
+
UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_57__,
|
|
2779
|
+
Webhook: _webhook__WEBPACK_IMPORTED_MODULE_58__,
|
|
2780
|
+
WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_60__,
|
|
2781
|
+
Workflow: _workflow__WEBPACK_IMPORTED_MODULE_59__,
|
|
2782
|
+
WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_61__
|
|
2700
2783
|
});
|
|
2701
2784
|
|
|
2702
2785
|
/***/ }),
|
|
@@ -9222,6 +9305,136 @@ function createEnvironmentTemplateApi(makeRequest, organizationId) {
|
|
|
9222
9305
|
|
|
9223
9306
|
/***/ }),
|
|
9224
9307
|
|
|
9308
|
+
/***/ "./create-function-api.ts":
|
|
9309
|
+
/*!********************************!*\
|
|
9310
|
+
!*** ./create-function-api.ts ***!
|
|
9311
|
+
\********************************/
|
|
9312
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
9313
|
+
|
|
9314
|
+
"use strict";
|
|
9315
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9316
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9317
|
+
/* harmony export */ "default": () => (/* binding */ createFunctionApi)
|
|
9318
|
+
/* harmony export */ });
|
|
9319
|
+
/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entities */ "./entities/index.ts");
|
|
9320
|
+
|
|
9321
|
+
|
|
9322
|
+
/**
|
|
9323
|
+
* @private
|
|
9324
|
+
*/
|
|
9325
|
+
|
|
9326
|
+
/**
|
|
9327
|
+
* @private
|
|
9328
|
+
*/
|
|
9329
|
+
function createFunctionApi(makeRequest) {
|
|
9330
|
+
const {
|
|
9331
|
+
wrapFunction,
|
|
9332
|
+
wrapFunctionCollection
|
|
9333
|
+
} = _entities__WEBPACK_IMPORTED_MODULE_0__["default"].func;
|
|
9334
|
+
return {
|
|
9335
|
+
/**
|
|
9336
|
+
* Gets all Functions for an App Definition
|
|
9337
|
+
* @Param organizationId - Organization ID
|
|
9338
|
+
* @Param appDefinitionId - App Definition ID
|
|
9339
|
+
* @returns a collection of Functions
|
|
9340
|
+
* ```javascript
|
|
9341
|
+
* const contentful = require('contentful-management')
|
|
9342
|
+
*
|
|
9343
|
+
* const client = contentful.createClient({
|
|
9344
|
+
* accessToken: '<content_management_api_key>'
|
|
9345
|
+
* })
|
|
9346
|
+
*
|
|
9347
|
+
* client.function.getMany({
|
|
9348
|
+
* organizationId: <organizationId>,
|
|
9349
|
+
* appDefinitionId: <appDefinitionId>
|
|
9350
|
+
* })
|
|
9351
|
+
* .then((response) => console.log(response.items))
|
|
9352
|
+
* .catch(console.error)
|
|
9353
|
+
* ```
|
|
9354
|
+
*/
|
|
9355
|
+
getManyFunctions() {
|
|
9356
|
+
const raw = this.toPlainObject();
|
|
9357
|
+
return makeRequest({
|
|
9358
|
+
entityType: 'Function',
|
|
9359
|
+
action: 'getMany',
|
|
9360
|
+
params: {
|
|
9361
|
+
appDefinitionId: raw.sys.appDefinition.sys.id,
|
|
9362
|
+
organizationId: raw.sys.organization.sys.id
|
|
9363
|
+
}
|
|
9364
|
+
}).then(data => wrapFunctionCollection(makeRequest, data));
|
|
9365
|
+
},
|
|
9366
|
+
/**
|
|
9367
|
+
* Gets a Function by ID
|
|
9368
|
+
* @Param organizationId - Organization ID
|
|
9369
|
+
* @Param appDefinitionId - App Definition ID
|
|
9370
|
+
* @Param functionId - Function ID
|
|
9371
|
+
* @returns a collection of Functions
|
|
9372
|
+
* ```javascript
|
|
9373
|
+
* const contentful = require('contentful-management')
|
|
9374
|
+
*
|
|
9375
|
+
* const client = contentful.createClient({
|
|
9376
|
+
* accessToken: '<content_management_api_key>'
|
|
9377
|
+
* })
|
|
9378
|
+
*
|
|
9379
|
+
* client.function.get({
|
|
9380
|
+
* organizationId: <organizationId>,
|
|
9381
|
+
* appDefinitionId: <appDefinitionId>,
|
|
9382
|
+
* functionId: <functionId>
|
|
9383
|
+
* })
|
|
9384
|
+
* .then((response) => console.log(response.items))
|
|
9385
|
+
* .catch(console.error)
|
|
9386
|
+
* ```
|
|
9387
|
+
*/
|
|
9388
|
+
getFunction(functionId) {
|
|
9389
|
+
const raw = this.toPlainObject();
|
|
9390
|
+
return makeRequest({
|
|
9391
|
+
entityType: 'Function',
|
|
9392
|
+
action: 'get',
|
|
9393
|
+
params: {
|
|
9394
|
+
appDefinitionId: raw.sys.appDefinition.sys.id,
|
|
9395
|
+
organizationId: raw.sys.organization.sys.id,
|
|
9396
|
+
functionId
|
|
9397
|
+
}
|
|
9398
|
+
}).then(data => wrapFunction(makeRequest, data));
|
|
9399
|
+
},
|
|
9400
|
+
/**
|
|
9401
|
+
* Gets all Functions for an Environment
|
|
9402
|
+
* @Param organizationId - Organization ID
|
|
9403
|
+
* @Param appDefinitionId - App Definition ID
|
|
9404
|
+
* @Param functionId - Function ID
|
|
9405
|
+
* @returns a collection of Functions
|
|
9406
|
+
* ```javascript
|
|
9407
|
+
* const contentful = require('contentful-management')
|
|
9408
|
+
*
|
|
9409
|
+
* const client = contentful.createClient({
|
|
9410
|
+
* accessToken: '<content_management_api_key>'
|
|
9411
|
+
* })
|
|
9412
|
+
*
|
|
9413
|
+
* client.function.get({
|
|
9414
|
+
* environmentId: <environmentId>,
|
|
9415
|
+
* spaceId: <spaceId>,
|
|
9416
|
+
* appInstallationId: <appInstallationId>
|
|
9417
|
+
* })
|
|
9418
|
+
* .then((response) => console.log(response.items))
|
|
9419
|
+
* .catch(console.error)
|
|
9420
|
+
* ```
|
|
9421
|
+
*/
|
|
9422
|
+
getManyFunctionsForEnvironment(spaceId, environmentId, appInstallationId) {
|
|
9423
|
+
return makeRequest({
|
|
9424
|
+
entityType: 'Function',
|
|
9425
|
+
action: 'getManyForEnvironment',
|
|
9426
|
+
params: {
|
|
9427
|
+
spaceId: spaceId,
|
|
9428
|
+
environmentId: environmentId,
|
|
9429
|
+
appInstallationId: appInstallationId
|
|
9430
|
+
}
|
|
9431
|
+
}).then(data => wrapFunctionCollection(makeRequest, data));
|
|
9432
|
+
}
|
|
9433
|
+
};
|
|
9434
|
+
}
|
|
9435
|
+
|
|
9436
|
+
/***/ }),
|
|
9437
|
+
|
|
9225
9438
|
/***/ "./create-organization-api.ts":
|
|
9226
9439
|
/*!************************************!*\
|
|
9227
9440
|
!*** ./create-organization-api.ts ***!
|
|
@@ -13951,6 +14164,50 @@ const wrapExtensionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wr
|
|
|
13951
14164
|
|
|
13952
14165
|
/***/ }),
|
|
13953
14166
|
|
|
14167
|
+
/***/ "./entities/function.ts":
|
|
14168
|
+
/*!******************************!*\
|
|
14169
|
+
!*** ./entities/function.ts ***!
|
|
14170
|
+
\******************************/
|
|
14171
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14172
|
+
|
|
14173
|
+
"use strict";
|
|
14174
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14175
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14176
|
+
/* harmony export */ wrapFunction: () => (/* binding */ wrapFunction),
|
|
14177
|
+
/* harmony export */ wrapFunctionCollection: () => (/* binding */ wrapFunctionCollection)
|
|
14178
|
+
/* harmony export */ });
|
|
14179
|
+
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
|
|
14180
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
|
|
14181
|
+
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
|
|
14182
|
+
/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
|
|
14183
|
+
/* harmony import */ var _create_function_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../create-function-api */ "./create-function-api.ts");
|
|
14184
|
+
|
|
14185
|
+
|
|
14186
|
+
|
|
14187
|
+
|
|
14188
|
+
|
|
14189
|
+
/**
|
|
14190
|
+
* @private
|
|
14191
|
+
* @param makeRequest - (real) function to make requests via an adapter
|
|
14192
|
+
* @param data - raw contentful-Function data
|
|
14193
|
+
* @return Wrapped Function data
|
|
14194
|
+
*/
|
|
14195
|
+
function wrapFunction(makeRequest, data) {
|
|
14196
|
+
const appAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
|
|
14197
|
+
const appActionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(appAction, (0,_create_function_api__WEBPACK_IMPORTED_MODULE_4__["default"])(makeRequest));
|
|
14198
|
+
return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(appActionWithMethods);
|
|
14199
|
+
}
|
|
14200
|
+
|
|
14201
|
+
/**
|
|
14202
|
+
* @private
|
|
14203
|
+
* @param makeRequest - real) function to make requests via an adapter
|
|
14204
|
+
* @param data - raw contentful-function data
|
|
14205
|
+
* @return Wrapped App Function collection data
|
|
14206
|
+
*/
|
|
14207
|
+
const wrapFunctionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapFunction);
|
|
14208
|
+
|
|
14209
|
+
/***/ }),
|
|
14210
|
+
|
|
13954
14211
|
/***/ "./entities/index.ts":
|
|
13955
14212
|
/*!***************************!*\
|
|
13956
14213
|
!*** ./entities/index.ts ***!
|
|
@@ -13987,38 +14244,40 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13987
14244
|
/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./environment-template */ "./entities/environment-template.ts");
|
|
13988
14245
|
/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./environment-template-installation */ "./entities/environment-template-installation.ts");
|
|
13989
14246
|
/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./extension */ "./entities/extension.ts");
|
|
13990
|
-
/* harmony import */ var
|
|
13991
|
-
/* harmony import */ var
|
|
13992
|
-
/* harmony import */ var
|
|
13993
|
-
/* harmony import */ var
|
|
13994
|
-
/* harmony import */ var
|
|
13995
|
-
/* harmony import */ var
|
|
13996
|
-
/* harmony import */ var
|
|
13997
|
-
/* harmony import */ var
|
|
13998
|
-
/* harmony import */ var
|
|
13999
|
-
/* harmony import */ var
|
|
14000
|
-
/* harmony import */ var
|
|
14001
|
-
/* harmony import */ var
|
|
14002
|
-
/* harmony import */ var
|
|
14003
|
-
/* harmony import */ var
|
|
14004
|
-
/* harmony import */ var
|
|
14005
|
-
/* harmony import */ var
|
|
14006
|
-
/* harmony import */ var
|
|
14007
|
-
/* harmony import */ var
|
|
14008
|
-
/* harmony import */ var
|
|
14009
|
-
/* harmony import */ var
|
|
14010
|
-
/* harmony import */ var
|
|
14011
|
-
/* harmony import */ var
|
|
14012
|
-
/* harmony import */ var
|
|
14013
|
-
/* harmony import */ var
|
|
14014
|
-
/* harmony import */ var
|
|
14015
|
-
/* harmony import */ var
|
|
14016
|
-
/* harmony import */ var
|
|
14017
|
-
/* harmony import */ var
|
|
14018
|
-
/* harmony import */ var
|
|
14019
|
-
/* harmony import */ var
|
|
14020
|
-
/* harmony import */ var
|
|
14021
|
-
/* harmony import */ var
|
|
14247
|
+
/* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./function */ "./entities/function.ts");
|
|
14248
|
+
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./locale */ "./entities/locale.ts");
|
|
14249
|
+
/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts");
|
|
14250
|
+
/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts");
|
|
14251
|
+
/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts");
|
|
14252
|
+
/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts");
|
|
14253
|
+
/* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./access-token */ "./entities/access-token.ts");
|
|
14254
|
+
/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts");
|
|
14255
|
+
/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./release */ "./entities/release.ts");
|
|
14256
|
+
/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts");
|
|
14257
|
+
/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./role */ "./entities/role.ts");
|
|
14258
|
+
/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts");
|
|
14259
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts");
|
|
14260
|
+
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./space */ "./entities/space.ts");
|
|
14261
|
+
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts");
|
|
14262
|
+
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts");
|
|
14263
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts");
|
|
14264
|
+
/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./task */ "./entities/task.ts");
|
|
14265
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./team */ "./entities/team.ts");
|
|
14266
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts");
|
|
14267
|
+
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts");
|
|
14268
|
+
/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts");
|
|
14269
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts");
|
|
14270
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts");
|
|
14271
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./user */ "./entities/user.ts");
|
|
14272
|
+
/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts");
|
|
14273
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts");
|
|
14274
|
+
/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts");
|
|
14275
|
+
/* harmony import */ var _concept__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./concept */ "./entities/concept.ts");
|
|
14276
|
+
/* harmony import */ var _concept_scheme__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./concept-scheme */ "./entities/concept-scheme.ts");
|
|
14277
|
+
/* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./resource-provider */ "./entities/resource-provider.ts");
|
|
14278
|
+
/* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./resource-type */ "./entities/resource-type.ts");
|
|
14279
|
+
/* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./resource */ "./entities/resource.ts");
|
|
14280
|
+
|
|
14022
14281
|
|
|
14023
14282
|
|
|
14024
14283
|
|
|
@@ -14077,7 +14336,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14077
14336
|
|
|
14078
14337
|
|
|
14079
14338
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
14080
|
-
accessToken:
|
|
14339
|
+
accessToken: _access_token__WEBPACK_IMPORTED_MODULE_31__,
|
|
14081
14340
|
appAction: _app_action__WEBPACK_IMPORTED_MODULE_1__,
|
|
14082
14341
|
appActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_2__,
|
|
14083
14342
|
appBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_3__,
|
|
@@ -14095,8 +14354,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14095
14354
|
assetKey: _asset_key__WEBPACK_IMPORTED_MODULE_14__,
|
|
14096
14355
|
bulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_15__,
|
|
14097
14356
|
comment: _comment__WEBPACK_IMPORTED_MODULE_16__,
|
|
14098
|
-
concept:
|
|
14099
|
-
conceptScheme:
|
|
14357
|
+
concept: _concept__WEBPACK_IMPORTED_MODULE_53__,
|
|
14358
|
+
conceptScheme: _concept_scheme__WEBPACK_IMPORTED_MODULE_54__,
|
|
14100
14359
|
contentType: _content_type__WEBPACK_IMPORTED_MODULE_17__,
|
|
14101
14360
|
editorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_18__,
|
|
14102
14361
|
entry: _entry__WEBPACK_IMPORTED_MODULE_19__,
|
|
@@ -14105,35 +14364,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14105
14364
|
environmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_22__,
|
|
14106
14365
|
environmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__,
|
|
14107
14366
|
extension: _extension__WEBPACK_IMPORTED_MODULE_24__,
|
|
14108
|
-
|
|
14109
|
-
|
|
14110
|
-
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
|
|
14114
|
-
|
|
14115
|
-
|
|
14116
|
-
|
|
14117
|
-
|
|
14118
|
-
|
|
14119
|
-
|
|
14120
|
-
|
|
14121
|
-
|
|
14122
|
-
|
|
14123
|
-
|
|
14124
|
-
|
|
14125
|
-
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
|
|
14131
|
-
|
|
14132
|
-
|
|
14133
|
-
|
|
14134
|
-
|
|
14135
|
-
|
|
14136
|
-
|
|
14367
|
+
func: _function__WEBPACK_IMPORTED_MODULE_25__,
|
|
14368
|
+
locale: _locale__WEBPACK_IMPORTED_MODULE_26__,
|
|
14369
|
+
organization: _organization__WEBPACK_IMPORTED_MODULE_27__,
|
|
14370
|
+
organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_28__,
|
|
14371
|
+
organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_29__,
|
|
14372
|
+
personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_30__,
|
|
14373
|
+
previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_32__,
|
|
14374
|
+
release: _release__WEBPACK_IMPORTED_MODULE_33__,
|
|
14375
|
+
releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_34__,
|
|
14376
|
+
resourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_55__,
|
|
14377
|
+
resourceType: _resource_type__WEBPACK_IMPORTED_MODULE_56__,
|
|
14378
|
+
resource: _resource__WEBPACK_IMPORTED_MODULE_57__,
|
|
14379
|
+
role: _role__WEBPACK_IMPORTED_MODULE_35__,
|
|
14380
|
+
scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_36__,
|
|
14381
|
+
snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_37__,
|
|
14382
|
+
space: _space__WEBPACK_IMPORTED_MODULE_38__,
|
|
14383
|
+
spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_39__,
|
|
14384
|
+
spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_40__,
|
|
14385
|
+
tag: _tag__WEBPACK_IMPORTED_MODULE_41__,
|
|
14386
|
+
task: _task__WEBPACK_IMPORTED_MODULE_42__,
|
|
14387
|
+
team: _team__WEBPACK_IMPORTED_MODULE_43__,
|
|
14388
|
+
teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_44__,
|
|
14389
|
+
teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_45__,
|
|
14390
|
+
uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_46__,
|
|
14391
|
+
upload: _upload__WEBPACK_IMPORTED_MODULE_47__,
|
|
14392
|
+
usage: _usage__WEBPACK_IMPORTED_MODULE_48__,
|
|
14393
|
+
user: _user__WEBPACK_IMPORTED_MODULE_49__,
|
|
14394
|
+
userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_50__,
|
|
14395
|
+
webhook: _webhook__WEBPACK_IMPORTED_MODULE_51__,
|
|
14396
|
+
workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_52__
|
|
14137
14397
|
});
|
|
14138
14398
|
|
|
14139
14399
|
/***/ }),
|
|
@@ -16681,7 +16941,9 @@ const createPlainClient = (makeRequest, defaults) => {
|
|
|
16681
16941
|
updatePut: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ConceptScheme', 'updatePut')
|
|
16682
16942
|
},
|
|
16683
16943
|
function: {
|
|
16684
|
-
|
|
16944
|
+
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'get'),
|
|
16945
|
+
getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'getMany'),
|
|
16946
|
+
getManyForEnvironment: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'getManyForEnvironment')
|
|
16685
16947
|
},
|
|
16686
16948
|
editorInterface: {
|
|
16687
16949
|
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EditorInterface', 'get'),
|
|
@@ -30707,7 +30969,7 @@ function createClient(params, opts = {}) {
|
|
|
30707
30969
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
30708
30970
|
const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
|
|
30709
30971
|
// @ts-expect-error
|
|
30710
|
-
`${sdkMain}/${"11.
|
|
30972
|
+
`${sdkMain}/${"11.43.0-beta.1"}`, params.application, params.integration, params.feature);
|
|
30711
30973
|
const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
30712
30974
|
userAgent
|
|
30713
30975
|
}));
|