contentful-management 11.55.0-canary.7 → 11.55.0-canary.9

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.
@@ -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.7"}`, params.application, params.integration, params.feature);
50
+ `${sdkMain}/${"11.55.0-canary.9"}`, params.application, params.integration, params.feature);
51
51
  const adapter = createAdapter(_objectSpread(_objectSpread({}, params), {}, {
52
52
  userAgent
53
53
  }));
@@ -1547,7 +1547,8 @@ export type MRActions = {
1547
1547
  create: {
1548
1548
  params: GetSpaceEnvironmentParams & {
1549
1549
  contentTypeId: string;
1550
- };
1550
+ releaseId?: string;
1551
+ } & QueryParams;
1551
1552
  payload: CreateEntryProps<any>;
1552
1553
  return: EntryProps<any>;
1553
1554
  };
@@ -91,7 +91,6 @@ export interface ReleasePayloadV2 extends MakeRequestPayload {
91
91
  entities: BaseCollection<{
92
92
  entity: Link<Entity>;
93
93
  } & ReleaseValidatePayload>;
94
- startDate?: ISO8601Timestamp;
95
94
  }
96
95
  export interface ReleaseValidatePayload {
97
96
  action?: 'publish';
@@ -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
- }>, rawData: CreateEntryProps<T>): Promise<EntryProps<T>>;
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.7",
3
+ "version": "11.55.0-canary.9",
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",