contentful-management 8.1.3 → 8.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contentful-management.browser.js +59 -27
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.legacy.js +59 -27
- package/dist/contentful-management.legacy.js.map +1 -1
- package/dist/contentful-management.legacy.min.js +1 -1
- package/dist/contentful-management.node.js +58 -25
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/http.js +8 -3
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/entities/workflow-definition.js +9 -0
- package/dist/typings/adapters/REST/endpoints/http.d.ts +1 -0
- package/dist/typings/entities/workflow-definition.d.ts +29 -4
- package/package.json +1 -1
|
@@ -125,7 +125,7 @@ var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "../node_mo
|
|
|
125
125
|
var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "../node_modules/axios/lib/helpers/parseHeaders.js");
|
|
126
126
|
var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "../node_modules/axios/lib/helpers/isURLSameOrigin.js");
|
|
127
127
|
var createError = __webpack_require__(/*! ../core/createError */ "../node_modules/axios/lib/core/createError.js");
|
|
128
|
-
var
|
|
128
|
+
var transitionalDefaults = __webpack_require__(/*! ../defaults/transitional */ "../node_modules/axios/lib/defaults/transitional.js");
|
|
129
129
|
var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "../node_modules/axios/lib/cancel/Cancel.js");
|
|
130
130
|
|
|
131
131
|
module.exports = function xhrAdapter(config) {
|
|
@@ -240,7 +240,7 @@ module.exports = function xhrAdapter(config) {
|
|
|
240
240
|
// Handle timeout
|
|
241
241
|
request.ontimeout = function handleTimeout() {
|
|
242
242
|
var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
243
|
-
var transitional = config.transitional ||
|
|
243
|
+
var transitional = config.transitional || transitionalDefaults;
|
|
244
244
|
if (config.timeoutErrorMessage) {
|
|
245
245
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
246
246
|
}
|
|
@@ -345,7 +345,7 @@ var utils = __webpack_require__(/*! ./utils */ "../node_modules/axios/lib/utils.
|
|
|
345
345
|
var bind = __webpack_require__(/*! ./helpers/bind */ "../node_modules/axios/lib/helpers/bind.js");
|
|
346
346
|
var Axios = __webpack_require__(/*! ./core/Axios */ "../node_modules/axios/lib/core/Axios.js");
|
|
347
347
|
var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "../node_modules/axios/lib/core/mergeConfig.js");
|
|
348
|
-
var defaults = __webpack_require__(/*! ./defaults */ "../node_modules/axios/lib/defaults.js");
|
|
348
|
+
var defaults = __webpack_require__(/*! ./defaults */ "../node_modules/axios/lib/defaults/index.js");
|
|
349
349
|
|
|
350
350
|
/**
|
|
351
351
|
* Create an instance of Axios
|
|
@@ -880,7 +880,7 @@ module.exports = function createError(message, config, code, request, response)
|
|
|
880
880
|
var utils = __webpack_require__(/*! ./../utils */ "../node_modules/axios/lib/utils.js");
|
|
881
881
|
var transformData = __webpack_require__(/*! ./transformData */ "../node_modules/axios/lib/core/transformData.js");
|
|
882
882
|
var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "../node_modules/axios/lib/cancel/isCancel.js");
|
|
883
|
-
var defaults = __webpack_require__(/*! ../defaults */ "../node_modules/axios/lib/defaults.js");
|
|
883
|
+
var defaults = __webpack_require__(/*! ../defaults */ "../node_modules/axios/lib/defaults/index.js");
|
|
884
884
|
var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "../node_modules/axios/lib/cancel/Cancel.js");
|
|
885
885
|
|
|
886
886
|
/**
|
|
@@ -1180,7 +1180,7 @@ module.exports = function settle(resolve, reject, response) {
|
|
|
1180
1180
|
|
|
1181
1181
|
|
|
1182
1182
|
var utils = __webpack_require__(/*! ./../utils */ "../node_modules/axios/lib/utils.js");
|
|
1183
|
-
var defaults = __webpack_require__(/*!
|
|
1183
|
+
var defaults = __webpack_require__(/*! ../defaults */ "../node_modules/axios/lib/defaults/index.js");
|
|
1184
1184
|
|
|
1185
1185
|
/**
|
|
1186
1186
|
* Transform the data for a request or a response
|
|
@@ -1203,19 +1203,20 @@ module.exports = function transformData(data, headers, fns) {
|
|
|
1203
1203
|
|
|
1204
1204
|
/***/ }),
|
|
1205
1205
|
|
|
1206
|
-
/***/ "../node_modules/axios/lib/defaults.js":
|
|
1207
|
-
|
|
1208
|
-
!*** ../node_modules/axios/lib/defaults.js ***!
|
|
1209
|
-
|
|
1206
|
+
/***/ "../node_modules/axios/lib/defaults/index.js":
|
|
1207
|
+
/*!***************************************************!*\
|
|
1208
|
+
!*** ../node_modules/axios/lib/defaults/index.js ***!
|
|
1209
|
+
\***************************************************/
|
|
1210
1210
|
/*! no static exports found */
|
|
1211
1211
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1212
1212
|
|
|
1213
1213
|
"use strict";
|
|
1214
1214
|
/* WEBPACK VAR INJECTION */(function(process) {
|
|
1215
1215
|
|
|
1216
|
-
var utils = __webpack_require__(/*!
|
|
1217
|
-
var normalizeHeaderName = __webpack_require__(/*!
|
|
1218
|
-
var enhanceError = __webpack_require__(/*!
|
|
1216
|
+
var utils = __webpack_require__(/*! ../utils */ "../node_modules/axios/lib/utils.js");
|
|
1217
|
+
var normalizeHeaderName = __webpack_require__(/*! ../helpers/normalizeHeaderName */ "../node_modules/axios/lib/helpers/normalizeHeaderName.js");
|
|
1218
|
+
var enhanceError = __webpack_require__(/*! ../core/enhanceError */ "../node_modules/axios/lib/core/enhanceError.js");
|
|
1219
|
+
var transitionalDefaults = __webpack_require__(/*! ./transitional */ "../node_modules/axios/lib/defaults/transitional.js");
|
|
1219
1220
|
|
|
1220
1221
|
var DEFAULT_CONTENT_TYPE = {
|
|
1221
1222
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
@@ -1231,10 +1232,10 @@ function getDefaultAdapter() {
|
|
|
1231
1232
|
var adapter;
|
|
1232
1233
|
if (typeof XMLHttpRequest !== 'undefined') {
|
|
1233
1234
|
// For browsers use XHR adapter
|
|
1234
|
-
adapter = __webpack_require__(/*!
|
|
1235
|
+
adapter = __webpack_require__(/*! ../adapters/xhr */ "../node_modules/axios/lib/adapters/xhr.js");
|
|
1235
1236
|
} else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
|
|
1236
1237
|
// For node use HTTP adapter
|
|
1237
|
-
adapter = __webpack_require__(/*!
|
|
1238
|
+
adapter = __webpack_require__(/*! ../adapters/http */ "../node_modules/axios/lib/adapters/xhr.js");
|
|
1238
1239
|
}
|
|
1239
1240
|
return adapter;
|
|
1240
1241
|
}
|
|
@@ -1256,11 +1257,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
1256
1257
|
|
|
1257
1258
|
var defaults = {
|
|
1258
1259
|
|
|
1259
|
-
transitional:
|
|
1260
|
-
silentJSONParsing: true,
|
|
1261
|
-
forcedJSONParsing: true,
|
|
1262
|
-
clarifyTimeoutError: false
|
|
1263
|
-
},
|
|
1260
|
+
transitional: transitionalDefaults,
|
|
1264
1261
|
|
|
1265
1262
|
adapter: getDefaultAdapter(),
|
|
1266
1263
|
|
|
@@ -1346,7 +1343,26 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
1346
1343
|
|
|
1347
1344
|
module.exports = defaults;
|
|
1348
1345
|
|
|
1349
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*!
|
|
1346
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ "../node_modules/process/browser.js")))
|
|
1347
|
+
|
|
1348
|
+
/***/ }),
|
|
1349
|
+
|
|
1350
|
+
/***/ "../node_modules/axios/lib/defaults/transitional.js":
|
|
1351
|
+
/*!**********************************************************!*\
|
|
1352
|
+
!*** ../node_modules/axios/lib/defaults/transitional.js ***!
|
|
1353
|
+
\**********************************************************/
|
|
1354
|
+
/*! no static exports found */
|
|
1355
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1356
|
+
|
|
1357
|
+
"use strict";
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
module.exports = {
|
|
1361
|
+
silentJSONParsing: true,
|
|
1362
|
+
forcedJSONParsing: true,
|
|
1363
|
+
clarifyTimeoutError: false
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1350
1366
|
|
|
1351
1367
|
/***/ }),
|
|
1352
1368
|
|
|
@@ -1358,7 +1374,7 @@ module.exports = defaults;
|
|
|
1358
1374
|
/***/ (function(module, exports) {
|
|
1359
1375
|
|
|
1360
1376
|
module.exports = {
|
|
1361
|
-
"version": "0.26.
|
|
1377
|
+
"version": "0.26.1"
|
|
1362
1378
|
};
|
|
1363
1379
|
|
|
1364
1380
|
/***/ }),
|
|
@@ -10404,7 +10420,7 @@ var del = function del(http, params) {
|
|
|
10404
10420
|
/*!*****************************************!*\
|
|
10405
10421
|
!*** ./adapters/REST/endpoints/http.ts ***!
|
|
10406
10422
|
\*****************************************/
|
|
10407
|
-
/*! exports provided: get, post, put, del, request */
|
|
10423
|
+
/*! exports provided: get, post, put, patch, del, request */
|
|
10408
10424
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10409
10425
|
|
|
10410
10426
|
"use strict";
|
|
@@ -10412,6 +10428,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10412
10428
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; });
|
|
10413
10429
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "post", function() { return post; });
|
|
10414
10430
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "put", function() { return put; });
|
|
10431
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "patch", function() { return patch; });
|
|
10415
10432
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "del", function() { return del; });
|
|
10416
10433
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "request", function() { return request; });
|
|
10417
10434
|
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
@@ -10432,14 +10449,19 @@ var put = function put(http, _ref3, payload) {
|
|
|
10432
10449
|
config = _ref3.config;
|
|
10433
10450
|
return _raw__WEBPACK_IMPORTED_MODULE_0__["put"](http, url, payload, config);
|
|
10434
10451
|
};
|
|
10435
|
-
var
|
|
10452
|
+
var patch = function patch(http, _ref4, payload) {
|
|
10436
10453
|
var url = _ref4.url,
|
|
10437
10454
|
config = _ref4.config;
|
|
10438
|
-
return _raw__WEBPACK_IMPORTED_MODULE_0__["
|
|
10455
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__["patch"](http, url, payload, config);
|
|
10439
10456
|
};
|
|
10440
|
-
var
|
|
10457
|
+
var del = function del(http, _ref5) {
|
|
10441
10458
|
var url = _ref5.url,
|
|
10442
10459
|
config = _ref5.config;
|
|
10460
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__["del"](http, url, config);
|
|
10461
|
+
};
|
|
10462
|
+
var request = function request(http, _ref6) {
|
|
10463
|
+
var url = _ref6.url,
|
|
10464
|
+
config = _ref6.config;
|
|
10443
10465
|
return _raw__WEBPACK_IMPORTED_MODULE_0__["http"](http, url, config);
|
|
10444
10466
|
};
|
|
10445
10467
|
|
|
@@ -12903,7 +12925,7 @@ function createClient(params) {
|
|
|
12903
12925
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
12904
12926
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
12905
12927
|
var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
|
|
12906
|
-
"".concat(sdkMain, "/").concat("8.
|
|
12928
|
+
"".concat(sdkMain, "/").concat("8.2.2"), params.application, params.integration, params.feature);
|
|
12907
12929
|
var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
12908
12930
|
// https://github.com/microsoft/TypeScript/issues/26591
|
|
12909
12931
|
// @ts-expect-error
|
|
@@ -22402,11 +22424,12 @@ var wrapWebhookCollection = Object(_common_utils__WEBPACK_IMPORTED_MODULE_2__["w
|
|
|
22402
22424
|
/*!*****************************************!*\
|
|
22403
22425
|
!*** ./entities/workflow-definition.ts ***!
|
|
22404
22426
|
\*****************************************/
|
|
22405
|
-
/*! exports provided: default, wrapWorkflowDefinition, wrapWorkflowDefinitionCollection */
|
|
22427
|
+
/*! exports provided: WorkflowStepActionType, default, wrapWorkflowDefinition, wrapWorkflowDefinitionCollection */
|
|
22406
22428
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22407
22429
|
|
|
22408
22430
|
"use strict";
|
|
22409
22431
|
__webpack_require__.r(__webpack_exports__);
|
|
22432
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WorkflowStepActionType", function() { return WorkflowStepActionType; });
|
|
22410
22433
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createWorkflowDefinitionApi; });
|
|
22411
22434
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapWorkflowDefinition", function() { return wrapWorkflowDefinition; });
|
|
22412
22435
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapWorkflowDefinitionCollection", function() { return wrapWorkflowDefinitionCollection; });
|
|
@@ -22426,6 +22449,15 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
22426
22449
|
|
|
22427
22450
|
|
|
22428
22451
|
|
|
22452
|
+
/* Workflow Step Action */
|
|
22453
|
+
var WorkflowStepActionType;
|
|
22454
|
+
|
|
22455
|
+
(function (WorkflowStepActionType) {
|
|
22456
|
+
WorkflowStepActionType["App"] = "app";
|
|
22457
|
+
WorkflowStepActionType["Email"] = "email";
|
|
22458
|
+
WorkflowStepActionType["Task"] = "task";
|
|
22459
|
+
})(WorkflowStepActionType || (WorkflowStepActionType = {}));
|
|
22460
|
+
|
|
22429
22461
|
/**
|
|
22430
22462
|
* @private
|
|
22431
22463
|
*/
|