contentful-management 11.29.1 → 11.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contentful-management.browser.js +158 -15
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +106 -16
- 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 +2 -1
- package/dist/es-modules/create-organization-api.js +1 -1
- package/dist/es-modules/plain/pagination-helper.js +71 -0
- package/dist/typings/common-types.d.ts +0 -1
- package/dist/typings/constants/editor-interface-defaults/controls-defaults.d.ts +2 -2
- package/dist/typings/contentful-management.d.ts +1 -0
- package/dist/typings/create-contentful-api.d.ts +6 -8
- package/dist/typings/create-entry-api.d.ts +2 -2
- package/dist/typings/create-environment-api.d.ts +7 -7
- package/dist/typings/create-environment-template-api.d.ts +4 -4
- package/dist/typings/create-organization-api.d.ts +24 -24
- package/dist/typings/create-space-api.d.ts +3 -3
- package/dist/typings/entities/asset.d.ts +0 -1
- package/dist/typings/methods/content-type.d.ts +1 -3
- package/dist/typings/plain/entities/app-upload.d.ts +0 -1
- package/dist/typings/plain/entities/upload.d.ts +0 -1
- package/dist/typings/plain/pagination-helper.d.ts +18 -0
- package/dist/typings/plain/wrappers/wrap.d.ts +1 -1
- package/package.json +27 -31
|
@@ -10363,7 +10363,7 @@ function createOrganizationApi(makeRequest) {
|
|
|
10363
10363
|
appDefinitionId: appDefinitionId,
|
|
10364
10364
|
appActionId: appActionId
|
|
10365
10365
|
}
|
|
10366
|
-
}).then(function (
|
|
10366
|
+
}).then(function () {
|
|
10367
10367
|
/* noop*/
|
|
10368
10368
|
});
|
|
10369
10369
|
},
|
|
@@ -16625,6 +16625,144 @@ var isArchived = function isArchived(data) {
|
|
|
16625
16625
|
__webpack_require__.r(__webpack_exports__);
|
|
16626
16626
|
|
|
16627
16627
|
|
|
16628
|
+
/***/ }),
|
|
16629
|
+
|
|
16630
|
+
/***/ "./plain/pagination-helper.ts":
|
|
16631
|
+
/*!************************************!*\
|
|
16632
|
+
!*** ./plain/pagination-helper.ts ***!
|
|
16633
|
+
\************************************/
|
|
16634
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16635
|
+
|
|
16636
|
+
"use strict";
|
|
16637
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16638
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16639
|
+
/* harmony export */ fetchAll: function() { return /* binding */ fetchAll; }
|
|
16640
|
+
/* harmony export */ });
|
|
16641
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
16642
|
+
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 e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
16643
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
16644
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16645
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
16646
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
16647
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
16648
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
16649
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16650
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16651
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
16652
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16653
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16654
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
16655
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
16656
|
+
function isOffsetBasedCollection(collection) {
|
|
16657
|
+
return 'total' in collection;
|
|
16658
|
+
}
|
|
16659
|
+
function isCursorBasedCollection(collection) {
|
|
16660
|
+
return 'pages' in collection;
|
|
16661
|
+
}
|
|
16662
|
+
function getSearchParam(url, paramName) {
|
|
16663
|
+
var searchIndex = url.indexOf('?');
|
|
16664
|
+
if (searchIndex < 0) {
|
|
16665
|
+
return null;
|
|
16666
|
+
}
|
|
16667
|
+
var rawSearchParams = url.slice(searchIndex + 1);
|
|
16668
|
+
var searchParams = new URLSearchParams(rawSearchParams);
|
|
16669
|
+
return searchParams.get(paramName);
|
|
16670
|
+
}
|
|
16671
|
+
function range(from, to) {
|
|
16672
|
+
return Array.from(Array(Math.abs(to - from)), function (_, i) {
|
|
16673
|
+
return from + i;
|
|
16674
|
+
});
|
|
16675
|
+
}
|
|
16676
|
+
|
|
16677
|
+
/**
|
|
16678
|
+
* Parameters for endpoint methods that can be paginated are inconsistent, `fetchAll` will only
|
|
16679
|
+
* work with the more common version of supplying the limit, skip, and pageNext parameters via a distinct `query` property in the
|
|
16680
|
+
* parameters.
|
|
16681
|
+
*/
|
|
16682
|
+
function fetchAll(_x, _x2) {
|
|
16683
|
+
return _fetchAll.apply(this, arguments);
|
|
16684
|
+
}
|
|
16685
|
+
function _fetchAll() {
|
|
16686
|
+
_fetchAll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(fetchFn, params) {
|
|
16687
|
+
var response, total, limit, items, hasMorePages, pageCount, promises, remainingItems, pages, _items, pageNext;
|
|
16688
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16689
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16690
|
+
case 0:
|
|
16691
|
+
_context.next = 2;
|
|
16692
|
+
return fetchFn(_objectSpread({}, params));
|
|
16693
|
+
case 2:
|
|
16694
|
+
response = _context.sent;
|
|
16695
|
+
if (!isOffsetBasedCollection(response)) {
|
|
16696
|
+
_context.next = 14;
|
|
16697
|
+
break;
|
|
16698
|
+
}
|
|
16699
|
+
total = response.total, limit = response.limit, items = response.items;
|
|
16700
|
+
hasMorePages = total > items.length;
|
|
16701
|
+
if (hasMorePages) {
|
|
16702
|
+
_context.next = 8;
|
|
16703
|
+
break;
|
|
16704
|
+
}
|
|
16705
|
+
return _context.abrupt("return", items);
|
|
16706
|
+
case 8:
|
|
16707
|
+
pageCount = Math.ceil(total / limit);
|
|
16708
|
+
promises = range(1, pageCount).map(function (page) {
|
|
16709
|
+
return fetchFn(_objectSpread(_objectSpread({}, params), {}, {
|
|
16710
|
+
query: _objectSpread(_objectSpread({}, params.query), {}, {
|
|
16711
|
+
limit: limit,
|
|
16712
|
+
skip: page * limit
|
|
16713
|
+
})
|
|
16714
|
+
})).then(function (result) {
|
|
16715
|
+
return result.items;
|
|
16716
|
+
});
|
|
16717
|
+
});
|
|
16718
|
+
_context.next = 12;
|
|
16719
|
+
return Promise.all(promises);
|
|
16720
|
+
case 12:
|
|
16721
|
+
remainingItems = _context.sent;
|
|
16722
|
+
return _context.abrupt("return", [].concat(_toConsumableArray(items), _toConsumableArray(remainingItems.flat(1))));
|
|
16723
|
+
case 14:
|
|
16724
|
+
if (!isCursorBasedCollection(response)) {
|
|
16725
|
+
_context.next = 29;
|
|
16726
|
+
break;
|
|
16727
|
+
}
|
|
16728
|
+
pages = response.pages, _items = response.items;
|
|
16729
|
+
if (pages.next) {
|
|
16730
|
+
_context.next = 18;
|
|
16731
|
+
break;
|
|
16732
|
+
}
|
|
16733
|
+
return _context.abrupt("return", _items);
|
|
16734
|
+
case 18:
|
|
16735
|
+
pageNext = getSearchParam(pages.next, 'pageNext');
|
|
16736
|
+
if (pageNext) {
|
|
16737
|
+
_context.next = 21;
|
|
16738
|
+
break;
|
|
16739
|
+
}
|
|
16740
|
+
throw new Error('Missing "pageNext" query param from pages.next from response.');
|
|
16741
|
+
case 21:
|
|
16742
|
+
_context.t0 = [];
|
|
16743
|
+
_context.t1 = _toConsumableArray(_items);
|
|
16744
|
+
_context.t2 = _toConsumableArray;
|
|
16745
|
+
_context.next = 26;
|
|
16746
|
+
return fetchAll(fetchFn, _objectSpread(_objectSpread({}, params), {}, {
|
|
16747
|
+
query: _objectSpread(_objectSpread({}, params.query), {}, {
|
|
16748
|
+
pageNext: pageNext
|
|
16749
|
+
})
|
|
16750
|
+
}));
|
|
16751
|
+
case 26:
|
|
16752
|
+
_context.t3 = _context.sent;
|
|
16753
|
+
_context.t4 = (0, _context.t2)(_context.t3);
|
|
16754
|
+
return _context.abrupt("return", _context.t0.concat.call(_context.t0, _context.t1, _context.t4));
|
|
16755
|
+
case 29:
|
|
16756
|
+
throw new Error("Can not determine collection type of response, neither property \"total\" nor \"pages\" are present.");
|
|
16757
|
+
case 30:
|
|
16758
|
+
case "end":
|
|
16759
|
+
return _context.stop();
|
|
16760
|
+
}
|
|
16761
|
+
}, _callee);
|
|
16762
|
+
}));
|
|
16763
|
+
return _fetchAll.apply(this, arguments);
|
|
16764
|
+
}
|
|
16765
|
+
|
|
16628
16766
|
/***/ }),
|
|
16629
16767
|
|
|
16630
16768
|
/***/ "./plain/plain-client.ts":
|
|
@@ -19001,7 +19139,9 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
19001
19139
|
var root = chain[i];
|
|
19002
19140
|
|
|
19003
19141
|
if (root === '[]' && options.parseArrays) {
|
|
19004
|
-
obj = options.allowEmptyArrays && leaf === ''
|
|
19142
|
+
obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))
|
|
19143
|
+
? []
|
|
19144
|
+
: [].concat(leaf);
|
|
19005
19145
|
} else {
|
|
19006
19146
|
obj = options.plainObjects ? Object.create(null) : {};
|
|
19007
19147
|
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
@@ -20656,7 +20796,7 @@ var call = Function.prototype.call;
|
|
|
20656
20796
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
20657
20797
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
20658
20798
|
|
|
20659
|
-
/** @type {(
|
|
20799
|
+
/** @type {import('.')} */
|
|
20660
20800
|
module.exports = bind.call(call, $hasOwn);
|
|
20661
20801
|
|
|
20662
20802
|
|
|
@@ -26850,17 +26990,18 @@ var __webpack_exports__ = {};
|
|
|
26850
26990
|
\**********************************/
|
|
26851
26991
|
__webpack_require__.r(__webpack_exports__);
|
|
26852
26992
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26853
|
-
/* harmony export */ RestAdapter: function() { return /* reexport safe */
|
|
26854
|
-
/* harmony export */ ScheduledActionReferenceFilters: function() { return /* reexport safe */
|
|
26855
|
-
/* harmony export */ WorkflowStepPermissionAction: function() { return /* reexport safe */
|
|
26856
|
-
/* harmony export */ WorkflowStepPermissionEffect: function() { return /* reexport safe */
|
|
26857
|
-
/* harmony export */ WorkflowStepPermissionType: function() { return /* reexport safe */
|
|
26993
|
+
/* harmony export */ RestAdapter: function() { return /* reexport safe */ _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_8__.RestAdapter; },
|
|
26994
|
+
/* harmony export */ ScheduledActionReferenceFilters: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_9__.ScheduledActionReferenceFilters; },
|
|
26995
|
+
/* harmony export */ WorkflowStepPermissionAction: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_9__.WorkflowStepPermissionAction; },
|
|
26996
|
+
/* harmony export */ WorkflowStepPermissionEffect: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_9__.WorkflowStepPermissionEffect; },
|
|
26997
|
+
/* harmony export */ WorkflowStepPermissionType: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_9__.WorkflowStepPermissionType; },
|
|
26858
26998
|
/* harmony export */ asIterator: function() { return /* reexport safe */ _plain_as_iterator__WEBPACK_IMPORTED_MODULE_5__.asIterator; },
|
|
26859
26999
|
/* harmony export */ createClient: function() { return /* binding */ createClient; },
|
|
26860
27000
|
/* harmony export */ editorInterfaceDefaults: function() { return /* reexport module object */ _constants_editor_interface_defaults__WEBPACK_IMPORTED_MODULE_4__; },
|
|
26861
|
-
/* harmony export */
|
|
26862
|
-
/* harmony export */
|
|
26863
|
-
/* harmony export */
|
|
27001
|
+
/* harmony export */ fetchAll: function() { return /* reexport safe */ _plain_pagination_helper__WEBPACK_IMPORTED_MODULE_6__.fetchAll; },
|
|
27002
|
+
/* harmony export */ isDraft: function() { return /* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_7__.isDraft; },
|
|
27003
|
+
/* harmony export */ isPublished: function() { return /* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_7__.isPublished; },
|
|
27004
|
+
/* harmony export */ isUpdated: function() { return /* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_7__.isUpdated; }
|
|
26864
27005
|
/* harmony export */ });
|
|
26865
27006
|
/* 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");
|
|
26866
27007
|
/* harmony import */ var _create_adapter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-adapter */ "./create-adapter.ts");
|
|
@@ -26868,9 +27009,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26868
27009
|
/* harmony import */ var _plain_plain_client__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./plain/plain-client */ "./plain/plain-client.ts");
|
|
26869
27010
|
/* harmony import */ var _constants_editor_interface_defaults__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constants/editor-interface-defaults */ "./constants/editor-interface-defaults/index.ts");
|
|
26870
27011
|
/* harmony import */ var _plain_as_iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./plain/as-iterator */ "./plain/as-iterator.ts");
|
|
26871
|
-
/* harmony import */ var
|
|
26872
|
-
/* harmony import */ var
|
|
26873
|
-
/* harmony import */ var
|
|
27012
|
+
/* harmony import */ var _plain_pagination_helper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./plain/pagination-helper */ "./plain/pagination-helper.ts");
|
|
27013
|
+
/* harmony import */ var _plain_checks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./plain/checks */ "./plain/checks.ts");
|
|
27014
|
+
/* harmony import */ var _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./adapters/REST/rest-adapter */ "./adapters/REST/rest-adapter.ts");
|
|
27015
|
+
/* harmony import */ var _export_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./export-types */ "./export-types.ts");
|
|
26874
27016
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
26875
27017
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26876
27018
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -26895,6 +27037,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26895
27037
|
|
|
26896
27038
|
|
|
26897
27039
|
|
|
27040
|
+
|
|
26898
27041
|
/**
|
|
26899
27042
|
* @deprecated
|
|
26900
27043
|
*/
|
|
@@ -26919,7 +27062,7 @@ function createClient(params) {
|
|
|
26919
27062
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
26920
27063
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
26921
27064
|
var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)( // @ts-expect-error
|
|
26922
|
-
"".concat(sdkMain, "/").concat("11.
|
|
27065
|
+
"".concat(sdkMain, "/").concat("11.30.0"), params.application, params.integration, params.feature);
|
|
26923
27066
|
var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
26924
27067
|
userAgent: userAgent
|
|
26925
27068
|
}));
|