contentful-management 11.54.0 → 11.54.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 +320 -630
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +9 -41
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/entities/ai-action-invocation.js +0 -12
- package/dist/es-modules/entities/ai-action.js +0 -19
- package/dist/typings/common-types.d.ts +4 -2
- package/dist/typings/entities/ai-action-invocation.d.ts +2 -10
- package/dist/typings/entities/ai-action.d.ts +7 -29
- package/package.json +1 -1
|
@@ -13279,8 +13279,6 @@ const wrapAccessTokenCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.
|
|
|
13279
13279
|
__webpack_require__.r(__webpack_exports__);
|
|
13280
13280
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13281
13281
|
/* harmony export */ AiActionOutputFormat: () => (/* binding */ AiActionOutputFormat),
|
|
13282
|
-
/* harmony export */ InvocationResultType: () => (/* binding */ InvocationResultType),
|
|
13283
|
-
/* harmony export */ InvocationStatus: () => (/* binding */ InvocationStatus),
|
|
13284
13282
|
/* harmony export */ wrapAiActionInvocation: () => (/* binding */ wrapAiActionInvocation),
|
|
13285
13283
|
/* harmony export */ wrapAiActionInvocationCollection: () => (/* binding */ wrapAiActionInvocationCollection)
|
|
13286
13284
|
/* harmony export */ });
|
|
@@ -13290,18 +13288,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13290
13288
|
|
|
13291
13289
|
|
|
13292
13290
|
|
|
13293
|
-
let InvocationStatus = /*#__PURE__*/function (InvocationStatus) {
|
|
13294
|
-
InvocationStatus["Scheduled"] = "SCHEDULED";
|
|
13295
|
-
InvocationStatus["InProgress"] = "IN_PROGRESS";
|
|
13296
|
-
InvocationStatus["Failed"] = "FAILED";
|
|
13297
|
-
InvocationStatus["Completed"] = "COMPLETED";
|
|
13298
|
-
InvocationStatus["Cancelled"] = "CANCELLED";
|
|
13299
|
-
return InvocationStatus;
|
|
13300
|
-
}({});
|
|
13301
|
-
let InvocationResultType = /*#__PURE__*/function (InvocationResultType) {
|
|
13302
|
-
InvocationResultType["Text"] = "text";
|
|
13303
|
-
return InvocationResultType;
|
|
13304
|
-
}({});
|
|
13305
13291
|
const AiActionOutputFormat = {
|
|
13306
13292
|
RichText: 'RichText',
|
|
13307
13293
|
Markdown: 'Markdown',
|
|
@@ -13345,9 +13331,6 @@ const wrapAiActionInvocationCollection = (0,_common_utils__WEBPACK_IMPORTED_MODU
|
|
|
13345
13331
|
"use strict";
|
|
13346
13332
|
__webpack_require__.r(__webpack_exports__);
|
|
13347
13333
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13348
|
-
/* harmony export */ EntityTypeEntry: () => (/* binding */ EntityTypeEntry),
|
|
13349
|
-
/* harmony export */ StatusFilter: () => (/* binding */ StatusFilter),
|
|
13350
|
-
/* harmony export */ VariableType: () => (/* binding */ VariableType),
|
|
13351
13334
|
/* harmony export */ wrapAiAction: () => (/* binding */ wrapAiAction),
|
|
13352
13335
|
/* harmony export */ wrapAiActionCollection: () => (/* binding */ wrapAiActionCollection)
|
|
13353
13336
|
/* harmony export */ });
|
|
@@ -13361,25 +13344,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13361
13344
|
|
|
13362
13345
|
|
|
13363
13346
|
|
|
13364
|
-
let StatusFilter = /*#__PURE__*/function (StatusFilter) {
|
|
13365
|
-
StatusFilter["ALL"] = "all";
|
|
13366
|
-
StatusFilter["PUBLISHED"] = "published";
|
|
13367
|
-
return StatusFilter;
|
|
13368
|
-
}({});
|
|
13369
|
-
let VariableType = /*#__PURE__*/function (VariableType) {
|
|
13370
|
-
VariableType["RESOURCE_LINK"] = "ResourceLink";
|
|
13371
|
-
VariableType["TEXT"] = "Text";
|
|
13372
|
-
VariableType["STANDARD_INPUT"] = "StandardInput";
|
|
13373
|
-
VariableType["LOCALE"] = "Locale";
|
|
13374
|
-
VariableType["MEDIA_REFERENCE"] = "MediaReference";
|
|
13375
|
-
VariableType["REFERENCE"] = "Reference";
|
|
13376
|
-
VariableType["SMART_CONTEXT"] = "SmartContext";
|
|
13377
|
-
return VariableType;
|
|
13378
|
-
}({});
|
|
13379
|
-
let EntityTypeEntry = /*#__PURE__*/function (EntityTypeEntry) {
|
|
13380
|
-
EntityTypeEntry["ENTRY"] = "Entry";
|
|
13381
|
-
return EntityTypeEntry;
|
|
13382
|
-
}({});
|
|
13383
13347
|
function createAiActionApi(makeRequest) {
|
|
13384
13348
|
const getParams = data => ({
|
|
13385
13349
|
spaceId: data.sys.space.sys.id,
|
|
@@ -19111,7 +19075,7 @@ function save(namespaces) {
|
|
|
19111
19075
|
function load() {
|
|
19112
19076
|
let r;
|
|
19113
19077
|
try {
|
|
19114
|
-
r = exports.storage.getItem('debug');
|
|
19078
|
+
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
|
|
19115
19079
|
} catch (error) {
|
|
19116
19080
|
// Swallow
|
|
19117
19081
|
// XXX (@Qix-) should we be logging these?
|
|
@@ -19342,7 +19306,7 @@ function setup(env) {
|
|
|
19342
19306
|
|
|
19343
19307
|
const split = (typeof namespaces === 'string' ? namespaces : '')
|
|
19344
19308
|
.trim()
|
|
19345
|
-
.replace(
|
|
19309
|
+
.replace(/\s+/g, ',')
|
|
19346
19310
|
.split(',')
|
|
19347
19311
|
.filter(Boolean);
|
|
19348
19312
|
|
|
@@ -25489,7 +25453,7 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
25489
25453
|
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
25490
25454
|
});
|
|
25491
25455
|
|
|
25492
|
-
let response = await fetch(request);
|
|
25456
|
+
let response = await fetch(request, fetchOptions);
|
|
25493
25457
|
|
|
25494
25458
|
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
25495
25459
|
|
|
@@ -28216,7 +28180,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28216
28180
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28217
28181
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
28218
28182
|
/* harmony export */ });
|
|
28219
|
-
const VERSION = "1.
|
|
28183
|
+
const VERSION = "1.10.0";
|
|
28220
28184
|
|
|
28221
28185
|
/***/ }),
|
|
28222
28186
|
|
|
@@ -29857,6 +29821,10 @@ function toFormData(obj, formData, options) {
|
|
|
29857
29821
|
return value.toISOString();
|
|
29858
29822
|
}
|
|
29859
29823
|
|
|
29824
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBoolean(value)) {
|
|
29825
|
+
return value.toString();
|
|
29826
|
+
}
|
|
29827
|
+
|
|
29860
29828
|
if (!useBlob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(value)) {
|
|
29861
29829
|
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Blob is not supported. Use a Buffer instead.');
|
|
29862
29830
|
}
|
|
@@ -32617,7 +32585,7 @@ function createClient(params, opts = {}) {
|
|
|
32617
32585
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
32618
32586
|
const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
|
|
32619
32587
|
// @ts-expect-error
|
|
32620
|
-
`${sdkMain}/${"11.54.
|
|
32588
|
+
`${sdkMain}/${"11.54.2"}`, params.application, params.integration, params.feature);
|
|
32621
32589
|
const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
32622
32590
|
userAgent
|
|
32623
32591
|
}));
|