contentful-management 12.5.0 → 12.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +30 -0
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.min.js +1 -1
- package/dist/browser/index.min.js.map +1 -1
- package/dist/cjs/index.cjs +30 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/adapters/REST/endpoints/asset.mjs +12 -1
- package/dist/esm/adapters/REST/endpoints/asset.mjs.map +1 -1
- package/dist/esm/adapters/REST/endpoints/content-type.mjs +9 -1
- package/dist/esm/adapters/REST/endpoints/content-type.mjs.map +1 -1
- package/dist/esm/adapters/REST/endpoints/entry.mjs +12 -1
- package/dist/esm/adapters/REST/endpoints/entry.mjs.map +1 -1
- package/dist/types/adapters/REST/endpoints/asset.d.ts +1 -0
- package/dist/types/adapters/REST/endpoints/asset.js +12 -1
- package/dist/types/adapters/REST/endpoints/asset.js.map +1 -1
- package/dist/types/adapters/REST/endpoints/content-type.d.ts +1 -0
- package/dist/types/adapters/REST/endpoints/content-type.js +9 -1
- package/dist/types/adapters/REST/endpoints/content-type.js.map +1 -1
- package/dist/types/adapters/REST/endpoints/entry.d.ts +1 -0
- package/dist/types/adapters/REST/endpoints/entry.js +12 -1
- package/dist/types/adapters/REST/endpoints/entry.js.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -10898,6 +10898,16 @@ var contentfulManagement = (function (exports) {
|
|
|
10898
10898
|
headers: headers ? { ...headers } : undefined,
|
|
10899
10899
|
});
|
|
10900
10900
|
};
|
|
10901
|
+
const getManyWithCursor$2 = (http, params, rawData, headers) => {
|
|
10902
|
+
if (params.releaseId) {
|
|
10903
|
+
throw new Error('getManyWithCursor is not supported for release-scoped assets');
|
|
10904
|
+
}
|
|
10905
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, {
|
|
10906
|
+
params: { cursor: true, ...(params.query ?? {}) },
|
|
10907
|
+
headers: headers ? { ...headers } : undefined,
|
|
10908
|
+
})
|
|
10909
|
+
.then(normalizeCursorPaginationResponse);
|
|
10910
|
+
};
|
|
10901
10911
|
const update$t = (http, params, rawData, headers) => {
|
|
10902
10912
|
if (params.releaseId) {
|
|
10903
10913
|
return update$u(http, params, rawData, headers ?? {});
|
|
@@ -11081,6 +11091,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11081
11091
|
del: del$t,
|
|
11082
11092
|
get: get$L,
|
|
11083
11093
|
getMany: getMany$E,
|
|
11094
|
+
getManyWithCursor: getManyWithCursor$2,
|
|
11084
11095
|
getPublished: getPublished$1,
|
|
11085
11096
|
processForAllLocales: processForAllLocales,
|
|
11086
11097
|
processForLocale: processForLocale,
|
|
@@ -11419,6 +11430,13 @@ var contentfulManagement = (function (exports) {
|
|
|
11419
11430
|
headers,
|
|
11420
11431
|
});
|
|
11421
11432
|
};
|
|
11433
|
+
const getManyWithCursor$1 = (http, params, headers) => {
|
|
11434
|
+
return get$14(http, getBaseUrl$j(params), {
|
|
11435
|
+
params: { cursor: true, ...(params.query ?? {}) },
|
|
11436
|
+
headers,
|
|
11437
|
+
})
|
|
11438
|
+
.then(normalizeCursorPaginationResponse);
|
|
11439
|
+
};
|
|
11422
11440
|
const create$n = (http, params, rawData, headers) => {
|
|
11423
11441
|
const data = index$2(rawData);
|
|
11424
11442
|
return post$1(http, getBaseUrl$j(params), data, { headers });
|
|
@@ -11459,6 +11477,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11459
11477
|
del: del$p,
|
|
11460
11478
|
get: get$G,
|
|
11461
11479
|
getMany: getMany$y,
|
|
11480
|
+
getManyWithCursor: getManyWithCursor$1,
|
|
11462
11481
|
publish: publish$2,
|
|
11463
11482
|
unpublish: unpublish$2,
|
|
11464
11483
|
update: update$p
|
|
@@ -11585,6 +11604,16 @@ var contentfulManagement = (function (exports) {
|
|
|
11585
11604
|
headers: { ...headers },
|
|
11586
11605
|
});
|
|
11587
11606
|
};
|
|
11607
|
+
const getManyWithCursor = (http, params, rawData, headers) => {
|
|
11608
|
+
if (params.releaseId) {
|
|
11609
|
+
throw new Error('getManyWithCursor is not supported for release-scoped entries');
|
|
11610
|
+
}
|
|
11611
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
|
|
11612
|
+
params: { cursor: true, ...(params.query ?? {}) },
|
|
11613
|
+
headers: { ...headers },
|
|
11614
|
+
})
|
|
11615
|
+
.then(normalizeCursorPaginationResponse);
|
|
11616
|
+
};
|
|
11588
11617
|
const patch$1 = (http, params, data, headers) => {
|
|
11589
11618
|
if (params.releaseId) {
|
|
11590
11619
|
return patch$2(http, params, data, headers ?? {});
|
|
@@ -11676,6 +11705,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11676
11705
|
del: del$o,
|
|
11677
11706
|
get: get$D,
|
|
11678
11707
|
getMany: getMany$u,
|
|
11708
|
+
getManyWithCursor: getManyWithCursor,
|
|
11679
11709
|
getPublished: getPublished,
|
|
11680
11710
|
patch: patch$1,
|
|
11681
11711
|
publish: publish$1,
|