contentful-management 11.55.0-canary.7 → 11.55.0-canary.8
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 +4 -1
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +4 -1
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/entry.js +3 -0
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/typings/common-types.d.ts +2 -1
- package/dist/typings/plain/common-types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -104,6 +104,9 @@ export const unarchive = (http, params) => {
|
|
|
104
104
|
return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
|
|
105
105
|
};
|
|
106
106
|
export const create = (http, params, rawData) => {
|
|
107
|
+
if (params.releaseId) {
|
|
108
|
+
return releaseEntry.create(http, params, rawData, {});
|
|
109
|
+
}
|
|
107
110
|
const data = copy(rawData);
|
|
108
111
|
return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, data, {
|
|
109
112
|
headers: {
|
|
@@ -47,7 +47,7 @@ function createClient(params, opts = {}) {
|
|
|
47
47
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
48
48
|
const userAgent = getUserAgentHeader(
|
|
49
49
|
// @ts-expect-error
|
|
50
|
-
`${sdkMain}/${"11.55.0-canary.
|
|
50
|
+
`${sdkMain}/${"11.55.0-canary.8"}`, params.application, params.integration, params.feature);
|
|
51
51
|
const adapter = createAdapter(_objectSpread(_objectSpread({}, params), {}, {
|
|
52
52
|
userAgent
|
|
53
53
|
}));
|
|
@@ -201,7 +201,8 @@ export type PlainClientAPI = {
|
|
|
201
201
|
}>): Promise<EntryProps<T>>;
|
|
202
202
|
create<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
|
203
203
|
contentTypeId: string;
|
|
204
|
-
|
|
204
|
+
releaseId?: string;
|
|
205
|
+
} & QueryParams>, rawData: CreateEntryProps<T>): Promise<EntryProps<T>>;
|
|
205
206
|
createWithId<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & {
|
|
206
207
|
entryId: string;
|
|
207
208
|
contentTypeId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "11.55.0-canary.
|
|
3
|
+
"version": "11.55.0-canary.8",
|
|
4
4
|
"description": "Client for Contentful's Content Management API",
|
|
5
5
|
"homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
|
|
6
6
|
"main": "./dist/contentful-management.node.js",
|