contentful-management 10.10.0 → 10.12.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 +513 -57
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +2 -2
- package/dist/contentful-management.node.js +401 -57
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +2 -2
- package/dist/es-modules/adapters/REST/endpoints/app-definition.js +4 -0
- package/dist/es-modules/adapters/REST/endpoints/app-installation.js +7 -0
- package/dist/es-modules/adapters/REST/endpoints/entry.js +3 -2
- package/dist/es-modules/adapters/REST/endpoints/index.js +7 -3
- package/dist/es-modules/adapters/REST/endpoints/ui-config.js +19 -0
- package/dist/es-modules/adapters/REST/endpoints/user-ui-config.js +19 -0
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/create-app-definition-api.js +1 -1
- package/dist/es-modules/create-environment-api.js +42 -0
- package/dist/es-modules/create-ui-config-api.js +68 -0
- package/dist/es-modules/create-user-ui-config-api.js +68 -0
- package/dist/es-modules/entities/index.js +8 -4
- package/dist/es-modules/entities/ui-config.js +16 -0
- package/dist/es-modules/entities/user-ui-config.js +16 -0
- package/dist/es-modules/plain/plain-client.js +9 -0
- package/dist/typings/adapters/REST/endpoints/app-definition.d.ts +3 -0
- package/dist/typings/adapters/REST/endpoints/app-installation.d.ts +1 -0
- package/dist/typings/adapters/REST/endpoints/index.d.ts +7 -3
- package/dist/typings/adapters/REST/endpoints/ui-config.d.ts +3 -0
- package/dist/typings/adapters/REST/endpoints/user-ui-config.d.ts +3 -0
- package/dist/typings/common-types.d.ts +36 -0
- package/dist/typings/create-app-definition-api.d.ts +1 -1
- package/dist/typings/create-contentful-api.d.ts +5 -1
- package/dist/typings/create-environment-api.d.ts +14 -0
- package/dist/typings/create-ui-config-api.d.ts +34 -0
- package/dist/typings/create-user-ui-config-api.d.ts +34 -0
- package/dist/typings/entities/app-definition.d.ts +1 -1
- package/dist/typings/entities/index.d.ts +8 -4
- package/dist/typings/entities/ui-config.d.ts +47 -0
- package/dist/typings/entities/user-ui-config.d.ts +46 -0
- package/dist/typings/export-types.d.ts +29 -27
- package/dist/typings/plain/common-types.d.ts +16 -2
- package/package.json +1 -1
|
@@ -8940,6 +8940,10 @@ var update = function update(http, params, rawData, headers) {
|
|
|
8940
8940
|
var del = function del(http, params) {
|
|
8941
8941
|
return _raw__WEBPACK_IMPORTED_MODULE_0__["del"](http, getAppDefinitionUrl(params));
|
|
8942
8942
|
};
|
|
8943
|
+
/**
|
|
8944
|
+
* @deprecated
|
|
8945
|
+
*/
|
|
8946
|
+
|
|
8943
8947
|
var getInstallationsForOrg = function getInstallationsForOrg(http, params) {
|
|
8944
8948
|
return _raw__WEBPACK_IMPORTED_MODULE_0__["get"](http, getBaseUrlForOrgInstallations(params), {
|
|
8945
8949
|
params: Object(_utils__WEBPACK_IMPORTED_MODULE_2__["normalizeSelect"])(params.query)
|
|
@@ -8978,7 +8982,7 @@ var del = function del(http, params) {
|
|
|
8978
8982
|
/*!*****************************************************!*\
|
|
8979
8983
|
!*** ./adapters/REST/endpoints/app-installation.ts ***!
|
|
8980
8984
|
\*****************************************************/
|
|
8981
|
-
/*! exports provided: getAppInstallationUrl, get, getMany, upsert, del */
|
|
8985
|
+
/*! exports provided: getAppInstallationUrl, get, getMany, upsert, del, getForOrganization */
|
|
8982
8986
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8983
8987
|
|
|
8984
8988
|
"use strict";
|
|
@@ -8988,6 +8992,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8988
8992
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMany", function() { return getMany; });
|
|
8989
8993
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "upsert", function() { return upsert; });
|
|
8990
8994
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "del", function() { return del; });
|
|
8995
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getForOrganization", function() { return getForOrganization; });
|
|
8991
8996
|
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
8992
8997
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./adapters/REST/endpoints/utils.ts");
|
|
8993
8998
|
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.js");
|
|
@@ -9006,6 +9011,10 @@ var getBaseUrl = function getBaseUrl(params) {
|
|
|
9006
9011
|
return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/app_installations");
|
|
9007
9012
|
};
|
|
9008
9013
|
|
|
9014
|
+
var getBaseUrlForOrgInstallations = function getBaseUrlForOrgInstallations(params) {
|
|
9015
|
+
return "/app_definitions/".concat(params.appDefinitionId, "/app_installations?sys.organization.sys.id[in]=").concat(params.organizationId || '');
|
|
9016
|
+
};
|
|
9017
|
+
|
|
9009
9018
|
var getAppInstallationUrl = function getAppInstallationUrl(params) {
|
|
9010
9019
|
return getBaseUrl(params) + "/".concat(params.appDefinitionId);
|
|
9011
9020
|
};
|
|
@@ -9030,6 +9039,11 @@ var upsert = function upsert(http, params, rawData, headers) {
|
|
|
9030
9039
|
var del = function del(http, params) {
|
|
9031
9040
|
return _raw__WEBPACK_IMPORTED_MODULE_0__["del"](http, getAppInstallationUrl(params));
|
|
9032
9041
|
};
|
|
9042
|
+
var getForOrganization = function getForOrganization(http, params) {
|
|
9043
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__["get"](http, getBaseUrlForOrgInstallations(params), {
|
|
9044
|
+
params: Object(_utils__WEBPACK_IMPORTED_MODULE_1__["normalizeSelect"])(params.query)
|
|
9045
|
+
});
|
|
9046
|
+
};
|
|
9033
9047
|
|
|
9034
9048
|
/***/ }),
|
|
9035
9049
|
|
|
@@ -9746,9 +9760,10 @@ var get = function get(http, params, rawData, headers) {
|
|
|
9746
9760
|
headers: _objectSpread({}, headers)
|
|
9747
9761
|
});
|
|
9748
9762
|
};
|
|
9749
|
-
var getMany = function getMany(http, params) {
|
|
9763
|
+
var getMany = function getMany(http, params, rawData, headers) {
|
|
9750
9764
|
return _raw__WEBPACK_IMPORTED_MODULE_1__["get"](http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries"), {
|
|
9751
|
-
params: Object(_utils__WEBPACK_IMPORTED_MODULE_2__["normalizeSelect"])(params.query)
|
|
9765
|
+
params: Object(_utils__WEBPACK_IMPORTED_MODULE_2__["normalizeSelect"])(params.query),
|
|
9766
|
+
headers: _objectSpread({}, headers)
|
|
9752
9767
|
});
|
|
9753
9768
|
};
|
|
9754
9769
|
var patch = function patch(http, params, data, headers) {
|
|
@@ -10119,11 +10134,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10119
10134
|
/* harmony import */ var _app_action_call__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app-action-call */ "./adapters/REST/endpoints/app-action-call.ts");
|
|
10120
10135
|
/* harmony import */ var _app_bundle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app-bundle */ "./adapters/REST/endpoints/app-bundle.ts");
|
|
10121
10136
|
/* harmony import */ var _app_definition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app-definition */ "./adapters/REST/endpoints/app-definition.ts");
|
|
10122
|
-
/* harmony import */ var
|
|
10123
|
-
/* harmony import */ var
|
|
10124
|
-
/* harmony import */ var
|
|
10125
|
-
/* harmony import */ var
|
|
10126
|
-
/* harmony import */ var
|
|
10137
|
+
/* harmony import */ var _app_details__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./app-details */ "./adapters/REST/endpoints/app-details.ts");
|
|
10138
|
+
/* harmony import */ var _app_installation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./app-installation */ "./adapters/REST/endpoints/app-installation.ts");
|
|
10139
|
+
/* harmony import */ var _app_signed_request__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app-signed-request */ "./adapters/REST/endpoints/app-signed-request.ts");
|
|
10140
|
+
/* harmony import */ var _app_signing_secret__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./app-signing-secret */ "./adapters/REST/endpoints/app-signing-secret.ts");
|
|
10141
|
+
/* harmony import */ var _app_upload__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./app-upload */ "./adapters/REST/endpoints/app-upload.ts");
|
|
10127
10142
|
/* harmony import */ var _asset__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./asset */ "./adapters/REST/endpoints/asset.ts");
|
|
10128
10143
|
/* harmony import */ var _asset_key__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./asset-key */ "./adapters/REST/endpoints/asset-key.ts");
|
|
10129
10144
|
/* harmony import */ var _bulk_action__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./bulk-action */ "./adapters/REST/endpoints/bulk-action.ts");
|
|
@@ -10154,13 +10169,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10154
10169
|
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts");
|
|
10155
10170
|
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts");
|
|
10156
10171
|
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts");
|
|
10157
|
-
/* harmony import */ var
|
|
10158
|
-
/* harmony import */ var
|
|
10159
|
-
/* harmony import */ var
|
|
10160
|
-
/* harmony import */ var
|
|
10161
|
-
/* harmony import */ var
|
|
10162
|
-
/* harmony import */ var
|
|
10163
|
-
/* harmony import */ var
|
|
10172
|
+
/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts");
|
|
10173
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts");
|
|
10174
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts");
|
|
10175
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts");
|
|
10176
|
+
/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts");
|
|
10177
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts");
|
|
10178
|
+
/* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts");
|
|
10179
|
+
/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts");
|
|
10180
|
+
/* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts");
|
|
10181
|
+
|
|
10182
|
+
|
|
10164
10183
|
|
|
10165
10184
|
|
|
10166
10185
|
|
|
@@ -10214,11 +10233,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10214
10233
|
AppActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_2__,
|
|
10215
10234
|
AppBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_3__,
|
|
10216
10235
|
AppDefinition: _app_definition__WEBPACK_IMPORTED_MODULE_4__,
|
|
10217
|
-
AppInstallation:
|
|
10218
|
-
AppUpload:
|
|
10219
|
-
AppSignedRequest:
|
|
10220
|
-
AppSigningSecret:
|
|
10221
|
-
AppDetails:
|
|
10236
|
+
AppInstallation: _app_installation__WEBPACK_IMPORTED_MODULE_6__,
|
|
10237
|
+
AppUpload: _app_upload__WEBPACK_IMPORTED_MODULE_9__,
|
|
10238
|
+
AppSignedRequest: _app_signed_request__WEBPACK_IMPORTED_MODULE_7__,
|
|
10239
|
+
AppSigningSecret: _app_signing_secret__WEBPACK_IMPORTED_MODULE_8__,
|
|
10240
|
+
AppDetails: _app_details__WEBPACK_IMPORTED_MODULE_5__,
|
|
10222
10241
|
Asset: _asset__WEBPACK_IMPORTED_MODULE_10__,
|
|
10223
10242
|
AssetKey: _asset_key__WEBPACK_IMPORTED_MODULE_11__,
|
|
10224
10243
|
BulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_12__,
|
|
@@ -10249,13 +10268,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10249
10268
|
Team: _team__WEBPACK_IMPORTED_MODULE_37__,
|
|
10250
10269
|
TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_38__,
|
|
10251
10270
|
TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_39__,
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10271
|
+
UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_40__,
|
|
10272
|
+
Upload: _upload__WEBPACK_IMPORTED_MODULE_41__,
|
|
10273
|
+
Usage: _usage__WEBPACK_IMPORTED_MODULE_42__,
|
|
10274
|
+
User: _user__WEBPACK_IMPORTED_MODULE_43__,
|
|
10275
|
+
UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_44__,
|
|
10276
|
+
Webhook: _webhook__WEBPACK_IMPORTED_MODULE_45__,
|
|
10277
|
+
WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_47__,
|
|
10278
|
+
Workflow: _workflow__WEBPACK_IMPORTED_MODULE_46__,
|
|
10279
|
+
WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_48__
|
|
10259
10280
|
});
|
|
10260
10281
|
|
|
10261
10282
|
/***/ }),
|
|
@@ -11446,6 +11467,44 @@ var del = function del(http, params) {
|
|
|
11446
11467
|
|
|
11447
11468
|
/***/ }),
|
|
11448
11469
|
|
|
11470
|
+
/***/ "./adapters/REST/endpoints/ui-config.ts":
|
|
11471
|
+
/*!**********************************************!*\
|
|
11472
|
+
!*** ./adapters/REST/endpoints/ui-config.ts ***!
|
|
11473
|
+
\**********************************************/
|
|
11474
|
+
/*! exports provided: get, update */
|
|
11475
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11476
|
+
|
|
11477
|
+
"use strict";
|
|
11478
|
+
__webpack_require__.r(__webpack_exports__);
|
|
11479
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; });
|
|
11480
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "update", function() { return update; });
|
|
11481
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
11482
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.js");
|
|
11483
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_1__);
|
|
11484
|
+
|
|
11485
|
+
|
|
11486
|
+
|
|
11487
|
+
var getUrl = function getUrl(params) {
|
|
11488
|
+
return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/ui_config");
|
|
11489
|
+
};
|
|
11490
|
+
|
|
11491
|
+
var get = function get(http, params) {
|
|
11492
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__["get"](http, getUrl(params));
|
|
11493
|
+
};
|
|
11494
|
+
var update = function update(http, params, rawData) {
|
|
11495
|
+
var _rawData$sys$version;
|
|
11496
|
+
|
|
11497
|
+
var data = fast_copy__WEBPACK_IMPORTED_MODULE_1___default()(rawData);
|
|
11498
|
+
delete data.sys;
|
|
11499
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__["put"](http, getUrl(params), data, {
|
|
11500
|
+
headers: {
|
|
11501
|
+
'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
|
|
11502
|
+
}
|
|
11503
|
+
});
|
|
11504
|
+
};
|
|
11505
|
+
|
|
11506
|
+
/***/ }),
|
|
11507
|
+
|
|
11449
11508
|
/***/ "./adapters/REST/endpoints/upload.ts":
|
|
11450
11509
|
/*!*******************************************!*\
|
|
11451
11510
|
!*** ./adapters/REST/endpoints/upload.ts ***!
|
|
@@ -11513,6 +11572,44 @@ var getManyForOrganization = function getManyForOrganization(http, params) {
|
|
|
11513
11572
|
|
|
11514
11573
|
/***/ }),
|
|
11515
11574
|
|
|
11575
|
+
/***/ "./adapters/REST/endpoints/user-ui-config.ts":
|
|
11576
|
+
/*!***************************************************!*\
|
|
11577
|
+
!*** ./adapters/REST/endpoints/user-ui-config.ts ***!
|
|
11578
|
+
\***************************************************/
|
|
11579
|
+
/*! exports provided: get, update */
|
|
11580
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11581
|
+
|
|
11582
|
+
"use strict";
|
|
11583
|
+
__webpack_require__.r(__webpack_exports__);
|
|
11584
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; });
|
|
11585
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "update", function() { return update; });
|
|
11586
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.js");
|
|
11587
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_0__);
|
|
11588
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
11589
|
+
|
|
11590
|
+
|
|
11591
|
+
|
|
11592
|
+
var getUrl = function getUrl(params) {
|
|
11593
|
+
return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/ui_config/me");
|
|
11594
|
+
};
|
|
11595
|
+
|
|
11596
|
+
var get = function get(http, params) {
|
|
11597
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["get"](http, getUrl(params));
|
|
11598
|
+
};
|
|
11599
|
+
var update = function update(http, params, rawData) {
|
|
11600
|
+
var _rawData$sys$version;
|
|
11601
|
+
|
|
11602
|
+
var data = fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(rawData);
|
|
11603
|
+
delete data.sys;
|
|
11604
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["put"](http, getUrl(params), data, {
|
|
11605
|
+
headers: {
|
|
11606
|
+
'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
|
|
11607
|
+
}
|
|
11608
|
+
});
|
|
11609
|
+
};
|
|
11610
|
+
|
|
11611
|
+
/***/ }),
|
|
11612
|
+
|
|
11516
11613
|
/***/ "./adapters/REST/endpoints/user.ts":
|
|
11517
11614
|
/*!*****************************************!*\
|
|
11518
11615
|
!*** ./adapters/REST/endpoints/user.ts ***!
|
|
@@ -12608,7 +12705,7 @@ function createClient(params) {
|
|
|
12608
12705
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
12609
12706
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
12610
12707
|
var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
|
|
12611
|
-
"".concat(sdkMain, "/").concat("10.
|
|
12708
|
+
"".concat(sdkMain, "/").concat("10.12.1"), params.application, params.integration, params.feature);
|
|
12612
12709
|
var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
12613
12710
|
// https://github.com/microsoft/TypeScript/issues/26591
|
|
12614
12711
|
// @ts-expect-error
|
|
@@ -12857,7 +12954,7 @@ function createAppDefinitionApi(makeRequest) {
|
|
|
12857
12954
|
* accessToken: '<content_management_api_key>'
|
|
12858
12955
|
* })
|
|
12859
12956
|
* client.getAppDefinition('<organizationId>', '<appDefinitionId>')
|
|
12860
|
-
* .then((appDefinition) => appDefinition.getInstallationsForOrg(
|
|
12957
|
+
* .then((appDefinition) => appDefinition.getInstallationsForOrg()
|
|
12861
12958
|
* .then((appInstallationsForOrg) => console.log(appInstallationsForOrg.items))
|
|
12862
12959
|
* .catch(console.error)
|
|
12863
12960
|
* ```
|
|
@@ -13940,6 +14037,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13940
14037
|
/* harmony import */ var _entities_release_action__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./entities/release-action */ "./entities/release-action.ts");
|
|
13941
14038
|
/* harmony import */ var _entities_release__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./entities/release */ "./entities/release.ts");
|
|
13942
14039
|
/* harmony import */ var _entities_tag__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./entities/tag */ "./entities/tag.ts");
|
|
14040
|
+
/* harmony import */ var _entities_ui_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./entities/ui-config */ "./entities/ui-config.ts");
|
|
14041
|
+
/* harmony import */ var _entities_user_ui_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./entities/user-ui-config */ "./entities/user-ui-config.ts");
|
|
14042
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
14043
|
+
|
|
14044
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
14045
|
+
|
|
14046
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
14047
|
+
|
|
14048
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
14049
|
+
|
|
14050
|
+
|
|
14051
|
+
|
|
13943
14052
|
|
|
13944
14053
|
|
|
13945
14054
|
|
|
@@ -16140,6 +16249,70 @@ function createEnvironmentApi(makeRequest) {
|
|
|
16140
16249
|
}).then(function (data) {
|
|
16141
16250
|
return Object(_entities_release_action__WEBPACK_IMPORTED_MODULE_2__["wrapReleaseActionCollection"])(makeRequest, data);
|
|
16142
16251
|
});
|
|
16252
|
+
},
|
|
16253
|
+
getUIConfig: function getUIConfig() {
|
|
16254
|
+
var _this = this;
|
|
16255
|
+
|
|
16256
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16257
|
+
var raw, data;
|
|
16258
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16259
|
+
while (1) {
|
|
16260
|
+
switch (_context.prev = _context.next) {
|
|
16261
|
+
case 0:
|
|
16262
|
+
raw = _this.toPlainObject();
|
|
16263
|
+
_context.next = 3;
|
|
16264
|
+
return makeRequest({
|
|
16265
|
+
entityType: 'UIConfig',
|
|
16266
|
+
action: 'get',
|
|
16267
|
+
params: {
|
|
16268
|
+
spaceId: raw.sys.space.sys.id,
|
|
16269
|
+
environmentId: raw.sys.id
|
|
16270
|
+
}
|
|
16271
|
+
});
|
|
16272
|
+
|
|
16273
|
+
case 3:
|
|
16274
|
+
data = _context.sent;
|
|
16275
|
+
return _context.abrupt("return", Object(_entities_ui_config__WEBPACK_IMPORTED_MODULE_5__["wrapUIConfig"])(makeRequest, data));
|
|
16276
|
+
|
|
16277
|
+
case 5:
|
|
16278
|
+
case "end":
|
|
16279
|
+
return _context.stop();
|
|
16280
|
+
}
|
|
16281
|
+
}
|
|
16282
|
+
}, _callee);
|
|
16283
|
+
}))();
|
|
16284
|
+
},
|
|
16285
|
+
getUserUIConfig: function getUserUIConfig() {
|
|
16286
|
+
var _this2 = this;
|
|
16287
|
+
|
|
16288
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
16289
|
+
var raw, data;
|
|
16290
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16291
|
+
while (1) {
|
|
16292
|
+
switch (_context2.prev = _context2.next) {
|
|
16293
|
+
case 0:
|
|
16294
|
+
raw = _this2.toPlainObject();
|
|
16295
|
+
_context2.next = 3;
|
|
16296
|
+
return makeRequest({
|
|
16297
|
+
entityType: 'UserUIConfig',
|
|
16298
|
+
action: 'get',
|
|
16299
|
+
params: {
|
|
16300
|
+
spaceId: raw.sys.space.sys.id,
|
|
16301
|
+
environmentId: raw.sys.id
|
|
16302
|
+
}
|
|
16303
|
+
});
|
|
16304
|
+
|
|
16305
|
+
case 3:
|
|
16306
|
+
data = _context2.sent;
|
|
16307
|
+
return _context2.abrupt("return", Object(_entities_user_ui_config__WEBPACK_IMPORTED_MODULE_6__["wrapUserUIConfig"])(makeRequest, data));
|
|
16308
|
+
|
|
16309
|
+
case 5:
|
|
16310
|
+
case "end":
|
|
16311
|
+
return _context2.stop();
|
|
16312
|
+
}
|
|
16313
|
+
}
|
|
16314
|
+
}, _callee2);
|
|
16315
|
+
}))();
|
|
16143
16316
|
}
|
|
16144
16317
|
};
|
|
16145
16318
|
}
|
|
@@ -18729,6 +18902,206 @@ function createSpaceApi(makeRequest) {
|
|
|
18729
18902
|
|
|
18730
18903
|
/***/ }),
|
|
18731
18904
|
|
|
18905
|
+
/***/ "./create-ui-config-api.ts":
|
|
18906
|
+
/*!*********************************!*\
|
|
18907
|
+
!*** ./create-ui-config-api.ts ***!
|
|
18908
|
+
\*********************************/
|
|
18909
|
+
/*! exports provided: default */
|
|
18910
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
18911
|
+
|
|
18912
|
+
"use strict";
|
|
18913
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18914
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createUIConfigApi; });
|
|
18915
|
+
/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entities */ "./entities/index.ts");
|
|
18916
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
18917
|
+
|
|
18918
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
18919
|
+
|
|
18920
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
18921
|
+
|
|
18922
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
18923
|
+
|
|
18924
|
+
|
|
18925
|
+
|
|
18926
|
+
/**
|
|
18927
|
+
* @private
|
|
18928
|
+
*/
|
|
18929
|
+
function createUIConfigApi(makeRequest) {
|
|
18930
|
+
var wrapUIConfig = _entities__WEBPACK_IMPORTED_MODULE_0__["default"].uiConfig.wrapUIConfig;
|
|
18931
|
+
|
|
18932
|
+
var getParams = function getParams(self) {
|
|
18933
|
+
var uiConfig = self.toPlainObject();
|
|
18934
|
+
return {
|
|
18935
|
+
params: {
|
|
18936
|
+
spaceId: uiConfig.sys.space.sys.id,
|
|
18937
|
+
environmentId: uiConfig.sys.environment.sys.id
|
|
18938
|
+
},
|
|
18939
|
+
raw: uiConfig
|
|
18940
|
+
};
|
|
18941
|
+
};
|
|
18942
|
+
|
|
18943
|
+
return {
|
|
18944
|
+
/**
|
|
18945
|
+
* Sends an update to the server with any changes made to the object's properties
|
|
18946
|
+
* @return Object returned from the server with updated changes.
|
|
18947
|
+
* @example ```javascript
|
|
18948
|
+
* const contentful = require('contentful-management')
|
|
18949
|
+
*
|
|
18950
|
+
* const client = contentful.createClient({
|
|
18951
|
+
* accessToken: '<content_management_api_key>'
|
|
18952
|
+
* })
|
|
18953
|
+
*
|
|
18954
|
+
* client.getSpace('<space_id>')
|
|
18955
|
+
* .then((space) => space.getEnvironment('<environment_id>'))
|
|
18956
|
+
* .then((environment) => environment.getUIConfig())
|
|
18957
|
+
* .then((uiConfig) => {
|
|
18958
|
+
* uiConfig.entryListViews = [...]
|
|
18959
|
+
* return uiConfig.update()
|
|
18960
|
+
* })
|
|
18961
|
+
* .then((uiConfig) => console.log(`UIConfig updated.`))
|
|
18962
|
+
* .catch(console.error)
|
|
18963
|
+
* ```
|
|
18964
|
+
*/
|
|
18965
|
+
update: function () {
|
|
18966
|
+
var _update = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18967
|
+
var _getParams, raw, params, data;
|
|
18968
|
+
|
|
18969
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18970
|
+
while (1) {
|
|
18971
|
+
switch (_context.prev = _context.next) {
|
|
18972
|
+
case 0:
|
|
18973
|
+
_getParams = getParams(this), raw = _getParams.raw, params = _getParams.params;
|
|
18974
|
+
_context.next = 3;
|
|
18975
|
+
return makeRequest({
|
|
18976
|
+
entityType: 'UIConfig',
|
|
18977
|
+
action: 'update',
|
|
18978
|
+
params: params,
|
|
18979
|
+
payload: raw
|
|
18980
|
+
});
|
|
18981
|
+
|
|
18982
|
+
case 3:
|
|
18983
|
+
data = _context.sent;
|
|
18984
|
+
return _context.abrupt("return", wrapUIConfig(makeRequest, data));
|
|
18985
|
+
|
|
18986
|
+
case 5:
|
|
18987
|
+
case "end":
|
|
18988
|
+
return _context.stop();
|
|
18989
|
+
}
|
|
18990
|
+
}
|
|
18991
|
+
}, _callee, this);
|
|
18992
|
+
}));
|
|
18993
|
+
|
|
18994
|
+
function update() {
|
|
18995
|
+
return _update.apply(this, arguments);
|
|
18996
|
+
}
|
|
18997
|
+
|
|
18998
|
+
return update;
|
|
18999
|
+
}()
|
|
19000
|
+
};
|
|
19001
|
+
}
|
|
19002
|
+
|
|
19003
|
+
/***/ }),
|
|
19004
|
+
|
|
19005
|
+
/***/ "./create-user-ui-config-api.ts":
|
|
19006
|
+
/*!**************************************!*\
|
|
19007
|
+
!*** ./create-user-ui-config-api.ts ***!
|
|
19008
|
+
\**************************************/
|
|
19009
|
+
/*! exports provided: default */
|
|
19010
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19011
|
+
|
|
19012
|
+
"use strict";
|
|
19013
|
+
__webpack_require__.r(__webpack_exports__);
|
|
19014
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createUserUIConfigApi; });
|
|
19015
|
+
/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entities */ "./entities/index.ts");
|
|
19016
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
19017
|
+
|
|
19018
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
19019
|
+
|
|
19020
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
19021
|
+
|
|
19022
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
19023
|
+
|
|
19024
|
+
|
|
19025
|
+
|
|
19026
|
+
/**
|
|
19027
|
+
* @private
|
|
19028
|
+
*/
|
|
19029
|
+
function createUserUIConfigApi(makeRequest) {
|
|
19030
|
+
var wrapUserUIConfig = _entities__WEBPACK_IMPORTED_MODULE_0__["default"].userUIConfig.wrapUserUIConfig;
|
|
19031
|
+
|
|
19032
|
+
var getParams = function getParams(self) {
|
|
19033
|
+
var userUIConfig = self.toPlainObject();
|
|
19034
|
+
return {
|
|
19035
|
+
params: {
|
|
19036
|
+
spaceId: userUIConfig.sys.space.sys.id,
|
|
19037
|
+
environmentId: userUIConfig.sys.environment.sys.id
|
|
19038
|
+
},
|
|
19039
|
+
raw: userUIConfig
|
|
19040
|
+
};
|
|
19041
|
+
};
|
|
19042
|
+
|
|
19043
|
+
return {
|
|
19044
|
+
/**
|
|
19045
|
+
* Sends an update to the server with any changes made to the object's properties
|
|
19046
|
+
* @return Object returned from the server with updated changes.
|
|
19047
|
+
* @example ```javascript
|
|
19048
|
+
* const contentful = require('contentful-management')
|
|
19049
|
+
*
|
|
19050
|
+
* const client = contentful.createClient({
|
|
19051
|
+
* accessToken: '<content_management_api_key>'
|
|
19052
|
+
* })
|
|
19053
|
+
*
|
|
19054
|
+
* client.getSpace('<space_id>')
|
|
19055
|
+
* .then((space) => space.getEnvironment('<environment_id>'))
|
|
19056
|
+
* .then((environment) => environment.getUserUIConfig())
|
|
19057
|
+
* .then((uiConfig) => {
|
|
19058
|
+
* uiConfig.entryListViews = [...]
|
|
19059
|
+
* return uiConfig.update()
|
|
19060
|
+
* })
|
|
19061
|
+
* .then((uiConfig) => console.log(`UserUIConfig updated.`))
|
|
19062
|
+
* .catch(console.error)
|
|
19063
|
+
* ```
|
|
19064
|
+
*/
|
|
19065
|
+
update: function () {
|
|
19066
|
+
var _update = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19067
|
+
var _getParams, raw, params, data;
|
|
19068
|
+
|
|
19069
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19070
|
+
while (1) {
|
|
19071
|
+
switch (_context.prev = _context.next) {
|
|
19072
|
+
case 0:
|
|
19073
|
+
_getParams = getParams(this), raw = _getParams.raw, params = _getParams.params;
|
|
19074
|
+
_context.next = 3;
|
|
19075
|
+
return makeRequest({
|
|
19076
|
+
entityType: 'UserUIConfig',
|
|
19077
|
+
action: 'update',
|
|
19078
|
+
params: params,
|
|
19079
|
+
payload: raw
|
|
19080
|
+
});
|
|
19081
|
+
|
|
19082
|
+
case 3:
|
|
19083
|
+
data = _context.sent;
|
|
19084
|
+
return _context.abrupt("return", wrapUserUIConfig(makeRequest, data));
|
|
19085
|
+
|
|
19086
|
+
case 5:
|
|
19087
|
+
case "end":
|
|
19088
|
+
return _context.stop();
|
|
19089
|
+
}
|
|
19090
|
+
}
|
|
19091
|
+
}, _callee, this);
|
|
19092
|
+
}));
|
|
19093
|
+
|
|
19094
|
+
function update() {
|
|
19095
|
+
return _update.apply(this, arguments);
|
|
19096
|
+
}
|
|
19097
|
+
|
|
19098
|
+
return update;
|
|
19099
|
+
}()
|
|
19100
|
+
};
|
|
19101
|
+
}
|
|
19102
|
+
|
|
19103
|
+
/***/ }),
|
|
19104
|
+
|
|
18732
19105
|
/***/ "./enhance-with-methods.ts":
|
|
18733
19106
|
/*!*********************************!*\
|
|
18734
19107
|
!*** ./enhance-with-methods.ts ***!
|
|
@@ -20282,11 +20655,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20282
20655
|
/* harmony import */ var _app_action_call__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app-action-call */ "./entities/app-action-call.ts");
|
|
20283
20656
|
/* harmony import */ var _app_bundle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app-bundle */ "./entities/app-bundle.ts");
|
|
20284
20657
|
/* harmony import */ var _app_definition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app-definition */ "./entities/app-definition.ts");
|
|
20285
|
-
/* harmony import */ var
|
|
20286
|
-
/* harmony import */ var
|
|
20287
|
-
/* harmony import */ var
|
|
20288
|
-
/* harmony import */ var
|
|
20289
|
-
/* harmony import */ var
|
|
20658
|
+
/* harmony import */ var _app_details__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./app-details */ "./entities/app-details.ts");
|
|
20659
|
+
/* harmony import */ var _app_installation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./app-installation */ "./entities/app-installation.ts");
|
|
20660
|
+
/* harmony import */ var _app_signed_request__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app-signed-request */ "./entities/app-signed-request.ts");
|
|
20661
|
+
/* harmony import */ var _app_signing_secret__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./app-signing-secret */ "./entities/app-signing-secret.ts");
|
|
20662
|
+
/* harmony import */ var _app_upload__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./app-upload */ "./entities/app-upload.ts");
|
|
20290
20663
|
/* harmony import */ var _asset__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./asset */ "./entities/asset.ts");
|
|
20291
20664
|
/* harmony import */ var _asset_key__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./asset-key */ "./entities/asset-key.ts");
|
|
20292
20665
|
/* harmony import */ var _bulk_action__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./bulk-action */ "./entities/bulk-action.ts");
|
|
@@ -20311,16 +20684,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20311
20684
|
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./space */ "./entities/space.ts");
|
|
20312
20685
|
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts");
|
|
20313
20686
|
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts");
|
|
20314
|
-
/* harmony import */ var
|
|
20315
|
-
/* harmony import */ var
|
|
20316
|
-
/* harmony import */ var
|
|
20317
|
-
/* harmony import */ var
|
|
20687
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts");
|
|
20688
|
+
/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./task */ "./entities/task.ts");
|
|
20689
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./team */ "./entities/team.ts");
|
|
20690
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts");
|
|
20318
20691
|
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts");
|
|
20319
|
-
/* harmony import */ var
|
|
20320
|
-
/* harmony import */ var
|
|
20321
|
-
/* harmony import */ var
|
|
20322
|
-
/* harmony import */ var
|
|
20323
|
-
/* harmony import */ var
|
|
20692
|
+
/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts");
|
|
20693
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts");
|
|
20694
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts");
|
|
20695
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./user */ "./entities/user.ts");
|
|
20696
|
+
/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts");
|
|
20697
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts");
|
|
20698
|
+
/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts");
|
|
20699
|
+
|
|
20700
|
+
|
|
20324
20701
|
|
|
20325
20702
|
|
|
20326
20703
|
|
|
@@ -20371,11 +20748,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20371
20748
|
appBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_3__,
|
|
20372
20749
|
apiKey: _api_key__WEBPACK_IMPORTED_MODULE_0__,
|
|
20373
20750
|
appDefinition: _app_definition__WEBPACK_IMPORTED_MODULE_4__,
|
|
20374
|
-
appInstallation:
|
|
20375
|
-
appUpload:
|
|
20376
|
-
appDetails:
|
|
20377
|
-
appSignedRequest:
|
|
20378
|
-
appSigningSecret:
|
|
20751
|
+
appInstallation: _app_installation__WEBPACK_IMPORTED_MODULE_6__,
|
|
20752
|
+
appUpload: _app_upload__WEBPACK_IMPORTED_MODULE_9__,
|
|
20753
|
+
appDetails: _app_details__WEBPACK_IMPORTED_MODULE_5__,
|
|
20754
|
+
appSignedRequest: _app_signed_request__WEBPACK_IMPORTED_MODULE_7__,
|
|
20755
|
+
appSigningSecret: _app_signing_secret__WEBPACK_IMPORTED_MODULE_8__,
|
|
20379
20756
|
asset: _asset__WEBPACK_IMPORTED_MODULE_10__,
|
|
20380
20757
|
assetKey: _asset_key__WEBPACK_IMPORTED_MODULE_11__,
|
|
20381
20758
|
bulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_12__,
|
|
@@ -20400,16 +20777,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20400
20777
|
space: _space__WEBPACK_IMPORTED_MODULE_31__,
|
|
20401
20778
|
spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_32__,
|
|
20402
20779
|
spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_33__,
|
|
20403
|
-
tag:
|
|
20404
|
-
task:
|
|
20405
|
-
team:
|
|
20406
|
-
teamMembership:
|
|
20780
|
+
tag: _tag__WEBPACK_IMPORTED_MODULE_34__,
|
|
20781
|
+
task: _task__WEBPACK_IMPORTED_MODULE_35__,
|
|
20782
|
+
team: _team__WEBPACK_IMPORTED_MODULE_36__,
|
|
20783
|
+
teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_37__,
|
|
20407
20784
|
teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_38__,
|
|
20408
|
-
|
|
20409
|
-
|
|
20410
|
-
|
|
20411
|
-
|
|
20412
|
-
|
|
20785
|
+
uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_39__,
|
|
20786
|
+
upload: _upload__WEBPACK_IMPORTED_MODULE_40__,
|
|
20787
|
+
usage: _usage__WEBPACK_IMPORTED_MODULE_41__,
|
|
20788
|
+
user: _user__WEBPACK_IMPORTED_MODULE_42__,
|
|
20789
|
+
userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_43__,
|
|
20790
|
+
webhook: _webhook__WEBPACK_IMPORTED_MODULE_44__,
|
|
20791
|
+
workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_45__
|
|
20413
20792
|
});
|
|
20414
20793
|
|
|
20415
20794
|
/***/ }),
|
|
@@ -22033,6 +22412,40 @@ var wrapTeamCollection = Object(_common_utils__WEBPACK_IMPORTED_MODULE_3__["wrap
|
|
|
22033
22412
|
|
|
22034
22413
|
/***/ }),
|
|
22035
22414
|
|
|
22415
|
+
/***/ "./entities/ui-config.ts":
|
|
22416
|
+
/*!*******************************!*\
|
|
22417
|
+
!*** ./entities/ui-config.ts ***!
|
|
22418
|
+
\*******************************/
|
|
22419
|
+
/*! exports provided: wrapUIConfig */
|
|
22420
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22421
|
+
|
|
22422
|
+
"use strict";
|
|
22423
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22424
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapUIConfig", function() { return wrapUIConfig; });
|
|
22425
|
+
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js");
|
|
22426
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.js");
|
|
22427
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_1__);
|
|
22428
|
+
/* harmony import */ var _create_ui_config_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../create-ui-config-api */ "./create-ui-config-api.ts");
|
|
22429
|
+
/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
|
|
22430
|
+
|
|
22431
|
+
|
|
22432
|
+
|
|
22433
|
+
|
|
22434
|
+
|
|
22435
|
+
/**
|
|
22436
|
+
* @private
|
|
22437
|
+
* @param makeRequest - function to make requests via an adapter
|
|
22438
|
+
* @param data - Raw data
|
|
22439
|
+
* @return Wrapped UIConfig
|
|
22440
|
+
*/
|
|
22441
|
+
function wrapUIConfig(makeRequest, data) {
|
|
22442
|
+
var user = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["toPlainObject"])(fast_copy__WEBPACK_IMPORTED_MODULE_1___default()(data));
|
|
22443
|
+
var userWithMethods = Object(_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(user, Object(_create_ui_config_api__WEBPACK_IMPORTED_MODULE_2__["default"])(makeRequest));
|
|
22444
|
+
return Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["freezeSys"])(userWithMethods);
|
|
22445
|
+
}
|
|
22446
|
+
|
|
22447
|
+
/***/ }),
|
|
22448
|
+
|
|
22036
22449
|
/***/ "./entities/upload.ts":
|
|
22037
22450
|
/*!****************************!*\
|
|
22038
22451
|
!*** ./entities/upload.ts ***!
|
|
@@ -22154,6 +22567,40 @@ var wrapUsageCollection = Object(_common_utils__WEBPACK_IMPORTED_MODULE_2__["wra
|
|
|
22154
22567
|
|
|
22155
22568
|
/***/ }),
|
|
22156
22569
|
|
|
22570
|
+
/***/ "./entities/user-ui-config.ts":
|
|
22571
|
+
/*!************************************!*\
|
|
22572
|
+
!*** ./entities/user-ui-config.ts ***!
|
|
22573
|
+
\************************************/
|
|
22574
|
+
/*! exports provided: wrapUserUIConfig */
|
|
22575
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22576
|
+
|
|
22577
|
+
"use strict";
|
|
22578
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22579
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapUserUIConfig", function() { return wrapUserUIConfig; });
|
|
22580
|
+
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js");
|
|
22581
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.js");
|
|
22582
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_1__);
|
|
22583
|
+
/* harmony import */ var _create_user_ui_config_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../create-user-ui-config-api */ "./create-user-ui-config-api.ts");
|
|
22584
|
+
/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
|
|
22585
|
+
|
|
22586
|
+
|
|
22587
|
+
|
|
22588
|
+
|
|
22589
|
+
|
|
22590
|
+
/**
|
|
22591
|
+
* @private
|
|
22592
|
+
* @param makeRequest - function to make requests via an adapter
|
|
22593
|
+
* @param data - Raw data
|
|
22594
|
+
* @return Wrapped UserUIConfig
|
|
22595
|
+
*/
|
|
22596
|
+
function wrapUserUIConfig(makeRequest, data) {
|
|
22597
|
+
var user = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["toPlainObject"])(fast_copy__WEBPACK_IMPORTED_MODULE_1___default()(data));
|
|
22598
|
+
var userWithMethods = Object(_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(user, Object(_create_user_ui_config_api__WEBPACK_IMPORTED_MODULE_2__["default"])(makeRequest));
|
|
22599
|
+
return Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["freezeSys"])(userWithMethods);
|
|
22600
|
+
}
|
|
22601
|
+
|
|
22602
|
+
/***/ }),
|
|
22603
|
+
|
|
22157
22604
|
/***/ "./entities/user.ts":
|
|
22158
22605
|
/*!**************************!*\
|
|
22159
22606
|
!*** ./entities/user.ts ***!
|
|
@@ -23161,6 +23608,7 @@ var createPlainClient = function createPlainClient(makeRequest, defaults, alphaF
|
|
|
23161
23608
|
appInstallation: {
|
|
23162
23609
|
get: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'AppInstallation', 'get'),
|
|
23163
23610
|
getMany: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'AppInstallation', 'getMany'),
|
|
23611
|
+
getForOrganization: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'AppInstallation', 'getForOrganization'),
|
|
23164
23612
|
upsert: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'AppInstallation', 'upsert'),
|
|
23165
23613
|
delete: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'AppInstallation', 'delete')
|
|
23166
23614
|
},
|
|
@@ -23247,6 +23695,14 @@ var createPlainClient = function createPlainClient(makeRequest, defaults, alphaF
|
|
|
23247
23695
|
create: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'TeamSpaceMembership', 'create'),
|
|
23248
23696
|
update: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'TeamSpaceMembership', 'update'),
|
|
23249
23697
|
delete: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'TeamSpaceMembership', 'delete')
|
|
23698
|
+
},
|
|
23699
|
+
uiConfig: {
|
|
23700
|
+
get: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'UIConfig', 'get'),
|
|
23701
|
+
update: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'UIConfig', 'update')
|
|
23702
|
+
},
|
|
23703
|
+
userUIConfig: {
|
|
23704
|
+
get: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'UserUIConfig', 'get'),
|
|
23705
|
+
update: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'UserUIConfig', 'update')
|
|
23250
23706
|
}
|
|
23251
23707
|
}, addAlphaFeatures(makeRequest, defaults, alphaFeatures));
|
|
23252
23708
|
};
|