contentful-management 7.7.0 → 7.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/dist/contentful-management.browser.js +304 -114
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.legacy.js +304 -114
- package/dist/contentful-management.legacy.js.map +1 -1
- package/dist/contentful-management.legacy.min.js +1 -1
- package/dist/contentful-management.node.js +267 -114
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/create-cma-http-client.js +1 -1
- package/dist/es-modules/create-environment-api.js +61 -2
- package/dist/es-modules/entities/asset-key.js +13 -0
- package/dist/es-modules/entities/index.js +2 -0
- package/dist/es-modules/plain/endpoints/asset-key.js +73 -0
- package/dist/es-modules/plain/endpoints/index.js +2 -0
- package/dist/es-modules/plain/endpoints/tag.js +6 -2
- package/dist/es-modules/plain/plain-client.js +3 -0
- package/dist/typings/create-environment-api.d.ts +42 -1
- package/dist/typings/entities/app-definition.d.ts +3 -3
- package/dist/typings/entities/asset-key.d.ts +21 -0
- package/dist/typings/entities/index.d.ts +2 -0
- package/dist/typings/entities/tag.d.ts +2 -0
- package/dist/typings/export-types.d.ts +2 -1
- package/dist/typings/plain/endpoints/asset-key.d.ts +7 -0
- package/dist/typings/plain/endpoints/index.d.ts +1 -0
- package/dist/typings/plain/endpoints/tag.d.ts +1 -1
- package/dist/typings/plain/plain-client.d.ts +4 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# [7.
|
|
1
|
+
# [7.11.0](https://github.com/contentful/contentful-management.js/compare/v7.10.0...v7.11.0) (2021-03-17)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* export members of AppLocation enum ([#758](https://github.com/contentful/contentful-management.js/issues/758)) ([dbfaeee](https://github.com/contentful/contentful-management.js/commit/dbfaeee9a85fd15ef2cd3cabc1e28ca55db42d44))
|
|
@@ -4364,7 +4364,7 @@ function createCMAHttpClient(params) {
|
|
|
4364
4364
|
var plainClient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
4365
4365
|
var sdkMain = plainClient ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
4366
4366
|
var userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])( // @ts-expect-error
|
|
4367
|
-
"".concat(sdkMain, "/").concat("7.
|
|
4367
|
+
"".concat(sdkMain, "/").concat("7.11.0"), params.application, params.integration, params.feature);
|
|
4368
4368
|
var requiredHeaders = {
|
|
4369
4369
|
'Content-Type': 'application/vnd.contentful.management.v1+json',
|
|
4370
4370
|
'X-Contentful-User-Agent': userAgentHeader
|
|
@@ -4762,6 +4762,7 @@ function createEnvironmentApi(_ref) {
|
|
|
4762
4762
|
var _entities$asset = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].asset,
|
|
4763
4763
|
wrapAsset = _entities$asset.wrapAsset,
|
|
4764
4764
|
wrapAssetCollection = _entities$asset.wrapAssetCollection;
|
|
4765
|
+
var wrapAssetKey = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].assetKey.wrapAssetKey;
|
|
4765
4766
|
var _entities$locale = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].locale,
|
|
4766
4767
|
wrapLocale = _entities$locale.wrapLocale,
|
|
4767
4768
|
wrapLocaleCollection = _entities$locale.wrapLocaleCollection;
|
|
@@ -5134,6 +5135,34 @@ function createEnvironmentApi(_ref) {
|
|
|
5134
5135
|
});
|
|
5135
5136
|
},
|
|
5136
5137
|
|
|
5138
|
+
/**
|
|
5139
|
+
* Deletes an Entry of this environement
|
|
5140
|
+
* @param id - Entry ID
|
|
5141
|
+
* @return Promise for the deletion. It contains no data, but the Promise error case should be handled.
|
|
5142
|
+
* @example ```javascript
|
|
5143
|
+
* const contentful = require('contentful-management')
|
|
5144
|
+
*
|
|
5145
|
+
* const client = contentful.createClient({
|
|
5146
|
+
* accessToken: '<content_management_api_key>'
|
|
5147
|
+
* })
|
|
5148
|
+
*
|
|
5149
|
+
* client.getSpace('<space_id>')
|
|
5150
|
+
* .then((space) => space.getEnvironment('<environment-id>'))
|
|
5151
|
+
* .then((environment) => environment.deleteEntry("4bmLXiuviAZH3jkj5DLRWE"))
|
|
5152
|
+
* .then(() => console.log('Entry deleted.'))
|
|
5153
|
+
* .catch(console.error)
|
|
5154
|
+
* ```
|
|
5155
|
+
*/
|
|
5156
|
+
deleteEntry: function deleteEntry(id) {
|
|
5157
|
+
var raw = this.toPlainObject();
|
|
5158
|
+
return _plain_endpoints__WEBPACK_IMPORTED_MODULE_2__["entry"].del(http, {
|
|
5159
|
+
spaceId: raw.sys.space.sys.id,
|
|
5160
|
+
environmentId: raw.sys.id,
|
|
5161
|
+
entryId: id
|
|
5162
|
+
}).then(function () {// noop
|
|
5163
|
+
});
|
|
5164
|
+
},
|
|
5165
|
+
|
|
5137
5166
|
/**
|
|
5138
5167
|
* Gets a collection of Entries
|
|
5139
5168
|
* Warning: if you are using the select operator, when saving, any field that was not selected will be removed
|
|
@@ -5437,6 +5466,36 @@ function createEnvironmentApi(_ref) {
|
|
|
5437
5466
|
});
|
|
5438
5467
|
},
|
|
5439
5468
|
|
|
5469
|
+
/**
|
|
5470
|
+
* Creates an asset key for signing asset URLs (Embargoed Assets)
|
|
5471
|
+
* @param data Object with request payload
|
|
5472
|
+
* @param data.expiresAt number a UNIX timestamp in the future (but not more than 48 hours from time of calling)
|
|
5473
|
+
* @return Promise for the newly created AssetKey
|
|
5474
|
+
* @example ```javascript
|
|
5475
|
+
* const client = contentful.createClient({
|
|
5476
|
+
* accessToken: '<content_management_api_key>'
|
|
5477
|
+
* })
|
|
5478
|
+
*
|
|
5479
|
+
* // Create assetKey
|
|
5480
|
+
* now = () => Math.floor(Date.now() / 1000)
|
|
5481
|
+
* const withExpiryIn1Hour = () => now() + 1 * 60 * 60
|
|
5482
|
+
* client.getSpace('<space_id>')
|
|
5483
|
+
* .then((space) => space.getEnvironment('<environment-id>'))
|
|
5484
|
+
* .then((environment) => environment.createAssetKey({ expiresAt: withExpiryIn1Hour() }))
|
|
5485
|
+
* .then((policy, secret) => console.log({ policy, secret }))
|
|
5486
|
+
* .catch(console.error)
|
|
5487
|
+
* ```
|
|
5488
|
+
*/
|
|
5489
|
+
createAssetKey: function createAssetKey(data) {
|
|
5490
|
+
var raw = this.toPlainObject();
|
|
5491
|
+
return _plain_endpoints__WEBPACK_IMPORTED_MODULE_2__["assetKey"].create(http, {
|
|
5492
|
+
spaceId: raw.sys.space.sys.id,
|
|
5493
|
+
environmentId: raw.sys.id
|
|
5494
|
+
}, data).then(function (data) {
|
|
5495
|
+
return wrapAssetKey(http, data);
|
|
5496
|
+
});
|
|
5497
|
+
},
|
|
5498
|
+
|
|
5440
5499
|
/**
|
|
5441
5500
|
* Gets an Upload
|
|
5442
5501
|
* @param id - Upload ID
|
|
@@ -5877,7 +5936,7 @@ function createEnvironmentApi(_ref) {
|
|
|
5877
5936
|
return wrapSnapshotCollection(http, data);
|
|
5878
5937
|
});
|
|
5879
5938
|
},
|
|
5880
|
-
createTag: function createTag(id, name) {
|
|
5939
|
+
createTag: function createTag(id, name, visibility) {
|
|
5881
5940
|
var raw = this.toPlainObject();
|
|
5882
5941
|
var params = {
|
|
5883
5942
|
spaceId: raw.sys.space.sys.id,
|
|
@@ -5886,7 +5945,7 @@ function createEnvironmentApi(_ref) {
|
|
|
5886
5945
|
};
|
|
5887
5946
|
return _plain_endpoints__WEBPACK_IMPORTED_MODULE_2__["tag"].createWithId(http, params, {
|
|
5888
5947
|
name: name
|
|
5889
|
-
}).then(function (data) {
|
|
5948
|
+
}, visibility).then(function (data) {
|
|
5890
5949
|
return Object(_entities_tag__WEBPACK_IMPORTED_MODULE_3__["wrapTag"])(http, data);
|
|
5891
5950
|
});
|
|
5892
5951
|
},
|
|
@@ -7867,6 +7926,35 @@ var wrapAppInstallationCollection = Object(_common_utils__WEBPACK_IMPORTED_MODUL
|
|
|
7867
7926
|
|
|
7868
7927
|
/***/ }),
|
|
7869
7928
|
|
|
7929
|
+
/***/ "./entities/asset-key.ts":
|
|
7930
|
+
/*!*******************************!*\
|
|
7931
|
+
!*** ./entities/asset-key.ts ***!
|
|
7932
|
+
\*******************************/
|
|
7933
|
+
/*! exports provided: wrapAssetKey */
|
|
7934
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7935
|
+
|
|
7936
|
+
"use strict";
|
|
7937
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7938
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapAssetKey", function() { return wrapAssetKey; });
|
|
7939
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.js");
|
|
7940
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_0__);
|
|
7941
|
+
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js");
|
|
7942
|
+
|
|
7943
|
+
|
|
7944
|
+
|
|
7945
|
+
/**
|
|
7946
|
+
* @private
|
|
7947
|
+
* @param http - HTTP client instance
|
|
7948
|
+
* @param data - Raw asset key data
|
|
7949
|
+
* @return Wrapped asset key data
|
|
7950
|
+
*/
|
|
7951
|
+
function wrapAssetKey(_http, data) {
|
|
7952
|
+
var assetKey = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["toPlainObject"])(fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(data));
|
|
7953
|
+
return assetKey;
|
|
7954
|
+
}
|
|
7955
|
+
|
|
7956
|
+
/***/ }),
|
|
7957
|
+
|
|
7870
7958
|
/***/ "./entities/asset.ts":
|
|
7871
7959
|
/*!***************************!*\
|
|
7872
7960
|
!*** ./entities/asset.ts ***!
|
|
@@ -8494,32 +8582,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8494
8582
|
/* harmony import */ var _app_definition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./app-definition */ "./entities/app-definition.ts");
|
|
8495
8583
|
/* harmony import */ var _app_installation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app-installation */ "./entities/app-installation.ts");
|
|
8496
8584
|
/* harmony import */ var _asset__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./asset */ "./entities/asset.ts");
|
|
8497
|
-
/* harmony import */ var
|
|
8498
|
-
/* harmony import */ var
|
|
8499
|
-
/* harmony import */ var
|
|
8500
|
-
/* harmony import */ var
|
|
8501
|
-
/* harmony import */ var
|
|
8502
|
-
/* harmony import */ var
|
|
8503
|
-
/* harmony import */ var
|
|
8504
|
-
/* harmony import */ var
|
|
8505
|
-
/* harmony import */ var
|
|
8506
|
-
/* harmony import */ var
|
|
8507
|
-
/* harmony import */ var
|
|
8508
|
-
/* harmony import */ var
|
|
8509
|
-
/* harmony import */ var
|
|
8510
|
-
/* harmony import */ var
|
|
8511
|
-
/* harmony import */ var
|
|
8512
|
-
/* harmony import */ var
|
|
8513
|
-
/* harmony import */ var
|
|
8514
|
-
/* harmony import */ var
|
|
8515
|
-
/* harmony import */ var
|
|
8516
|
-
/* harmony import */ var
|
|
8517
|
-
/* harmony import */ var
|
|
8518
|
-
/* harmony import */ var
|
|
8519
|
-
/* harmony import */ var
|
|
8520
|
-
/* harmony import */ var
|
|
8521
|
-
/* harmony import */ var
|
|
8522
|
-
/* harmony import */ var
|
|
8585
|
+
/* harmony import */ var _asset_key__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./asset-key */ "./entities/asset-key.ts");
|
|
8586
|
+
/* harmony import */ var _content_type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./content-type */ "./entities/content-type.ts");
|
|
8587
|
+
/* harmony import */ var _editor_interface__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./editor-interface */ "./entities/editor-interface.ts");
|
|
8588
|
+
/* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./entry */ "./entities/entry.ts");
|
|
8589
|
+
/* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./environment */ "./entities/environment.ts");
|
|
8590
|
+
/* harmony import */ var _environment_alias__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./environment-alias */ "./entities/environment-alias.ts");
|
|
8591
|
+
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./locale */ "./entities/locale.ts");
|
|
8592
|
+
/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts");
|
|
8593
|
+
/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts");
|
|
8594
|
+
/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts");
|
|
8595
|
+
/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts");
|
|
8596
|
+
/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts");
|
|
8597
|
+
/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./role */ "./entities/role.ts");
|
|
8598
|
+
/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts");
|
|
8599
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts");
|
|
8600
|
+
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./space */ "./entities/space.ts");
|
|
8601
|
+
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts");
|
|
8602
|
+
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts");
|
|
8603
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./team */ "./entities/team.ts");
|
|
8604
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts");
|
|
8605
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts");
|
|
8606
|
+
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts");
|
|
8607
|
+
/* harmony import */ var _ui_extension__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./ui-extension */ "./entities/ui-extension.ts");
|
|
8608
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts");
|
|
8609
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts");
|
|
8610
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./user */ "./entities/user.ts");
|
|
8611
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts");
|
|
8612
|
+
|
|
8523
8613
|
|
|
8524
8614
|
|
|
8525
8615
|
|
|
@@ -8555,32 +8645,33 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8555
8645
|
appDefinition: _app_definition__WEBPACK_IMPORTED_MODULE_1__,
|
|
8556
8646
|
appInstallation: _app_installation__WEBPACK_IMPORTED_MODULE_2__,
|
|
8557
8647
|
asset: _asset__WEBPACK_IMPORTED_MODULE_3__,
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8648
|
+
assetKey: _asset_key__WEBPACK_IMPORTED_MODULE_4__,
|
|
8649
|
+
contentType: _content_type__WEBPACK_IMPORTED_MODULE_5__,
|
|
8650
|
+
editorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_6__,
|
|
8651
|
+
entry: _entry__WEBPACK_IMPORTED_MODULE_7__,
|
|
8652
|
+
environment: _environment__WEBPACK_IMPORTED_MODULE_8__,
|
|
8653
|
+
environmentAlias: _environment_alias__WEBPACK_IMPORTED_MODULE_9__,
|
|
8654
|
+
locale: _locale__WEBPACK_IMPORTED_MODULE_10__,
|
|
8655
|
+
organization: _organization__WEBPACK_IMPORTED_MODULE_11__,
|
|
8656
|
+
organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_12__,
|
|
8657
|
+
organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_13__,
|
|
8658
|
+
personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_14__,
|
|
8659
|
+
previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_15__,
|
|
8660
|
+
role: _role__WEBPACK_IMPORTED_MODULE_16__,
|
|
8661
|
+
scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_17__,
|
|
8662
|
+
snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_18__,
|
|
8663
|
+
space: _space__WEBPACK_IMPORTED_MODULE_19__,
|
|
8664
|
+
spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_20__,
|
|
8665
|
+
spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_21__,
|
|
8666
|
+
tag: _tag__WEBPACK_IMPORTED_MODULE_24__,
|
|
8667
|
+
team: _team__WEBPACK_IMPORTED_MODULE_22__,
|
|
8668
|
+
teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_23__,
|
|
8669
|
+
teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_25__,
|
|
8670
|
+
uiExtension: _ui_extension__WEBPACK_IMPORTED_MODULE_26__,
|
|
8671
|
+
upload: _upload__WEBPACK_IMPORTED_MODULE_27__,
|
|
8672
|
+
usage: _usage__WEBPACK_IMPORTED_MODULE_28__,
|
|
8673
|
+
user: _user__WEBPACK_IMPORTED_MODULE_29__,
|
|
8674
|
+
webhook: _webhook__WEBPACK_IMPORTED_MODULE_30__
|
|
8584
8675
|
});
|
|
8585
8676
|
|
|
8586
8677
|
/***/ }),
|
|
@@ -10197,6 +10288,94 @@ var del = function del(http, params) {
|
|
|
10197
10288
|
|
|
10198
10289
|
/***/ }),
|
|
10199
10290
|
|
|
10291
|
+
/***/ "./plain/endpoints/asset-key.ts":
|
|
10292
|
+
/*!**************************************!*\
|
|
10293
|
+
!*** ./plain/endpoints/asset-key.ts ***!
|
|
10294
|
+
\**************************************/
|
|
10295
|
+
/*! exports provided: ValidationError, create */
|
|
10296
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10297
|
+
|
|
10298
|
+
"use strict";
|
|
10299
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10300
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidationError", function() { return ValidationError; });
|
|
10301
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "create", function() { return create; });
|
|
10302
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./plain/endpoints/raw.ts");
|
|
10303
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
10304
|
+
|
|
10305
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10306
|
+
|
|
10307
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10308
|
+
|
|
10309
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10310
|
+
|
|
10311
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10312
|
+
|
|
10313
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10314
|
+
|
|
10315
|
+
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
|
|
10316
|
+
|
|
10317
|
+
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
10318
|
+
|
|
10319
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10320
|
+
|
|
10321
|
+
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
10322
|
+
|
|
10323
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10324
|
+
|
|
10325
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10326
|
+
|
|
10327
|
+
|
|
10328
|
+
var ASSET_KEY_MAX_LIFETIME = 48 * 60 * 60;
|
|
10329
|
+
var ValidationError = /*#__PURE__*/function (_Error) {
|
|
10330
|
+
_inherits(ValidationError, _Error);
|
|
10331
|
+
|
|
10332
|
+
var _super = _createSuper(ValidationError);
|
|
10333
|
+
|
|
10334
|
+
function ValidationError(name, message) {
|
|
10335
|
+
var _this;
|
|
10336
|
+
|
|
10337
|
+
_classCallCheck(this, ValidationError);
|
|
10338
|
+
|
|
10339
|
+
_this = _super.call(this, "Invalid \"".concat(name, "\" provided, ") + message);
|
|
10340
|
+
_this.name = 'ValidationError';
|
|
10341
|
+
return _this;
|
|
10342
|
+
}
|
|
10343
|
+
|
|
10344
|
+
return ValidationError;
|
|
10345
|
+
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
10346
|
+
|
|
10347
|
+
var validateTimestamp = function validateTimestamp(name, timestamp, options) {
|
|
10348
|
+
options = options || {};
|
|
10349
|
+
|
|
10350
|
+
if (typeof timestamp !== 'number') {
|
|
10351
|
+
throw new ValidationError(name, "only numeric values are allowed for timestamps, provided type was \"".concat(_typeof(timestamp), "\""));
|
|
10352
|
+
}
|
|
10353
|
+
|
|
10354
|
+
if (options.maximum && timestamp > options.maximum) {
|
|
10355
|
+
throw new ValidationError(name, "value (".concat(timestamp, ") cannot be further in the future than expected maximum (").concat(options.maximum, ")"));
|
|
10356
|
+
}
|
|
10357
|
+
|
|
10358
|
+
if (options.now && timestamp < options.now) {
|
|
10359
|
+
throw new ValidationError(name, "value (".concat(timestamp, ") cannot be in the past, current time was ").concat(options.now));
|
|
10360
|
+
}
|
|
10361
|
+
};
|
|
10362
|
+
|
|
10363
|
+
var create = function create(http, params, data) {
|
|
10364
|
+
var expiresAt = data.expiresAt;
|
|
10365
|
+
var now = Math.floor(Date.now() / 1000);
|
|
10366
|
+
var currentMaxLifetime = now + ASSET_KEY_MAX_LIFETIME;
|
|
10367
|
+
validateTimestamp('expiresAt', expiresAt, {
|
|
10368
|
+
maximum: currentMaxLifetime,
|
|
10369
|
+
now: now
|
|
10370
|
+
});
|
|
10371
|
+
var postParams = {
|
|
10372
|
+
expiresAt: expiresAt
|
|
10373
|
+
};
|
|
10374
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__["post"](http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/asset_keys"), postParams);
|
|
10375
|
+
};
|
|
10376
|
+
|
|
10377
|
+
/***/ }),
|
|
10378
|
+
|
|
10200
10379
|
/***/ "./plain/endpoints/asset.ts":
|
|
10201
10380
|
/*!**********************************!*\
|
|
10202
10381
|
!*** ./plain/endpoints/asset.ts ***!
|
|
@@ -10806,7 +10985,7 @@ var createWithId = function createWithId(http, params, rawData, headers) {
|
|
|
10806
10985
|
/*!**********************************!*\
|
|
10807
10986
|
!*** ./plain/endpoints/index.ts ***!
|
|
10808
10987
|
\**********************************/
|
|
10809
|
-
/*! exports provided: contentType, entry, asset, environment, environmentAlias, locale, raw, space, user, editorInterface, personalAccessToken, usage, role, scheduledAction, previewApiKey, apiKey, upload, appDefinition, appInstallation, uiExtension, webhook, tag, organization, organizationInvitation, organizationMembership, snapshot, team, teamMembership, teamSpaceMembership, spaceMember, spaceMembership */
|
|
10988
|
+
/*! exports provided: contentType, entry, asset, assetKey, environment, environmentAlias, locale, raw, space, user, editorInterface, personalAccessToken, usage, role, scheduledAction, previewApiKey, apiKey, upload, appDefinition, appInstallation, uiExtension, webhook, tag, organization, organizationInvitation, organizationMembership, snapshot, team, teamMembership, teamSpaceMembership, spaceMember, spaceMembership */
|
|
10810
10989
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10811
10990
|
|
|
10812
10991
|
"use strict";
|
|
@@ -10817,62 +10996,66 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10817
10996
|
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "entry", function() { return _entry__WEBPACK_IMPORTED_MODULE_1__; });
|
|
10818
10997
|
/* harmony import */ var _asset__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./asset */ "./plain/endpoints/asset.ts");
|
|
10819
10998
|
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "asset", function() { return _asset__WEBPACK_IMPORTED_MODULE_2__; });
|
|
10820
|
-
/* harmony import */ var
|
|
10821
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10822
|
-
/* harmony import */ var
|
|
10823
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10824
|
-
/* harmony import */ var
|
|
10825
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10826
|
-
/* harmony import */ var
|
|
10827
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10828
|
-
/* harmony import */ var
|
|
10829
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10830
|
-
/* harmony import */ var
|
|
10831
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10832
|
-
/* harmony import */ var
|
|
10833
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10834
|
-
/* harmony import */ var
|
|
10835
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10836
|
-
/* harmony import */ var
|
|
10837
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10838
|
-
/* harmony import */ var
|
|
10839
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10840
|
-
/* harmony import */ var
|
|
10841
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10842
|
-
/* harmony import */ var
|
|
10843
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10844
|
-
/* harmony import */ var
|
|
10845
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10846
|
-
/* harmony import */ var
|
|
10847
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10848
|
-
/* harmony import */ var
|
|
10849
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10850
|
-
/* harmony import */ var
|
|
10851
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10852
|
-
/* harmony import */ var
|
|
10853
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10854
|
-
/* harmony import */ var
|
|
10855
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10856
|
-
/* harmony import */ var
|
|
10857
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10858
|
-
/* harmony import */ var
|
|
10859
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10860
|
-
/* harmony import */ var
|
|
10861
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10862
|
-
/* harmony import */ var
|
|
10863
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10864
|
-
/* harmony import */ var
|
|
10865
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10866
|
-
/* harmony import */ var
|
|
10867
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10868
|
-
/* harmony import */ var
|
|
10869
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10870
|
-
/* harmony import */ var
|
|
10871
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10872
|
-
/* harmony import */ var
|
|
10873
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10874
|
-
/* harmony import */ var
|
|
10875
|
-
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "
|
|
10999
|
+
/* harmony import */ var _asset_key__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./asset-key */ "./plain/endpoints/asset-key.ts");
|
|
11000
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "assetKey", function() { return _asset_key__WEBPACK_IMPORTED_MODULE_3__; });
|
|
11001
|
+
/* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./environment */ "./plain/endpoints/environment.ts");
|
|
11002
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return _environment__WEBPACK_IMPORTED_MODULE_4__; });
|
|
11003
|
+
/* harmony import */ var _environment_alias__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./environment-alias */ "./plain/endpoints/environment-alias.ts");
|
|
11004
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "environmentAlias", function() { return _environment_alias__WEBPACK_IMPORTED_MODULE_5__; });
|
|
11005
|
+
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./locale */ "./plain/endpoints/locale.ts");
|
|
11006
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "locale", function() { return _locale__WEBPACK_IMPORTED_MODULE_6__; });
|
|
11007
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./raw */ "./plain/endpoints/raw.ts");
|
|
11008
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "raw", function() { return _raw__WEBPACK_IMPORTED_MODULE_7__; });
|
|
11009
|
+
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./space */ "./plain/endpoints/space.ts");
|
|
11010
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "space", function() { return _space__WEBPACK_IMPORTED_MODULE_8__; });
|
|
11011
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./user */ "./plain/endpoints/user.ts");
|
|
11012
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "user", function() { return _user__WEBPACK_IMPORTED_MODULE_9__; });
|
|
11013
|
+
/* harmony import */ var _editor_interface__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./editor-interface */ "./plain/endpoints/editor-interface.ts");
|
|
11014
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "editorInterface", function() { return _editor_interface__WEBPACK_IMPORTED_MODULE_10__; });
|
|
11015
|
+
/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./personal-access-token */ "./plain/endpoints/personal-access-token.ts");
|
|
11016
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "personalAccessToken", function() { return _personal_access_token__WEBPACK_IMPORTED_MODULE_11__; });
|
|
11017
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./usage */ "./plain/endpoints/usage.ts");
|
|
11018
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "usage", function() { return _usage__WEBPACK_IMPORTED_MODULE_12__; });
|
|
11019
|
+
/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./role */ "./plain/endpoints/role.ts");
|
|
11020
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "role", function() { return _role__WEBPACK_IMPORTED_MODULE_13__; });
|
|
11021
|
+
/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./scheduled-action */ "./plain/endpoints/scheduled-action.ts");
|
|
11022
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "scheduledAction", function() { return _scheduled_action__WEBPACK_IMPORTED_MODULE_14__; });
|
|
11023
|
+
/* harmony import */ var _preview_api_keys__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./preview-api-keys */ "./plain/endpoints/preview-api-keys.ts");
|
|
11024
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "previewApiKey", function() { return _preview_api_keys__WEBPACK_IMPORTED_MODULE_15__; });
|
|
11025
|
+
/* harmony import */ var _api_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./api-key */ "./plain/endpoints/api-key.ts");
|
|
11026
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "apiKey", function() { return _api_key__WEBPACK_IMPORTED_MODULE_16__; });
|
|
11027
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./upload */ "./plain/endpoints/upload.ts");
|
|
11028
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "upload", function() { return _upload__WEBPACK_IMPORTED_MODULE_17__; });
|
|
11029
|
+
/* harmony import */ var _app_definition__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./app-definition */ "./plain/endpoints/app-definition.ts");
|
|
11030
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "appDefinition", function() { return _app_definition__WEBPACK_IMPORTED_MODULE_18__; });
|
|
11031
|
+
/* harmony import */ var _app_installation__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./app-installation */ "./plain/endpoints/app-installation.ts");
|
|
11032
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "appInstallation", function() { return _app_installation__WEBPACK_IMPORTED_MODULE_19__; });
|
|
11033
|
+
/* harmony import */ var _ui_extension__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./ui-extension */ "./plain/endpoints/ui-extension.ts");
|
|
11034
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "uiExtension", function() { return _ui_extension__WEBPACK_IMPORTED_MODULE_20__; });
|
|
11035
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./webhook */ "./plain/endpoints/webhook.ts");
|
|
11036
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "webhook", function() { return _webhook__WEBPACK_IMPORTED_MODULE_21__; });
|
|
11037
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./tag */ "./plain/endpoints/tag.ts");
|
|
11038
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "tag", function() { return _tag__WEBPACK_IMPORTED_MODULE_22__; });
|
|
11039
|
+
/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./organization */ "./plain/endpoints/organization.ts");
|
|
11040
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "organization", function() { return _organization__WEBPACK_IMPORTED_MODULE_23__; });
|
|
11041
|
+
/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./organization-invitation */ "./plain/endpoints/organization-invitation.ts");
|
|
11042
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "organizationInvitation", function() { return _organization_invitation__WEBPACK_IMPORTED_MODULE_24__; });
|
|
11043
|
+
/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./organization-membership */ "./plain/endpoints/organization-membership.ts");
|
|
11044
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "organizationMembership", function() { return _organization_membership__WEBPACK_IMPORTED_MODULE_25__; });
|
|
11045
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./snapshot */ "./plain/endpoints/snapshot.ts");
|
|
11046
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "snapshot", function() { return _snapshot__WEBPACK_IMPORTED_MODULE_26__; });
|
|
11047
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./team */ "./plain/endpoints/team.ts");
|
|
11048
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "team", function() { return _team__WEBPACK_IMPORTED_MODULE_27__; });
|
|
11049
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./team-membership */ "./plain/endpoints/team-membership.ts");
|
|
11050
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "teamMembership", function() { return _team_membership__WEBPACK_IMPORTED_MODULE_28__; });
|
|
11051
|
+
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./team-space-membership */ "./plain/endpoints/team-space-membership.ts");
|
|
11052
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "teamSpaceMembership", function() { return _team_space_membership__WEBPACK_IMPORTED_MODULE_29__; });
|
|
11053
|
+
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./space-member */ "./plain/endpoints/space-member.ts");
|
|
11054
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "spaceMember", function() { return _space_member__WEBPACK_IMPORTED_MODULE_30__; });
|
|
11055
|
+
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./space-membership */ "./plain/endpoints/space-membership.ts");
|
|
11056
|
+
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "spaceMembership", function() { return _space_membership__WEBPACK_IMPORTED_MODULE_31__; });
|
|
11057
|
+
|
|
11058
|
+
|
|
10876
11059
|
|
|
10877
11060
|
|
|
10878
11061
|
|
|
@@ -11617,9 +11800,13 @@ var getMany = function getMany(http, params) {
|
|
|
11617
11800
|
params: params.query
|
|
11618
11801
|
});
|
|
11619
11802
|
};
|
|
11620
|
-
var createWithId = function createWithId(http, params, rawData) {
|
|
11803
|
+
var createWithId = function createWithId(http, params, rawData, visibility) {
|
|
11621
11804
|
var data = fast_copy__WEBPACK_IMPORTED_MODULE_1___default()(rawData);
|
|
11622
|
-
return _raw__WEBPACK_IMPORTED_MODULE_0__["put"](http, getTagUrl(params), data
|
|
11805
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__["put"](http, getTagUrl(params), data, {
|
|
11806
|
+
headers: {
|
|
11807
|
+
'X-Contentful-Tag-Visibility': visibility !== null && visibility !== void 0 ? visibility : 'private'
|
|
11808
|
+
}
|
|
11809
|
+
});
|
|
11623
11810
|
};
|
|
11624
11811
|
var update = function update(http, params, rawData, headers) {
|
|
11625
11812
|
var _rawData$sys$version;
|
|
@@ -12409,6 +12596,9 @@ var createPlainClient = function createPlainClient(params, defaults) {
|
|
|
12409
12596
|
processForAllLocales: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, _endpoints__WEBPACK_IMPORTED_MODULE_1__["asset"].processForAllLocales),
|
|
12410
12597
|
processForLocale: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, _endpoints__WEBPACK_IMPORTED_MODULE_1__["asset"].processForLocale)
|
|
12411
12598
|
},
|
|
12599
|
+
assetKey: {
|
|
12600
|
+
create: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, _endpoints__WEBPACK_IMPORTED_MODULE_1__["assetKey"].create)
|
|
12601
|
+
},
|
|
12412
12602
|
upload: {
|
|
12413
12603
|
get: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, _endpoints__WEBPACK_IMPORTED_MODULE_1__["upload"].get),
|
|
12414
12604
|
create: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, _endpoints__WEBPACK_IMPORTED_MODULE_1__["upload"].create),
|