contentful-management 11.64.0-new-beta.2 → 11.64.0-new-beta.3
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/cjs/index.cjs +126 -121
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +1 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -4,6 +4,11 @@ var contentfulSdkCore = require('contentful-sdk-core');
|
|
|
4
4
|
var axios = require('axios');
|
|
5
5
|
var copy = require('fast-copy');
|
|
6
6
|
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var axios__default = /*#__PURE__*/_interopDefault(axios);
|
|
10
|
+
var copy__default = /*#__PURE__*/_interopDefault(copy);
|
|
11
|
+
|
|
7
12
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8
13
|
function getBaseUrl$o(http) {
|
|
9
14
|
return http.defaults.baseURL?.split('/spaces')[0];
|
|
@@ -70,7 +75,7 @@ const create$D = (http, params, data, headers) => {
|
|
|
70
75
|
return post$1(http, `/spaces/${params.spaceId}/ai/actions`, data, { headers });
|
|
71
76
|
};
|
|
72
77
|
const update$y = (http, params, rawData, headers) => {
|
|
73
|
-
const data =
|
|
78
|
+
const data = copy__default.default(rawData);
|
|
74
79
|
const { sys, ...payload } = data;
|
|
75
80
|
return put$1(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, payload, {
|
|
76
81
|
headers: {
|
|
@@ -273,7 +278,7 @@ const createWithId$e = (http, params, data, headers) => {
|
|
|
273
278
|
});
|
|
274
279
|
};
|
|
275
280
|
const update$x = (http, params, rawData, headers) => {
|
|
276
|
-
const data =
|
|
281
|
+
const data = copy__default.default(rawData);
|
|
277
282
|
if ('accessToken' in data) {
|
|
278
283
|
delete data.accessToken;
|
|
279
284
|
}
|
|
@@ -380,14 +385,14 @@ var AppAction = /*#__PURE__*/Object.freeze({
|
|
|
380
385
|
* @private
|
|
381
386
|
*/
|
|
382
387
|
const wrapCollection = (fn) => (makeRequest, data, ...rest) => {
|
|
383
|
-
const collectionData = contentfulSdkCore.toPlainObject(
|
|
388
|
+
const collectionData = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
384
389
|
// @ts-expect-error
|
|
385
390
|
collectionData.items = collectionData.items.map((entity) => fn(makeRequest, entity, ...rest));
|
|
386
391
|
// @ts-expect-error
|
|
387
392
|
return collectionData;
|
|
388
393
|
};
|
|
389
394
|
const wrapCursorPaginatedCollection = (fn) => (makeRequest, data, ...rest) => {
|
|
390
|
-
const collectionData = contentfulSdkCore.toPlainObject(
|
|
395
|
+
const collectionData = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
391
396
|
// @ts-expect-error
|
|
392
397
|
collectionData.items = collectionData.items.map((entity) => fn(makeRequest, entity, ...rest));
|
|
393
398
|
// @ts-expect-error
|
|
@@ -572,11 +577,11 @@ const getMany$D = (http, params) => {
|
|
|
572
577
|
});
|
|
573
578
|
};
|
|
574
579
|
const create$x = (http, params, rawData) => {
|
|
575
|
-
const data =
|
|
580
|
+
const data = copy__default.default(rawData);
|
|
576
581
|
return post$1(http, getBaseUrl$l(params), data);
|
|
577
582
|
};
|
|
578
583
|
const update$v = (http, params, rawData, headers) => {
|
|
579
|
-
const data =
|
|
584
|
+
const data = copy__default.default(rawData);
|
|
580
585
|
delete data.sys;
|
|
581
586
|
return put$1(http, getAppDefinitionUrl(params), data, {
|
|
582
587
|
headers: {
|
|
@@ -656,7 +661,7 @@ const getMany$C = (http, params) => {
|
|
|
656
661
|
});
|
|
657
662
|
};
|
|
658
663
|
const upsert$3 = (http, params, rawData, headers) => {
|
|
659
|
-
const data =
|
|
664
|
+
const data = copy__default.default(rawData);
|
|
660
665
|
return put$1(http, getAppInstallationUrl(params), data, {
|
|
661
666
|
headers: {
|
|
662
667
|
...headers,
|
|
@@ -829,7 +834,7 @@ const getMany$A = (http, params, rawData, headers) => {
|
|
|
829
834
|
});
|
|
830
835
|
};
|
|
831
836
|
const update$u = (http, params, rawData, headers) => {
|
|
832
|
-
const data =
|
|
837
|
+
const data = copy__default.default(rawData);
|
|
833
838
|
delete data.sys;
|
|
834
839
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets/${params.assetId}`, data, {
|
|
835
840
|
headers: {
|
|
@@ -839,13 +844,13 @@ const update$u = (http, params, rawData, headers) => {
|
|
|
839
844
|
});
|
|
840
845
|
};
|
|
841
846
|
const create$s = (http, params, rawData, headers) => {
|
|
842
|
-
const data =
|
|
847
|
+
const data = copy__default.default(rawData);
|
|
843
848
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets`, data, {
|
|
844
849
|
headers,
|
|
845
850
|
});
|
|
846
851
|
};
|
|
847
852
|
const createWithId$d = (http, params, rawData, headers) => {
|
|
848
|
-
const data =
|
|
853
|
+
const data = copy__default.default(rawData);
|
|
849
854
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets/${params.assetId}`, data, {
|
|
850
855
|
headers,
|
|
851
856
|
});
|
|
@@ -990,7 +995,7 @@ const update$t = (http, params, rawData, headers) => {
|
|
|
990
995
|
if (params.releaseId) {
|
|
991
996
|
return update$u(http, params, rawData, headers ?? {});
|
|
992
997
|
}
|
|
993
|
-
const data =
|
|
998
|
+
const data = copy__default.default(rawData);
|
|
994
999
|
delete data.sys;
|
|
995
1000
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, data, {
|
|
996
1001
|
headers: {
|
|
@@ -1033,14 +1038,14 @@ const create$r = (http, params, rawData) => {
|
|
|
1033
1038
|
if (params.releaseId) {
|
|
1034
1039
|
return create$s(http, params, rawData, {});
|
|
1035
1040
|
}
|
|
1036
|
-
const data =
|
|
1041
|
+
const data = copy__default.default(rawData);
|
|
1037
1042
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, data);
|
|
1038
1043
|
};
|
|
1039
1044
|
const createWithId$c = (http, params, rawData) => {
|
|
1040
1045
|
if (params.releaseId) {
|
|
1041
1046
|
return createWithId$d(http, params, rawData, {});
|
|
1042
1047
|
}
|
|
1043
|
-
const data =
|
|
1048
|
+
const data = copy__default.default(rawData);
|
|
1044
1049
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, data);
|
|
1045
1050
|
};
|
|
1046
1051
|
const createFromFiles = async (http, params, data) => {
|
|
@@ -1301,7 +1306,7 @@ const getMany$y = (http, params) => get$W(http, getEntityBaseUrl(params), {
|
|
|
1301
1306
|
: {},
|
|
1302
1307
|
});
|
|
1303
1308
|
const create$p = (http, params, rawData) => {
|
|
1304
|
-
const data =
|
|
1309
|
+
const data = copy__default.default(rawData);
|
|
1305
1310
|
return post$1(http, getEntityBaseUrl(params), data, {
|
|
1306
1311
|
headers: {
|
|
1307
1312
|
...(typeof rawData.body !== 'string' ? { [BODY_FORMAT_HEADER]: 'rich-text' } : {}),
|
|
@@ -1313,7 +1318,7 @@ const create$p = (http, params, rawData) => {
|
|
|
1313
1318
|
});
|
|
1314
1319
|
};
|
|
1315
1320
|
const update$s = (http, params, rawData, headers) => {
|
|
1316
|
-
const data =
|
|
1321
|
+
const data = copy__default.default(rawData);
|
|
1317
1322
|
delete data.sys;
|
|
1318
1323
|
return put$1(http, getEntityCommentUrl(params), data, {
|
|
1319
1324
|
headers: {
|
|
@@ -1503,15 +1508,15 @@ const getMany$v = (http, params, headers) => {
|
|
|
1503
1508
|
});
|
|
1504
1509
|
};
|
|
1505
1510
|
const create$m = (http, params, rawData, headers) => {
|
|
1506
|
-
const data =
|
|
1511
|
+
const data = copy__default.default(rawData);
|
|
1507
1512
|
return post$1(http, getBaseUrl$i(params), data, { headers });
|
|
1508
1513
|
};
|
|
1509
1514
|
const createWithId$9 = (http, params, rawData, headers) => {
|
|
1510
|
-
const data =
|
|
1515
|
+
const data = copy__default.default(rawData);
|
|
1511
1516
|
return put$1(http, getContentTypeUrl$1(params), data, { headers });
|
|
1512
1517
|
};
|
|
1513
1518
|
const update$p = (http, params, rawData, headers) => {
|
|
1514
|
-
const data =
|
|
1519
|
+
const data = copy__default.default(rawData);
|
|
1515
1520
|
delete data.sys;
|
|
1516
1521
|
return put$1(http, getContentTypeUrl$1(params), data, {
|
|
1517
1522
|
headers: {
|
|
@@ -1555,7 +1560,7 @@ const getMany$u = (http, params) => {
|
|
|
1555
1560
|
return get$W(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`);
|
|
1556
1561
|
};
|
|
1557
1562
|
const update$o = (http, params, rawData, headers) => {
|
|
1558
|
-
const data =
|
|
1563
|
+
const data = copy__default.default(rawData);
|
|
1559
1564
|
delete data.sys;
|
|
1560
1565
|
return put$1(http, getBaseUrl$h(params), data, {
|
|
1561
1566
|
headers: {
|
|
@@ -1585,7 +1590,7 @@ const getMany$t = (http, params, rawData, headers) => {
|
|
|
1585
1590
|
});
|
|
1586
1591
|
};
|
|
1587
1592
|
const update$n = (http, params, rawData, headers) => {
|
|
1588
|
-
const data =
|
|
1593
|
+
const data = copy__default.default(rawData);
|
|
1589
1594
|
delete data.sys;
|
|
1590
1595
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries/${params.entryId}`, data, {
|
|
1591
1596
|
headers: {
|
|
@@ -1604,7 +1609,7 @@ const patch$2 = (http, params, data, headers) => {
|
|
|
1604
1609
|
});
|
|
1605
1610
|
};
|
|
1606
1611
|
const create$l = (http, params, rawData, headers) => {
|
|
1607
|
-
const data =
|
|
1612
|
+
const data = copy__default.default(rawData);
|
|
1608
1613
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, data, {
|
|
1609
1614
|
headers: {
|
|
1610
1615
|
'X-Contentful-Content-Type': params.contentTypeId,
|
|
@@ -1613,7 +1618,7 @@ const create$l = (http, params, rawData, headers) => {
|
|
|
1613
1618
|
});
|
|
1614
1619
|
};
|
|
1615
1620
|
const createWithId$8 = (http, params, rawData, headers) => {
|
|
1616
|
-
const data =
|
|
1621
|
+
const data = copy__default.default(rawData);
|
|
1617
1622
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries/${params.entryId}`, data, {
|
|
1618
1623
|
headers: {
|
|
1619
1624
|
'X-Contentful-Content-Type': params.contentTypeId,
|
|
@@ -1672,7 +1677,7 @@ const update$m = (http, params, rawData, headers) => {
|
|
|
1672
1677
|
if (params.releaseId) {
|
|
1673
1678
|
return update$n(http, params, rawData, headers ?? {});
|
|
1674
1679
|
}
|
|
1675
|
-
const data =
|
|
1680
|
+
const data = copy__default.default(rawData);
|
|
1676
1681
|
delete data.sys;
|
|
1677
1682
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, data, {
|
|
1678
1683
|
headers: {
|
|
@@ -1715,7 +1720,7 @@ const create$k = (http, params, rawData) => {
|
|
|
1715
1720
|
if (params.releaseId) {
|
|
1716
1721
|
return create$l(http, params, rawData, {});
|
|
1717
1722
|
}
|
|
1718
|
-
const data =
|
|
1723
|
+
const data = copy__default.default(rawData);
|
|
1719
1724
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, data, {
|
|
1720
1725
|
headers: {
|
|
1721
1726
|
'X-Contentful-Content-Type': params.contentTypeId,
|
|
@@ -1726,7 +1731,7 @@ const createWithId$7 = (http, params, rawData) => {
|
|
|
1726
1731
|
if (params.releaseId) {
|
|
1727
1732
|
return createWithId$8(http, params, rawData, {});
|
|
1728
1733
|
}
|
|
1729
|
-
const data =
|
|
1734
|
+
const data = copy__default.default(rawData);
|
|
1730
1735
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, data, {
|
|
1731
1736
|
headers: {
|
|
1732
1737
|
'X-Contentful-Content-Type': params.contentTypeId,
|
|
@@ -1765,7 +1770,7 @@ const getMany$r = (http, params) => {
|
|
|
1765
1770
|
});
|
|
1766
1771
|
};
|
|
1767
1772
|
const update$l = (http, params, rawData, headers) => {
|
|
1768
|
-
const data =
|
|
1773
|
+
const data = copy__default.default(rawData);
|
|
1769
1774
|
delete data.sys;
|
|
1770
1775
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`, data, {
|
|
1771
1776
|
headers: {
|
|
@@ -1778,13 +1783,13 @@ const del$m = (http, params) => {
|
|
|
1778
1783
|
return del$F(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
|
|
1779
1784
|
};
|
|
1780
1785
|
const create$j = (http, params, rawData, headers) => {
|
|
1781
|
-
const data =
|
|
1786
|
+
const data = copy__default.default(rawData);
|
|
1782
1787
|
return post$1(http, `/spaces/${params.spaceId}/environments`, data, {
|
|
1783
1788
|
headers,
|
|
1784
1789
|
});
|
|
1785
1790
|
};
|
|
1786
1791
|
const createWithId$6 = (http, params, rawData, headers) => {
|
|
1787
|
-
const data =
|
|
1792
|
+
const data = copy__default.default(rawData);
|
|
1788
1793
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`, data, {
|
|
1789
1794
|
headers: {
|
|
1790
1795
|
...headers,
|
|
@@ -1824,13 +1829,13 @@ const getMany$q = (http, params) => {
|
|
|
1824
1829
|
});
|
|
1825
1830
|
};
|
|
1826
1831
|
const createWithId$5 = (http, params, rawData, headers) => {
|
|
1827
|
-
const data =
|
|
1832
|
+
const data = copy__default.default(rawData);
|
|
1828
1833
|
return put$1(http, getEnvironmentAliasUrl(params), data, {
|
|
1829
1834
|
headers: headers,
|
|
1830
1835
|
});
|
|
1831
1836
|
};
|
|
1832
1837
|
const update$k = (http, params, rawData, headers) => {
|
|
1833
|
-
const data =
|
|
1838
|
+
const data = copy__default.default(rawData);
|
|
1834
1839
|
delete data.sys;
|
|
1835
1840
|
return put$1(http, getEnvironmentAliasUrl(params), data, {
|
|
1836
1841
|
headers: {
|
|
@@ -1865,7 +1870,7 @@ const get$u = (http, { organizationId, environmentTemplateId, version, query = {
|
|
|
1865
1870
|
const getMany$p = (http, { organizationId, query = {} }, headers) => get$W(http, apiPath$1(organizationId), { params: query, headers });
|
|
1866
1871
|
const create$i = (http, { organizationId }, payload, headers) => post$1(http, apiPath$1(organizationId), payload, { headers });
|
|
1867
1872
|
const update$j = (http, { organizationId, environmentTemplateId }, payload, headers) => {
|
|
1868
|
-
const data =
|
|
1873
|
+
const data = copy__default.default(payload);
|
|
1869
1874
|
delete data.sys;
|
|
1870
1875
|
return put$1(http, apiPath$1(organizationId, environmentTemplateId), data, {
|
|
1871
1876
|
headers: {
|
|
@@ -1941,11 +1946,11 @@ const create$h = (http, params, rawData, headers) => {
|
|
|
1941
1946
|
return post$1(http, getBaseUrl$f(params), rawData, { headers });
|
|
1942
1947
|
};
|
|
1943
1948
|
const createWithId$4 = (http, params, rawData, headers) => {
|
|
1944
|
-
const data =
|
|
1949
|
+
const data = copy__default.default(rawData);
|
|
1945
1950
|
return put$1(http, getExtensionUrl(params), data, { headers });
|
|
1946
1951
|
};
|
|
1947
1952
|
const update$i = async (http, params, rawData, headers) => {
|
|
1948
|
-
const data =
|
|
1953
|
+
const data = copy__default.default(rawData);
|
|
1949
1954
|
delete data.sys;
|
|
1950
1955
|
return put$1(http, getExtensionUrl(params), data, {
|
|
1951
1956
|
headers: {
|
|
@@ -2064,7 +2069,7 @@ const create$g = (http, params, data, headers) => {
|
|
|
2064
2069
|
});
|
|
2065
2070
|
};
|
|
2066
2071
|
const update$h = (http, params, rawData, headers) => {
|
|
2067
|
-
const data =
|
|
2072
|
+
const data = copy__default.default(rawData);
|
|
2068
2073
|
delete data.sys;
|
|
2069
2074
|
delete data.default; // we should not send this back
|
|
2070
2075
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`, data, {
|
|
@@ -2155,7 +2160,7 @@ const getMany$i = (http, params) => {
|
|
|
2155
2160
|
});
|
|
2156
2161
|
};
|
|
2157
2162
|
const update$g = (http, params, rawData, headers) => {
|
|
2158
|
-
const data =
|
|
2163
|
+
const data = copy__default.default(rawData);
|
|
2159
2164
|
delete data.sys;
|
|
2160
2165
|
const { role } = data;
|
|
2161
2166
|
return put$1(http, getEntityUrl$5(params), { role }, {
|
|
@@ -2518,7 +2523,7 @@ const get$f = (http, params) => {
|
|
|
2518
2523
|
return get$W(http, getEntityUrl$4(params));
|
|
2519
2524
|
};
|
|
2520
2525
|
const upsert = (http, params, rawData, headers) => {
|
|
2521
|
-
const data =
|
|
2526
|
+
const data = copy__default.default(rawData);
|
|
2522
2527
|
return put$1(http, getEntityUrl$4(params), data, { headers });
|
|
2523
2528
|
};
|
|
2524
2529
|
const del$c = (http, params) => {
|
|
@@ -2564,7 +2569,7 @@ const createWithId$3 = (http, params, data, headers) => {
|
|
|
2564
2569
|
});
|
|
2565
2570
|
};
|
|
2566
2571
|
const update$d = (http, params, rawData, headers) => {
|
|
2567
|
-
const data =
|
|
2572
|
+
const data = copy__default.default(rawData);
|
|
2568
2573
|
delete data.sys;
|
|
2569
2574
|
return put$1(http, `/spaces/${params.spaceId}/roles/${params.roleId}`, data, {
|
|
2570
2575
|
headers: {
|
|
@@ -2674,7 +2679,7 @@ const create$9 = (http, params, payload, headers) => {
|
|
|
2674
2679
|
});
|
|
2675
2680
|
};
|
|
2676
2681
|
const update$b = (http, params, rawData, headers) => {
|
|
2677
|
-
const data =
|
|
2682
|
+
const data = copy__default.default(rawData);
|
|
2678
2683
|
delete data.sys;
|
|
2679
2684
|
return put$1(http, `/spaces/${params.spaceId}`, data, {
|
|
2680
2685
|
headers: {
|
|
@@ -2742,7 +2747,7 @@ const createWithId$2 = (http, params, data, headers) => {
|
|
|
2742
2747
|
});
|
|
2743
2748
|
};
|
|
2744
2749
|
const update$a = (http, params, rawData, headers) => {
|
|
2745
|
-
const data =
|
|
2750
|
+
const data = copy__default.default(rawData);
|
|
2746
2751
|
delete data.sys;
|
|
2747
2752
|
return put$1(http, getEntityUrl$3(params), data, {
|
|
2748
2753
|
headers: {
|
|
@@ -2774,13 +2779,13 @@ const getMany$7 = (http, params) => get$W(http, getBaseUrl$9(params), {
|
|
|
2774
2779
|
params: params.query,
|
|
2775
2780
|
});
|
|
2776
2781
|
const createWithId$1 = (http, params, rawData) => {
|
|
2777
|
-
const data =
|
|
2782
|
+
const data = copy__default.default(rawData);
|
|
2778
2783
|
return put$1(http, getTagUrl(params), data, {
|
|
2779
2784
|
headers: { 'X-Contentful-Tag-Visibility': rawData.sys.visibility ?? 'private' },
|
|
2780
2785
|
});
|
|
2781
2786
|
};
|
|
2782
2787
|
const update$9 = (http, params, rawData, headers) => {
|
|
2783
|
-
const data =
|
|
2788
|
+
const data = copy__default.default(rawData);
|
|
2784
2789
|
delete data.sys;
|
|
2785
2790
|
return put$1(http, getTagUrl(params), data, {
|
|
2786
2791
|
headers: {
|
|
@@ -2813,11 +2818,11 @@ const getMany$6 = (http, params) => get$W(http, getBaseUrl$8(params), {
|
|
|
2813
2818
|
*/
|
|
2814
2819
|
const getAll = getMany$6;
|
|
2815
2820
|
const create$7 = (http, params, rawData) => {
|
|
2816
|
-
const data =
|
|
2821
|
+
const data = copy__default.default(rawData);
|
|
2817
2822
|
return post$1(http, getBaseUrl$8(params), data);
|
|
2818
2823
|
};
|
|
2819
2824
|
const update$8 = (http, params, rawData, headers) => {
|
|
2820
|
-
const data =
|
|
2825
|
+
const data = copy__default.default(rawData);
|
|
2821
2826
|
delete data.sys;
|
|
2822
2827
|
return put$1(http, getTaskUrl(params), data, {
|
|
2823
2828
|
headers: {
|
|
@@ -2855,7 +2860,7 @@ const create$6 = (http, params, rawData, headers) => {
|
|
|
2855
2860
|
return post$1(http, getBaseUrl$7(params), rawData, { headers });
|
|
2856
2861
|
};
|
|
2857
2862
|
const update$7 = (http, params, rawData, headers) => {
|
|
2858
|
-
const data =
|
|
2863
|
+
const data = copy__default.default(rawData);
|
|
2859
2864
|
delete data.sys;
|
|
2860
2865
|
return put$1(http, getEntityUrl$2(params), data, {
|
|
2861
2866
|
headers: {
|
|
@@ -2891,7 +2896,7 @@ const create$5 = (http, params, rawData, headers) => {
|
|
|
2891
2896
|
return post$1(http, getBaseUrl$6(params), rawData, { headers });
|
|
2892
2897
|
};
|
|
2893
2898
|
const update$6 = (http, params, rawData, headers) => {
|
|
2894
|
-
const data =
|
|
2899
|
+
const data = copy__default.default(rawData);
|
|
2895
2900
|
delete data.sys;
|
|
2896
2901
|
return put$1(http, getEntityUrl$1(params), data, {
|
|
2897
2902
|
headers: {
|
|
@@ -2939,7 +2944,7 @@ const create$4 = (http, params, rawData, headers) => {
|
|
|
2939
2944
|
});
|
|
2940
2945
|
};
|
|
2941
2946
|
const update$5 = (http, params, rawData, headers) => {
|
|
2942
|
-
const data =
|
|
2947
|
+
const data = copy__default.default(rawData);
|
|
2943
2948
|
delete data.sys;
|
|
2944
2949
|
return put$1(http, getEntityUrl(params), data, {
|
|
2945
2950
|
headers: {
|
|
@@ -2969,7 +2974,7 @@ const get$4 = (http, params) => {
|
|
|
2969
2974
|
return get$W(http, getUrl$1(params));
|
|
2970
2975
|
};
|
|
2971
2976
|
const update$4 = (http, params, rawData) => {
|
|
2972
|
-
const data =
|
|
2977
|
+
const data = copy__default.default(rawData);
|
|
2973
2978
|
delete data.sys;
|
|
2974
2979
|
return put$1(http, getUrl$1(params), data, {
|
|
2975
2980
|
headers: {
|
|
@@ -3047,7 +3052,7 @@ const get$3 = (http, params) => {
|
|
|
3047
3052
|
return get$W(http, getUrl(params));
|
|
3048
3053
|
};
|
|
3049
3054
|
const update$3 = (http, params, rawData) => {
|
|
3050
|
-
const data =
|
|
3055
|
+
const data = copy__default.default(rawData);
|
|
3051
3056
|
delete data.sys;
|
|
3052
3057
|
return put$1(http, getUrl(params), data, {
|
|
3053
3058
|
headers: {
|
|
@@ -3100,15 +3105,15 @@ const getRetryPolicy = (http, params) => {
|
|
|
3100
3105
|
return get$W(http, getWebhookRetryPolicyUrl(params));
|
|
3101
3106
|
};
|
|
3102
3107
|
const create$2 = (http, params, rawData, headers) => {
|
|
3103
|
-
const data =
|
|
3108
|
+
const data = copy__default.default(rawData);
|
|
3104
3109
|
return post$1(http, getBaseUrl$3(params), data, { headers });
|
|
3105
3110
|
};
|
|
3106
3111
|
const createWithId = (http, params, rawData, headers) => {
|
|
3107
|
-
const data =
|
|
3112
|
+
const data = copy__default.default(rawData);
|
|
3108
3113
|
return put$1(http, getWebhookUrl(params), data, { headers });
|
|
3109
3114
|
};
|
|
3110
3115
|
const update$2 = async (http, params, rawData, headers) => {
|
|
3111
|
-
const data =
|
|
3116
|
+
const data = copy__default.default(rawData);
|
|
3112
3117
|
delete data.sys;
|
|
3113
3118
|
return put$1(http, getWebhookUrl(params), data, {
|
|
3114
3119
|
headers: {
|
|
@@ -3118,14 +3123,14 @@ const update$2 = async (http, params, rawData, headers) => {
|
|
|
3118
3123
|
});
|
|
3119
3124
|
};
|
|
3120
3125
|
const upsertSigningSecret = async (http, params, rawData) => {
|
|
3121
|
-
const data =
|
|
3126
|
+
const data = copy__default.default(rawData);
|
|
3122
3127
|
return put$1(http, getWebhookSigningSecretUrl(params), data);
|
|
3123
3128
|
};
|
|
3124
3129
|
/**
|
|
3125
3130
|
* @deprecated The EAP for this feature has ended. This method will be removed in the next major version.
|
|
3126
3131
|
*/
|
|
3127
3132
|
const upsertRetryPolicy = async (http, params, rawData) => {
|
|
3128
|
-
const data =
|
|
3133
|
+
const data = copy__default.default(rawData);
|
|
3129
3134
|
return put$1(http, getWebhookRetryPolicyUrl(params), data);
|
|
3130
3135
|
};
|
|
3131
3136
|
const del$2 = (http, params) => {
|
|
@@ -3171,13 +3176,13 @@ const get$1 = (http, params, headers) => get$W(http, getWorkflowUrl(params), {
|
|
|
3171
3176
|
headers,
|
|
3172
3177
|
});
|
|
3173
3178
|
const create$1 = (http, params, rawData, headers) => {
|
|
3174
|
-
const data =
|
|
3179
|
+
const data = copy__default.default(rawData);
|
|
3175
3180
|
return post$1(http, getBaseUrl$2(params), data, {
|
|
3176
3181
|
headers,
|
|
3177
3182
|
});
|
|
3178
3183
|
};
|
|
3179
3184
|
const update$1 = (http, params, rawData, headers) => {
|
|
3180
|
-
const data =
|
|
3185
|
+
const data = copy__default.default(rawData);
|
|
3181
3186
|
delete data.sys;
|
|
3182
3187
|
return put$1(http, getWorkflowUrl(params), data, {
|
|
3183
3188
|
headers: {
|
|
@@ -3217,13 +3222,13 @@ const getMany$1 = (http, params, headers) => get$W(http, getBaseUrl$1(params), {
|
|
|
3217
3222
|
params: params.query,
|
|
3218
3223
|
});
|
|
3219
3224
|
const create = (http, params, rawData, headers) => {
|
|
3220
|
-
const data =
|
|
3225
|
+
const data = copy__default.default(rawData);
|
|
3221
3226
|
return post$1(http, getBaseUrl$1(params), data, {
|
|
3222
3227
|
headers,
|
|
3223
3228
|
});
|
|
3224
3229
|
};
|
|
3225
3230
|
const update = (http, params, rawData, headers) => {
|
|
3226
|
-
const data =
|
|
3231
|
+
const data = copy__default.default(rawData);
|
|
3227
3232
|
delete data.sys;
|
|
3228
3233
|
return put$1(http, getWorkflowDefinitionUrl(params), data, {
|
|
3229
3234
|
headers: {
|
|
@@ -3360,7 +3365,7 @@ class RestAdapter {
|
|
|
3360
3365
|
if (!params.accessToken) {
|
|
3361
3366
|
throw new TypeError('Expected parameter accessToken');
|
|
3362
3367
|
}
|
|
3363
|
-
const copiedParams =
|
|
3368
|
+
const copiedParams = copy__default.default(params);
|
|
3364
3369
|
// httpAgent and httpsAgent cannot be copied because they can contain private fields
|
|
3365
3370
|
copiedParams.httpAgent = params.httpAgent;
|
|
3366
3371
|
copiedParams.httpsAgent = params.httpsAgent;
|
|
@@ -3368,7 +3373,7 @@ class RestAdapter {
|
|
|
3368
3373
|
...defaultHostParameters,
|
|
3369
3374
|
...copiedParams,
|
|
3370
3375
|
};
|
|
3371
|
-
this.axiosInstance = contentfulSdkCore.createHttpClient(
|
|
3376
|
+
this.axiosInstance = contentfulSdkCore.createHttpClient(axios__default.default, {
|
|
3372
3377
|
...this.params,
|
|
3373
3378
|
headers: {
|
|
3374
3379
|
'Content-Type': 'application/vnd.contentful.management.v1+json',
|
|
@@ -3430,7 +3435,7 @@ function enhanceWithMethods(baseObject, methodsObject) {
|
|
|
3430
3435
|
* @returns The AI Action Invocation entity.
|
|
3431
3436
|
*/
|
|
3432
3437
|
function wrapAiActionInvocation(makeRequest, data) {
|
|
3433
|
-
const invocation = contentfulSdkCore.toPlainObject(
|
|
3438
|
+
const invocation = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
3434
3439
|
return contentfulSdkCore.freezeSys(invocation);
|
|
3435
3440
|
}
|
|
3436
3441
|
|
|
@@ -3493,7 +3498,7 @@ function createAiActionApi(makeRequest) {
|
|
|
3493
3498
|
};
|
|
3494
3499
|
}
|
|
3495
3500
|
function wrapAiAction(makeRequest, data) {
|
|
3496
|
-
const aiAction = contentfulSdkCore.toPlainObject(
|
|
3501
|
+
const aiAction = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
3497
3502
|
const aiActionWithMethods = enhanceWithMethods(aiAction, createAiActionApi(makeRequest));
|
|
3498
3503
|
return contentfulSdkCore.freezeSys(aiActionWithMethods);
|
|
3499
3504
|
}
|
|
@@ -3540,7 +3545,7 @@ function createApiKeyApi(makeRequest) {
|
|
|
3540
3545
|
* @param data - Raw api key data
|
|
3541
3546
|
*/
|
|
3542
3547
|
function wrapApiKey(makeRequest, data) {
|
|
3543
|
-
const apiKey = contentfulSdkCore.toPlainObject(
|
|
3548
|
+
const apiKey = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
3544
3549
|
const apiKeyWithMethods = enhanceWithMethods(apiKey, createApiKeyApi(makeRequest));
|
|
3545
3550
|
return contentfulSdkCore.freezeSys(apiKeyWithMethods);
|
|
3546
3551
|
}
|
|
@@ -3585,7 +3590,7 @@ function createAppActionApi(makeRequest) {
|
|
|
3585
3590
|
* @return Wrapped App Bundle data
|
|
3586
3591
|
*/
|
|
3587
3592
|
function wrapAppAction(makeRequest, data) {
|
|
3588
|
-
const appAction = contentfulSdkCore.toPlainObject(
|
|
3593
|
+
const appAction = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
3589
3594
|
const appActionWithMethods = enhanceWithMethods(appAction, createAppActionApi(makeRequest));
|
|
3590
3595
|
return contentfulSdkCore.freezeSys(appActionWithMethods);
|
|
3591
3596
|
}
|
|
@@ -3647,7 +3652,7 @@ function createAppActionCallApi(makeRequest, retryOptions) {
|
|
|
3647
3652
|
* @return Wrapped AppActionCall data
|
|
3648
3653
|
*/
|
|
3649
3654
|
function wrapAppActionCall(makeRequest, data) {
|
|
3650
|
-
const signedRequest = contentfulSdkCore.toPlainObject(
|
|
3655
|
+
const signedRequest = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
3651
3656
|
const signedRequestWithMethods = enhanceWithMethods(signedRequest, createAppActionCallApi(makeRequest));
|
|
3652
3657
|
return signedRequestWithMethods;
|
|
3653
3658
|
}
|
|
@@ -3658,7 +3663,7 @@ function wrapAppActionCall(makeRequest, data) {
|
|
|
3658
3663
|
* @return Wrapped AppActionCall data
|
|
3659
3664
|
*/
|
|
3660
3665
|
function wrapAppActionCallResponse(makeRequest, data, retryOptions) {
|
|
3661
|
-
const appActionCallResponse = contentfulSdkCore.toPlainObject(
|
|
3666
|
+
const appActionCallResponse = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
3662
3667
|
const appActionCallResponseWithMethods = enhanceWithMethods(appActionCallResponse, createAppActionCallApi(makeRequest, retryOptions));
|
|
3663
3668
|
return appActionCallResponseWithMethods;
|
|
3664
3669
|
}
|
|
@@ -3697,7 +3702,7 @@ function createAppBundleApi(makeRequest) {
|
|
|
3697
3702
|
* @return Wrapped App Bundle data
|
|
3698
3703
|
*/
|
|
3699
3704
|
function wrapAppBundle(makeRequest, data) {
|
|
3700
|
-
const appBundle = contentfulSdkCore.toPlainObject(
|
|
3705
|
+
const appBundle = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
3701
3706
|
const appBundleWithMethods = enhanceWithMethods(appBundle, createAppBundleApi(makeRequest));
|
|
3702
3707
|
return contentfulSdkCore.freezeSys(appBundleWithMethods);
|
|
3703
3708
|
}
|
|
@@ -3970,7 +3975,7 @@ function createAppDefinitionApi(makeRequest) {
|
|
|
3970
3975
|
* @return Wrapped App Definition data
|
|
3971
3976
|
*/
|
|
3972
3977
|
function wrapAppDefinition(makeRequest, data) {
|
|
3973
|
-
const appDefinition = contentfulSdkCore.toPlainObject(
|
|
3978
|
+
const appDefinition = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
3974
3979
|
const appDefinitionWithMethods = enhanceWithMethods(appDefinition, createAppDefinitionApi(makeRequest));
|
|
3975
3980
|
return contentfulSdkCore.freezeSys(appDefinitionWithMethods);
|
|
3976
3981
|
}
|
|
@@ -4016,7 +4021,7 @@ function createAppDetailsApi(makeRequest) {
|
|
|
4016
4021
|
* @return Wrapped AppDetails data
|
|
4017
4022
|
*/
|
|
4018
4023
|
function wrapAppDetails(makeRequest, data) {
|
|
4019
|
-
const appDetails = contentfulSdkCore.toPlainObject(
|
|
4024
|
+
const appDetails = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4020
4025
|
return enhanceWithMethods(appDetails, createAppDetailsApi(makeRequest));
|
|
4021
4026
|
}
|
|
4022
4027
|
|
|
@@ -4062,7 +4067,7 @@ function createAppInstallationApi(makeRequest) {
|
|
|
4062
4067
|
* @return Wrapped App installation data
|
|
4063
4068
|
*/
|
|
4064
4069
|
function wrapAppInstallation(makeRequest, data) {
|
|
4065
|
-
const appInstallation = contentfulSdkCore.toPlainObject(
|
|
4070
|
+
const appInstallation = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4066
4071
|
const appInstallationWithMethods = enhanceWithMethods(appInstallation, createAppInstallationApi(makeRequest));
|
|
4067
4072
|
return contentfulSdkCore.freezeSys(appInstallationWithMethods);
|
|
4068
4073
|
}
|
|
@@ -4084,7 +4089,7 @@ var appInstallation = /*#__PURE__*/Object.freeze({
|
|
|
4084
4089
|
* @return Wrapped AppSignedRequest data
|
|
4085
4090
|
*/
|
|
4086
4091
|
function wrapAppSignedRequest(_makeRequest, data) {
|
|
4087
|
-
const signedRequest = contentfulSdkCore.toPlainObject(
|
|
4092
|
+
const signedRequest = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4088
4093
|
return signedRequest;
|
|
4089
4094
|
}
|
|
4090
4095
|
|
|
@@ -4116,7 +4121,7 @@ function createSigningSecretApi(makeRequest) {
|
|
|
4116
4121
|
* @return Wrapped AppSigningSecret data
|
|
4117
4122
|
*/
|
|
4118
4123
|
function wrapAppSigningSecret(makeRequest, data) {
|
|
4119
|
-
const signingSecret = contentfulSdkCore.toPlainObject(
|
|
4124
|
+
const signingSecret = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4120
4125
|
return enhanceWithMethods(signingSecret, createSigningSecretApi(makeRequest));
|
|
4121
4126
|
}
|
|
4122
4127
|
|
|
@@ -4148,7 +4153,7 @@ function createEventSubscriptionApi(makeRequest) {
|
|
|
4148
4153
|
* @return Wrapped AppEventSubscription data
|
|
4149
4154
|
*/
|
|
4150
4155
|
function wrapAppEventSubscription(makeRequest, data) {
|
|
4151
|
-
const eventSubscription = contentfulSdkCore.toPlainObject(
|
|
4156
|
+
const eventSubscription = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4152
4157
|
return enhanceWithMethods(eventSubscription, createEventSubscriptionApi(makeRequest));
|
|
4153
4158
|
}
|
|
4154
4159
|
|
|
@@ -4181,7 +4186,7 @@ function createKeyApi(makeRequest) {
|
|
|
4181
4186
|
* @return Wrapped AppKey data
|
|
4182
4187
|
*/
|
|
4183
4188
|
function wrapAppKey(makeRequest, data) {
|
|
4184
|
-
const key = contentfulSdkCore.toPlainObject(
|
|
4189
|
+
const key = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4185
4190
|
return enhanceWithMethods(key, createKeyApi(makeRequest));
|
|
4186
4191
|
}
|
|
4187
4192
|
/**
|
|
@@ -4205,7 +4210,7 @@ var appKey = /*#__PURE__*/Object.freeze({
|
|
|
4205
4210
|
* @return {AppAccessToken} Wrapped AppAccessToken data
|
|
4206
4211
|
*/
|
|
4207
4212
|
function wrapAppAccessToken(_makeRequest, data) {
|
|
4208
|
-
const appAccessToken = contentfulSdkCore.toPlainObject(
|
|
4213
|
+
const appAccessToken = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4209
4214
|
return contentfulSdkCore.freezeSys(appAccessToken);
|
|
4210
4215
|
}
|
|
4211
4216
|
|
|
@@ -4240,7 +4245,7 @@ function createAppUploadApi(makeRequest) {
|
|
|
4240
4245
|
* @return Wrapped App Upload data
|
|
4241
4246
|
*/
|
|
4242
4247
|
function wrapAppUpload(makeRequest, data) {
|
|
4243
|
-
const appUpload = contentfulSdkCore.toPlainObject(
|
|
4248
|
+
const appUpload = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4244
4249
|
const appUploadWithMethods = enhanceWithMethods(appUpload, createAppUploadApi(makeRequest));
|
|
4245
4250
|
return contentfulSdkCore.freezeSys(appUploadWithMethods);
|
|
4246
4251
|
}
|
|
@@ -4380,7 +4385,7 @@ function createAssetApi(makeRequest) {
|
|
|
4380
4385
|
* @return Wrapped asset data
|
|
4381
4386
|
*/
|
|
4382
4387
|
function wrapAsset(makeRequest, data) {
|
|
4383
|
-
const asset = contentfulSdkCore.toPlainObject(
|
|
4388
|
+
const asset = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4384
4389
|
const assetWithMethods = enhanceWithMethods(asset, createAssetApi(makeRequest));
|
|
4385
4390
|
return contentfulSdkCore.freezeSys(assetWithMethods);
|
|
4386
4391
|
}
|
|
@@ -4402,7 +4407,7 @@ var asset = /*#__PURE__*/Object.freeze({
|
|
|
4402
4407
|
* @return Wrapped asset key data
|
|
4403
4408
|
*/
|
|
4404
4409
|
function wrapAssetKey(_makeRequest, data) {
|
|
4405
|
-
const assetKey = contentfulSdkCore.toPlainObject(
|
|
4410
|
+
const assetKey = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4406
4411
|
return assetKey;
|
|
4407
4412
|
}
|
|
4408
4413
|
|
|
@@ -4512,7 +4517,7 @@ function createBulkActionApi(makeRequest) {
|
|
|
4512
4517
|
* @return Wrapped BulkAction data
|
|
4513
4518
|
*/
|
|
4514
4519
|
function wrapBulkAction(makeRequest, data) {
|
|
4515
|
-
const bulkAction = contentfulSdkCore.toPlainObject(
|
|
4520
|
+
const bulkAction = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4516
4521
|
const bulkActionWithApiMethods = enhanceWithMethods(bulkAction, createBulkActionApi(makeRequest));
|
|
4517
4522
|
return contentfulSdkCore.freezeSys(bulkActionWithApiMethods);
|
|
4518
4523
|
}
|
|
@@ -4568,7 +4573,7 @@ function createCommentApi(makeRequest) {
|
|
|
4568
4573
|
* @private
|
|
4569
4574
|
*/
|
|
4570
4575
|
function wrapComment(makeRequest, data) {
|
|
4571
|
-
const comment = contentfulSdkCore.toPlainObject(
|
|
4576
|
+
const comment = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4572
4577
|
const commentWithMethods = enhanceWithMethods(comment, createCommentApi(makeRequest));
|
|
4573
4578
|
return contentfulSdkCore.freezeSys(commentWithMethods);
|
|
4574
4579
|
}
|
|
@@ -4617,7 +4622,7 @@ function createEditorInterfaceApi(makeRequest) {
|
|
|
4617
4622
|
* @private
|
|
4618
4623
|
*/
|
|
4619
4624
|
function wrapEditorInterface(makeRequest, data) {
|
|
4620
|
-
const editorInterface = contentfulSdkCore.toPlainObject(
|
|
4625
|
+
const editorInterface = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4621
4626
|
const editorInterfaceWithMethods = enhanceWithMethods(editorInterface, createEditorInterfaceApi(makeRequest));
|
|
4622
4627
|
return contentfulSdkCore.freezeSys(editorInterfaceWithMethods);
|
|
4623
4628
|
}
|
|
@@ -4647,7 +4652,7 @@ function createSnapshotApi() {
|
|
|
4647
4652
|
* @return Wrapped snapshot data
|
|
4648
4653
|
*/
|
|
4649
4654
|
function wrapSnapshot(_makeRequest, data) {
|
|
4650
|
-
const snapshot = contentfulSdkCore.toPlainObject(
|
|
4655
|
+
const snapshot = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4651
4656
|
const snapshotWithMethods = enhanceWithMethods(snapshot, createSnapshotApi());
|
|
4652
4657
|
return contentfulSdkCore.freezeSys(snapshotWithMethods);
|
|
4653
4658
|
}
|
|
@@ -4808,7 +4813,7 @@ function createContentTypeApi(makeRequest) {
|
|
|
4808
4813
|
* @return Wrapped content type data
|
|
4809
4814
|
*/
|
|
4810
4815
|
function wrapContentType(makeRequest, data) {
|
|
4811
|
-
const contentType = contentfulSdkCore.toPlainObject(
|
|
4816
|
+
const contentType = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
4812
4817
|
const contentTypeWithMethods = enhanceWithMethods(contentType, createContentTypeApi(makeRequest));
|
|
4813
4818
|
return contentfulSdkCore.freezeSys(contentTypeWithMethods);
|
|
4814
4819
|
}
|
|
@@ -5314,7 +5319,7 @@ function createEntryApi(makeRequest) {
|
|
|
5314
5319
|
* @return Wrapped entry data
|
|
5315
5320
|
*/
|
|
5316
5321
|
function wrapEntry(makeRequest, data) {
|
|
5317
|
-
const entry = contentfulSdkCore.toPlainObject(
|
|
5322
|
+
const entry = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
5318
5323
|
const entryWithMethods = enhanceWithMethods(entry, createEntryApi(makeRequest));
|
|
5319
5324
|
return contentfulSdkCore.freezeSys(entryWithMethods);
|
|
5320
5325
|
}
|
|
@@ -5366,7 +5371,7 @@ function createReleaseActionApi(makeRequest) {
|
|
|
5366
5371
|
* @return Wrapped Release data
|
|
5367
5372
|
*/
|
|
5368
5373
|
function wrapReleaseAction(makeRequest, data) {
|
|
5369
|
-
const releaseAction = contentfulSdkCore.toPlainObject(
|
|
5374
|
+
const releaseAction = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
5370
5375
|
const releaseActionWithApiMethods = enhanceWithMethods(releaseAction, createReleaseActionApi(makeRequest));
|
|
5371
5376
|
return contentfulSdkCore.freezeSys(releaseActionWithApiMethods);
|
|
5372
5377
|
}
|
|
@@ -5469,7 +5474,7 @@ function createReleaseApi(makeRequest) {
|
|
|
5469
5474
|
* @return Wrapped Release data
|
|
5470
5475
|
*/
|
|
5471
5476
|
function wrapRelease(makeRequest, data) {
|
|
5472
|
-
const release = contentfulSdkCore.toPlainObject(
|
|
5477
|
+
const release = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
5473
5478
|
const releaseWithApiMethods = enhanceWithMethods(release, createReleaseApi(makeRequest));
|
|
5474
5479
|
return contentfulSdkCore.freezeSys(releaseWithApiMethods);
|
|
5475
5480
|
}
|
|
@@ -5516,7 +5521,7 @@ function createTagApi(makeRequest) {
|
|
|
5516
5521
|
* @private
|
|
5517
5522
|
*/
|
|
5518
5523
|
function wrapTag(makeRequest, data) {
|
|
5519
|
-
const tag = contentfulSdkCore.toPlainObject(
|
|
5524
|
+
const tag = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
5520
5525
|
const tagWithMethods = enhanceWithMethods(tag, createTagApi(makeRequest));
|
|
5521
5526
|
return contentfulSdkCore.freezeSys(tagWithMethods);
|
|
5522
5527
|
}
|
|
@@ -5582,7 +5587,7 @@ function createUIConfigApi(makeRequest) {
|
|
|
5582
5587
|
* @return Wrapped UIConfig
|
|
5583
5588
|
*/
|
|
5584
5589
|
function wrapUIConfig(makeRequest, data) {
|
|
5585
|
-
const user = contentfulSdkCore.toPlainObject(
|
|
5590
|
+
const user = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
5586
5591
|
const userWithMethods = enhanceWithMethods(user, createUIConfigApi(makeRequest));
|
|
5587
5592
|
return contentfulSdkCore.freezeSys(userWithMethods);
|
|
5588
5593
|
}
|
|
@@ -5649,7 +5654,7 @@ function createUserUIConfigApi(makeRequest) {
|
|
|
5649
5654
|
* @return Wrapped UserUIConfig
|
|
5650
5655
|
*/
|
|
5651
5656
|
function wrapUserUIConfig(makeRequest, data) {
|
|
5652
|
-
const user = contentfulSdkCore.toPlainObject(
|
|
5657
|
+
const user = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
5653
5658
|
const userWithMethods = enhanceWithMethods(user, createUserUIConfigApi(makeRequest));
|
|
5654
5659
|
return contentfulSdkCore.freezeSys(userWithMethods);
|
|
5655
5660
|
}
|
|
@@ -5669,7 +5674,7 @@ var EnvironmentTemplateInstallationStatuses;
|
|
|
5669
5674
|
EnvironmentTemplateInstallationStatuses["inRetry"] = "inRetry";
|
|
5670
5675
|
})(EnvironmentTemplateInstallationStatuses || (EnvironmentTemplateInstallationStatuses = {}));
|
|
5671
5676
|
function wrapEnvironmentTemplateInstallation(makeRequest, data) {
|
|
5672
|
-
const environmentTemplate = contentfulSdkCore.toPlainObject(
|
|
5677
|
+
const environmentTemplate = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
5673
5678
|
return contentfulSdkCore.freezeSys(environmentTemplate);
|
|
5674
5679
|
}
|
|
5675
5680
|
const wrapEnvironmentTemplateInstallationCollection = wrapCursorPaginatedCollection(wrapEnvironmentTemplateInstallation);
|
|
@@ -5728,7 +5733,7 @@ function createFunctionApi(makeRequest) {
|
|
|
5728
5733
|
* @return Wrapped Function data
|
|
5729
5734
|
*/
|
|
5730
5735
|
function wrapFunction(makeRequest, data) {
|
|
5731
|
-
const func = contentfulSdkCore.toPlainObject(
|
|
5736
|
+
const func = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
5732
5737
|
const funcWithMethods = enhanceWithMethods(func, createFunctionApi(makeRequest));
|
|
5733
5738
|
return contentfulSdkCore.freezeSys(funcWithMethods);
|
|
5734
5739
|
}
|
|
@@ -5750,7 +5755,7 @@ var func = /*#__PURE__*/Object.freeze({
|
|
|
5750
5755
|
* @return Wrapped Function data
|
|
5751
5756
|
*/
|
|
5752
5757
|
function wrapFunctionLog(makeRequest, data) {
|
|
5753
|
-
const functionLog = contentfulSdkCore.toPlainObject(
|
|
5758
|
+
const functionLog = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
5754
5759
|
return contentfulSdkCore.freezeSys(functionLog);
|
|
5755
5760
|
}
|
|
5756
5761
|
/**
|
|
@@ -8200,7 +8205,7 @@ function createEnvironmentApi(makeRequest) {
|
|
|
8200
8205
|
*/
|
|
8201
8206
|
function wrapEnvironment(makeRequest, data) {
|
|
8202
8207
|
// do not pollute generated typings
|
|
8203
|
-
const environment = contentfulSdkCore.toPlainObject(
|
|
8208
|
+
const environment = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
8204
8209
|
const environmentApi = createEnvironmentApi(makeRequest);
|
|
8205
8210
|
const enhancedEnvironment = enhanceWithMethods(environment, environmentApi);
|
|
8206
8211
|
return contentfulSdkCore.freezeSys(enhancedEnvironment);
|
|
@@ -8255,7 +8260,7 @@ function createEnvironmentAliasApi(makeRequest) {
|
|
|
8255
8260
|
* @return Wrapped environment alias data
|
|
8256
8261
|
*/
|
|
8257
8262
|
function wrapEnvironmentAlias(makeRequest, data) {
|
|
8258
|
-
const alias = contentfulSdkCore.toPlainObject(
|
|
8263
|
+
const alias = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
8259
8264
|
const enhancedAlias = enhanceWithMethods(alias, createEnvironmentAliasApi(makeRequest));
|
|
8260
8265
|
return contentfulSdkCore.freezeSys(enhancedAlias);
|
|
8261
8266
|
}
|
|
@@ -8541,7 +8546,7 @@ function createEnvironmentTemplateApi(makeRequest, organizationId) {
|
|
|
8541
8546
|
}
|
|
8542
8547
|
|
|
8543
8548
|
function wrapEnvironmentTemplate(makeRequest, data, organizationId) {
|
|
8544
|
-
const environmentTemplate = contentfulSdkCore.toPlainObject(
|
|
8549
|
+
const environmentTemplate = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
8545
8550
|
const environmentTemplateApi = createEnvironmentTemplateApi(makeRequest, organizationId);
|
|
8546
8551
|
const enhancedEnvironmentTemplate = enhanceWithMethods(environmentTemplate, environmentTemplateApi);
|
|
8547
8552
|
return contentfulSdkCore.freezeSys(enhancedEnvironmentTemplate);
|
|
@@ -8590,7 +8595,7 @@ function createExtensionApi(makeRequest) {
|
|
|
8590
8595
|
* @return Wrapped UI Extension data
|
|
8591
8596
|
*/
|
|
8592
8597
|
function wrapExtension(makeRequest, data) {
|
|
8593
|
-
const extension = contentfulSdkCore.toPlainObject(
|
|
8598
|
+
const extension = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
8594
8599
|
const extensionWithMethods = enhanceWithMethods(extension, createExtensionApi(makeRequest));
|
|
8595
8600
|
return contentfulSdkCore.freezeSys(extensionWithMethods);
|
|
8596
8601
|
}
|
|
@@ -8644,7 +8649,7 @@ function createLocaleApi(makeRequest) {
|
|
|
8644
8649
|
*/
|
|
8645
8650
|
function wrapLocale(makeRequest, data) {
|
|
8646
8651
|
delete data.internal_code;
|
|
8647
|
-
const locale = contentfulSdkCore.toPlainObject(
|
|
8652
|
+
const locale = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
8648
8653
|
const localeWithMethods = enhanceWithMethods(locale, createLocaleApi(makeRequest));
|
|
8649
8654
|
return contentfulSdkCore.freezeSys(localeWithMethods);
|
|
8650
8655
|
}
|
|
@@ -8707,7 +8712,7 @@ function createOAuthApplicationApi(makeRequest, userId) {
|
|
|
8707
8712
|
* @return Wrapped OAuth application data
|
|
8708
8713
|
*/
|
|
8709
8714
|
function wrapOAuthApplication(makeRequest, data, userId) {
|
|
8710
|
-
const oauthApplication = contentfulSdkCore.toPlainObject(
|
|
8715
|
+
const oauthApplication = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
8711
8716
|
const oauthApplicationWithMethods = enhanceWithMethods(oauthApplication, createOAuthApplicationApi(makeRequest, userId));
|
|
8712
8717
|
return contentfulSdkCore.freezeSys(oauthApplicationWithMethods);
|
|
8713
8718
|
}
|
|
@@ -9867,7 +9872,7 @@ function createOrganizationApi(makeRequest) {
|
|
|
9867
9872
|
* @return {Organization}
|
|
9868
9873
|
*/
|
|
9869
9874
|
function wrapOrganization(makeRequest, data) {
|
|
9870
|
-
const org = contentfulSdkCore.toPlainObject(
|
|
9875
|
+
const org = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
9871
9876
|
const orgApi = createOrganizationApi(makeRequest);
|
|
9872
9877
|
const enhancedOrganization = enhanceWithMethods(org, orgApi);
|
|
9873
9878
|
return contentfulSdkCore.freezeSys(enhancedOrganization);
|
|
@@ -9891,7 +9896,7 @@ var organization = /*#__PURE__*/Object.freeze({
|
|
|
9891
9896
|
* @return {OrganizationInvitation} Wrapped Inviation data
|
|
9892
9897
|
*/
|
|
9893
9898
|
function wrapOrganizationInvitation(_makeRequest, data) {
|
|
9894
|
-
const invitation = contentfulSdkCore.toPlainObject(
|
|
9899
|
+
const invitation = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
9895
9900
|
return contentfulSdkCore.freezeSys(invitation);
|
|
9896
9901
|
}
|
|
9897
9902
|
|
|
@@ -9935,7 +9940,7 @@ function createOrganizationMembershipApi(makeRequest, organizationId) {
|
|
|
9935
9940
|
* @return {OrganizationMembership} Wrapped organization membership data
|
|
9936
9941
|
*/
|
|
9937
9942
|
function wrapOrganizationMembership(makeRequest, data, organizationId) {
|
|
9938
|
-
const organizationMembership = contentfulSdkCore.toPlainObject(
|
|
9943
|
+
const organizationMembership = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
9939
9944
|
const organizationMembershipWithMethods = enhanceWithMethods(organizationMembership, createOrganizationMembershipApi(makeRequest, organizationId));
|
|
9940
9945
|
return contentfulSdkCore.freezeSys(organizationMembershipWithMethods);
|
|
9941
9946
|
}
|
|
@@ -9957,7 +9962,7 @@ var organizationMembership = /*#__PURE__*/Object.freeze({
|
|
|
9957
9962
|
* @return Wrapped personal access token
|
|
9958
9963
|
*/
|
|
9959
9964
|
function wrapPersonalAccessToken(makeRequest, data) {
|
|
9960
|
-
const personalAccessToken = contentfulSdkCore.toPlainObject(
|
|
9965
|
+
const personalAccessToken = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
9961
9966
|
const personalAccessTokenWithMethods = enhanceWithMethods(personalAccessToken, {
|
|
9962
9967
|
revoke: function () {
|
|
9963
9968
|
return makeRequest({
|
|
@@ -9990,7 +9995,7 @@ var personalAccessToken = /*#__PURE__*/Object.freeze({
|
|
|
9990
9995
|
* @return Wrapped access token
|
|
9991
9996
|
*/
|
|
9992
9997
|
function wrapAccessToken(makeRequest, data) {
|
|
9993
|
-
const AccessToken = contentfulSdkCore.toPlainObject(
|
|
9998
|
+
const AccessToken = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
9994
9999
|
const accessTokenWithMethods = enhanceWithMethods(AccessToken, {
|
|
9995
10000
|
revoke: function () {
|
|
9996
10001
|
return makeRequest({
|
|
@@ -10029,7 +10034,7 @@ function createPreviewApiKeyApi() {
|
|
|
10029
10034
|
* @return Wrapped preview api key data
|
|
10030
10035
|
*/
|
|
10031
10036
|
function wrapPreviewApiKey(_makeRequest, data) {
|
|
10032
|
-
const previewApiKey = contentfulSdkCore.toPlainObject(
|
|
10037
|
+
const previewApiKey = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
10033
10038
|
const previewApiKeyWithMethods = enhanceWithMethods(previewApiKey, createPreviewApiKeyApi());
|
|
10034
10039
|
return contentfulSdkCore.freezeSys(previewApiKeyWithMethods);
|
|
10035
10040
|
}
|
|
@@ -10079,7 +10084,7 @@ function createRoleApi(makeRequest) {
|
|
|
10079
10084
|
* @return Wrapped role data
|
|
10080
10085
|
*/
|
|
10081
10086
|
function wrapRole(makeRequest, data) {
|
|
10082
|
-
const role = contentfulSdkCore.toPlainObject(
|
|
10087
|
+
const role = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
10083
10088
|
const roleWithMethods = enhanceWithMethods(role, createRoleApi(makeRequest));
|
|
10084
10089
|
return contentfulSdkCore.freezeSys(roleWithMethods);
|
|
10085
10090
|
}
|
|
@@ -10225,7 +10230,7 @@ function getInstanceMethods(makeRequest) {
|
|
|
10225
10230
|
* @private
|
|
10226
10231
|
*/
|
|
10227
10232
|
function wrapScheduledAction(makeRequest, data) {
|
|
10228
|
-
const scheduledAction = contentfulSdkCore.toPlainObject(
|
|
10233
|
+
const scheduledAction = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
10229
10234
|
const scheduledActionWithMethods = enhanceWithMethods(scheduledAction, getInstanceMethods(makeRequest));
|
|
10230
10235
|
return contentfulSdkCore.freezeSys(scheduledActionWithMethods);
|
|
10231
10236
|
}
|
|
@@ -11837,7 +11842,7 @@ function createSpaceApi(makeRequest) {
|
|
|
11837
11842
|
* @return {Space}
|
|
11838
11843
|
*/
|
|
11839
11844
|
function wrapSpace(makeRequest, data) {
|
|
11840
|
-
const space = contentfulSdkCore.toPlainObject(
|
|
11845
|
+
const space = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
11841
11846
|
const spaceApi = createSpaceApi(makeRequest);
|
|
11842
11847
|
const enhancedSpace = enhanceWithMethods(space, spaceApi);
|
|
11843
11848
|
return contentfulSdkCore.freezeSys(enhancedSpace);
|
|
@@ -11862,7 +11867,7 @@ var space = /*#__PURE__*/Object.freeze({
|
|
|
11862
11867
|
* @return Wrapped space member data
|
|
11863
11868
|
*/
|
|
11864
11869
|
function wrapSpaceMember(_makeRequest, data) {
|
|
11865
|
-
const spaceMember = contentfulSdkCore.toPlainObject(
|
|
11870
|
+
const spaceMember = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
11866
11871
|
return contentfulSdkCore.freezeSys(spaceMember);
|
|
11867
11872
|
}
|
|
11868
11873
|
/**
|
|
@@ -11911,7 +11916,7 @@ function createSpaceMembershipApi(makeRequest) {
|
|
|
11911
11916
|
* @return Wrapped space membership data
|
|
11912
11917
|
*/
|
|
11913
11918
|
function wrapSpaceMembership(makeRequest, data) {
|
|
11914
|
-
const spaceMembership = contentfulSdkCore.toPlainObject(
|
|
11919
|
+
const spaceMembership = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
11915
11920
|
const spaceMembershipWithMethods = enhanceWithMethods(spaceMembership, createSpaceMembershipApi(makeRequest));
|
|
11916
11921
|
return contentfulSdkCore.freezeSys(spaceMembershipWithMethods);
|
|
11917
11922
|
}
|
|
@@ -11965,7 +11970,7 @@ function createTaskApi(makeRequest) {
|
|
|
11965
11970
|
* @private
|
|
11966
11971
|
*/
|
|
11967
11972
|
function wrapTask(makeRequest, data) {
|
|
11968
|
-
const task = contentfulSdkCore.toPlainObject(
|
|
11973
|
+
const task = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
11969
11974
|
const taskWithMethods = enhanceWithMethods(task, createTaskApi(makeRequest));
|
|
11970
11975
|
return contentfulSdkCore.freezeSys(taskWithMethods);
|
|
11971
11976
|
}
|
|
@@ -12016,7 +12021,7 @@ function createTeamApi(makeRequest) {
|
|
|
12016
12021
|
* @return Wrapped team data
|
|
12017
12022
|
*/
|
|
12018
12023
|
function wrapTeam(makeRequest, data) {
|
|
12019
|
-
const team = contentfulSdkCore.toPlainObject(
|
|
12024
|
+
const team = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
12020
12025
|
const teamWithMethods = enhanceWithMethods(team, createTeamApi(makeRequest));
|
|
12021
12026
|
return contentfulSdkCore.freezeSys(teamWithMethods);
|
|
12022
12027
|
}
|
|
@@ -12067,7 +12072,7 @@ function createTeamMembershipApi(makeRequest) {
|
|
|
12067
12072
|
* @return Wrapped team membership data
|
|
12068
12073
|
*/
|
|
12069
12074
|
function wrapTeamMembership(makeRequest, data) {
|
|
12070
|
-
const teamMembership = contentfulSdkCore.toPlainObject(
|
|
12075
|
+
const teamMembership = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
12071
12076
|
const teamMembershipWithMethods = enhanceWithMethods(teamMembership, createTeamMembershipApi(makeRequest));
|
|
12072
12077
|
return contentfulSdkCore.freezeSys(teamMembershipWithMethods);
|
|
12073
12078
|
}
|
|
@@ -12117,7 +12122,7 @@ function createTeamSpaceMembershipApi(makeRequest) {
|
|
|
12117
12122
|
* @return Wrapped team space membership data
|
|
12118
12123
|
*/
|
|
12119
12124
|
function wrapTeamSpaceMembership(makeRequest, data) {
|
|
12120
|
-
const teamSpaceMembership = contentfulSdkCore.toPlainObject(
|
|
12125
|
+
const teamSpaceMembership = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
12121
12126
|
const teamSpaceMembershipWithMethods = enhanceWithMethods(teamSpaceMembership, createTeamSpaceMembershipApi(makeRequest));
|
|
12122
12127
|
return contentfulSdkCore.freezeSys(teamSpaceMembershipWithMethods);
|
|
12123
12128
|
}
|
|
@@ -12158,7 +12163,7 @@ function createUploadApi(makeRequest) {
|
|
|
12158
12163
|
* @return {Upload} Wrapped upload data
|
|
12159
12164
|
*/
|
|
12160
12165
|
function wrapUpload(makeRequest, data) {
|
|
12161
|
-
const upload = contentfulSdkCore.toPlainObject(
|
|
12166
|
+
const upload = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
12162
12167
|
const uploadWithMethods = enhanceWithMethods(upload, createUploadApi(makeRequest));
|
|
12163
12168
|
return contentfulSdkCore.freezeSys(uploadWithMethods);
|
|
12164
12169
|
}
|
|
@@ -12175,7 +12180,7 @@ var upload = /*#__PURE__*/Object.freeze({
|
|
|
12175
12180
|
* @return Normalized usage
|
|
12176
12181
|
*/
|
|
12177
12182
|
function wrapUsage(_makeRequest, data) {
|
|
12178
|
-
const usage = contentfulSdkCore.toPlainObject(
|
|
12183
|
+
const usage = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
12179
12184
|
const usageWithMethods = enhanceWithMethods(usage, {});
|
|
12180
12185
|
return contentfulSdkCore.freezeSys(usageWithMethods);
|
|
12181
12186
|
}
|
|
@@ -12197,7 +12202,7 @@ var usage = /*#__PURE__*/Object.freeze({
|
|
|
12197
12202
|
* @return Normalized user
|
|
12198
12203
|
*/
|
|
12199
12204
|
function wrapUser(_makeRequest, data) {
|
|
12200
|
-
const user = contentfulSdkCore.toPlainObject(
|
|
12205
|
+
const user = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
12201
12206
|
const userWithMethods = enhanceWithMethods(user, {});
|
|
12202
12207
|
return contentfulSdkCore.freezeSys(userWithMethods);
|
|
12203
12208
|
}
|
|
@@ -12274,7 +12279,7 @@ function createWebhookApi(makeRequest) {
|
|
|
12274
12279
|
* @return Wrapped webhook data
|
|
12275
12280
|
*/
|
|
12276
12281
|
function wrapWebhook(makeRequest, data) {
|
|
12277
|
-
const webhook = contentfulSdkCore.toPlainObject(
|
|
12282
|
+
const webhook = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
12278
12283
|
const webhookWithMethods = enhanceWithMethods(webhook, createWebhookApi(makeRequest));
|
|
12279
12284
|
return contentfulSdkCore.freezeSys(webhookWithMethods);
|
|
12280
12285
|
}
|
|
@@ -12439,7 +12444,7 @@ const getUpsertParams$1 = (data) => ({
|
|
|
12439
12444
|
* @return Wrapped Resource Provider data
|
|
12440
12445
|
*/
|
|
12441
12446
|
function wrapResourceProvider(makeRequest, data) {
|
|
12442
|
-
const resourceProvider = contentfulSdkCore.toPlainObject(
|
|
12447
|
+
const resourceProvider = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
12443
12448
|
const ResourceProviderWithMethods = enhanceWithMethods(resourceProvider, createResourceProviderApi(makeRequest));
|
|
12444
12449
|
return contentfulSdkCore.freezeSys(ResourceProviderWithMethods);
|
|
12445
12450
|
}
|
|
@@ -12527,7 +12532,7 @@ const getUpsertParams = (data) => ({
|
|
|
12527
12532
|
* @return Wrapped Resource Type data
|
|
12528
12533
|
*/
|
|
12529
12534
|
function wrapResourceType(makeRequest, data) {
|
|
12530
|
-
const resourceType = contentfulSdkCore.toPlainObject(
|
|
12535
|
+
const resourceType = contentfulSdkCore.toPlainObject(copy__default.default(data));
|
|
12531
12536
|
const ResourceTypeWithMethods = enhanceWithMethods(resourceType, createResourceTypeApi(makeRequest));
|
|
12532
12537
|
return contentfulSdkCore.freezeSys(ResourceTypeWithMethods);
|
|
12533
12538
|
}
|
|
@@ -14053,8 +14058,8 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
14053
14058
|
const asIterator = (fn, params) => {
|
|
14054
14059
|
return {
|
|
14055
14060
|
[Symbol.asyncIterator]() {
|
|
14056
|
-
let options =
|
|
14057
|
-
const get = () => fn(
|
|
14061
|
+
let options = copy__default.default(params);
|
|
14062
|
+
const get = () => fn(copy__default.default(options));
|
|
14058
14063
|
let currentResult = get();
|
|
14059
14064
|
return {
|
|
14060
14065
|
current: 0,
|
|
@@ -14158,7 +14163,7 @@ function createClient(params, opts = {}) {
|
|
|
14158
14163
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
14159
14164
|
const userAgent = contentfulSdkCore.getUserAgentHeader(
|
|
14160
14165
|
// @ts-expect-error
|
|
14161
|
-
`${sdkMain}/${"11.64.0-new-beta.
|
|
14166
|
+
`${sdkMain}/${"11.64.0-new-beta.3"}`, params.application, params.integration, params.feature);
|
|
14162
14167
|
const adapter = createAdapter({ ...params, userAgent });
|
|
14163
14168
|
// Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
14164
14169
|
// https://github.com/microsoft/TypeScript/issues/26591
|