contentful-management 10.17.0 → 10.18.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 +893 -118
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +2 -2
- package/dist/contentful-management.node.js +846 -115
- 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/environment-template-installation.js +45 -0
- package/dist/es-modules/adapters/REST/endpoints/environment-template.js +65 -0
- package/dist/es-modules/adapters/REST/endpoints/index.js +4 -0
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/create-contentful-api.js +98 -0
- package/dist/es-modules/create-environment-api.js +59 -0
- package/dist/es-modules/create-environment-template-api.js +323 -0
- package/dist/es-modules/entities/environment-template-installation.js +19 -0
- package/dist/es-modules/entities/environment-template.js +12 -0
- package/dist/es-modules/entities/index.js +4 -0
- package/dist/typings/adapters/REST/endpoints/environment-template-installation.d.ts +3 -0
- package/dist/typings/adapters/REST/endpoints/environment-template.d.ts +11 -0
- package/dist/typings/adapters/REST/endpoints/index.d.ts +4 -0
- package/dist/typings/common-types.d.ts +96 -1
- package/dist/typings/contentful-management.d.ts +1 -5
- package/dist/typings/create-contentful-api.d.ts +64 -1
- package/dist/typings/create-environment-api.d.ts +23 -1
- package/dist/typings/create-environment-template-api.d.ts +196 -0
- package/dist/typings/entities/environment-template-installation.d.ts +54 -0
- package/dist/typings/entities/environment-template.d.ts +38 -0
- package/dist/typings/entities/index.d.ts +4 -0
- package/dist/typings/export-types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -9906,6 +9906,178 @@ var del = function del(http, params) {
|
|
|
9906
9906
|
|
|
9907
9907
|
/***/ }),
|
|
9908
9908
|
|
|
9909
|
+
/***/ "./adapters/REST/endpoints/environment-template-installation.ts":
|
|
9910
|
+
/*!**********************************************************************!*\
|
|
9911
|
+
!*** ./adapters/REST/endpoints/environment-template-installation.ts ***!
|
|
9912
|
+
\**********************************************************************/
|
|
9913
|
+
/*! exports provided: getMany, getForEnvironment */
|
|
9914
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9915
|
+
|
|
9916
|
+
"use strict";
|
|
9917
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9918
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMany", function() { return getMany; });
|
|
9919
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getForEnvironment", function() { return getForEnvironment; });
|
|
9920
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
9921
|
+
var _excluded = ["organizationId", "environmentTemplateId", "spaceId", "environmentId"],
|
|
9922
|
+
_excluded2 = ["spaceId", "environmentId", "environmentTemplateId", "installationId"];
|
|
9923
|
+
|
|
9924
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9925
|
+
|
|
9926
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9927
|
+
|
|
9928
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9929
|
+
|
|
9930
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9931
|
+
|
|
9932
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9933
|
+
|
|
9934
|
+
|
|
9935
|
+
|
|
9936
|
+
var apiPath = function apiPath(organizationId) {
|
|
9937
|
+
for (var _len = arguments.length, pathSegments = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
9938
|
+
pathSegments[_key - 1] = arguments[_key];
|
|
9939
|
+
}
|
|
9940
|
+
|
|
9941
|
+
return "/organizations/".concat(organizationId, "/environment_templates/") + pathSegments.join('/');
|
|
9942
|
+
};
|
|
9943
|
+
|
|
9944
|
+
var getMany = function getMany(http, _ref) {
|
|
9945
|
+
var organizationId = _ref.organizationId,
|
|
9946
|
+
environmentTemplateId = _ref.environmentTemplateId,
|
|
9947
|
+
spaceId = _ref.spaceId,
|
|
9948
|
+
environmentId = _ref.environmentId,
|
|
9949
|
+
paginationProps = _objectWithoutProperties(_ref, _excluded);
|
|
9950
|
+
|
|
9951
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__["get"](http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {
|
|
9952
|
+
params: _objectSpread(_objectSpread(_objectSpread({}, paginationProps), environmentId && {
|
|
9953
|
+
'environment.sys.id': environmentId
|
|
9954
|
+
}), spaceId && {
|
|
9955
|
+
'space.sys.id': spaceId
|
|
9956
|
+
})
|
|
9957
|
+
});
|
|
9958
|
+
};
|
|
9959
|
+
var getForEnvironment = function getForEnvironment(http, _ref2) {
|
|
9960
|
+
var spaceId = _ref2.spaceId,
|
|
9961
|
+
environmentId = _ref2.environmentId,
|
|
9962
|
+
environmentTemplateId = _ref2.environmentTemplateId,
|
|
9963
|
+
installationId = _ref2.installationId,
|
|
9964
|
+
paginationProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
9965
|
+
|
|
9966
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__["get"](http, "/spaces/".concat(spaceId, "/environments/").concat(environmentId, "/template_installations/").concat(environmentTemplateId), {
|
|
9967
|
+
params: _objectSpread(_objectSpread({}, installationId && {
|
|
9968
|
+
'sys.id': installationId
|
|
9969
|
+
}), paginationProps)
|
|
9970
|
+
});
|
|
9971
|
+
};
|
|
9972
|
+
|
|
9973
|
+
/***/ }),
|
|
9974
|
+
|
|
9975
|
+
/***/ "./adapters/REST/endpoints/environment-template.ts":
|
|
9976
|
+
/*!*********************************************************!*\
|
|
9977
|
+
!*** ./adapters/REST/endpoints/environment-template.ts ***!
|
|
9978
|
+
\*********************************************************/
|
|
9979
|
+
/*! exports provided: get, getMany, create, update, versionUpdate, del, versions, validate, install, disconnect */
|
|
9980
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9981
|
+
|
|
9982
|
+
"use strict";
|
|
9983
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9984
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; });
|
|
9985
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMany", function() { return getMany; });
|
|
9986
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "create", function() { return create; });
|
|
9987
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "update", function() { return update; });
|
|
9988
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "versionUpdate", function() { return versionUpdate; });
|
|
9989
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "del", function() { return del; });
|
|
9990
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "versions", function() { return versions; });
|
|
9991
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return validate; });
|
|
9992
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; });
|
|
9993
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "disconnect", function() { return disconnect; });
|
|
9994
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.js");
|
|
9995
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_0__);
|
|
9996
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
9997
|
+
|
|
9998
|
+
|
|
9999
|
+
|
|
10000
|
+
var apiPath = function apiPath(organizationId) {
|
|
10001
|
+
for (var _len = arguments.length, pathSegments = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
10002
|
+
pathSegments[_key - 1] = arguments[_key];
|
|
10003
|
+
}
|
|
10004
|
+
|
|
10005
|
+
return "/organizations/".concat(organizationId, "/environment_templates/") + pathSegments.join('/');
|
|
10006
|
+
};
|
|
10007
|
+
|
|
10008
|
+
var get = function get(http, _ref) {
|
|
10009
|
+
var organizationId = _ref.organizationId,
|
|
10010
|
+
environmentTemplateId = _ref.environmentTemplateId,
|
|
10011
|
+
version = _ref.version;
|
|
10012
|
+
return version ? _raw__WEBPACK_IMPORTED_MODULE_1__["get"](http, apiPath(organizationId, environmentTemplateId, 'versions', version)) : _raw__WEBPACK_IMPORTED_MODULE_1__["get"](http, apiPath(organizationId, environmentTemplateId));
|
|
10013
|
+
};
|
|
10014
|
+
var getMany = function getMany(http, _ref2) {
|
|
10015
|
+
var organizationId = _ref2.organizationId,
|
|
10016
|
+
_ref2$query = _ref2.query,
|
|
10017
|
+
query = _ref2$query === void 0 ? {} : _ref2$query;
|
|
10018
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["get"](http, apiPath(organizationId), {
|
|
10019
|
+
params: query
|
|
10020
|
+
});
|
|
10021
|
+
};
|
|
10022
|
+
var create = function create(http, _ref3, payload) {
|
|
10023
|
+
var organizationId = _ref3.organizationId;
|
|
10024
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["post"](http, apiPath(organizationId), payload);
|
|
10025
|
+
};
|
|
10026
|
+
var update = function update(http, _ref4, payload) {
|
|
10027
|
+
var _payload$sys$version;
|
|
10028
|
+
|
|
10029
|
+
var organizationId = _ref4.organizationId,
|
|
10030
|
+
environmentTemplateId = _ref4.environmentTemplateId;
|
|
10031
|
+
var data = fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(payload);
|
|
10032
|
+
delete data.sys;
|
|
10033
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["put"](http, apiPath(organizationId, environmentTemplateId), data, {
|
|
10034
|
+
headers: {
|
|
10035
|
+
'X-Contentful-Version': (_payload$sys$version = payload.sys.version) !== null && _payload$sys$version !== void 0 ? _payload$sys$version : 0
|
|
10036
|
+
}
|
|
10037
|
+
});
|
|
10038
|
+
};
|
|
10039
|
+
var versionUpdate = function versionUpdate(http, _ref5, payload) {
|
|
10040
|
+
var organizationId = _ref5.organizationId,
|
|
10041
|
+
version = _ref5.version,
|
|
10042
|
+
environmentTemplateId = _ref5.environmentTemplateId;
|
|
10043
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["patch"](http, apiPath(organizationId, environmentTemplateId, 'versions', version), payload);
|
|
10044
|
+
};
|
|
10045
|
+
var del = function del(http, _ref6) {
|
|
10046
|
+
var organizationId = _ref6.organizationId,
|
|
10047
|
+
environmentTemplateId = _ref6.environmentTemplateId;
|
|
10048
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["del"](http, apiPath(organizationId, environmentTemplateId));
|
|
10049
|
+
};
|
|
10050
|
+
var versions = function versions(http, _ref7) {
|
|
10051
|
+
var organizationId = _ref7.organizationId,
|
|
10052
|
+
environmentTemplateId = _ref7.environmentTemplateId,
|
|
10053
|
+
_ref7$query = _ref7.query,
|
|
10054
|
+
query = _ref7$query === void 0 ? {} : _ref7$query;
|
|
10055
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["get"](http, apiPath(organizationId, environmentTemplateId, 'versions'), {
|
|
10056
|
+
params: query
|
|
10057
|
+
});
|
|
10058
|
+
};
|
|
10059
|
+
var validate = function validate(http, _ref8, payload) {
|
|
10060
|
+
var spaceId = _ref8.spaceId,
|
|
10061
|
+
environmentId = _ref8.environmentId,
|
|
10062
|
+
environmentTemplateId = _ref8.environmentTemplateId,
|
|
10063
|
+
version = _ref8.version;
|
|
10064
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["put"](http, version ? "/spaces/".concat(spaceId, "/environments/").concat(environmentId, "/template_installations/").concat(environmentTemplateId, "/versions/").concat(version, "/validated") : "/spaces/".concat(spaceId, "/environments/").concat(environmentId, "/template_installations/").concat(environmentTemplateId, "/validated"), payload);
|
|
10065
|
+
};
|
|
10066
|
+
var install = function install(http, _ref9, payload) {
|
|
10067
|
+
var spaceId = _ref9.spaceId,
|
|
10068
|
+
environmentId = _ref9.environmentId,
|
|
10069
|
+
environmentTemplateId = _ref9.environmentTemplateId;
|
|
10070
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["post"](http, "/spaces/".concat(spaceId, "/environments/").concat(environmentId, "/template_installations/").concat(environmentTemplateId, "/versions"), payload);
|
|
10071
|
+
};
|
|
10072
|
+
var disconnect = function disconnect(http, _ref10) {
|
|
10073
|
+
var spaceId = _ref10.spaceId,
|
|
10074
|
+
environmentId = _ref10.environmentId,
|
|
10075
|
+
environmentTemplateId = _ref10.environmentTemplateId;
|
|
10076
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__["del"](http, "/spaces/".concat(spaceId, "/environments/").concat(environmentId, "/template_installations/").concat(environmentTemplateId));
|
|
10077
|
+
};
|
|
10078
|
+
|
|
10079
|
+
/***/ }),
|
|
10080
|
+
|
|
9909
10081
|
/***/ "./adapters/REST/endpoints/environment.ts":
|
|
9910
10082
|
/*!************************************************!*\
|
|
9911
10083
|
!*** ./adapters/REST/endpoints/environment.ts ***!
|
|
@@ -10151,36 +10323,40 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10151
10323
|
/* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./entry */ "./adapters/REST/endpoints/entry.ts");
|
|
10152
10324
|
/* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./environment */ "./adapters/REST/endpoints/environment.ts");
|
|
10153
10325
|
/* harmony import */ var _environment_alias__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./environment-alias */ "./adapters/REST/endpoints/environment-alias.ts");
|
|
10154
|
-
/* harmony import */ var
|
|
10155
|
-
/* harmony import */ var
|
|
10156
|
-
/* harmony import */ var
|
|
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
|
|
10164
|
-
/* harmony import */ var
|
|
10165
|
-
/* harmony import */ var
|
|
10166
|
-
/* harmony import */ var
|
|
10167
|
-
/* harmony import */ var
|
|
10168
|
-
/* harmony import */ var
|
|
10169
|
-
/* harmony import */ var
|
|
10170
|
-
/* harmony import */ var
|
|
10171
|
-
/* harmony import */ var
|
|
10172
|
-
/* harmony import */ var
|
|
10173
|
-
/* harmony import */ var
|
|
10174
|
-
/* harmony import */ var
|
|
10175
|
-
/* harmony import */ var
|
|
10176
|
-
/* harmony import */ var
|
|
10177
|
-
/* harmony import */ var
|
|
10178
|
-
/* harmony import */ var
|
|
10179
|
-
/* harmony import */ var
|
|
10180
|
-
/* harmony import */ var
|
|
10181
|
-
/* harmony import */ var
|
|
10182
|
-
/* harmony import */ var
|
|
10183
|
-
/* harmony import */ var
|
|
10326
|
+
/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./environment-template */ "./adapters/REST/endpoints/environment-template.ts");
|
|
10327
|
+
/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./environment-template-installation */ "./adapters/REST/endpoints/environment-template-installation.ts");
|
|
10328
|
+
/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./extension */ "./adapters/REST/endpoints/extension.ts");
|
|
10329
|
+
/* harmony import */ var _http__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./http */ "./adapters/REST/endpoints/http.ts");
|
|
10330
|
+
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./locale */ "./adapters/REST/endpoints/locale.ts");
|
|
10331
|
+
/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./organization */ "./adapters/REST/endpoints/organization.ts");
|
|
10332
|
+
/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./organization-invitation */ "./adapters/REST/endpoints/organization-invitation.ts");
|
|
10333
|
+
/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./organization-membership */ "./adapters/REST/endpoints/organization-membership.ts");
|
|
10334
|
+
/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./personal-access-token */ "./adapters/REST/endpoints/personal-access-token.ts");
|
|
10335
|
+
/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts");
|
|
10336
|
+
/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts");
|
|
10337
|
+
/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts");
|
|
10338
|
+
/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts");
|
|
10339
|
+
/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts");
|
|
10340
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts");
|
|
10341
|
+
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts");
|
|
10342
|
+
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts");
|
|
10343
|
+
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts");
|
|
10344
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts");
|
|
10345
|
+
/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts");
|
|
10346
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts");
|
|
10347
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts");
|
|
10348
|
+
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts");
|
|
10349
|
+
/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts");
|
|
10350
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts");
|
|
10351
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts");
|
|
10352
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts");
|
|
10353
|
+
/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts");
|
|
10354
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts");
|
|
10355
|
+
/* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts");
|
|
10356
|
+
/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts");
|
|
10357
|
+
/* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts");
|
|
10358
|
+
|
|
10359
|
+
|
|
10184
10360
|
|
|
10185
10361
|
|
|
10186
10362
|
|
|
@@ -10250,36 +10426,38 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10250
10426
|
Entry: _entry__WEBPACK_IMPORTED_MODULE_16__,
|
|
10251
10427
|
Environment: _environment__WEBPACK_IMPORTED_MODULE_17__,
|
|
10252
10428
|
EnvironmentAlias: _environment_alias__WEBPACK_IMPORTED_MODULE_18__,
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10429
|
+
EnvironmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_19__,
|
|
10430
|
+
EnvironmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_20__,
|
|
10431
|
+
Extension: _extension__WEBPACK_IMPORTED_MODULE_21__,
|
|
10432
|
+
Http: _http__WEBPACK_IMPORTED_MODULE_22__,
|
|
10433
|
+
Locale: _locale__WEBPACK_IMPORTED_MODULE_23__,
|
|
10434
|
+
Organization: _organization__WEBPACK_IMPORTED_MODULE_24__,
|
|
10435
|
+
OrganizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_25__,
|
|
10436
|
+
OrganizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_26__,
|
|
10437
|
+
PersonalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_27__,
|
|
10438
|
+
PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_28__,
|
|
10439
|
+
Release: _release__WEBPACK_IMPORTED_MODULE_29__,
|
|
10440
|
+
ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_30__,
|
|
10441
|
+
Role: _role__WEBPACK_IMPORTED_MODULE_31__,
|
|
10442
|
+
ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_32__,
|
|
10443
|
+
Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_33__,
|
|
10444
|
+
Space: _space__WEBPACK_IMPORTED_MODULE_34__,
|
|
10445
|
+
SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_35__,
|
|
10446
|
+
SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_36__,
|
|
10447
|
+
Tag: _tag__WEBPACK_IMPORTED_MODULE_37__,
|
|
10448
|
+
Task: _task__WEBPACK_IMPORTED_MODULE_38__,
|
|
10449
|
+
Team: _team__WEBPACK_IMPORTED_MODULE_39__,
|
|
10450
|
+
TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_40__,
|
|
10451
|
+
TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_41__,
|
|
10452
|
+
UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_42__,
|
|
10453
|
+
Upload: _upload__WEBPACK_IMPORTED_MODULE_43__,
|
|
10454
|
+
Usage: _usage__WEBPACK_IMPORTED_MODULE_44__,
|
|
10455
|
+
User: _user__WEBPACK_IMPORTED_MODULE_45__,
|
|
10456
|
+
UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_46__,
|
|
10457
|
+
Webhook: _webhook__WEBPACK_IMPORTED_MODULE_47__,
|
|
10458
|
+
WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_49__,
|
|
10459
|
+
Workflow: _workflow__WEBPACK_IMPORTED_MODULE_48__,
|
|
10460
|
+
WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_50__
|
|
10283
10461
|
});
|
|
10284
10462
|
|
|
10285
10463
|
/***/ }),
|
|
@@ -12761,7 +12939,7 @@ function createClient(params) {
|
|
|
12761
12939
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
12762
12940
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
12763
12941
|
var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
|
|
12764
|
-
"".concat(sdkMain, "/").concat("10.
|
|
12942
|
+
"".concat(sdkMain, "/").concat("10.18.1"), params.application, params.integration, params.feature);
|
|
12765
12943
|
var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
12766
12944
|
// https://github.com/microsoft/TypeScript/issues/26591
|
|
12767
12945
|
// @ts-expect-error
|
|
@@ -13071,7 +13249,111 @@ function createClientApi(makeRequest) {
|
|
|
13071
13249
|
wrapOrganizationCollection = _entities$organizatio.wrapOrganizationCollection;
|
|
13072
13250
|
var wrapUsageCollection = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].usage.wrapUsageCollection;
|
|
13073
13251
|
var wrapAppDefinition = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appDefinition.wrapAppDefinition;
|
|
13252
|
+
var _entities$environment = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environmentTemplate,
|
|
13253
|
+
wrapEnvironmentTemplate = _entities$environment.wrapEnvironmentTemplate,
|
|
13254
|
+
wrapEnvironmentTemplateCollection = _entities$environment.wrapEnvironmentTemplateCollection;
|
|
13074
13255
|
return {
|
|
13256
|
+
/**
|
|
13257
|
+
* Gets all environment templates for a given organization with the lasted version
|
|
13258
|
+
* @param organizationId - Organization ID
|
|
13259
|
+
* @return Promise for a collection of EnvironmentTemplates
|
|
13260
|
+
* ```javascript
|
|
13261
|
+
* const contentful = require('contentful-management')
|
|
13262
|
+
*
|
|
13263
|
+
* const client = contentful.createClient({
|
|
13264
|
+
* accessToken: '<content_management_api_key>'
|
|
13265
|
+
* })
|
|
13266
|
+
*
|
|
13267
|
+
* client.getEnvironmentTemplates('<organization_id>')
|
|
13268
|
+
* .then((response) => console.log(response.items))
|
|
13269
|
+
* .catch(console.error)
|
|
13270
|
+
* ```
|
|
13271
|
+
*/
|
|
13272
|
+
getEnvironmentTemplates: function getEnvironmentTemplates(organizationId) {
|
|
13273
|
+
var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
13274
|
+
return makeRequest({
|
|
13275
|
+
entityType: 'EnvironmentTemplate',
|
|
13276
|
+
action: 'getMany',
|
|
13277
|
+
params: {
|
|
13278
|
+
organizationId: organizationId,
|
|
13279
|
+
query: Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["createRequestConfig"])({
|
|
13280
|
+
query: query
|
|
13281
|
+
}).params
|
|
13282
|
+
}
|
|
13283
|
+
}).then(function (data) {
|
|
13284
|
+
return wrapEnvironmentTemplateCollection(makeRequest, data, organizationId);
|
|
13285
|
+
});
|
|
13286
|
+
},
|
|
13287
|
+
|
|
13288
|
+
/**
|
|
13289
|
+
* Gets the lasted version environment template if params.version is not specified
|
|
13290
|
+
* @param params.organizationId - Organization ID
|
|
13291
|
+
* @param params.environmentTemplateId - Environment template ID
|
|
13292
|
+
* @param [params.version] - Template version number to return a specific version of the environment template
|
|
13293
|
+
* @return Promise for a EnvironmentTemplate
|
|
13294
|
+
* ```javascript
|
|
13295
|
+
* const contentful = require('contentful-management')
|
|
13296
|
+
*
|
|
13297
|
+
* const client = contentful.createClient({
|
|
13298
|
+
* accessToken: '<content_management_api_key>'
|
|
13299
|
+
* })
|
|
13300
|
+
*
|
|
13301
|
+
* client.getEnvironmentTemplate({
|
|
13302
|
+
* organizationId: '<organization_id>',
|
|
13303
|
+
* environmentTemplateId: '<environment_template_id>',
|
|
13304
|
+
* version: version>
|
|
13305
|
+
* })
|
|
13306
|
+
* .then((space) => console.log(space))
|
|
13307
|
+
* .catch(console.error)
|
|
13308
|
+
* ```
|
|
13309
|
+
*/
|
|
13310
|
+
getEnvironmentTemplate: function getEnvironmentTemplate(_ref) {
|
|
13311
|
+
var organizationId = _ref.organizationId,
|
|
13312
|
+
environmentTemplateId = _ref.environmentTemplateId,
|
|
13313
|
+
version = _ref.version;
|
|
13314
|
+
return makeRequest({
|
|
13315
|
+
entityType: 'EnvironmentTemplate',
|
|
13316
|
+
action: 'get',
|
|
13317
|
+
params: {
|
|
13318
|
+
organizationId: organizationId,
|
|
13319
|
+
environmentTemplateId: environmentTemplateId,
|
|
13320
|
+
version: version
|
|
13321
|
+
}
|
|
13322
|
+
}).then(function (data) {
|
|
13323
|
+
return wrapEnvironmentTemplate(makeRequest, data, organizationId);
|
|
13324
|
+
});
|
|
13325
|
+
},
|
|
13326
|
+
|
|
13327
|
+
/**
|
|
13328
|
+
* Creates an environment template
|
|
13329
|
+
* @param organizationId - Organization ID
|
|
13330
|
+
* @param environmentTemplateData - Object representation of the environment template to be created
|
|
13331
|
+
* @return Promise for the newly created EnvironmentTemplate
|
|
13332
|
+
* @example ```javascript
|
|
13333
|
+
* const contentful = require('contentful-management')
|
|
13334
|
+
*
|
|
13335
|
+
* const client = contentful.createClient({
|
|
13336
|
+
* accessToken: '<content_management_api_key>'
|
|
13337
|
+
* })
|
|
13338
|
+
*
|
|
13339
|
+
* client.createEnvironmentTemplate('<organization_id>', {<environment_template_date>})
|
|
13340
|
+
* .then((environmentTemplate) => console.log(environmentTemplate))
|
|
13341
|
+
* .catch(console.error)
|
|
13342
|
+
* ```
|
|
13343
|
+
*/
|
|
13344
|
+
createEnvironmentTemplate: function createEnvironmentTemplate(organizationId, environmentTemplateData) {
|
|
13345
|
+
return makeRequest({
|
|
13346
|
+
entityType: 'EnvironmentTemplate',
|
|
13347
|
+
action: 'create',
|
|
13348
|
+
params: {
|
|
13349
|
+
organizationId: organizationId
|
|
13350
|
+
},
|
|
13351
|
+
payload: environmentTemplateData
|
|
13352
|
+
}).then(function (data) {
|
|
13353
|
+
return wrapEnvironmentTemplate(makeRequest, data, organizationId);
|
|
13354
|
+
});
|
|
13355
|
+
},
|
|
13356
|
+
|
|
13075
13357
|
/**
|
|
13076
13358
|
* Gets all spaces
|
|
13077
13359
|
* @return Promise for a collection of Spaces
|
|
@@ -13455,9 +13737,9 @@ function createClientApi(makeRequest) {
|
|
|
13455
13737
|
* .catch(console.error)
|
|
13456
13738
|
* ```
|
|
13457
13739
|
*/
|
|
13458
|
-
rawRequest: function rawRequest(
|
|
13459
|
-
var url =
|
|
13460
|
-
config = _objectWithoutProperties(
|
|
13740
|
+
rawRequest: function rawRequest(_ref2) {
|
|
13741
|
+
var url = _ref2.url,
|
|
13742
|
+
config = _objectWithoutProperties(_ref2, _excluded);
|
|
13461
13743
|
|
|
13462
13744
|
return makeRequest({
|
|
13463
13745
|
entityType: 'Http',
|
|
@@ -14098,8 +14380,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14098
14380
|
/* harmony import */ var _entities_tag__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./entities/tag */ "./entities/tag.ts");
|
|
14099
14381
|
/* harmony import */ var _entities_ui_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./entities/ui-config */ "./entities/ui-config.ts");
|
|
14100
14382
|
/* harmony import */ var _entities_user_ui_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./entities/user-ui-config */ "./entities/user-ui-config.ts");
|
|
14383
|
+
/* harmony import */ var _entities_environment_template_installation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./entities/environment-template-installation */ "./entities/environment-template-installation.ts");
|
|
14101
14384
|
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); }
|
|
14102
14385
|
|
|
14386
|
+
var _excluded = ["installationId"];
|
|
14387
|
+
|
|
14388
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14389
|
+
|
|
14390
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14391
|
+
|
|
14392
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14393
|
+
|
|
14394
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14395
|
+
|
|
14396
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
14397
|
+
|
|
14103
14398
|
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; }
|
|
14104
14399
|
|
|
14105
14400
|
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); } }
|
|
@@ -14113,6 +14408,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
14113
14408
|
|
|
14114
14409
|
|
|
14115
14410
|
|
|
14411
|
+
|
|
14116
14412
|
/**
|
|
14117
14413
|
* @private
|
|
14118
14414
|
*/
|
|
@@ -16408,6 +16704,410 @@ function createEnvironmentApi(makeRequest) {
|
|
|
16408
16704
|
}
|
|
16409
16705
|
}, _callee2);
|
|
16410
16706
|
}))();
|
|
16707
|
+
},
|
|
16708
|
+
|
|
16709
|
+
/**
|
|
16710
|
+
* Gets a collection of all environment template installations in the environment for a given template
|
|
16711
|
+
* @param environmentTemplateId - Environment template ID to return installations for
|
|
16712
|
+
* @param [options.installationId] - Installation ID to filter for a specific installation
|
|
16713
|
+
* @return Promise for a collection of EnvironmentTemplateInstallations
|
|
16714
|
+
* ```javascript
|
|
16715
|
+
* const contentful = require('contentful-management')
|
|
16716
|
+
*
|
|
16717
|
+
* const client = contentful.createClient({
|
|
16718
|
+
* accessToken: '<content_management_api_key>'
|
|
16719
|
+
* })
|
|
16720
|
+
*
|
|
16721
|
+
* client.getSpace('<space_id>')
|
|
16722
|
+
* .then((space) => space.getEnvironment('<environment_id>'))
|
|
16723
|
+
* .then((environment) => environment.getEnvironmentTemplateInstallations('<environment_template_id>'))
|
|
16724
|
+
* .then((installations) => console.log(installations.items))
|
|
16725
|
+
* .catch(console.error)
|
|
16726
|
+
* ```
|
|
16727
|
+
*/
|
|
16728
|
+
getEnvironmentTemplateInstallations: function getEnvironmentTemplateInstallations(environmentTemplateId) {
|
|
16729
|
+
var _arguments = arguments,
|
|
16730
|
+
_this3 = this;
|
|
16731
|
+
|
|
16732
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
16733
|
+
var _ref10, installationId, query, raw;
|
|
16734
|
+
|
|
16735
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
16736
|
+
while (1) {
|
|
16737
|
+
switch (_context3.prev = _context3.next) {
|
|
16738
|
+
case 0:
|
|
16739
|
+
_ref10 = _arguments.length > 1 && _arguments[1] !== undefined ? _arguments[1] : {};
|
|
16740
|
+
installationId = _ref10.installationId, query = _objectWithoutProperties(_ref10, _excluded);
|
|
16741
|
+
raw = _this3.toPlainObject();
|
|
16742
|
+
return _context3.abrupt("return", makeRequest({
|
|
16743
|
+
entityType: 'EnvironmentTemplateInstallation',
|
|
16744
|
+
action: 'getForEnvironment',
|
|
16745
|
+
params: _objectSpread(_objectSpread({
|
|
16746
|
+
environmentTemplateId: environmentTemplateId
|
|
16747
|
+
}, installationId && {
|
|
16748
|
+
installationId: installationId
|
|
16749
|
+
}), {}, {
|
|
16750
|
+
query: _objectSpread({}, Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["createRequestConfig"])({
|
|
16751
|
+
query: query
|
|
16752
|
+
}).params),
|
|
16753
|
+
spaceId: raw.sys.space.sys.id,
|
|
16754
|
+
environmentId: raw.sys.id
|
|
16755
|
+
})
|
|
16756
|
+
}).then(function (data) {
|
|
16757
|
+
return Object(_entities_environment_template_installation__WEBPACK_IMPORTED_MODULE_7__["wrapEnvironmentTemplateInstallationCollection"])(makeRequest, data);
|
|
16758
|
+
}));
|
|
16759
|
+
|
|
16760
|
+
case 4:
|
|
16761
|
+
case "end":
|
|
16762
|
+
return _context3.stop();
|
|
16763
|
+
}
|
|
16764
|
+
}
|
|
16765
|
+
}, _callee3);
|
|
16766
|
+
}))();
|
|
16767
|
+
}
|
|
16768
|
+
};
|
|
16769
|
+
}
|
|
16770
|
+
|
|
16771
|
+
/***/ }),
|
|
16772
|
+
|
|
16773
|
+
/***/ "./create-environment-template-api.ts":
|
|
16774
|
+
/*!********************************************!*\
|
|
16775
|
+
!*** ./create-environment-template-api.ts ***!
|
|
16776
|
+
\********************************************/
|
|
16777
|
+
/*! exports provided: createEnvironmentTemplateApi */
|
|
16778
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16779
|
+
|
|
16780
|
+
"use strict";
|
|
16781
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16782
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEnvironmentTemplateApi", function() { return createEnvironmentTemplateApi; });
|
|
16783
|
+
/* 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");
|
|
16784
|
+
/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities */ "./entities/index.ts");
|
|
16785
|
+
var _excluded = ["spaceId", "environmentId"];
|
|
16786
|
+
|
|
16787
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16788
|
+
|
|
16789
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16790
|
+
|
|
16791
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16792
|
+
|
|
16793
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
16794
|
+
|
|
16795
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
16796
|
+
|
|
16797
|
+
|
|
16798
|
+
|
|
16799
|
+
function createEnvironmentTemplateApi(makeRequest, organizationId) {
|
|
16800
|
+
var _entities$environment = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environmentTemplate,
|
|
16801
|
+
wrapEnvironmentTemplate = _entities$environment.wrapEnvironmentTemplate,
|
|
16802
|
+
wrapEnvironmentTemplateCollection = _entities$environment.wrapEnvironmentTemplateCollection;
|
|
16803
|
+
var wrapEnvironmentTemplateInstallationCollection = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environmentTemplateInstallation.wrapEnvironmentTemplateInstallationCollection;
|
|
16804
|
+
return {
|
|
16805
|
+
/**
|
|
16806
|
+
* Updates a environment template
|
|
16807
|
+
* @return Promise for new version of the template
|
|
16808
|
+
* ```javascript
|
|
16809
|
+
* const contentful = require('contentful-management')
|
|
16810
|
+
*
|
|
16811
|
+
* const client = contentful.createClient({
|
|
16812
|
+
* accessToken: '<content_management_api_key>'
|
|
16813
|
+
* })
|
|
16814
|
+
*
|
|
16815
|
+
* client.getEnvironmentTemplate('<organization_id>', '<environment_template_id>')
|
|
16816
|
+
* .then((environmentTemplate) => {
|
|
16817
|
+
* environmentTemplate.name = 'New name'
|
|
16818
|
+
* return environmentTemplate.update()
|
|
16819
|
+
* })
|
|
16820
|
+
* .then((environmentTemplate) =>
|
|
16821
|
+
* console.log(`Environment template ${environmentTemplate.sys.id} renamed.`)
|
|
16822
|
+
* ).catch(console.error)
|
|
16823
|
+
* ```
|
|
16824
|
+
*/
|
|
16825
|
+
update: function updateEnvironmentTemplate() {
|
|
16826
|
+
var raw = this.toPlainObject();
|
|
16827
|
+
return makeRequest({
|
|
16828
|
+
entityType: 'EnvironmentTemplate',
|
|
16829
|
+
action: 'update',
|
|
16830
|
+
params: {
|
|
16831
|
+
organizationId: organizationId,
|
|
16832
|
+
environmentTemplateId: raw.sys.id
|
|
16833
|
+
},
|
|
16834
|
+
payload: raw
|
|
16835
|
+
}).then(function (data) {
|
|
16836
|
+
return wrapEnvironmentTemplate(makeRequest, data, organizationId);
|
|
16837
|
+
});
|
|
16838
|
+
},
|
|
16839
|
+
|
|
16840
|
+
/**
|
|
16841
|
+
* Updates environment template version data
|
|
16842
|
+
* @param version.versionName - Name of the environment template version
|
|
16843
|
+
* @param version.versionDescription - Description of the environment template version
|
|
16844
|
+
* @return Promise for an updated EnvironmentTemplate
|
|
16845
|
+
* ```javascript
|
|
16846
|
+
* const contentful = require('contentful-management')
|
|
16847
|
+
*
|
|
16848
|
+
* const client = contentful.createClient({
|
|
16849
|
+
* accessToken: '<content_management_api_key>'
|
|
16850
|
+
* })
|
|
16851
|
+
*
|
|
16852
|
+
* client.getEnvironmentTemplate('<organization_id>', '<environment_template_id>')
|
|
16853
|
+
* .then((environmentTemplate) => {
|
|
16854
|
+
* return environmentTemplate.updateVersion({
|
|
16855
|
+
* versionName: 'New Name',
|
|
16856
|
+
* versionDescription: 'New Description',
|
|
16857
|
+
* })
|
|
16858
|
+
* })
|
|
16859
|
+
* .then((environmentTemplate) =>
|
|
16860
|
+
* console.log(`Environment template version ${environmentTemplate.sys.id} renamed.`)
|
|
16861
|
+
* ).catch(console.error)
|
|
16862
|
+
* ```
|
|
16863
|
+
*/
|
|
16864
|
+
updateVersion: function updateEnvironmentTemplateVersion(_ref) {
|
|
16865
|
+
var versionName = _ref.versionName,
|
|
16866
|
+
versionDescription = _ref.versionDescription;
|
|
16867
|
+
var raw = this.toPlainObject();
|
|
16868
|
+
return makeRequest({
|
|
16869
|
+
entityType: 'EnvironmentTemplate',
|
|
16870
|
+
action: 'versionUpdate',
|
|
16871
|
+
params: {
|
|
16872
|
+
organizationId: organizationId,
|
|
16873
|
+
environmentTemplateId: raw.sys.id,
|
|
16874
|
+
version: raw.sys.version
|
|
16875
|
+
},
|
|
16876
|
+
payload: {
|
|
16877
|
+
versionName: versionName,
|
|
16878
|
+
versionDescription: versionDescription
|
|
16879
|
+
}
|
|
16880
|
+
}).then(function (data) {
|
|
16881
|
+
return wrapEnvironmentTemplate(makeRequest, data, organizationId);
|
|
16882
|
+
});
|
|
16883
|
+
},
|
|
16884
|
+
|
|
16885
|
+
/**
|
|
16886
|
+
* Deletes the environment template
|
|
16887
|
+
* @return Promise for the deletion. It contains no data, but the Promise error case should be handled.
|
|
16888
|
+
* @example ```javascript
|
|
16889
|
+
* const contentful = require('contentful-management')
|
|
16890
|
+
*
|
|
16891
|
+
* const client = contentful.createClient({
|
|
16892
|
+
* accessToken: '<content_management_api_key>'
|
|
16893
|
+
* })
|
|
16894
|
+
*
|
|
16895
|
+
* client.getEnvironmentTemplate('<organization_id>', '<environment_template_id>')
|
|
16896
|
+
* .then((environmentTemplate) => environmentTemplate.delete())
|
|
16897
|
+
* .then(() => console.log('Environment template deleted.'))
|
|
16898
|
+
* .catch(console.error)
|
|
16899
|
+
* ```
|
|
16900
|
+
*/
|
|
16901
|
+
delete: function deleteEnvironmentTemplate() {
|
|
16902
|
+
var raw = this.toPlainObject();
|
|
16903
|
+
return makeRequest({
|
|
16904
|
+
entityType: 'EnvironmentTemplate',
|
|
16905
|
+
action: 'delete',
|
|
16906
|
+
params: {
|
|
16907
|
+
organizationId: organizationId,
|
|
16908
|
+
environmentTemplateId: raw.sys.id
|
|
16909
|
+
}
|
|
16910
|
+
});
|
|
16911
|
+
},
|
|
16912
|
+
|
|
16913
|
+
/**
|
|
16914
|
+
* Gets a collection of all versions for the environment template
|
|
16915
|
+
* @return Promise for a EnvironmentTemplate
|
|
16916
|
+
* ```javascript
|
|
16917
|
+
* const contentful = require('contentful-management')
|
|
16918
|
+
*
|
|
16919
|
+
* const client = contentful.createClient({
|
|
16920
|
+
* accessToken: '<content_management_api_key>'
|
|
16921
|
+
* })
|
|
16922
|
+
* client.getEnvironmentTemplate('<organization_id>', '<environment_template_id>')
|
|
16923
|
+
* .then((environmentTemplate) => environmentTemplate.getVersions())
|
|
16924
|
+
* .then((environmentTemplateVersions) => console.log(environmentTemplateVersions.items))
|
|
16925
|
+
* .catch(console.error)
|
|
16926
|
+
* ```
|
|
16927
|
+
*/
|
|
16928
|
+
getVersions: function getEnvironmentTemplateVersions() {
|
|
16929
|
+
var raw = this.toPlainObject();
|
|
16930
|
+
return makeRequest({
|
|
16931
|
+
entityType: 'EnvironmentTemplate',
|
|
16932
|
+
action: 'versions',
|
|
16933
|
+
params: {
|
|
16934
|
+
organizationId: organizationId,
|
|
16935
|
+
environmentTemplateId: raw.sys.id
|
|
16936
|
+
}
|
|
16937
|
+
}).then(function (data) {
|
|
16938
|
+
return wrapEnvironmentTemplateCollection(makeRequest, data, organizationId);
|
|
16939
|
+
});
|
|
16940
|
+
},
|
|
16941
|
+
|
|
16942
|
+
/**
|
|
16943
|
+
* Gets a collection of all installations for the environment template
|
|
16944
|
+
* @param [installationParams.spaceId] - Space ID to filter installations by space and environment
|
|
16945
|
+
* @param [installationParams.environmentId] - Environment ID to filter installations by space and environment
|
|
16946
|
+
* @return Promise for a collection of EnvironmentTemplateInstallations
|
|
16947
|
+
* ```javascript
|
|
16948
|
+
* const contentful = require('contentful-management')
|
|
16949
|
+
*
|
|
16950
|
+
* const client = contentful.createClient({
|
|
16951
|
+
* accessToken: '<content_management_api_key>'
|
|
16952
|
+
* })
|
|
16953
|
+
*
|
|
16954
|
+
* client.getEnvironmentTemplate('<organization_id>', '<environment_template_id>')
|
|
16955
|
+
* .then((environmentTemplate) => environmentTemplate.getInstallations())
|
|
16956
|
+
* .then((environmentTemplateInstallations) =>
|
|
16957
|
+
* console.log(environmentTemplateInstallations.items)
|
|
16958
|
+
* )
|
|
16959
|
+
* .catch(console.error)
|
|
16960
|
+
* ```
|
|
16961
|
+
*/
|
|
16962
|
+
getInstallations: function getEnvironmentTemplateInstallations() {
|
|
16963
|
+
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
16964
|
+
|
|
16965
|
+
var spaceId = _ref2.spaceId,
|
|
16966
|
+
environmentId = _ref2.environmentId,
|
|
16967
|
+
query = _objectWithoutProperties(_ref2, _excluded);
|
|
16968
|
+
|
|
16969
|
+
var raw = this.toPlainObject();
|
|
16970
|
+
return makeRequest({
|
|
16971
|
+
entityType: 'EnvironmentTemplateInstallation',
|
|
16972
|
+
action: 'getMany',
|
|
16973
|
+
params: {
|
|
16974
|
+
organizationId: organizationId,
|
|
16975
|
+
environmentTemplateId: raw.sys.id,
|
|
16976
|
+
query: _objectSpread({}, Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["createRequestConfig"])({
|
|
16977
|
+
query: query
|
|
16978
|
+
}).params),
|
|
16979
|
+
spaceId: spaceId,
|
|
16980
|
+
environmentId: environmentId
|
|
16981
|
+
}
|
|
16982
|
+
}).then(function (data) {
|
|
16983
|
+
return wrapEnvironmentTemplateInstallationCollection(makeRequest, data);
|
|
16984
|
+
});
|
|
16985
|
+
},
|
|
16986
|
+
|
|
16987
|
+
/**
|
|
16988
|
+
* Validates an environment template against a given space and environment
|
|
16989
|
+
* @param params.spaceId - Space ID where the template should be installed into
|
|
16990
|
+
* @param params.environmentId - Environment ID where the template should be installed into
|
|
16991
|
+
* @param [params.version] - Version of the template
|
|
16992
|
+
* @param [params.installation.takeover] - Already existing Content types to takeover in the target environment
|
|
16993
|
+
* @param [params.changeSet] - Change set which should be applied
|
|
16994
|
+
* @return Promise for a EnvironmentTemplateValidation
|
|
16995
|
+
* ```javascript
|
|
16996
|
+
* const contentful = require('contentful-management')
|
|
16997
|
+
*
|
|
16998
|
+
* const client = contentful.createClient({
|
|
16999
|
+
* accessToken: '<content_management_api_key>'
|
|
17000
|
+
* })
|
|
17001
|
+
*
|
|
17002
|
+
* client.getEnvironmentTemplate('<organization_id>', '<environment_template_id>')
|
|
17003
|
+
* .then((environmentTemplate) => environmentTemplate.validate({
|
|
17004
|
+
* spaceId: '<space_id>',
|
|
17005
|
+
* environmentId: '<environment_id>',
|
|
17006
|
+
* version: <version>,
|
|
17007
|
+
* }))
|
|
17008
|
+
* .then((validationResult) => console.log(validationResult))
|
|
17009
|
+
* .catch(console.error)
|
|
17010
|
+
* ```
|
|
17011
|
+
*/
|
|
17012
|
+
validate: function validateEnvironmentTemplate(_ref3) {
|
|
17013
|
+
var spaceId = _ref3.spaceId,
|
|
17014
|
+
environmentId = _ref3.environmentId,
|
|
17015
|
+
version = _ref3.version,
|
|
17016
|
+
takeover = _ref3.takeover,
|
|
17017
|
+
changeSet = _ref3.changeSet;
|
|
17018
|
+
var raw = this.toPlainObject();
|
|
17019
|
+
return makeRequest({
|
|
17020
|
+
entityType: 'EnvironmentTemplate',
|
|
17021
|
+
action: 'validate',
|
|
17022
|
+
params: {
|
|
17023
|
+
spaceId: spaceId,
|
|
17024
|
+
version: version,
|
|
17025
|
+
environmentId: environmentId,
|
|
17026
|
+
environmentTemplateId: raw.sys.id
|
|
17027
|
+
},
|
|
17028
|
+
payload: _objectSpread(_objectSpread({}, takeover && {
|
|
17029
|
+
takeover: takeover
|
|
17030
|
+
}), changeSet && {
|
|
17031
|
+
changeSet: changeSet
|
|
17032
|
+
})
|
|
17033
|
+
});
|
|
17034
|
+
},
|
|
17035
|
+
|
|
17036
|
+
/**
|
|
17037
|
+
* Installs a template against a given space and environment
|
|
17038
|
+
* @param params.spaceId - Space ID where the template should be installed into
|
|
17039
|
+
* @param params.environmentId - Environment ID where the template should be installed into
|
|
17040
|
+
* @param params.installation.version- Template version which should be installed
|
|
17041
|
+
* @param [params.installation.takeover] - Already existing Content types tp takeover in the target environment
|
|
17042
|
+
* @param [params.changeSet] - Change set which should be applied
|
|
17043
|
+
* @return Promise for a EnvironmentTemplateInstallation
|
|
17044
|
+
* ```javascript
|
|
17045
|
+
* const contentful = require('contentful-management')
|
|
17046
|
+
*
|
|
17047
|
+
* const client = contentful.createClient({
|
|
17048
|
+
* accessToken: '<content_management_api_key>'
|
|
17049
|
+
* })
|
|
17050
|
+
*
|
|
17051
|
+
* client.getEnvironmentTemplate('<organization_id>', '<environment_template_id>')
|
|
17052
|
+
* .then((environmentTemplate) => environmentTemplate.validate({
|
|
17053
|
+
* spaceId: '<space_id>',
|
|
17054
|
+
* environmentId: '<environment_id>',
|
|
17055
|
+
* installation: {
|
|
17056
|
+
* version: <version>,
|
|
17057
|
+
* }
|
|
17058
|
+
* }))
|
|
17059
|
+
* .then((installation) => console.log(installation))
|
|
17060
|
+
* .catch(console.error)
|
|
17061
|
+
* ```
|
|
17062
|
+
*/
|
|
17063
|
+
install: function installEnvironmentTemplate(_ref4) {
|
|
17064
|
+
var spaceId = _ref4.spaceId,
|
|
17065
|
+
environmentId = _ref4.environmentId,
|
|
17066
|
+
installation = _ref4.installation;
|
|
17067
|
+
var raw = this.toPlainObject();
|
|
17068
|
+
return makeRequest({
|
|
17069
|
+
entityType: 'EnvironmentTemplate',
|
|
17070
|
+
action: 'install',
|
|
17071
|
+
params: {
|
|
17072
|
+
spaceId: spaceId,
|
|
17073
|
+
environmentId: environmentId,
|
|
17074
|
+
environmentTemplateId: raw.sys.id
|
|
17075
|
+
},
|
|
17076
|
+
payload: installation
|
|
17077
|
+
});
|
|
17078
|
+
},
|
|
17079
|
+
|
|
17080
|
+
/**
|
|
17081
|
+
* Disconnects the template from a given environment
|
|
17082
|
+
* @param params.spaceId - Space ID where the template should be installed into
|
|
17083
|
+
* @param params.environmentId - Environment ID where the template should be installed into
|
|
17084
|
+
* @return Promise for the disconnection with no data
|
|
17085
|
+
* ```javascript
|
|
17086
|
+
* const contentful = require('contentful-management')
|
|
17087
|
+
*
|
|
17088
|
+
* const client = contentful.createClient({
|
|
17089
|
+
* accessToken: '<content_management_api_key>'
|
|
17090
|
+
* })
|
|
17091
|
+
*
|
|
17092
|
+
* client.getEnvironmentTemplate('<organization_id>', '<environment_template_id>')
|
|
17093
|
+
* .then(environmentTemplate) => environmentTemplate.disconnected())
|
|
17094
|
+
* .then(() => console.log('Template disconnected'))
|
|
17095
|
+
* .catch(console.error)
|
|
17096
|
+
* ```
|
|
17097
|
+
*/
|
|
17098
|
+
disconnect: function disconnectEnvironmentTemplate(_ref5) {
|
|
17099
|
+
var spaceId = _ref5.spaceId,
|
|
17100
|
+
environmentId = _ref5.environmentId;
|
|
17101
|
+
var raw = this.toPlainObject();
|
|
17102
|
+
return makeRequest({
|
|
17103
|
+
entityType: 'EnvironmentTemplate',
|
|
17104
|
+
action: 'disconnect',
|
|
17105
|
+
params: {
|
|
17106
|
+
spaceId: spaceId,
|
|
17107
|
+
environmentId: environmentId,
|
|
17108
|
+
environmentTemplateId: raw.sys.id
|
|
17109
|
+
}
|
|
17110
|
+
});
|
|
16411
17111
|
}
|
|
16412
17112
|
};
|
|
16413
17113
|
}
|
|
@@ -20612,6 +21312,75 @@ var wrapEnvironmentAliasCollection = Object(_common_utils__WEBPACK_IMPORTED_MODU
|
|
|
20612
21312
|
|
|
20613
21313
|
/***/ }),
|
|
20614
21314
|
|
|
21315
|
+
/***/ "./entities/environment-template-installation.ts":
|
|
21316
|
+
/*!*******************************************************!*\
|
|
21317
|
+
!*** ./entities/environment-template-installation.ts ***!
|
|
21318
|
+
\*******************************************************/
|
|
21319
|
+
/*! exports provided: wrapEnvironmentTemplateInstallation, wrapEnvironmentTemplateInstallationCollection */
|
|
21320
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21321
|
+
|
|
21322
|
+
"use strict";
|
|
21323
|
+
__webpack_require__.r(__webpack_exports__);
|
|
21324
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapEnvironmentTemplateInstallation", function() { return wrapEnvironmentTemplateInstallation; });
|
|
21325
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapEnvironmentTemplateInstallationCollection", function() { return wrapEnvironmentTemplateInstallationCollection; });
|
|
21326
|
+
/* 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");
|
|
21327
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.js");
|
|
21328
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_1__);
|
|
21329
|
+
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
|
|
21330
|
+
|
|
21331
|
+
|
|
21332
|
+
|
|
21333
|
+
var EnvironmentTemplateInstallationStatuses;
|
|
21334
|
+
|
|
21335
|
+
(function (EnvironmentTemplateInstallationStatuses) {
|
|
21336
|
+
EnvironmentTemplateInstallationStatuses["created"] = "created";
|
|
21337
|
+
EnvironmentTemplateInstallationStatuses["inProgress"] = "inProgress";
|
|
21338
|
+
EnvironmentTemplateInstallationStatuses["failed"] = "failed";
|
|
21339
|
+
EnvironmentTemplateInstallationStatuses["succeeded"] = "succeeded";
|
|
21340
|
+
EnvironmentTemplateInstallationStatuses["disconnected"] = "disconnected";
|
|
21341
|
+
EnvironmentTemplateInstallationStatuses["inRetry"] = "inRetry";
|
|
21342
|
+
})(EnvironmentTemplateInstallationStatuses || (EnvironmentTemplateInstallationStatuses = {}));
|
|
21343
|
+
|
|
21344
|
+
function wrapEnvironmentTemplateInstallation(makeRequest, data) {
|
|
21345
|
+
var environmentTemplate = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["toPlainObject"])(fast_copy__WEBPACK_IMPORTED_MODULE_1___default()(data));
|
|
21346
|
+
return Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["freezeSys"])(environmentTemplate);
|
|
21347
|
+
}
|
|
21348
|
+
var wrapEnvironmentTemplateInstallationCollection = Object(_common_utils__WEBPACK_IMPORTED_MODULE_2__["wrapCursorPaginatedCollection"])(wrapEnvironmentTemplateInstallation);
|
|
21349
|
+
|
|
21350
|
+
/***/ }),
|
|
21351
|
+
|
|
21352
|
+
/***/ "./entities/environment-template.ts":
|
|
21353
|
+
/*!******************************************!*\
|
|
21354
|
+
!*** ./entities/environment-template.ts ***!
|
|
21355
|
+
\******************************************/
|
|
21356
|
+
/*! exports provided: wrapEnvironmentTemplate, wrapEnvironmentTemplateCollection */
|
|
21357
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21358
|
+
|
|
21359
|
+
"use strict";
|
|
21360
|
+
__webpack_require__.r(__webpack_exports__);
|
|
21361
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapEnvironmentTemplate", function() { return wrapEnvironmentTemplate; });
|
|
21362
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapEnvironmentTemplateCollection", function() { return wrapEnvironmentTemplateCollection; });
|
|
21363
|
+
/* 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");
|
|
21364
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/fast-copy.js");
|
|
21365
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_1__);
|
|
21366
|
+
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
|
|
21367
|
+
/* harmony import */ var _create_environment_template_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../create-environment-template-api */ "./create-environment-template-api.ts");
|
|
21368
|
+
/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
|
|
21369
|
+
|
|
21370
|
+
|
|
21371
|
+
|
|
21372
|
+
|
|
21373
|
+
|
|
21374
|
+
function wrapEnvironmentTemplate(makeRequest, data, organizationId) {
|
|
21375
|
+
var environmentTemplate = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["toPlainObject"])(fast_copy__WEBPACK_IMPORTED_MODULE_1___default()(data));
|
|
21376
|
+
var environmentTemplateApi = Object(_create_environment_template_api__WEBPACK_IMPORTED_MODULE_3__["createEnvironmentTemplateApi"])(makeRequest, organizationId);
|
|
21377
|
+
var enhancedEnvironmentTemplate = Object(_enhance_with_methods__WEBPACK_IMPORTED_MODULE_4__["default"])(environmentTemplate, environmentTemplateApi);
|
|
21378
|
+
return Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["freezeSys"])(enhancedEnvironmentTemplate);
|
|
21379
|
+
}
|
|
21380
|
+
var wrapEnvironmentTemplateCollection = Object(_common_utils__WEBPACK_IMPORTED_MODULE_2__["wrapCursorPaginatedCollection"])(wrapEnvironmentTemplate);
|
|
21381
|
+
|
|
21382
|
+
/***/ }),
|
|
21383
|
+
|
|
20615
21384
|
/***/ "./entities/environment.ts":
|
|
20616
21385
|
/*!*********************************!*\
|
|
20617
21386
|
!*** ./entities/environment.ts ***!
|
|
@@ -20766,33 +21535,37 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20766
21535
|
/* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./entry */ "./entities/entry.ts");
|
|
20767
21536
|
/* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./environment */ "./entities/environment.ts");
|
|
20768
21537
|
/* harmony import */ var _environment_alias__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./environment-alias */ "./entities/environment-alias.ts");
|
|
20769
|
-
/* harmony import */ var
|
|
20770
|
-
/* harmony import */ var
|
|
20771
|
-
/* harmony import */ var
|
|
20772
|
-
/* harmony import */ var
|
|
20773
|
-
/* harmony import */ var
|
|
20774
|
-
/* harmony import */ var
|
|
20775
|
-
/* harmony import */ var
|
|
20776
|
-
/* harmony import */ var
|
|
20777
|
-
/* harmony import */ var
|
|
20778
|
-
/* harmony import */ var
|
|
20779
|
-
/* harmony import */ var
|
|
20780
|
-
/* harmony import */ var
|
|
20781
|
-
/* harmony import */ var
|
|
20782
|
-
/* harmony import */ var
|
|
20783
|
-
/* harmony import */ var
|
|
20784
|
-
/* harmony import */ var
|
|
20785
|
-
/* harmony import */ var
|
|
20786
|
-
/* harmony import */ var
|
|
20787
|
-
/* harmony import */ var
|
|
20788
|
-
/* harmony import */ var
|
|
20789
|
-
/* harmony import */ var
|
|
20790
|
-
/* harmony import */ var
|
|
20791
|
-
/* harmony import */ var
|
|
20792
|
-
/* harmony import */ var
|
|
20793
|
-
/* harmony import */ var
|
|
20794
|
-
/* harmony import */ var
|
|
20795
|
-
/* harmony import */ var
|
|
21538
|
+
/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./environment-template */ "./entities/environment-template.ts");
|
|
21539
|
+
/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./environment-template-installation */ "./entities/environment-template-installation.ts");
|
|
21540
|
+
/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./extension */ "./entities/extension.ts");
|
|
21541
|
+
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./locale */ "./entities/locale.ts");
|
|
21542
|
+
/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts");
|
|
21543
|
+
/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts");
|
|
21544
|
+
/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts");
|
|
21545
|
+
/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts");
|
|
21546
|
+
/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts");
|
|
21547
|
+
/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./release */ "./entities/release.ts");
|
|
21548
|
+
/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts");
|
|
21549
|
+
/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./role */ "./entities/role.ts");
|
|
21550
|
+
/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts");
|
|
21551
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts");
|
|
21552
|
+
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./space */ "./entities/space.ts");
|
|
21553
|
+
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts");
|
|
21554
|
+
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts");
|
|
21555
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts");
|
|
21556
|
+
/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./task */ "./entities/task.ts");
|
|
21557
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./team */ "./entities/team.ts");
|
|
21558
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts");
|
|
21559
|
+
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts");
|
|
21560
|
+
/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts");
|
|
21561
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts");
|
|
21562
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts");
|
|
21563
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./user */ "./entities/user.ts");
|
|
21564
|
+
/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts");
|
|
21565
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts");
|
|
21566
|
+
/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts");
|
|
21567
|
+
|
|
21568
|
+
|
|
20796
21569
|
|
|
20797
21570
|
|
|
20798
21571
|
|
|
@@ -20859,33 +21632,35 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20859
21632
|
entry: _entry__WEBPACK_IMPORTED_MODULE_16__,
|
|
20860
21633
|
environment: _environment__WEBPACK_IMPORTED_MODULE_17__,
|
|
20861
21634
|
environmentAlias: _environment_alias__WEBPACK_IMPORTED_MODULE_18__,
|
|
20862
|
-
|
|
20863
|
-
|
|
20864
|
-
|
|
20865
|
-
|
|
20866
|
-
|
|
20867
|
-
|
|
20868
|
-
|
|
20869
|
-
|
|
20870
|
-
|
|
20871
|
-
|
|
20872
|
-
|
|
20873
|
-
|
|
20874
|
-
|
|
20875
|
-
|
|
20876
|
-
|
|
20877
|
-
|
|
20878
|
-
|
|
20879
|
-
|
|
20880
|
-
|
|
20881
|
-
|
|
20882
|
-
|
|
20883
|
-
|
|
20884
|
-
|
|
20885
|
-
|
|
20886
|
-
|
|
20887
|
-
|
|
20888
|
-
|
|
21635
|
+
environmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_19__,
|
|
21636
|
+
environmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_20__,
|
|
21637
|
+
extension: _extension__WEBPACK_IMPORTED_MODULE_21__,
|
|
21638
|
+
locale: _locale__WEBPACK_IMPORTED_MODULE_22__,
|
|
21639
|
+
organization: _organization__WEBPACK_IMPORTED_MODULE_23__,
|
|
21640
|
+
organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_24__,
|
|
21641
|
+
organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_25__,
|
|
21642
|
+
personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_26__,
|
|
21643
|
+
previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_27__,
|
|
21644
|
+
release: _release__WEBPACK_IMPORTED_MODULE_28__,
|
|
21645
|
+
releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_29__,
|
|
21646
|
+
role: _role__WEBPACK_IMPORTED_MODULE_30__,
|
|
21647
|
+
scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_31__,
|
|
21648
|
+
snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_32__,
|
|
21649
|
+
space: _space__WEBPACK_IMPORTED_MODULE_33__,
|
|
21650
|
+
spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_34__,
|
|
21651
|
+
spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_35__,
|
|
21652
|
+
tag: _tag__WEBPACK_IMPORTED_MODULE_36__,
|
|
21653
|
+
task: _task__WEBPACK_IMPORTED_MODULE_37__,
|
|
21654
|
+
team: _team__WEBPACK_IMPORTED_MODULE_38__,
|
|
21655
|
+
teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_39__,
|
|
21656
|
+
teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_40__,
|
|
21657
|
+
uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_41__,
|
|
21658
|
+
upload: _upload__WEBPACK_IMPORTED_MODULE_42__,
|
|
21659
|
+
usage: _usage__WEBPACK_IMPORTED_MODULE_43__,
|
|
21660
|
+
user: _user__WEBPACK_IMPORTED_MODULE_44__,
|
|
21661
|
+
userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_45__,
|
|
21662
|
+
webhook: _webhook__WEBPACK_IMPORTED_MODULE_46__,
|
|
21663
|
+
workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_47__
|
|
20889
21664
|
});
|
|
20890
21665
|
|
|
20891
21666
|
/***/ }),
|